@molecule/app-angular 3.11.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +478 -9
- package/dist/dom-placement.d.ts +382 -0
- package/dist/dom-placement.d.ts.map +1 -0
- package/dist/dom-placement.js +1376 -0
- package/dist/dom-placement.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/providers.d.ts +2 -1
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +6 -2
- package/dist/providers.js.map +1 -1
- package/dist/routed-view.d.ts +6 -2
- package/dist/routed-view.d.ts.map +1 -1
- package/dist/routed-view.js +15 -9
- package/dist/routed-view.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOM placement for the Angular ports.
|
|
3
|
+
*
|
|
4
|
+
* One owner for every case where a port's DOM must differ from where Angular
|
|
5
|
+
* put a node:
|
|
6
|
+
*
|
|
7
|
+
* - an element that is absent while React would render nothing
|
|
8
|
+
* ({@link setElementPresent}, {@link useHostPresence});
|
|
9
|
+
* - an element rendered in another parent, React's `createPortal`
|
|
10
|
+
* ({@link placeElement});
|
|
11
|
+
* - an element or a slot's content rendered beside the component's host,
|
|
12
|
+
* React's fragment root ({@link placeElementBefore},
|
|
13
|
+
* {@link placeContentBefore});
|
|
14
|
+
* - a slot's content rendered in another parent ({@link placeContent});
|
|
15
|
+
* - one wrapper element per projected child, React's
|
|
16
|
+
* `children.map((c) => <div>{c}</div>)` ({@link WrappedChildren},
|
|
17
|
+
* {@link MolWrapEachChild}).
|
|
18
|
+
*
|
|
19
|
+
* A node that was placed still has one parent in the rendered tree, the one
|
|
20
|
+
* React context follows ({@link renderedParent}), and what a consumer binds on
|
|
21
|
+
* the tag of a component whose host left the page lands on the component's
|
|
22
|
+
* root ({@link setHostRoot}).
|
|
23
|
+
*
|
|
24
|
+
* Angular keeps inserting, moving and removing the nodes it created, and it
|
|
25
|
+
* finds their place through the nodes themselves: it inserts a view before the
|
|
26
|
+
* first node of the next view, under the parent of the container's anchor
|
|
27
|
+
* comment. A node a component moved elsewhere breaks that (NG05106). So the
|
|
28
|
+
* placement rules are applied where Angular places nodes, in its renderer
|
|
29
|
+
* ({@link provideDomPlacement}); components never move a node themselves.
|
|
30
|
+
*
|
|
31
|
+
* A host or a capture that is out of the page has no `parentNode`, so a
|
|
32
|
+
* component never reads one to decide where something goes: it names the
|
|
33
|
+
* element to stand in front of ({@link placeElementBefore},
|
|
34
|
+
* {@link placeContentBefore}), which follows that element wherever it is, and
|
|
35
|
+
* finds its rendered ancestors with {@link renderedParent}.
|
|
36
|
+
*
|
|
37
|
+
* @module
|
|
38
|
+
*/
|
|
39
|
+
import { type AfterViewInit, type DoCheck, type EnvironmentProviders, type Signal } from '@angular/core';
|
|
40
|
+
import * as i0 from "@angular/core";
|
|
41
|
+
/**
|
|
42
|
+
* Names the element that stands for the calling component's host: React's
|
|
43
|
+
* `{...rest}` target. Call it in the component's {@link usePlacement}
|
|
44
|
+
* function, for a component whose host is out of the page.
|
|
45
|
+
*
|
|
46
|
+
* An Angular consumer binds on the component's tag: `<mol-switch
|
|
47
|
+
* (keydown)="…" class="…" data-testid="…" [attr.aria-label]="…">`. With the
|
|
48
|
+
* host out of the page those would do nothing. Instead, while the host is
|
|
49
|
+
* absent:
|
|
50
|
+
*
|
|
51
|
+
* - native listeners are attached to the root (`$event.currentTarget` is the
|
|
52
|
+
* root, as it is in React);
|
|
53
|
+
* - attributes, class names and styles the consumer writes on the tag are
|
|
54
|
+
* written on the root, in the same instruction, and the ones already on the
|
|
55
|
+
* host are moved there.
|
|
56
|
+
*
|
|
57
|
+
* A component that calls nothing gets the common case for free: with one
|
|
58
|
+
* element in its place (`placeElementBefore(root, host)`) that element is the
|
|
59
|
+
* root; with several elements or projected content in its place, listeners go
|
|
60
|
+
* to each of them (the events that used to bubble to the host) and attributes
|
|
61
|
+
* stay on the host. A component with nothing in its place (a portal) names its
|
|
62
|
+
* root, or a listener on its tag throws in dev mode: it could never fire.
|
|
63
|
+
*
|
|
64
|
+
* @param host - The component's host element.
|
|
65
|
+
* @param root - The element that stands for it, or `null` while React renders
|
|
66
|
+
* none.
|
|
67
|
+
* @param options - `except`: attribute names the component reads off its host
|
|
68
|
+
* itself (it merges them with its own), which stay on the host.
|
|
69
|
+
* @param options.except - Those attribute names.
|
|
70
|
+
*/
|
|
71
|
+
export declare function setHostRoot(host: Element, root: Element | null | undefined, options?: {
|
|
72
|
+
except?: readonly string[];
|
|
73
|
+
}): void;
|
|
74
|
+
/**
|
|
75
|
+
* Installs the placement rules in the application's renderer. `provideMolecule`
|
|
76
|
+
* includes it; a test that mounts a port without `provideMolecule` adds it to
|
|
77
|
+
* the application's providers. It wraps whatever renderer factory the
|
|
78
|
+
* application configured, so it also applies under an animation renderer.
|
|
79
|
+
*
|
|
80
|
+
* @returns The environment providers.
|
|
81
|
+
*/
|
|
82
|
+
export declare function provideDomPlacement(): EnvironmentProviders;
|
|
83
|
+
/**
|
|
84
|
+
* Takes an element out of its parent while `present` is false and puts it back
|
|
85
|
+
* in the same place once it is true: Angular's equivalent of React's
|
|
86
|
+
* `{cond && <span>…</span>}` for an element the template must keep (one that
|
|
87
|
+
* holds an `<ng-content>`). "Attached" means the element has a parent, not
|
|
88
|
+
* that it is in the document, so it also works inside a host that is itself
|
|
89
|
+
* absent. An element that was never taken out is left where Angular put it.
|
|
90
|
+
* An element rendered elsewhere ({@link placeElement}, {@link placeElementBefore})
|
|
91
|
+
* leaves that parent too, and `true` puts it back in its own place.
|
|
92
|
+
* Angular may remove or move the element while it is absent; its placeholder
|
|
93
|
+
* goes then.
|
|
94
|
+
*
|
|
95
|
+
* @param element - The element (nothing happens without one).
|
|
96
|
+
* @param present - Whether React would render it now.
|
|
97
|
+
*/
|
|
98
|
+
export declare function setElementPresent(element: Node | null | undefined, present: boolean): void;
|
|
99
|
+
/**
|
|
100
|
+
* The element a placeholder stands in for while the element is out of its own
|
|
101
|
+
* place ({@link setElementPresent}, {@link placeElement},
|
|
102
|
+
* {@link placeElementBefore}). A slot's children ({@link SlotReader.nodes})
|
|
103
|
+
* list such an element as its placeholder; a component that took one of its
|
|
104
|
+
* slot's children out of the page finds that child again with this.
|
|
105
|
+
*
|
|
106
|
+
* @param node - A node of the rendered tree.
|
|
107
|
+
* @returns The element whose place the node holds, or `undefined` when the
|
|
108
|
+
* node is not a current placeholder.
|
|
109
|
+
*/
|
|
110
|
+
export declare function heldElement(node: Node | null | undefined): Node | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Renders an element in another parent while it keeps its place in Angular's
|
|
113
|
+
* view: Angular's equivalent of React's `createPortal(child, document.body)`.
|
|
114
|
+
* An empty comment holds the element's place, so Angular can still insert
|
|
115
|
+
* before it and remove it. `null` puts it back where Angular put it. Calling it
|
|
116
|
+
* again with the same target moves nothing. If Angular moves the element while
|
|
117
|
+
* it is elsewhere, the element follows Angular and the next call moves it
|
|
118
|
+
* again. When Angular removes the view that holds its place, the element is
|
|
119
|
+
* removed from the other parent too, as React unmounts a portal.
|
|
120
|
+
*/
|
|
121
|
+
export declare function placeElement(element: Node | null | undefined, target: Node | null): void;
|
|
122
|
+
/**
|
|
123
|
+
* Renders an element of the component's template immediately in front of
|
|
124
|
+
* another node, as its sibling: Angular's equivalent of a React component whose
|
|
125
|
+
* root is a fragment, `<><div>{children}</div>{portal}</>`, where the node is
|
|
126
|
+
* the component's host (kept in the DOM with `display: contents`).
|
|
127
|
+
*
|
|
128
|
+
* The element then belongs to the node's place. Angular inserts a new sibling
|
|
129
|
+
* before the element, not between the two; when Angular moves the node (a
|
|
130
|
+
* consumer `@for` reorders), the element moves with it; when Angular removes
|
|
131
|
+
* the node, the element goes back to its own place inside it and leaves the
|
|
132
|
+
* page with it. Several elements placed before the same node stand in the
|
|
133
|
+
* order they were placed. Calling it again moves nothing while the element
|
|
134
|
+
* already stands there.
|
|
135
|
+
*
|
|
136
|
+
* "In front of the node" means in front of the node's place. A host that is
|
|
137
|
+
* absent (`setElementPresent(host, false)`) holds its place with a comment, and
|
|
138
|
+
* the element stands in front of that: this is how a fragment root renders
|
|
139
|
+
* React's exact DOM, with no host element among the siblings at all. A node
|
|
140
|
+
* another component rendered elsewhere ({@link placeElement}) is likewise
|
|
141
|
+
* led at its place, not where it was rendered.
|
|
142
|
+
*
|
|
143
|
+
* Nothing happens while the node has no parent; call it
|
|
144
|
+
* from the component's {@link usePlacement} function, which runs again.
|
|
145
|
+
* `placeElement(element, null)` puts the element back in its own place.
|
|
146
|
+
*
|
|
147
|
+
* @param element - The element (nothing happens without one).
|
|
148
|
+
* @param sibling - The node it stands in front of, usually the host.
|
|
149
|
+
*/
|
|
150
|
+
export declare function placeElementBefore(element: Node | null | undefined, sibling: Node | null | undefined): void;
|
|
151
|
+
/**
|
|
152
|
+
* A node's parent in the rendered tree: the parent React context follows.
|
|
153
|
+
* It is the DOM parent, except where this module placed the node:
|
|
154
|
+
*
|
|
155
|
+
* - an element that is absent, or rendered in another parent
|
|
156
|
+
* ({@link setElementPresent}, {@link placeElement},
|
|
157
|
+
* {@link placeElementBefore}), belongs where its placeholder is, the place
|
|
158
|
+
* the template gave it. A portal's content therefore has the component that
|
|
159
|
+
* declared it as an ancestor, not `document.body`, as in React.
|
|
160
|
+
* - a top-level node of a capture's content that renders outside the capture
|
|
161
|
+
* ({@link placeContent}, {@link placeContentBefore}) belongs to the capture.
|
|
162
|
+
* With `placeContentBefore(host, host)` that is the host: what a provider
|
|
163
|
+
* renders in its own place is the provider's child, and a sibling that merely
|
|
164
|
+
* shares the DOM parent is not.
|
|
165
|
+
*
|
|
166
|
+
* So a component looks its context up from its own host and registers one on
|
|
167
|
+
* its own host, whether or not the host is in the page.
|
|
168
|
+
*
|
|
169
|
+
* @param node - The node.
|
|
170
|
+
* @returns Its parent in the rendered tree, or `null` at the top (or for a
|
|
171
|
+
* node that has no place: never inserted, or removed).
|
|
172
|
+
*/
|
|
173
|
+
export declare function renderedParent(node: Node | null | undefined): Element | null;
|
|
174
|
+
/**
|
|
175
|
+
* Renders a capture element's content somewhere else: Angular's equivalent of
|
|
176
|
+
* React placing the same `{slot}` in a different parent depending on props
|
|
177
|
+
* (`loading ? <span>{label}</span> : label`). The capture element is the
|
|
178
|
+
* template element that holds the `<ng-content>`.
|
|
179
|
+
*
|
|
180
|
+
* The whole content moves as one run, Angular's block anchors included, so the
|
|
181
|
+
* consumer's `@for` and `@if` keep working at the new place: Angular inserts a
|
|
182
|
+
* view under the parent of its anchor, before a node of the same run. Never
|
|
183
|
+
* move a filtered or remembered list of nodes instead; the anchors or the
|
|
184
|
+
* nodes Angular adds later stay behind (NG05106). Calling it again with the
|
|
185
|
+
* same target moves nothing. When Angular removes the capture (its view went),
|
|
186
|
+
* the content goes back inside it and leaves the page with it.
|
|
187
|
+
*
|
|
188
|
+
* @param capture - The element Angular projected the content into.
|
|
189
|
+
* @param target - The parent to render the content in, or `null` to put it
|
|
190
|
+
* back inside `capture`.
|
|
191
|
+
* @param before - The child of `target` to place the content before (default:
|
|
192
|
+
* at the end).
|
|
193
|
+
*/
|
|
194
|
+
export declare function placeContent(capture: Element | null | undefined, target: Node | null, before?: Node | null): void;
|
|
195
|
+
/**
|
|
196
|
+
* Renders a capture's content immediately in front of another node, as its
|
|
197
|
+
* siblings, with no element around it: Angular's equivalent of a React
|
|
198
|
+
* component whose root is a fragment of what it was given, `<>{children}</>`
|
|
199
|
+
* (a provider or a gate that renders no DOM of its own). The node is usually
|
|
200
|
+
* the component's host, and the capture may be the host itself:
|
|
201
|
+
* `placeContentBefore(host, host)` renders everything the host holds in front
|
|
202
|
+
* of it and leaves the host empty.
|
|
203
|
+
*
|
|
204
|
+
* The content then belongs to the node's place, as an element does with
|
|
205
|
+
* {@link placeElementBefore}: Angular inserts a new sibling before the content,
|
|
206
|
+
* the content moves with the node, and it goes back inside the capture when
|
|
207
|
+
* Angular removes the node. Angular's block anchors move with the content, so
|
|
208
|
+
* an `@if` in the component's own template around `<ng-content>` and the
|
|
209
|
+
* consumer's blocks render at the new place from the first node on. Nothing
|
|
210
|
+
* happens while the node has no parent; call it from the component's
|
|
211
|
+
* {@link usePlacement} function. `placeContent(capture, null)` puts the
|
|
212
|
+
* content back.
|
|
213
|
+
*
|
|
214
|
+
* @param capture - The element that holds the content (nothing happens
|
|
215
|
+
* without one).
|
|
216
|
+
* @param sibling - The node the content stands in front of, usually the host.
|
|
217
|
+
*/
|
|
218
|
+
export declare function placeContentBefore(capture: Element | null | undefined, sibling: Node | null | undefined): void;
|
|
219
|
+
/**
|
|
220
|
+
* Reads a slot from a lifecycle hook, which can lag the content: a hook runs
|
|
221
|
+
* before the consumer's `@if` adds its node, and no hook runs at all when the
|
|
222
|
+
* content comes through an `OnPush` component in between. Read slots in the
|
|
223
|
+
* function passed to {@link usePlacement} instead; this export goes in the
|
|
224
|
+
* next major version.
|
|
225
|
+
*
|
|
226
|
+
* @param capture - The capture.
|
|
227
|
+
* @returns Whether the slot has content.
|
|
228
|
+
* @deprecated Use the reader {@link usePlacement} passes.
|
|
229
|
+
*/
|
|
230
|
+
export declare function hasContent(capture: Node | null | undefined): boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Reads whether a slot renders anything; see {@link usePlacement}. A capture
|
|
233
|
+
* that also holds the port's own text before the slot (`<span #c>{{ label
|
|
234
|
+
* }}<ng-content /></span>`) passes how many leading child nodes are the
|
|
235
|
+
* port's: one per interpolation or static text before the `<ng-content>`.
|
|
236
|
+
*
|
|
237
|
+
* @param capture - The element Angular projected the content into.
|
|
238
|
+
* @param ownLeadingNodes - How many of the capture's first child nodes the
|
|
239
|
+
* port renders itself (default 0).
|
|
240
|
+
* @returns Whether the slot has content.
|
|
241
|
+
*/
|
|
242
|
+
export interface SlotReader {
|
|
243
|
+
(capture: Node | null | undefined, ownLeadingNodes?: number): boolean;
|
|
244
|
+
/**
|
|
245
|
+
* The slot's React children (`React.Children.toArray(slot)`): its elements
|
|
246
|
+
* and its text that is not template indentation, in order, wherever
|
|
247
|
+
* {@link placeContent} rendered them.
|
|
248
|
+
*
|
|
249
|
+
* @param capture - The element Angular projected the content into.
|
|
250
|
+
* @returns The children.
|
|
251
|
+
*/
|
|
252
|
+
nodes(capture: Node | null | undefined): Node[];
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Gives {@link usePlacement} the component's own moments. A component that
|
|
256
|
+
* calls `usePlacement` lists it in `hostDirectives`; `usePlacement` throws
|
|
257
|
+
* without it. Its hooks fire exactly when the component's own would: after the
|
|
258
|
+
* component's view was first rendered (its view queries are set), and each
|
|
259
|
+
* time the parent checks the component (its inputs are set).
|
|
260
|
+
*/
|
|
261
|
+
export declare class MolPlacement implements AfterViewInit, DoCheck {
|
|
262
|
+
private readonly runs;
|
|
263
|
+
/**
|
|
264
|
+
* Adds a placement function to run at the component's moments.
|
|
265
|
+
*
|
|
266
|
+
* @param run - Runs it.
|
|
267
|
+
* @internal
|
|
268
|
+
*/
|
|
269
|
+
add(run: () => void): void;
|
|
270
|
+
/** The component's view exists and its view queries are set. */
|
|
271
|
+
ngAfterViewInit(): void;
|
|
272
|
+
/** The parent set the component's inputs. */
|
|
273
|
+
ngDoCheck(): void;
|
|
274
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MolPlacement, never>;
|
|
275
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MolPlacement, never, never, {}, {}, never, never, true, never>;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Registers the calling component's placement function: the one place where
|
|
279
|
+
* it decides, from its inputs and its projected content, which of its template
|
|
280
|
+
* elements are present ({@link setElementPresent}) and where its slots render
|
|
281
|
+
* ({@link placeContent}, {@link placeElement}). Call it in the constructor.
|
|
282
|
+
*
|
|
283
|
+
* The component writes no lifecycle hook for this. The function runs:
|
|
284
|
+
*
|
|
285
|
+
* - right after Angular adds, removes or changes a node of a slot the function
|
|
286
|
+
* read, in the same instruction — in whatever pass and from whatever
|
|
287
|
+
* template the node came, so the decision never lags the content and the new
|
|
288
|
+
* content is in the page before its own `ngAfterViewInit`;
|
|
289
|
+
* - when a signal it read changed (an effect);
|
|
290
|
+
* - when the component's view was first rendered and each time its parent
|
|
291
|
+
* checks it ({@link MolPlacement}, which the component lists in
|
|
292
|
+
* `hostDirectives`), so a plain input is followed in any kind of change
|
|
293
|
+
* detection, a bare `detectChanges()` included;
|
|
294
|
+
* - after every render.
|
|
295
|
+
*
|
|
296
|
+
* `hasContent` is the only way to ask whether a slot has content, and it works
|
|
297
|
+
* only while the function runs: a lifecycle hook cannot read a slot, because
|
|
298
|
+
* no hook runs at a moment when the slot is known to be current
|
|
299
|
+
* (`ngDoCheck` runs before the consumer's `@if` adds its node; no hook at all
|
|
300
|
+
* runs when the content comes through an `OnPush` component in between).
|
|
301
|
+
*
|
|
302
|
+
* @param place - The placement function. It gets `hasContent`.
|
|
303
|
+
*/
|
|
304
|
+
export declare function usePlacement(place: (hasContent: SlotReader) => void): void;
|
|
305
|
+
/**
|
|
306
|
+
* Keeps the calling component's host element out of the DOM while
|
|
307
|
+
* `isPresent()` is false: Angular's equivalent of a React component that
|
|
308
|
+
* returns `null`. Call it in the component's injection context.
|
|
309
|
+
*
|
|
310
|
+
* The host is put back before the component's own view refreshes whenever that
|
|
311
|
+
* is knowable: when a signal `isPresent` reads changed (an effect, which
|
|
312
|
+
* Angular runs before the view), and when Angular renders the first node into
|
|
313
|
+
* the absent host (so an `@if` branch that turns on with a plain input is
|
|
314
|
+
* built inside the document). Every render ends with the same check, which
|
|
315
|
+
* covers a predicate that reads what the render produced; a host restored
|
|
316
|
+
* there gets one more check with its content in the page.
|
|
317
|
+
*
|
|
318
|
+
* @param isPresent - Whether the component renders anything now. It may read
|
|
319
|
+
* inputs, plain fields or signals.
|
|
320
|
+
*/
|
|
321
|
+
export declare function useHostPresence(isPresent: () => boolean): void;
|
|
322
|
+
/**
|
|
323
|
+
* The wrappers around a component's projected children: React's
|
|
324
|
+
* `children.map((child) => <div>{child}</div>)`.
|
|
325
|
+
*
|
|
326
|
+
* The component lists it in `providers`, injects it, and puts
|
|
327
|
+
* `molWrapEachChild` on the template element that holds `<ng-content>`.
|
|
328
|
+
* Angular then places every projected child — at creation and whenever the
|
|
329
|
+
* consumer's `@for` or `@if` adds one later, anywhere in the list — inside its
|
|
330
|
+
* own wrapper, and a wrapper goes with its child. No node is moved after
|
|
331
|
+
* Angular placed it. The component styles the wrappers from {@link wrappers}
|
|
332
|
+
* (an effect), and reads React's `children.length` as `wrappers().length`.
|
|
333
|
+
*/
|
|
334
|
+
export declare class WrappedChildren {
|
|
335
|
+
private readonly state;
|
|
336
|
+
private parent;
|
|
337
|
+
private create;
|
|
338
|
+
/** The wrappers, in render order. */
|
|
339
|
+
readonly wrappers: Signal<readonly HTMLElement[]>;
|
|
340
|
+
constructor();
|
|
341
|
+
/**
|
|
342
|
+
* Sets how a wrapper element is created (default: an empty `<div>`). Call it
|
|
343
|
+
* in the constructor; attributes that depend on the child's index belong in
|
|
344
|
+
* an effect over {@link wrappers}.
|
|
345
|
+
*
|
|
346
|
+
* @param create - Builds one wrapper element.
|
|
347
|
+
*/
|
|
348
|
+
wrapWith(create: (document: Document) => HTMLElement): void;
|
|
349
|
+
/**
|
|
350
|
+
* Starts wrapping the children Angular places in `parent`.
|
|
351
|
+
*
|
|
352
|
+
* @param parent - The element that holds the projected content.
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
attach(parent: HTMLElement): void;
|
|
356
|
+
/**
|
|
357
|
+
* Creates one wrapper.
|
|
358
|
+
*
|
|
359
|
+
* @returns The wrapper element.
|
|
360
|
+
* @internal
|
|
361
|
+
*/
|
|
362
|
+
createWrapper(): HTMLElement;
|
|
363
|
+
/**
|
|
364
|
+
* Re-reads the wrappers after Angular added or removed a child.
|
|
365
|
+
*
|
|
366
|
+
* @internal
|
|
367
|
+
*/
|
|
368
|
+
refresh(): void;
|
|
369
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WrappedChildren, never>;
|
|
370
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Marks the template element whose projected children are each wrapped:
|
|
374
|
+
* `<div molWrapEachChild><ng-content /></div>`. See {@link WrappedChildren}.
|
|
375
|
+
* The marker attribute is taken off the element, so the markup stays React's.
|
|
376
|
+
*/
|
|
377
|
+
export declare class MolWrapEachChild {
|
|
378
|
+
constructor();
|
|
379
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MolWrapEachChild, never>;
|
|
380
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MolWrapEachChild, "[molWrapEachChild]", never, {}, {}, never, never, true, never>;
|
|
381
|
+
}
|
|
382
|
+
//# sourceMappingURL=dom-placement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-placement.d.ts","sourceRoot":"","sources":["../src/dom-placement.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,EAEL,KAAK,aAAa,EAIlB,KAAK,OAAO,EAGZ,KAAK,oBAAoB,EAUzB,KAAK,MAAM,EAIZ,MAAM,eAAe,CAAA;;AAqRtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAO,GAC3C,IAAI,CASN;AA2VD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,IAAI,oBAAoB,CAkB1D;AAkBD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG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