@memberjunction/ng-ui-components 6.2.0-edge.3 → 6.2.0-edge.4

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 CHANGED
@@ -255,7 +255,7 @@ Re-export of `angular-split` — use `<as-split>` / `<as-split-area>` directly:
255
255
  ```
256
256
 
257
257
  ### `mj-accordion-panel` — MJAccordionPanelComponent (+ directives)
258
- Collapsible panel replacing Kendo panelbar/expansion panel. Inputs: `Title`, `Expanded` (+`ExpandedChange`), `Disabled`, `Variant: 'default'|'primary'|'secondary'`, `Size: 'sm'|'md'`, `Bare`, `FlushBody`, `Fill` (consume leftover height). Rich content via structural directives — `*mjAccordionTitle`, `*mjAccordionActions` (rendered outside the toggle button), and `*mjAccordionBody` (**lazy — instantiated on first expand, then kept alive**). Import `MJAccordionModule` to get the panel plus all three directives in one symbol.
258
+ Collapsible panel replacing Kendo panelbar/expansion panel. Inputs: `Title`, `Expanded` (+`ExpandedChange`), `Disabled`, `Variant: 'default'|'primary'|'secondary'`, `Size: 'sm'|'md'`, `Bare` (no border, header background, body fill or row hover fill, for a panel inside a card or a section directly on a page; on a device that can hover, pointing at the title or chevron gives both the brand color), `HeadingLevel: 1–6 | null` (wraps the toggle in a `role="heading"` element with that `aria-level`; null, the default, adds no wrapper), `FlushBody`, `Fill` (consume leftover height). Rich content via structural directives — `*mjAccordionTitle`, `*mjAccordionActions` (rendered outside the toggle button), and `*mjAccordionBody` (**lazy — instantiated on first expand, then kept alive**). Import `MJAccordionModule` to get the panel plus all three directives in one symbol.
259
259
 
260
260
  ```html
261
261
  <mj-accordion-panel [Expanded]="open" (ExpandedChange)="open = $event">
@@ -124,11 +124,21 @@ export declare class MJAccordionPanelComponent {
124
124
  */
125
125
  Size: 'sm' | 'md';
126
126
  /**
127
- * Bare chrome — drop the panel's own border and header background so the panel
128
- * sits cleanly inside a host that already provides chrome (e.g. an expandable
129
- * card). The toggle/title/chevron/body still work; only the box styling is removed.
127
+ * Bare chrome — drop the panel's border, header background, body fill and
128
+ * row-wide hover fill, so the panel sits cleanly inside a host that already
129
+ * provides chrome (e.g. an expandable card) or directly on a page as a section.
130
+ * The toggle keeps its focus ring and, on a device that can hover, a hover cue:
131
+ * pointing at the title or the chevron gives both the brand color. A `Variant`
132
+ * keeps its own colors.
130
133
  */
131
134
  Bare: boolean;
135
+ /**
136
+ * Heading level (1–6) for the title. When set, a `role="heading"` element with this
137
+ * `aria-level` wraps the toggle button, so the section title takes part in the page's
138
+ * heading outline. When null, there is no wrapper and the toggle is a direct child of
139
+ * the header row.
140
+ */
141
+ HeadingLevel: 1 | 2 | 3 | 4 | 5 | 6 | null;
132
142
  /**
133
143
  * Remove the body's default padding, for bodies that manage their own spacing
134
144
  * (code editors, full-bleed grids, custom forms).
@@ -178,7 +188,7 @@ export declare class MJAccordionPanelComponent {
178
188
  readonly BodyId: string;
179
189
  Toggle(): void;
180
190
  static ɵfac: i0.ɵɵFactoryDeclaration<MJAccordionPanelComponent, never>;
181
- static ɵcmp: i0.ɵɵComponentDeclaration<MJAccordionPanelComponent, "mj-accordion-panel", never, { "Title": { "alias": "Title"; "required": false; }; "Expanded": { "alias": "Expanded"; "required": false; }; "Disabled": { "alias": "Disabled"; "required": false; }; "Variant": { "alias": "Variant"; "required": false; }; "TitleIconMuted": { "alias": "TitleIconMuted"; "required": false; }; "Size": { "alias": "Size"; "required": false; }; "Bare": { "alias": "Bare"; "required": false; }; "FlushBody": { "alias": "FlushBody"; "required": false; }; "Fill": { "alias": "Fill"; "required": false; }; }, { "ExpandedChange": "ExpandedChange"; }, ["TitleTemplate", "ActionsTemplate", "BodyTemplate"], ["*"], true, never>;
191
+ static ɵcmp: i0.ɵɵComponentDeclaration<MJAccordionPanelComponent, "mj-accordion-panel", never, { "Title": { "alias": "Title"; "required": false; }; "Expanded": { "alias": "Expanded"; "required": false; }; "Disabled": { "alias": "Disabled"; "required": false; }; "Variant": { "alias": "Variant"; "required": false; }; "TitleIconMuted": { "alias": "TitleIconMuted"; "required": false; }; "Size": { "alias": "Size"; "required": false; }; "Bare": { "alias": "Bare"; "required": false; }; "HeadingLevel": { "alias": "HeadingLevel"; "required": false; }; "FlushBody": { "alias": "FlushBody"; "required": false; }; "Fill": { "alias": "Fill"; "required": false; }; }, { "ExpandedChange": "ExpandedChange"; }, ["TitleTemplate", "ActionsTemplate", "BodyTemplate"], ["*"], true, never>;
182
192
  }
183
193
  /**
184
194
  * Convenience module bundling the accordion panel + all of its slot directives.
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.component.d.ts","sourceRoot":"","sources":["../../../src/lib/accordion/accordion.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAA6B,WAAW,EAAuB,MAAM,eAAe,CAAC;;AAOpI;;;;;;;;;;;;;;GAcG;AACH,qBAIa,yBAAyB;IACjB,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC;gBAAjC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC;yCADzC,yBAAyB;2CAAzB,yBAAyB;CAErC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAIa,2BAA2B;IACnB,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC;gBAAjC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC;yCADzC,2BAA2B;2CAA3B,2BAA2B;CAEvC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAIa,wBAAwB;IAChB,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC;gBAAjC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC;yCADzC,wBAAwB;2CAAxB,wBAAwB;CAEpC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAwDa,yBAAyB;IAC3B,KAAK,SAAM;IACpB,OAAO,CAAC,SAAS,CAAS;IAC1B;;yDAEqD;IACrD,OAAO,CAAC,aAAa,CAAS;IAC9B,IACI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAG1B;IACD,IAAI,QAAQ,IA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AyB;2CAAzB,yBAAyB;CAyHrC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAca,iBAAiB;yCAAjB,iBAAiB;0CAAjB,iBAAiB,iBA1JjB,yBAAyB,SAnJzB,yBAAyB,SA0BzB,2BAA2B,SA2B3B,wBAAwB,WA8FxB,yBAAyB,SAnJzB,yBAAyB,SA0BzB,2BAA2B,SA2B3B,wBAAwB;0CAwPxB,iBAAiB;CAAG"}
@@ -2,19 +2,25 @@ import { Component, Input, Output, EventEmitter, HostBinding, ContentChild, Dire
2
2
  import { NgTemplateOutlet } from '@angular/common';
3
3
  import * as i0 from "@angular/core";
4
4
  const _c0 = ["*"];
5
- function MJAccordionPanelComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
6
- i0.ɵɵelementContainer(0, 4);
5
+ function MJAccordionPanelComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
6
+ i0.ɵɵelementStart(0, "div", 3);
7
+ i0.ɵɵelementContainer(1, 4);
8
+ i0.ɵɵelementEnd();
7
9
  } if (rf & 2) {
8
10
  const ctx_r0 = i0.ɵɵnextContext();
9
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.titleTemplate.templateRef);
11
+ const toggleButton_r2 = i0.ɵɵreference(13);
12
+ i0.ɵɵattribute("aria-level", ctx_r0.HeadingLevel);
13
+ i0.ɵɵadvance();
14
+ i0.ɵɵproperty("ngTemplateOutlet", toggleButton_r2);
10
15
  } }
11
- function MJAccordionPanelComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
12
- i0.ɵɵtext(0);
16
+ function MJAccordionPanelComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
17
+ i0.ɵɵelementContainer(0, 4);
13
18
  } if (rf & 2) {
14
- const ctx_r0 = i0.ɵɵnextContext();
15
- i0.ɵɵtextInterpolate1(" ", ctx_r0.Title, " ");
19
+ i0.ɵɵnextContext();
20
+ const toggleButton_r2 = i0.ɵɵreference(13);
21
+ i0.ɵɵproperty("ngTemplateOutlet", toggleButton_r2);
16
22
  } }
17
- function MJAccordionPanelComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
23
+ function MJAccordionPanelComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
18
24
  i0.ɵɵelementStart(0, "div", 5);
19
25
  i0.ɵɵelementContainer(1, 4);
20
26
  i0.ɵɵelementEnd();
@@ -23,12 +29,38 @@ function MJAccordionPanelComponent_Conditional_6_Template(rf, ctx) { if (rf & 1)
23
29
  i0.ɵɵadvance();
24
30
  i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.actionsTemplate.templateRef);
25
31
  } }
26
- function MJAccordionPanelComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
32
+ function MJAccordionPanelComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
27
33
  i0.ɵɵelementContainer(0, 4);
28
34
  } if (rf & 2) {
29
35
  const ctx_r0 = i0.ɵɵnextContext();
30
36
  i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.bodyTemplate.templateRef);
31
37
  } }
38
+ function MJAccordionPanelComponent_ng_template_12_Conditional_2_Template(rf, ctx) { if (rf & 1) {
39
+ i0.ɵɵelementContainer(0, 4);
40
+ } if (rf & 2) {
41
+ const ctx_r0 = i0.ɵɵnextContext(2);
42
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.TitleTemplate.templateRef);
43
+ } }
44
+ function MJAccordionPanelComponent_ng_template_12_Conditional_3_Template(rf, ctx) { if (rf & 1) {
45
+ i0.ɵɵtext(0);
46
+ } if (rf & 2) {
47
+ const ctx_r0 = i0.ɵɵnextContext(2);
48
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.Title, " ");
49
+ } }
50
+ function MJAccordionPanelComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
51
+ const _r3 = i0.ɵɵgetCurrentView();
52
+ i0.ɵɵelementStart(0, "button", 11);
53
+ i0.ɵɵlistener("click", function MJAccordionPanelComponent_ng_template_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.Toggle()); });
54
+ i0.ɵɵelementStart(1, "span", 12);
55
+ i0.ɵɵconditionalCreate(2, MJAccordionPanelComponent_ng_template_12_Conditional_2_Template, 1, 1, "ng-container", 4)(3, MJAccordionPanelComponent_ng_template_12_Conditional_3_Template, 1, 1);
56
+ i0.ɵɵelementEnd()();
57
+ } if (rf & 2) {
58
+ const ctx_r0 = i0.ɵɵnextContext();
59
+ i0.ɵɵproperty("id", ctx_r0.HeaderId)("disabled", ctx_r0.Disabled);
60
+ i0.ɵɵattribute("aria-expanded", ctx_r0.Expanded)("aria-controls", ctx_r0.BodyId);
61
+ i0.ɵɵadvance(2);
62
+ i0.ɵɵconditional(ctx_r0.TitleTemplate ? 2 : 3);
63
+ } }
32
64
  /** Process-wide counter for generating unique, stable accordion element ids
33
65
  * (used to wire `aria-controls` / `aria-labelledby` between header and body). */
34
66
  let nextAccordionUid = 0;
@@ -187,11 +219,21 @@ export class MJAccordionPanelComponent {
187
219
  */
188
220
  Size = 'md';
189
221
  /**
190
- * Bare chrome — drop the panel's own border and header background so the panel
191
- * sits cleanly inside a host that already provides chrome (e.g. an expandable
192
- * card). The toggle/title/chevron/body still work; only the box styling is removed.
222
+ * Bare chrome — drop the panel's border, header background, body fill and
223
+ * row-wide hover fill, so the panel sits cleanly inside a host that already
224
+ * provides chrome (e.g. an expandable card) or directly on a page as a section.
225
+ * The toggle keeps its focus ring and, on a device that can hover, a hover cue:
226
+ * pointing at the title or the chevron gives both the brand color. A `Variant`
227
+ * keeps its own colors.
193
228
  */
194
229
  Bare = false;
230
+ /**
231
+ * Heading level (1–6) for the title. When set, a `role="heading"` element with this
232
+ * `aria-level` wraps the toggle button, so the section title takes part in the page's
233
+ * heading outline. When null, there is no wrapper and the toggle is a direct child of
234
+ * the header row.
235
+ */
236
+ HeadingLevel = null;
195
237
  /**
196
238
  * Remove the body's default padding, for bodies that manage their own spacing
197
239
  * (code editors, full-bleed grids, custom forms).
@@ -269,32 +311,27 @@ export class MJAccordionPanelComponent {
269
311
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.BodyTemplate = _t.first);
270
312
  } }, hostVars: 4, hostBindings: function MJAccordionPanelComponent_HostBindings(rf, ctx) { if (rf & 2) {
271
313
  i0.ɵɵclassProp("mj-accordion-panel-host", ctx.hostClass)("mj-accordion-fill-active", ctx.fillActive);
272
- } }, inputs: { Title: "Title", Expanded: "Expanded", Disabled: "Disabled", Variant: "Variant", TitleIconMuted: "TitleIconMuted", Size: "Size", Bare: "Bare", FlushBody: "FlushBody", Fill: "Fill" }, outputs: { ExpandedChange: "ExpandedChange" }, ngContentSelectors: _c0, decls: 14, vars: 26, consts: [[1, "mj-accordion-panel"], [1, "mj-accordion-header-row"], ["type", "button", 1, "mj-accordion-header", 3, "click", "id", "disabled"], [1, "mj-accordion-title"], [3, "ngTemplateOutlet"], [1, "mj-accordion-actions"], ["type", "button", "tabindex", "-1", "aria-hidden", "true", 1, "mj-accordion-chevron", 3, "click", "disabled"], [1, "fa-solid", "fa-chevron-down", "mj-accordion-icon"], [1, "mj-accordion-body-outer"], [1, "mj-accordion-body-clip"], ["role", "region", 1, "mj-accordion-body", 3, "id"]], template: function MJAccordionPanelComponent_Template(rf, ctx) { if (rf & 1) {
314
+ } }, inputs: { Title: "Title", Expanded: "Expanded", Disabled: "Disabled", Variant: "Variant", TitleIconMuted: "TitleIconMuted", Size: "Size", Bare: "Bare", HeadingLevel: "HeadingLevel", FlushBody: "FlushBody", Fill: "Fill" }, outputs: { ExpandedChange: "ExpandedChange" }, ngContentSelectors: _c0, decls: 14, vars: 22, consts: [["toggleButton", ""], [1, "mj-accordion-panel"], [1, "mj-accordion-header-row"], ["role", "heading", 1, "mj-accordion-heading"], [3, "ngTemplateOutlet"], [1, "mj-accordion-actions"], ["type", "button", "tabindex", "-1", "aria-hidden", "true", 1, "mj-accordion-chevron", 3, "click", "disabled"], [1, "fa-solid", "fa-chevron-down", "mj-accordion-icon"], [1, "mj-accordion-body-outer"], [1, "mj-accordion-body-clip"], ["role", "region", 1, "mj-accordion-body", 3, "id"], ["type", "button", 1, "mj-accordion-header", 3, "click", "id", "disabled"], [1, "mj-accordion-title"]], template: function MJAccordionPanelComponent_Template(rf, ctx) { if (rf & 1) {
273
315
  i0.ɵɵprojectionDef();
274
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "button", 2);
275
- i0.ɵɵlistener("click", function MJAccordionPanelComponent_Template_button_click_2_listener() { return ctx.Toggle(); });
276
- i0.ɵɵelementStart(3, "span", 3);
277
- i0.ɵɵconditionalCreate(4, MJAccordionPanelComponent_Conditional_4_Template, 1, 1, "ng-container", 4)(5, MJAccordionPanelComponent_Conditional_5_Template, 1, 1);
316
+ i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
317
+ i0.ɵɵconditionalCreate(2, MJAccordionPanelComponent_Conditional_2_Template, 2, 2, "div", 3)(3, MJAccordionPanelComponent_Conditional_3_Template, 1, 1, "ng-container", 4);
318
+ i0.ɵɵconditionalCreate(4, MJAccordionPanelComponent_Conditional_4_Template, 2, 1, "div", 5);
319
+ i0.ɵɵelementStart(5, "button", 6);
320
+ i0.ɵɵlistener("click", function MJAccordionPanelComponent_Template_button_click_5_listener() { return ctx.Toggle(); });
321
+ i0.ɵɵelement(6, "i", 7);
278
322
  i0.ɵɵelementEnd()();
279
- i0.ɵɵconditionalCreate(6, MJAccordionPanelComponent_Conditional_6_Template, 2, 1, "div", 5);
280
- i0.ɵɵelementStart(7, "button", 6);
281
- i0.ɵɵlistener("click", function MJAccordionPanelComponent_Template_button_click_7_listener() { return ctx.Toggle(); });
282
- i0.ɵɵelement(8, "i", 7);
283
- i0.ɵɵelementEnd()();
284
- i0.ɵɵelementStart(9, "div", 8)(10, "div", 9)(11, "div", 10);
285
- i0.ɵɵprojection(12);
286
- i0.ɵɵconditionalCreate(13, MJAccordionPanelComponent_Conditional_13_Template, 1, 1, "ng-container", 4);
323
+ i0.ɵɵelementStart(7, "div", 8)(8, "div", 9)(9, "div", 10);
324
+ i0.ɵɵprojection(10);
325
+ i0.ɵɵconditionalCreate(11, MJAccordionPanelComponent_Conditional_11_Template, 1, 1, "ng-container", 4);
287
326
  i0.ɵɵelementEnd()()()();
327
+ i0.ɵɵtemplate(12, MJAccordionPanelComponent_ng_template_12_Template, 4, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
288
328
  } if (rf & 2) {
289
329
  i0.ɵɵclassProp("mj-accordion-panel--expanded", ctx.Expanded)("mj-accordion-panel--disabled", ctx.Disabled)("mj-accordion-panel--muted-icon", ctx.TitleIconMuted)("mj-accordion-panel--sm", ctx.Size === "sm")("mj-accordion-panel--bare", ctx.Bare)("mj-accordion-panel--flush-body", ctx.FlushBody)("mj-accordion-panel--fill", ctx.Fill);
290
330
  i0.ɵɵattribute("data-variant", ctx.Variant !== "default" ? ctx.Variant : null);
291
331
  i0.ɵɵadvance(2);
292
- i0.ɵɵproperty("id", ctx.HeaderId)("disabled", ctx.Disabled);
293
- i0.ɵɵattribute("aria-expanded", ctx.Expanded)("aria-controls", ctx.BodyId);
294
- i0.ɵɵadvance(2);
295
- i0.ɵɵconditional(ctx.titleTemplate ? 4 : 5);
332
+ i0.ɵɵconditional(ctx.HeadingLevel ? 2 : 3);
296
333
  i0.ɵɵadvance(2);
297
- i0.ɵɵconditional(ctx.actionsTemplate ? 6 : -1);
334
+ i0.ɵɵconditional(ctx.actionsTemplate ? 4 : -1);
298
335
  i0.ɵɵadvance();
299
336
  i0.ɵɵproperty("disabled", ctx.Disabled);
300
337
  i0.ɵɵadvance(2);
@@ -303,7 +340,7 @@ export class MJAccordionPanelComponent {
303
340
  i0.ɵɵproperty("id", ctx.BodyId);
304
341
  i0.ɵɵattribute("aria-labelledby", ctx.HeaderId);
305
342
  i0.ɵɵadvance(2);
306
- i0.ɵɵconditional(ctx.bodyTemplate && (ctx.Expanded || ctx.hasBeenExpanded) ? 13 : -1);
343
+ i0.ɵɵconditional(ctx.bodyTemplate && (ctx.Expanded || ctx.hasBeenExpanded) ? 11 : -1);
307
344
  } }, dependencies: [NgTemplateOutlet], encapsulation: 2 });
308
345
  }
309
346
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJAccordionPanelComponent, [{
@@ -321,20 +358,14 @@ export class MJAccordionPanelComponent {
321
358
  [class.mj-accordion-panel--fill]="Fill"
322
359
  [attr.data-variant]="Variant !== 'default' ? Variant : null">
323
360
  <div class="mj-accordion-header-row">
324
- <button class="mj-accordion-header" type="button"
325
- [id]="HeaderId"
326
- [attr.aria-expanded]="Expanded"
327
- [attr.aria-controls]="BodyId"
328
- [disabled]="Disabled"
329
- (click)="Toggle()">
330
- <span class="mj-accordion-title">
331
- @if (titleTemplate) {
332
- <ng-container [ngTemplateOutlet]="titleTemplate.templateRef"></ng-container>
333
- } @else {
334
- {{ Title }}
335
- }
336
- </span>
337
- </button>
361
+ <!-- With HeadingLevel set, a heading wraps the toggle; without it, the toggle is a direct child of the row. -->
362
+ @if (HeadingLevel) {
363
+ <div class="mj-accordion-heading" role="heading" [attr.aria-level]="HeadingLevel">
364
+ <ng-container [ngTemplateOutlet]="toggleButton"></ng-container>
365
+ </div>
366
+ } @else {
367
+ <ng-container [ngTemplateOutlet]="toggleButton"></ng-container>
368
+ }
338
369
  @if (actionsTemplate) {
339
370
  <div class="mj-accordion-actions">
340
371
  <ng-container [ngTemplateOutlet]="actionsTemplate.templateRef"></ng-container>
@@ -362,6 +393,23 @@ export class MJAccordionPanelComponent {
362
393
  </div>
363
394
  </div>
364
395
  </div>
396
+ <!-- The toggle button: the disclosure control that owns aria-expanded -->
397
+ <ng-template #toggleButton>
398
+ <button class="mj-accordion-header" type="button"
399
+ [id]="HeaderId"
400
+ [attr.aria-expanded]="Expanded"
401
+ [attr.aria-controls]="BodyId"
402
+ [disabled]="Disabled"
403
+ (click)="Toggle()">
404
+ <span class="mj-accordion-title">
405
+ @if (TitleTemplate) {
406
+ <ng-container [ngTemplateOutlet]="TitleTemplate.templateRef"></ng-container>
407
+ } @else {
408
+ {{ Title }}
409
+ }
410
+ </span>
411
+ </button>
412
+ </ng-template>
365
413
  `
366
414
  }]
367
415
  }], null, { Title: [{
@@ -378,6 +426,8 @@ export class MJAccordionPanelComponent {
378
426
  type: Input
379
427
  }], Bare: [{
380
428
  type: Input
429
+ }], HeadingLevel: [{
430
+ type: Input
381
431
  }], FlushBody: [{
382
432
  type: Input
383
433
  }], Fill: [{
@@ -400,7 +450,7 @@ export class MJAccordionPanelComponent {
400
450
  type: HostBinding,
401
451
  args: ['class.mj-accordion-fill-active']
402
452
  }] }); })();
403
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJAccordionPanelComponent, { className: "MJAccordionPanelComponent", filePath: "lib/accordion/accordion.component.ts", lineNumber: 163 }); })();
453
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MJAccordionPanelComponent, { className: "MJAccordionPanelComponent", filePath: "lib/accordion/accordion.component.ts", lineNumber: 174 }); })();
404
454
  /**
405
455
  * Convenience module bundling the accordion panel + all of its slot directives.
406
456
  * Import this ONE symbol instead of listing the component and each directive
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.component.js","sourceRoot":"","sources":["../../../src/lib/accordion/accordion.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpI,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;;;;IA8HrC,2BAA4E;;;IAA9D,mEAA8C;;;IAE5D,YACF;;;IADE,6CACF;;;IAIF,8BAAkC;IAChC,2BAA8E;IAChF,iBAAM;;;IADU,cAAgD;IAAhD,qEAAgD;;;IAmB5D,2BAA2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BAAoB;gBAC9B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,gBAAgB,CAAC;gBAC3B,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDT;aACF;;kBAEE,KAAK;;kBAML,KAAK;;kBAOL,KAAK;;kBAQL,KAAK;;kBAML,KAAK;;kBAKL,KAAK;;kBAML,KAAK;;kBAKL,KAAK;;kBAeL,KAAK;;kBACL,MAAM;;kBACN,YAAY;mBAAC,yBAAyB;;kBAUtC,YAAY;mBAAC,2BAA2B;;kBAUxC,YAAY;mBAAC,wBAAwB;;kBAUrC,WAAW;mBAAC,+BAA+B;;kBAG3C,WAAW;mBAAC,gCAAgC;;kFA9FlC,yBAAyB;AAiHtC;;;;;;;;;;;;;;;;GAgBG;AAeH,MAAM,OAAO,iBAAiB;2GAAjB,iBAAiB;4DAAjB,iBAAiB;;;iFAAjB,iBAAiB;cAd7B,QAAQ;eAAC;gBACR,OAAO,EAAE;oBACP,yBAAyB;oBACzB,yBAAyB;oBACzB,2BAA2B;oBAC3B,wBAAwB;iBACzB;gBACD,OAAO,EAAE;oBACP,yBAAyB;oBACzB,yBAAyB;oBACzB,2BAA2B;oBAC3B,wBAAwB;iBACzB;aACF;;wFACY,iBAAiB,cAhJjB,yBAAyB,EAxIzB,yBAAyB,EA0BzB,2BAA2B,EA2B3B,wBAAwB,aAmFxB,yBAAyB,EAxIzB,yBAAyB,EA0BzB,2BAA2B,EA2B3B,wBAAwB","sourcesContent":["import { Component, Input, Output, EventEmitter, HostBinding, ContentChild, TemplateRef, Directive, NgModule } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n/** Process-wide counter for generating unique, stable accordion element ids\n * (used to wire `aria-controls` / `aria-labelledby` between header and body). */\nlet nextAccordionUid = 0;\n\n/**\n * Directive to mark a template as the accordion panel title.\n * Supports rich HTML content (icons, badges, dynamic text).\n *\n * @example\n * ```html\n * <mj-accordion-panel [Expanded]=\"true\">\n * <ng-template mjAccordionTitle>\n * <i class=\"fa-solid fa-code\"></i> Template Editor\n * <span class=\"badge\">3</span>\n * </ng-template>\n * <p>Panel content here</p>\n * </mj-accordion-panel>\n * ```\n */\n@Directive({\n selector: '[mjAccordionTitle]',\n standalone: true\n})\nexport class MJAccordionTitleDirective {\n constructor(public templateRef: TemplateRef<unknown>) {} // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n}\n\n/**\n * Directive to mark a template as the accordion header **actions** — interactive\n * controls (edit / copy / run / checkbox, etc.) that sit in the header row but\n * are NOT the expand/collapse toggle. Rendered as a sibling of the toggle\n * `<button>`, so there's no button-in-button and the toggle stays a clean,\n * accessible control.\n *\n * @example\n * ```html\n * <mj-accordion-panel>\n * <ng-template mjAccordionTitle>Connection</ng-template>\n * <ng-template mjAccordionActions>\n * <button mjButton variant=\"icon\" (click)=\"edit()\"><i class=\"fa fa-pen\"></i></button>\n * </ng-template>\n * …body…\n * </mj-accordion-panel>\n * ```\n */\n@Directive({\n selector: '[mjAccordionActions]',\n standalone: true\n})\nexport class MJAccordionActionsDirective {\n constructor(public templateRef: TemplateRef<unknown>) {} // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n}\n\n/**\n * Directive to mark a template as the accordion **body** — the panel's collapsible\n * content. Use this INSTEAD of placing content directly in the panel when the body\n * may be expensive (code editors, grids, large lists) OR just to be future-proof:\n * the accordion instantiates the template **lazily on first expand** and then keeps\n * it alive, so nothing is created until the user opens the panel, while later\n * open/close still animates. Consumers never have to reason about content weight or\n * write `@if (expanded)` themselves.\n *\n * @example\n * ```html\n * <mj-accordion-panel [Expanded]=\"open\" (ExpandedChange)=\"open = $event\">\n * <ng-template mjAccordionTitle>Configuration</ng-template>\n * <ng-template mjAccordionBody>\n * <mj-code-editor ...></mj-code-editor> <!-- not created until first opened -->\n * </ng-template>\n * </mj-accordion-panel>\n * ```\n */\n@Directive({\n selector: '[mjAccordionBody]',\n standalone: true\n})\nexport class MJAccordionBodyDirective {\n constructor(public templateRef: TemplateRef<unknown>) {} // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n}\n\n/**\n * mj-accordion-panel — Collapsible panel. Replaces `<kendo-panelbar-item>` and `<kendo-expansionpanel>`.\n *\n * Supports two title modes:\n * - Simple string: `[Title]=\"'Details'\"` — plain text title\n * - Rich template: `<ng-template mjAccordionTitle>` — HTML with icons, badges, etc.\n *\n * @example\n * ```html\n * <!-- Simple string title -->\n * <mj-accordion-panel Title=\"Details\" [Expanded]=\"true\">\n * <p>Panel content here</p>\n * </mj-accordion-panel>\n *\n * <!-- Rich HTML title -->\n * <mj-accordion-panel [Expanded]=\"true\">\n * <ng-template mjAccordionTitle>\n * <i class=\"fa-solid fa-code\"></i> Template Editor\n * </ng-template>\n * <p>Panel content here</p>\n * </mj-accordion-panel>\n * ```\n */\n@Component({\n selector: 'mj-accordion-panel',\n standalone: true,\n imports: [NgTemplateOutlet],\n template: `\n <div class=\"mj-accordion-panel\" [class.mj-accordion-panel--expanded]=\"Expanded\" [class.mj-accordion-panel--disabled]=\"Disabled\"\n [class.mj-accordion-panel--muted-icon]=\"TitleIconMuted\"\n [class.mj-accordion-panel--sm]=\"Size === 'sm'\"\n [class.mj-accordion-panel--bare]=\"Bare\"\n [class.mj-accordion-panel--flush-body]=\"FlushBody\"\n [class.mj-accordion-panel--fill]=\"Fill\"\n [attr.data-variant]=\"Variant !== 'default' ? Variant : null\">\n <div class=\"mj-accordion-header-row\">\n <button class=\"mj-accordion-header\" type=\"button\"\n [id]=\"HeaderId\"\n [attr.aria-expanded]=\"Expanded\"\n [attr.aria-controls]=\"BodyId\"\n [disabled]=\"Disabled\"\n (click)=\"Toggle()\">\n <span class=\"mj-accordion-title\">\n @if (titleTemplate) {\n <ng-container [ngTemplateOutlet]=\"titleTemplate.templateRef\"></ng-container>\n } @else {\n {{ Title }}\n }\n </span>\n </button>\n @if (actionsTemplate) {\n <div class=\"mj-accordion-actions\">\n <ng-container [ngTemplateOutlet]=\"actionsTemplate.templateRef\"></ng-container>\n </div>\n }\n <!-- The chevron is ALWAYS the rightmost element of the header row (after any\n actions). It's a secondary, a11y-hidden toggle affordance — the primary\n disclosure control is the title button above (which owns aria-expanded). -->\n <button class=\"mj-accordion-chevron\" type=\"button\" tabindex=\"-1\" aria-hidden=\"true\"\n [disabled]=\"Disabled\" (click)=\"Toggle()\">\n <i class=\"fa-solid fa-chevron-down mj-accordion-icon\"></i>\n </button>\n </div>\n <div class=\"mj-accordion-body-outer\" [attr.inert]=\"Expanded ? null : ''\">\n <div class=\"mj-accordion-body-clip\">\n <div class=\"mj-accordion-body\" role=\"region\" [id]=\"BodyId\" [attr.aria-labelledby]=\"HeaderId\">\n <!-- Legacy: content placed directly in the panel (eager). -->\n <ng-content></ng-content>\n <!-- Preferred: [mjAccordionBody] template — instantiated lazily on first\n expand, then kept alive so later toggles still animate. -->\n @if (bodyTemplate && (Expanded || hasBeenExpanded)) {\n <ng-container [ngTemplateOutlet]=\"bodyTemplate.templateRef\"></ng-container>\n }\n </div>\n </div>\n </div>\n </div>\n `\n})\nexport class MJAccordionPanelComponent {\n @Input() Title = '';\n private _expanded = false;\n /** Latches true the first time the panel is expanded; never resets. Lets a\n * [mjAccordionBody] template instantiate lazily on first open and then stay\n * alive so subsequent open/close still animates. */\n private _everExpanded = false;\n @Input()\n set Expanded(value: boolean) {\n this._expanded = value;\n if (value) this._everExpanded = true;\n }\n get Expanded(): boolean { return this._expanded; }\n protected get hasBeenExpanded(): boolean { return this._everExpanded; }\n @Input() Disabled = false;\n /**\n * Emphasis variant for visual hierarchy:\n * - `primary` — bold, solid brand-colored header (use to make a panel stand out)\n * - `secondary` — subtle brand tint\n * - `default` — standard neutral header\n * All brand-token-driven, so dark-mode-safe and themeable.\n */\n @Input() Variant: 'default' | 'primary' | 'secondary' = 'default';\n /**\n * Render icons projected into the title slot in the muted color instead of the\n * header's primary text color. Lets consumers get the common \"quiet icon\" look\n * without writing CSS. Status/brand-colored icons can still be colored inline.\n */\n @Input() TitleIconMuted = false;\n /**\n * Density. `md` (default) is the standard size; `sm` tightens header padding and\n * font for dense contexts (sidebars, flyouts, nested panels).\n */\n @Input() Size: 'sm' | 'md' = 'md';\n /**\n * Bare chrome — drop the panel's own border and header background so the panel\n * sits cleanly inside a host that already provides chrome (e.g. an expandable\n * card). The toggle/title/chevron/body still work; only the box styling is removed.\n */\n @Input() Bare = false;\n /**\n * Remove the body's default padding, for bodies that manage their own spacing\n * (code editors, full-bleed grids, custom forms).\n */\n @Input() FlushBody = false;\n /**\n * Fill mode — for \"rail section that owns the leftover height\" cases (e.g. an\n * entity tree or grid that should consume all remaining vertical space and\n * scroll *internally*), rather than the default \"reveal stacked content\"\n * disclosure. When set AND expanded, the panel becomes a flex column that\n * fills its flex parent and its body becomes a `flex:1; min-height:0` region —\n * the projected content is expected to provide its own scroll child. While\n * collapsed, the panel behaves exactly like a normal panel (header only,\n * natural height) and does NOT claim the leftover space.\n *\n * Requires the panel's parent to be a flex column with `min-height:0`.\n * Note: the open/close height animation is skipped in fill mode (the body\n * fills rather than animating to content height).\n */\n @Input() Fill = false;\n @Output() ExpandedChange = new EventEmitter<boolean>();\n @ContentChild(MJAccordionTitleDirective) TitleTemplate: MJAccordionTitleDirective | null = null;\n\n /** @deprecated Use {@link TitleTemplate}. */\n get titleTemplate(): MJAccordionTitleDirective | null {\n return this.TitleTemplate;\n }\n /** @deprecated Use {@link TitleTemplate}. */\n set titleTemplate(value: MJAccordionTitleDirective | null) {\n this.TitleTemplate = value;\n }\n @ContentChild(MJAccordionActionsDirective) ActionsTemplate: MJAccordionActionsDirective | null = null;\n\n /** @deprecated Use {@link ActionsTemplate}. */\n get actionsTemplate(): MJAccordionActionsDirective | null {\n return this.ActionsTemplate;\n }\n /** @deprecated Use {@link ActionsTemplate}. */\n set actionsTemplate(value: MJAccordionActionsDirective | null) {\n this.ActionsTemplate = value;\n }\n @ContentChild(MJAccordionBodyDirective) BodyTemplate: MJAccordionBodyDirective | null = null;\n\n /** @deprecated Use {@link BodyTemplate}. */\n get bodyTemplate(): MJAccordionBodyDirective | null {\n return this.BodyTemplate;\n }\n /** @deprecated Use {@link BodyTemplate}. */\n set bodyTemplate(value: MJAccordionBodyDirective | null) {\n this.BodyTemplate = value;\n }\n @HostBinding('class.mj-accordion-panel-host') readonly hostClass = true;\n /** Host claims flex:1 of its parent ONLY while a Fill panel is expanded —\n * so a collapsed Fill panel sits at natural (header) height like any other. */\n @HostBinding('class.mj-accordion-fill-active') get fillActive(): boolean {\n return this.Fill && this.Expanded;\n }\n\n /** Stable per-instance ids that programmatically associate the header\n * `<button>` with its body region (`aria-controls` ↔ `aria-labelledby`),\n * completing the WAI-ARIA accordion pattern so screen readers announce the\n * region with the header's name. */\n private readonly _uid = nextAccordionUid++;\n readonly HeaderId = `mj-accordion-header-${this._uid}`;\n readonly BodyId = `mj-accordion-body-${this._uid}`;\n\n Toggle(): void {\n if (this.Disabled) return;\n this.Expanded = !this.Expanded;\n this.ExpandedChange.emit(this.Expanded);\n }\n}\n\n/**\n * Convenience module bundling the accordion panel + all of its slot directives.\n * Import this ONE symbol instead of listing the component and each directive\n * separately:\n *\n * ```ts\n * import { MJAccordionModule } from '@memberjunction/ng-ui-components';\n * @NgModule({ imports: [MJAccordionModule, ...] }) // or @Component standalone imports\n * ```\n *\n * Why a module (not a bare `const [...]` array): Angular's AOT compiler can't\n * statically expand a value-array imported across a compiled-package boundary in\n * an `imports` array (NG1010), and `as const` makes it a readonly tuple the\n * `imports` type rejects (TS2322). An NgModule is always a valid `imports` entry\n * in both NgModule and standalone consumers. Adding a future accordion directive\n * here makes it available to every consumer automatically — no per-module churn.\n */\n@NgModule({\n imports: [\n MJAccordionPanelComponent,\n MJAccordionTitleDirective,\n MJAccordionActionsDirective,\n MJAccordionBodyDirective,\n ],\n exports: [\n MJAccordionPanelComponent,\n MJAccordionTitleDirective,\n MJAccordionActionsDirective,\n MJAccordionBodyDirective,\n ],\n})\nexport class MJAccordionModule {}\n"]}
1
+ {"version":3,"file":"accordion.component.js","sourceRoot":"","sources":["../../../src/lib/accordion/accordion.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAe,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpI,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;;;;IAwHzC,8BAAkF;IAChF,2BAA+D;IACjE,iBAAM;;;;;IADU,cAAiC;IAAjC,kDAAiC;;;IAGjD,2BAA+D;;;;IAAjD,kDAAiC;;;IAG/C,8BAAkC;IAChC,2BAA8E;IAChF,iBAAM;;;IADU,cAAgD;IAAhD,qEAAgD;;;IAmB5D,2BAA2E;;;IAA7D,kEAA6C;;;IAgB7D,2BAA4E;;;IAA9D,mEAA8C;;;IAE5D,YACF;;;IADE,6CACF;;;;IAXJ,kCAKqB;IAAnB,8LAAS,eAAQ,KAAC;IAClB,gCAAiC;IAG7B,AAFF,mHAAqB,0EAEZ;IAIb,AADE,iBAAO,EACA;;;IATP,AAHA,oCAAe,6BAGM;;IAGnB,eAIC;IAJD,8CAIC;;AApKX;kFACkF;AAClF,IAAI,gBAAgB,GAAG,CAAC,CAAC;AAEzB;;;;;;;;;;;;;;GAcG;AAKH,MAAM,OAAO,yBAAyB;IACjB;IAAnB,YAAmB,WAAiC;QAAjC,gBAAW,GAAX,WAAW,CAAsB;IAAG,CAAC,CAAE,sIAAsI;mHADrL,yBAAyB;6DAAzB,yBAAyB;;iFAAzB,yBAAyB;cAJrC,SAAS;eAAC;gBACT,QAAQ,EAAE,oBAAoB;gBAC9B,UAAU,EAAE,IAAI;aACjB;;AAKD;;;;;;;;;;;;;;;;;GAiBG;AAKH,MAAM,OAAO,2BAA2B;IACnB;IAAnB,YAAmB,WAAiC;QAAjC,gBAAW,GAAX,WAAW,CAAsB;IAAG,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;;GAgBG;AAeH,MAAM,OAAO,iBAAiB;2GAAjB,iBAAiB;4DAAjB,iBAAiB;;;iFAAjB,iBAAiB;cAd7B,QAAQ;eAAC;gBACR,OAAO,EAAE;oBACP,yBAAyB;oBACzB,yBAAyB;oBACzB,2BAA2B;oBAC3B,wBAAwB;iBACzB;gBACD,OAAO,EAAE;oBACP,yBAAyB;oBACzB,yBAAyB;oBACzB,2BAA2B;oBAC3B,wBAAwB;iBACzB;aACF;;wFACY,iBAAiB,cA1JjB,yBAAyB,EAnJzB,yBAAyB,EA0BzB,2BAA2B,EA2B3B,wBAAwB,aA8FxB,yBAAyB,EAnJzB,yBAAyB,EA0BzB,2BAA2B,EA2B3B,wBAAwB","sourcesContent":["import { Component, Input, Output, EventEmitter, HostBinding, ContentChild, TemplateRef, Directive, NgModule } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n/** Process-wide counter for generating unique, stable accordion element ids\n * (used to wire `aria-controls` / `aria-labelledby` between header and body). */\nlet nextAccordionUid = 0;\n\n/**\n * Directive to mark a template as the accordion panel title.\n * Supports rich HTML content (icons, badges, dynamic text).\n *\n * @example\n * ```html\n * <mj-accordion-panel [Expanded]=\"true\">\n * <ng-template mjAccordionTitle>\n * <i class=\"fa-solid fa-code\"></i> Template Editor\n * <span class=\"badge\">3</span>\n * </ng-template>\n * <p>Panel content here</p>\n * </mj-accordion-panel>\n * ```\n */\n@Directive({\n selector: '[mjAccordionTitle]',\n standalone: true\n})\nexport class MJAccordionTitleDirective {\n constructor(public templateRef: TemplateRef<unknown>) {} // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n}\n\n/**\n * Directive to mark a template as the accordion header **actions** — interactive\n * controls (edit / copy / run / checkbox, etc.) that sit in the header row but\n * are NOT the expand/collapse toggle. Rendered as a sibling of the toggle\n * `<button>`, so there's no button-in-button and the toggle stays a clean,\n * accessible control.\n *\n * @example\n * ```html\n * <mj-accordion-panel>\n * <ng-template mjAccordionTitle>Connection</ng-template>\n * <ng-template mjAccordionActions>\n * <button mjButton variant=\"icon\" (click)=\"edit()\"><i class=\"fa fa-pen\"></i></button>\n * </ng-template>\n * …body…\n * </mj-accordion-panel>\n * ```\n */\n@Directive({\n selector: '[mjAccordionActions]',\n standalone: true\n})\nexport class MJAccordionActionsDirective {\n constructor(public templateRef: TemplateRef<unknown>) {} // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n}\n\n/**\n * Directive to mark a template as the accordion **body** — the panel's collapsible\n * content. Use this INSTEAD of placing content directly in the panel when the body\n * may be expensive (code editors, grids, large lists) OR just to be future-proof:\n * the accordion instantiates the template **lazily on first expand** and then keeps\n * it alive, so nothing is created until the user opens the panel, while later\n * open/close still animates. Consumers never have to reason about content weight or\n * write `@if (expanded)` themselves.\n *\n * @example\n * ```html\n * <mj-accordion-panel [Expanded]=\"open\" (ExpandedChange)=\"open = $event\">\n * <ng-template mjAccordionTitle>Configuration</ng-template>\n * <ng-template mjAccordionBody>\n * <mj-code-editor ...></mj-code-editor> <!-- not created until first opened -->\n * </ng-template>\n * </mj-accordion-panel>\n * ```\n */\n@Directive({\n selector: '[mjAccordionBody]',\n standalone: true\n})\nexport class MJAccordionBodyDirective {\n constructor(public templateRef: TemplateRef<unknown>) {} // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n}\n\n/**\n * mj-accordion-panel — Collapsible panel. Replaces `<kendo-panelbar-item>` and `<kendo-expansionpanel>`.\n *\n * Supports two title modes:\n * - Simple string: `[Title]=\"'Details'\"` — plain text title\n * - Rich template: `<ng-template mjAccordionTitle>` — HTML with icons, badges, etc.\n *\n * @example\n * ```html\n * <!-- Simple string title -->\n * <mj-accordion-panel Title=\"Details\" [Expanded]=\"true\">\n * <p>Panel content here</p>\n * </mj-accordion-panel>\n *\n * <!-- Rich HTML title -->\n * <mj-accordion-panel [Expanded]=\"true\">\n * <ng-template mjAccordionTitle>\n * <i class=\"fa-solid fa-code\"></i> Template Editor\n * </ng-template>\n * <p>Panel content here</p>\n * </mj-accordion-panel>\n * ```\n */\n@Component({\n selector: 'mj-accordion-panel',\n standalone: true,\n imports: [NgTemplateOutlet],\n template: `\n <div class=\"mj-accordion-panel\" [class.mj-accordion-panel--expanded]=\"Expanded\" [class.mj-accordion-panel--disabled]=\"Disabled\"\n [class.mj-accordion-panel--muted-icon]=\"TitleIconMuted\"\n [class.mj-accordion-panel--sm]=\"Size === 'sm'\"\n [class.mj-accordion-panel--bare]=\"Bare\"\n [class.mj-accordion-panel--flush-body]=\"FlushBody\"\n [class.mj-accordion-panel--fill]=\"Fill\"\n [attr.data-variant]=\"Variant !== 'default' ? Variant : null\">\n <div class=\"mj-accordion-header-row\">\n <!-- With HeadingLevel set, a heading wraps the toggle; without it, the toggle is a direct child of the row. -->\n @if (HeadingLevel) {\n <div class=\"mj-accordion-heading\" role=\"heading\" [attr.aria-level]=\"HeadingLevel\">\n <ng-container [ngTemplateOutlet]=\"toggleButton\"></ng-container>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"toggleButton\"></ng-container>\n }\n @if (actionsTemplate) {\n <div class=\"mj-accordion-actions\">\n <ng-container [ngTemplateOutlet]=\"actionsTemplate.templateRef\"></ng-container>\n </div>\n }\n <!-- The chevron is ALWAYS the rightmost element of the header row (after any\n actions). It's a secondary, a11y-hidden toggle affordance — the primary\n disclosure control is the title button above (which owns aria-expanded). -->\n <button class=\"mj-accordion-chevron\" type=\"button\" tabindex=\"-1\" aria-hidden=\"true\"\n [disabled]=\"Disabled\" (click)=\"Toggle()\">\n <i class=\"fa-solid fa-chevron-down mj-accordion-icon\"></i>\n </button>\n </div>\n <div class=\"mj-accordion-body-outer\" [attr.inert]=\"Expanded ? null : ''\">\n <div class=\"mj-accordion-body-clip\">\n <div class=\"mj-accordion-body\" role=\"region\" [id]=\"BodyId\" [attr.aria-labelledby]=\"HeaderId\">\n <!-- Legacy: content placed directly in the panel (eager). -->\n <ng-content></ng-content>\n <!-- Preferred: [mjAccordionBody] template — instantiated lazily on first\n expand, then kept alive so later toggles still animate. -->\n @if (bodyTemplate && (Expanded || hasBeenExpanded)) {\n <ng-container [ngTemplateOutlet]=\"bodyTemplate.templateRef\"></ng-container>\n }\n </div>\n </div>\n </div>\n </div>\n <!-- The toggle button: the disclosure control that owns aria-expanded -->\n <ng-template #toggleButton>\n <button class=\"mj-accordion-header\" type=\"button\"\n [id]=\"HeaderId\"\n [attr.aria-expanded]=\"Expanded\"\n [attr.aria-controls]=\"BodyId\"\n [disabled]=\"Disabled\"\n (click)=\"Toggle()\">\n <span class=\"mj-accordion-title\">\n @if (TitleTemplate) {\n <ng-container [ngTemplateOutlet]=\"TitleTemplate.templateRef\"></ng-container>\n } @else {\n {{ Title }}\n }\n </span>\n </button>\n </ng-template>\n `\n})\nexport class MJAccordionPanelComponent {\n @Input() Title = '';\n private _expanded = false;\n /** Latches true the first time the panel is expanded; never resets. Lets a\n * [mjAccordionBody] template instantiate lazily on first open and then stay\n * alive so subsequent open/close still animates. */\n private _everExpanded = false;\n @Input()\n set Expanded(value: boolean) {\n this._expanded = value;\n if (value) this._everExpanded = true;\n }\n get Expanded(): boolean { return this._expanded; }\n protected get hasBeenExpanded(): boolean { return this._everExpanded; }\n @Input() Disabled = false;\n /**\n * Emphasis variant for visual hierarchy:\n * - `primary` — bold, solid brand-colored header (use to make a panel stand out)\n * - `secondary` — subtle brand tint\n * - `default` — standard neutral header\n * All brand-token-driven, so dark-mode-safe and themeable.\n */\n @Input() Variant: 'default' | 'primary' | 'secondary' = 'default';\n /**\n * Render icons projected into the title slot in the muted color instead of the\n * header's primary text color. Lets consumers get the common \"quiet icon\" look\n * without writing CSS. Status/brand-colored icons can still be colored inline.\n */\n @Input() TitleIconMuted = false;\n /**\n * Density. `md` (default) is the standard size; `sm` tightens header padding and\n * font for dense contexts (sidebars, flyouts, nested panels).\n */\n @Input() Size: 'sm' | 'md' = 'md';\n /**\n * Bare chrome — drop the panel's border, header background, body fill and\n * row-wide hover fill, so the panel sits cleanly inside a host that already\n * provides chrome (e.g. an expandable card) or directly on a page as a section.\n * The toggle keeps its focus ring and, on a device that can hover, a hover cue:\n * pointing at the title or the chevron gives both the brand color. A `Variant`\n * keeps its own colors.\n */\n @Input() Bare = false;\n /**\n * Heading level (1–6) for the title. When set, a `role=\"heading\"` element with this\n * `aria-level` wraps the toggle button, so the section title takes part in the page's\n * heading outline. When null, there is no wrapper and the toggle is a direct child of\n * the header row.\n */\n @Input() HeadingLevel: 1 | 2 | 3 | 4 | 5 | 6 | null = null;\n /**\n * Remove the body's default padding, for bodies that manage their own spacing\n * (code editors, full-bleed grids, custom forms).\n */\n @Input() FlushBody = false;\n /**\n * Fill mode — for \"rail section that owns the leftover height\" cases (e.g. an\n * entity tree or grid that should consume all remaining vertical space and\n * scroll *internally*), rather than the default \"reveal stacked content\"\n * disclosure. When set AND expanded, the panel becomes a flex column that\n * fills its flex parent and its body becomes a `flex:1; min-height:0` region —\n * the projected content is expected to provide its own scroll child. While\n * collapsed, the panel behaves exactly like a normal panel (header only,\n * natural height) and does NOT claim the leftover space.\n *\n * Requires the panel's parent to be a flex column with `min-height:0`.\n * Note: the open/close height animation is skipped in fill mode (the body\n * fills rather than animating to content height).\n */\n @Input() Fill = false;\n @Output() ExpandedChange = new EventEmitter<boolean>();\n @ContentChild(MJAccordionTitleDirective) TitleTemplate: MJAccordionTitleDirective | null = null;\n\n /** @deprecated Use {@link TitleTemplate}. */\n get titleTemplate(): MJAccordionTitleDirective | null {\n return this.TitleTemplate;\n }\n /** @deprecated Use {@link TitleTemplate}. */\n set titleTemplate(value: MJAccordionTitleDirective | null) {\n this.TitleTemplate = value;\n }\n @ContentChild(MJAccordionActionsDirective) ActionsTemplate: MJAccordionActionsDirective | null = null;\n\n /** @deprecated Use {@link ActionsTemplate}. */\n get actionsTemplate(): MJAccordionActionsDirective | null {\n return this.ActionsTemplate;\n }\n /** @deprecated Use {@link ActionsTemplate}. */\n set actionsTemplate(value: MJAccordionActionsDirective | null) {\n this.ActionsTemplate = value;\n }\n @ContentChild(MJAccordionBodyDirective) BodyTemplate: MJAccordionBodyDirective | null = null;\n\n /** @deprecated Use {@link BodyTemplate}. */\n get bodyTemplate(): MJAccordionBodyDirective | null {\n return this.BodyTemplate;\n }\n /** @deprecated Use {@link BodyTemplate}. */\n set bodyTemplate(value: MJAccordionBodyDirective | null) {\n this.BodyTemplate = value;\n }\n @HostBinding('class.mj-accordion-panel-host') readonly hostClass = true;\n /** Host claims flex:1 of its parent ONLY while a Fill panel is expanded —\n * so a collapsed Fill panel sits at natural (header) height like any other. */\n @HostBinding('class.mj-accordion-fill-active') get fillActive(): boolean {\n return this.Fill && this.Expanded;\n }\n\n /** Stable per-instance ids that programmatically associate the header\n * `<button>` with its body region (`aria-controls` ↔ `aria-labelledby`),\n * completing the WAI-ARIA accordion pattern so screen readers announce the\n * region with the header's name. */\n private readonly _uid = nextAccordionUid++;\n readonly HeaderId = `mj-accordion-header-${this._uid}`;\n readonly BodyId = `mj-accordion-body-${this._uid}`;\n\n Toggle(): void {\n if (this.Disabled) return;\n this.Expanded = !this.Expanded;\n this.ExpandedChange.emit(this.Expanded);\n }\n}\n\n/**\n * Convenience module bundling the accordion panel + all of its slot directives.\n * Import this ONE symbol instead of listing the component and each directive\n * separately:\n *\n * ```ts\n * import { MJAccordionModule } from '@memberjunction/ng-ui-components';\n * @NgModule({ imports: [MJAccordionModule, ...] }) // or @Component standalone imports\n * ```\n *\n * Why a module (not a bare `const [...]` array): Angular's AOT compiler can't\n * statically expand a value-array imported across a compiled-package boundary in\n * an `imports` array (NG1010), and `as const` makes it a readonly tuple the\n * `imports` type rejects (TS2322). An NgModule is always a valid `imports` entry\n * in both NgModule and standalone consumers. Adding a future accordion directive\n * here makes it available to every consumer automatically — no per-module churn.\n */\n@NgModule({\n imports: [\n MJAccordionPanelComponent,\n MJAccordionTitleDirective,\n MJAccordionActionsDirective,\n MJAccordionBodyDirective,\n ],\n exports: [\n MJAccordionPanelComponent,\n MJAccordionTitleDirective,\n MJAccordionActionsDirective,\n MJAccordionBodyDirective,\n ],\n})\nexport class MJAccordionModule {}\n"]}
@@ -39,7 +39,20 @@
39
39
  font-family: var(--mj-font-family); font-size: var(--mj-text-sm);
40
40
  font-weight: var(--mj-font-semibold); color: var(--mj-text-primary);
41
41
  text-align: left;
42
- &:focus-visible { outline: none; box-shadow: var(--mj-focus-ring); }
42
+ /* The ring sits inside the toggle's box: the panel's overflow:hidden clips anything
43
+ drawn outside it, and a Bare toggle touches the panel's edges. */
44
+ &:focus-visible {
45
+ outline: var(--mj-ring-width) solid var(--mj-focus-ring-color);
46
+ outline-offset: calc(-1 * var(--mj-ring-width));
47
+ }
48
+ }
49
+
50
+ /* HeadingLevel wrapper around the toggle. It takes the toggle's flex sizing, and the
51
+ toggle fills it, so the header row lays out the same with or without it. Every rule
52
+ below that reaches the toggle through ">" also has a "> .mj-accordion-heading >" path. */
53
+ .mj-accordion-heading {
54
+ flex: 1 1 auto; min-width: 0;
55
+ display: flex;
43
56
  }
44
57
 
45
58
  /* Header actions — interactive controls (edit/copy/run/checkbox) that live in
@@ -132,7 +145,8 @@
132
145
 
133
146
  /* Muted title icons — opt in via [TitleIconMuted]="true" instead of per-consumer
134
147
  CSS. (Status/brand-colored icons are still set per-instance inline.) */
135
- .mj-accordion-panel--muted-icon > .mj-accordion-header-row > .mj-accordion-header .mj-accordion-title i {
148
+ .mj-accordion-panel--muted-icon > .mj-accordion-header-row > .mj-accordion-header .mj-accordion-title i,
149
+ .mj-accordion-panel--muted-icon > .mj-accordion-header-row > .mj-accordion-heading > .mj-accordion-header .mj-accordion-title i {
136
150
  color: var(--mj-text-muted);
137
151
  }
138
152
 
@@ -170,25 +184,59 @@
170
184
 
171
185
  .mj-accordion-panel--disabled > .mj-accordion-header-row { opacity: 0.5; }
172
186
  .mj-accordion-panel--disabled > .mj-accordion-header-row > .mj-accordion-header,
187
+ .mj-accordion-panel--disabled > .mj-accordion-header-row > .mj-accordion-heading > .mj-accordion-header,
173
188
  .mj-accordion-panel--disabled > .mj-accordion-header-row > .mj-accordion-chevron { cursor: not-allowed; }
174
189
 
175
190
  /* ── Density (Size="sm") — tighter padding + smaller text for dense contexts.
176
191
  Child-combinator-scoped so a default panel nested inside a Size="sm" panel
177
192
  doesn't inherit the dense styling. ── */
178
193
  .mj-accordion-panel--sm {
179
- > .mj-accordion-header-row > .mj-accordion-header { padding: 8px 12px; font-size: var(--mj-text-xs); }
194
+ > .mj-accordion-header-row > .mj-accordion-header,
195
+ > .mj-accordion-header-row > .mj-accordion-heading > .mj-accordion-header { padding: 8px 12px; font-size: var(--mj-text-xs); }
180
196
  > .mj-accordion-header-row > .mj-accordion-actions { padding-right: 4px; }
181
197
  > .mj-accordion-header-row > .mj-accordion-chevron { padding: 0 12px; }
182
198
  > .mj-accordion-body-outer > .mj-accordion-body-clip > .mj-accordion-body { padding: 10px 12px; }
183
199
  }
184
200
 
185
- /* ── Bare — drop the box (border + header background) so the panel sits cleanly
186
- inside a host that already provides chrome (e.g. an expandable card). ── */
201
+ /* ── Bare — drop the box (border, header background, body fill and row hover fill)
202
+ so the panel sits cleanly inside a host that already provides chrome (e.g. an
203
+ expandable card) or directly on a page as a section. On a device that can hover,
204
+ the toggle keeps a hover cue: pointing at the title or the chevron gives both the
205
+ brand color, and pointing at the header actions does not. A Variant keeps its own
206
+ colors. ── */
187
207
  .mj-accordion-panel--bare {
188
208
  border: none;
189
209
  border-radius: 0;
190
210
  > .mj-accordion-header-row { background: transparent; }
191
211
  &.mj-accordion-panel--expanded > .mj-accordion-header-row { border-bottom-color: var(--mj-border-subtle); }
212
+ > .mj-accordion-body-outer > .mj-accordion-body-clip > .mj-accordion-body { background: transparent; }
213
+ // No row hover fill on any device (not gated by hover media, so a tap on a touch screen never leaves one).
214
+ &:not([data-variant]):not(.mj-accordion-panel--disabled) > .mj-accordion-header-row:hover { background: transparent; }
215
+ }
216
+
217
+ // The Bare hover cue, only where a pointer can hover. The :has() rules are separate, so a
218
+ // browser without :has() keeps the rules that do not need it.
219
+ @media (hover: hover) {
220
+ .mj-accordion-panel--bare:not([data-variant]):not(.mj-accordion-panel--disabled) > .mj-accordion-header-row {
221
+ > .mj-accordion-header:hover,
222
+ > .mj-accordion-heading > .mj-accordion-header:hover { color: var(--mj-brand-primary); }
223
+ > .mj-accordion-header:hover ~ .mj-accordion-chevron .mj-accordion-icon,
224
+ > .mj-accordion-heading:hover ~ .mj-accordion-chevron .mj-accordion-icon,
225
+ > .mj-accordion-chevron:hover .mj-accordion-icon { color: var(--mj-brand-primary); }
226
+ }
227
+ .mj-accordion-panel--bare:not([data-variant]):not(.mj-accordion-panel--disabled) > .mj-accordion-header-row:has(> .mj-accordion-chevron:hover) {
228
+ > .mj-accordion-header,
229
+ > .mj-accordion-heading > .mj-accordion-header { color: var(--mj-brand-primary); }
230
+ }
231
+ // Muted title icons take the title's hover color too.
232
+ .mj-accordion-panel--bare.mj-accordion-panel--muted-icon:not([data-variant]):not(.mj-accordion-panel--disabled) > .mj-accordion-header-row {
233
+ > .mj-accordion-header:hover .mj-accordion-title i,
234
+ > .mj-accordion-heading > .mj-accordion-header:hover .mj-accordion-title i { color: inherit; }
235
+ }
236
+ .mj-accordion-panel--bare.mj-accordion-panel--muted-icon:not([data-variant]):not(.mj-accordion-panel--disabled) > .mj-accordion-header-row:has(> .mj-accordion-chevron:hover) {
237
+ > .mj-accordion-header .mj-accordion-title i,
238
+ > .mj-accordion-heading > .mj-accordion-header .mj-accordion-title i { color: inherit; }
239
+ }
192
240
  }
193
241
 
194
242
  /* ── Flush body — body manages its own padding (code editors, full-bleed grids) ── */
@@ -277,6 +325,7 @@
277
325
  > .mj-accordion-header-row { background: var(--mj-brand-primary); }
278
326
  &:not(.mj-accordion-panel--disabled) > .mj-accordion-header-row:hover { background: var(--mj-brand-primary-hover); }
279
327
  > .mj-accordion-header-row .mj-accordion-header { color: var(--mj-text-inverse); }
328
+ > .mj-accordion-header-row .mj-accordion-header:focus-visible { outline-color: var(--mj-text-inverse); }
280
329
  > .mj-accordion-header-row .mj-accordion-icon { color: var(--mj-text-inverse); }
281
330
  &.mj-accordion-panel--expanded > .mj-accordion-header-row { border-bottom-color: transparent; }
282
331
  }
@@ -2,6 +2,8 @@ import { EventEmitter, ElementRef, AfterContentInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export type MjButtonVariant = 'primary' | 'secondary' | 'outline' | 'flat' | 'danger' | 'icon' | 'success' | 'warning';
4
4
  export type MjButtonSize = 'sm' | 'md' | 'lg';
5
+ /** `default` is the rounded rectangle; `circle` is a circle for an icon-only button. */
6
+ export type MjButtonShape = 'default' | 'circle';
5
7
  /**
6
8
  * mjButton — Attribute directive that styles a native `<button>` or `<a>` element
7
9
  * as an MJ-branded button.
@@ -9,21 +11,22 @@ export type MjButtonSize = 'sm' | 'md' | 'lg';
9
11
  * Uses `--mj-*` design tokens for all colors, ensuring dark-mode support
10
12
  * with zero extra CSS.
11
13
  *
12
- * Inputs use lowercase (not PascalCase) per the Phase 2 plan exception for
13
- * directives — matches HTML attribute convention.
14
+ * Inputs are PascalCase. The lowercase names (`variant`, `size`, `toggleable`, `selected`,
15
+ * `ariaLabel`) are deprecated aliases.
14
16
  *
15
- * Accessibility: an **icon-only** button (`variant="icon"`, no visible text) has no accessible
16
- * name unless you supply one — set `[ariaLabel]` (or a native `title`). Without a name, screen
17
- * readers announce it as an unlabeled "button" and DOM/accessibility-tree agents (e.g. computer-use)
18
- * can't identify it. In dev mode the directive logs a warning for an icon button that ends up with
19
- * no accessible name.
17
+ * Accessibility: an **icon-only** button (`Variant="icon"` or `Shape="circle"`, no visible text) has
18
+ * no accessible name unless you supply one — set `[AriaLabel]` (or a native `title`). Without a name,
19
+ * screen readers announce it as an unlabeled "button" and DOM/accessibility-tree agents (e.g.
20
+ * computer-use) can't identify it. In dev mode the directive logs a warning for an icon-only button
21
+ * that ends up with no accessible name.
20
22
  *
21
23
  * @example
22
24
  * ```html
23
- * <button mjButton variant="primary" (click)="save()">Save</button>
24
- * <button mjButton variant="outline" size="sm">Cancel</button>
25
- * <button mjButton variant="icon" ariaLabel="Remove" (click)="remove()"><i class="fa-solid fa-xmark"></i></button>
26
- * <button mjButton variant="flat" [toggleable]="true" [(selected)]="isActive">Toggle</button>
25
+ * <button mjButton Variant="primary" (click)="save()">Save</button>
26
+ * <button mjButton Variant="outline" Size="sm">Cancel</button>
27
+ * <button mjButton Variant="icon" AriaLabel="Remove" (click)="remove()"><i class="fa-solid fa-xmark"></i></button>
28
+ * <button mjButton Variant="danger" Shape="circle" AriaLabel="Unmute microphone"><i class="fa-solid fa-microphone-slash"></i></button>
29
+ * <button mjButton Variant="flat" [Toggleable]="true" [(Selected)]="isActive">Toggle</button>
27
30
  * ```
28
31
  */
29
32
  export declare class MJButtonDirective implements AfterContentInit {
@@ -38,6 +41,13 @@ export declare class MJButtonDirective implements AfterContentInit {
38
41
  set size(value: MjButtonSize);
39
42
  /** @deprecated Use {@link Size}. */
40
43
  get size(): MjButtonSize;
44
+ /**
45
+ * `circle` makes the button a circle, as wide as it is tall: 32, 44 or 52 px by {@link Size}. It suits call
46
+ * controls (microphone, camera, share, leave) and combines with any {@link Variant}, such as `danger` for a muted
47
+ * microphone. A circle has room for an icon only, so name it with {@link AriaLabel}; dev mode warns when it has no
48
+ * name, as it does for the `icon` variant.
49
+ */
50
+ Shape: MjButtonShape;
41
51
  Toggleable: boolean;
42
52
  /** @deprecated Use {@link Toggleable}. */
43
53
  set toggleable(value: MJButtonDirective['Toggleable']);
@@ -81,16 +91,18 @@ export declare class MJButtonDirective implements AfterContentInit {
81
91
  get isWarning(): boolean;
82
92
  get isSm(): boolean;
83
93
  get isLg(): boolean;
94
+ get isCircle(): boolean;
84
95
  get isSelected(): boolean;
85
96
  get ariaPressed(): string | null;
86
97
  OnClick(): void;
87
98
  /**
88
- * Dev-only guard: an icon-variant button with no accessible name (no `ariaLabel`/`aria-label`/
89
- * `aria-labelledby`/`title` and no visible text) is invisible-by-name to screen readers and DOM
90
- * agents. Warn so it gets a name. No-op in production builds.
99
+ * Dev-only guard: an icon-only button (the `icon` variant or the `circle` shape) with no accessible
100
+ * name (no `ariaLabel`/`aria-label`/`aria-labelledby`/`title` and no visible text) is
101
+ * invisible-by-name to screen readers and DOM agents. Warn so it gets a name. No-op in production
102
+ * builds.
91
103
  */
92
104
  ngAfterContentInit(): void;
93
105
  static ɵfac: i0.ɵɵFactoryDeclaration<MJButtonDirective, never>;
94
- static ɵdir: i0.ɵɵDirectiveDeclaration<MJButtonDirective, "button[mjButton], a[mjButton]", never, { "Variant": { "alias": "Variant"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "Size": { "alias": "Size"; "required": false; }; "size": { "alias": "size"; "required": false; }; "Toggleable": { "alias": "Toggleable"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "Selected": { "alias": "Selected"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "AriaLabel": { "alias": "AriaLabel"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "SelectedChange": "SelectedChange"; "selectedChange": "selectedChange"; }, never, never, true, never>;
106
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MJButtonDirective, "button[mjButton], a[mjButton]", never, { "Variant": { "alias": "Variant"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "Size": { "alias": "Size"; "required": false; }; "size": { "alias": "size"; "required": false; }; "Shape": { "alias": "Shape"; "required": false; }; "Toggleable": { "alias": "Toggleable"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "Selected": { "alias": "Selected"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "AriaLabel": { "alias": "AriaLabel"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "SelectedChange": "SelectedChange"; "selectedChange": "selectedChange"; }, never, never, true, never>;
95
107
  }
96
108
  //# sourceMappingURL=button.directive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.directive.d.ts","sourceRoot":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