@momentum-design/components 0.129.45 → 0.129.47

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.
Files changed (37) hide show
  1. package/dist/browser/index.js +300 -300
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/button/button.component.d.ts +9 -1
  4. package/dist/components/button/button.component.js +13 -2
  5. package/dist/components/combobox/combobox.component.d.ts +1 -1
  6. package/dist/components/combobox/combobox.component.js +2 -5
  7. package/dist/components/dialog/dialog.component.d.ts +19 -7
  8. package/dist/components/dialog/dialog.component.js +40 -14
  9. package/dist/components/menubar/menubar.component.d.ts +6 -0
  10. package/dist/components/menubar/menubar.component.js +30 -26
  11. package/dist/components/menupopover/menupopover.component.d.ts +1 -1
  12. package/dist/components/menupopover/menupopover.component.js +19 -24
  13. package/dist/components/popover/popover.component.d.ts +15 -26
  14. package/dist/components/popover/popover.component.js +46 -54
  15. package/dist/components/searchpopover/searchpopover.component.d.ts +1 -1
  16. package/dist/components/searchpopover/searchpopover.component.js +2 -2
  17. package/dist/components/select/select.component.d.ts +1 -1
  18. package/dist/components/select/select.component.js +5 -3
  19. package/dist/components/text/text.component.d.ts +11 -2
  20. package/dist/components/text/text.component.js +17 -2
  21. package/dist/components/tooltip/tooltip.component.d.ts +13 -1
  22. package/dist/components/tooltip/tooltip.component.js +40 -0
  23. package/dist/components/tooltip/tooltip.constants.d.ts +1 -0
  24. package/dist/components/tooltip/tooltip.constants.js +1 -0
  25. package/dist/custom-elements.json +187 -68
  26. package/dist/utils/controllers/DepthManager.d.ts +202 -0
  27. package/dist/utils/controllers/DepthManager.js +259 -0
  28. package/dist/utils/dom.d.ts +8 -0
  29. package/dist/utils/dom.js +7 -0
  30. package/dist/utils/mixins/BackdropMixin.js +19 -2
  31. package/dist/utils/mixins/FocusTrapMixin.d.ts +0 -0
  32. package/dist/utils/mixins/FocusTrapMixin.js +1 -0
  33. package/dist/utils/mixins/OverflowMixin.d.ts +7 -0
  34. package/dist/utils/mixins/OverflowMixin.js +23 -0
  35. package/package.json +1 -1
  36. package/dist/components/popover/popover.stack.d.ts +0 -53
  37. package/dist/components/popover/popover.stack.js +0 -66
@@ -2525,13 +2525,12 @@
2525
2525
  {
2526
2526
  "kind": "field",
2527
2527
  "name": "zIndex",
2528
+ "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - OVERLAY_BACKDROP_Z_INDEX_OFFSET`.\nThe trigger element of the backdrop will have a z-index of `zIndex - OVERLAY_TRIGGER_Z_INDEX_OFFSET`,\nto make sure that it is above the backdrop and clickable.",
2529
+ "attribute": "z-index",
2530
+ "reflects": true,
2528
2531
  "type": {
2529
2532
  "text": "number"
2530
2533
  },
2531
- "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - 2`.\nThe trigger element of the backdrop will have a z-index of `zIndex - 1`,\nto make sure that it is above the backdrop and clickable.",
2532
- "default": "1000",
2533
- "attribute": "z-index",
2534
- "reflects": true,
2535
2534
  "inheritedFrom": {
2536
2535
  "name": "Dialog",
2537
2536
  "module": "components/dialog/dialog.component.js"
@@ -2648,11 +2647,7 @@
2648
2647
  },
2649
2648
  {
2650
2649
  "name": "z-index",
2651
- "type": {
2652
- "text": "number"
2653
- },
2654
- "description": "The z-index of the dialog\n\nThe backdrop will have z-index of `zIndex - 1`",
2655
- "default": "1000",
2650
+ "description": "The effective z-index of the dialog.\n\nIf no explicit `z-index` value is provided, then it automatically calculated\nto ensure proper stacking order among multiple overlays.",
2656
2651
  "fieldName": "zIndex",
2657
2652
  "inheritedFrom": {
2658
2653
  "name": "Dialog",
@@ -5054,6 +5049,21 @@
5054
5049
  "attribute": "inverted",
5055
5050
  "reflects": true
5056
5051
  },
5052
+ {
5053
+ "kind": "method",
5054
+ "name": "isWidthOverflowing",
5055
+ "privacy": "public",
5056
+ "return": {
5057
+ "type": {
5058
+ "text": ""
5059
+ }
5060
+ },
5061
+ "description": "Determines if the content of the overflow element is overflowing its width.",
5062
+ "inheritedFrom": {
5063
+ "name": "OverflowMixin",
5064
+ "module": "utils/mixins/OverflowMixin.js"
5065
+ }
5066
+ },
5057
5067
  {
5058
5068
  "kind": "field",
5059
5069
  "name": "name",
@@ -5549,6 +5559,10 @@
5549
5559
  }
5550
5560
  ],
5551
5561
  "mixins": [
5562
+ {
5563
+ "name": "OverflowMixin",
5564
+ "module": "/src/utils/mixins/OverflowMixin"
5565
+ },
5552
5566
  {
5553
5567
  "name": "ButtonComponentMixin",
5554
5568
  "module": "/src/utils/mixins/ButtonComponentMixin"
@@ -5559,7 +5573,7 @@
5559
5573
  "module": "/src/components/buttonsimple/buttonsimple.component"
5560
5574
  },
5561
5575
  "tagName": "mdc-button",
5562
- "jsDoc": "/**\n * `mdc-button` is a component that can be configured in various ways to suit different use cases.\n *\n * ## Button configuration\n *\n * The appearance of the button depends on combination of multiple attributes.\n *\n * ### Button Types\n * \n * The type of button is inferred based on the presence of slot and/or prefix and postfix icons/slots:\n * \n * - **Pill button**: Contains text value, commonly used for call to action, tags, or filters\n * - **Pill button with icons**: Contains an icon on the left or right side of the button\n * - **Icon button**: Represented by just an icon without any text\n * \n * ### Button Variants:\n *\n * Options for button backgrounds and borders:\n * \n * - **Primary**: Solid background color\n * - **Secondary**: Transparent background with solid border\n * - **Tertiary**: No background or border, text-only appearance\n *\n * ### Button Colors\n * \n * Color options for **Primary** and **Secondary** buttons:\n *\n * - **Default**: For standard actions\n * - **Positive**: For success or confirmation actions\n * - **Negative**: For destructive or error actions\n * - **Accent**: For informational actions\n * - **Promotional**: For promotional actions\n *\n * ### Button Sizes\n * \n * Size options for different button configurations in REM:\n * \n * - **Pill button**: 40, 32, 28, 24\n * - **Icon button**: 64, 52, 40, 32, 28, 24\n * - **Tertiary icon button**: 20\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-button\n *\n * @slot - Text label of the button.\n * @slot prefix - Content to be displayed before the text label.\n * @slot postfix - Content to be displayed after the text label.\n *\n * @csspart button-text - Text label of the button, passed in default slot\n * @csspart prefix - Content before the text label, passed in `prefix` slot\n * @csspart postfix - Content after the text label, passed in `postfix` slot\n * @csspart prefix-icon - Icon element displayed before the text label when `prefix-icon` attribute is set\n * @csspart postfix-icon - Icon element displayed after the text label when `postfix-icon` attribute is set\n *\n * @cssproperty --mdc-button-height - Height for button size\n * @cssproperty --mdc-button-background - Background of the button\n * @cssproperty --mdc-button-border-color - Borer color of the button\n * @cssproperty --mdc-button-text-color - Text color of the button\n * @cssproperty --mdc-button-prefix-icon-size - Size of the prefix icon\n * @cssproperty --mdc-button-postfix-icon-size - Size of the postfix icon\n * @cssproperty --mdc-button-line-height - Line height of the button text\n */",
5576
+ "jsDoc": "/**\n * `mdc-button` is a component that can be configured in various ways to suit different use cases.\n *\n * ## Button configuration\n *\n * The appearance of the button depends on combination of multiple attributes.\n *\n * ### Button Types\n *\n * The type of button is inferred based on the presence of slot and/or prefix and postfix icons/slots:\n *\n * - **Pill button**: Contains text value, commonly used for call to action, tags, or filters\n * - **Pill button with icons**: Contains an icon on the left or right side of the button\n * - **Icon button**: Represented by just an icon without any text\n *\n * ### Button Variants:\n *\n * Options for button backgrounds and borders:\n *\n * - **Primary**: Solid background color\n * - **Secondary**: Transparent background with solid border\n * - **Tertiary**: No background or border, text-only appearance\n *\n * ### Button Colors\n *\n * Color options for **Primary** and **Secondary** buttons:\n *\n * - **Default**: For standard actions\n * - **Positive**: For success or confirmation actions\n * - **Negative**: For destructive or error actions\n * - **Accent**: For informational actions\n * - **Promotional**: For promotional actions\n *\n * ### Button Sizes\n *\n * Size options for different button configurations in REM:\n *\n * - **Pill button**: 40, 32, 28, 24\n * - **Icon button**: 64, 52, 40, 32, 28, 24\n * - **Tertiary icon button**: 20\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-button\n *\n * @slot - Text label of the button.\n * @slot prefix - Content to be displayed before the text label.\n * @slot postfix - Content to be displayed after the text label.\n *\n * @csspart button-text - Text label of the button, passed in default slot\n * @csspart prefix - Content before the text label, passed in `prefix` slot\n * @csspart postfix - Content after the text label, passed in `postfix` slot\n * @csspart prefix-icon - Icon element displayed before the text label when `prefix-icon` attribute is set\n * @csspart postfix-icon - Icon element displayed after the text label when `postfix-icon` attribute is set\n *\n * @cssproperty --mdc-button-height - Height for button size\n * @cssproperty --mdc-button-background - Background of the button\n * @cssproperty --mdc-button-border-color - Borer color of the button\n * @cssproperty --mdc-button-text-color - Text color of the button\n * @cssproperty --mdc-button-prefix-icon-size - Size of the prefix icon\n * @cssproperty --mdc-button-postfix-icon-size - Size of the postfix icon\n * @cssproperty --mdc-button-line-height - Line height of the button text\n */",
5563
5577
  "customElement": true,
5564
5578
  "events": [
5565
5579
  {
@@ -12304,7 +12318,7 @@
12304
12318
  }
12305
12319
  },
12306
12320
  {
12307
- "kind": "field",
12321
+ "kind": "method",
12308
12322
  "name": "show",
12309
12323
  "privacy": "public",
12310
12324
  "description": "Shows the popover.",
@@ -12439,7 +12453,7 @@
12439
12453
  {
12440
12454
  "kind": "field",
12441
12455
  "name": "zIndex",
12442
- "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - 2`.\nThe trigger element of the backdrop will have a z-index of `zIndex - 1`,\nto make sure that it is above the backdrop and clickable.",
12456
+ "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - OVERLAY_BACKDROP_Z_INDEX_OFFSET`.\nThe trigger element of the backdrop will have a z-index of `zIndex - OVERLAY_TRIGGER_Z_INDEX_OFFSET`,\nto make sure that it is above the backdrop and clickable.",
12443
12457
  "attribute": "z-index",
12444
12458
  "reflects": true,
12445
12459
  "type": {
@@ -12843,7 +12857,7 @@
12843
12857
  },
12844
12858
  {
12845
12859
  "name": "z-index",
12846
- "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then we calculate\nz-index based on the popover’s nesting depth (`popoverDepth`)\nto ensure proper stacking order among multiple popovers.\n\nThe formula used is: `DEFAULTS.Z_INDEX + (popoverDepth * 3)`.\nThis approach guarantees that each nested popover appears above its parent.\nEx: A root-level popover has a z-index of 1000,\n its first-level child popover will have a z-index of 1003,\n and a second-level child popover will have a z-index of 1006, and so on.\n\nWhen a value is explicitly set, it overrides the internally computed value.",
12860
+ "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then it automatically calculated\nto ensure proper stacking order among multiple overlays.",
12847
12861
  "fieldName": "zIndex",
12848
12862
  "inheritedFrom": {
12849
12863
  "name": "Popover",
@@ -13647,10 +13661,10 @@
13647
13661
  "kind": "field",
13648
13662
  "name": "popoverZIndex",
13649
13663
  "type": {
13650
- "text": "number"
13664
+ "text": "number | undefined"
13651
13665
  },
13666
+ "default": "undefined",
13652
13667
  "description": "The z-index of the popover within Combobox.\n\nOverride this to make sure this stays on top of other components.",
13653
- "default": "1000",
13654
13668
  "attribute": "popover-z-index",
13655
13669
  "reflects": true
13656
13670
  },
@@ -14175,10 +14189,10 @@
14175
14189
  {
14176
14190
  "name": "popover-z-index",
14177
14191
  "type": {
14178
- "text": "number"
14192
+ "text": "number | undefined"
14179
14193
  },
14194
+ "default": "undefined",
14180
14195
  "description": "The z-index of the popover within Combobox.\n\nOverride this to make sure this stays on top of other components.",
14181
- "default": "1000",
14182
14196
  "fieldName": "popoverZIndex"
14183
14197
  },
14184
14198
  {
@@ -14858,8 +14872,7 @@
14858
14872
  "type": {
14859
14873
  "text": "number"
14860
14874
  },
14861
- "description": "The z-index of the dialog\n\nThe backdrop will have z-index of `zIndex - 1`",
14862
- "default": "1000",
14875
+ "description": "The effective z-index of the dialog.\n\nIf no explicit `z-index` value is provided, then it automatically calculated\nto ensure proper stacking order among multiple overlays.",
14863
14876
  "attribute": "z-index",
14864
14877
  "reflects": true,
14865
14878
  "inheritedFrom": {
@@ -14925,11 +14938,7 @@
14925
14938
  },
14926
14939
  {
14927
14940
  "name": "z-index",
14928
- "type": {
14929
- "text": "number"
14930
- },
14931
- "description": "The z-index of the dialog\n\nThe backdrop will have z-index of `zIndex - 1`",
14932
- "default": "1000",
14941
+ "description": "The effective z-index of the dialog.\n\nIf no explicit `z-index` value is provided, then it automatically calculated\nto ensure proper stacking order among multiple overlays.",
14933
14942
  "fieldName": "zIndex"
14934
14943
  },
14935
14944
  {
@@ -22658,27 +22667,16 @@
22658
22667
  ]
22659
22668
  },
22660
22669
  {
22661
- "kind": "method",
22670
+ "kind": "field",
22662
22671
  "name": "handleClick",
22663
22672
  "privacy": "private",
22664
- "return": {
22665
- "type": {
22666
- "text": "void"
22667
- }
22668
- },
22673
+ "description": "Closes all other submenus on the top level.\nThis method is used to ensure that only one topolevel submenu is open at a time.\nIt finds all other menu items with submenus and closes their submenus.",
22669
22674
  "parameters": [
22670
- {
22671
- "name": "event",
22672
- "type": {
22673
- "text": "MouseEvent"
22674
- }
22675
- },
22676
22675
  {
22677
22676
  "description": "The target menu item that was clicked.",
22678
22677
  "name": "target"
22679
22678
  }
22680
- ],
22681
- "description": "Closes all other submenus on the top level.\nThis method is used to ensure that only one topolevel submenu is open at a time.\nIt finds all other menu items with submenus and closes their submenus."
22679
+ ]
22682
22680
  },
22683
22681
  {
22684
22682
  "kind": "method",
@@ -26253,7 +26251,7 @@
26253
26251
  "description": "The popover to close until."
26254
26252
  }
26255
26253
  ],
26256
- "description": "Closes all menu popovers in the stack.\nThis method is used to ensure that when a menu item is clicked,\nall other open popovers are closed, maintaining a clean user interface.\nIt iterates through the `popoverStack` and hides each popover until the stack is empty."
26254
+ "description": "Closes all menu popovers in the stack.\nThis method is used to ensure that when a menu item is clicked,\nall other open popovers are closed, maintaining a clean user interface.\nIt iterates through the overlay stack and hides each popover until the stack is empty."
26257
26255
  },
26258
26256
  {
26259
26257
  "kind": "field",
@@ -26529,7 +26527,7 @@
26529
26527
  {
26530
26528
  "name": "event",
26531
26529
  "type": {
26532
- "text": "MouseEvent"
26530
+ "text": "Event"
26533
26531
  },
26534
26532
  "description": "The mouse event that triggered the click."
26535
26533
  }
@@ -26853,7 +26851,7 @@
26853
26851
  }
26854
26852
  },
26855
26853
  {
26856
- "kind": "field",
26854
+ "kind": "method",
26857
26855
  "name": "show",
26858
26856
  "privacy": "public",
26859
26857
  "description": "Shows the popover.",
@@ -26993,7 +26991,7 @@
26993
26991
  {
26994
26992
  "kind": "field",
26995
26993
  "name": "zIndex",
26996
- "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - 2`.\nThe trigger element of the backdrop will have a z-index of `zIndex - 1`,\nto make sure that it is above the backdrop and clickable.",
26994
+ "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - OVERLAY_BACKDROP_Z_INDEX_OFFSET`.\nThe trigger element of the backdrop will have a z-index of `zIndex - OVERLAY_TRIGGER_Z_INDEX_OFFSET`,\nto make sure that it is above the backdrop and clickable.",
26997
26995
  "attribute": "z-index",
26998
26996
  "reflects": true,
26999
26997
  "type": {
@@ -27394,7 +27392,7 @@
27394
27392
  },
27395
27393
  {
27396
27394
  "name": "z-index",
27397
- "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then we calculate\nz-index based on the popover’s nesting depth (`popoverDepth`)\nto ensure proper stacking order among multiple popovers.\n\nThe formula used is: `DEFAULTS.Z_INDEX + (popoverDepth * 3)`.\nThis approach guarantees that each nested popover appears above its parent.\nEx: A root-level popover has a z-index of 1000,\n its first-level child popover will have a z-index of 1003,\n and a second-level child popover will have a z-index of 1006, and so on.\n\nWhen a value is explicitly set, it overrides the internally computed value.",
27395
+ "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then it automatically calculated\nto ensure proper stacking order among multiple overlays.",
27398
27396
  "fieldName": "zIndex",
27399
27397
  "inheritedFrom": {
27400
27398
  "name": "Popover",
@@ -32452,7 +32450,7 @@
32452
32450
  "reflects": true
32453
32451
  },
32454
32452
  {
32455
- "kind": "field",
32453
+ "kind": "method",
32456
32454
  "name": "show",
32457
32455
  "privacy": "public",
32458
32456
  "description": "Shows the popover."
@@ -32550,7 +32548,7 @@
32550
32548
  "type": {
32551
32549
  "text": "number"
32552
32550
  },
32553
- "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then we calculate\nz-index based on the popover’s nesting depth (`popoverDepth`)\nto ensure proper stacking order among multiple popovers.\n\nThe formula used is: `DEFAULTS.Z_INDEX + (popoverDepth * 3)`.\nThis approach guarantees that each nested popover appears above its parent.\nEx: A root-level popover has a z-index of 1000,\n its first-level child popover will have a z-index of 1003,\n and a second-level child popover will have a z-index of 1006, and so on.\n\nWhen a value is explicitly set, it overrides the internally computed value.",
32551
+ "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then it automatically calculated\nto ensure proper stacking order among multiple overlays.",
32554
32552
  "attribute": "z-index",
32555
32553
  "reflects": true,
32556
32554
  "inheritedFrom": {
@@ -32818,7 +32816,7 @@
32818
32816
  },
32819
32817
  {
32820
32818
  "name": "z-index",
32821
- "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then we calculate\nz-index based on the popover’s nesting depth (`popoverDepth`)\nto ensure proper stacking order among multiple popovers.\n\nThe formula used is: `DEFAULTS.Z_INDEX + (popoverDepth * 3)`.\nThis approach guarantees that each nested popover appears above its parent.\nEx: A root-level popover has a z-index of 1000,\n its first-level child popover will have a z-index of 1003,\n and a second-level child popover will have a z-index of 1006, and so on.\n\nWhen a value is explicitly set, it overrides the internally computed value.",
32819
+ "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then it automatically calculated\nto ensure proper stacking order among multiple overlays.",
32822
32820
  "fieldName": "zIndex"
32823
32821
  },
32824
32822
  {
@@ -38796,10 +38794,10 @@
38796
38794
  "kind": "field",
38797
38795
  "name": "popoverZIndex",
38798
38796
  "type": {
38799
- "text": "number"
38797
+ "text": "number | undefined"
38800
38798
  },
38799
+ "default": "undefined",
38801
38800
  "description": "The z-index of the popover within Searchpopover.\n\nOverride this to make sure this stays on top of other components.",
38802
- "default": "1000",
38803
38801
  "attribute": "popover-z-index",
38804
38802
  "reflects": true
38805
38803
  },
@@ -39268,10 +39266,10 @@
39268
39266
  {
39269
39267
  "name": "popover-z-index",
39270
39268
  "type": {
39271
- "text": "number"
39269
+ "text": "number | undefined"
39272
39270
  },
39271
+ "default": "undefined",
39273
39272
  "description": "The z-index of the popover within Searchpopover.\n\nOverride this to make sure this stays on top of other components.",
39274
- "default": "1000",
39275
39273
  "fieldName": "popoverZIndex"
39276
39274
  },
39277
39275
  {
@@ -40343,10 +40341,10 @@
40343
40341
  "kind": "field",
40344
40342
  "name": "popoverZIndex",
40345
40343
  "type": {
40346
- "text": "number"
40344
+ "text": "number | undefined"
40347
40345
  },
40346
+ "default": "undefined",
40348
40347
  "description": "The z-index of the popover within Select.\n\nOverride this to make sure this stays on top of other components.",
40349
- "default": "1000",
40350
40348
  "attribute": "popover-z-index",
40351
40349
  "reflects": true
40352
40350
  },
@@ -40821,10 +40819,10 @@
40821
40819
  {
40822
40820
  "name": "popover-z-index",
40823
40821
  "type": {
40824
- "text": "number"
40822
+ "text": "number | undefined"
40825
40823
  },
40824
+ "default": "undefined",
40826
40825
  "description": "The z-index of the popover within Select.\n\nOverride this to make sure this stays on top of other components.",
40827
- "default": "1000",
40828
40826
  "fieldName": "popoverZIndex"
40829
40827
  },
40830
40828
  {
@@ -44597,11 +44595,26 @@
44597
44595
  }
44598
44596
  ],
44599
44597
  "members": [
44598
+ {
44599
+ "kind": "method",
44600
+ "name": "isWidthOverflowing",
44601
+ "privacy": "public",
44602
+ "return": {
44603
+ "type": {
44604
+ "text": ""
44605
+ }
44606
+ },
44607
+ "description": "Determines if the content of the overflow element is overflowing its width.",
44608
+ "inheritedFrom": {
44609
+ "name": "OverflowMixin",
44610
+ "module": "utils/mixins/OverflowMixin.js"
44611
+ }
44612
+ },
44600
44613
  {
44601
44614
  "kind": "field",
44602
44615
  "name": "tagname",
44603
44616
  "type": {
44604
- "text": "TagName | undefined"
44617
+ "text": "TagName"
44605
44618
  },
44606
44619
  "privacy": "public",
44607
44620
  "description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include:\n\n- 'h1'\n- 'h2'\n- 'h3'\n- 'h4'\n- 'h5'\n- 'h6'\n- 'p'\n- 'small'\n- 'span'\n- 'div'\n\nFor instance, setting this attribute to `h2` will render the text element as an `h2` element.\nNote that the styling is determined by the `type` attribute.",
@@ -44634,12 +44647,18 @@
44634
44647
  {
44635
44648
  "name": "tagname",
44636
44649
  "type": {
44637
- "text": "TagName | undefined"
44650
+ "text": "TagName"
44638
44651
  },
44639
44652
  "description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include:\n\n- 'h1'\n- 'h2'\n- 'h3'\n- 'h4'\n- 'h5'\n- 'h6'\n- 'p'\n- 'small'\n- 'span'\n- 'div'\n\nFor instance, setting this attribute to `h2` will render the text element as an `h2` element.\nNote that the styling is determined by the `type` attribute.",
44640
44653
  "fieldName": "tagname"
44641
44654
  }
44642
44655
  ],
44656
+ "mixins": [
44657
+ {
44658
+ "name": "OverflowMixin",
44659
+ "module": "/src/utils/mixins/OverflowMixin"
44660
+ }
44661
+ ],
44643
44662
  "superclass": {
44644
44663
  "name": "Component",
44645
44664
  "module": "/src/models"
@@ -48101,7 +48120,7 @@
48101
48120
  "reflects": true
48102
48121
  },
48103
48122
  {
48104
- "kind": "field",
48123
+ "kind": "method",
48105
48124
  "name": "show",
48106
48125
  "privacy": "public",
48107
48126
  "description": "Shows the popover.",
@@ -48239,7 +48258,7 @@
48239
48258
  "type": {
48240
48259
  "text": "number"
48241
48260
  },
48242
- "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - 2`.\nThe trigger element of the backdrop will have a z-index of `zIndex - 1`,\nto make sure that it is above the backdrop and clickable.",
48261
+ "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - OVERLAY_BACKDROP_Z_INDEX_OFFSET`.\nThe trigger element of the backdrop will have a z-index of `zIndex - OVERLAY_TRIGGER_Z_INDEX_OFFSET`,\nto make sure that it is above the backdrop and clickable.",
48243
48262
  "attribute": "z-index",
48244
48263
  "reflects": true,
48245
48264
  "inheritedFrom": {
@@ -48635,7 +48654,7 @@
48635
48654
  },
48636
48655
  {
48637
48656
  "name": "z-index",
48638
- "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then we calculate\nz-index based on the popover’s nesting depth (`popoverDepth`)\nto ensure proper stacking order among multiple popovers.\n\nThe formula used is: `DEFAULTS.Z_INDEX + (popoverDepth * 3)`.\nThis approach guarantees that each nested popover appears above its parent.\nEx: A root-level popover has a z-index of 1000,\n its first-level child popover will have a z-index of 1003,\n and a second-level child popover will have a z-index of 1006, and so on.\n\nWhen a value is explicitly set, it overrides the internally computed value.",
48657
+ "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then it automatically calculated\nto ensure proper stacking order among multiple overlays.",
48639
48658
  "fieldName": "zIndex",
48640
48659
  "inheritedFrom": {
48641
48660
  "name": "Popover",
@@ -49372,15 +49391,13 @@
49372
49391
  "name": "oldValue",
49373
49392
  "type": {
49374
49393
  "text": "boolean"
49375
- },
49376
- "description": "The old value of the visible property."
49394
+ }
49377
49395
  },
49378
49396
  {
49379
49397
  "name": "newValue",
49380
49398
  "type": {
49381
49399
  "text": "boolean"
49382
- },
49383
- "description": "The new value of the visible property."
49400
+ }
49384
49401
  }
49385
49402
  ],
49386
49403
  "description": "Handles the popover visibility change and position the popover.\nHandles the exit event to close the popover.",
@@ -49429,6 +49446,17 @@
49429
49446
  },
49430
49447
  "description": "Updates the tooltip id if it is empty."
49431
49448
  },
49449
+ {
49450
+ "kind": "field",
49451
+ "name": "onlyShowWhenTriggerOverflows",
49452
+ "type": {
49453
+ "text": "boolean"
49454
+ },
49455
+ "description": "If true, the tooltip will only be shown when the trigger element's content is overflowing on the x-axis.\n\nSupports the following components:\n- mdc-button\n- mdc-text",
49456
+ "default": "false",
49457
+ "attribute": "only-show-when-trigger-overflows",
49458
+ "reflects": true
49459
+ },
49432
49460
  {
49433
49461
  "kind": "method",
49434
49462
  "name": "onPlacementUpdated",
@@ -49453,7 +49481,7 @@
49453
49481
  {
49454
49482
  "name": "changedProperties",
49455
49483
  "type": {
49456
- "text": "PropertyValues"
49484
+ "text": "PropertyValues<this>"
49457
49485
  },
49458
49486
  "description": "The changed properties."
49459
49487
  }
@@ -49541,7 +49569,7 @@
49541
49569
  "description": "Sets the type attribute for the tooltip component.\nIf the provided type is not included in the TOOLTIP_TYPES,\nit defaults to the value specified in DEFAULTS.TOOLTIP_TYPE."
49542
49570
  },
49543
49571
  {
49544
- "kind": "field",
49572
+ "kind": "method",
49545
49573
  "name": "show",
49546
49574
  "privacy": "public",
49547
49575
  "description": "Shows the popover.",
@@ -49690,7 +49718,7 @@
49690
49718
  "type": {
49691
49719
  "text": "number"
49692
49720
  },
49693
- "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - 2`.\nThe trigger element of the backdrop will have a z-index of `zIndex - 1`,\nto make sure that it is above the backdrop and clickable.",
49721
+ "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - OVERLAY_BACKDROP_Z_INDEX_OFFSET`.\nThe trigger element of the backdrop will have a z-index of `zIndex - OVERLAY_TRIGGER_Z_INDEX_OFFSET`,\nto make sure that it is above the backdrop and clickable.",
49694
49722
  "attribute": "z-index",
49695
49723
  "reflects": true,
49696
49724
  "inheritedFrom": {
@@ -49747,6 +49775,15 @@
49747
49775
  "default": "'description'",
49748
49776
  "fieldName": "tooltipType"
49749
49777
  },
49778
+ {
49779
+ "name": "only-show-when-trigger-overflows",
49780
+ "type": {
49781
+ "text": "boolean"
49782
+ },
49783
+ "description": "If true, the tooltip will only be shown when the trigger element's content is overflowing on the x-axis.\n\nSupports the following components:\n- mdc-button\n- mdc-text",
49784
+ "default": "false",
49785
+ "fieldName": "onlyShowWhenTriggerOverflows"
49786
+ },
49750
49787
  {
49751
49788
  "name": "id",
49752
49789
  "type": {
@@ -50087,7 +50124,7 @@
50087
50124
  },
50088
50125
  {
50089
50126
  "name": "z-index",
50090
- "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then we calculate\nz-index based on the popover’s nesting depth (`popoverDepth`)\nto ensure proper stacking order among multiple popovers.\n\nThe formula used is: `DEFAULTS.Z_INDEX + (popoverDepth * 3)`.\nThis approach guarantees that each nested popover appears above its parent.\nEx: A root-level popover has a z-index of 1000,\n its first-level child popover will have a z-index of 1003,\n and a second-level child popover will have a z-index of 1006, and so on.\n\nWhen a value is explicitly set, it overrides the internally computed value.",
50127
+ "description": "The effective z-index of the popover.\n\nIf no explicit `z-index` value is provided, then it automatically calculated\nto ensure proper stacking order among multiple overlays.",
50091
50128
  "fieldName": "zIndex",
50092
50129
  "inheritedFrom": {
50093
50130
  "name": "Popover",
@@ -51408,7 +51445,7 @@
51408
51445
  "type": {
51409
51446
  "text": "number"
51410
51447
  },
51411
- "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - 2`.\nThe trigger element of the backdrop will have a z-index of `zIndex - 1`,\nto make sure that it is above the backdrop and clickable."
51448
+ "description": "IMPLEMENT THIS IN YOUR COMPONENT.\n\nThe z-index of the component where the backdrop will be attached to.\n\nThe backdrop itself will have a z-index of `zIndex - OVERLAY_BACKDROP_Z_INDEX_OFFSET`.\nThe trigger element of the backdrop will have a z-index of `zIndex - OVERLAY_TRIGGER_Z_INDEX_OFFSET`,\nto make sure that it is above the backdrop and clickable."
51412
51449
  }
51413
51450
  ],
51414
51451
  "parameters": [
@@ -52335,6 +52372,12 @@
52335
52372
  }
52336
52373
  ]
52337
52374
  },
52375
+ {
52376
+ "kind": "javascript-module",
52377
+ "path": "utils/mixins/FocusTrapMixin.js",
52378
+ "declarations": [],
52379
+ "exports": []
52380
+ },
52338
52381
  {
52339
52382
  "kind": "javascript-module",
52340
52383
  "path": "utils/mixins/FooterMixin.js",
@@ -53118,6 +53161,82 @@
53118
53161
  }
53119
53162
  ]
53120
53163
  },
53164
+ {
53165
+ "kind": "javascript-module",
53166
+ "path": "utils/mixins/OverflowMixin.js",
53167
+ "declarations": [
53168
+ {
53169
+ "kind": "mixin",
53170
+ "description": "",
53171
+ "name": "OverflowMixin",
53172
+ "members": [
53173
+ {
53174
+ "kind": "method",
53175
+ "name": "isWidthOverflowing",
53176
+ "privacy": "public",
53177
+ "return": {
53178
+ "type": {
53179
+ "text": ""
53180
+ }
53181
+ },
53182
+ "description": "Determines if the content of the overflow element is overflowing its width."
53183
+ }
53184
+ ],
53185
+ "parameters": [
53186
+ {
53187
+ "name": "superClass",
53188
+ "type": {
53189
+ "text": "T"
53190
+ }
53191
+ }
53192
+ ]
53193
+ },
53194
+ {
53195
+ "kind": "class",
53196
+ "description": "",
53197
+ "name": "OverflowMixinInterface",
53198
+ "members": [
53199
+ {
53200
+ "kind": "method",
53201
+ "name": "isWidthOverflowing",
53202
+ "privacy": "public",
53203
+ "return": {
53204
+ "type": {
53205
+ "text": "boolean"
53206
+ }
53207
+ }
53208
+ },
53209
+ {
53210
+ "kind": "field",
53211
+ "name": "overflowElement",
53212
+ "type": {
53213
+ "text": "HTMLElement"
53214
+ },
53215
+ "privacy": "protected",
53216
+ "readonly": true
53217
+ }
53218
+ ]
53219
+ }
53220
+ ],
53221
+ "exports": [
53222
+ {
53223
+ "kind": "js",
53224
+ "name": "OverflowMixin",
53225
+ "declaration": {
53226
+ "name": "OverflowMixin",
53227
+ "module": "utils/mixins/OverflowMixin.js"
53228
+ }
53229
+ },
53230
+ {
53231
+ "kind": "js",
53232
+ "name": "OverflowMixinInterface",
53233
+ "declaration": {
53234
+ "name": "OverflowMixinInterface",
53235
+ "module": "utils/mixins/OverflowMixin.js"
53236
+ }
53237
+ }
53238
+ ]
53239
+ },
53121
53240
  {
53122
53241
  "kind": "javascript-module",
53123
53242
  "path": "utils/mixins/PreventScrollMixin.js",