@o3r/components 15.3.0-prerelease.16 → 15.3.0-prerelease.17

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.
@@ -1,150 +1,144 @@
1
- import * as _o3r_core from '@o3r/core';
2
- import { Output, ItemIdentifier, ConfigPropertyWidget, CategoryDescription, AsyncStoreItem, AsyncRequest, FailAsyncStoreItemEntitiesActionPayload, FromApiActionPayload, UpdateAsyncStoreItemEntityActionPayloadWithId, UpdateEntityActionPayloadWithId, asyncEntitySerializer, Serializer, SetEntityActionPayload, OtterMessageContent, ConnectContentMessage, RequestMessagesContentMessage, MessageDataTypes, DevtoolsCommonOptions, DevtoolsServiceInterface, Configuration, ContextInput, BaseContextOutput, Context, Functionify } from '@o3r/core';
3
- export { BaseContextOutput, Context, ContextInput, TemplateContext } from '@o3r/core';
4
- import { Observable, BehaviorSubject } from 'rxjs';
5
- import * as _ngrx_entity from '@ngrx/entity';
6
- import { EntityState } from '@ngrx/entity';
7
- import * as i0 from '@angular/core';
8
- import { InjectionToken, ModuleWithProviders, EnvironmentProviders, OnChanges, OnDestroy, Type, InputSignal, ComponentRef, SimpleChanges, PipeTransform, OnInit, AfterViewChecked, Signal } from '@angular/core';
9
- import * as _ngrx_store from '@ngrx/store';
10
- import { ActionReducer, Action, ReducerTypes, ActionCreator } from '@ngrx/store';
11
- import * as _o3r_components from '@o3r/components';
12
- import { AbstractControl, FormControl } from '@angular/forms';
13
- import * as i1 from '@angular/common';
14
-
1
+ import { AsyncRequest, AsyncStoreItem, BaseContextOutput, BaseContextOutput as BaseContextOutput$1, CategoryDescription, ConfigPropertyWidget, Configuration, ConnectContentMessage, Context, Context as Context$1, ContextInput, ContextInput as ContextInput$1, DevtoolsCommonOptions, DevtoolsServiceInterface, FailAsyncStoreItemEntitiesActionPayload, FromApiActionPayload, Functionify, ItemIdentifier, MessageDataTypes, OtterMessageContent, Output, RequestMessagesContentMessage, Serializer, SetEntityActionPayload, TemplateContext, UpdateAsyncStoreItemEntityActionPayloadWithId, UpdateEntityActionPayloadWithId, asyncEntitySerializer } from "@o3r/core";
2
+ import { BehaviorSubject, Observable } from "rxjs";
3
+ import { EntityState } from "@ngrx/entity";
4
+ import * as i0 from "@angular/core";
5
+ import { AfterViewChecked, ComponentRef, EnvironmentProviders, InjectionToken, InputSignal, ModuleWithProviders, OnChanges, OnDestroy, OnInit, PipeTransform, Signal, SimpleChanges, Type } from "@angular/core";
6
+ import * as i1$1 from "@ngrx/store";
7
+ import { Action, ActionCreator, ActionReducer, ReducerTypes } from "@ngrx/store";
8
+ import { AbstractControl, FormControl } from "@angular/forms";
9
+ import * as i1 from "@angular/common";
15
10
  /** Types of components config */
16
- type ConfigType = 'Block' | 'Page' | 'AppRuntimeConfiguration' | 'AppBuildConfiguration' | 'ExposedComponent';
11
+ export type ConfigType = 'Block' | 'Page' | 'AppRuntimeConfiguration' | 'AppBuildConfiguration' | 'ExposedComponent';
17
12
  /** Type of components we can have in an application */
18
- type ComponentStructure = 'PAGE' | 'BLOCK' | 'COMPONENT' | 'APPLICATION' | 'NESTED_ELEMENT' | 'EXPOSED_COMPONENT';
13
+ export type ComponentStructure = 'PAGE' | 'BLOCK' | 'COMPONENT' | 'APPLICATION' | 'NESTED_ELEMENT' | 'EXPOSED_COMPONENT';
19
14
  /** Component context information */
20
- interface ComponentContext {
21
- /** Context library */
22
- library: string;
23
- /** Context class name */
24
- name: string;
15
+ export interface ComponentContext {
16
+ /** Context library */
17
+ library: string;
18
+ /** Context class name */
19
+ name: string;
25
20
  }
26
21
  /** Component config information */
27
- interface ComponentConfig {
28
- /** Config library */
29
- library: string;
30
- /** Config class name */
31
- name: string;
22
+ export interface ComponentConfig {
23
+ /** Config library */
24
+ library: string;
25
+ /** Config class name */
26
+ name: string;
32
27
  }
33
28
  /** Placeholder data identifier */
34
- interface PlaceholderData {
35
- /** Id of the placeholder */
36
- id: string;
37
- /** Description of the placeholder */
38
- description: string;
29
+ export interface PlaceholderData {
30
+ /** Id of the placeholder */
31
+ id: string;
32
+ /** Description of the placeholder */
33
+ description: string;
39
34
  }
40
35
  /** Placeholder metadata */
41
- interface PlaceholdersMetadata {
42
- /** Component library */
43
- library: string;
44
- /** Component name */
45
- name: string;
46
- /** Placeholders available for the component */
47
- placeholders: PlaceholderData[];
36
+ export interface PlaceholdersMetadata {
37
+ /** Component library */
38
+ library: string;
39
+ /** Component name */
40
+ name: string;
41
+ /** Placeholders available for the component */
42
+ placeholders: PlaceholderData[];
48
43
  }
49
44
  /**
50
45
  * Output generated for component class metadata
51
46
  */
52
- interface ComponentClassOutput extends Output {
53
- /** Component library */
54
- library: string;
55
- /** Component name */
56
- name: string;
57
- /** Component path */
58
- path: string;
59
- /** Component selector */
60
- selector: string;
61
- /** Component type */
62
- type: ComponentStructure;
63
- /** Component context */
64
- context?: ComponentContext;
65
- /** Component config */
66
- config?: ComponentConfig;
67
- /** Placeholders available for the component */
68
- placeholders?: PlaceholderData[];
69
- /** Determine if the component is activating a ruleset */
70
- linkableToRuleset: boolean;
71
- /** List of localization keys used in the component */
72
- localizationKeys?: string[];
47
+ export interface ComponentClassOutput extends Output {
48
+ /** Component library */
49
+ library: string;
50
+ /** Component name */
51
+ name: string;
52
+ /** Component path */
53
+ path: string;
54
+ /** Component selector */
55
+ selector: string;
56
+ /** Component type */
57
+ type: ComponentStructure;
58
+ /** Component context */
59
+ context?: ComponentContext;
60
+ /** Component config */
61
+ config?: ComponentConfig;
62
+ /** Placeholders available for the component */
63
+ placeholders?: PlaceholderData[];
64
+ /** Determine if the component is activating a ruleset */
65
+ linkableToRuleset: boolean;
66
+ /** List of localization keys used in the component */
67
+ localizationKeys?: string[];
73
68
  }
74
69
  /** Property types */
75
- type ConfigPropertyTypes = 'boolean' | 'number' | 'string' | 'string[]' | 'element[]' | 'enum' | 'enum[]' | 'unknown' | 'unknown[]';
70
+ export type ConfigPropertyTypes = 'boolean' | 'number' | 'string' | 'string[]' | 'element[]' | 'enum' | 'enum[]' | 'unknown' | 'unknown[]';
76
71
  /**
77
72
  * Interface that check if the Nested configuration defined match the cms requirements
78
73
  * It only supports a 1 level depth object, containing primitive types (string | number | boolean)
79
74
  */
80
- interface NestedConfiguration {
81
- [key: string]: string | boolean | number;
75
+ export interface NestedConfiguration {
76
+ [key: string]: string | boolean | number;
82
77
  }
83
78
  /** Representation of a config field */
84
- interface ConfigProperty {
85
- /** Name of the configuration property */
86
- name: string;
87
- /** Description associated to the configuration property */
88
- description: string;
89
- /** Configuration type: string, number, boolean ... */
90
- type: ConfigPropertyTypes;
91
- /** Config property default value if primitive */
92
- value?: string;
93
- /** Config property default values if array of primitive */
94
- values?: (string | NestedConfiguration)[];
95
- /** Label to be used in the CMS for this config */
96
- label: string;
97
- /** Reference to the nested configuration if applicable */
98
- reference?: ItemIdentifier;
99
- /** List of possible value options */
100
- choices?: string[];
101
- /** The category of the config property */
102
- category?: string;
103
- /** The CMS widget information */
104
- widget?: ConfigPropertyWidget;
105
- /** If true, the CMS user must specify a value for the property */
106
- required?: boolean;
107
- /** Restriction keys */
108
- restrictionKeys?: string[];
79
+ export interface ConfigProperty {
80
+ /** Name of the configuration property */
81
+ name: string;
82
+ /** Description associated to the configuration property */
83
+ description: string;
84
+ /** Configuration type: string, number, boolean ... */
85
+ type: ConfigPropertyTypes;
86
+ /** Config property default value if primitive */
87
+ value?: string;
88
+ /** Config property default values if array of primitive */
89
+ values?: (string | NestedConfiguration)[];
90
+ /** Label to be used in the CMS for this config */
91
+ label: string;
92
+ /** Reference to the nested configuration if applicable */
93
+ reference?: ItemIdentifier;
94
+ /** List of possible value options */
95
+ choices?: string[];
96
+ /** The category of the config property */
97
+ category?: string;
98
+ /** The CMS widget information */
99
+ widget?: ConfigPropertyWidget;
100
+ /** If true, the CMS user must specify a value for the property */
101
+ required?: boolean;
102
+ /** Restriction keys */
103
+ restrictionKeys?: string[];
109
104
  }
110
105
  /**
111
106
  * Output generated for component config metadata
112
107
  */
113
- interface ComponentConfigOutput extends Output {
114
- /** Component's library */
115
- library: string;
116
- /** Component type */
117
- type: ComponentStructure;
118
- /** Flag for application config to identify it as a runtime config */
119
- runtime?: boolean;
120
- /** Title of the configuration property */
121
- title?: string;
122
- /** Description associated to the configuration property */
123
- description?: string;
124
- /** Configuration tags */
125
- tags?: string[];
126
- /** Configuration fields */
127
- properties: ConfigProperty[];
128
- /** Category (taken from `@o3rCategories` tag) */
129
- categories?: CategoryDescription[];
108
+ export interface ComponentConfigOutput extends Output {
109
+ /** Component's library */
110
+ library: string;
111
+ /** Component type */
112
+ type: ComponentStructure;
113
+ /** Flag for application config to identify it as a runtime config */
114
+ runtime?: boolean;
115
+ /** Title of the configuration property */
116
+ title?: string;
117
+ /** Description associated to the configuration property */
118
+ description?: string;
119
+ /** Configuration tags */
120
+ tags?: string[];
121
+ /** Configuration fields */
122
+ properties: ConfigProperty[];
123
+ /** Category (taken from `@o3rCategories` tag) */
124
+ categories?: CategoryDescription[];
130
125
  }
131
126
  /**
132
127
  * Output generated for component config metadata
133
128
  */
134
- interface ComponentConfigOutputs {
135
- /**
136
- * List of configuration output for a component
137
- */
138
- componentConfigOutput: ComponentConfigOutput[];
129
+ export interface ComponentConfigOutputs {
130
+ /**
131
+ * List of configuration output for a component
132
+ */
133
+ componentConfigOutput: ComponentConfigOutput[];
139
134
  }
140
135
  /**
141
136
  * Output generated for component metadata
142
137
  */
143
- interface ComponentOutput {
144
- components: ComponentClassOutput[];
145
- configurations: ComponentConfigOutput[];
138
+ export interface ComponentOutput {
139
+ components: ComponentClassOutput[];
140
+ configurations: ComponentConfigOutput[];
146
141
  }
147
-
148
142
  /**
149
143
  * Buffers and emits data for lazy/progressive rendering of big lists
150
144
  * That could solve issues with long-running tasks when trying to render an array
@@ -152,619 +146,610 @@ interface ComponentOutput {
152
146
  * @param delayMs Delay between data emits
153
147
  * @param concurrency Amount of elements that should be emitted at once
154
148
  */
155
- declare function lazyArray<T>(delayMs?: number, concurrency?: number): (source$: Observable<T[]>) => Observable<T[]>;
156
-
149
+ export declare function lazyArray<T>(delayMs?: number, concurrency?: number): (source$: Observable<T[]>) => Observable<T[]>;
157
150
  /**
158
151
  * Variable model from the placeholder reply
159
152
  */
160
- interface PlaceholderVariable {
161
- type: 'fact' | 'fullUrl' | 'relativeUrl' | 'localisation';
162
- value: string;
163
- parameters?: Record<string, string>;
164
- path?: string;
153
+ export interface PlaceholderVariable {
154
+ type: 'fact' | 'fullUrl' | 'relativeUrl' | 'localisation';
155
+ value: string;
156
+ parameters?: Record<string, string>;
157
+ path?: string;
165
158
  }
166
159
  /**
167
160
  * Raw JSON template coming back from the CMS or any other source
168
161
  */
169
- interface PlaceholderRequestReply {
170
- template?: string;
171
- vars?: Record<string, PlaceholderVariable>;
162
+ export interface PlaceholderRequestReply {
163
+ template?: string;
164
+ vars?: Record<string, PlaceholderVariable>;
172
165
  }
173
166
  /**
174
167
  * PlaceholderRequest model
175
168
  */
176
- interface PlaceholderRequestModel extends AsyncStoreItem, PlaceholderRequestReply {
177
- /** Raw URL that is not localized, ex: my_url/[LANGUAGE]/my_placeholder.json */
178
- id: string;
179
- /** Resolved URL that is localized, ex: my_url/en-GB/my_placeholder.json */
180
- resolvedUrl: string;
181
- /** Rendered template associated to the resolved URL, can be dynamic */
182
- renderedTemplate?: string;
183
- /** Unknown type found in the reply */
184
- unknownTypeFound?: boolean;
185
- /** A mechanism to cache previous request results for a given language. This boolean disables the dynamic rendering when it is set to false */
186
- used?: boolean;
169
+ export interface PlaceholderRequestModel extends AsyncStoreItem, PlaceholderRequestReply {
170
+ /** Raw URL that is not localized, ex: my_url/[LANGUAGE]/my_placeholder.json */
171
+ id: string;
172
+ /** Resolved URL that is localized, ex: my_url/en-GB/my_placeholder.json */
173
+ resolvedUrl: string;
174
+ /** Rendered template associated to the resolved URL, can be dynamic */
175
+ renderedTemplate?: string;
176
+ /** Unknown type found in the reply */
177
+ unknownTypeFound?: boolean;
178
+ /** A mechanism to cache previous request results for a given language. This boolean disables the dynamic rendering when it is set to false */
179
+ used?: boolean;
187
180
  }
188
181
  /**
189
182
  * PlaceholderRequest state details
190
183
  */
191
- interface PlaceholderRequestStateDetails extends AsyncStoreItem {
192
- }
184
+ export interface PlaceholderRequestStateDetails extends AsyncStoreItem {}
193
185
  /**
194
186
  * PlaceholderRequest store state
195
187
  */
196
- interface PlaceholderRequestState extends EntityState<PlaceholderRequestModel>, PlaceholderRequestStateDetails {
197
- }
188
+ export interface PlaceholderRequestState extends EntityState<PlaceholderRequestModel>, PlaceholderRequestStateDetails {}
198
189
  /**
199
190
  * Name of the PlaceholderRequest Store
200
191
  */
201
- declare const PLACEHOLDER_REQUEST_STORE_NAME = "placeholderRequest";
192
+ export declare const PLACEHOLDER_REQUEST_STORE_NAME = "placeholderRequest";
202
193
  /**
203
194
  * PlaceholderRequest Store Interface
204
195
  */
205
- interface PlaceholderRequestStore {
206
- /** PlaceholderRequest state */
207
- [PLACEHOLDER_REQUEST_STORE_NAME]: PlaceholderRequestState;
196
+ export interface PlaceholderRequestStore {
197
+ /** PlaceholderRequest state */
198
+ [PLACEHOLDER_REQUEST_STORE_NAME]: PlaceholderRequestState;
208
199
  }
209
-
210
200
  /** Action to cancel a Request ID registered in the store. Can happen from effect based on a switchMap for instance */
211
- declare const cancelPlaceholderRequest: _ngrx_store.ActionCreator<"[PlaceholderRequest] cancel request", (props: AsyncRequest & {
212
- id: string;
201
+ export declare const cancelPlaceholderRequest: import("@ngrx/store").ActionCreator<"[PlaceholderRequest] cancel request", (props: AsyncRequest & {
202
+ id: string;
213
203
  }) => AsyncRequest & {
214
- id: string;
215
- } & _ngrx_store.Action<"[PlaceholderRequest] cancel request">>;
204
+ id: string;
205
+ } & import("@ngrx/store").Action<"[PlaceholderRequest] cancel request">>;
216
206
  /** Action to update failureStatus for PlaceholderRequestModels */
217
- declare const failPlaceholderRequestEntity: _ngrx_store.ActionCreator<"[PlaceholderRequest] fail entities", (props: FailAsyncStoreItemEntitiesActionPayload<any>) => FailAsyncStoreItemEntitiesActionPayload<any> & _ngrx_store.Action<"[PlaceholderRequest] fail entities">>;
207
+ export declare const failPlaceholderRequestEntity: import("@ngrx/store").ActionCreator<"[PlaceholderRequest] fail entities", (props: FailAsyncStoreItemEntitiesActionPayload<any>) => FailAsyncStoreItemEntitiesActionPayload<any> & import("@ngrx/store").Action<"[PlaceholderRequest] fail entities">>;
218
208
  /** Action to update an entity */
219
- declare const updatePlaceholderRequestEntity: _ngrx_store.ActionCreator<"[PlaceholderRequest] update entity", (props: UpdateAsyncStoreItemEntityActionPayloadWithId<PlaceholderRequestModel>) => UpdateAsyncStoreItemEntityActionPayloadWithId<PlaceholderRequestModel> & _ngrx_store.Action<"[PlaceholderRequest] update entity">>;
209
+ export declare const updatePlaceholderRequestEntity: import("@ngrx/store").ActionCreator<"[PlaceholderRequest] update entity", (props: UpdateAsyncStoreItemEntityActionPayloadWithId<PlaceholderRequestModel>) => UpdateAsyncStoreItemEntityActionPayloadWithId<PlaceholderRequestModel> & import("@ngrx/store").Action<"[PlaceholderRequest] update entity">>;
220
210
  /** Action to update an entity without impact on request id */
221
- declare const updatePlaceholderRequestEntitySync: _ngrx_store.ActionCreator<"[PlaceholderRequest] update entity sync", (props: UpdateEntityActionPayloadWithId<PlaceholderRequestModel>) => UpdateEntityActionPayloadWithId<PlaceholderRequestModel> & _ngrx_store.Action<"[PlaceholderRequest] update entity sync">>;
211
+ export declare const updatePlaceholderRequestEntitySync: import("@ngrx/store").ActionCreator<"[PlaceholderRequest] update entity sync", (props: UpdateEntityActionPayloadWithId<PlaceholderRequestModel>) => UpdateEntityActionPayloadWithId<PlaceholderRequestModel> & import("@ngrx/store").Action<"[PlaceholderRequest] update entity sync">>;
222
212
  /** Action to update PlaceholderRequest with known IDs, will create the entity with only the url, the call will be created in the effect */
223
- declare const setPlaceholderRequestEntityFromUrl: _ngrx_store.FunctionWithParametersType<[props: FromApiActionPayload<PlaceholderRequestReply> & {
224
- resolvedUrl: string;
225
- id: string;
213
+ export declare const setPlaceholderRequestEntityFromUrl: import("@ngrx/store").FunctionWithParametersType<[props: FromApiActionPayload<PlaceholderRequestReply> & {
214
+ resolvedUrl: string;
215
+ id: string;
226
216
  }], FromApiActionPayload<PlaceholderRequestReply> & {
227
- resolvedUrl: string;
228
- id: string;
229
- } & AsyncRequest & _ngrx_store.Action<"[PlaceholderRequest] set entity from url">> & _ngrx_store.Action<"[PlaceholderRequest] set entity from url">;
230
-
217
+ resolvedUrl: string;
218
+ id: string;
219
+ } & AsyncRequest & import("@ngrx/store").Action<"[PlaceholderRequest] set entity from url">> & import("@ngrx/store").Action<"[PlaceholderRequest] set entity from url">;
231
220
  /** Token of the PlaceholderRequest reducer */
232
- declare const PLACEHOLDER_REQUEST_REDUCER_TOKEN: InjectionToken<ActionReducer<PlaceholderRequestState, Action<string>>>;
221
+ export declare const PLACEHOLDER_REQUEST_REDUCER_TOKEN: InjectionToken<ActionReducer<PlaceholderRequestState, Action<string>>>;
233
222
  /** Provide default reducer for PlaceholderRequest store */
234
- declare function getDefaultplaceholderRequestReducer(): ActionReducer<PlaceholderRequestState, Action<string>>;
223
+ export declare function getDefaultplaceholderRequestReducer(): ActionReducer<PlaceholderRequestState, Action<string>>;
235
224
  /**
236
225
  * @deprecated Will be removed in v16. Use {@link providePlaceholderRequestStore} instead.
237
226
  */
238
- declare class PlaceholderRequestStoreModule {
239
- static forRoot<T extends PlaceholderRequestState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<PlaceholderRequestStoreModule>;
240
- static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderRequestStoreModule, never>;
241
- static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceholderRequestStoreModule, never, [typeof _ngrx_store.StoreFeatureModule], never>;
242
- static ɵinj: i0.ɵɵInjectorDeclaration<PlaceholderRequestStoreModule>;
227
+ export declare class PlaceholderRequestStoreModule {
228
+ static forRoot<T extends PlaceholderRequestState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<PlaceholderRequestStoreModule>;
229
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderRequestStoreModule, never>;
230
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceholderRequestStoreModule, never, [typeof i1$1.StoreFeatureModule], never>;
231
+ static ɵinj: i0.ɵɵInjectorDeclaration<PlaceholderRequestStoreModule>;
243
232
  }
244
233
  /**
245
234
  * Provide PlaceholderRequest feature store.
246
235
  * @param reducerFactory Optional factory to override the default reducer.
247
236
  */
248
- declare function providePlaceholderRequestStore(reducerFactory?: () => ActionReducer<PlaceholderRequestState, Action>): EnvironmentProviders;
249
-
237
+ export declare function providePlaceholderRequestStore(reducerFactory?: () => ActionReducer<PlaceholderRequestState, Action>): EnvironmentProviders;
250
238
  /**
251
239
  * PlaceholderRequest Store adapter
252
240
  */
253
- declare const placeholderRequestAdapter: _o3r_core.EntityAsyncRequestAdapter<PlaceholderRequestModel>;
241
+ export declare const placeholderRequestAdapter: import("@o3r/core").EntityAsyncRequestAdapter<PlaceholderRequestModel>;
254
242
  /**
255
243
  * PlaceholderRequest Store initial value
256
244
  */
257
- declare const placeholderRequestInitialState: PlaceholderRequestState;
245
+ export declare const placeholderRequestInitialState: PlaceholderRequestState;
258
246
  /**
259
247
  * Reducers of Placeholder request store that handles the call to the placeholder template URL
260
248
  */
261
- declare const placeholderRequestReducerFeatures: ReducerTypes<PlaceholderRequestState, ActionCreator[]>[];
249
+ export declare const placeholderRequestReducerFeatures: ReducerTypes<PlaceholderRequestState, ActionCreator[]>[];
262
250
  /**
263
251
  * PlaceholderRequest Store reducer
264
252
  */
265
- declare const placeholderRequestReducer: _ngrx_store.ActionReducer<PlaceholderRequestState, _ngrx_store.Action<string>>;
266
-
267
- declare const selectPlaceholderRequestState: _ngrx_store.MemoizedSelector<object, PlaceholderRequestState, _ngrx_store.DefaultProjectorFn<PlaceholderRequestState>>;
253
+ export declare const placeholderRequestReducer: import("@ngrx/store").ActionReducer<PlaceholderRequestState, import("@ngrx/store").Action<string>>;
254
+ export declare const selectPlaceholderRequestState: import("@ngrx/store").MemoizedSelector<object, PlaceholderRequestState, import("@ngrx/store").DefaultProjectorFn<PlaceholderRequestState>>;
268
255
  /** Select the dictionary of PlaceholderRequest entities */
269
- declare const selectPlaceholderRequestEntities: _ngrx_store.MemoizedSelector<object, _ngrx_entity.Dictionary<_o3r_components.PlaceholderRequestModel>, (s1: PlaceholderRequestState) => _ngrx_entity.Dictionary<_o3r_components.PlaceholderRequestModel>>;
256
+ export declare const selectPlaceholderRequestEntities: import("@ngrx/store").MemoizedSelector<object, import("@ngrx/entity").Dictionary<import("@o3r/components").PlaceholderRequestModel>, (s1: PlaceholderRequestState) => import("@ngrx/entity").Dictionary<import("@o3r/components").PlaceholderRequestModel>>;
270
257
  /**
271
258
  * Select a specific PlaceholderRequest entity using a raw url as id
272
259
  * @param rawUrl
273
260
  */
274
- declare const selectPlaceholderRequestEntityUsage: (rawUrl: string) => _ngrx_store.MemoizedSelector<object, boolean | undefined, (s1: PlaceholderRequestState) => boolean | undefined>;
275
-
276
- declare const placeholderRequestStorageSerializer: typeof asyncEntitySerializer;
277
- declare const placeholderRequestStorageDeserializer: (rawObject: any) => PlaceholderRequestState;
278
- declare const placeholderRequestStorageSync: Readonly<Serializer<PlaceholderRequestState>>;
279
-
261
+ export declare const selectPlaceholderRequestEntityUsage: (rawUrl: string) => import("@ngrx/store").MemoizedSelector<object, boolean | undefined, (s1: PlaceholderRequestState) => boolean | undefined>;
262
+ export declare const placeholderRequestStorageSerializer: typeof asyncEntitySerializer;
263
+ export declare const placeholderRequestStorageDeserializer: (rawObject: any) => PlaceholderRequestState;
264
+ export declare const placeholderRequestStorageSync: Readonly<Serializer<PlaceholderRequestState>>;
280
265
  /**
281
266
  * PlaceholderTemplate model
282
267
  */
283
- interface PlaceholderTemplateModel {
284
- /** Placeholder id that is unique*/
285
- id: string;
286
- /** Urls to the templates to be fetched, and priority for rendering order */
287
- urlsWithPriority: {
288
- rawUrl: string;
289
- priority: number;
290
- }[];
268
+ export interface PlaceholderTemplateModel {
269
+ /** Placeholder id that is unique*/
270
+ id: string;
271
+ /** Urls to the templates to be fetched, and priority for rendering order */
272
+ urlsWithPriority: {
273
+ rawUrl: string;
274
+ priority: number;
275
+ }[];
291
276
  }
292
277
  /** Possible placeholder mode */
293
- type PlaceholderMode = 'normal' | 'debug' | 'pending';
278
+ export type PlaceholderMode = 'normal' | 'debug' | 'pending';
294
279
  /**
295
280
  * PlaceholderTemplate store state
296
281
  */
297
- interface PlaceholderTemplateState extends EntityState<PlaceholderTemplateModel> {
298
- mode: PlaceholderMode;
282
+ export interface PlaceholderTemplateState extends EntityState<PlaceholderTemplateModel> {
283
+ mode: PlaceholderMode;
299
284
  }
300
285
  /**
301
286
  * Name of the PlaceholderTemplate Store
302
287
  */
303
- declare const PLACEHOLDER_TEMPLATE_STORE_NAME = "placeholderTemplate";
288
+ export declare const PLACEHOLDER_TEMPLATE_STORE_NAME = "placeholderTemplate";
304
289
  /**
305
290
  * PlaceholderTemplate Store Interface
306
291
  */
307
- interface PlaceholderTemplateStore {
308
- /** PlaceholderTemplate state */
309
- [PLACEHOLDER_TEMPLATE_STORE_NAME]: PlaceholderTemplateState;
292
+ export interface PlaceholderTemplateStore {
293
+ /** PlaceholderTemplate state */
294
+ [PLACEHOLDER_TEMPLATE_STORE_NAME]: PlaceholderTemplateState;
310
295
  }
311
-
312
296
  /** Action to delete a specific entity */
313
- declare const deletePlaceholderTemplateEntity: _ngrx_store.ActionCreator<"[PlaceholderTemplate] delete entity", (props: {
314
- id: string;
297
+ export declare const deletePlaceholderTemplateEntity: import("@ngrx/store").ActionCreator<"[PlaceholderTemplate] delete entity", (props: {
298
+ id: string;
315
299
  }) => {
316
- id: string;
317
- } & _ngrx_store.Action<"[PlaceholderTemplate] delete entity">>;
300
+ id: string;
301
+ } & import("@ngrx/store").Action<"[PlaceholderTemplate] delete entity">>;
318
302
  /** Action to clear all placeholderTemplate and fill the store with the payload */
319
- declare const setPlaceholderTemplateEntity: _ngrx_store.ActionCreator<"[PlaceholderTemplate] set entity", (props: SetEntityActionPayload<PlaceholderTemplateModel>) => SetEntityActionPayload<PlaceholderTemplateModel> & _ngrx_store.Action<"[PlaceholderTemplate] set entity">>;
320
- declare const togglePlaceholderModeTemplate: _ngrx_store.ActionCreator<"[PlaceholderTemplate] toggle mode", (props: {
321
- mode: PlaceholderMode;
303
+ export declare const setPlaceholderTemplateEntity: import("@ngrx/store").ActionCreator<"[PlaceholderTemplate] set entity", (props: SetEntityActionPayload<PlaceholderTemplateModel>) => SetEntityActionPayload<PlaceholderTemplateModel> & import("@ngrx/store").Action<"[PlaceholderTemplate] set entity">>;
304
+ export declare const togglePlaceholderModeTemplate: import("@ngrx/store").ActionCreator<"[PlaceholderTemplate] toggle mode", (props: {
305
+ mode: PlaceholderMode;
322
306
  }) => {
323
- mode: PlaceholderMode;
324
- } & _ngrx_store.Action<"[PlaceholderTemplate] toggle mode">>;
325
-
307
+ mode: PlaceholderMode;
308
+ } & import("@ngrx/store").Action<"[PlaceholderTemplate] toggle mode">>;
326
309
  /** Token of the PlaceholderTemplate reducer */
327
- declare const PLACEHOLDER_TEMPLATE_REDUCER_TOKEN: InjectionToken<ActionReducer<PlaceholderTemplateState, Action<string>>>;
310
+ export declare const PLACEHOLDER_TEMPLATE_REDUCER_TOKEN: InjectionToken<ActionReducer<PlaceholderTemplateState, Action<string>>>;
328
311
  /** Provide default reducer for PlaceholderTemplate store */
329
- declare function getDefaultPlaceholderTemplateReducer(): ActionReducer<PlaceholderTemplateState, Action<string>>;
312
+ export declare function getDefaultPlaceholderTemplateReducer(): ActionReducer<PlaceholderTemplateState, Action<string>>;
330
313
  /**
331
314
  * @deprecated Will be removed in v16. Use {@link providePlaceholderTemplateStore} instead.
332
315
  */
333
- declare class PlaceholderTemplateStoreModule {
334
- static forRoot<T extends PlaceholderTemplateState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<PlaceholderTemplateStoreModule>;
335
- static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderTemplateStoreModule, never>;
336
- static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceholderTemplateStoreModule, never, [typeof _ngrx_store.StoreFeatureModule], never>;
337
- static ɵinj: i0.ɵɵInjectorDeclaration<PlaceholderTemplateStoreModule>;
316
+ export declare class PlaceholderTemplateStoreModule {
317
+ static forRoot<T extends PlaceholderTemplateState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<PlaceholderTemplateStoreModule>;
318
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderTemplateStoreModule, never>;
319
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceholderTemplateStoreModule, never, [typeof i1$1.StoreFeatureModule], never>;
320
+ static ɵinj: i0.ɵɵInjectorDeclaration<PlaceholderTemplateStoreModule>;
338
321
  }
339
322
  /**
340
323
  * Provide PlaceholderTemplate feature store.
341
324
  * @param reducerFactory Optional factory to override the default reducer.
342
325
  */
343
- declare function providePlaceholderTemplateStore(reducerFactory?: () => ActionReducer<PlaceholderTemplateState, Action>): EnvironmentProviders;
344
-
326
+ export declare function providePlaceholderTemplateStore(reducerFactory?: () => ActionReducer<PlaceholderTemplateState, Action>): EnvironmentProviders;
345
327
  /**
346
328
  * PlaceholderTemplate Store adapter
347
329
  */
348
- declare const placeholderTemplateAdapter: _ngrx_entity.EntityAdapter<PlaceholderTemplateModel, string>;
330
+ export declare const placeholderTemplateAdapter: import("@ngrx/entity").EntityAdapter<PlaceholderTemplateModel, string>;
349
331
  /**
350
332
  * PlaceholderTemplate Store initial value
351
333
  */
352
- declare const placeholderTemplateInitialState: PlaceholderTemplateState;
334
+ export declare const placeholderTemplateInitialState: PlaceholderTemplateState;
353
335
  /**
354
336
  * List of basic actions for PlaceholderTemplate Store
355
337
  */
356
- declare const placeholderTemplateReducerFeatures: ReducerTypes<PlaceholderTemplateState, ActionCreator[]>[];
338
+ export declare const placeholderTemplateReducerFeatures: ReducerTypes<PlaceholderTemplateState, ActionCreator[]>[];
357
339
  /**
358
340
  * PlaceholderTemplate Store reducer
359
341
  */
360
- declare const placeholderTemplateReducer: _ngrx_store.ActionReducer<PlaceholderTemplateState, _ngrx_store.Action<string>>;
361
-
362
- declare const selectPlaceholderTemplateState: _ngrx_store.MemoizedSelector<object, PlaceholderTemplateState, _ngrx_store.DefaultProjectorFn<PlaceholderTemplateState>>;
342
+ export declare const placeholderTemplateReducer: import("@ngrx/store").ActionReducer<PlaceholderTemplateState, import("@ngrx/store").Action<string>>;
343
+ export declare const selectPlaceholderTemplateState: import("@ngrx/store").MemoizedSelector<object, PlaceholderTemplateState, import("@ngrx/store").DefaultProjectorFn<PlaceholderTemplateState>>;
363
344
  /** Select the dictionary of PlaceholderTemplate entities */
364
- declare const selectPlaceholderTemplateEntities: _ngrx_store.MemoizedSelector<object, _ngrx_entity.Dictionary<_o3r_components.PlaceholderTemplateModel>, (s1: PlaceholderTemplateState) => _ngrx_entity.Dictionary<_o3r_components.PlaceholderTemplateModel>>;
345
+ export declare const selectPlaceholderTemplateEntities: import("@ngrx/store").MemoizedSelector<object, import("@ngrx/entity").Dictionary<import("@o3r/components").PlaceholderTemplateModel>, (s1: PlaceholderTemplateState) => import("@ngrx/entity").Dictionary<import("@o3r/components").PlaceholderTemplateModel>>;
365
346
  /**
366
347
  * Select a specific PlaceholderTemplate
367
348
  * @param placeholderId
368
349
  */
369
- declare const selectPlaceholderTemplateEntity: (placeholderId: string) => _ngrx_store.MemoizedSelector<object, _o3r_components.PlaceholderTemplateModel | undefined, (s1: PlaceholderTemplateState) => _o3r_components.PlaceholderTemplateModel | undefined>;
350
+ export declare const selectPlaceholderTemplateEntity: (placeholderId: string) => import("@ngrx/store").MemoizedSelector<object, import("@o3r/components").PlaceholderTemplateModel | undefined, (s1: PlaceholderTemplateState) => import("@o3r/components").PlaceholderTemplateModel | undefined>;
370
351
  /**
371
352
  * Select the ordered rendered placeholder template full data (url, priority etc.) for a given placeholderId
372
353
  * Return undefined if the placeholder is not found
373
354
  * Returns {orderedRenderedTemplates: undefined, isPending: true} if any of the request is still pending
374
355
  * @param placeholderId
375
356
  */
376
- declare const selectSortedTemplates: (placeholderId: string) => _ngrx_store.MemoizedSelector<object, {
377
- orderedTemplates: undefined;
378
- isPending: never;
357
+ export declare const selectSortedTemplates: (placeholderId: string) => import("@ngrx/store").MemoizedSelector<object, {
358
+ orderedTemplates: undefined;
359
+ isPending: never;
379
360
  } | {
380
- orderedTemplates: {
381
- rawUrl: string;
382
- priority: number;
383
- renderedTemplate?: string;
384
- resolvedUrl: string;
385
- }[];
386
- isPending: boolean;
387
- } | undefined, (s1: _o3r_components.PlaceholderTemplateModel | undefined, s2: _o3r_components.PlaceholderRequestState) => {
388
- orderedTemplates: undefined;
389
- isPending: never;
361
+ orderedTemplates: {
362
+ rawUrl: string;
363
+ priority: number;
364
+ renderedTemplate?: string;
365
+ resolvedUrl: string;
366
+ }[];
367
+ isPending: boolean;
368
+ } | undefined, (s1: import("@o3r/components").PlaceholderTemplateModel | undefined, s2: import("@o3r/components").PlaceholderRequestState) => {
369
+ orderedTemplates: undefined;
370
+ isPending: never;
390
371
  } | {
391
- orderedTemplates: {
392
- rawUrl: string;
393
- priority: number;
394
- renderedTemplate?: string;
395
- resolvedUrl: string;
396
- }[];
397
- isPending: boolean;
372
+ orderedTemplates: {
373
+ rawUrl: string;
374
+ priority: number;
375
+ renderedTemplate?: string;
376
+ resolvedUrl: string;
377
+ }[];
378
+ isPending: boolean;
398
379
  } | undefined>;
399
- declare const selectPlaceholderTemplateMode: _ngrx_store.MemoizedSelector<object, _o3r_components.PlaceholderMode, (s1: PlaceholderTemplateState) => _o3r_components.PlaceholderMode>;
400
-
401
- declare const placeholderTemplateStorageDeserializer: (rawObject: any) => PlaceholderTemplateState;
402
- declare const placeholderTemplateStorageSync: Readonly<Serializer<PlaceholderTemplateState>>;
403
-
380
+ export declare const selectPlaceholderTemplateMode: import("@ngrx/store").MemoizedSelector<object, import("@o3r/components").PlaceholderMode, (s1: PlaceholderTemplateState) => import("@o3r/components").PlaceholderMode>;
381
+ export declare const placeholderTemplateStorageDeserializer: (rawObject: any) => PlaceholderTemplateState;
382
+ export declare const placeholderTemplateStorageSync: Readonly<Serializer<PlaceholderTemplateState>>;
404
383
  /**
405
384
  * Model to describe a group of elements
406
385
  */
407
386
  interface GroupInfo {
408
- /**
409
- * Text color for the {@link displayName}
410
- */
411
- color?: string;
412
- /**
413
- * Color of the border of the element once highlighted
414
- */
415
- backgroundColor: string;
416
- /**
417
- * Name of the group display
418
- */
419
- displayName: string;
420
- /**
421
- * Regexp to detect the elements part of the group
422
- */
423
- regexp: string;
424
- }
425
-
426
- interface Ng {
427
- /**
428
- * Retrieves the component instance associated with a given DOM element.
429
- *
430
- * Usage:
431
- *
432
- * Given the following DOM structure:
433
- * ```html
434
- * <my-app>
435
- * <div>
436
- * <child-comp></child-comp>
437
- * </div>
438
- * </my-app>
439
- * ```
440
- * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`
441
- * associated with this DOM element.
442
- *
443
- * Calling the function on `<my-app>` will return the `MyApp` instance.
444
- * @param element DOM element from which the component should be retrieved.
445
- * @returns Component instance associated with the element or `null` if there
446
- * is no component associated with it.
447
- */
448
- getComponent<T = any>(element: Element): T | null;
449
- /**
450
- * Retrieves the component instance whose view contains the DOM element.
451
- *
452
- * For example, if `<child-comp>` is used in the template of `<app-comp>`
453
- * (i.e. a `ViewChild` of `<app-comp>`), calling `getOwningComponent` on `<child-comp>`
454
- * would return `<app-comp>`.
455
- * @param elementOrDir DOM element, component or directive instance
456
- * for which to retrieve the root components.
457
- * @returns Component instance whose view owns the DOM element or null if the element is not
458
- * part of a component view.
459
- */
460
- getOwningComponent<T = any>(elementOrDir: Element | object): T | null;
461
- /**
462
- * Retrieves the host element of a component or directive instance.
463
- * The host element is the DOM element that matched the selector of the directive.
464
- * @param componentOrDirective Component or directive instance for which the host
465
- * element should be retrieved.
466
- * @returns Host element of the target.
467
- */
468
- getHostElement(componentOrDirective: object): Element;
469
- }
470
-
471
- interface OtterLikeComponentInfo {
472
- /** Container information */
473
- container?: OtterLikeComponentInfo;
474
- /** Configuration ID */
475
- configId?: string;
476
- /** Component name */
477
- componentName: string;
478
- /** Component translation */
479
- translations?: Record<string, string[]>;
480
- /** Component analytics */
481
- analytics?: Record<string, string[]>;
387
+ /**
388
+ * Text color for the {@link displayName}
389
+ */
390
+ color?: string;
391
+ /**
392
+ * Color of the border of the element once highlighted
393
+ */
394
+ backgroundColor: string;
395
+ /**
396
+ * Name of the group display
397
+ */
398
+ displayName: string;
399
+ /**
400
+ * Regexp to detect the elements part of the group
401
+ */
402
+ regexp: string;
403
+ }
404
+ export interface Ng {
405
+ /**
406
+ * Retrieves the component instance associated with a given DOM element.
407
+ *
408
+ * Usage:
409
+ *
410
+ * Given the following DOM structure:
411
+ * ```html
412
+ * <my-app>
413
+ * <div>
414
+ * <child-comp></child-comp>
415
+ * </div>
416
+ * </my-app>
417
+ * ```
418
+ * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`
419
+ * associated with this DOM element.
420
+ *
421
+ * Calling the function on `<my-app>` will return the `MyApp` instance.
422
+ * @param element DOM element from which the component should be retrieved.
423
+ * @returns Component instance associated with the element or `null` if there
424
+ * is no component associated with it.
425
+ */
426
+ getComponent<T = any>(element: Element): T | null;
427
+ /**
428
+ * Retrieves the component instance whose view contains the DOM element.
429
+ *
430
+ * For example, if `<child-comp>` is used in the template of `<app-comp>`
431
+ * (i.e. a `ViewChild` of `<app-comp>`), calling `getOwningComponent` on `<child-comp>`
432
+ * would return `<app-comp>`.
433
+ * @param elementOrDir DOM element, component or directive instance
434
+ * for which to retrieve the root components.
435
+ * @returns Component instance whose view owns the DOM element or null if the element is not
436
+ * part of a component view.
437
+ */
438
+ getOwningComponent<T = any>(elementOrDir: Element | object): T | null;
439
+ /**
440
+ * Retrieves the host element of a component or directive instance.
441
+ * The host element is the DOM element that matched the selector of the directive.
442
+ * @param componentOrDirective Component or directive instance for which the host
443
+ * element should be retrieved.
444
+ * @returns Host element of the target.
445
+ */
446
+ getHostElement(componentOrDirective: object): Element;
447
+ }
448
+ export interface OtterLikeComponentInfo {
449
+ /** Container information */
450
+ container?: OtterLikeComponentInfo;
451
+ /** Configuration ID */
452
+ configId?: string;
453
+ /** Component name */
454
+ componentName: string;
455
+ /** Component translation */
456
+ translations?: Record<string, string[]>;
457
+ /** Component analytics */
458
+ analytics?: Record<string, string[]>;
482
459
  }
483
460
  /**
484
461
  * Otter inspector css class
485
462
  */
486
- declare const INSPECTOR_CLASS = "otter-devtools-inspector";
463
+ export declare const INSPECTOR_CLASS = "otter-devtools-inspector";
487
464
  /**
488
465
  * Determine if a node is an Otter container
489
466
  * @param node Element to check
490
467
  * @returns true if the node is an Otter container
491
468
  */
492
- declare const isContainer: (node: Element | undefined | null) => node is Element;
469
+ export declare const isContainer: (node: Element | undefined | null) => node is Element;
493
470
  /**
494
471
  * Determine the config id of a component instance
495
472
  * @param instance component instance
496
473
  * @returns the config id of the component instance
497
474
  */
498
- declare const getConfigId: (instance: any) => any;
475
+ export declare const getConfigId: (instance: any) => any;
499
476
  /**
500
477
  * Recursive method to determin the translations of a node
501
478
  * @param node HTMLElement to check
502
479
  * @param rec recursive method
503
480
  * @returns the trasnslations associated to their component name
504
481
  */
505
- declare function getTranslationsRec(node: Element | null, rec: typeof getTranslationsRec): Record<string, string[]> | undefined;
482
+ export declare function getTranslationsRec(node: Element | null, rec: typeof getTranslationsRec): Record<string, string[]> | undefined;
506
483
  /**
507
484
  * Determine the translations of a node
508
485
  * @param node HTMLElement to check
509
486
  * @returns the translations associated to their component name
510
487
  */
511
- declare const getTranslations: (node: Element | null) => Record<string, string[]> | undefined;
488
+ export declare const getTranslations: (node: Element | null) => Record<string, string[]> | undefined;
512
489
  /**
513
490
  * Recursive method to determine the analytics of a node
514
491
  * @param node Element to check
515
492
  * @param rec recursive method
516
493
  * @returns the analytics associated to their component name
517
494
  */
518
- declare function getAnalyticEventsRec(node: Element | null, rec: typeof getAnalyticEventsRec): Record<string, string[]> | undefined;
495
+ export declare function getAnalyticEventsRec(node: Element | null, rec: typeof getAnalyticEventsRec): Record<string, string[]> | undefined;
519
496
  /**
520
497
  * Determine the analytics of a node
521
498
  * @param node Element to check
522
499
  * @returns the analytics associated to their component name
523
500
  */
524
- declare const getAnalyticEvents: (node: Element | null) => Record<string, string[]> | undefined;
501
+ export declare const getAnalyticEvents: (node: Element | null) => Record<string, string[]> | undefined;
525
502
  /**
526
503
  * Determine all info from an Otter component
527
504
  * @param componentClassInstance component instance
528
505
  * @param host HTML element hosting the component
529
506
  * @returns all info from an Otter component
530
507
  */
531
- declare const getOtterLikeComponentInfo: (componentClassInstance: any, host: Element) => OtterLikeComponentInfo;
532
-
508
+ export declare const getOtterLikeComponentInfo: (componentClassInstance: any, host: Element) => OtterLikeComponentInfo;
533
509
  /**
534
510
  * Service to handle the custom inspector for the Otter Devtools Chrome extension.
535
511
  */
536
- declare class OtterInspectorService {
537
- private readonly angularDevTools;
538
- private readonly elementMouseOverCallback;
539
- private readonly elementClickCallback;
540
- private readonly cancelEventCallback;
541
- private selectedComponent;
542
- private inspectorDiv;
543
- private readonly otterLikeComponentInfoToBeSent;
544
- /**
545
- * Stream of component info to be sent to the extension app.
546
- */
547
- otterLikeComponentInfoToBeSent$: Observable<OtterLikeComponentInfo | undefined>;
548
- constructor();
549
- private startInspecting;
550
- private elementClick;
551
- private isOtterLikeComponent;
552
- private findComponentInfo;
553
- private elementMouseOver;
554
- private highlight;
555
- private unHighlight;
556
- private cancelEvent;
557
- /**
558
- * Prepare the inspector div and add it to the DOM.
559
- */
560
- prepareInspector(): void;
561
- /**
562
- * Toggle the inspector.
563
- * @param isRunning true if the inspector is running
564
- */
565
- toggleInspector(isRunning: boolean): void;
566
- stopInspecting(): void;
567
- }
568
-
512
+ export declare class OtterInspectorService {
513
+ private readonly angularDevTools;
514
+ private readonly elementMouseOverCallback;
515
+ private readonly elementClickCallback;
516
+ private readonly cancelEventCallback;
517
+ private selectedComponent;
518
+ private inspectorDiv;
519
+ private readonly otterLikeComponentInfoToBeSent;
520
+ /**
521
+ * Stream of component info to be sent to the extension app.
522
+ */
523
+ otterLikeComponentInfoToBeSent$: Observable<OtterLikeComponentInfo | undefined>;
524
+ constructor();
525
+ private startInspecting;
526
+ private elementClick;
527
+ private isOtterLikeComponent;
528
+ private findComponentInfo;
529
+ private elementMouseOver;
530
+ private highlight;
531
+ private unHighlight;
532
+ private cancelEvent;
533
+ /**
534
+ * Prepare the inspector div and add it to the DOM.
535
+ */
536
+ prepareInspector(): void;
537
+ /**
538
+ * Toggle the inspector.
539
+ * @param isRunning true if the inspector is running
540
+ */
541
+ toggleInspector(isRunning: boolean): void;
542
+ stopInspecting(): void;
543
+ }
569
544
  /**
570
545
  * Component Devtools options
571
546
  */
572
- interface ComponentsDevtoolsServiceOptions extends DevtoolsCommonOptions {
573
- }
547
+ export interface ComponentsDevtoolsServiceOptions extends DevtoolsCommonOptions {}
574
548
  /**
575
549
  * Message to give the selected component information
576
550
  */
577
- interface SelectedComponentInfoMessage extends OtterLikeComponentInfo, OtterMessageContent<'selectedComponentInfo'> {
578
- }
551
+ export interface SelectedComponentInfoMessage extends OtterLikeComponentInfo, OtterMessageContent<'selectedComponentInfo'> {}
579
552
  /**
580
553
  * Message to toggle the inspector
581
554
  */
582
- interface ToggleInspectorMessage extends OtterMessageContent<'toggleInspector'> {
583
- /** Is the inspector running */
584
- isRunning: boolean;
555
+ export interface ToggleInspectorMessage extends OtterMessageContent<'toggleInspector'> {
556
+ /** Is the inspector running */
557
+ isRunning: boolean;
585
558
  }
586
559
  /**
587
560
  * Message to toggle the highlight
588
561
  */
589
- interface ToggleHighlightMessage extends OtterMessageContent<'toggleHighlight'> {
590
- /** Is the highlight displayed */
591
- isRunning: boolean;
562
+ export interface ToggleHighlightMessage extends OtterMessageContent<'toggleHighlight'> {
563
+ /** Is the highlight displayed */
564
+ isRunning: boolean;
592
565
  }
593
566
  /**
594
567
  * Message the change the configuration of the `HighlightService`
595
568
  */
596
- interface ChangeHighlightConfiguration extends OtterMessageContent<'changeHighlightConfiguration'> {
597
- /**
598
- * Minimum width of HTMLElement to be considered
599
- */
600
- elementMinWidth?: number;
601
- /**
602
- * Minimum height of HTMLElement to be considered
603
- */
604
- elementMinHeight?: number;
605
- /**
606
- * Throttle interval
607
- */
608
- throttleInterval?: number;
609
- /**
610
- * Group information to detect elements
611
- */
612
- groupsInfo?: Record<string, GroupInfo>;
613
- /**
614
- * Maximum number of ancestors
615
- */
616
- maxDepth?: number;
617
- /**
618
- * Opacity of the chips
619
- */
620
- chipsOpacity?: number;
621
- /**
622
- * Auto refresh
623
- */
624
- autoRefresh?: boolean;
569
+ export interface ChangeHighlightConfiguration extends OtterMessageContent<'changeHighlightConfiguration'> {
570
+ /**
571
+ * Minimum width of HTMLElement to be considered
572
+ */
573
+ elementMinWidth?: number;
574
+ /**
575
+ * Minimum height of HTMLElement to be considered
576
+ */
577
+ elementMinHeight?: number;
578
+ /**
579
+ * Throttle interval
580
+ */
581
+ throttleInterval?: number;
582
+ /**
583
+ * Group information to detect elements
584
+ */
585
+ groupsInfo?: Record<string, GroupInfo>;
586
+ /**
587
+ * Maximum number of ancestors
588
+ */
589
+ maxDepth?: number;
590
+ /**
591
+ * Opacity of the chips
592
+ */
593
+ chipsOpacity?: number;
594
+ /**
595
+ * Auto refresh
596
+ */
597
+ autoRefresh?: boolean;
625
598
  }
626
599
  /**
627
600
  * Message to toggle the placeholder mode
628
601
  */
629
- interface PlaceholderModeMessage extends OtterMessageContent<'placeholderMode'> {
630
- /** Placeholder mode */
631
- mode: PlaceholderMode;
602
+ export interface PlaceholderModeMessage extends OtterMessageContent<'placeholderMode'> {
603
+ /** Placeholder mode */
604
+ mode: PlaceholderMode;
632
605
  }
633
606
  /**
634
607
  * Message to know the component selection availability
635
608
  */
636
- interface IsComponentSelectionAvailableMessage extends OtterMessageContent<'isComponentSelectionAvailable'> {
637
- available: boolean;
609
+ export interface IsComponentSelectionAvailableMessage extends OtterMessageContent<'isComponentSelectionAvailable'> {
610
+ available: boolean;
638
611
  }
639
612
  type ComponentsMessageContents = IsComponentSelectionAvailableMessage | SelectedComponentInfoMessage | ToggleInspectorMessage | ToggleHighlightMessage | ChangeHighlightConfiguration | PlaceholderModeMessage;
640
613
  /** List of possible DataTypes for Components messages */
641
- type ComponentsMessageDataTypes = MessageDataTypes<ComponentsMessageContents>;
614
+ export type ComponentsMessageDataTypes = MessageDataTypes<ComponentsMessageContents>;
642
615
  /** List of all messages for Components purpose */
643
- type AvailableComponentsMessageContents = ComponentsMessageContents | ConnectContentMessage | RequestMessagesContentMessage<ComponentsMessageDataTypes>;
616
+ export type AvailableComponentsMessageContents = ComponentsMessageContents | ConnectContentMessage | RequestMessagesContentMessage<ComponentsMessageDataTypes>;
644
617
  /**
645
618
  * Determine if the given message is a Components message
646
619
  * @param message message to check
647
620
  */
648
- declare const isComponentsMessage: (message: any) => message is AvailableComponentsMessageContents;
649
-
650
- declare class ComponentsDevtoolsMessageService implements DevtoolsServiceInterface {
651
- private readonly logger;
652
- private readonly store;
653
- private readonly options;
654
- private readonly inspectorService;
655
- private readonly sendMessage;
656
- private readonly destroyRef;
657
- private readonly highlightService;
658
- constructor();
659
- /**
660
- * Function to connect the plugin to the Otter DevTools extension
661
- */
662
- private connectPlugin;
663
- private sendCurrentSelectedComponent;
664
- private sendIsComponentSelectionAvailable;
665
- /**
666
- * Function to trigger a re-send a requested messages to the Otter Chrome DevTools extension
667
- * @param only restricted list of messages to re-send
668
- */
669
- private handleReEmitRequest;
670
- /**
671
- * Function to handle the incoming messages from Otter Chrome DevTools extension
672
- * @param message message coming from the Otter Chrome DevTools extension
673
- */
674
- private handleEvents;
675
- /** @inheritDoc */
676
- activate(): void;
677
- static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsDevtoolsMessageService, never>;
678
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
679
- }
680
-
621
+ export declare const isComponentsMessage: (message: any) => message is AvailableComponentsMessageContents;
622
+ export declare class ComponentsDevtoolsMessageService implements DevtoolsServiceInterface {
623
+ private readonly logger;
624
+ private readonly store;
625
+ private readonly options;
626
+ private readonly inspectorService;
627
+ private readonly sendMessage;
628
+ private readonly destroyRef;
629
+ private readonly highlightService;
630
+ constructor();
631
+ /**
632
+ * Function to connect the plugin to the Otter DevTools extension
633
+ */
634
+ private connectPlugin;
635
+ private sendCurrentSelectedComponent;
636
+ private sendIsComponentSelectionAvailable;
637
+ /**
638
+ * Function to trigger a re-send a requested messages to the Otter Chrome DevTools extension
639
+ * @param only restricted list of messages to re-send
640
+ */
641
+ private handleReEmitRequest;
642
+ /**
643
+ * Function to handle the incoming messages from Otter Chrome DevTools extension
644
+ * @param message message coming from the Otter Chrome DevTools extension
645
+ */
646
+ private handleEvents;
647
+ /** @inheritDoc */
648
+ activate(): void;
649
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsDevtoolsMessageService, never>;
650
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
651
+ }
681
652
  /**
682
653
  * @deprecated Will be removed in v16. Use {@link provideComponentsDevtools} instead.
683
654
  */
684
- declare class ComponentsDevtoolsModule {
685
- /**
686
- * Initialize Otter Devtools
687
- * @param options
688
- */
689
- static instrument(options: Partial<ComponentsDevtoolsServiceOptions>): ModuleWithProviders<ComponentsDevtoolsModule>;
690
- static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsDevtoolsModule, never>;
691
- static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsDevtoolsModule, never, [typeof _ngrx_store.StoreModule, typeof PlaceholderTemplateStoreModule], never>;
692
- static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsDevtoolsModule>;
655
+ export declare class ComponentsDevtoolsModule {
656
+ /**
657
+ * Initialize Otter Devtools
658
+ * @param options
659
+ */
660
+ static instrument(options: Partial<ComponentsDevtoolsServiceOptions>): ModuleWithProviders<ComponentsDevtoolsModule>;
661
+ static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsDevtoolsModule, never>;
662
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsDevtoolsModule, never, [typeof i1$1.StoreModule, typeof PlaceholderTemplateStoreModule], never>;
663
+ static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsDevtoolsModule>;
693
664
  }
694
665
  /**
695
666
  * Provide components devtools functionality.
696
667
  * @param options Components devtools options
697
668
  */
698
- declare function provideComponentsDevtools(options?: Partial<ComponentsDevtoolsServiceOptions>): EnvironmentProviders;
699
-
700
- declare const OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS: Readonly<ComponentsDevtoolsServiceOptions>;
701
- declare const OTTER_COMPONENTS_DEVTOOLS_OPTIONS: InjectionToken<ComponentsDevtoolsServiceOptions>;
702
-
669
+ export declare function provideComponentsDevtools(options?: Partial<ComponentsDevtoolsServiceOptions>): EnvironmentProviders;
670
+ export declare const OTTER_COMPONENTS_DEVTOOLS_DEFAULT_OPTIONS: Readonly<ComponentsDevtoolsServiceOptions>;
671
+ export declare const OTTER_COMPONENTS_DEVTOOLS_OPTIONS: InjectionToken<ComponentsDevtoolsServiceOptions>;
703
672
  /**
704
673
  * Minimum interface for components used with c11n directive
705
674
  */
706
675
  interface C11nComponent {
707
- [key: string]: any;
708
- config?: any;
709
- validate?: (control: AbstractControl) => any;
710
- }
711
- declare class C11nDirective<D extends Configuration = Configuration, I extends ContextInput = ContextInput, O extends BaseContextOutput = BaseContextOutput, T extends C11nComponent = Context<I, O>> implements OnChanges, OnDestroy {
712
- private readonly viewContainerRef;
713
- private readonly differsService;
714
- private readonly injector;
715
- /** The component information passed to the directive */
716
- component: Type<T>;
717
- /** The information related to configuration */
718
- config?: D;
719
- /** Formcontrol */
720
- formControl?: FormControl;
721
- /** The input setter */
722
- set inputs(value: {
723
- [K in keyof I]: I[K] | InputSignal<I[K]>;
724
- });
725
- /** The input getter */
726
- get inputs(): {
727
- [K in keyof I]: I[K] | InputSignal<I[K]>;
676
+ [key: string]: any;
677
+ config?: any;
678
+ validate?: (control: AbstractControl) => any;
679
+ }
680
+ export declare class C11nDirective<D extends Configuration = Configuration, I extends ContextInput$1 = ContextInput$1, O extends BaseContextOutput$1 = BaseContextOutput$1, T extends C11nComponent = Context$1<I, O>> implements OnChanges, OnDestroy {
681
+ private readonly viewContainerRef;
682
+ private readonly differsService;
683
+ private readonly injector;
684
+ /** The component information passed to the directive */
685
+ component: Type<T>;
686
+ /** The information related to configuration */
687
+ config?: D;
688
+ /** Formcontrol */
689
+ formControl?: FormControl;
690
+ /** The input setter */
691
+ set inputs(value: { [K in keyof I]: I[K] | InputSignal<I[K]>; });
692
+ /** The input getter */
693
+ get inputs(): { [K in keyof I]: I[K] | InputSignal<I[K]>; };
694
+ /** The information related to output */
695
+ outputs?: Functionify<O>;
696
+ /** The component reference */
697
+ componentRef: ComponentRef<T>;
698
+ private componentSubscriptions;
699
+ private _inputs;
700
+ private differInputs;
701
+ /** Set of inputs when the component was created. */
702
+ private readonly uninitializedInputs;
703
+ /**
704
+ * Type guard for component implementing CVA
705
+ * @param _cmp Component instance
706
+ */
707
+ private componentImplementsCva;
708
+ private updateInputs;
709
+ /**
710
+ * called when data-bound property change
711
+ * @param changes The changes that occur
712
+ */
713
+ ngOnChanges(changes: SimpleChanges): void;
714
+ /**
715
+ * returns validation errors from component instance if validate method exists else returns null
716
+ * @param control Form control
717
+ */
718
+ validate(control: AbstractControl): any;
719
+ /**
720
+ * ngOnDestroy
721
+ */
722
+ ngOnDestroy(): void;
723
+ static ɵfac: i0.ɵɵFactoryDeclaration<C11nDirective<any, any, any, any>, never>;
724
+ static ɵdir: i0.ɵɵDirectiveDeclaration<C11nDirective<any, any, any, any>, "[c11n]", never, {
725
+ "component": {
726
+ "alias": "component";
727
+ "required": false;
728
+ };
729
+ "config": {
730
+ "alias": "config";
731
+ "required": false;
728
732
  };
729
- /** The information related to output */
730
- outputs?: Functionify<O>;
731
- /** The component reference */
732
- componentRef: ComponentRef<T>;
733
- private componentSubscriptions;
734
- private _inputs;
735
- private differInputs;
736
- /** Set of inputs when the component was created. */
737
- private readonly uninitializedInputs;
738
- /**
739
- * Type guard for component implementing CVA
740
- * @param _cmp Component instance
741
- */
742
- private componentImplementsCva;
743
- private updateInputs;
744
- /**
745
- * called when data-bound property change
746
- * @param changes The changes that occur
747
- */
748
- ngOnChanges(changes: SimpleChanges): void;
749
- /**
750
- * returns validation errors from component instance if validate method exists else returns null
751
- * @param control Form control
752
- */
753
- validate(control: AbstractControl): any;
754
- /**
755
- * ngOnDestroy
756
- */
757
- ngOnDestroy(): void;
758
- static ɵfac: i0.ɵɵFactoryDeclaration<C11nDirective<any, any, any, any>, never>;
759
- static ɵdir: i0.ɵɵDirectiveDeclaration<C11nDirective<any, any, any, any>, "[c11n]", never, { "component": { "alias": "component"; "required": false; }; "config": { "alias": "config"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "inputs": { "alias": "inputs"; "required": false; }; "outputs": { "alias": "outputs"; "required": false; }; }, {}, never, never, true, never>;
760
- }
761
-
733
+ "formControl": {
734
+ "alias": "formControl";
735
+ "required": false;
736
+ };
737
+ "inputs": {
738
+ "alias": "inputs";
739
+ "required": false;
740
+ };
741
+ "outputs": {
742
+ "alias": "outputs";
743
+ "required": false;
744
+ };
745
+ }, {}, never, never, true, never>;
746
+ }
762
747
  /** Interface for grouping the arrays needed for custom component registration */
763
- interface EntryCustomComponents {
764
- /** Array of custom presenters */
765
- customComponents: Type<any>[];
766
- /** Array of custom presenter modules */
767
- customComponentsModules: Type<any>[];
748
+ export interface EntryCustomComponents {
749
+ /** Array of custom presenters */
750
+ customComponents: Type<any>[];
751
+ /** Array of custom presenter modules */
752
+ customComponentsModules: Type<any>[];
768
753
  }
769
754
  /**
770
755
  * Register a custom component
@@ -772,59 +757,73 @@ interface EntryCustomComponents {
772
757
  * @param customComponentKey
773
758
  * @param customComponent
774
759
  */
775
- declare function registerCustomComponent<T extends Context>(customComponentsMap: Map<string, Type<T>>, customComponentKey: string, customComponent: Type<T>): Map<string, Type<T>>;
776
-
760
+ export declare function registerCustomComponent<T extends Context$1>(customComponentsMap: Map<string, Type<T>>, customComponentKey: string, customComponent: Type<T>): Map<string, Type<T>>;
777
761
  /** C11n directive mock */
778
- declare class MockC11nDirective {
779
- static ɵfac: i0.ɵɵFactoryDeclaration<MockC11nDirective, never>;
780
- static ɵdir: i0.ɵɵDirectiveDeclaration<MockC11nDirective, "[c11n]", never, { "config": { "alias": "config"; "required": false; }; "component": { "alias": "component"; "required": false; }; "inputs": { "alias": "inputs"; "required": false; }; "outputs": { "alias": "outputs"; "required": false; }; }, {}, never, never, true, never>;
762
+ export declare class MockC11nDirective {
763
+ static ɵfac: i0.ɵɵFactoryDeclaration<MockC11nDirective, never>;
764
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MockC11nDirective, "[c11n]", never, {
765
+ "config": {
766
+ "alias": "config";
767
+ "required": false;
768
+ };
769
+ "component": {
770
+ "alias": "component";
771
+ "required": false;
772
+ };
773
+ "inputs": {
774
+ "alias": "inputs";
775
+ "required": false;
776
+ };
777
+ "outputs": {
778
+ "alias": "outputs";
779
+ "required": false;
780
+ };
781
+ }, {}, never, never, true, never>;
781
782
  }
782
783
  /** C11n service mock */
783
- declare class C11nMockService {
784
- addPresenter(_presKey: string, _presType: any): void;
785
- getPresenter(_defaultPres: any, _presKey: string): (source: Observable<any>) => Observable<null>;
786
- static ɵfac: i0.ɵɵFactoryDeclaration<C11nMockService, never>;
787
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
784
+ export declare class C11nMockService {
785
+ addPresenter(_presKey: string, _presType: any): void;
786
+ getPresenter(_defaultPres: any, _presKey: string): (source: Observable<any>) => Observable<null>;
787
+ static ɵfac: i0.ɵɵFactoryDeclaration<C11nMockService, never>;
788
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
788
789
  }
789
790
  /**
790
791
  * The purpose of this module is to be imported in the unit tests of the components which are using c11n directive
791
792
  * @deprecated Will be removed in v16. Use {@link provideC11nMock} and import `MockC11nDirective` directly instead.
792
793
  */
793
- declare class C11nMockModule {
794
- static ɵfac: i0.ɵɵFactoryDeclaration<C11nMockModule, never>;
795
- static ɵmod: i0.ɵɵNgModuleDeclaration<C11nMockModule, never, [typeof MockC11nDirective], never>;
796
- static ɵinj: i0.ɵɵInjectorDeclaration<C11nMockModule>;
794
+ export declare class C11nMockModule {
795
+ static ɵfac: i0.ɵɵFactoryDeclaration<C11nMockModule, never>;
796
+ static ɵmod: i0.ɵɵNgModuleDeclaration<C11nMockModule, never, [typeof MockC11nDirective], never>;
797
+ static ɵinj: i0.ɵɵInjectorDeclaration<C11nMockModule>;
797
798
  }
798
799
  /**
799
800
  * Provide C11n mock service for unit testing.
800
801
  */
801
- declare function provideC11nMock(): EnvironmentProviders;
802
-
803
- declare class C11nService {
804
- private readonly presentersMap;
805
- /**
806
- * Add a presenter
807
- * @param presKey The presenter key to set
808
- * @param presenter The new presenter
809
- */
810
- addPresenter<T extends Context>(presKey: string, presenter: Type<T>): void;
811
- /**
812
- * Operator to retrieve the presenter based on a given presKey
813
- * @param defaultPres The default presenter
814
- * @param presKey The presenter key to retrieve
815
- */
816
- getPresenter<T extends Context>(defaultPres: Type<T>, presKey?: string): (source: Observable<Configuration>) => Observable<Type<T>>;
817
- static ɵfac: i0.ɵɵFactoryDeclaration<C11nService, never>;
818
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
819
- }
820
-
802
+ export declare function provideC11nMock(): EnvironmentProviders;
803
+ export declare class C11nService {
804
+ private readonly presentersMap;
805
+ /**
806
+ * Add a presenter
807
+ * @param presKey The presenter key to set
808
+ * @param presenter The new presenter
809
+ */
810
+ addPresenter<T extends Context$1>(presKey: string, presenter: Type<T>): void;
811
+ /**
812
+ * Operator to retrieve the presenter based on a given presKey
813
+ * @param defaultPres The default presenter
814
+ * @param presKey The presenter key to retrieve
815
+ */
816
+ getPresenter<T extends Context$1>(defaultPres: Type<T>, presKey?: string): (source: Observable<Configuration>) => Observable<Type<T>>;
817
+ static ɵfac: i0.ɵɵFactoryDeclaration<C11nService, never>;
818
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
819
+ }
821
820
  /**
822
821
  * Customization service factory
823
822
  * @param config -> registerCompFunc - a function which returns the map of custom components which will be injected in c11n service
824
823
  * @param config.registerCompFunc
825
824
  */
826
- declare function createC11nService(config: {
827
- registerCompFunc: () => Map<string, any>;
825
+ export declare function createC11nService(config: {
826
+ registerCompFunc: () => Map<string, any>;
828
827
  }): C11nService;
829
828
  /**
830
829
  * Returns a tuple of the key and the component
@@ -840,118 +839,113 @@ declare function createC11nService(config: {
840
839
  * @param customComponentKey
841
840
  * @param customComponent
842
841
  */
843
- declare function withComponent<T extends Context>(customComponentKey: string, customComponent: Type<T>): [string, Type<T>];
842
+ export declare function withComponent<T extends Context$1>(customComponentKey: string, customComponent: Type<T>): [string, Type<T>];
844
843
  /**
845
844
  * Provide custom components which will be injected in c11n service
846
845
  * @param customComponents
847
846
  * @param additionalComponents
848
847
  */
849
- declare function provideCustomComponents(customComponents?: Map<string, any>, ...additionalComponents: (ReturnType<typeof withComponent>)[]): i0.EnvironmentProviders;
850
-
848
+ export declare function provideCustomComponents(customComponents?: Map<string, any>, ...additionalComponents: (ReturnType<typeof withComponent>)[]): import("@angular/core").EnvironmentProviders;
851
849
  /** The C11n injection token */
852
- declare const C11N_PRESENTERS_MAP_TOKEN: InjectionToken<string>;
850
+ export declare const C11N_PRESENTERS_MAP_TOKEN: InjectionToken<string>;
853
851
  /** Function used to register custom components */
854
- declare const C11N_REGISTER_FUNC_TOKEN: InjectionToken<string>;
855
-
856
- declare class O3rCapitalizePipe implements PipeTransform {
857
- transform(value?: any): any;
858
- static ɵfac: i0.ɵɵFactoryDeclaration<O3rCapitalizePipe, never>;
859
- static ɵpipe: i0.ɵɵPipeDeclaration<O3rCapitalizePipe, "o3rCapitalize", true>;
860
- }
861
-
852
+ export declare const C11N_REGISTER_FUNC_TOKEN: InjectionToken<string>;
853
+ export declare class O3rCapitalizePipe implements PipeTransform {
854
+ transform(value?: any): any;
855
+ static ɵfac: i0.ɵɵFactoryDeclaration<O3rCapitalizePipe, never>;
856
+ static ɵpipe: i0.ɵɵPipeDeclaration<O3rCapitalizePipe, "o3rCapitalize", true>;
857
+ }
862
858
  /** Time object to format duration */
863
859
  interface TimeUnit {
864
- /** character defining the time unit */
865
- formatCharacter: string;
866
- /** divider to get the time unit value */
867
- divider: number;
868
- /**
869
- * modulo for the time unit
870
- * If not provided, it will either use the immediately higher unit time divider
871
- * or Number.MAX_SAFE_INTEGER for the highest one
872
- */
873
- modulo?: number;
874
- }
875
-
860
+ /** character defining the time unit */
861
+ formatCharacter: string;
862
+ /** divider to get the time unit value */
863
+ divider: number;
864
+ /**
865
+ * modulo for the time unit
866
+ * If not provided, it will either use the immediately higher unit time divider
867
+ * or Number.MAX_SAFE_INTEGER for the highest one
868
+ */
869
+ modulo?: number;
870
+ }
876
871
  /**
877
872
  * Converts a duration in seconds into the HH:mm format
878
873
  */
879
- declare class O3rDurationPipe implements PipeTransform {
880
- /**
881
- * Converts a duration in seconds into the HH:mm format
882
- * @param value the value in seconds
883
- * @param pattern the desired output format.
884
- * The pattern takes into account static format characters surrounded by braces
885
- * {d} for days, {h} for hours, {m} for minutes and {s} for seconds.
886
- * It accepts a double unit time in case a padding is wanted {dd} outputs 05 for instance
887
- * Should respect the following pattern `/(\{h+\})|(\{m+\})/` (ex: `'{h}h{m}m'` outputs `0h2m`, `'{h}H{mm}'` `0H02` etc.)
888
- * @param timeUnits the units time to be used in this transformation. This can be used for custom units in the pattern like
889
- * {
890
- * formatCharacter: 'w',
891
- * divider: 3600 * 24 * 7
892
- * }
893
- * The above defines a week for {w}
894
- */
895
- transform(value?: number, pattern?: string, timeUnits?: TimeUnit[]): string;
896
- static ɵfac: i0.ɵɵFactoryDeclaration<O3rDurationPipe, never>;
897
- static ɵpipe: i0.ɵɵPipeDeclaration<O3rDurationPipe, "o3rDuration", true>;
898
- }
899
-
900
- declare class O3rKeepWhiteSpacePipe implements PipeTransform {
901
- transform(value: string): string;
902
- static ɵfac: i0.ɵɵFactoryDeclaration<O3rKeepWhiteSpacePipe, never>;
903
- static ɵpipe: i0.ɵɵPipeDeclaration<O3rKeepWhiteSpacePipe, "o3rKeepWhiteSpace", true>;
904
- }
905
-
906
- declare class O3rReplaceWithBoldPipe implements PipeTransform {
907
- transform(value: string, inputText: string): string;
908
- static ɵfac: i0.ɵɵFactoryDeclaration<O3rReplaceWithBoldPipe, never>;
909
- static ɵpipe: i0.ɵɵPipeDeclaration<O3rReplaceWithBoldPipe, "o3rReplaceWithBold", true>;
910
- }
911
-
874
+ export declare class O3rDurationPipe implements PipeTransform {
875
+ /**
876
+ * Converts a duration in seconds into the HH:mm format
877
+ * @param value the value in seconds
878
+ * @param pattern the desired output format.
879
+ * The pattern takes into account static format characters surrounded by braces
880
+ * {d} for days, {h} for hours, {m} for minutes and {s} for seconds.
881
+ * It accepts a double unit time in case a padding is wanted {dd} outputs 05 for instance
882
+ * Should respect the following pattern `/(\{h+\})|(\{m+\})/` (ex: `'{h}h{m}m'` outputs `0h2m`, `'{h}H{mm}'` `0H02` etc.)
883
+ * @param timeUnits the units time to be used in this transformation. This can be used for custom units in the pattern like
884
+ * {
885
+ * formatCharacter: 'w',
886
+ * divider: 3600 * 24 * 7
887
+ * }
888
+ * The above defines a week for {w}
889
+ */
890
+ transform(value?: number, pattern?: string, timeUnits?: TimeUnit[]): string;
891
+ static ɵfac: i0.ɵɵFactoryDeclaration<O3rDurationPipe, never>;
892
+ static ɵpipe: i0.ɵɵPipeDeclaration<O3rDurationPipe, "o3rDuration", true>;
893
+ }
894
+ export declare class O3rKeepWhiteSpacePipe implements PipeTransform {
895
+ transform(value: string): string;
896
+ static ɵfac: i0.ɵɵFactoryDeclaration<O3rKeepWhiteSpacePipe, never>;
897
+ static ɵpipe: i0.ɵɵPipeDeclaration<O3rKeepWhiteSpacePipe, "o3rKeepWhiteSpace", true>;
898
+ }
899
+ export declare class O3rReplaceWithBoldPipe implements PipeTransform {
900
+ transform(value: string, inputText: string): string;
901
+ static ɵfac: i0.ɵɵFactoryDeclaration<O3rReplaceWithBoldPipe, never>;
902
+ static ɵpipe: i0.ɵɵPipeDeclaration<O3rReplaceWithBoldPipe, "o3rReplaceWithBold", true>;
903
+ }
912
904
  /**
913
905
  * Placeholder component that is bind to the PlaceholderTemplateStore to display a template based on its ID
914
906
  * A loading indication can be provided via projection
915
907
  * @example
916
908
  * <o3r-placeholder id="my-template-id">Is loading ...</o3r-placeholder>
917
909
  */
918
- declare class PlaceholderComponent implements OnInit, OnDestroy, AfterViewChecked {
919
- private readonly store;
920
- private readonly cd;
921
- readonly id$: BehaviorSubject<string | undefined>;
922
- private readonly afterViewInit$;
923
- private readonly messages$;
924
- /** Determine if the placeholder content is pending */
925
- isPending?: boolean;
926
- /** Generated HTML template */
927
- template?: string;
928
- mode: Signal<PlaceholderMode>;
929
- private readonly destroyRef;
930
- /** template identify */
931
- set id(value: string);
932
- constructor();
933
- /** @inheritdoc */
934
- ngOnInit(): void;
935
- ngAfterViewChecked(): void;
936
- /** @inheritdoc */
937
- ngOnDestroy(): void;
938
- static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderComponent, never>;
939
- static ɵcmp: i0.ɵɵComponentDeclaration<PlaceholderComponent, "o3r-placeholder", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, ["*"], true, never>;
940
- }
941
-
910
+ export declare class PlaceholderComponent implements OnInit, OnDestroy, AfterViewChecked {
911
+ private readonly store;
912
+ private readonly cd;
913
+ readonly id$: BehaviorSubject<string | undefined>;
914
+ private readonly afterViewInit$;
915
+ private readonly messages$;
916
+ /** Determine if the placeholder content is pending */
917
+ isPending?: boolean;
918
+ /** Generated HTML template */
919
+ template?: string;
920
+ mode: Signal<PlaceholderMode>;
921
+ private readonly destroyRef;
922
+ /** template identify */
923
+ set id(value: string);
924
+ constructor();
925
+ /** @inheritdoc */
926
+ ngOnInit(): void;
927
+ ngAfterViewChecked(): void;
928
+ /** @inheritdoc */
929
+ ngOnDestroy(): void;
930
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderComponent, never>;
931
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlaceholderComponent, "o3r-placeholder", never, {
932
+ "id": {
933
+ "alias": "id";
934
+ "required": false;
935
+ };
936
+ }, {}, never, ["*"], true, never>;
937
+ }
942
938
  /**
943
939
  * @deprecated Will be removed in v16. Use {@link providePlaceholder} and import `PlaceholderComponent` directly instead.
944
940
  */
945
- declare class PlaceholderModule {
946
- static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderModule, never>;
947
- static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceholderModule, never, [typeof i1.CommonModule, typeof _ngrx_store.StoreModule, typeof PlaceholderTemplateStoreModule, typeof PlaceholderRequestStoreModule, typeof PlaceholderComponent], never>;
948
- static ɵinj: i0.ɵɵInjectorDeclaration<PlaceholderModule>;
941
+ export declare class PlaceholderModule {
942
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderModule, never>;
943
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PlaceholderModule, never, [typeof i1.CommonModule, typeof i1$1.StoreModule, typeof PlaceholderTemplateStoreModule, typeof PlaceholderRequestStoreModule, typeof PlaceholderComponent], never>;
944
+ static ɵinj: i0.ɵɵInjectorDeclaration<PlaceholderModule>;
949
945
  }
950
946
  /**
951
947
  * Provide placeholder stores required by `PlaceholderComponent`.
952
948
  */
953
- declare function providePlaceholder(): EnvironmentProviders;
954
-
955
- 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 };
956
- export type { AvailableComponentsMessageContents, ChangeHighlightConfiguration, ComponentClassOutput, ComponentConfig, ComponentConfigOutput, ComponentConfigOutputs, ComponentContext, ComponentOutput, ComponentStructure, ComponentsDevtoolsServiceOptions, ComponentsMessageDataTypes, ConfigProperty, ConfigPropertyTypes, ConfigType, EntryCustomComponents, IsComponentSelectionAvailableMessage, NestedConfiguration, Ng, OtterLikeComponentInfo, PlaceholderData, PlaceholderMode, PlaceholderModeMessage, PlaceholderRequestModel, PlaceholderRequestReply, PlaceholderRequestState, PlaceholderRequestStateDetails, PlaceholderRequestStore, PlaceholderTemplateModel, PlaceholderTemplateState, PlaceholderTemplateStore, PlaceholderVariable, PlaceholdersMetadata, SelectedComponentInfoMessage, ToggleHighlightMessage, ToggleInspectorMessage };
957
- //# sourceMappingURL=o3r-components.d.ts.map
949
+ export declare function providePlaceholder(): EnvironmentProviders;
950
+ export type { BaseContextOutput, Context, ContextInput, TemplateContext };
951
+ //# sourceMappingURL=o3r-components.d.ts.map