@molecule/app-ui-angular 1.4.1 → 1.5.1
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 +989 -1103
- package/dist/components/alert.component.d.ts +11 -16
- package/dist/components/alert.component.d.ts.map +1 -1
- package/dist/components/alert.component.js +22 -51
- package/dist/components/alert.component.js.map +1 -1
- package/dist/components/auth-guard.component.d.ts +36 -28
- package/dist/components/auth-guard.component.d.ts.map +1 -1
- package/dist/components/auth-guard.component.js +59 -67
- package/dist/components/auth-guard.component.js.map +1 -1
- package/dist/components/avatar.component.d.ts +13 -10
- package/dist/components/avatar.component.d.ts.map +1 -1
- package/dist/components/avatar.component.js +27 -25
- package/dist/components/avatar.component.js.map +1 -1
- package/dist/components/button.component.d.ts +26 -30
- package/dist/components/button.component.d.ts.map +1 -1
- package/dist/components/button.component.js +41 -75
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/checkbox.component.d.ts +5 -4
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +14 -9
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-button.component.d.ts +11 -28
- package/dist/components/confirm-button.component.d.ts.map +1 -1
- package/dist/components/confirm-button.component.js +31 -63
- package/dist/components/confirm-button.component.js.map +1 -1
- package/dist/components/confirm-dialog.component.d.ts +28 -17
- package/dist/components/confirm-dialog.component.d.ts.map +1 -1
- package/dist/components/confirm-dialog.component.js +98 -69
- package/dist/components/confirm-dialog.component.js.map +1 -1
- package/dist/components/dropdown.component.d.ts +29 -16
- package/dist/components/dropdown.component.d.ts.map +1 -1
- package/dist/components/dropdown.component.js +134 -105
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/empty-state.component.d.ts +10 -15
- package/dist/components/empty-state.component.d.ts.map +1 -1
- package/dist/components/empty-state.component.js +23 -27
- package/dist/components/empty-state.component.js.map +1 -1
- package/dist/components/form-field.component.d.ts +26 -11
- package/dist/components/form-field.component.d.ts.map +1 -1
- package/dist/components/form-field.component.js +86 -25
- package/dist/components/form-field.component.js.map +1 -1
- package/dist/components/input.component.d.ts +20 -23
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +45 -54
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/language-picker.component.d.ts +15 -18
- package/dist/components/language-picker.component.d.ts.map +1 -1
- package/dist/components/language-picker.component.js +25 -35
- package/dist/components/language-picker.component.js.map +1 -1
- package/dist/components/load-error-banner.component.d.ts +14 -26
- package/dist/components/load-error-banner.component.d.ts.map +1 -1
- package/dist/components/load-error-banner.component.js +28 -62
- package/dist/components/load-error-banner.component.js.map +1 -1
- package/dist/components/modal.component.d.ts +25 -21
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +42 -78
- package/dist/components/modal.component.js.map +1 -1
- package/dist/components/molecule/button.component.d.ts +13 -2
- package/dist/components/molecule/button.component.d.ts.map +1 -1
- package/dist/components/molecule/button.component.js +45 -15
- package/dist/components/molecule/button.component.js.map +1 -1
- package/dist/components/molecule/toast.component.d.ts +2 -1
- package/dist/components/molecule/toast.component.d.ts.map +1 -1
- package/dist/components/molecule/toast.component.js +9 -7
- package/dist/components/molecule/toast.component.js.map +1 -1
- package/dist/components/molecule/tooltip.component.d.ts +4 -2
- package/dist/components/molecule/tooltip.component.d.ts.map +1 -1
- package/dist/components/molecule/tooltip.component.js +19 -14
- package/dist/components/molecule/tooltip.component.js.map +1 -1
- package/dist/components/optimistic-toggle-button.component.d.ts +13 -25
- package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -1
- package/dist/components/optimistic-toggle-button.component.js +33 -63
- package/dist/components/optimistic-toggle-button.component.js.map +1 -1
- package/dist/components/page-header.component.d.ts +8 -13
- package/dist/components/page-header.component.d.ts.map +1 -1
- package/dist/components/page-header.component.js +16 -24
- package/dist/components/page-header.component.js.map +1 -1
- package/dist/components/page-shell.component.d.ts +8 -14
- package/dist/components/page-shell.component.d.ts.map +1 -1
- package/dist/components/page-shell.component.js +18 -28
- package/dist/components/page-shell.component.js.map +1 -1
- package/dist/components/panel-close.component.d.ts +14 -8
- package/dist/components/panel-close.component.d.ts.map +1 -1
- package/dist/components/panel-close.component.js +28 -17
- package/dist/components/panel-close.component.js.map +1 -1
- package/dist/components/prompt-dialog.component.d.ts +32 -10
- package/dist/components/prompt-dialog.component.d.ts.map +1 -1
- package/dist/components/prompt-dialog.component.js +110 -73
- package/dist/components/prompt-dialog.component.js.map +1 -1
- package/dist/components/responsive-app-shell.component.d.ts +38 -57
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
- package/dist/components/responsive-app-shell.component.js +138 -213
- package/dist/components/responsive-app-shell.component.js.map +1 -1
- package/dist/components/sidebar-user-card.component.d.ts +8 -12
- package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
- package/dist/components/sidebar-user-card.component.js +19 -35
- package/dist/components/sidebar-user-card.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +13 -8
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +29 -20
- package/dist/components/switch.component.js.map +1 -1
- package/dist/components/table.component.d.ts +22 -14
- package/dist/components/table.component.d.ts.map +1 -1
- package/dist/components/table.component.js +34 -32
- package/dist/components/table.component.js.map +1 -1
- package/dist/components/toast.component.d.ts +34 -37
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +76 -112
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +14 -11
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +47 -47
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +6 -12
- package/dist/components/user-menu-popover.component.d.ts.map +1 -1
- package/dist/components/user-menu-popover.component.js +40 -77
- package/dist/components/user-menu-popover.component.js.map +1 -1
- package/dist/components/user-menu.component.d.ts +8 -11
- package/dist/components/user-menu.component.d.ts.map +1 -1
- package/dist/components/user-menu.component.js +19 -27
- package/dist/components/user-menu.component.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/utilities/dom-context.d.ts +62 -15
- package/dist/utilities/dom-context.d.ts.map +1 -1
- package/dist/utilities/dom-context.js +79 -34
- package/dist/utilities/dom-context.js.map +1 -1
- package/dist/utilities/form-field-context.d.ts +2 -0
- package/dist/utilities/form-field-context.d.ts.map +1 -1
- package/dist/utilities/form-field-context.js +4 -2
- package/dist/utilities/form-field-context.js.map +1 -1
- package/dist/utilities/node-value.d.ts +8 -0
- package/dist/utilities/node-value.d.ts.map +1 -1
- package/dist/utilities/node-value.js +10 -0
- package/dist/utilities/node-value.js.map +1 -1
- package/dist/utilities/rest-attrs.d.ts +2 -2
- package/dist/utilities/rest-attrs.js +1 -1
- package/package.json +3 -3
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { Component, ElementRef, inject,
|
|
7
|
+
import { Component, ElementRef, inject, signal, ViewChild, } from '@angular/core';
|
|
8
|
+
import { MolPlacement, placeContent, setElementPresent, usePlacement, } from '@molecule/app-angular';
|
|
8
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
10
|
import { hostElement } from '../utilities/element.js';
|
|
10
11
|
import { asTemplate, nodeText } from '../utilities/node-value.js';
|
|
11
12
|
import { createOptimisticValue } from '../utilities/optimistic-value.js';
|
|
12
13
|
import { styleText } from '../utilities/style.js';
|
|
13
|
-
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
14
14
|
import { MolTemplateOutlet } from './template-outlet.directive.js';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
16
|
+
import * as i1 from "@molecule/app-angular";
|
|
16
17
|
const _c0 = ["leftSlot"];
|
|
17
18
|
const _c1 = ["activeSlot"];
|
|
18
19
|
const _c2 = ["inactiveSlot"];
|
|
@@ -87,15 +88,12 @@ export class OptimisticToggleButton {
|
|
|
87
88
|
host = inject(ElementRef);
|
|
88
89
|
/** The element a caller's ref receives: the host `<button>`. */
|
|
89
90
|
element = hostElement(this.host);
|
|
90
|
-
renderer = inject(Renderer2);
|
|
91
|
-
sync = new SlotWrapper(this.host, this.renderer);
|
|
92
91
|
unsubscribe;
|
|
93
92
|
lastReceived = false;
|
|
94
93
|
hasLeft = false;
|
|
95
94
|
hasRight = false;
|
|
96
|
-
|
|
95
|
+
/** The slot whose content is currently shown on the button. */
|
|
97
96
|
visibleFrom = null;
|
|
98
|
-
anchor = null;
|
|
99
97
|
/** Creates the optimistic controller and mirrors its state into the signal. */
|
|
100
98
|
constructor() {
|
|
101
99
|
this.controller = createOptimisticValue({
|
|
@@ -105,6 +103,7 @@ export class OptimisticToggleButton {
|
|
|
105
103
|
});
|
|
106
104
|
this.unsubscribe = this.controller.subscribe((next) => this.state.set({ ...next }));
|
|
107
105
|
this.state.set(this.controller.getState());
|
|
106
|
+
usePlacement((hasContent) => this.reconcile(hasContent));
|
|
108
107
|
}
|
|
109
108
|
/**
|
|
110
109
|
* The current class map.
|
|
@@ -148,83 +147,53 @@ export class OptimisticToggleButton {
|
|
|
148
147
|
this.controller.update((current) => !current);
|
|
149
148
|
}
|
|
150
149
|
/**
|
|
151
|
-
* Reads slot presence
|
|
152
|
-
*
|
|
150
|
+
* Reads slot presence and takes the label capture spans out of the DOM,
|
|
151
|
+
* then shows the visible label.
|
|
152
|
+
*
|
|
153
|
+
* @param hasContent - Reads whether a slot has content.
|
|
153
154
|
*/
|
|
154
|
-
|
|
155
|
-
this.hasLeft =
|
|
156
|
-
this.hasRight =
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
155
|
+
reconcile(hasContent) {
|
|
156
|
+
this.hasLeft = hasContent(this.leftSlot?.nativeElement);
|
|
157
|
+
this.hasRight = hasContent(this.rightSlot?.nativeElement);
|
|
158
|
+
setElementPresent(this.activeSlot?.nativeElement, false);
|
|
159
|
+
setElementPresent(this.inactiveSlot?.nativeElement, false);
|
|
160
|
+
setElementPresent(this.leftSlot?.nativeElement, this.hasLeft);
|
|
161
|
+
setElementPresent(this.rightSlot?.nativeElement, this.hasRight);
|
|
161
162
|
this.syncLabels();
|
|
162
163
|
}
|
|
163
164
|
/**
|
|
164
165
|
* Takes a newer server value the way React's effect does (only when it
|
|
165
|
-
* differs from the last one received)
|
|
166
|
+
* differs from the last one received).
|
|
166
167
|
*/
|
|
167
168
|
ngDoCheck() {
|
|
168
169
|
if (this.value !== this.lastReceived) {
|
|
169
170
|
this.lastReceived = this.value;
|
|
170
171
|
this.controller.sync(this.value);
|
|
171
172
|
}
|
|
172
|
-
this.syncLabels();
|
|
173
173
|
}
|
|
174
174
|
/** Stops mirroring controller state into the signal (unmount). */
|
|
175
175
|
ngOnDestroy() {
|
|
176
176
|
this.unsubscribe?.();
|
|
177
|
-
this.visibleNodes = [];
|
|
178
|
-
this.visibleFrom = null;
|
|
179
177
|
}
|
|
180
178
|
/**
|
|
181
179
|
* Shows exactly the displayed value's projected children on the button —
|
|
182
|
-
* React renders exactly one label and no wrapper element
|
|
180
|
+
* React renders exactly one label and no wrapper element, with the right
|
|
181
|
+
* icon (or nothing) after it.
|
|
183
182
|
*/
|
|
184
183
|
syncLabels() {
|
|
185
184
|
const state = this.controller.getState();
|
|
186
|
-
|
|
185
|
+
const shown = state.value
|
|
187
186
|
? (this.activeSlot?.nativeElement ?? null)
|
|
188
|
-
: (this.inactiveSlot?.nativeElement ?? null)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
if (span === this.visibleFrom)
|
|
199
|
-
return;
|
|
200
|
-
for (const node of this.visibleNodes) {
|
|
201
|
-
if (node.parentNode === host)
|
|
202
|
-
this.visibleFrom?.appendChild(node);
|
|
203
|
-
}
|
|
204
|
-
this.visibleNodes = [];
|
|
205
|
-
this.visibleFrom = null;
|
|
206
|
-
if (!span)
|
|
207
|
-
return;
|
|
208
|
-
const nodes = Array.from(span.childNodes);
|
|
209
|
-
for (const node of nodes)
|
|
210
|
-
host.insertBefore(node, this.labelAnchor());
|
|
211
|
-
this.visibleNodes = nodes;
|
|
212
|
-
this.visibleFrom = span;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* The insertion point for the visible projected label (a comment the DOM
|
|
216
|
-
* normalizer strips), kept after the left icon wrapper.
|
|
217
|
-
* @returns The anchor comment.
|
|
218
|
-
*/
|
|
219
|
-
labelAnchor() {
|
|
220
|
-
if (this.anchor?.isConnected)
|
|
221
|
-
return this.anchor;
|
|
222
|
-
const anchor = this.renderer.createComment('label');
|
|
223
|
-
const host = this.host.nativeElement;
|
|
224
|
-
const left = this.leftSlot?.nativeElement;
|
|
225
|
-
host.insertBefore(anchor, left ? left.nextSibling : host.firstChild);
|
|
226
|
-
this.anchor = anchor;
|
|
227
|
-
return anchor;
|
|
187
|
+
: (this.inactiveSlot?.nativeElement ?? null);
|
|
188
|
+
const hidden = state.value
|
|
189
|
+
? (this.inactiveSlot?.nativeElement ?? null)
|
|
190
|
+
: (this.activeSlot?.nativeElement ?? null);
|
|
191
|
+
if (hidden)
|
|
192
|
+
placeContent(hidden, null);
|
|
193
|
+
// The label goes before the right icon's place (its placeholder while the
|
|
194
|
+
// icon is absent, which placeContent resolves), else at the end.
|
|
195
|
+
if (shown)
|
|
196
|
+
placeContent(shown, this.host.nativeElement, this.rightSlot?.nativeElement ?? null);
|
|
228
197
|
}
|
|
229
198
|
static ɵfac = function OptimisticToggleButton_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || OptimisticToggleButton)(); };
|
|
230
199
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OptimisticToggleButton, selectors: [["button", "mol-optimistic-toggle-button", ""]], viewQuery: function OptimisticToggleButton_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -242,7 +211,7 @@ export class OptimisticToggleButton {
|
|
|
242
211
|
i0.ɵɵattribute("value", null)("type", "button")("data-mol-id", ctx.molId())("data-testid", ctx.testId)("aria-pressed", ctx.state().value ? "true" : "false")("aria-busy", ctx.state().pending ? "true" : "false");
|
|
243
212
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
244
213
|
i0.ɵɵclassMap(ctx.classes());
|
|
245
|
-
} }, inputs: { value: "value", commit: "commit", activeLabel: "activeLabel", inactiveLabel: "inactiveLabel", onError: "onError", variant: "variant", color: "color", size: "size", fullWidth: "fullWidth", leftIcon: "leftIcon", rightIcon: "rightIcon", className: "className", style: "style", testId: "testId", disabled: "disabled", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, ngContentSelectors: _c5, decls: 20, vars: 12, consts: [["leftSlot", ""], ["activeSlot", ""], ["inactiveSlot", ""], ["rightSlot", ""], [3, "molTemplateOutlet"]], template: function OptimisticToggleButton_Template(rf, ctx) { if (rf & 1) {
|
|
214
|
+
} }, inputs: { value: "value", commit: "commit", activeLabel: "activeLabel", inactiveLabel: "inactiveLabel", onError: "onError", variant: "variant", color: "color", size: "size", fullWidth: "fullWidth", leftIcon: "leftIcon", rightIcon: "rightIcon", className: "className", style: "style", testId: "testId", disabled: "disabled", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c5, decls: 20, vars: 12, consts: [["leftSlot", ""], ["activeSlot", ""], ["inactiveSlot", ""], ["rightSlot", ""], [3, "molTemplateOutlet"]], template: function OptimisticToggleButton_Template(rf, ctx) { if (rf & 1) {
|
|
246
215
|
i0.ɵɵprojectionDef(_c4);
|
|
247
216
|
i0.ɵɵelementStart(0, "span", null, 0);
|
|
248
217
|
i0.ɵɵprojection(2);
|
|
@@ -291,6 +260,7 @@ export class OptimisticToggleButton {
|
|
|
291
260
|
args: [{
|
|
292
261
|
selector: 'button[mol-optimistic-toggle-button]',
|
|
293
262
|
standalone: true,
|
|
263
|
+
hostDirectives: [MolPlacement],
|
|
294
264
|
imports: [MolTemplateOutlet],
|
|
295
265
|
inputs: [
|
|
296
266
|
'value',
|
|
@@ -356,5 +326,5 @@ export class OptimisticToggleButton {
|
|
|
356
326
|
type: ViewChild,
|
|
357
327
|
args: ['rightSlot']
|
|
358
328
|
}] }); })();
|
|
359
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OptimisticToggleButton, { className: "OptimisticToggleButton", filePath: "components/optimistic-toggle-button.component.ts", lineNumber:
|
|
329
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OptimisticToggleButton, { className: "OptimisticToggleButton", filePath: "components/optimistic-toggle-button.component.ts", lineNumber: 145 }); })();
|
|
360
330
|
//# sourceMappingURL=optimistic-toggle-button.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimistic-toggle-button.component.js","sourceRoot":"","sources":["../../src/components/optimistic-toggle-button.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"optimistic-toggle-button.component.js","sourceRoot":"","sources":["../../src/components/optimistic-toggle-button.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,SAAS,EAET,UAAU,EACV,MAAM,EAEN,MAAM,EAEN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,iBAAiB,EAEjB,YAAY,GACb,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACj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,EAAE;;;;;;;;;;;;;;;;MAgBN;aACL;;kBAoDE,SAAS;mBAAC,UAAU;;kBAEpB,SAAS;mBAAC,YAAY;;kBAEtB,SAAS;mBAAC,cAAc;;kBAExB,SAAS;mBAAC,WAAW;;kFAzDX,sBAAsB"}
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { ElementRef } from '@angular/core';
|
|
8
8
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
9
9
|
import { type HasElement } from '../utilities/element.js';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@molecule/app-angular";
|
|
11
12
|
/** One breadcrumb entry. */
|
|
12
13
|
interface Breadcrumb {
|
|
13
14
|
/** The visible label. */
|
|
@@ -24,7 +25,7 @@ interface Breadcrumb {
|
|
|
24
25
|
* `{actions ? <div>…</div> : null}`), implemented by detaching the wrapper
|
|
25
26
|
* from the DOM — the projected nodes need an always-mounted capture point.
|
|
26
27
|
*/
|
|
27
|
-
export declare class PageHeader implements
|
|
28
|
+
export declare class PageHeader implements HasElement<HTMLDivElement> {
|
|
28
29
|
/** Page title. */
|
|
29
30
|
title: string;
|
|
30
31
|
/** Page description. */
|
|
@@ -47,12 +48,12 @@ export declare class PageHeader implements AfterViewInit, DoCheck, HasElement<HT
|
|
|
47
48
|
* does not).
|
|
48
49
|
*/
|
|
49
50
|
private readonly i18n;
|
|
50
|
-
private readonly sync;
|
|
51
51
|
private readonly host;
|
|
52
52
|
/** The element a caller's ref receives: the host `<div>`. */
|
|
53
53
|
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
54
54
|
private hasActions;
|
|
55
|
-
|
|
55
|
+
/** Applies React's `{actions ? <div>…</div> : null}`. */
|
|
56
|
+
constructor();
|
|
56
57
|
/**
|
|
57
58
|
* The current class map.
|
|
58
59
|
* @returns The UIClassMap.
|
|
@@ -73,20 +74,14 @@ export declare class PageHeader implements AfterViewInit, DoCheck, HasElement<HT
|
|
|
73
74
|
* @returns The style attribute text.
|
|
74
75
|
*/
|
|
75
76
|
hostStyle(): string | null;
|
|
76
|
-
/**
|
|
77
|
-
* Reads actions presence at view init (view queries resolve only then).
|
|
78
|
-
*/
|
|
79
|
-
ngAfterViewInit(): void;
|
|
80
|
-
/**
|
|
81
|
-
* Re-reconciles the actions wrapper on later passes.
|
|
82
|
-
*/
|
|
83
|
-
ngDoCheck(): void;
|
|
84
77
|
/**
|
|
85
78
|
* Applies React's `{actions ? <div>…</div> : null}`.
|
|
79
|
+
*
|
|
80
|
+
* @param hasContent - Reads whether a slot has content.
|
|
86
81
|
*/
|
|
87
82
|
private syncActions;
|
|
88
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeader, never>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeader, "div[mol-page-header]", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; }, {}, never, ["[slot=actions]"], true,
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeader, "div[mol-page-header]", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; }, {}, never, ["[slot=actions]"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
90
85
|
}
|
|
91
86
|
export {};
|
|
92
87
|
//# sourceMappingURL=page-header.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.component.d.ts","sourceRoot":"","sources":["../../src/components/page-header.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"page-header.component.d.ts","sourceRoot":"","sources":["../../src/components/page-header.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAa,UAAU,EAAqB,MAAM,eAAe,CAAA;AASxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;;;AAGtE,4BAA4B;AAC5B,UAAU,UAAU;IAClB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;GAQG;AACH,qBAwCa,UAAW,YAAW,UAAU,CAAC,cAAc,CAAC;IAC3D,kBAAkB;IAClB,KAAK,SAAK;IACV,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,yDAAyD;IACzD,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB,0EAA0E;IAChD,WAAW,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAA;IAElE;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiD;IACtE,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,wDAAyB;IACzC,OAAO,CAAC,UAAU,CAAQ;IAE1B,yDAAyD;;IAKzD;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;;;OAIG;IACH,OAAO,CAAC,WAAW;yCAzER,UAAU;2CAAV,UAAU;CA6EtB"}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { Component, ElementRef, inject,
|
|
8
|
-
import { useTranslation } from '@molecule/app-angular';
|
|
7
|
+
import { Component, ElementRef, inject, ViewChild } from '@angular/core';
|
|
8
|
+
import { MolPlacement, setElementPresent, usePlacement, useTranslation, } from '@molecule/app-angular';
|
|
9
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
10
|
import { hostElement } from '../utilities/element.js';
|
|
11
11
|
import { styleText } from '../utilities/style.js';
|
|
12
|
-
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@molecule/app-angular";
|
|
14
14
|
const _c0 = ["actionsSlot"];
|
|
15
15
|
const _c1 = [[["", "slot", "actions"]]];
|
|
16
16
|
const _c2 = ["[slot=actions]"];
|
|
@@ -109,12 +109,14 @@ export class PageHeader {
|
|
|
109
109
|
* does not).
|
|
110
110
|
*/
|
|
111
111
|
i18n = useTranslation();
|
|
112
|
-
sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
|
|
113
112
|
host = inject(ElementRef);
|
|
114
113
|
/** The element a caller's ref receives: the host `<div>`. */
|
|
115
114
|
element = hostElement(this.host);
|
|
116
115
|
hasActions = false;
|
|
117
|
-
|
|
116
|
+
/** Applies React's `{actions ? <div>…</div> : null}`. */
|
|
117
|
+
constructor() {
|
|
118
|
+
usePlacement((hasContent) => this.syncActions(hasContent));
|
|
119
|
+
}
|
|
118
120
|
/**
|
|
119
121
|
* The current class map.
|
|
120
122
|
* @returns The UIClassMap.
|
|
@@ -143,25 +145,14 @@ export class PageHeader {
|
|
|
143
145
|
hostStyle() {
|
|
144
146
|
return styleText(this.style);
|
|
145
147
|
}
|
|
146
|
-
/**
|
|
147
|
-
* Reads actions presence at view init (view queries resolve only then).
|
|
148
|
-
*/
|
|
149
|
-
ngAfterViewInit() {
|
|
150
|
-
this.actionsParent = this.actionsSlot?.nativeElement.parentElement ?? null;
|
|
151
|
-
this.hasActions = hasNodes(this.actionsSlot?.nativeElement);
|
|
152
|
-
this.syncActions();
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Re-reconciles the actions wrapper on later passes.
|
|
156
|
-
*/
|
|
157
|
-
ngDoCheck() {
|
|
158
|
-
this.syncActions();
|
|
159
|
-
}
|
|
160
148
|
/**
|
|
161
149
|
* Applies React's `{actions ? <div>…</div> : null}`.
|
|
150
|
+
*
|
|
151
|
+
* @param hasContent - Reads whether a slot has content.
|
|
162
152
|
*/
|
|
163
|
-
syncActions() {
|
|
164
|
-
this.
|
|
153
|
+
syncActions(hasContent) {
|
|
154
|
+
this.hasActions = hasContent(this.actionsSlot?.nativeElement);
|
|
155
|
+
setElementPresent(this.actionsSlot?.nativeElement, this.hasActions);
|
|
165
156
|
}
|
|
166
157
|
static ɵfac = function PageHeader_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PageHeader)(); };
|
|
167
158
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageHeader, selectors: [["div", "mol-page-header", ""]], viewQuery: function PageHeader_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -173,7 +164,7 @@ export class PageHeader {
|
|
|
173
164
|
i0.ɵɵattribute("title", null)("data-testid", ctx.testId)("data-mol-id", ctx.automationId);
|
|
174
165
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
175
166
|
i0.ɵɵclassMap(ctx.classes());
|
|
176
|
-
} }, inputs: { title: "title", description: "description", breadcrumbs: "breadcrumbs", className: "className", style: "style", testId: "testId", automationId: "automationId" }, ngContentSelectors: _c2, decls: 9, vars: 10, consts: [["actionsSlot", ""], [3, "class"], ["aria-hidden", "true", 3, "class"], [3, "href", "class"], ["aria-hidden", "true"], [3, "href"]], template: function PageHeader_Template(rf, ctx) { if (rf & 1) {
|
|
167
|
+
} }, inputs: { title: "title", description: "description", breadcrumbs: "breadcrumbs", className: "className", style: "style", testId: "testId", automationId: "automationId" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c2, decls: 9, vars: 10, consts: [["actionsSlot", ""], [3, "class"], ["aria-hidden", "true", 3, "class"], [3, "href", "class"], ["aria-hidden", "true"], [3, "href"]], template: function PageHeader_Template(rf, ctx) { if (rf & 1) {
|
|
177
168
|
i0.ɵɵprojectionDef(_c1);
|
|
178
169
|
i0.ɵɵconditionalCreate(0, PageHeader_Conditional_0_Template, 3, 3, "nav", 1);
|
|
179
170
|
i0.ɵɵdomElementStart(1, "div")(2, "div")(3, "h1");
|
|
@@ -203,6 +194,7 @@ export class PageHeader {
|
|
|
203
194
|
args: [{
|
|
204
195
|
selector: 'div[mol-page-header]',
|
|
205
196
|
standalone: true,
|
|
197
|
+
hostDirectives: [MolPlacement],
|
|
206
198
|
inputs: ['title', 'description', 'breadcrumbs', 'className', 'style', 'testId', 'automationId'],
|
|
207
199
|
host: {
|
|
208
200
|
// `title` is this component's heading, which React renders as text; Angular would also keep a
|
|
@@ -239,9 +231,9 @@ export class PageHeader {
|
|
|
239
231
|
</div>
|
|
240
232
|
</div>`,
|
|
241
233
|
}]
|
|
242
|
-
}],
|
|
234
|
+
}], () => [], { actionsSlot: [{
|
|
243
235
|
type: ViewChild,
|
|
244
236
|
args: ['actionsSlot']
|
|
245
237
|
}] }); })();
|
|
246
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageHeader, { className: "PageHeader", filePath: "components/page-header.component.ts", lineNumber:
|
|
238
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageHeader, { className: "PageHeader", filePath: "components/page-header.component.ts", lineNumber: 80 }); })();
|
|
247
239
|
//# sourceMappingURL=page-header.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.component.js","sourceRoot":"","sources":["../../src/components/page-header.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"page-header.component.js","sourceRoot":"","sources":["../../src/components/page-header.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAExE,OAAO,EACL,YAAY,EACZ,iBAAiB,EAEjB,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;;;;;;IAqCrC,kCAAsE;IAAA,iBAAC;IAAA,oBAAO;;;IAAxE,wDAA4C;;;IAGlD,+BAA+D;IAAA,YAAiB;IAAA,oBAAI;;;;IAA7D,mDAAuC;IAA3D,yDAAmB;IAAyC,cAAiB;IAAjB,oCAAiB;;;IAEhF,+BAA8C;IAAA,YAAiB;IAAA,oBAAO;;;;IAAhE,mDAAuC;IAAC,cAAiB;IAAjB,oCAAiB;;;IANjE,iGAAkB;IAKhB,AAFF,8FAAkB,2EAET;;;;IALT,wCAEC;IACD,cAIC;IAJD,uCAIC;;;IATL,8BAAgF;IAC9E,4GASC;IACH,oBAAM;;;IAXD,gDAAoC;;IACvC,cASC;IATD,iCASC;;;IAOC,4BAAwC;IAAA,YAAiB;IAAA,oBAAI;;;IAA1D,gDAAoC;IAAC,cAAiB;IAAjB,wCAAiB;;AAzCnE;;;;;;;;GAQG;AAyCH,MAAM,OAAO,UAAU;IACrB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,WAAW,EAAE,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;IACrE,CAAC;oGA5EU,UAAU;6DAAV,UAAU;;;;;;oCAAV,IAAI;YAAJ,cAAA,eAAW,CAAD;YAAV,cAAA,aAAS,CAAC;;;YA1BV,4EAA6C;YAgBlD,AADF,AADF,8BAAkE,UAC3D,SACgC;YAAA,YAAW;YAAA,oBAAK;YACnD,0EAAmB;YAGrB,oBAAM;YACN,uCAAmD;YACjD,kBAAiD;YAErD,AADE,oBAAM,EACF;;YAxBG,wEAaR;YACI,cAA4D;YAA5D,wDAA4D;YAEzD,eAA8B;YAA9B,uCAA8B;YAAC,cAAW;YAAX,+BAAW;YAC9C,cAEC;YAFD,0CAEC;YAEe,cAAgC;YAAhC,yCAAgC;;;iFAK3C,UAAU;cAxCtB,SAAS;eAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,UAAU,EAAE,IAAI;gBAChB,cAAc,EAAE,CAAC,YAAY,CAAC;gBAC9B,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,CAAC;gBAC/F,IAAI,EAAE;oBACJ,8FAA8F;oBAC9F,2EAA2E;oBAC3E,cAAc,EAAE,MAAM;oBACtB,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,oBAAoB,EAAE,cAAc;iBACrC;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;WAwBD;aACV;;kBAkBE,SAAS;mBAAC,aAAa;;kFAjBb,UAAU"}
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
8
8
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
9
9
|
import { type HasElement } from '../utilities/element.js';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@molecule/app-angular";
|
|
11
12
|
/**
|
|
12
13
|
* PageShell component.
|
|
13
14
|
*
|
|
@@ -21,7 +22,7 @@ import * as i0 from "@angular/core";
|
|
|
21
22
|
* `onSidebarToggle` (React's `{onSidebarToggle ? … : null}`); with an
|
|
22
23
|
* `@Output`, that presence is the output's subscriber count.
|
|
23
24
|
*/
|
|
24
|
-
export declare class PageShell implements
|
|
25
|
+
export declare class PageShell implements HasElement<HTMLDivElement> {
|
|
25
26
|
/** Sidebar content (node-valued prop). */
|
|
26
27
|
sidebar?: unknown;
|
|
27
28
|
/** Top bar content (node-valued prop). */
|
|
@@ -48,14 +49,13 @@ export declare class PageShell implements AfterViewInit, DoCheck, HasElement<HTM
|
|
|
48
49
|
* does not).
|
|
49
50
|
*/
|
|
50
51
|
private readonly i18n;
|
|
51
|
-
private readonly sync;
|
|
52
52
|
private readonly host;
|
|
53
53
|
/** The element a caller's ref receives: the host `<div>`. */
|
|
54
54
|
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
55
55
|
private hasSidebar;
|
|
56
56
|
private hasTopbar;
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
/** Applies React's `{sidebar ? … : null}` / `{topbar ? … : null}`. */
|
|
58
|
+
constructor();
|
|
59
59
|
/**
|
|
60
60
|
* The current class map.
|
|
61
61
|
* @returns The UIClassMap.
|
|
@@ -87,19 +87,13 @@ export declare class PageShell implements AfterViewInit, DoCheck, HasElement<HTM
|
|
|
87
87
|
* @returns The style attribute text.
|
|
88
88
|
*/
|
|
89
89
|
hostStyle(): string | null;
|
|
90
|
-
/**
|
|
91
|
-
* Reads slot presence at view init (view queries resolve only then).
|
|
92
|
-
*/
|
|
93
|
-
ngAfterViewInit(): void;
|
|
94
|
-
/**
|
|
95
|
-
* Re-reconciles the wrappers on later passes.
|
|
96
|
-
*/
|
|
97
|
-
ngDoCheck(): void;
|
|
98
90
|
/**
|
|
99
91
|
* Applies React's `{sidebar ? … : null}` / `{topbar ? … : null}`.
|
|
92
|
+
*
|
|
93
|
+
* @param hasContent - Reads whether a slot has content.
|
|
100
94
|
*/
|
|
101
95
|
private syncWrappers;
|
|
102
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageShell, never>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageShell, "div[mol-page-shell]", never, { "sidebar": { "alias": "sidebar"; "required": false; }; "topbar": { "alias": "topbar"; "required": false; }; "sidebarCollapsed": { "alias": "sidebarCollapsed"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; }, { "sidebarToggle": "sidebarToggle"; }, never, ["[slot=sidebar]", "[slot=topbar]", "*"], true,
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageShell, "div[mol-page-shell]", never, { "sidebar": { "alias": "sidebar"; "required": false; }; "topbar": { "alias": "topbar"; "required": false; }; "sidebarCollapsed": { "alias": "sidebarCollapsed"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; }, { "sidebarToggle": "sidebarToggle"; }, never, ["[slot=sidebar]", "[slot=topbar]", "*"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
|
|
104
98
|
}
|
|
105
99
|
//# sourceMappingURL=page-shell.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-shell.component.d.ts","sourceRoot":"","sources":["../../src/components/page-shell.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"page-shell.component.d.ts","sourceRoot":"","sources":["../../src/components/page-shell.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAa,UAAU,EAAE,YAAY,EA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,IAAI,MAAM,GAAG,IAAI;IAI1B;;;;OAIG;IACH,OAAO,CAAC,YAAY;yCArGT,SAAS;2CAAT,SAAS;CA2GrB"}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { Component, ElementRef, EventEmitter, inject, Output,
|
|
8
|
-
import { useTranslation } from '@molecule/app-angular';
|
|
7
|
+
import { Component, ElementRef, EventEmitter, inject, Output, ViewChild } from '@angular/core';
|
|
8
|
+
import { MolPlacement, setElementPresent, usePlacement, useTranslation, } from '@molecule/app-angular';
|
|
9
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
10
|
import { hostElement } from '../utilities/element.js';
|
|
11
11
|
import { styleText } from '../utilities/style.js';
|
|
12
|
-
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@molecule/app-angular";
|
|
14
14
|
const _c0 = ["sidebarSlot"];
|
|
15
15
|
const _c1 = ["topbarSlot"];
|
|
16
16
|
const _c2 = [[["", "slot", "sidebar"]], [["", "slot", "topbar"]], "*"];
|
|
@@ -68,14 +68,15 @@ export class PageShell {
|
|
|
68
68
|
* does not).
|
|
69
69
|
*/
|
|
70
70
|
i18n = useTranslation();
|
|
71
|
-
sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
|
|
72
71
|
host = inject(ElementRef);
|
|
73
72
|
/** The element a caller's ref receives: the host `<div>`. */
|
|
74
73
|
element = hostElement(this.host);
|
|
75
74
|
hasSidebar = false;
|
|
76
75
|
hasTopbar = false;
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
/** Applies React's `{sidebar ? … : null}` / `{topbar ? … : null}`. */
|
|
77
|
+
constructor() {
|
|
78
|
+
usePlacement((hasContent) => this.syncWrappers(hasContent));
|
|
79
|
+
}
|
|
79
80
|
/**
|
|
80
81
|
* The current class map.
|
|
81
82
|
* @returns The UIClassMap.
|
|
@@ -121,28 +122,16 @@ export class PageShell {
|
|
|
121
122
|
hostStyle() {
|
|
122
123
|
return styleText(this.style);
|
|
123
124
|
}
|
|
124
|
-
/**
|
|
125
|
-
* Reads slot presence at view init (view queries resolve only then).
|
|
126
|
-
*/
|
|
127
|
-
ngAfterViewInit() {
|
|
128
|
-
this.sidebarParent = this.sidebarSlot?.nativeElement.parentElement ?? null;
|
|
129
|
-
this.topbarParent = this.topbarSlot?.nativeElement.parentElement ?? null;
|
|
130
|
-
this.hasSidebar = hasNodes(this.sidebarSlot?.nativeElement);
|
|
131
|
-
this.hasTopbar = hasNodes(this.topbarSlot?.nativeElement);
|
|
132
|
-
this.syncWrappers();
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Re-reconciles the wrappers on later passes.
|
|
136
|
-
*/
|
|
137
|
-
ngDoCheck() {
|
|
138
|
-
this.syncWrappers();
|
|
139
|
-
}
|
|
140
125
|
/**
|
|
141
126
|
* Applies React's `{sidebar ? … : null}` / `{topbar ? … : null}`.
|
|
127
|
+
*
|
|
128
|
+
* @param hasContent - Reads whether a slot has content.
|
|
142
129
|
*/
|
|
143
|
-
syncWrappers() {
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
130
|
+
syncWrappers(hasContent) {
|
|
131
|
+
this.hasSidebar = hasContent(this.sidebarSlot?.nativeElement);
|
|
132
|
+
this.hasTopbar = hasContent(this.topbarSlot?.nativeElement);
|
|
133
|
+
setElementPresent(this.sidebarSlot?.nativeElement, this.hasSidebar);
|
|
134
|
+
setElementPresent(this.topbarSlot?.nativeElement, this.hasTopbar);
|
|
146
135
|
}
|
|
147
136
|
static ɵfac = function PageShell_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PageShell)(); };
|
|
148
137
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PageShell, selectors: [["div", "mol-page-shell", ""]], viewQuery: function PageShell_Query(rf, ctx) { if (rf & 1) {
|
|
@@ -155,7 +144,7 @@ export class PageShell {
|
|
|
155
144
|
i0.ɵɵattribute("data-testid", ctx.testId)("data-mol-id", ctx.automationId);
|
|
156
145
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
157
146
|
i0.ɵɵclassMap(ctx.classes());
|
|
158
|
-
} }, inputs: { sidebar: "sidebar", topbar: "topbar", sidebarCollapsed: "sidebarCollapsed", className: "className", style: "style", testId: "testId", automationId: "automationId" }, outputs: { sidebarToggle: "sidebarToggle" }, ngContentSelectors: _c3, decls: 10, vars: 9, consts: [["sidebarSlot", ""], ["topbarSlot", ""], ["type", "button", 3, "class"], ["type", "button", 3, "click"]], template: function PageShell_Template(rf, ctx) { if (rf & 1) {
|
|
147
|
+
} }, inputs: { sidebar: "sidebar", topbar: "topbar", sidebarCollapsed: "sidebarCollapsed", className: "className", style: "style", testId: "testId", automationId: "automationId" }, outputs: { sidebarToggle: "sidebarToggle" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c3, decls: 10, vars: 9, consts: [["sidebarSlot", ""], ["topbarSlot", ""], ["type", "button", 3, "class"], ["type", "button", 3, "click"]], template: function PageShell_Template(rf, ctx) { if (rf & 1) {
|
|
159
148
|
i0.ɵɵprojectionDef(_c2);
|
|
160
149
|
i0.ɵɵdomElementStart(0, "aside", null, 0);
|
|
161
150
|
i0.ɵɵconditionalCreate(2, PageShell_Conditional_2_Template, 2, 4, "button", 2);
|
|
@@ -184,6 +173,7 @@ export class PageShell {
|
|
|
184
173
|
args: [{
|
|
185
174
|
selector: 'div[mol-page-shell]',
|
|
186
175
|
standalone: true,
|
|
176
|
+
hostDirectives: [MolPlacement],
|
|
187
177
|
inputs: ['sidebar', 'topbar', 'sidebarCollapsed', 'className', 'style', 'testId', 'automationId'],
|
|
188
178
|
outputs: ['sidebarToggle'],
|
|
189
179
|
host: {
|
|
@@ -212,7 +202,7 @@ export class PageShell {
|
|
|
212
202
|
<main [class]="cm().pageShellContent"><ng-content></ng-content></main>
|
|
213
203
|
</div>`,
|
|
214
204
|
}]
|
|
215
|
-
}],
|
|
205
|
+
}], () => [], { sidebarToggle: [{
|
|
216
206
|
type: Output
|
|
217
207
|
}], sidebarSlot: [{
|
|
218
208
|
type: ViewChild,
|
|
@@ -221,5 +211,5 @@ export class PageShell {
|
|
|
221
211
|
type: ViewChild,
|
|
222
212
|
args: ['topbarSlot']
|
|
223
213
|
}] }); })();
|
|
224
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageShell, { className: "PageShell", filePath: "components/page-shell.component.ts", lineNumber:
|
|
214
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageShell, { className: "PageShell", filePath: "components/page-shell.component.ts", lineNumber: 68 }); })();
|
|
225
215
|
//# sourceMappingURL=page-shell.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-shell.component.js","sourceRoot":"","sources":["../../src/components/page-shell.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"page-shell.component.js","sourceRoot":"","sources":["../../src/components/page-shell.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9F,OAAO,EACL,YAAY,EACZ,iBAAiB,EAEjB,YAAY,EACZ,cAAc,GACf,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;;;;;;;IA6BzC,oCAKC;IAFC,sLAAS,iCAA0B,KAAC;IAGpC,YACF;IAAA,oBAAS;;;IALP,iDAAqC;;IAIrC,cACF;IADE,8EACF;;AAlCR;;;;;;;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