@momentum-design/components 0.83.7 → 0.84.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +142 -142
- package/dist/browser/index.js.map +3 -3
- package/dist/components/menupopover/menupopover.component.d.ts +18 -1
- package/dist/components/menupopover/menupopover.component.js +32 -7
- package/dist/components/menupopover/menupopover.constants.d.ts +4 -1
- package/dist/components/menupopover/menupopover.constants.js +5 -1
- package/dist/components/popover/popover.component.js +4 -6
- package/dist/components/toggletip/toggletip.component.d.ts +18 -0
- package/dist/components/toggletip/toggletip.component.js +21 -1
- package/dist/custom-elements.json +127 -127
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
import { CSSResult, PropertyValues } from 'lit';
|
2
2
|
import Popover from '../popover/popover.component';
|
3
|
+
import { PopoverPlacement } from '../popover/popover.types';
|
3
4
|
/**
|
4
5
|
* A popover menu component that displays a list of menu items in a floating container.
|
5
6
|
* It's designed to work in conjunction with `mdc-menubar` and `mdc-menuitem` to create
|
@@ -21,10 +22,26 @@ import Popover from '../popover/popover.component';
|
|
21
22
|
* @slot default - Contains the menu items to be displayed in the popover
|
22
23
|
*/
|
23
24
|
declare class MenuPopover extends Popover {
|
25
|
+
/**
|
26
|
+
* The placement of the popover.
|
27
|
+
* - **top**
|
28
|
+
* - **top-start**
|
29
|
+
* - **top-end**
|
30
|
+
* - **bottom**
|
31
|
+
* - **bottom-start**
|
32
|
+
* - **bottom-end**
|
33
|
+
* - **left**
|
34
|
+
* - **left-start**
|
35
|
+
* - **left-end**
|
36
|
+
* - **right**
|
37
|
+
* - **right-start**
|
38
|
+
* - **right-end**
|
39
|
+
* @default bottom
|
40
|
+
*/
|
41
|
+
placement: PopoverPlacement;
|
24
42
|
constructor();
|
25
43
|
/** @internal */
|
26
44
|
get menuItems(): Array<HTMLElement>;
|
27
|
-
hidePopover: () => void;
|
28
45
|
connectedCallback(): void;
|
29
46
|
firstUpdated(changedProperties: PropertyValues): Promise<void>;
|
30
47
|
/**
|
@@ -1,10 +1,20 @@
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
+
};
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
9
|
+
};
|
10
|
+
import { property } from 'lit/decorators.js';
|
1
11
|
import { KEYS } from '../../utils/keys';
|
2
12
|
import { ROLE } from '../../utils/roles';
|
3
13
|
import { TAG_NAME as MENUSECTION_TAGNAME } from '../menusection/menusection.constants';
|
4
14
|
import { ORIENTATION } from '../menubar/menubar.constants';
|
5
15
|
import Popover from '../popover/popover.component';
|
6
16
|
import { COLOR } from '../popover/popover.constants';
|
7
|
-
import { TAG_NAME as MENU_POPOVER } from './menupopover.constants';
|
17
|
+
import { DEFAULTS, TAG_NAME as MENU_POPOVER } from './menupopover.constants';
|
8
18
|
import styles from './menupopover.styles';
|
9
19
|
import { isActiveMenuItem, isValidMenuItem, isValidPopover } from './menupopover.utils';
|
10
20
|
import { popoverStack } from '../popover/popover.stack';
|
@@ -31,12 +41,23 @@ import { popoverStack } from '../popover/popover.stack';
|
|
31
41
|
class MenuPopover extends Popover {
|
32
42
|
constructor() {
|
33
43
|
super();
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
44
|
+
/**
|
45
|
+
* The placement of the popover.
|
46
|
+
* - **top**
|
47
|
+
* - **top-start**
|
48
|
+
* - **top-end**
|
49
|
+
* - **bottom**
|
50
|
+
* - **bottom-start**
|
51
|
+
* - **bottom-end**
|
52
|
+
* - **left**
|
53
|
+
* - **left-start**
|
54
|
+
* - **left-end**
|
55
|
+
* - **right**
|
56
|
+
* - **right-start**
|
57
|
+
* - **right-end**
|
58
|
+
* @default bottom
|
59
|
+
*/
|
60
|
+
this.placement = DEFAULTS.PLACEMENT;
|
40
61
|
/**
|
41
62
|
* Handles outside click events to close the popover.
|
42
63
|
* This method checks if the click occurred outside the popover and its trigger element.
|
@@ -247,4 +268,8 @@ class MenuPopover extends Popover {
|
|
247
268
|
}
|
248
269
|
}
|
249
270
|
MenuPopover.styles = [...Popover.styles, ...styles];
|
271
|
+
__decorate([
|
272
|
+
property({ type: String, reflect: true }),
|
273
|
+
__metadata("design:type", String)
|
274
|
+
], MenuPopover.prototype, "placement", void 0);
|
250
275
|
export default MenuPopover;
|
@@ -1,3 +1,7 @@
|
|
1
1
|
import utils from '../../utils/tag-name';
|
2
|
+
import { POPOVER_PLACEMENT } from '../popover/popover.constants';
|
2
3
|
const TAG_NAME = utils.constructTagName('menupopover');
|
3
|
-
|
4
|
+
const DEFAULTS = {
|
5
|
+
PLACEMENT: POPOVER_PLACEMENT.BOTTOM_START,
|
6
|
+
};
|
7
|
+
export { TAG_NAME, DEFAULTS };
|
@@ -318,12 +318,10 @@ class Popover extends PreventScrollMixin(FocusTrapMixin(Component)) {
|
|
318
318
|
* Hides the popover.
|
319
319
|
*/
|
320
320
|
this.hidePopover = () => {
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
}, this.closeDelay);
|
326
|
-
}
|
321
|
+
setTimeout(() => {
|
322
|
+
this.visible = false;
|
323
|
+
this.isTriggerClicked = false;
|
324
|
+
}, this.closeDelay);
|
327
325
|
};
|
328
326
|
/**
|
329
327
|
* Toggles the popover visibility.
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { CSSResult, PropertyValueMap } from 'lit';
|
2
2
|
import Popover from '../popover/popover.component';
|
3
|
+
import { PopoverPlacement } from '../popover/popover.types';
|
3
4
|
/**
|
4
5
|
* A toggletip is triggered by clicking a trigger element.
|
5
6
|
*
|
@@ -48,6 +49,23 @@ declare class ToggleTip extends Popover {
|
|
48
49
|
* Please refer to the `mdc-screenreaderannouncer` component for more details.
|
49
50
|
*/
|
50
51
|
screenreaderAnnouncerIdentity?: string;
|
52
|
+
/**
|
53
|
+
* The placement of the popover.
|
54
|
+
* - **top**
|
55
|
+
* - **top-start**
|
56
|
+
* - **top-end**
|
57
|
+
* - **bottom**
|
58
|
+
* - **bottom-start**
|
59
|
+
* - **bottom-end**
|
60
|
+
* - **left**
|
61
|
+
* - **left-start**
|
62
|
+
* - **left-end**
|
63
|
+
* - **right**
|
64
|
+
* - **right-start**
|
65
|
+
* - **right-end**
|
66
|
+
* @default bottom
|
67
|
+
*/
|
68
|
+
placement: PopoverPlacement;
|
51
69
|
connectedCallback(): void;
|
52
70
|
/**
|
53
71
|
* @returns The text content of all the nodes in the default slot, joined by a space.
|
@@ -54,13 +54,29 @@ class ToggleTip extends Popover {
|
|
54
54
|
super(...arguments);
|
55
55
|
/** @internal */
|
56
56
|
this.currentAnnouncement = '';
|
57
|
+
/**
|
58
|
+
* The placement of the popover.
|
59
|
+
* - **top**
|
60
|
+
* - **top-start**
|
61
|
+
* - **top-end**
|
62
|
+
* - **bottom**
|
63
|
+
* - **bottom-start**
|
64
|
+
* - **bottom-end**
|
65
|
+
* - **left**
|
66
|
+
* - **left-start**
|
67
|
+
* - **left-end**
|
68
|
+
* - **right**
|
69
|
+
* - **right-start**
|
70
|
+
* - **right-end**
|
71
|
+
* @default bottom
|
72
|
+
*/
|
73
|
+
this.placement = DEFAULTS.PLACEMENT;
|
57
74
|
}
|
58
75
|
connectedCallback() {
|
59
76
|
var _a;
|
60
77
|
super.connectedCallback();
|
61
78
|
this.closeButton = (_a = this.closeButton) !== null && _a !== void 0 ? _a : DEFAULTS.CLOSE_BUTTON;
|
62
79
|
this.closeButtonAriaLabel = DEFAULTS.CLOSE_BUTTON_ARIA_LABEL;
|
63
|
-
this.placement = DEFAULTS.PLACEMENT;
|
64
80
|
this.trigger = DEFAULTS.CLICK;
|
65
81
|
this.showArrow = DEFAULTS.SHOW_ARROW;
|
66
82
|
this.interactive = true;
|
@@ -122,4 +138,8 @@ __decorate([
|
|
122
138
|
property({ type: String, reflect: true, attribute: 'screenreader-announcer-identity' }),
|
123
139
|
__metadata("design:type", String)
|
124
140
|
], ToggleTip.prototype, "screenreaderAnnouncerIdentity", void 0);
|
141
|
+
__decorate([
|
142
|
+
property({ type: String, reflect: true }),
|
143
|
+
__metadata("design:type", String)
|
144
|
+
], ToggleTip.prototype, "placement", void 0);
|
125
145
|
export default ToggleTip;
|
@@ -520,67 +520,6 @@
|
|
520
520
|
}
|
521
521
|
]
|
522
522
|
},
|
523
|
-
{
|
524
|
-
"kind": "javascript-module",
|
525
|
-
"path": "components/appheader/appheader.component.js",
|
526
|
-
"declarations": [
|
527
|
-
{
|
528
|
-
"kind": "class",
|
529
|
-
"description": "The `mdc-appheader` component provides a structured and accessible app header layout.\nIt consists of three primary sections: leading, center, and trailing.\n\n- The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.\n- The **center section** can contain a **search bar**, **icons** or action controls.\n- The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.",
|
530
|
-
"name": "Appheader",
|
531
|
-
"cssParts": [
|
532
|
-
{
|
533
|
-
"description": "The main container for styling the header.",
|
534
|
-
"name": "container"
|
535
|
-
},
|
536
|
-
{
|
537
|
-
"description": "The leading section of the header.",
|
538
|
-
"name": "leading-section"
|
539
|
-
},
|
540
|
-
{
|
541
|
-
"description": "The center section of the header.",
|
542
|
-
"name": "center-section"
|
543
|
-
},
|
544
|
-
{
|
545
|
-
"description": "The trailing section of the header.",
|
546
|
-
"name": "trailing-section"
|
547
|
-
}
|
548
|
-
],
|
549
|
-
"slots": [
|
550
|
-
{
|
551
|
-
"description": "Slot for the leading section (e.g., brand logo, brand name).",
|
552
|
-
"name": "leading"
|
553
|
-
},
|
554
|
-
{
|
555
|
-
"description": "Slot for the center section (e.g., search bar, icons).",
|
556
|
-
"name": "center"
|
557
|
-
},
|
558
|
-
{
|
559
|
-
"description": "Slot for the trailing section (e.g., profile avatar, icons).",
|
560
|
-
"name": "trailing"
|
561
|
-
}
|
562
|
-
],
|
563
|
-
"members": [],
|
564
|
-
"superclass": {
|
565
|
-
"name": "Component",
|
566
|
-
"module": "/src/models"
|
567
|
-
},
|
568
|
-
"tagName": "mdc-appheader",
|
569
|
-
"jsDoc": "/**\n * The `mdc-appheader` component provides a structured and accessible app header layout.\n * It consists of three primary sections: leading, center, and trailing.\n *\n * - The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.\n * - The **center section** can contain a **search bar**, **icons** or action controls.\n * - The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.\n *\n * @tagname mdc-appheader\n *\n * @slot leading - Slot for the leading section (e.g., brand logo, brand name).\n * @slot center - Slot for the center section (e.g., search bar, icons).\n * @slot trailing - Slot for the trailing section (e.g., profile avatar, icons).\n *\n * @csspart container - The main container for styling the header.\n * @csspart leading-section - The leading section of the header.\n * @csspart center-section - The center section of the header.\n * @csspart trailing-section - The trailing section of the header.\n */",
|
570
|
-
"customElement": true
|
571
|
-
}
|
572
|
-
],
|
573
|
-
"exports": [
|
574
|
-
{
|
575
|
-
"kind": "js",
|
576
|
-
"name": "default",
|
577
|
-
"declaration": {
|
578
|
-
"name": "Appheader",
|
579
|
-
"module": "components/appheader/appheader.component.js"
|
580
|
-
}
|
581
|
-
}
|
582
|
-
]
|
583
|
-
},
|
584
523
|
{
|
585
524
|
"kind": "javascript-module",
|
586
525
|
"path": "components/animation/animation.component.js",
|
@@ -793,6 +732,67 @@
|
|
793
732
|
}
|
794
733
|
]
|
795
734
|
},
|
735
|
+
{
|
736
|
+
"kind": "javascript-module",
|
737
|
+
"path": "components/appheader/appheader.component.js",
|
738
|
+
"declarations": [
|
739
|
+
{
|
740
|
+
"kind": "class",
|
741
|
+
"description": "The `mdc-appheader` component provides a structured and accessible app header layout.\nIt consists of three primary sections: leading, center, and trailing.\n\n- The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.\n- The **center section** can contain a **search bar**, **icons** or action controls.\n- The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.",
|
742
|
+
"name": "Appheader",
|
743
|
+
"cssParts": [
|
744
|
+
{
|
745
|
+
"description": "The main container for styling the header.",
|
746
|
+
"name": "container"
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"description": "The leading section of the header.",
|
750
|
+
"name": "leading-section"
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"description": "The center section of the header.",
|
754
|
+
"name": "center-section"
|
755
|
+
},
|
756
|
+
{
|
757
|
+
"description": "The trailing section of the header.",
|
758
|
+
"name": "trailing-section"
|
759
|
+
}
|
760
|
+
],
|
761
|
+
"slots": [
|
762
|
+
{
|
763
|
+
"description": "Slot for the leading section (e.g., brand logo, brand name).",
|
764
|
+
"name": "leading"
|
765
|
+
},
|
766
|
+
{
|
767
|
+
"description": "Slot for the center section (e.g., search bar, icons).",
|
768
|
+
"name": "center"
|
769
|
+
},
|
770
|
+
{
|
771
|
+
"description": "Slot for the trailing section (e.g., profile avatar, icons).",
|
772
|
+
"name": "trailing"
|
773
|
+
}
|
774
|
+
],
|
775
|
+
"members": [],
|
776
|
+
"superclass": {
|
777
|
+
"name": "Component",
|
778
|
+
"module": "/src/models"
|
779
|
+
},
|
780
|
+
"tagName": "mdc-appheader",
|
781
|
+
"jsDoc": "/**\n * The `mdc-appheader` component provides a structured and accessible app header layout.\n * It consists of three primary sections: leading, center, and trailing.\n *\n * - The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.\n * - The **center section** can contain a **search bar**, **icons** or action controls.\n * - The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.\n *\n * @tagname mdc-appheader\n *\n * @slot leading - Slot for the leading section (e.g., brand logo, brand name).\n * @slot center - Slot for the center section (e.g., search bar, icons).\n * @slot trailing - Slot for the trailing section (e.g., profile avatar, icons).\n *\n * @csspart container - The main container for styling the header.\n * @csspart leading-section - The leading section of the header.\n * @csspart center-section - The center section of the header.\n * @csspart trailing-section - The trailing section of the header.\n */",
|
782
|
+
"customElement": true
|
783
|
+
}
|
784
|
+
],
|
785
|
+
"exports": [
|
786
|
+
{
|
787
|
+
"kind": "js",
|
788
|
+
"name": "default",
|
789
|
+
"declaration": {
|
790
|
+
"name": "Appheader",
|
791
|
+
"module": "components/appheader/appheader.component.js"
|
792
|
+
}
|
793
|
+
}
|
794
|
+
]
|
795
|
+
},
|
796
796
|
{
|
797
797
|
"kind": "javascript-module",
|
798
798
|
"path": "components/avatar/avatar.component.js",
|
@@ -18096,9 +18096,14 @@
|
|
18096
18096
|
"members": [
|
18097
18097
|
{
|
18098
18098
|
"kind": "field",
|
18099
|
-
"name": "
|
18100
|
-
"
|
18101
|
-
|
18099
|
+
"name": "placement",
|
18100
|
+
"type": {
|
18101
|
+
"text": "PopoverPlacement"
|
18102
|
+
},
|
18103
|
+
"description": "The placement of the popover.\n- **top**\n- **top-start**\n- **top-end**\n- **bottom**\n- **bottom-start**\n- **bottom-end**\n- **left**\n- **left-start**\n- **left-end**\n- **right**\n- **right-start**\n- **right-end**",
|
18104
|
+
"default": "bottom",
|
18105
|
+
"attribute": "placement",
|
18106
|
+
"reflects": true,
|
18102
18107
|
"inheritedFrom": {
|
18103
18108
|
"name": "Popover",
|
18104
18109
|
"module": "components/popover/popover.component.js"
|
@@ -18848,21 +18853,6 @@
|
|
18848
18853
|
"module": "components/popover/popover.component.js"
|
18849
18854
|
}
|
18850
18855
|
},
|
18851
|
-
{
|
18852
|
-
"kind": "field",
|
18853
|
-
"name": "placement",
|
18854
|
-
"type": {
|
18855
|
-
"text": "PopoverPlacement"
|
18856
|
-
},
|
18857
|
-
"description": "The placement of the popover.\n- **top**\n- **top-start**\n- **top-end**\n- **bottom**\n- **bottom-start**\n- **bottom-end**\n- **left**\n- **left-start**\n- **left-end**\n- **right**\n- **right-start**\n- **right-end**",
|
18858
|
-
"default": "bottom",
|
18859
|
-
"attribute": "placement",
|
18860
|
-
"reflects": true,
|
18861
|
-
"inheritedFrom": {
|
18862
|
-
"name": "Popover",
|
18863
|
-
"module": "components/popover/popover.component.js"
|
18864
|
-
}
|
18865
|
-
},
|
18866
18856
|
{
|
18867
18857
|
"kind": "field",
|
18868
18858
|
"name": "color",
|
@@ -19342,6 +19332,16 @@
|
|
19342
19332
|
"module": "components/popover/popover.component.js"
|
19343
19333
|
}
|
19344
19334
|
},
|
19335
|
+
{
|
19336
|
+
"kind": "field",
|
19337
|
+
"name": "hidePopover",
|
19338
|
+
"privacy": "public",
|
19339
|
+
"description": "Hides the popover.",
|
19340
|
+
"inheritedFrom": {
|
19341
|
+
"name": "Popover",
|
19342
|
+
"module": "components/popover/popover.component.js"
|
19343
|
+
}
|
19344
|
+
},
|
19345
19345
|
{
|
19346
19346
|
"kind": "field",
|
19347
19347
|
"name": "togglePopoverVisible",
|
@@ -19372,14 +19372,20 @@
|
|
19372
19372
|
}
|
19373
19373
|
}
|
19374
19374
|
],
|
19375
|
-
"superclass": {
|
19376
|
-
"name": "Popover",
|
19377
|
-
"module": "/src/components/popover/popover.component"
|
19378
|
-
},
|
19379
|
-
"tagName": "mdc-menupopover",
|
19380
|
-
"jsDoc": "/**\n * A popover menu component that displays a list of menu items in a floating container.\n * It's designed to work in conjunction with `mdc-menubar` and `mdc-menuitem` to create\n * accessible, nested menu structures with the following features:\n * - Appears adjacent to the triggering menu item\n * - Supports keyboard navigation (arrow keys, Home, End)\n * - Manages focus trapping when open\n * - Closes on Escape key or outside click\n * - Supports both mouse and keyboard interactions\n * - Automatically handles ARIA attributes for accessibility\n *\n * The component extends `mdc-popover` and adds menu-specific behaviors and styling.\n * When nested within another `mdc-menupopover`, it automatically adjusts its behavior\n * to work as a submenu (right-aligned, shows on hover).\n *\n * The orientation of the menu popover is always set to `vertical`.\n *\n * @tagname mdc-menupopover\n * @slot default - Contains the menu items to be displayed in the popover\n */",
|
19381
|
-
"customElement": true,
|
19382
19375
|
"attributes": [
|
19376
|
+
{
|
19377
|
+
"name": "placement",
|
19378
|
+
"type": {
|
19379
|
+
"text": "PopoverPlacement"
|
19380
|
+
},
|
19381
|
+
"description": "The placement of the popover.\n- **top**\n- **top-start**\n- **top-end**\n- **bottom**\n- **bottom-start**\n- **bottom-end**\n- **left**\n- **left-start**\n- **left-end**\n- **right**\n- **right-start**\n- **right-end**",
|
19382
|
+
"default": "bottom",
|
19383
|
+
"fieldName": "placement",
|
19384
|
+
"inheritedFrom": {
|
19385
|
+
"name": "Popover",
|
19386
|
+
"module": "src/components/popover/popover.component.ts"
|
19387
|
+
}
|
19388
|
+
},
|
19383
19389
|
{
|
19384
19390
|
"name": "should-focus-trap-wrap",
|
19385
19391
|
"type": {
|
@@ -19432,19 +19438,6 @@
|
|
19432
19438
|
"module": "src/components/popover/popover.component.ts"
|
19433
19439
|
}
|
19434
19440
|
},
|
19435
|
-
{
|
19436
|
-
"name": "placement",
|
19437
|
-
"type": {
|
19438
|
-
"text": "PopoverPlacement"
|
19439
|
-
},
|
19440
|
-
"description": "The placement of the popover.\n- **top**\n- **top-start**\n- **top-end**\n- **bottom**\n- **bottom-start**\n- **bottom-end**\n- **left**\n- **left-start**\n- **left-end**\n- **right**\n- **right-start**\n- **right-end**",
|
19441
|
-
"default": "bottom",
|
19442
|
-
"fieldName": "placement",
|
19443
|
-
"inheritedFrom": {
|
19444
|
-
"name": "Popover",
|
19445
|
-
"module": "src/components/popover/popover.component.ts"
|
19446
|
-
}
|
19447
|
-
},
|
19448
19441
|
{
|
19449
19442
|
"name": "color",
|
19450
19443
|
"type": {
|
@@ -19771,6 +19764,13 @@
|
|
19771
19764
|
}
|
19772
19765
|
}
|
19773
19766
|
],
|
19767
|
+
"superclass": {
|
19768
|
+
"name": "Popover",
|
19769
|
+
"module": "/src/components/popover/popover.component"
|
19770
|
+
},
|
19771
|
+
"tagName": "mdc-menupopover",
|
19772
|
+
"jsDoc": "/**\n * A popover menu component that displays a list of menu items in a floating container.\n * It's designed to work in conjunction with `mdc-menubar` and `mdc-menuitem` to create\n * accessible, nested menu structures with the following features:\n * - Appears adjacent to the triggering menu item\n * - Supports keyboard navigation (arrow keys, Home, End)\n * - Manages focus trapping when open\n * - Closes on Escape key or outside click\n * - Supports both mouse and keyboard interactions\n * - Automatically handles ARIA attributes for accessibility\n *\n * The component extends `mdc-popover` and adds menu-specific behaviors and styling.\n * When nested within another `mdc-menupopover`, it automatically adjusts its behavior\n * to work as a submenu (right-aligned, shows on hover).\n *\n * The orientation of the menu popover is always set to `vertical`.\n *\n * @tagname mdc-menupopover\n * @slot default - Contains the menu items to be displayed in the popover\n */",
|
19773
|
+
"customElement": true,
|
19774
19774
|
"cssProperties": [
|
19775
19775
|
{
|
19776
19776
|
"description": "radius of the arrow border",
|
@@ -32556,6 +32556,21 @@
|
|
32556
32556
|
"attribute": "screenreader-announcer-identity",
|
32557
32557
|
"reflects": true
|
32558
32558
|
},
|
32559
|
+
{
|
32560
|
+
"kind": "field",
|
32561
|
+
"name": "placement",
|
32562
|
+
"type": {
|
32563
|
+
"text": "PopoverPlacement"
|
32564
|
+
},
|
32565
|
+
"description": "The placement of the popover.\n- **top**\n- **top-start**\n- **top-end**\n- **bottom**\n- **bottom-start**\n- **bottom-end**\n- **left**\n- **left-start**\n- **left-end**\n- **right**\n- **right-start**\n- **right-end**",
|
32566
|
+
"default": "bottom",
|
32567
|
+
"attribute": "placement",
|
32568
|
+
"reflects": true,
|
32569
|
+
"inheritedFrom": {
|
32570
|
+
"name": "Popover",
|
32571
|
+
"module": "components/popover/popover.component.js"
|
32572
|
+
}
|
32573
|
+
},
|
32559
32574
|
{
|
32560
32575
|
"kind": "method",
|
32561
32576
|
"name": "getToggleTipText",
|
@@ -33165,21 +33180,6 @@
|
|
33165
33180
|
"module": "components/popover/popover.component.js"
|
33166
33181
|
}
|
33167
33182
|
},
|
33168
|
-
{
|
33169
|
-
"kind": "field",
|
33170
|
-
"name": "placement",
|
33171
|
-
"type": {
|
33172
|
-
"text": "PopoverPlacement"
|
33173
|
-
},
|
33174
|
-
"description": "The placement of the popover.\n- **top**\n- **top-start**\n- **top-end**\n- **bottom**\n- **bottom-start**\n- **bottom-end**\n- **left**\n- **left-start**\n- **left-end**\n- **right**\n- **right-start**\n- **right-end**",
|
33175
|
-
"default": "bottom",
|
33176
|
-
"attribute": "placement",
|
33177
|
-
"reflects": true,
|
33178
|
-
"inheritedFrom": {
|
33179
|
-
"name": "Popover",
|
33180
|
-
"module": "components/popover/popover.component.js"
|
33181
|
-
}
|
33182
|
-
},
|
33183
33183
|
{
|
33184
33184
|
"kind": "field",
|
33185
33185
|
"name": "color",
|
@@ -33762,6 +33762,19 @@
|
|
33762
33762
|
"description": "Set this attribute with the id of the element in the DOM, to which announcement\nelements will be appended.\nIf an id is provided, the announcement elements will be appended to this element.\nIf id is not provided, a visually hidden div element will be created in the DOM.\n\nPlease refer to the `mdc-screenreaderannouncer` component for more details.",
|
33763
33763
|
"fieldName": "screenreaderAnnouncerIdentity"
|
33764
33764
|
},
|
33765
|
+
{
|
33766
|
+
"name": "placement",
|
33767
|
+
"type": {
|
33768
|
+
"text": "PopoverPlacement"
|
33769
|
+
},
|
33770
|
+
"description": "The placement of the popover.\n- **top**\n- **top-start**\n- **top-end**\n- **bottom**\n- **bottom-start**\n- **bottom-end**\n- **left**\n- **left-start**\n- **left-end**\n- **right**\n- **right-start**\n- **right-end**",
|
33771
|
+
"default": "bottom",
|
33772
|
+
"fieldName": "placement",
|
33773
|
+
"inheritedFrom": {
|
33774
|
+
"name": "Popover",
|
33775
|
+
"module": "src/components/popover/popover.component.ts"
|
33776
|
+
}
|
33777
|
+
},
|
33765
33778
|
{
|
33766
33779
|
"name": "should-focus-trap-wrap",
|
33767
33780
|
"type": {
|
@@ -33814,19 +33827,6 @@
|
|
33814
33827
|
"module": "src/components/popover/popover.component.ts"
|
33815
33828
|
}
|
33816
33829
|
},
|
33817
|
-
{
|
33818
|
-
"name": "placement",
|
33819
|
-
"type": {
|
33820
|
-
"text": "PopoverPlacement"
|
33821
|
-
},
|
33822
|
-
"description": "The placement of the popover.\n- **top**\n- **top-start**\n- **top-end**\n- **bottom**\n- **bottom-start**\n- **bottom-end**\n- **left**\n- **left-start**\n- **left-end**\n- **right**\n- **right-start**\n- **right-end**",
|
33823
|
-
"default": "bottom",
|
33824
|
-
"fieldName": "placement",
|
33825
|
-
"inheritedFrom": {
|
33826
|
-
"name": "Popover",
|
33827
|
-
"module": "src/components/popover/popover.component.ts"
|
33828
|
-
}
|
33829
|
-
},
|
33830
33830
|
{
|
33831
33831
|
"name": "color",
|
33832
33832
|
"type": {
|
package/dist/react/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
-
export { default as Appheader } from './appheader';
|
3
2
|
export { default as Animation } from './animation';
|
3
|
+
export { default as Appheader } from './appheader';
|
4
4
|
export { default as Avatar } from './avatar';
|
5
5
|
export { default as AvatarButton } from './avatarbutton';
|
6
6
|
export { default as Badge } from './badge';
|
package/dist/react/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
-
export { default as Appheader } from './appheader';
|
3
2
|
export { default as Animation } from './animation';
|
3
|
+
export { default as Appheader } from './appheader';
|
4
4
|
export { default as Avatar } from './avatar';
|
5
5
|
export { default as AvatarButton } from './avatarbutton';
|
6
6
|
export { default as Badge } from './badge';
|
package/package.json
CHANGED