@momentum-design/components 0.107.0 → 0.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +101 -101
- package/dist/browser/index.js.map +2 -2
- package/dist/components/menupopover/menupopover.component.js +0 -2
- package/dist/components/popover/popover.component.d.ts +12 -9
- package/dist/components/popover/popover.component.js +12 -23
- package/dist/components/popover/popover.constants.d.ts +0 -1
- package/dist/components/popover/popover.constants.js +0 -1
- package/dist/components/popover/popover.utils.d.ts +0 -4
- package/dist/components/popover/popover.utils.js +4 -18
- package/dist/custom-elements.json +161 -293
- package/dist/react/brandvisual/index.d.ts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/popover/index.d.ts +4 -0
- package/dist/react/popover/index.js +4 -0
- package/package.json +1 -1
@@ -477,6 +477,157 @@
|
|
477
477
|
}
|
478
478
|
]
|
479
479
|
},
|
480
|
+
{
|
481
|
+
"kind": "javascript-module",
|
482
|
+
"path": "components/accordiongroup/accordiongroup.component.js",
|
483
|
+
"declarations": [
|
484
|
+
{
|
485
|
+
"kind": "class",
|
486
|
+
"description": "An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\nEach heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\nAccordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n\n- Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n\nThere are three types of variants:\n- Stacked - Each accordion will have a gap of 1.5rem (24px).\n- Borderless - Each accordion will not have any border and the group will also not have any border.\n- Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n\nThere are two types of sizes:\n- Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n- Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n\nThe variant and size will be applied to all accordions inside this accordion group.\nTo show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.",
|
487
|
+
"name": "AccordionGroup",
|
488
|
+
"cssProperties": [
|
489
|
+
{
|
490
|
+
"description": "The border color of the entire accordiongroup",
|
491
|
+
"name": "--mdc-accordiongroup-border-color"
|
492
|
+
}
|
493
|
+
],
|
494
|
+
"slots": [
|
495
|
+
{
|
496
|
+
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
497
|
+
"name": "default"
|
498
|
+
}
|
499
|
+
],
|
500
|
+
"members": [
|
501
|
+
{
|
502
|
+
"kind": "field",
|
503
|
+
"name": "size",
|
504
|
+
"type": {
|
505
|
+
"text": "Size"
|
506
|
+
},
|
507
|
+
"description": "The size of the accordion item.",
|
508
|
+
"default": "'small'",
|
509
|
+
"attribute": "size",
|
510
|
+
"reflects": true
|
511
|
+
},
|
512
|
+
{
|
513
|
+
"kind": "field",
|
514
|
+
"name": "variant",
|
515
|
+
"type": {
|
516
|
+
"text": "Variant"
|
517
|
+
},
|
518
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
519
|
+
"default": "'stacked'",
|
520
|
+
"attribute": "variant",
|
521
|
+
"reflects": true
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"kind": "field",
|
525
|
+
"name": "allowMultiple",
|
526
|
+
"type": {
|
527
|
+
"text": "boolean"
|
528
|
+
},
|
529
|
+
"default": "false",
|
530
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
531
|
+
"attribute": "allow-multiple",
|
532
|
+
"reflects": true
|
533
|
+
},
|
534
|
+
{
|
535
|
+
"kind": "method",
|
536
|
+
"name": "handleAccordionExpanded",
|
537
|
+
"privacy": "private",
|
538
|
+
"return": {
|
539
|
+
"type": {
|
540
|
+
"text": "void"
|
541
|
+
}
|
542
|
+
},
|
543
|
+
"parameters": [
|
544
|
+
{
|
545
|
+
"name": "event",
|
546
|
+
"type": {
|
547
|
+
"text": "Event"
|
548
|
+
},
|
549
|
+
"description": "The event object from the 'shown' event."
|
550
|
+
}
|
551
|
+
],
|
552
|
+
"description": "Handles the 'shown' event for accordion items.\nIf `allowMultiple` is false, ensures that only one accordion item\nremains expanded by collapsing all other expanded items when a new item is expanded."
|
553
|
+
},
|
554
|
+
{
|
555
|
+
"kind": "method",
|
556
|
+
"name": "setChildrenAccordionAttributes",
|
557
|
+
"privacy": "private",
|
558
|
+
"return": {
|
559
|
+
"type": {
|
560
|
+
"text": "void"
|
561
|
+
}
|
562
|
+
},
|
563
|
+
"parameters": [
|
564
|
+
{
|
565
|
+
"name": "attributeName",
|
566
|
+
"type": {
|
567
|
+
"text": "string"
|
568
|
+
},
|
569
|
+
"description": "The name of the attribute to set."
|
570
|
+
},
|
571
|
+
{
|
572
|
+
"name": "attributeValue",
|
573
|
+
"type": {
|
574
|
+
"text": "string"
|
575
|
+
},
|
576
|
+
"description": "The value to set the attribute to."
|
577
|
+
}
|
578
|
+
],
|
579
|
+
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
580
|
+
}
|
581
|
+
],
|
582
|
+
"attributes": [
|
583
|
+
{
|
584
|
+
"name": "size",
|
585
|
+
"type": {
|
586
|
+
"text": "Size"
|
587
|
+
},
|
588
|
+
"description": "The size of the accordion item.",
|
589
|
+
"default": "'small'",
|
590
|
+
"fieldName": "size"
|
591
|
+
},
|
592
|
+
{
|
593
|
+
"name": "variant",
|
594
|
+
"type": {
|
595
|
+
"text": "Variant"
|
596
|
+
},
|
597
|
+
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
598
|
+
"default": "'stacked'",
|
599
|
+
"fieldName": "variant"
|
600
|
+
},
|
601
|
+
{
|
602
|
+
"name": "allow-multiple",
|
603
|
+
"type": {
|
604
|
+
"text": "boolean"
|
605
|
+
},
|
606
|
+
"default": "false",
|
607
|
+
"description": "If true, multiple accordion items can be visible at the same time.",
|
608
|
+
"fieldName": "allowMultiple"
|
609
|
+
}
|
610
|
+
],
|
611
|
+
"superclass": {
|
612
|
+
"name": "Component",
|
613
|
+
"module": "/src/models"
|
614
|
+
},
|
615
|
+
"tagName": "mdc-accordiongroup",
|
616
|
+
"jsDoc": "/**\n * An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\n * Each heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\n * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n *\n * - Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n *\n * There are three types of variants:\n * - Stacked - Each accordion will have a gap of 1.5rem (24px).\n * - Borderless - Each accordion will not have any border and the group will also not have any border.\n * - Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n *\n * There are two types of sizes:\n * - Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n * - Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n *\n * The variant and size will be applied to all accordions inside this accordion group.\n * To show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.\n *\n * @tagname mdc-accordiongroup\n *\n * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.\n *\n * @cssproperty --mdc-accordiongroup-border-color - The border color of the entire accordiongroup\n */",
|
617
|
+
"customElement": true
|
618
|
+
}
|
619
|
+
],
|
620
|
+
"exports": [
|
621
|
+
{
|
622
|
+
"kind": "js",
|
623
|
+
"name": "default",
|
624
|
+
"declaration": {
|
625
|
+
"name": "AccordionGroup",
|
626
|
+
"module": "components/accordiongroup/accordiongroup.component.js"
|
627
|
+
}
|
628
|
+
}
|
629
|
+
]
|
630
|
+
},
|
480
631
|
{
|
481
632
|
"kind": "javascript-module",
|
482
633
|
"path": "components/accordionbutton/accordionbutton.component.js",
|
@@ -817,157 +968,6 @@
|
|
817
968
|
}
|
818
969
|
]
|
819
970
|
},
|
820
|
-
{
|
821
|
-
"kind": "javascript-module",
|
822
|
-
"path": "components/accordiongroup/accordiongroup.component.js",
|
823
|
-
"declarations": [
|
824
|
-
{
|
825
|
-
"kind": "class",
|
826
|
-
"description": "An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\nEach heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\nAccordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n\n- Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n\nThere are three types of variants:\n- Stacked - Each accordion will have a gap of 1.5rem (24px).\n- Borderless - Each accordion will not have any border and the group will also not have any border.\n- Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n\nThere are two types of sizes:\n- Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n- Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n\nThe variant and size will be applied to all accordions inside this accordion group.\nTo show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n\nIf you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n\nIf the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.",
|
827
|
-
"name": "AccordionGroup",
|
828
|
-
"cssProperties": [
|
829
|
-
{
|
830
|
-
"description": "The border color of the entire accordiongroup",
|
831
|
-
"name": "--mdc-accordiongroup-border-color"
|
832
|
-
}
|
833
|
-
],
|
834
|
-
"slots": [
|
835
|
-
{
|
836
|
-
"description": "The default slot can contain the `accordion` or `accordionbutton` components.",
|
837
|
-
"name": "default"
|
838
|
-
}
|
839
|
-
],
|
840
|
-
"members": [
|
841
|
-
{
|
842
|
-
"kind": "field",
|
843
|
-
"name": "size",
|
844
|
-
"type": {
|
845
|
-
"text": "Size"
|
846
|
-
},
|
847
|
-
"description": "The size of the accordion item.",
|
848
|
-
"default": "'small'",
|
849
|
-
"attribute": "size",
|
850
|
-
"reflects": true
|
851
|
-
},
|
852
|
-
{
|
853
|
-
"kind": "field",
|
854
|
-
"name": "variant",
|
855
|
-
"type": {
|
856
|
-
"text": "Variant"
|
857
|
-
},
|
858
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
859
|
-
"default": "'stacked'",
|
860
|
-
"attribute": "variant",
|
861
|
-
"reflects": true
|
862
|
-
},
|
863
|
-
{
|
864
|
-
"kind": "field",
|
865
|
-
"name": "allowMultiple",
|
866
|
-
"type": {
|
867
|
-
"text": "boolean"
|
868
|
-
},
|
869
|
-
"default": "false",
|
870
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
871
|
-
"attribute": "allow-multiple",
|
872
|
-
"reflects": true
|
873
|
-
},
|
874
|
-
{
|
875
|
-
"kind": "method",
|
876
|
-
"name": "handleAccordionExpanded",
|
877
|
-
"privacy": "private",
|
878
|
-
"return": {
|
879
|
-
"type": {
|
880
|
-
"text": "void"
|
881
|
-
}
|
882
|
-
},
|
883
|
-
"parameters": [
|
884
|
-
{
|
885
|
-
"name": "event",
|
886
|
-
"type": {
|
887
|
-
"text": "Event"
|
888
|
-
},
|
889
|
-
"description": "The event object from the 'shown' event."
|
890
|
-
}
|
891
|
-
],
|
892
|
-
"description": "Handles the 'shown' event for accordion items.\nIf `allowMultiple` is false, ensures that only one accordion item\nremains expanded by collapsing all other expanded items when a new item is expanded."
|
893
|
-
},
|
894
|
-
{
|
895
|
-
"kind": "method",
|
896
|
-
"name": "setChildrenAccordionAttributes",
|
897
|
-
"privacy": "private",
|
898
|
-
"return": {
|
899
|
-
"type": {
|
900
|
-
"text": "void"
|
901
|
-
}
|
902
|
-
},
|
903
|
-
"parameters": [
|
904
|
-
{
|
905
|
-
"name": "attributeName",
|
906
|
-
"type": {
|
907
|
-
"text": "string"
|
908
|
-
},
|
909
|
-
"description": "The name of the attribute to set."
|
910
|
-
},
|
911
|
-
{
|
912
|
-
"name": "attributeValue",
|
913
|
-
"type": {
|
914
|
-
"text": "string"
|
915
|
-
},
|
916
|
-
"description": "The value to set the attribute to."
|
917
|
-
}
|
918
|
-
],
|
919
|
-
"description": "Sets the given attribute on all child accordion or accordionbutton components."
|
920
|
-
}
|
921
|
-
],
|
922
|
-
"attributes": [
|
923
|
-
{
|
924
|
-
"name": "size",
|
925
|
-
"type": {
|
926
|
-
"text": "Size"
|
927
|
-
},
|
928
|
-
"description": "The size of the accordion item.",
|
929
|
-
"default": "'small'",
|
930
|
-
"fieldName": "size"
|
931
|
-
},
|
932
|
-
{
|
933
|
-
"name": "variant",
|
934
|
-
"type": {
|
935
|
-
"text": "Variant"
|
936
|
-
},
|
937
|
-
"description": "The variant of the accordion item. Based on the variant, the styling of the accordion gets changed.",
|
938
|
-
"default": "'stacked'",
|
939
|
-
"fieldName": "variant"
|
940
|
-
},
|
941
|
-
{
|
942
|
-
"name": "allow-multiple",
|
943
|
-
"type": {
|
944
|
-
"text": "boolean"
|
945
|
-
},
|
946
|
-
"default": "false",
|
947
|
-
"description": "If true, multiple accordion items can be visible at the same time.",
|
948
|
-
"fieldName": "allowMultiple"
|
949
|
-
}
|
950
|
-
],
|
951
|
-
"superclass": {
|
952
|
-
"name": "Component",
|
953
|
-
"module": "/src/models"
|
954
|
-
},
|
955
|
-
"tagName": "mdc-accordiongroup",
|
956
|
-
"jsDoc": "/**\n * An accordion group is a vertically stacked set of interactive headings that each contain a header and body content.\n * Each heading of the accordion acts as a control that enable users to expand or hide their associated body sections of content.\n * Accordions are commonly used to reduce the need to scroll when presenting multiple sections of content on a single page.\n *\n * - Default Slot: The accordion group component only accepts, `accordion` and `accordionbutton` components as the children, rest are ignored.\n *\n * There are three types of variants:\n * - Stacked - Each accordion will have a gap of 1.5rem (24px).\n * - Borderless - Each accordion will not have any border and the group will also not have any border.\n * - Contained - Each accordion will have no gap in between them and the border of the entire accordiongroup will be continuous.\n *\n * There are two types of sizes:\n * - Small: Small size has a padding of 1rem (16px) for both heading and body sections.\n * - Large: Large size has a padding of 1.5rem (24px) for both heading and body sections.\n *\n * The variant and size will be applied to all accordions inside this accordion group.\n * To show/expand more than one accordion at any given time, then set `allow-multiple` to `true`. By default, it's `false`.\n *\n * If you don't need any controls on your accordion heading, then it's advised to use `accordionbutton` component.\n *\n * If the first accordion of the accordion group is expanded by default, then the screen reader might loose focus when toggling the visibilty of the first accordion.\n *\n * @tagname mdc-accordiongroup\n *\n * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.\n *\n * @cssproperty --mdc-accordiongroup-border-color - The border color of the entire accordiongroup\n */",
|
957
|
-
"customElement": true
|
958
|
-
}
|
959
|
-
],
|
960
|
-
"exports": [
|
961
|
-
{
|
962
|
-
"kind": "js",
|
963
|
-
"name": "default",
|
964
|
-
"declaration": {
|
965
|
-
"name": "AccordionGroup",
|
966
|
-
"module": "components/accordiongroup/accordiongroup.component.js"
|
967
|
-
}
|
968
|
-
}
|
969
|
-
]
|
970
|
-
},
|
971
971
|
{
|
972
972
|
"kind": "javascript-module",
|
973
973
|
"path": "components/alertchip/alertchip.component.js",
|
@@ -10528,21 +10528,6 @@
|
|
10528
10528
|
"module": "components/popover/popover.component.js"
|
10529
10529
|
}
|
10530
10530
|
},
|
10531
|
-
{
|
10532
|
-
"kind": "field",
|
10533
|
-
"name": "disableAriaHasPopup",
|
10534
|
-
"type": {
|
10535
|
-
"text": "boolean"
|
10536
|
-
},
|
10537
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
10538
|
-
"default": "false",
|
10539
|
-
"attribute": "disable-aria-haspopup",
|
10540
|
-
"reflects": true,
|
10541
|
-
"inheritedFrom": {
|
10542
|
-
"name": "Popover",
|
10543
|
-
"module": "components/popover/popover.component.js"
|
10544
|
-
}
|
10545
|
-
},
|
10546
10531
|
{
|
10547
10532
|
"kind": "field",
|
10548
10533
|
"name": "keepConnectedTooltipClosed",
|
@@ -11334,19 +11319,6 @@
|
|
11334
11319
|
"module": "src/components/popover/popover.component.ts"
|
11335
11320
|
}
|
11336
11321
|
},
|
11337
|
-
{
|
11338
|
-
"name": "disable-aria-haspopup",
|
11339
|
-
"type": {
|
11340
|
-
"text": "boolean"
|
11341
|
-
},
|
11342
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
11343
|
-
"default": "false",
|
11344
|
-
"fieldName": "disableAriaHasPopup",
|
11345
|
-
"inheritedFrom": {
|
11346
|
-
"name": "Popover",
|
11347
|
-
"module": "src/components/popover/popover.component.ts"
|
11348
|
-
}
|
11349
|
-
},
|
11350
11322
|
{
|
11351
11323
|
"name": "keep-connected-tooltip-closed",
|
11352
11324
|
"type": {
|
@@ -22502,7 +22474,7 @@
|
|
22502
22474
|
"type": {
|
22503
22475
|
"text": "boolean"
|
22504
22476
|
},
|
22505
|
-
"description": "Disable setting the aria-expanded attribute on trigger element.\
|
22477
|
+
"description": "Disable setting the `aria-expanded` attribute on trigger element.\n\nNote, when `disable-aria-expanded` is true\n - when its value change after first update to\n - `true`: popover will not remove the `aria-expanded` to avoid conflicts when there are more than one popover\n registered to the same trigger\n - `false`: check `aria-expanded` value and update it if necessary.\n - aria-haspopup will be disabled as well",
|
22506
22478
|
"default": "false",
|
22507
22479
|
"attribute": "disable-aria-expanded",
|
22508
22480
|
"reflects": true,
|
@@ -22511,21 +22483,6 @@
|
|
22511
22483
|
"module": "components/popover/popover.component.js"
|
22512
22484
|
}
|
22513
22485
|
},
|
22514
|
-
{
|
22515
|
-
"kind": "field",
|
22516
|
-
"name": "disableAriaHasPopup",
|
22517
|
-
"type": {
|
22518
|
-
"text": "boolean"
|
22519
|
-
},
|
22520
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
22521
|
-
"default": "false",
|
22522
|
-
"attribute": "disable-aria-haspopup",
|
22523
|
-
"reflects": true,
|
22524
|
-
"inheritedFrom": {
|
22525
|
-
"name": "Popover",
|
22526
|
-
"module": "components/popover/popover.component.js"
|
22527
|
-
}
|
22528
|
-
},
|
22529
22486
|
{
|
22530
22487
|
"kind": "field",
|
22531
22488
|
"name": "keepConnectedTooltipClosed",
|
@@ -23267,7 +23224,7 @@
|
|
23267
23224
|
"type": {
|
23268
23225
|
"text": "boolean"
|
23269
23226
|
},
|
23270
|
-
"description": "Disable setting the aria-expanded attribute on trigger element.\
|
23227
|
+
"description": "Disable setting the `aria-expanded` attribute on trigger element.\n\nNote, when `disable-aria-expanded` is true\n - when its value change after first update to\n - `true`: popover will not remove the `aria-expanded` to avoid conflicts when there are more than one popover\n registered to the same trigger\n - `false`: check `aria-expanded` value and update it if necessary.\n - aria-haspopup will be disabled as well",
|
23271
23228
|
"default": "false",
|
23272
23229
|
"fieldName": "disableAriaExpanded",
|
23273
23230
|
"inheritedFrom": {
|
@@ -23275,19 +23232,6 @@
|
|
23275
23232
|
"module": "src/components/popover/popover.component.ts"
|
23276
23233
|
}
|
23277
23234
|
},
|
23278
|
-
{
|
23279
|
-
"name": "disable-aria-haspopup",
|
23280
|
-
"type": {
|
23281
|
-
"text": "boolean"
|
23282
|
-
},
|
23283
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
23284
|
-
"default": "false",
|
23285
|
-
"fieldName": "disableAriaHasPopup",
|
23286
|
-
"inheritedFrom": {
|
23287
|
-
"name": "Popover",
|
23288
|
-
"module": "src/components/popover/popover.component.ts"
|
23289
|
-
}
|
23290
|
-
},
|
23291
23235
|
{
|
23292
23236
|
"name": "keep-connected-tooltip-closed",
|
23293
23237
|
"type": {
|
@@ -26966,7 +26910,7 @@
|
|
26966
26910
|
"declarations": [
|
26967
26911
|
{
|
26968
26912
|
"kind": "class",
|
26969
|
-
"description": "Popover component is a lightweight floating UI element that displays additional content when triggered.\nIt can be used for tooltips, dropdowns, or contextual menus.\nThe popover automatically positions itself based on available space and\nsupports dynamic height adjustments with scrollable content when needed
|
26913
|
+
"description": "Popover component is a lightweight floating UI element that displays additional content when triggered.\nIt can be used for tooltips, dropdowns, or contextual menus.\nThe popover automatically positions itself based on available space and\nsupports dynamic height adjustments with scrollable content when needed。\n\nNote:\n - A component (button) can trigger more than one popover, but only one of them should change the\n aria-expanded and aria-haspopup, the rest of the popovers must have `disable-aria-expanded` attribute.",
|
26970
26914
|
"name": "Popover",
|
26971
26915
|
"cssProperties": [
|
26972
26916
|
{
|
@@ -27400,22 +27344,11 @@
|
|
27400
27344
|
"type": {
|
27401
27345
|
"text": "boolean"
|
27402
27346
|
},
|
27403
|
-
"description": "Disable setting the aria-expanded attribute on trigger element.\
|
27347
|
+
"description": "Disable setting the `aria-expanded` attribute on trigger element.\n\nNote, when `disable-aria-expanded` is true\n - when its value change after first update to\n - `true`: popover will not remove the `aria-expanded` to avoid conflicts when there are more than one popover\n registered to the same trigger\n - `false`: check `aria-expanded` value and update it if necessary.\n - aria-haspopup will be disabled as well",
|
27404
27348
|
"default": "false",
|
27405
27349
|
"attribute": "disable-aria-expanded",
|
27406
27350
|
"reflects": true
|
27407
27351
|
},
|
27408
|
-
{
|
27409
|
-
"kind": "field",
|
27410
|
-
"name": "disableAriaHasPopup",
|
27411
|
-
"type": {
|
27412
|
-
"text": "boolean"
|
27413
|
-
},
|
27414
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
27415
|
-
"default": "false",
|
27416
|
-
"attribute": "disable-aria-haspopup",
|
27417
|
-
"reflects": true
|
27418
|
-
},
|
27419
27352
|
{
|
27420
27353
|
"kind": "field",
|
27421
27354
|
"name": "keepConnectedTooltipClosed",
|
@@ -28452,19 +28385,10 @@
|
|
28452
28385
|
"type": {
|
28453
28386
|
"text": "boolean"
|
28454
28387
|
},
|
28455
|
-
"description": "Disable setting the aria-expanded attribute on trigger element.\
|
28388
|
+
"description": "Disable setting the `aria-expanded` attribute on trigger element.\n\nNote, when `disable-aria-expanded` is true\n - when its value change after first update to\n - `true`: popover will not remove the `aria-expanded` to avoid conflicts when there are more than one popover\n registered to the same trigger\n - `false`: check `aria-expanded` value and update it if necessary.\n - aria-haspopup will be disabled as well",
|
28456
28389
|
"default": "false",
|
28457
28390
|
"fieldName": "disableAriaExpanded"
|
28458
28391
|
},
|
28459
|
-
{
|
28460
|
-
"name": "disable-aria-haspopup",
|
28461
|
-
"type": {
|
28462
|
-
"text": "boolean"
|
28463
|
-
},
|
28464
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
28465
|
-
"default": "false",
|
28466
|
-
"fieldName": "disableAriaHasPopup"
|
28467
|
-
},
|
28468
28392
|
{
|
28469
28393
|
"name": "keep-connected-tooltip-closed",
|
28470
28394
|
"type": {
|
@@ -28506,7 +28430,7 @@
|
|
28506
28430
|
"module": "/src/models"
|
28507
28431
|
},
|
28508
28432
|
"tagName": "mdc-popover",
|
28509
|
-
"jsDoc": "/**\n * Popover component is a lightweight floating UI element that displays additional content when triggered.\n * It can be used for tooltips, dropdowns, or contextual menus.\n * The popover automatically positions itself based on available space and\n * supports dynamic height adjustments with scrollable content when needed。\n *\n * @dependency mdc-button\n *\n * @tagname mdc-popover\n *\n *\n * @event shown - (React: onShown) This event is dispatched when the popover is shown\n * @event hidden - (React: onHidden) This event is dispatched when the popover is hidden\n * @event created - (React: onCreated) This event is dispatched when the popover is created (added to the DOM)\n * @event destroyed - (React: onDestroyed) This event is dispatched when the popover is destroyed (removed from the DOM)\n *\n * @cssproperty --mdc-popover-arrow-border-radius - radius of the arrow border\n * @cssproperty --mdc-popover-arrow-border - border of the arrow\n * @cssproperty --mdc-popover-primary-background-color - primary background color of the popover\n * @cssproperty --mdc-popover-border-color - border color of the popover\n * @cssproperty --mdc-popover-inverted-background-color - inverted background color of the popover\n * @cssproperty --mdc-popover-inverted-border-color - inverted border color of the popover\n * @cssproperty --mdc-popover-inverted-text-color - inverted text color of the popover\n * @cssproperty --mdc-popover-elevation-3 - elevation of the popover\n * @cssproperty --mdc-popover-max-width - max width of the popover\n * @cssproperty --mdc-popover-max-height - max height of the popover\n *\n * @slot - Default slot for the popover content\n *\n */",
|
28433
|
+
"jsDoc": "/**\n * Popover component is a lightweight floating UI element that displays additional content when triggered.\n * It can be used for tooltips, dropdowns, or contextual menus.\n * The popover automatically positions itself based on available space and\n * supports dynamic height adjustments with scrollable content when needed。\n *\n * Note:\n * - A component (button) can trigger more than one popover, but only one of them should change the\n * aria-expanded and aria-haspopup, the rest of the popovers must have `disable-aria-expanded` attribute.\n *\n * @dependency mdc-button\n *\n * @tagname mdc-popover\n *\n *\n * @event shown - (React: onShown) This event is dispatched when the popover is shown\n * @event hidden - (React: onHidden) This event is dispatched when the popover is hidden\n * @event created - (React: onCreated) This event is dispatched when the popover is created (added to the DOM)\n * @event destroyed - (React: onDestroyed) This event is dispatched when the popover is destroyed (removed from the DOM)\n *\n * @cssproperty --mdc-popover-arrow-border-radius - radius of the arrow border\n * @cssproperty --mdc-popover-arrow-border - border of the arrow\n * @cssproperty --mdc-popover-primary-background-color - primary background color of the popover\n * @cssproperty --mdc-popover-border-color - border color of the popover\n * @cssproperty --mdc-popover-inverted-background-color - inverted background color of the popover\n * @cssproperty --mdc-popover-inverted-border-color - inverted border color of the popover\n * @cssproperty --mdc-popover-inverted-text-color - inverted text color of the popover\n * @cssproperty --mdc-popover-elevation-3 - elevation of the popover\n * @cssproperty --mdc-popover-max-width - max width of the popover\n * @cssproperty --mdc-popover-max-height - max height of the popover\n *\n * @slot - Default slot for the popover content\n *\n */",
|
28510
28434
|
"customElement": true
|
28511
28435
|
}
|
28512
28436
|
],
|
@@ -39713,7 +39637,7 @@
|
|
39713
39637
|
"type": {
|
39714
39638
|
"text": "boolean"
|
39715
39639
|
},
|
39716
|
-
"description": "Disable setting the aria-expanded attribute on trigger element.\
|
39640
|
+
"description": "Disable setting the `aria-expanded` attribute on trigger element.\n\nNote, when `disable-aria-expanded` is true\n - when its value change after first update to\n - `true`: popover will not remove the `aria-expanded` to avoid conflicts when there are more than one popover\n registered to the same trigger\n - `false`: check `aria-expanded` value and update it if necessary.\n - aria-haspopup will be disabled as well",
|
39717
39641
|
"default": "false",
|
39718
39642
|
"attribute": "disable-aria-expanded",
|
39719
39643
|
"reflects": true,
|
@@ -39722,21 +39646,6 @@
|
|
39722
39646
|
"module": "components/popover/popover.component.js"
|
39723
39647
|
}
|
39724
39648
|
},
|
39725
|
-
{
|
39726
|
-
"kind": "field",
|
39727
|
-
"name": "disableAriaHasPopup",
|
39728
|
-
"type": {
|
39729
|
-
"text": "boolean"
|
39730
|
-
},
|
39731
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
39732
|
-
"default": "false",
|
39733
|
-
"attribute": "disable-aria-haspopup",
|
39734
|
-
"reflects": true,
|
39735
|
-
"inheritedFrom": {
|
39736
|
-
"name": "Popover",
|
39737
|
-
"module": "components/popover/popover.component.js"
|
39738
|
-
}
|
39739
|
-
},
|
39740
39649
|
{
|
39741
39650
|
"kind": "field",
|
39742
39651
|
"name": "keepConnectedTooltipClosed",
|
@@ -40528,7 +40437,7 @@
|
|
40528
40437
|
"type": {
|
40529
40438
|
"text": "boolean"
|
40530
40439
|
},
|
40531
|
-
"description": "Disable setting the aria-expanded attribute on trigger element.\
|
40440
|
+
"description": "Disable setting the `aria-expanded` attribute on trigger element.\n\nNote, when `disable-aria-expanded` is true\n - when its value change after first update to\n - `true`: popover will not remove the `aria-expanded` to avoid conflicts when there are more than one popover\n registered to the same trigger\n - `false`: check `aria-expanded` value and update it if necessary.\n - aria-haspopup will be disabled as well",
|
40532
40441
|
"default": "false",
|
40533
40442
|
"fieldName": "disableAriaExpanded",
|
40534
40443
|
"inheritedFrom": {
|
@@ -40536,19 +40445,6 @@
|
|
40536
40445
|
"module": "src/components/popover/popover.component.ts"
|
40537
40446
|
}
|
40538
40447
|
},
|
40539
|
-
{
|
40540
|
-
"name": "disable-aria-haspopup",
|
40541
|
-
"type": {
|
40542
|
-
"text": "boolean"
|
40543
|
-
},
|
40544
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
40545
|
-
"default": "false",
|
40546
|
-
"fieldName": "disableAriaHasPopup",
|
40547
|
-
"inheritedFrom": {
|
40548
|
-
"name": "Popover",
|
40549
|
-
"module": "src/components/popover/popover.component.ts"
|
40550
|
-
}
|
40551
|
-
},
|
40552
40448
|
{
|
40553
40449
|
"name": "keep-connected-tooltip-closed",
|
40554
40450
|
"type": {
|
@@ -41797,7 +41693,7 @@
|
|
41797
41693
|
"type": {
|
41798
41694
|
"text": "boolean"
|
41799
41695
|
},
|
41800
|
-
"description": "Disable setting the aria-expanded attribute on trigger element.\
|
41696
|
+
"description": "Disable setting the `aria-expanded` attribute on trigger element.\n\nNote, when `disable-aria-expanded` is true\n - when its value change after first update to\n - `true`: popover will not remove the `aria-expanded` to avoid conflicts when there are more than one popover\n registered to the same trigger\n - `false`: check `aria-expanded` value and update it if necessary.\n - aria-haspopup will be disabled as well",
|
41801
41697
|
"default": "false",
|
41802
41698
|
"attribute": "disable-aria-expanded",
|
41803
41699
|
"reflects": true,
|
@@ -41806,21 +41702,6 @@
|
|
41806
41702
|
"module": "components/popover/popover.component.js"
|
41807
41703
|
}
|
41808
41704
|
},
|
41809
|
-
{
|
41810
|
-
"kind": "field",
|
41811
|
-
"name": "disableAriaHasPopup",
|
41812
|
-
"type": {
|
41813
|
-
"text": "boolean"
|
41814
|
-
},
|
41815
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
41816
|
-
"default": "false",
|
41817
|
-
"attribute": "disable-aria-haspopup",
|
41818
|
-
"reflects": true,
|
41819
|
-
"inheritedFrom": {
|
41820
|
-
"name": "Popover",
|
41821
|
-
"module": "components/popover/popover.component.js"
|
41822
|
-
}
|
41823
|
-
},
|
41824
41705
|
{
|
41825
41706
|
"kind": "field",
|
41826
41707
|
"name": "keepConnectedTooltipClosed",
|
@@ -42613,7 +42494,7 @@
|
|
42613
42494
|
"type": {
|
42614
42495
|
"text": "boolean"
|
42615
42496
|
},
|
42616
|
-
"description": "Disable setting the aria-expanded attribute on trigger element.\
|
42497
|
+
"description": "Disable setting the `aria-expanded` attribute on trigger element.\n\nNote, when `disable-aria-expanded` is true\n - when its value change after first update to\n - `true`: popover will not remove the `aria-expanded` to avoid conflicts when there are more than one popover\n registered to the same trigger\n - `false`: check `aria-expanded` value and update it if necessary.\n - aria-haspopup will be disabled as well",
|
42617
42498
|
"default": "false",
|
42618
42499
|
"fieldName": "disableAriaExpanded",
|
42619
42500
|
"inheritedFrom": {
|
@@ -42621,19 +42502,6 @@
|
|
42621
42502
|
"module": "src/components/popover/popover.component.ts"
|
42622
42503
|
}
|
42623
42504
|
},
|
42624
|
-
{
|
42625
|
-
"name": "disable-aria-haspopup",
|
42626
|
-
"type": {
|
42627
|
-
"text": "boolean"
|
42628
|
-
},
|
42629
|
-
"description": "Disable setting the aria-haspopup attribute on trigger element.\nMake sure to set this to true when the popover is extended and its role\nis not 'dialog' or 'alertdialog' i.e. listbox, menu, etc.",
|
42630
|
-
"default": "false",
|
42631
|
-
"fieldName": "disableAriaHasPopup",
|
42632
|
-
"inheritedFrom": {
|
42633
|
-
"name": "Popover",
|
42634
|
-
"module": "src/components/popover/popover.component.ts"
|
42635
|
-
}
|
42636
|
-
},
|
42637
42505
|
{
|
42638
42506
|
"name": "keep-connected-tooltip-closed",
|
42639
42507
|
"type": {
|