@molecule/app-ui-angular 1.2.0 → 1.3.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 +2796 -800
- package/dist/components/accordion.component.d.ts +17 -2
- package/dist/components/accordion.component.d.ts.map +1 -1
- package/dist/components/accordion.component.js +31 -7
- package/dist/components/accordion.component.js.map +1 -1
- package/dist/components/alert.component.d.ts +15 -2
- package/dist/components/alert.component.d.ts.map +1 -1
- package/dist/components/alert.component.js +25 -4
- package/dist/components/alert.component.js.map +1 -1
- package/dist/components/auth-guard.component.d.ts +41 -9
- package/dist/components/auth-guard.component.d.ts.map +1 -1
- package/dist/components/auth-guard.component.js +58 -23
- package/dist/components/auth-guard.component.js.map +1 -1
- package/dist/components/avatar.component.d.ts +15 -2
- package/dist/components/avatar.component.d.ts.map +1 -1
- package/dist/components/avatar.component.js +35 -5
- package/dist/components/avatar.component.js.map +1 -1
- package/dist/components/badge.component.d.ts +15 -2
- package/dist/components/badge.component.d.ts.map +1 -1
- package/dist/components/badge.component.js +35 -6
- package/dist/components/badge.component.js.map +1 -1
- package/dist/components/button.component.d.ts +20 -2
- package/dist/components/button.component.d.ts.map +1 -1
- package/dist/components/button.component.js +30 -4
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/card.component.d.ts +67 -9
- package/dist/components/card.component.d.ts.map +1 -1
- package/dist/components/card.component.js +99 -17
- package/dist/components/card.component.js.map +1 -1
- package/dist/components/checkbox.component.d.ts +35 -5
- package/dist/components/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox.component.js +59 -9
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/confirm-button.component.d.ts +85 -17
- package/dist/components/confirm-button.component.d.ts.map +1 -1
- package/dist/components/confirm-button.component.js +112 -25
- package/dist/components/confirm-button.component.js.map +1 -1
- package/dist/components/confirm-dialog.component.d.ts +50 -13
- package/dist/components/confirm-dialog.component.d.ts.map +1 -1
- package/dist/components/confirm-dialog.component.js +118 -31
- package/dist/components/confirm-dialog.component.js.map +1 -1
- package/dist/components/dropdown.component.d.ts +32 -5
- package/dist/components/dropdown.component.d.ts.map +1 -1
- package/dist/components/dropdown.component.js +86 -17
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/empty-state.component.d.ts +5 -1
- package/dist/components/empty-state.component.d.ts.map +1 -1
- package/dist/components/empty-state.component.js +5 -1
- package/dist/components/empty-state.component.js.map +1 -1
- package/dist/components/floating-input.component.d.ts +18 -4
- package/dist/components/floating-input.component.d.ts.map +1 -1
- package/dist/components/floating-input.component.js +38 -8
- package/dist/components/floating-input.component.js.map +1 -1
- package/dist/components/form-field.component.d.ts +14 -2
- package/dist/components/form-field.component.d.ts.map +1 -1
- package/dist/components/form-field.component.js +34 -5
- package/dist/components/form-field.component.js.map +1 -1
- package/dist/components/form.component.d.ts +61 -15
- package/dist/components/form.component.d.ts.map +1 -1
- package/dist/components/form.component.js +65 -14
- package/dist/components/form.component.js.map +1 -1
- package/dist/components/icon.component.d.ts +22 -4
- package/dist/components/icon.component.d.ts.map +1 -1
- package/dist/components/icon.component.js +1 -1
- package/dist/components/icon.component.js.map +1 -1
- package/dist/components/input.component.d.ts +34 -4
- package/dist/components/input.component.d.ts.map +1 -1
- package/dist/components/input.component.js +66 -11
- package/dist/components/input.component.js.map +1 -1
- package/dist/components/label.component.d.ts +5 -1
- package/dist/components/label.component.d.ts.map +1 -1
- package/dist/components/label.component.js +6 -2
- package/dist/components/label.component.js.map +1 -1
- package/dist/components/language-picker.component.d.ts +44 -8
- package/dist/components/language-picker.component.d.ts.map +1 -1
- package/dist/components/language-picker.component.js +29 -17
- package/dist/components/language-picker.component.js.map +1 -1
- package/dist/components/layout.component.d.ts +57 -8
- package/dist/components/layout.component.d.ts.map +1 -1
- package/dist/components/layout.component.js +134 -21
- package/dist/components/layout.component.js.map +1 -1
- package/dist/components/load-error-banner.component.d.ts +39 -7
- package/dist/components/load-error-banner.component.d.ts.map +1 -1
- package/dist/components/load-error-banner.component.js +68 -21
- package/dist/components/load-error-banner.component.js.map +1 -1
- package/dist/components/modal.component.d.ts +20 -3
- package/dist/components/modal.component.d.ts.map +1 -1
- package/dist/components/modal.component.js +40 -6
- package/dist/components/modal.component.js.map +1 -1
- package/dist/components/optimistic-toggle-button.component.d.ts +80 -19
- package/dist/components/optimistic-toggle-button.component.d.ts.map +1 -1
- package/dist/components/optimistic-toggle-button.component.js +86 -25
- package/dist/components/optimistic-toggle-button.component.js.map +1 -1
- package/dist/components/page-header.component.d.ts +5 -1
- package/dist/components/page-header.component.d.ts.map +1 -1
- package/dist/components/page-header.component.js +5 -1
- package/dist/components/page-header.component.js.map +1 -1
- package/dist/components/page-shell.component.d.ts +5 -1
- package/dist/components/page-shell.component.d.ts.map +1 -1
- package/dist/components/page-shell.component.js +5 -1
- package/dist/components/page-shell.component.js.map +1 -1
- package/dist/components/pagination.component.d.ts +15 -2
- package/dist/components/pagination.component.d.ts.map +1 -1
- package/dist/components/pagination.component.js +26 -5
- package/dist/components/pagination.component.js.map +1 -1
- package/dist/components/panel-close.component.d.ts +10 -1
- package/dist/components/panel-close.component.d.ts.map +1 -1
- package/dist/components/panel-close.component.js +1 -1
- package/dist/components/panel-close.component.js.map +1 -1
- package/dist/components/progress.component.d.ts +51 -8
- package/dist/components/progress.component.d.ts.map +1 -1
- package/dist/components/progress.component.js +26 -5
- package/dist/components/progress.component.js.map +1 -1
- package/dist/components/prompt-dialog.component.d.ts +59 -16
- package/dist/components/prompt-dialog.component.d.ts.map +1 -1
- package/dist/components/prompt-dialog.component.js +129 -41
- package/dist/components/prompt-dialog.component.js.map +1 -1
- package/dist/components/radio-group.component.d.ts +16 -2
- package/dist/components/radio-group.component.d.ts.map +1 -1
- package/dist/components/radio-group.component.js +28 -5
- package/dist/components/radio-group.component.js.map +1 -1
- package/dist/components/responsive-app-shell.component.d.ts +155 -31
- package/dist/components/responsive-app-shell.component.d.ts.map +1 -1
- package/dist/components/responsive-app-shell.component.js +163 -54
- package/dist/components/responsive-app-shell.component.js.map +1 -1
- package/dist/components/select.component.d.ts +29 -4
- package/dist/components/select.component.d.ts.map +1 -1
- package/dist/components/select.component.js +55 -9
- package/dist/components/select.component.js.map +1 -1
- package/dist/components/separator.component.d.ts +37 -7
- package/dist/components/separator.component.d.ts.map +1 -1
- package/dist/components/separator.component.js +33 -6
- package/dist/components/separator.component.js.map +1 -1
- package/dist/components/sidebar-user-card.component.d.ts +28 -7
- package/dist/components/sidebar-user-card.component.d.ts.map +1 -1
- package/dist/components/sidebar-user-card.component.js +1 -1
- package/dist/components/sidebar-user-card.component.js.map +1 -1
- package/dist/components/skeleton.component.d.ts +23 -4
- package/dist/components/skeleton.component.d.ts.map +1 -1
- package/dist/components/skeleton.component.js +34 -7
- package/dist/components/skeleton.component.js.map +1 -1
- package/dist/components/spinner.component.d.ts +15 -2
- package/dist/components/spinner.component.d.ts.map +1 -1
- package/dist/components/spinner.component.js +34 -6
- package/dist/components/spinner.component.js.map +1 -1
- package/dist/components/switch.component.d.ts +30 -7
- package/dist/components/switch.component.d.ts.map +1 -1
- package/dist/components/switch.component.js +56 -11
- package/dist/components/switch.component.js.map +1 -1
- package/dist/components/table.component.d.ts +29 -3
- package/dist/components/table.component.d.ts.map +1 -1
- package/dist/components/table.component.js +63 -8
- package/dist/components/table.component.js.map +1 -1
- package/dist/components/tabs.component.d.ts +18 -3
- package/dist/components/tabs.component.d.ts.map +1 -1
- package/dist/components/tabs.component.js +74 -39
- package/dist/components/tabs.component.js.map +1 -1
- package/dist/components/textarea.component.d.ts +29 -4
- package/dist/components/textarea.component.d.ts.map +1 -1
- package/dist/components/textarea.component.js +55 -9
- package/dist/components/textarea.component.js.map +1 -1
- package/dist/components/theme-toggle.component.d.ts +25 -6
- package/dist/components/theme-toggle.component.d.ts.map +1 -1
- package/dist/components/theme-toggle.component.js +1 -1
- package/dist/components/theme-toggle.component.js.map +1 -1
- package/dist/components/toast.component.d.ts +27 -6
- package/dist/components/toast.component.d.ts.map +1 -1
- package/dist/components/toast.component.js +48 -14
- package/dist/components/toast.component.js.map +1 -1
- package/dist/components/tooltip.component.d.ts +57 -5
- package/dist/components/tooltip.component.d.ts.map +1 -1
- package/dist/components/tooltip.component.js +103 -11
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/components/user-menu-popover.component.d.ts +68 -14
- package/dist/components/user-menu-popover.component.d.ts.map +1 -1
- package/dist/components/user-menu-popover.component.js +4 -4
- package/dist/components/user-menu-popover.component.js.map +1 -1
- package/dist/components/user-menu.component.d.ts +33 -9
- package/dist/components/user-menu.component.d.ts.map +1 -1
- package/dist/components/user-menu.component.js +1 -1
- package/dist/components/user-menu.component.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utilities/element-props.d.ts +78 -0
- package/dist/utilities/element-props.d.ts.map +1 -0
- package/dist/utilities/element-props.js +166 -0
- package/dist/utilities/element-props.js.map +1 -0
- package/dist/utilities/element.d.ts +34 -0
- package/dist/utilities/element.d.ts.map +1 -0
- package/dist/utilities/element.js +24 -0
- package/dist/utilities/element.js.map +1 -0
- package/dist/utilities/index.d.ts +2 -0
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +2 -0
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/node-value.d.ts +1 -1
- package/dist/utilities/node-value.d.ts.map +1 -1
- package/dist/utilities/node-value.js +6 -2
- package/dist/utilities/node-value.js.map +1 -1
- package/dist/utilities/render-icon.d.ts +3 -2
- package/dist/utilities/render-icon.d.ts.map +1 -1
- package/dist/utilities/render-icon.js +6 -3
- package/dist/utilities/render-icon.js.map +1 -1
- package/dist/utilities/rest-attrs.d.ts +26 -2
- package/dist/utilities/rest-attrs.d.ts.map +1 -1
- package/dist/utilities/rest-attrs.js +37 -0
- package/dist/utilities/rest-attrs.js.map +1 -1
- package/package.json +4 -3
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { Component, ElementRef, inject, Renderer2, signal, ViewChild, } from '@angular/core';
|
|
8
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { hostElement } from '../utilities/element.js';
|
|
10
|
+
import { asTemplate, nodeText } from '../utilities/node-value.js';
|
|
9
11
|
import { createOptimisticValue } from '../utilities/optimistic-value.js';
|
|
10
12
|
import { styleText } from '../utilities/style.js';
|
|
11
13
|
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
14
|
+
import { MolTemplateOutlet } from './template-outlet.directive.js';
|
|
12
15
|
import * as i0 from "@angular/core";
|
|
13
16
|
const _c0 = ["leftSlot"];
|
|
14
17
|
const _c1 = ["activeSlot"];
|
|
@@ -56,6 +59,14 @@ export class OptimisticToggleButton {
|
|
|
56
59
|
testId;
|
|
57
60
|
/** Disables the button (permissions, never a pending save). */
|
|
58
61
|
disabled = false;
|
|
62
|
+
/** `data-mol-id` automation id (React's `automationId`; default `optimistic-toggle`). */
|
|
63
|
+
automationId;
|
|
64
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
65
|
+
dataMolId;
|
|
66
|
+
/** Template helpers (templates see only class members). */
|
|
67
|
+
asTemplate = asTemplate;
|
|
68
|
+
/** Renders a plain-string/number node value. */
|
|
69
|
+
nodeText = nodeText;
|
|
59
70
|
/** The optimistic controller. */
|
|
60
71
|
controller;
|
|
61
72
|
/** The controller state (a signal so the zoneless view re-checks on every publish). */
|
|
@@ -73,9 +84,11 @@ export class OptimisticToggleButton {
|
|
|
73
84
|
inactiveSlot;
|
|
74
85
|
/** The right icon wrapper. */
|
|
75
86
|
rightSlot;
|
|
76
|
-
|
|
87
|
+
host = inject(ElementRef);
|
|
88
|
+
/** The element a caller's ref receives: the host `<button>`. */
|
|
89
|
+
element = hostElement(this.host);
|
|
77
90
|
renderer = inject(Renderer2);
|
|
78
|
-
sync = new SlotWrapper(this.
|
|
91
|
+
sync = new SlotWrapper(this.host, this.renderer);
|
|
79
92
|
unsubscribe;
|
|
80
93
|
lastReceived = false;
|
|
81
94
|
hasLeft = false;
|
|
@@ -119,6 +132,17 @@ export class OptimisticToggleButton {
|
|
|
119
132
|
hostStyle() {
|
|
120
133
|
return styleText(this.style);
|
|
121
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* The `data-mol-id` value: `automationId`, else a rest `data-mol-id`, else
|
|
137
|
+
* the React default `optimistic-toggle`.
|
|
138
|
+
* @returns The attribute value.
|
|
139
|
+
*/
|
|
140
|
+
molId() {
|
|
141
|
+
return (this.automationId ??
|
|
142
|
+
this.dataMolId ??
|
|
143
|
+
this.host.nativeElement.getAttribute('data-mol-id') ??
|
|
144
|
+
'optimistic-toggle');
|
|
145
|
+
}
|
|
122
146
|
/** Flips the displayed value and saves the newest desired value. */
|
|
123
147
|
handleClick() {
|
|
124
148
|
this.controller.update((current) => !current);
|
|
@@ -170,7 +194,7 @@ export class OptimisticToggleButton {
|
|
|
170
194
|
* @param span - The capture span to show (null parks everything).
|
|
171
195
|
*/
|
|
172
196
|
showSlot(span) {
|
|
173
|
-
const host = this.
|
|
197
|
+
const host = this.host.nativeElement;
|
|
174
198
|
if (span === this.visibleFrom)
|
|
175
199
|
return;
|
|
176
200
|
for (const node of this.visibleNodes) {
|
|
@@ -196,7 +220,7 @@ export class OptimisticToggleButton {
|
|
|
196
220
|
if (this.anchor?.isConnected)
|
|
197
221
|
return this.anchor;
|
|
198
222
|
const anchor = this.renderer.createComment('label');
|
|
199
|
-
const host = this.
|
|
223
|
+
const host = this.host.nativeElement;
|
|
200
224
|
const left = this.leftSlot?.nativeElement;
|
|
201
225
|
host.insertBefore(anchor, left ? left.nextSibling : host.firstChild);
|
|
202
226
|
this.anchor = anchor;
|
|
@@ -215,34 +239,59 @@ export class OptimisticToggleButton {
|
|
|
215
239
|
i0.ɵɵlistener("click", function OptimisticToggleButton_click_HostBindingHandler() { return ctx.handleClick(); });
|
|
216
240
|
} if (rf & 2) {
|
|
217
241
|
i0.ɵɵdomProperty("disabled", ctx.disabled);
|
|
218
|
-
i0.ɵɵattribute("type", "button")("data-mol-id",
|
|
242
|
+
i0.ɵɵattribute("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");
|
|
219
243
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
220
244
|
i0.ɵɵclassMap(ctx.classes());
|
|
221
|
-
} }, 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" }, ngContentSelectors: _c5, decls:
|
|
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) {
|
|
222
246
|
i0.ɵɵprojectionDef(_c4);
|
|
223
|
-
i0.ɵɵ
|
|
247
|
+
i0.ɵɵelementStart(0, "span", null, 0);
|
|
224
248
|
i0.ɵɵprojection(2);
|
|
225
|
-
i0.ɵɵ
|
|
226
|
-
i0.ɵɵ
|
|
227
|
-
i0.ɵɵ
|
|
228
|
-
i0.ɵɵ
|
|
229
|
-
i0.ɵɵ
|
|
230
|
-
i0.ɵɵ
|
|
231
|
-
i0.ɵɵ
|
|
232
|
-
i0.ɵɵ
|
|
233
|
-
i0.ɵɵ
|
|
234
|
-
i0.ɵɵ
|
|
249
|
+
i0.ɵɵelementContainer(3, 4);
|
|
250
|
+
i0.ɵɵtext(4);
|
|
251
|
+
i0.ɵɵelementEnd();
|
|
252
|
+
i0.ɵɵelementStart(5, "span", null, 1);
|
|
253
|
+
i0.ɵɵprojection(7, 1);
|
|
254
|
+
i0.ɵɵelementContainer(8, 4);
|
|
255
|
+
i0.ɵɵtext(9);
|
|
256
|
+
i0.ɵɵelementEnd();
|
|
257
|
+
i0.ɵɵelementStart(10, "span", null, 2);
|
|
258
|
+
i0.ɵɵprojection(12, 2);
|
|
259
|
+
i0.ɵɵelementContainer(13, 4);
|
|
260
|
+
i0.ɵɵtext(14);
|
|
261
|
+
i0.ɵɵelementEnd();
|
|
262
|
+
i0.ɵɵelementStart(15, "span", null, 3);
|
|
263
|
+
i0.ɵɵprojection(17, 3);
|
|
264
|
+
i0.ɵɵelementContainer(18, 4);
|
|
265
|
+
i0.ɵɵtext(19);
|
|
266
|
+
i0.ɵɵelementEnd();
|
|
235
267
|
} if (rf & 2) {
|
|
236
268
|
i0.ɵɵclassMap(ctx.cm().buttonIconLeft);
|
|
237
|
-
i0.ɵɵadvance(
|
|
269
|
+
i0.ɵɵadvance(3);
|
|
270
|
+
i0.ɵɵproperty("molTemplateOutlet", ctx.asTemplate(ctx.leftIcon));
|
|
271
|
+
i0.ɵɵadvance();
|
|
272
|
+
i0.ɵɵtextInterpolate(ctx.nodeText(ctx.leftIcon));
|
|
273
|
+
i0.ɵɵadvance(4);
|
|
274
|
+
i0.ɵɵproperty("molTemplateOutlet", ctx.asTemplate(ctx.activeLabel));
|
|
275
|
+
i0.ɵɵadvance();
|
|
276
|
+
i0.ɵɵtextInterpolate(ctx.nodeText(ctx.activeLabel));
|
|
277
|
+
i0.ɵɵadvance(4);
|
|
278
|
+
i0.ɵɵproperty("molTemplateOutlet", ctx.asTemplate(ctx.inactiveLabel));
|
|
279
|
+
i0.ɵɵadvance();
|
|
280
|
+
i0.ɵɵtextInterpolate(ctx.nodeText(ctx.inactiveLabel));
|
|
281
|
+
i0.ɵɵadvance();
|
|
238
282
|
i0.ɵɵclassMap(ctx.cm().buttonIconRight);
|
|
239
|
-
|
|
283
|
+
i0.ɵɵadvance(3);
|
|
284
|
+
i0.ɵɵproperty("molTemplateOutlet", ctx.asTemplate(ctx.rightIcon));
|
|
285
|
+
i0.ɵɵadvance();
|
|
286
|
+
i0.ɵɵtextInterpolate(ctx.nodeText(ctx.rightIcon));
|
|
287
|
+
} }, dependencies: [MolTemplateOutlet], encapsulation: 2 });
|
|
240
288
|
}
|
|
241
289
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OptimisticToggleButton, [{
|
|
242
290
|
type: Component,
|
|
243
291
|
args: [{
|
|
244
292
|
selector: 'button[mol-optimistic-toggle-button]',
|
|
245
293
|
standalone: true,
|
|
294
|
+
imports: [MolTemplateOutlet],
|
|
246
295
|
inputs: [
|
|
247
296
|
'value',
|
|
248
297
|
'commit',
|
|
@@ -259,12 +308,14 @@ export class OptimisticToggleButton {
|
|
|
259
308
|
'style',
|
|
260
309
|
'testId',
|
|
261
310
|
'disabled',
|
|
311
|
+
'automationId',
|
|
312
|
+
'dataMolId: data-mol-id',
|
|
262
313
|
],
|
|
263
314
|
host: {
|
|
264
315
|
'[class]': 'classes()',
|
|
265
316
|
'[style]': 'hostStyle()',
|
|
266
317
|
'[attr.type]': '"button"',
|
|
267
|
-
'[attr.data-mol-id]': '
|
|
318
|
+
'[attr.data-mol-id]': 'molId()',
|
|
268
319
|
'[attr.data-testid]': 'testId',
|
|
269
320
|
'[disabled]': 'disabled',
|
|
270
321
|
'[attr.aria-pressed]': 'state().value ? "true" : "false"',
|
|
@@ -272,12 +323,22 @@ export class OptimisticToggleButton {
|
|
|
272
323
|
'(click)': 'handleClick()',
|
|
273
324
|
},
|
|
274
325
|
template: `<span #leftSlot [class]="cm().buttonIconLeft"
|
|
275
|
-
><ng-content select="[slot=leftIcon]"></ng-content
|
|
276
|
-
|
|
277
|
-
|
|
326
|
+
><ng-content select="[slot=leftIcon]"></ng-content
|
|
327
|
+
><ng-container [molTemplateOutlet]="asTemplate(leftIcon)"></ng-container
|
|
328
|
+
>{{ nodeText(leftIcon) }}</span
|
|
329
|
+
><span #activeSlot
|
|
330
|
+
><ng-content select="[slot=activeLabel]"></ng-content
|
|
331
|
+
><ng-container [molTemplateOutlet]="asTemplate(activeLabel)"></ng-container
|
|
332
|
+
>{{ nodeText(activeLabel) }}</span
|
|
333
|
+
><span #inactiveSlot
|
|
334
|
+
><ng-content select="[slot=inactiveLabel]"></ng-content
|
|
335
|
+
><ng-container [molTemplateOutlet]="asTemplate(inactiveLabel)"></ng-container
|
|
336
|
+
>{{ nodeText(inactiveLabel) }}</span
|
|
278
337
|
><span #rightSlot [class]="cm().buttonIconRight"
|
|
279
338
|
><ng-content select="[slot=rightIcon]"></ng-content
|
|
280
|
-
|
|
339
|
+
><ng-container [molTemplateOutlet]="asTemplate(rightIcon)"></ng-container
|
|
340
|
+
>{{ nodeText(rightIcon) }}</span
|
|
341
|
+
>`,
|
|
281
342
|
}]
|
|
282
343
|
}], () => [], { leftSlot: [{
|
|
283
344
|
type: ViewChild,
|
|
@@ -292,5 +353,5 @@ export class OptimisticToggleButton {
|
|
|
292
353
|
type: ViewChild,
|
|
293
354
|
args: ['rightSlot']
|
|
294
355
|
}] }); })();
|
|
295
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OptimisticToggleButton, { className: "OptimisticToggleButton", filePath: "components/optimistic-toggle-button.component.ts", lineNumber:
|
|
356
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(OptimisticToggleButton, { className: "OptimisticToggleButton", filePath: "components/optimistic-toggle-button.component.ts", lineNumber: 137 }); })();
|
|
296
357
|
//# 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,EAEL,SAAS,EAET,UAAU,EACV,MAAM,EAEN,SAAS,EACT,MAAM,
|
|
1
|
+
{"version":3,"file":"optimistic-toggle-button.component.js","sourceRoot":"","sources":["../../src/components/optimistic-toggle-button.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,MAAM,EAEN,SAAS,EACT,MAAM,EAEN,SAAS,GACV,MAAM,eAAe,CAAA;AAGtB,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;AACjD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;;;;;;;;AA8ClE;;;;;;;;GAQG;AAqDH,MAAM,OAAO,sBAAsB;IAGjC,+BAA+B;IAC/B,KAAK,GAAyC,KAAK,CAAA;IACnD,0EAA0E;IAC1E,MAAM,CAAwC;IAC9C,iEAAiE;IACjE,WAAW,CAA6C;IACxD,kEAAkE;IAClE,aAAa,CAA+C;IAC5D,yFAAyF;IACzF,OAAO,CAAyC;IAChD,sBAAsB;IACtB,OAAO,CAAyC;IAChD,oBAAoB;IACpB,KAAK,CAAuC;IAC5C,mBAAmB;IACnB,IAAI,CAAsC;IAC1C,0DAA0D;IAC1D,SAAS,GAA8C,KAAK,CAAA;IAC5D,oCAAoC;IACpC,QAAQ,CAA0C;IAClD,qCAAqC;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AM,EAAE;oBACN,OAAO;oBACP,QAAQ;oBACR,aAAa;oBACb,eAAe;oBACf,SAAS;oBACT,SAAS;oBACT,OAAO;oBACP,MAAM;oBACN,WAAW;oBACX,UAAU;oBACV,WAAW;oBACX,WAAW;oBACX,OAAO;oBACP,QAAQ;oBACR,UAAU;oBACV,cAAc;oBACd,wBAAwB;iBACzB;gBACD,IAAI,EAAE;oBACJ,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,aAAa,EAAE,UAAU;oBACzB,oBAAoB,EAAE,SAAS;oBAC/B,oBAAoB,EAAE,QAAQ;oBAC9B,YAAY,EAAE,UAAU;oBACxB,qBAAqB,EAAE,kCAAkC;oBACzD,kBAAkB,EAAE,oCAAoC;oBACxD,SAAS,EAAE,eAAe;iBAC3B;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;MAgBN;aACL;;kBAsDE,SAAS;mBAAC,UAAU;;kBAEpB,SAAS;mBAAC,YAAY;;kBAEtB,SAAS;mBAAC,cAAc;;kBAExB,SAAS;mBAAC,WAAW;;kFA3DX,sBAAsB"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { type AfterViewInit, type DoCheck, ElementRef } from '@angular/core';
|
|
8
8
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { type HasElement } from '../utilities/element.js';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/** One breadcrumb entry. */
|
|
11
12
|
interface Breadcrumb {
|
|
@@ -23,7 +24,7 @@ interface Breadcrumb {
|
|
|
23
24
|
* `{actions ? <div>…</div> : null}`), implemented by detaching the wrapper
|
|
24
25
|
* from the DOM — the projected nodes need an always-mounted capture point.
|
|
25
26
|
*/
|
|
26
|
-
export declare class PageHeader implements AfterViewInit, DoCheck {
|
|
27
|
+
export declare class PageHeader implements AfterViewInit, DoCheck, HasElement<HTMLDivElement> {
|
|
27
28
|
/** Page title. */
|
|
28
29
|
title: string;
|
|
29
30
|
/** Page description. */
|
|
@@ -47,6 +48,9 @@ export declare class PageHeader implements AfterViewInit, DoCheck {
|
|
|
47
48
|
*/
|
|
48
49
|
private readonly i18n;
|
|
49
50
|
private readonly sync;
|
|
51
|
+
private readonly host;
|
|
52
|
+
/** The element a caller's ref receives: the host `<div>`. */
|
|
53
|
+
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
50
54
|
private hasActions;
|
|
51
55
|
private actionsParent;
|
|
52
56
|
/**
|
|
@@ -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,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,EAIX,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;
|
|
1
|
+
{"version":3,"file":"page-header.component.d.ts","sourceRoot":"","sources":["../../src/components/page-header.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,EAIX,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;;AAItE,4BAA4B;AAC5B,UAAU,UAAU;IAClB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;GAQG;AACH,qBAoCa,UAAW,YAAW,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,cAAc,CAAC;IACnF,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,CAAyD;IAC9E,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiD;IACtE,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,wDAAyB;IACzC,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,aAAa,CAA2B;IAEhD;;;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;;OAEG;IACH,eAAe,IAAI,IAAI;IAMvB;;OAEG;IACH,SAAS,IAAI,IAAI;IAIjB;;OAEG;IACH,OAAO,CAAC,WAAW;yCApFR,UAAU;2CAAV,UAAU;CA2FtB"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import { Component, ElementRef, inject, Renderer2, ViewChild, } from '@angular/core';
|
|
8
8
|
import { useTranslation } from '@molecule/app-angular';
|
|
9
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
|
+
import { hostElement } from '../utilities/element.js';
|
|
10
11
|
import { styleText } from '../utilities/style.js';
|
|
11
12
|
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
@@ -109,6 +110,9 @@ export class PageHeader {
|
|
|
109
110
|
*/
|
|
110
111
|
i18n = useTranslation();
|
|
111
112
|
sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
|
|
113
|
+
host = inject(ElementRef);
|
|
114
|
+
/** The element a caller's ref receives: the host `<div>`. */
|
|
115
|
+
element = hostElement(this.host);
|
|
112
116
|
hasActions = false;
|
|
113
117
|
actionsParent = null;
|
|
114
118
|
/**
|
|
@@ -236,5 +240,5 @@ export class PageHeader {
|
|
|
236
240
|
type: ViewChild,
|
|
237
241
|
args: ['actionsSlot']
|
|
238
242
|
}] }); })();
|
|
239
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageHeader, { className: "PageHeader", filePath: "components/page-header.component.ts", lineNumber:
|
|
243
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageHeader, { className: "PageHeader", filePath: "components/page-header.component.ts", lineNumber: 79 }); })();
|
|
240
244
|
//# 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,EAEL,SAAS,EAET,UAAU,EACV,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;;;;;;IAiCjD,kCAAsE;IAAA,iBAAC;IAAA,oBAAO;;;IAAxE,wDAA4C;;;IAGlD,+BAA+D;IAAA,YAAiB;IAAA,oBAAI;;;;IAA7D,mDAAuC;IAA3D,yDAAmB;IAAyC,cAAiB;IAAjB,oCAAiB;;;IAEhF,+BA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AAC,CAAA;IAC5F,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAED;;OAEG;IACH,eAAe;QACb,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,IAAI,IAAI,CAAA;QAC1E,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,CAAA;QAC3D,IAAI,CAAC,WAAW,EAAE,CAAA;IACpB,CAAC;IAED;;OAEG;IACH,SAAS;QACP,IAAI,CAAC,WAAW,EAAE,CAAA;IACpB,CAAC;IAED;;OAEG;IACK,WAAW;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,WAAW,EAAE,aAAa,EAC/B,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,aAAa,IAAI,SAAS,CAChC,CAAA;IACH,CAAC;
|
|
1
|
+
{"version":3,"file":"page-header.component.js","sourceRoot":"","sources":["../../src/components/page-header.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;;;;;;IAiCjD,kCAAsE;IAAA,iBAAC;IAAA,oBAAO;;;IAAxE,wDAA4C;;;IAGlD,+BAA+D;IAAA,YAAiB;IAAA,oBAAI;;;;IAA7D,mDAAuC;IAA3D,yDAAmB;IAAyC,cAAiB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ChC,UAAU,EAAE,IAAI;gBAChB,MAAM,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,CAAC;gBAC/F,IAAI,EAAE;oBACJ,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"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { type AfterViewInit, type DoCheck, ElementRef, EventEmitter } from '@angular/core';
|
|
8
8
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { type HasElement } from '../utilities/element.js';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* PageShell component.
|
|
@@ -20,7 +21,7 @@ import * as i0 from "@angular/core";
|
|
|
20
21
|
* `onSidebarToggle` (React's `{onSidebarToggle ? … : null}`); with an
|
|
21
22
|
* `@Output`, that presence is the output's subscriber count.
|
|
22
23
|
*/
|
|
23
|
-
export declare class PageShell implements AfterViewInit, DoCheck {
|
|
24
|
+
export declare class PageShell implements AfterViewInit, DoCheck, HasElement<HTMLDivElement> {
|
|
24
25
|
/** Sidebar content (node-valued prop). */
|
|
25
26
|
sidebar?: unknown;
|
|
26
27
|
/** Top bar content (node-valued prop). */
|
|
@@ -48,6 +49,9 @@ export declare class PageShell implements AfterViewInit, DoCheck {
|
|
|
48
49
|
*/
|
|
49
50
|
private readonly i18n;
|
|
50
51
|
private readonly sync;
|
|
52
|
+
private readonly host;
|
|
53
|
+
/** The element a caller's ref receives: the host `<div>`. */
|
|
54
|
+
readonly element: import("@angular/core").Signal<HTMLDivElement | null>;
|
|
51
55
|
private hasSidebar;
|
|
52
56
|
private hasTopbar;
|
|
53
57
|
private sidebarParent;
|
|
@@ -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,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,EACV,YAAY,EAKb,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;
|
|
1
|
+
{"version":3,"file":"page-shell.component.d.ts","sourceRoot":"","sources":["../../src/components/page-shell.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EACZ,UAAU,EACV,YAAY,EAKb,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;;AAItE;;;;;;;;;;;;GAYG;AACH,qBA+Ba,SAAU,YAAW,aAAa,EAAE,OAAO,EAAE,UAAU,CAAC,cAAc,CAAC;IAClF,0CAA0C;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,wCAAwC;IACxC,gBAAgB,UAAQ;IACxB,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,mFAAmF;IACzE,QAAQ,CAAC,aAAa,2BAAiC;IAEjE,0EAA0E;IAChD,WAAW,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAC/D,0EAA0E;IACjD,UAAU,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAE7D;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;IAExC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyD;IAC9E,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiD;IACtE,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,wDAAyB;IACzC,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,YAAY,CAA2B;IAE/C;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;OAGG;IACH,OAAO,IAAI,MAAM;IAIjB;;;OAGG;IACH,cAAc,IAAI,MAAM;IAOxB;;;;OAIG;IACH,aAAa,IAAI,OAAO;IAIxB;;;OAGG;IACH,WAAW,IAAI,MAAM;IAMrB;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,IAAI;IAI1B;;OAEG;IACH,eAAe,IAAI,IAAI;IAQvB;;OAEG;IACH,SAAS,IAAI,IAAI;IAIjB;;OAEG;IACH,OAAO,CAAC,YAAY;yCAnHT,SAAS;2CAAT,SAAS;CA2HrB"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import { Component, ElementRef, EventEmitter, inject, Output, Renderer2, ViewChild, } from '@angular/core';
|
|
8
8
|
import { useTranslation } from '@molecule/app-angular';
|
|
9
9
|
import { getClassMap } from '@molecule/app-ui';
|
|
10
|
+
import { hostElement } from '../utilities/element.js';
|
|
10
11
|
import { styleText } from '../utilities/style.js';
|
|
11
12
|
import { hasNodes, SlotWrapper } from './button.component.js';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
@@ -68,6 +69,9 @@ export class PageShell {
|
|
|
68
69
|
*/
|
|
69
70
|
i18n = useTranslation();
|
|
70
71
|
sync = new SlotWrapper(inject(ElementRef), inject(Renderer2));
|
|
72
|
+
host = inject(ElementRef);
|
|
73
|
+
/** The element a caller's ref receives: the host `<div>`. */
|
|
74
|
+
element = hostElement(this.host);
|
|
71
75
|
hasSidebar = false;
|
|
72
76
|
hasTopbar = false;
|
|
73
77
|
sidebarParent = null;
|
|
@@ -217,5 +221,5 @@ export class PageShell {
|
|
|
217
221
|
type: ViewChild,
|
|
218
222
|
args: ['topbarSlot']
|
|
219
223
|
}] }); })();
|
|
220
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageShell, { className: "PageShell", filePath: "components/page-shell.component.ts", lineNumber:
|
|
224
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PageShell, { className: "PageShell", filePath: "components/page-shell.component.ts", lineNumber: 72 }); })();
|
|
221
225
|
//# 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,EAEL,SAAS,EAET,UAAU,EACV,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,EACT,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;;;;;;;;IA4BrD,oCAKC;IAFC,sLAAS,iCAA0B,KAAC;IAGpC,YACF;IAAA,oBAAS;;;IALP,iDAAqC;;IAIrC,cACF;IADE,8EACF;;AAjCR;;;;;;;;;;;;GAYG;AAgCH,MAAM,OAAO,SAAS;IACpB,0CAA0C;IAC1C,OAAO,CAAU;IACjB,0CAA0C;IAC1C,MAAM,CAAU;IAChB,wCAAwC;IACxC,g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,YAAY,EAAE,gBAAgB,EAAE,CAAC;YAC1F,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,8BAA8B,EAAE,SAAS,EAAE,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC,CAAA;IAClG,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,OAAO,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC9B,CAAC;IAED;;OAEG;IACH,eAAe;QACb,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,aAAa,IAAI,IAAI,CAAA;QAC1E,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,aAAa,IAAI,IAAI,CAAA;QACxE,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,CAAA;QAC3D,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,CAAA;QACzD,IAAI,CAAC,YAAY,EAAE,CAAA;IACrB,CAAC;IAED;;OAEG;IACH,SAAS;QACP,IAAI,CAAC,YAAY,EAAE,CAAA;IACrB,CAAC;IAED;;OAEG;IACK,YAAY;QAClB,IAAI,CAAC,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,WAAW,EAAE,aAAa,EAC/B,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,aAAa,IAAI,SAAS,CAChC,CAAA;QACD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,YAAY,IAAI,SAAS,CAAC,CAAA;IAChG,CAAC;
|
|
1
|
+
{"version":3,"file":"page-shell.component.js","sourceRoot":"","sources":["../../src/components/page-shell.component.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,YAAY,EACZ,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ACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,oBAAoB,EAAE,cAAc;iBACrC;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;WAkBD;aACV;;kBAkBE,MAAM;;kBAGN,SAAS;mBAAC,aAAa;;kBAEvB,SAAS;mBAAC,YAAY;;kFAtBZ,SAAS"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { EventEmitter } from '@angular/core';
|
|
7
7
|
import type { UIClassMap } from '@molecule/app-ui';
|
|
8
|
+
import { type HasElement } from '../utilities/element.js';
|
|
8
9
|
import type { ResolvedIcon } from '../utilities/render-icon.js';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/** Pagination labels (React's `PaginationProps['labels']`). */
|
|
@@ -27,7 +28,7 @@ interface PaginationLabels {
|
|
|
27
28
|
*
|
|
28
29
|
* The host is the `<nav>` (`nav[mol-pagination]`), exactly React's root.
|
|
29
30
|
*/
|
|
30
|
-
export declare class Pagination {
|
|
31
|
+
export declare class Pagination implements HasElement<HTMLElement> {
|
|
31
32
|
/** The active page. */
|
|
32
33
|
page: number;
|
|
33
34
|
/** The total number of pages. */
|
|
@@ -52,8 +53,15 @@ export declare class Pagination {
|
|
|
52
53
|
testId?: string;
|
|
53
54
|
/** Disables every button. */
|
|
54
55
|
disabled?: boolean;
|
|
56
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
57
|
+
automationId?: string;
|
|
58
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
59
|
+
dataMolId?: string;
|
|
55
60
|
/** Fires with the requested page (React's `onChange`). */
|
|
56
61
|
readonly change: EventEmitter<number>;
|
|
62
|
+
private readonly host;
|
|
63
|
+
/** The element a caller's ref receives: the host `<nav>`. */
|
|
64
|
+
readonly element: import("@angular/core").Signal<HTMLElement | null>;
|
|
57
65
|
/**
|
|
58
66
|
* Reactive translation, read in the injection context. Its `t` reads the
|
|
59
67
|
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
@@ -70,6 +78,11 @@ export declare class Pagination {
|
|
|
70
78
|
* @returns The class string.
|
|
71
79
|
*/
|
|
72
80
|
classes(): string;
|
|
81
|
+
/**
|
|
82
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
83
|
+
* @returns The attribute value.
|
|
84
|
+
*/
|
|
85
|
+
molId(): string | undefined;
|
|
73
86
|
/**
|
|
74
87
|
* Serializes the root's inline style.
|
|
75
88
|
* @returns The style attribute text.
|
|
@@ -131,7 +144,7 @@ export declare class Pagination {
|
|
|
131
144
|
*/
|
|
132
145
|
handlePageChange(newPage: number): void;
|
|
133
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<Pagination, never>;
|
|
134
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Pagination, "nav[mol-pagination]", never, { "page": { "alias": "page"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "siblings": { "alias": "siblings"; "required": false; }; "boundaries": { "alias": "boundaries"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showFirstLast": { "alias": "showFirstLast"; "required": false; }; "showPrevNext": { "alias": "showPrevNext"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
147
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Pagination, "nav[mol-pagination]", never, { "page": { "alias": "page"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "siblings": { "alias": "siblings"; "required": false; }; "boundaries": { "alias": "boundaries"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showFirstLast": { "alias": "showFirstLast"; "required": false; }; "showPrevNext": { "alias": "showPrevNext"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "className": { "alias": "className"; "required": false; }; "style": { "alias": "style"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "automationId": { "alias": "automationId"; "required": false; }; "dataMolId": { "alias": "data-mol-id"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
135
148
|
}
|
|
136
149
|
export {};
|
|
137
150
|
//# sourceMappingURL=pagination.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.component.d.ts","sourceRoot":"","sources":["../../src/components/pagination.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"pagination.component.d.ts","sourceRoot":"","sources":["../../src/components/pagination.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAyB,YAAY,EAAkB,MAAM,eAAe,CAAA;AAGnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAGlD,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,yBAAyB,CAAA;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;;AAI/D,+DAA+D;AAC/D,UAAU,gBAAgB;IACxB,iDAAiD;IACjD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;CACpC;AA+BD;;;;GAIG;AACH,qBA0Ga,UAAW,YAAW,UAAU,CAAC,WAAW,CAAC;IACxD,uBAAuB;IACvB,IAAI,SAAI;IACR,iCAAiC;IACjC,UAAU,SAAI;IACd,wDAAwD;IACxD,QAAQ,SAAI;IACZ,u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,IAAI,MAAM;IAOlB;;;OAGG;IACH,UAAU,IAAI,MAAM;IAOpB;;;OAGG;IACH,aAAa,IAAI,MAAM;IAOvB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAOnB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAOnB;;;;;;OAMG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAU/B;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;yCA7L5B,UAAU;2CAAV,UAAU;CAkMtB"}
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { Component, EventEmitter, Output } from '@angular/core';
|
|
6
|
+
import { Component, ElementRef, EventEmitter, inject, Output } from '@angular/core';
|
|
7
7
|
import { useTranslation } from '@molecule/app-angular';
|
|
8
8
|
import { getClassMap } from '@molecule/app-ui';
|
|
9
|
+
import { hostElement } from '../utilities/element.js';
|
|
9
10
|
import { MolIconSvg, resolveIcon } from '../utilities/render-icon.js';
|
|
10
11
|
import { styleText } from '../utilities/style.js';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
@@ -166,8 +167,15 @@ export class Pagination {
|
|
|
166
167
|
testId;
|
|
167
168
|
/** Disables every button. */
|
|
168
169
|
disabled;
|
|
170
|
+
/** `data-mol-id` automation id (React's `automationId`). */
|
|
171
|
+
automationId;
|
|
172
|
+
/** A `data-mol-id` given as a plain rest attribute (React's `rootProps` precedence). */
|
|
173
|
+
dataMolId;
|
|
169
174
|
/** Fires with the requested page (React's `onChange`). */
|
|
170
175
|
change = new EventEmitter();
|
|
176
|
+
host = inject(ElementRef);
|
|
177
|
+
/** The element a caller's ref receives: the host `<nav>`. */
|
|
178
|
+
element = hostElement(this.host);
|
|
171
179
|
/**
|
|
172
180
|
* Reactive translation, read in the injection context. Its `t` reads the
|
|
173
181
|
* locale, so the view re-renders the text on a locale switch (the static `t`
|
|
@@ -188,6 +196,16 @@ export class Pagination {
|
|
|
188
196
|
classes() {
|
|
189
197
|
return this.cm().cn(this.cm().paginationRoot, this.className);
|
|
190
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* The `data-mol-id` value (`automationId` wins over a rest `data-mol-id`).
|
|
201
|
+
* @returns The attribute value.
|
|
202
|
+
*/
|
|
203
|
+
molId() {
|
|
204
|
+
return (this.automationId ??
|
|
205
|
+
this.dataMolId ??
|
|
206
|
+
this.host.nativeElement.getAttribute('data-mol-id') ??
|
|
207
|
+
undefined);
|
|
208
|
+
}
|
|
191
209
|
/**
|
|
192
210
|
* Serializes the root's inline style.
|
|
193
211
|
* @returns The style attribute text.
|
|
@@ -281,11 +299,11 @@ export class Pagination {
|
|
|
281
299
|
}
|
|
282
300
|
}
|
|
283
301
|
static ɵfac = function Pagination_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Pagination)(); };
|
|
284
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Pagination, selectors: [["nav", "mol-pagination", ""]], hostAttrs: ["role", "navigation"], hostVars:
|
|
285
|
-
i0.ɵɵattribute("aria-label", ctx.navLabel())("data-testid", ctx.testId);
|
|
302
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Pagination, selectors: [["nav", "mol-pagination", ""]], hostAttrs: ["role", "navigation"], hostVars: 7, hostBindings: function Pagination_HostBindings(rf, ctx) { if (rf & 2) {
|
|
303
|
+
i0.ɵɵattribute("aria-label", ctx.navLabel())("data-testid", ctx.testId)("data-mol-id", ctx.molId());
|
|
286
304
|
i0.ɵɵstyleMap(ctx.hostStyle());
|
|
287
305
|
i0.ɵɵclassMap(ctx.classes());
|
|
288
|
-
} }, inputs: { page: "page", totalPages: "totalPages", siblings: "siblings", boundaries: "boundaries", size: "size", showFirstLast: "showFirstLast", showPrevNext: "showPrevNext", labels: "labels", className: "className", style: "style", testId: "testId", disabled: "disabled" }, outputs: { change: "change" }, decls: 7, vars: 6, consts: [["type", "button", 3, "click", "disabled"], ["mol-icon", "", 3, "data"], ["aria-hidden", "true"]], template: function Pagination_Template(rf, ctx) { if (rf & 1) {
|
|
306
|
+
} }, inputs: { page: "page", totalPages: "totalPages", siblings: "siblings", boundaries: "boundaries", size: "size", showFirstLast: "showFirstLast", showPrevNext: "showPrevNext", labels: "labels", className: "className", style: "style", testId: "testId", disabled: "disabled", automationId: "automationId", dataMolId: [0, "data-mol-id", "dataMolId"] }, outputs: { change: "change" }, decls: 7, vars: 6, consts: [["type", "button", 3, "click", "disabled"], ["mol-icon", "", 3, "data"], ["aria-hidden", "true"]], template: function Pagination_Template(rf, ctx) { if (rf & 1) {
|
|
289
307
|
i0.ɵɵelementStart(0, "ul");
|
|
290
308
|
i0.ɵɵconditionalCreate(1, Pagination_Conditional_1_Template, 3, 5, "li");
|
|
291
309
|
i0.ɵɵconditionalCreate(2, Pagination_Conditional_2_Template, 3, 5, "li");
|
|
@@ -326,6 +344,8 @@ export class Pagination {
|
|
|
326
344
|
'style',
|
|
327
345
|
'testId',
|
|
328
346
|
'disabled',
|
|
347
|
+
'automationId',
|
|
348
|
+
'dataMolId: data-mol-id',
|
|
329
349
|
],
|
|
330
350
|
outputs: ['change'],
|
|
331
351
|
host: {
|
|
@@ -334,6 +354,7 @@ export class Pagination {
|
|
|
334
354
|
'[class]': 'classes()',
|
|
335
355
|
'[style]': 'hostStyle()',
|
|
336
356
|
'[attr.data-testid]': 'testId',
|
|
357
|
+
'[attr.data-mol-id]': 'molId()',
|
|
337
358
|
},
|
|
338
359
|
template: `<ul [class]="cm().paginationContent">
|
|
339
360
|
@if (showFirstLast) {
|
|
@@ -415,5 +436,5 @@ export class Pagination {
|
|
|
415
436
|
}], null, { change: [{
|
|
416
437
|
type: Output
|
|
417
438
|
}] }); })();
|
|
418
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Pagination, { className: "Pagination", filePath: "components/pagination.component.ts", lineNumber:
|
|
439
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Pagination, { className: "Pagination", filePath: "components/pagination.component.ts", lineNumber: 174 }); })();
|
|
419
440
|
//# sourceMappingURL=pagination.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.component.js","sourceRoot":"","sources":["../../src/components/pagination.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"pagination.component.js","sourceRoot":"","sources":["../../src/components/pagination.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAEnF,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAmB,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEtE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;;;;IAoFzC,AADF,0BAAI,gBAOD;IAHC,8KAAS,wBAAiB,CAAC,CAAC,KAAC;;IAI7B,yBAA+C;IAEnD,AADE,iBAAS,EACN;;;IAPD,cAA8B;IAA9B,0CAA8B;IAE9B,iEAAqC;;IAGvB,cAA8B;IAA9B,mDAA8B;;;;IAM9C,AADF,0BAAI,gBAOD;IAHC,8KAAS,sCAAwB,CAAC,CAAC,KAAC;;IAIpC,yBAA8C;IAElD,AADE,iBAAS,EACN;;;IAPD,cAA8B;IAA9B,0CAA8B;IAE9B,iEAAqC;;IAGvB,cAA6B;IAA7B,kDAA6B;;;IAO3C,AADF,0BAAI,cAEC;;IAAA,yBACD;IACJ,AADI,iBA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AE,YAAY;oBACjC,SAAS,EAAE,WAAW;oBACtB,SAAS,EAAE,aAAa;oBACxB,oBAAoB,EAAE,QAAQ;oBAC9B,oBAAoB,EAAE,SAAS;iBAChC;gBACD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2EJ;aACP;;kBAgCE,MAAM;;kFA/BI,UAAU"}
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type OnDestroy } from '@angular/core';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
|
+
/**
|
|
15
|
+
* Props for {@link PanelCloseProvider} (React's `PanelCloseProviderProps`, in
|
|
16
|
+
* Angular's form). The panel content is projected content, so it has no
|
|
17
|
+
* member.
|
|
18
|
+
*/
|
|
19
|
+
export interface PanelCloseProviderProps {
|
|
20
|
+
/** Callback that dismisses the enclosing drawer/modal. */
|
|
21
|
+
close: () => void;
|
|
22
|
+
}
|
|
14
23
|
/**
|
|
15
24
|
* Provides the drawer-close callback to descendants.
|
|
16
25
|
*
|
|
@@ -21,7 +30,7 @@ import * as i0 from "@angular/core";
|
|
|
21
30
|
*/
|
|
22
31
|
export declare class PanelCloseProvider implements OnDestroy {
|
|
23
32
|
/** Callback that dismisses the enclosing drawer/modal. */
|
|
24
|
-
close?:
|
|
33
|
+
close?: PanelCloseProviderProps['close'];
|
|
25
34
|
private readonly host;
|
|
26
35
|
/** Registers the context value on the host (before any projected child resolves it). */
|
|
27
36
|
constructor();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-close.component.d.ts","sourceRoot":"","sources":["../../src/components/panel-close.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;;AAI7E;;;;;;;GAOG;AACH,qBAUa,kBAAmB,YAAW,SAAS;IAClD,0DAA0D;IAC1D,KAAK,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"panel-close.component.d.ts","sourceRoot":"","sources":["../../src/components/panel-close.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;;AAI7E;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,0DAA0D;IAC1D,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAED;;;;;;;GAOG;AACH,qBAUa,kBAAmB,YAAW,SAAS;IAClD,0DAA0D;IAC1D,KAAK,CAAC,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAA;IAExC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA8C;IACnE,wFAAwF;;IAKxF,kDAAkD;IAClD,WAAW,IAAI,IAAI;yCAXR,kBAAkB;2CAAlB,kBAAkB;CAc9B;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,IAAI,MAAM,IAAI,CAS1C"}
|