@momentum-design/components 0.74.0 → 0.74.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/custom-elements.json +1018 -1018
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +3 -3
- package/package.json +1 -1
@@ -492,67 +492,6 @@
|
|
492
492
|
}
|
493
493
|
]
|
494
494
|
},
|
495
|
-
{
|
496
|
-
"kind": "javascript-module",
|
497
|
-
"path": "components/appheader/appheader.component.js",
|
498
|
-
"declarations": [
|
499
|
-
{
|
500
|
-
"kind": "class",
|
501
|
-
"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**.",
|
502
|
-
"name": "Appheader",
|
503
|
-
"cssParts": [
|
504
|
-
{
|
505
|
-
"description": "The main container for styling the header.",
|
506
|
-
"name": "container"
|
507
|
-
},
|
508
|
-
{
|
509
|
-
"description": "The leading section of the header.",
|
510
|
-
"name": "leading-section"
|
511
|
-
},
|
512
|
-
{
|
513
|
-
"description": "The center section of the header.",
|
514
|
-
"name": "center-section"
|
515
|
-
},
|
516
|
-
{
|
517
|
-
"description": "The trailing section of the header.",
|
518
|
-
"name": "trailing-section"
|
519
|
-
}
|
520
|
-
],
|
521
|
-
"slots": [
|
522
|
-
{
|
523
|
-
"description": "Slot for the leading section (e.g., brand logo, brand name).",
|
524
|
-
"name": "leading"
|
525
|
-
},
|
526
|
-
{
|
527
|
-
"description": "Slot for the center section (e.g., search bar, icons).",
|
528
|
-
"name": "center"
|
529
|
-
},
|
530
|
-
{
|
531
|
-
"description": "Slot for the trailing section (e.g., profile avatar, icons).",
|
532
|
-
"name": "trailing"
|
533
|
-
}
|
534
|
-
],
|
535
|
-
"members": [],
|
536
|
-
"superclass": {
|
537
|
-
"name": "Component",
|
538
|
-
"module": "/src/models"
|
539
|
-
},
|
540
|
-
"tagName": "mdc-appheader",
|
541
|
-
"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 */",
|
542
|
-
"customElement": true
|
543
|
-
}
|
544
|
-
],
|
545
|
-
"exports": [
|
546
|
-
{
|
547
|
-
"kind": "js",
|
548
|
-
"name": "default",
|
549
|
-
"declaration": {
|
550
|
-
"name": "Appheader",
|
551
|
-
"module": "components/appheader/appheader.component.js"
|
552
|
-
}
|
553
|
-
}
|
554
|
-
]
|
555
|
-
},
|
556
495
|
{
|
557
496
|
"kind": "javascript-module",
|
558
497
|
"path": "components/animation/animation.component.js",
|
@@ -767,35 +706,111 @@
|
|
767
706
|
},
|
768
707
|
{
|
769
708
|
"kind": "javascript-module",
|
770
|
-
"path": "components/
|
709
|
+
"path": "components/appheader/appheader.component.js",
|
771
710
|
"declarations": [
|
772
711
|
{
|
773
712
|
"kind": "class",
|
774
|
-
"description": "The `mdc-
|
775
|
-
"name": "
|
776
|
-
"
|
713
|
+
"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**.",
|
714
|
+
"name": "Appheader",
|
715
|
+
"cssParts": [
|
777
716
|
{
|
778
|
-
"description": "
|
779
|
-
"name": "
|
717
|
+
"description": "The main container for styling the header.",
|
718
|
+
"name": "container"
|
780
719
|
},
|
781
720
|
{
|
782
|
-
"description": "
|
783
|
-
"name": "
|
721
|
+
"description": "The leading section of the header.",
|
722
|
+
"name": "leading-section"
|
784
723
|
},
|
785
724
|
{
|
786
|
-
"description": "
|
787
|
-
"name": "
|
725
|
+
"description": "The center section of the header.",
|
726
|
+
"name": "center-section"
|
788
727
|
},
|
789
728
|
{
|
790
|
-
"description": "
|
791
|
-
"name": "
|
729
|
+
"description": "The trailing section of the header.",
|
730
|
+
"name": "trailing-section"
|
731
|
+
}
|
732
|
+
],
|
733
|
+
"slots": [
|
734
|
+
{
|
735
|
+
"description": "Slot for the leading section (e.g., brand logo, brand name).",
|
736
|
+
"name": "leading"
|
792
737
|
},
|
793
738
|
{
|
794
|
-
"description": "
|
795
|
-
"name": "
|
739
|
+
"description": "Slot for the center section (e.g., search bar, icons).",
|
740
|
+
"name": "center"
|
741
|
+
},
|
742
|
+
{
|
743
|
+
"description": "Slot for the trailing section (e.g., profile avatar, icons).",
|
744
|
+
"name": "trailing"
|
745
|
+
}
|
746
|
+
],
|
747
|
+
"members": [],
|
748
|
+
"superclass": {
|
749
|
+
"name": "Component",
|
750
|
+
"module": "/src/models"
|
751
|
+
},
|
752
|
+
"tagName": "mdc-appheader",
|
753
|
+
"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 */",
|
754
|
+
"customElement": true
|
755
|
+
}
|
756
|
+
],
|
757
|
+
"exports": [
|
758
|
+
{
|
759
|
+
"kind": "js",
|
760
|
+
"name": "default",
|
761
|
+
"declaration": {
|
762
|
+
"name": "Appheader",
|
763
|
+
"module": "components/appheader/appheader.component.js"
|
764
|
+
}
|
765
|
+
}
|
766
|
+
]
|
767
|
+
},
|
768
|
+
{
|
769
|
+
"kind": "javascript-module",
|
770
|
+
"path": "components/avatarbutton/avatarbutton.component.js",
|
771
|
+
"declarations": [
|
772
|
+
{
|
773
|
+
"kind": "class",
|
774
|
+
"description": "The `mdc-avatarbutton` component is an interactable version of the `mdc-avatar` component.\n\nThis component is made by extending `buttonsimple` class.\nThe button component acts as a wrapper for the avatar component.",
|
775
|
+
"name": "AvatarButton",
|
776
|
+
"cssProperties": [
|
777
|
+
{
|
778
|
+
"description": "Background color of the overlay in rest state",
|
779
|
+
"name": "--mdc-avatarbutton-overlay-background-color-rest"
|
780
|
+
},
|
781
|
+
{
|
782
|
+
"description": "Background color of the overlay in hover state",
|
783
|
+
"name": "--mdc-avatarbutton-overlay-background-color-hover"
|
784
|
+
},
|
785
|
+
{
|
786
|
+
"description": "Background color of the overlay in active state",
|
787
|
+
"name": "--mdc-avatarbutton-overlay-background-color-active"
|
796
788
|
}
|
797
789
|
],
|
798
790
|
"members": [
|
791
|
+
{
|
792
|
+
"kind": "field",
|
793
|
+
"name": "ariaLabel",
|
794
|
+
"type": {
|
795
|
+
"text": "string | null"
|
796
|
+
},
|
797
|
+
"default": "null",
|
798
|
+
"description": "Aria-label attribute to be set for accessibility",
|
799
|
+
"attribute": "aria-label"
|
800
|
+
},
|
801
|
+
{
|
802
|
+
"kind": "method",
|
803
|
+
"name": "setSize",
|
804
|
+
"privacy": "private",
|
805
|
+
"parameters": [
|
806
|
+
{
|
807
|
+
"name": "size",
|
808
|
+
"type": {
|
809
|
+
"text": "AvatarSize"
|
810
|
+
}
|
811
|
+
}
|
812
|
+
]
|
813
|
+
},
|
799
814
|
{
|
800
815
|
"kind": "field",
|
801
816
|
"name": "src",
|
@@ -839,15 +854,15 @@
|
|
839
854
|
"kind": "field",
|
840
855
|
"name": "size",
|
841
856
|
"type": {
|
842
|
-
"text": "
|
857
|
+
"text": "ButtonSize"
|
843
858
|
},
|
844
859
|
"description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
|
845
860
|
"default": "32",
|
846
861
|
"attribute": "size",
|
847
862
|
"reflects": true,
|
848
863
|
"inheritedFrom": {
|
849
|
-
"name": "
|
850
|
-
"module": "
|
864
|
+
"name": "Buttonsimple",
|
865
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
851
866
|
}
|
852
867
|
},
|
853
868
|
{
|
@@ -889,324 +904,65 @@
|
|
889
904
|
"name": "IconNameMixin",
|
890
905
|
"module": "utils/mixins/IconNameMixin.js"
|
891
906
|
}
|
892
|
-
}
|
893
|
-
],
|
894
|
-
"mixins": [
|
895
|
-
{
|
896
|
-
"name": "AvatarComponentMixin",
|
897
|
-
"module": "/src/utils/mixins/AvatarComponentMixin"
|
898
907
|
},
|
899
908
|
{
|
900
|
-
"
|
901
|
-
"
|
902
|
-
}
|
903
|
-
],
|
904
|
-
"superclass": {
|
905
|
-
"name": "Component",
|
906
|
-
"module": "/src/models"
|
907
|
-
},
|
908
|
-
"tagName": "mdc-avatar",
|
909
|
-
"jsDoc": "/**\n * The `mdc-avatar` component is used to represent a person or a space.\n * An avatar can be an icon, initials, counter and photo.\n *\n * To set the photo of an avatar,\n * you need to set \"src\" attribute.\n *\n * While the avatar image is loading, as a placeholder,\n * we will show the initials text.\n * If the initials are not specified then,\n * we will show `user-regular` icon as a placeholder.\n *\n * By default, if there are no attributes specified,\n * then the default avatar will be an icon with `user-regular` name.\n *\n * The avatar component is non clickable and non interactive/focusable component.\n * If the avatar is typing, then the loading indicator will be displayed.\n * If the counter type avatar is set to a negative number, then we will display 0.\n * The presence indicator will be hidden when the counter property is set.\n *\n * @dependency mdc-icon\n * @dependency mdc-presence\n * @dependency mdc-text\n *\n * @tagname mdc-avatar\n *\n * @cssproperty --mdc-avatar-default-background-color - Allows customization of the default background color.\n * @cssproperty --mdc-avatar-default-foreground-color - Allows customization of the default foreground color.\n * @cssproperty --mdc-avatar-loading-indicator-background-color -\n * Allows customization of the loading indicator background color.\n * @cssproperty --mdc-avatar-loading-indicator-foreground-color -\n * Allows customization of the loading indicator foreground color.\n * @cssproperty --mdc-avatar-loading-overlay-background-color -\n * Allows customization of the loading overlay background color.\n */",
|
910
|
-
"customElement": true,
|
911
|
-
"attributes": [
|
912
|
-
{
|
913
|
-
"name": "src",
|
909
|
+
"kind": "field",
|
910
|
+
"name": "tabIndex",
|
914
911
|
"type": {
|
915
|
-
"text": "
|
912
|
+
"text": "number"
|
916
913
|
},
|
917
|
-
"
|
918
|
-
"
|
914
|
+
"default": "0",
|
915
|
+
"description": "This property specifies the tab order of the element.",
|
916
|
+
"attribute": "tabIndex",
|
917
|
+
"reflects": true,
|
919
918
|
"inheritedFrom": {
|
920
|
-
"name": "
|
921
|
-
"module": "
|
919
|
+
"name": "TabIndexMixin",
|
920
|
+
"module": "utils/mixins/TabIndexMixin.js"
|
922
921
|
}
|
923
922
|
},
|
924
923
|
{
|
925
|
-
"
|
924
|
+
"kind": "field",
|
925
|
+
"name": "disabled",
|
926
926
|
"type": {
|
927
|
-
"text": "
|
927
|
+
"text": "boolean | undefined"
|
928
928
|
},
|
929
|
-
"description": "
|
930
|
-
"
|
929
|
+
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
930
|
+
"default": "undefined",
|
931
|
+
"attribute": "disabled",
|
932
|
+
"reflects": true,
|
931
933
|
"inheritedFrom": {
|
932
|
-
"name": "
|
933
|
-
"module": "
|
934
|
+
"name": "DisabledMixin",
|
935
|
+
"module": "utils/mixins/DisabledMixin.js"
|
934
936
|
}
|
935
937
|
},
|
936
938
|
{
|
937
|
-
"
|
939
|
+
"kind": "field",
|
940
|
+
"name": "active",
|
938
941
|
"type": {
|
939
|
-
"text": "
|
942
|
+
"text": "boolean | undefined"
|
940
943
|
},
|
941
|
-
"description": "The
|
942
|
-
"
|
944
|
+
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.\n\nThis attribute is used to set the provided `ariaStateKey` to true or false.",
|
945
|
+
"default": "undefined",
|
946
|
+
"attribute": "active",
|
947
|
+
"reflects": true,
|
943
948
|
"inheritedFrom": {
|
944
|
-
"name": "
|
945
|
-
"module": "
|
949
|
+
"name": "Buttonsimple",
|
950
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
946
951
|
}
|
947
952
|
},
|
948
953
|
{
|
949
|
-
"
|
954
|
+
"kind": "field",
|
955
|
+
"name": "softDisabled",
|
950
956
|
"type": {
|
951
|
-
"text": "
|
957
|
+
"text": "boolean | undefined"
|
952
958
|
},
|
953
|
-
"description": "
|
954
|
-
"default": "
|
955
|
-
"
|
959
|
+
"description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
|
960
|
+
"default": "undefined",
|
961
|
+
"attribute": "soft-disabled",
|
962
|
+
"reflects": true,
|
956
963
|
"inheritedFrom": {
|
957
|
-
"name": "
|
958
|
-
"module": "
|
959
|
-
}
|
960
|
-
},
|
961
|
-
{
|
962
|
-
"name": "counter",
|
963
|
-
"type": {
|
964
|
-
"text": "number | undefined"
|
965
|
-
},
|
966
|
-
"description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
|
967
|
-
"fieldName": "counter",
|
968
|
-
"inheritedFrom": {
|
969
|
-
"name": "AvatarComponentMixin",
|
970
|
-
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
971
|
-
}
|
972
|
-
},
|
973
|
-
{
|
974
|
-
"name": "is-typing",
|
975
|
-
"type": {
|
976
|
-
"text": "boolean"
|
977
|
-
},
|
978
|
-
"default": "false",
|
979
|
-
"description": "Represents the typing indicator when the user is typing.",
|
980
|
-
"fieldName": "isTyping",
|
981
|
-
"inheritedFrom": {
|
982
|
-
"name": "AvatarComponentMixin",
|
983
|
-
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
984
|
-
}
|
985
|
-
},
|
986
|
-
{
|
987
|
-
"name": "icon-name",
|
988
|
-
"type": {
|
989
|
-
"text": "IconNames | undefined"
|
990
|
-
},
|
991
|
-
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
992
|
-
"fieldName": "iconName",
|
993
|
-
"inheritedFrom": {
|
994
|
-
"name": "IconNameMixin",
|
995
|
-
"module": "src/utils/mixins/IconNameMixin.ts"
|
996
|
-
}
|
997
|
-
}
|
998
|
-
]
|
999
|
-
}
|
1000
|
-
],
|
1001
|
-
"exports": [
|
1002
|
-
{
|
1003
|
-
"kind": "js",
|
1004
|
-
"name": "default",
|
1005
|
-
"declaration": {
|
1006
|
-
"name": "Avatar",
|
1007
|
-
"module": "components/avatar/avatar.component.js"
|
1008
|
-
}
|
1009
|
-
}
|
1010
|
-
]
|
1011
|
-
},
|
1012
|
-
{
|
1013
|
-
"kind": "javascript-module",
|
1014
|
-
"path": "components/avatarbutton/avatarbutton.component.js",
|
1015
|
-
"declarations": [
|
1016
|
-
{
|
1017
|
-
"kind": "class",
|
1018
|
-
"description": "The `mdc-avatarbutton` component is an interactable version of the `mdc-avatar` component.\n\nThis component is made by extending `buttonsimple` class.\nThe button component acts as a wrapper for the avatar component.",
|
1019
|
-
"name": "AvatarButton",
|
1020
|
-
"cssProperties": [
|
1021
|
-
{
|
1022
|
-
"description": "Background color of the overlay in rest state",
|
1023
|
-
"name": "--mdc-avatarbutton-overlay-background-color-rest"
|
1024
|
-
},
|
1025
|
-
{
|
1026
|
-
"description": "Background color of the overlay in hover state",
|
1027
|
-
"name": "--mdc-avatarbutton-overlay-background-color-hover"
|
1028
|
-
},
|
1029
|
-
{
|
1030
|
-
"description": "Background color of the overlay in active state",
|
1031
|
-
"name": "--mdc-avatarbutton-overlay-background-color-active"
|
1032
|
-
}
|
1033
|
-
],
|
1034
|
-
"members": [
|
1035
|
-
{
|
1036
|
-
"kind": "field",
|
1037
|
-
"name": "ariaLabel",
|
1038
|
-
"type": {
|
1039
|
-
"text": "string | null"
|
1040
|
-
},
|
1041
|
-
"default": "null",
|
1042
|
-
"description": "Aria-label attribute to be set for accessibility",
|
1043
|
-
"attribute": "aria-label"
|
1044
|
-
},
|
1045
|
-
{
|
1046
|
-
"kind": "method",
|
1047
|
-
"name": "setSize",
|
1048
|
-
"privacy": "private",
|
1049
|
-
"parameters": [
|
1050
|
-
{
|
1051
|
-
"name": "size",
|
1052
|
-
"type": {
|
1053
|
-
"text": "AvatarSize"
|
1054
|
-
}
|
1055
|
-
}
|
1056
|
-
]
|
1057
|
-
},
|
1058
|
-
{
|
1059
|
-
"kind": "field",
|
1060
|
-
"name": "src",
|
1061
|
-
"type": {
|
1062
|
-
"text": "string | undefined"
|
1063
|
-
},
|
1064
|
-
"description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
|
1065
|
-
"attribute": "src",
|
1066
|
-
"inheritedFrom": {
|
1067
|
-
"name": "AvatarComponentMixin",
|
1068
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
1069
|
-
}
|
1070
|
-
},
|
1071
|
-
{
|
1072
|
-
"kind": "field",
|
1073
|
-
"name": "initials",
|
1074
|
-
"type": {
|
1075
|
-
"text": "string | undefined"
|
1076
|
-
},
|
1077
|
-
"description": "The initials to be displayed for the avatar.",
|
1078
|
-
"attribute": "initials",
|
1079
|
-
"inheritedFrom": {
|
1080
|
-
"name": "AvatarComponentMixin",
|
1081
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
1082
|
-
}
|
1083
|
-
},
|
1084
|
-
{
|
1085
|
-
"kind": "field",
|
1086
|
-
"name": "presence",
|
1087
|
-
"type": {
|
1088
|
-
"text": "PresenceType | undefined"
|
1089
|
-
},
|
1090
|
-
"description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
|
1091
|
-
"attribute": "presence",
|
1092
|
-
"inheritedFrom": {
|
1093
|
-
"name": "AvatarComponentMixin",
|
1094
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
1095
|
-
}
|
1096
|
-
},
|
1097
|
-
{
|
1098
|
-
"kind": "field",
|
1099
|
-
"name": "size",
|
1100
|
-
"type": {
|
1101
|
-
"text": "ButtonSize"
|
1102
|
-
},
|
1103
|
-
"description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
|
1104
|
-
"default": "32",
|
1105
|
-
"attribute": "size",
|
1106
|
-
"reflects": true,
|
1107
|
-
"inheritedFrom": {
|
1108
|
-
"name": "Buttonsimple",
|
1109
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
1110
|
-
}
|
1111
|
-
},
|
1112
|
-
{
|
1113
|
-
"kind": "field",
|
1114
|
-
"name": "counter",
|
1115
|
-
"type": {
|
1116
|
-
"text": "number | undefined"
|
1117
|
-
},
|
1118
|
-
"description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
|
1119
|
-
"attribute": "counter",
|
1120
|
-
"inheritedFrom": {
|
1121
|
-
"name": "AvatarComponentMixin",
|
1122
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
1123
|
-
}
|
1124
|
-
},
|
1125
|
-
{
|
1126
|
-
"kind": "field",
|
1127
|
-
"name": "isTyping",
|
1128
|
-
"type": {
|
1129
|
-
"text": "boolean"
|
1130
|
-
},
|
1131
|
-
"default": "false",
|
1132
|
-
"description": "Represents the typing indicator when the user is typing.",
|
1133
|
-
"attribute": "is-typing",
|
1134
|
-
"inheritedFrom": {
|
1135
|
-
"name": "AvatarComponentMixin",
|
1136
|
-
"module": "utils/mixins/AvatarComponentMixin.js"
|
1137
|
-
}
|
1138
|
-
},
|
1139
|
-
{
|
1140
|
-
"kind": "field",
|
1141
|
-
"name": "iconName",
|
1142
|
-
"type": {
|
1143
|
-
"text": "IconNames | undefined"
|
1144
|
-
},
|
1145
|
-
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
1146
|
-
"attribute": "icon-name",
|
1147
|
-
"inheritedFrom": {
|
1148
|
-
"name": "IconNameMixin",
|
1149
|
-
"module": "utils/mixins/IconNameMixin.js"
|
1150
|
-
}
|
1151
|
-
},
|
1152
|
-
{
|
1153
|
-
"kind": "field",
|
1154
|
-
"name": "tabIndex",
|
1155
|
-
"type": {
|
1156
|
-
"text": "number"
|
1157
|
-
},
|
1158
|
-
"default": "0",
|
1159
|
-
"description": "This property specifies the tab order of the element.",
|
1160
|
-
"attribute": "tabIndex",
|
1161
|
-
"reflects": true,
|
1162
|
-
"inheritedFrom": {
|
1163
|
-
"name": "TabIndexMixin",
|
1164
|
-
"module": "utils/mixins/TabIndexMixin.js"
|
1165
|
-
}
|
1166
|
-
},
|
1167
|
-
{
|
1168
|
-
"kind": "field",
|
1169
|
-
"name": "disabled",
|
1170
|
-
"type": {
|
1171
|
-
"text": "boolean | undefined"
|
1172
|
-
},
|
1173
|
-
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
1174
|
-
"default": "undefined",
|
1175
|
-
"attribute": "disabled",
|
1176
|
-
"reflects": true,
|
1177
|
-
"inheritedFrom": {
|
1178
|
-
"name": "DisabledMixin",
|
1179
|
-
"module": "utils/mixins/DisabledMixin.js"
|
1180
|
-
}
|
1181
|
-
},
|
1182
|
-
{
|
1183
|
-
"kind": "field",
|
1184
|
-
"name": "active",
|
1185
|
-
"type": {
|
1186
|
-
"text": "boolean | undefined"
|
1187
|
-
},
|
1188
|
-
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.\n\nThis attribute is used to set the provided `ariaStateKey` to true or false.",
|
1189
|
-
"default": "undefined",
|
1190
|
-
"attribute": "active",
|
1191
|
-
"reflects": true,
|
1192
|
-
"inheritedFrom": {
|
1193
|
-
"name": "Buttonsimple",
|
1194
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
1195
|
-
}
|
1196
|
-
},
|
1197
|
-
{
|
1198
|
-
"kind": "field",
|
1199
|
-
"name": "softDisabled",
|
1200
|
-
"type": {
|
1201
|
-
"text": "boolean | undefined"
|
1202
|
-
},
|
1203
|
-
"description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
|
1204
|
-
"default": "undefined",
|
1205
|
-
"attribute": "soft-disabled",
|
1206
|
-
"reflects": true,
|
1207
|
-
"inheritedFrom": {
|
1208
|
-
"name": "Buttonsimple",
|
1209
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
964
|
+
"name": "Buttonsimple",
|
965
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
1210
966
|
}
|
1211
967
|
},
|
1212
968
|
{
|
@@ -1653,218 +1409,115 @@
|
|
1653
1409
|
},
|
1654
1410
|
{
|
1655
1411
|
"kind": "javascript-module",
|
1656
|
-
"path": "components/
|
1412
|
+
"path": "components/avatar/avatar.component.js",
|
1657
1413
|
"declarations": [
|
1658
1414
|
{
|
1659
1415
|
"kind": "class",
|
1660
|
-
"description": "The `mdc-
|
1661
|
-
"name": "
|
1416
|
+
"description": "The `mdc-avatar` component is used to represent a person or a space.\nAn avatar can be an icon, initials, counter and photo.\n\nTo set the photo of an avatar,\nyou need to set \"src\" attribute.\n\nWhile the avatar image is loading, as a placeholder,\nwe will show the initials text.\nIf the initials are not specified then,\nwe will show `user-regular` icon as a placeholder.\n\nBy default, if there are no attributes specified,\nthen the default avatar will be an icon with `user-regular` name.\n\nThe avatar component is non clickable and non interactive/focusable component.\nIf the avatar is typing, then the loading indicator will be displayed.\nIf the counter type avatar is set to a negative number, then we will display 0.\nThe presence indicator will be hidden when the counter property is set.",
|
1417
|
+
"name": "Avatar",
|
1662
1418
|
"cssProperties": [
|
1663
1419
|
{
|
1664
|
-
"description": "
|
1665
|
-
"name": "--mdc-
|
1420
|
+
"description": "Allows customization of the default background color.",
|
1421
|
+
"name": "--mdc-avatar-default-background-color"
|
1666
1422
|
},
|
1667
1423
|
{
|
1668
|
-
"description": "
|
1669
|
-
"name": "--mdc-
|
1670
|
-
},
|
1671
|
-
{
|
1672
|
-
"description": "The foreground color of the secondary badge.",
|
1673
|
-
"name": "--mdc-badge-secondary-foreground-color"
|
1674
|
-
},
|
1675
|
-
{
|
1676
|
-
"description": "The background color of the secondary badge.",
|
1677
|
-
"name": "--mdc-badge-secondary-background-color"
|
1678
|
-
},
|
1679
|
-
{
|
1680
|
-
"description": "The foreground color of the success badge.",
|
1681
|
-
"name": "--mdc-badge-success-foreground-color"
|
1682
|
-
},
|
1683
|
-
{
|
1684
|
-
"description": "The background color of the success badge.",
|
1685
|
-
"name": "--mdc-badge-success-background-color"
|
1686
|
-
},
|
1687
|
-
{
|
1688
|
-
"description": "The foreground color of the warning badge.",
|
1689
|
-
"name": "--mdc-badge-warning-foreground-color"
|
1690
|
-
},
|
1691
|
-
{
|
1692
|
-
"description": "The background color of the warning badge.",
|
1693
|
-
"name": "--mdc-badge-warning-background-color"
|
1424
|
+
"description": "Allows customization of the default foreground color.",
|
1425
|
+
"name": "--mdc-avatar-default-foreground-color"
|
1694
1426
|
},
|
1695
1427
|
{
|
1696
|
-
"description": "
|
1697
|
-
"name": "--mdc-
|
1428
|
+
"description": "Allows customization of the loading indicator background color.",
|
1429
|
+
"name": "--mdc-avatar-loading-indicator-background-color"
|
1698
1430
|
},
|
1699
1431
|
{
|
1700
|
-
"description": "
|
1701
|
-
"name": "--mdc-
|
1432
|
+
"description": "Allows customization of the loading indicator foreground color.",
|
1433
|
+
"name": "--mdc-avatar-loading-indicator-foreground-color"
|
1702
1434
|
},
|
1703
1435
|
{
|
1704
|
-
"description": "
|
1705
|
-
"name": "--mdc-
|
1436
|
+
"description": "Allows customization of the loading overlay background color.",
|
1437
|
+
"name": "--mdc-avatar-loading-overlay-background-color"
|
1706
1438
|
}
|
1707
1439
|
],
|
1708
1440
|
"members": [
|
1709
1441
|
{
|
1710
1442
|
"kind": "field",
|
1711
|
-
"name": "
|
1443
|
+
"name": "src",
|
1712
1444
|
"type": {
|
1713
|
-
"text": "
|
1445
|
+
"text": "string | undefined"
|
1714
1446
|
},
|
1715
|
-
"description": "
|
1716
|
-
"attribute": "
|
1717
|
-
"
|
1447
|
+
"description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
|
1448
|
+
"attribute": "src",
|
1449
|
+
"inheritedFrom": {
|
1450
|
+
"name": "AvatarComponentMixin",
|
1451
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
1452
|
+
}
|
1718
1453
|
},
|
1719
1454
|
{
|
1720
1455
|
"kind": "field",
|
1721
|
-
"name": "
|
1456
|
+
"name": "initials",
|
1722
1457
|
"type": {
|
1723
|
-
"text": "
|
1458
|
+
"text": "string | undefined"
|
1724
1459
|
},
|
1725
|
-
"description": "
|
1726
|
-
"
|
1727
|
-
"
|
1728
|
-
|
1460
|
+
"description": "The initials to be displayed for the avatar.",
|
1461
|
+
"attribute": "initials",
|
1462
|
+
"inheritedFrom": {
|
1463
|
+
"name": "AvatarComponentMixin",
|
1464
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
1465
|
+
}
|
1729
1466
|
},
|
1730
1467
|
{
|
1731
1468
|
"kind": "field",
|
1732
|
-
"name": "
|
1469
|
+
"name": "presence",
|
1733
1470
|
"type": {
|
1734
|
-
"text": "
|
1471
|
+
"text": "PresenceType | undefined"
|
1735
1472
|
},
|
1736
|
-
"description": "
|
1737
|
-
"attribute": "
|
1473
|
+
"description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
|
1474
|
+
"attribute": "presence",
|
1475
|
+
"inheritedFrom": {
|
1476
|
+
"name": "AvatarComponentMixin",
|
1477
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
1478
|
+
}
|
1738
1479
|
},
|
1739
1480
|
{
|
1740
1481
|
"kind": "field",
|
1741
|
-
"name": "
|
1482
|
+
"name": "size",
|
1742
1483
|
"type": {
|
1743
|
-
"text": "
|
1484
|
+
"text": "AvatarSize"
|
1744
1485
|
},
|
1745
|
-
"description": "
|
1746
|
-
"default": "
|
1747
|
-
"attribute": "
|
1748
|
-
"reflects": true
|
1486
|
+
"description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
|
1487
|
+
"default": "32",
|
1488
|
+
"attribute": "size",
|
1489
|
+
"reflects": true,
|
1490
|
+
"inheritedFrom": {
|
1491
|
+
"name": "AvatarComponentMixin",
|
1492
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
1493
|
+
}
|
1749
1494
|
},
|
1750
1495
|
{
|
1751
1496
|
"kind": "field",
|
1752
|
-
"name": "
|
1497
|
+
"name": "counter",
|
1753
1498
|
"type": {
|
1754
|
-
"text": "
|
1499
|
+
"text": "number | undefined"
|
1755
1500
|
},
|
1756
|
-
"
|
1757
|
-
"
|
1758
|
-
"
|
1501
|
+
"description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
|
1502
|
+
"attribute": "counter",
|
1503
|
+
"inheritedFrom": {
|
1504
|
+
"name": "AvatarComponentMixin",
|
1505
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
1506
|
+
}
|
1759
1507
|
},
|
1760
1508
|
{
|
1761
1509
|
"kind": "field",
|
1762
|
-
"name": "
|
1510
|
+
"name": "isTyping",
|
1763
1511
|
"type": {
|
1764
|
-
"text": "
|
1765
|
-
},
|
1766
|
-
"default": "null",
|
1767
|
-
"description": "Aria-label attribute to be set for accessibility",
|
1768
|
-
"attribute": "aria-label"
|
1769
|
-
},
|
1770
|
-
{
|
1771
|
-
"kind": "method",
|
1772
|
-
"name": "getCounterText",
|
1773
|
-
"privacy": "private",
|
1774
|
-
"return": {
|
1775
|
-
"type": {
|
1776
|
-
"text": ""
|
1777
|
-
}
|
1778
|
-
},
|
1779
|
-
"parameters": [
|
1780
|
-
{
|
1781
|
-
"name": "maxCounter",
|
1782
|
-
"type": {
|
1783
|
-
"text": "number"
|
1784
|
-
},
|
1785
|
-
"description": "the maximum limit which can be displayed on the badge"
|
1786
|
-
},
|
1787
|
-
{
|
1788
|
-
"name": "counter",
|
1789
|
-
"optional": true,
|
1790
|
-
"type": {
|
1791
|
-
"text": "number"
|
1792
|
-
},
|
1793
|
-
"description": "the number to be displayed on the badge"
|
1794
|
-
}
|
1795
|
-
],
|
1796
|
-
"description": "If `type` is set to `counter` and if `counter` is greater than `maxCounter`,\nthen it will return a string the maxCounter value as string.\nOtherwise, it will return a string representation of `counter`.\nIf `counter` is not a number, it will return an empty string."
|
1797
|
-
},
|
1798
|
-
{
|
1799
|
-
"kind": "method",
|
1800
|
-
"name": "getBadgeIcon",
|
1801
|
-
"privacy": "private",
|
1802
|
-
"return": {
|
1803
|
-
"type": {
|
1804
|
-
"text": ""
|
1805
|
-
}
|
1806
|
-
},
|
1807
|
-
"parameters": [
|
1808
|
-
{
|
1809
|
-
"name": "iconName",
|
1810
|
-
"type": {
|
1811
|
-
"text": "string"
|
1812
|
-
},
|
1813
|
-
"description": "the name of the icon from the icon set"
|
1814
|
-
},
|
1815
|
-
{
|
1816
|
-
"name": "backgroundClassPostfix",
|
1817
|
-
"type": {
|
1818
|
-
"text": "string"
|
1819
|
-
},
|
1820
|
-
"description": "postfix for the class to style the badge icon."
|
1821
|
-
}
|
1822
|
-
],
|
1823
|
-
"description": "Method to generate the badge icon."
|
1824
|
-
},
|
1825
|
-
{
|
1826
|
-
"kind": "method",
|
1827
|
-
"name": "getBadgeDot",
|
1828
|
-
"privacy": "private",
|
1829
|
-
"return": {
|
1830
|
-
"type": {
|
1831
|
-
"text": ""
|
1832
|
-
}
|
1833
|
-
},
|
1834
|
-
"description": "Method to generate the badge dot template."
|
1835
|
-
},
|
1836
|
-
{
|
1837
|
-
"kind": "method",
|
1838
|
-
"name": "getBadgeCounterText",
|
1839
|
-
"privacy": "private",
|
1840
|
-
"return": {
|
1841
|
-
"type": {
|
1842
|
-
"text": ""
|
1843
|
-
}
|
1844
|
-
},
|
1845
|
-
"description": "Method to generate the badge text and counter template."
|
1846
|
-
},
|
1847
|
-
{
|
1848
|
-
"kind": "method",
|
1849
|
-
"name": "setRoleByAriaLabel",
|
1850
|
-
"privacy": "private",
|
1851
|
-
"return": {
|
1852
|
-
"type": {
|
1853
|
-
"text": "void"
|
1854
|
-
}
|
1855
|
-
},
|
1856
|
-
"description": "Method to set the role based on the aria-label provided.\nIf the aria-label is provided, the role of the element will be 'img'.\nOtherwise, the role will be null."
|
1857
|
-
},
|
1858
|
-
{
|
1859
|
-
"kind": "method",
|
1860
|
-
"name": "getBadgeContentBasedOnType",
|
1861
|
-
"privacy": "private",
|
1862
|
-
"return": {
|
1863
|
-
"type": {
|
1864
|
-
"text": ""
|
1865
|
-
}
|
1512
|
+
"text": "boolean"
|
1866
1513
|
},
|
1867
|
-
"
|
1514
|
+
"default": "false",
|
1515
|
+
"description": "Represents the typing indicator when the user is typing.",
|
1516
|
+
"attribute": "is-typing",
|
1517
|
+
"inheritedFrom": {
|
1518
|
+
"name": "AvatarComponentMixin",
|
1519
|
+
"module": "utils/mixins/AvatarComponentMixin.js"
|
1520
|
+
}
|
1868
1521
|
},
|
1869
1522
|
{
|
1870
1523
|
"kind": "field",
|
@@ -1880,58 +1533,97 @@
|
|
1880
1533
|
}
|
1881
1534
|
}
|
1882
1535
|
],
|
1536
|
+
"mixins": [
|
1537
|
+
{
|
1538
|
+
"name": "AvatarComponentMixin",
|
1539
|
+
"module": "/src/utils/mixins/AvatarComponentMixin"
|
1540
|
+
},
|
1541
|
+
{
|
1542
|
+
"name": "IconNameMixin",
|
1543
|
+
"module": "/src/utils/mixins/IconNameMixin"
|
1544
|
+
}
|
1545
|
+
],
|
1546
|
+
"superclass": {
|
1547
|
+
"name": "Component",
|
1548
|
+
"module": "/src/models"
|
1549
|
+
},
|
1550
|
+
"tagName": "mdc-avatar",
|
1551
|
+
"jsDoc": "/**\n * The `mdc-avatar` component is used to represent a person or a space.\n * An avatar can be an icon, initials, counter and photo.\n *\n * To set the photo of an avatar,\n * you need to set \"src\" attribute.\n *\n * While the avatar image is loading, as a placeholder,\n * we will show the initials text.\n * If the initials are not specified then,\n * we will show `user-regular` icon as a placeholder.\n *\n * By default, if there are no attributes specified,\n * then the default avatar will be an icon with `user-regular` name.\n *\n * The avatar component is non clickable and non interactive/focusable component.\n * If the avatar is typing, then the loading indicator will be displayed.\n * If the counter type avatar is set to a negative number, then we will display 0.\n * The presence indicator will be hidden when the counter property is set.\n *\n * @dependency mdc-icon\n * @dependency mdc-presence\n * @dependency mdc-text\n *\n * @tagname mdc-avatar\n *\n * @cssproperty --mdc-avatar-default-background-color - Allows customization of the default background color.\n * @cssproperty --mdc-avatar-default-foreground-color - Allows customization of the default foreground color.\n * @cssproperty --mdc-avatar-loading-indicator-background-color -\n * Allows customization of the loading indicator background color.\n * @cssproperty --mdc-avatar-loading-indicator-foreground-color -\n * Allows customization of the loading indicator foreground color.\n * @cssproperty --mdc-avatar-loading-overlay-background-color -\n * Allows customization of the loading overlay background color.\n */",
|
1552
|
+
"customElement": true,
|
1883
1553
|
"attributes": [
|
1884
1554
|
{
|
1885
|
-
"name": "
|
1555
|
+
"name": "src",
|
1886
1556
|
"type": {
|
1887
|
-
"text": "
|
1557
|
+
"text": "string | undefined"
|
1888
1558
|
},
|
1889
|
-
"description": "
|
1890
|
-
"fieldName": "
|
1559
|
+
"description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
|
1560
|
+
"fieldName": "src",
|
1561
|
+
"inheritedFrom": {
|
1562
|
+
"name": "AvatarComponentMixin",
|
1563
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1564
|
+
}
|
1891
1565
|
},
|
1892
1566
|
{
|
1893
|
-
"name": "
|
1567
|
+
"name": "initials",
|
1894
1568
|
"type": {
|
1895
|
-
"text": "
|
1569
|
+
"text": "string | undefined"
|
1896
1570
|
},
|
1897
|
-
"description": "
|
1898
|
-
"
|
1899
|
-
"
|
1571
|
+
"description": "The initials to be displayed for the avatar.",
|
1572
|
+
"fieldName": "initials",
|
1573
|
+
"inheritedFrom": {
|
1574
|
+
"name": "AvatarComponentMixin",
|
1575
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1576
|
+
}
|
1900
1577
|
},
|
1901
1578
|
{
|
1902
|
-
"name": "
|
1579
|
+
"name": "presence",
|
1903
1580
|
"type": {
|
1904
|
-
"text": "
|
1581
|
+
"text": "PresenceType | undefined"
|
1905
1582
|
},
|
1906
|
-
"description": "
|
1907
|
-
"fieldName": "
|
1583
|
+
"description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
|
1584
|
+
"fieldName": "presence",
|
1585
|
+
"inheritedFrom": {
|
1586
|
+
"name": "AvatarComponentMixin",
|
1587
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1588
|
+
}
|
1908
1589
|
},
|
1909
1590
|
{
|
1910
|
-
"name": "
|
1591
|
+
"name": "size",
|
1911
1592
|
"type": {
|
1912
|
-
"text": "
|
1593
|
+
"text": "AvatarSize"
|
1913
1594
|
},
|
1914
|
-
"description": "
|
1915
|
-
"default": "
|
1916
|
-
"fieldName": "
|
1595
|
+
"description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
|
1596
|
+
"default": "32",
|
1597
|
+
"fieldName": "size",
|
1598
|
+
"inheritedFrom": {
|
1599
|
+
"name": "AvatarComponentMixin",
|
1600
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1601
|
+
}
|
1917
1602
|
},
|
1918
1603
|
{
|
1919
|
-
"name": "
|
1604
|
+
"name": "counter",
|
1920
1605
|
"type": {
|
1921
|
-
"text": "
|
1606
|
+
"text": "number | undefined"
|
1922
1607
|
},
|
1923
|
-
"
|
1924
|
-
"
|
1925
|
-
"
|
1608
|
+
"description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
|
1609
|
+
"fieldName": "counter",
|
1610
|
+
"inheritedFrom": {
|
1611
|
+
"name": "AvatarComponentMixin",
|
1612
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1613
|
+
}
|
1926
1614
|
},
|
1927
1615
|
{
|
1928
|
-
"name": "
|
1616
|
+
"name": "is-typing",
|
1929
1617
|
"type": {
|
1930
|
-
"text": "
|
1618
|
+
"text": "boolean"
|
1931
1619
|
},
|
1932
|
-
"default": "
|
1933
|
-
"description": "
|
1934
|
-
"fieldName": "
|
1620
|
+
"default": "false",
|
1621
|
+
"description": "Represents the typing indicator when the user is typing.",
|
1622
|
+
"fieldName": "isTyping",
|
1623
|
+
"inheritedFrom": {
|
1624
|
+
"name": "AvatarComponentMixin",
|
1625
|
+
"module": "src/utils/mixins/AvatarComponentMixin.ts"
|
1626
|
+
}
|
1935
1627
|
},
|
1936
1628
|
{
|
1937
1629
|
"name": "icon-name",
|
@@ -1945,20 +1637,7 @@
|
|
1945
1637
|
"module": "src/utils/mixins/IconNameMixin.ts"
|
1946
1638
|
}
|
1947
1639
|
}
|
1948
|
-
]
|
1949
|
-
"mixins": [
|
1950
|
-
{
|
1951
|
-
"name": "IconNameMixin",
|
1952
|
-
"module": "/src/utils/mixins/IconNameMixin"
|
1953
|
-
}
|
1954
|
-
],
|
1955
|
-
"superclass": {
|
1956
|
-
"name": "Component",
|
1957
|
-
"module": "/src/models"
|
1958
|
-
},
|
1959
|
-
"tagName": "mdc-badge",
|
1960
|
-
"jsDoc": "/**\n * The `mdc-badge` component is a versatile UI element used to\n * display dot, icons, counters, success, warning and error type badge.\n *\n * Supported badge types:\n * - `dot`: Displays a dot notification badge with a blue color.\n * - `icon`: Displays a badge with a specified icon using the `icon-name` attribute.\n * - `counter`: Displays a badge with a counter value. If the counter exceeds the `max-counter`,\n * it shows `maxCounter+`. The maximum value of the counter is 999 and anything above that will be set to `999+`.\n * - `success`: Displays a success badge with a check circle icon and green color.\n * - `warning`: Displays a warning badge with a warning icon and yellow color.\n * - `error`: Displays a error badge with a error legacy icon and red color.\n *\n * For `icon`, `success`, `warning` and `error` types, the `mdc-icon` component is used to render the icon.\n *\n * For the `counter` type, the `mdc-text` component is used to render the counter value.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-badge\n *\n * @cssproperty --mdc-badge-primary-foreground-color - The foreground color of the primary badge.\n * @cssproperty --mdc-badge-primary-background-color - The background color of the primary badge.\n * @cssproperty --mdc-badge-secondary-foreground-color - The foreground color of the secondary badge.\n * @cssproperty --mdc-badge-secondary-background-color - The background color of the secondary badge.\n * @cssproperty --mdc-badge-success-foreground-color - The foreground color of the success badge.\n * @cssproperty --mdc-badge-success-background-color - The background color of the success badge.\n * @cssproperty --mdc-badge-warning-foreground-color - The foreground color of the warning badge.\n * @cssproperty --mdc-badge-warning-background-color - The background color of the warning badge.\n * @cssproperty --mdc-badge-error-foreground-color - The foreground color of the error badge.\n * @cssproperty --mdc-badge-error-background-color - The background color of the error badge.\n * @cssproperty --mdc-badge-overlay-background-color - The background color of the badge overlay.\n */",
|
1961
|
-
"customElement": true
|
1640
|
+
]
|
1962
1641
|
}
|
1963
1642
|
],
|
1964
1643
|
"exports": [
|
@@ -1966,8 +1645,8 @@
|
|
1966
1645
|
"kind": "js",
|
1967
1646
|
"name": "default",
|
1968
1647
|
"declaration": {
|
1969
|
-
"name": "
|
1970
|
-
"module": "components/
|
1648
|
+
"name": "Avatar",
|
1649
|
+
"module": "components/avatar/avatar.component.js"
|
1971
1650
|
}
|
1972
1651
|
}
|
1973
1652
|
]
|
@@ -2178,629 +1857,950 @@
|
|
2178
1857
|
}
|
2179
1858
|
},
|
2180
1859
|
{
|
2181
|
-
"kind": "field",
|
1860
|
+
"kind": "field",
|
1861
|
+
"name": "inverted",
|
1862
|
+
"type": {
|
1863
|
+
"text": "boolean"
|
1864
|
+
},
|
1865
|
+
"description": "The button color can be inverted by setting the inverted attribute to true.\n\nOnly applies when variant is set to `primary`, color is set to `default`\nand button is not `active`.",
|
1866
|
+
"default": "false",
|
1867
|
+
"attribute": "inverted",
|
1868
|
+
"reflects": true
|
1869
|
+
},
|
1870
|
+
{
|
1871
|
+
"kind": "field",
|
1872
|
+
"name": "role",
|
1873
|
+
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
1874
|
+
"default": "'button'",
|
1875
|
+
"attribute": "role",
|
1876
|
+
"reflects": true,
|
1877
|
+
"type": {
|
1878
|
+
"text": "string"
|
1879
|
+
},
|
1880
|
+
"inheritedFrom": {
|
1881
|
+
"name": "Buttonsimple",
|
1882
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
1883
|
+
}
|
1884
|
+
},
|
1885
|
+
{
|
1886
|
+
"kind": "method",
|
1887
|
+
"name": "inferFilledIconName",
|
1888
|
+
"privacy": "private",
|
1889
|
+
"parameters": [
|
1890
|
+
{
|
1891
|
+
"name": "active",
|
1892
|
+
"optional": true,
|
1893
|
+
"type": {
|
1894
|
+
"text": "boolean"
|
1895
|
+
},
|
1896
|
+
"description": "The active state."
|
1897
|
+
}
|
1898
|
+
],
|
1899
|
+
"description": "Modifies the icon name based on the active state.\nIf the button is active, the icon name is suffixed with '-filled'.\nIf the button is inactive, the icon name is restored to its original value.\nIf '-filled' icon is not available, the icon name remains unchanged."
|
1900
|
+
},
|
1901
|
+
{
|
1902
|
+
"kind": "field",
|
1903
|
+
"name": "prefixIcon",
|
1904
|
+
"type": {
|
1905
|
+
"text": "IconNames | undefined"
|
1906
|
+
},
|
1907
|
+
"description": "The name of the icon to display as a prefix.\nThe icon is displayed on the left side of the button.",
|
1908
|
+
"attribute": "prefix-icon",
|
1909
|
+
"reflects": true,
|
1910
|
+
"inheritedFrom": {
|
1911
|
+
"name": "ButtonComponentMixin",
|
1912
|
+
"module": "utils/mixins/ButtonComponentMixin.js"
|
1913
|
+
}
|
1914
|
+
},
|
1915
|
+
{
|
1916
|
+
"kind": "field",
|
1917
|
+
"name": "postfixIcon",
|
1918
|
+
"type": {
|
1919
|
+
"text": "IconNames | undefined"
|
1920
|
+
},
|
1921
|
+
"description": "The name of the icon to display as a postfix.\nThe icon is displayed on the right side of the button.",
|
1922
|
+
"attribute": "postfix-icon",
|
1923
|
+
"reflects": true,
|
1924
|
+
"inheritedFrom": {
|
1925
|
+
"name": "ButtonComponentMixin",
|
1926
|
+
"module": "utils/mixins/ButtonComponentMixin.js"
|
1927
|
+
}
|
1928
|
+
},
|
1929
|
+
{
|
1930
|
+
"kind": "field",
|
1931
|
+
"name": "variant",
|
1932
|
+
"type": {
|
1933
|
+
"text": "ButtonVariant"
|
1934
|
+
},
|
1935
|
+
"description": "There are 3 variants of button: primary, secondary, tertiary. They are styled differently.\n- **Primary**: Solid background color.\n- **Secondary**: Transparent background with a solid border.\n- **Tertiary**: No background or border, appears as plain text but retains all button functionalities.",
|
1936
|
+
"default": "primary",
|
1937
|
+
"attribute": "variant",
|
1938
|
+
"inheritedFrom": {
|
1939
|
+
"name": "ButtonComponentMixin",
|
1940
|
+
"module": "utils/mixins/ButtonComponentMixin.js"
|
1941
|
+
}
|
1942
|
+
},
|
1943
|
+
{
|
1944
|
+
"kind": "field",
|
1945
|
+
"name": "color",
|
1946
|
+
"type": {
|
1947
|
+
"text": "ButtonColor"
|
1948
|
+
},
|
1949
|
+
"description": "There are 5 colors for button: positive, negative, accent, promotional, default.",
|
1950
|
+
"default": "default",
|
1951
|
+
"attribute": "color",
|
1952
|
+
"inheritedFrom": {
|
1953
|
+
"name": "ButtonComponentMixin",
|
1954
|
+
"module": "utils/mixins/ButtonComponentMixin.js"
|
1955
|
+
}
|
1956
|
+
},
|
1957
|
+
{
|
1958
|
+
"kind": "method",
|
1959
|
+
"name": "setVariant",
|
1960
|
+
"privacy": "protected",
|
1961
|
+
"parameters": [
|
1962
|
+
{
|
1963
|
+
"name": "variant",
|
1964
|
+
"type": {
|
1965
|
+
"text": "ButtonVariant"
|
1966
|
+
},
|
1967
|
+
"description": "The variant to set."
|
1968
|
+
}
|
1969
|
+
],
|
1970
|
+
"description": "Sets the variant attribute for the button component.\nIf the provided variant is not included in the BUTTON_VARIANTS,\nit defaults to the value specified in DEFAULTS.VARIANT.",
|
1971
|
+
"inheritedFrom": {
|
1972
|
+
"name": "ButtonComponentMixin",
|
1973
|
+
"module": "utils/mixins/ButtonComponentMixin.js"
|
1974
|
+
}
|
1975
|
+
},
|
1976
|
+
{
|
1977
|
+
"kind": "method",
|
1978
|
+
"name": "setColor",
|
1979
|
+
"privacy": "protected",
|
1980
|
+
"parameters": [
|
1981
|
+
{
|
1982
|
+
"name": "color",
|
1983
|
+
"type": {
|
1984
|
+
"text": "ButtonColor"
|
1985
|
+
},
|
1986
|
+
"description": "The color to set."
|
1987
|
+
}
|
1988
|
+
],
|
1989
|
+
"description": "Sets the color attribute for the button.\nDefaults to DEFAULTS.COLOR if invalid or for tertiary button.",
|
1990
|
+
"inheritedFrom": {
|
1991
|
+
"name": "ButtonComponentMixin",
|
1992
|
+
"module": "utils/mixins/ButtonComponentMixin.js"
|
1993
|
+
}
|
1994
|
+
},
|
1995
|
+
{
|
1996
|
+
"kind": "method",
|
1997
|
+
"name": "setSize",
|
1998
|
+
"privacy": "protected",
|
1999
|
+
"parameters": [
|
2000
|
+
{
|
2001
|
+
"name": "size",
|
2002
|
+
"type": {
|
2003
|
+
"text": "PillButtonSize | IconButtonSize"
|
2004
|
+
},
|
2005
|
+
"description": "The size to set."
|
2006
|
+
}
|
2007
|
+
],
|
2008
|
+
"description": "Sets the size attribute for the button component.\nValidates the size based on the button type (icon, pill, or tertiary).\nDefaults to DEFAULTS.SIZE if invalid.",
|
2009
|
+
"inheritedFrom": {
|
2010
|
+
"name": "ButtonComponentMixin",
|
2011
|
+
"module": "utils/mixins/ButtonComponentMixin.js"
|
2012
|
+
}
|
2013
|
+
},
|
2014
|
+
{
|
2015
|
+
"kind": "method",
|
2016
|
+
"name": "inferButtonType",
|
2017
|
+
"privacy": "protected",
|
2018
|
+
"description": "Infers the type of button based on the presence of slot and/or prefix and postfix icons.",
|
2019
|
+
"parameters": [
|
2020
|
+
{
|
2021
|
+
"description": "default slot of button",
|
2022
|
+
"name": "slot"
|
2023
|
+
}
|
2024
|
+
],
|
2025
|
+
"inheritedFrom": {
|
2026
|
+
"name": "ButtonComponentMixin",
|
2027
|
+
"module": "utils/mixins/ButtonComponentMixin.js"
|
2028
|
+
}
|
2029
|
+
},
|
2030
|
+
{
|
2031
|
+
"kind": "field",
|
2032
|
+
"name": "tabIndex",
|
2033
|
+
"type": {
|
2034
|
+
"text": "number"
|
2035
|
+
},
|
2036
|
+
"default": "0",
|
2037
|
+
"description": "This property specifies the tab order of the element.",
|
2038
|
+
"attribute": "tabIndex",
|
2039
|
+
"reflects": true,
|
2040
|
+
"inheritedFrom": {
|
2041
|
+
"name": "TabIndexMixin",
|
2042
|
+
"module": "utils/mixins/TabIndexMixin.js"
|
2043
|
+
}
|
2044
|
+
},
|
2045
|
+
{
|
2046
|
+
"kind": "field",
|
2047
|
+
"name": "disabled",
|
2048
|
+
"type": {
|
2049
|
+
"text": "boolean | undefined"
|
2050
|
+
},
|
2051
|
+
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
2052
|
+
"default": "undefined",
|
2053
|
+
"attribute": "disabled",
|
2054
|
+
"reflects": true,
|
2055
|
+
"inheritedFrom": {
|
2056
|
+
"name": "DisabledMixin",
|
2057
|
+
"module": "utils/mixins/DisabledMixin.js"
|
2058
|
+
}
|
2059
|
+
},
|
2060
|
+
{
|
2061
|
+
"kind": "field",
|
2062
|
+
"name": "active",
|
2063
|
+
"type": {
|
2064
|
+
"text": "boolean | undefined"
|
2065
|
+
},
|
2066
|
+
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.\n\nThis attribute is used to set the provided `ariaStateKey` to true or false.",
|
2067
|
+
"default": "undefined",
|
2068
|
+
"attribute": "active",
|
2069
|
+
"reflects": true,
|
2070
|
+
"inheritedFrom": {
|
2071
|
+
"name": "Buttonsimple",
|
2072
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2073
|
+
}
|
2074
|
+
},
|
2075
|
+
{
|
2076
|
+
"kind": "field",
|
2077
|
+
"name": "softDisabled",
|
2078
|
+
"type": {
|
2079
|
+
"text": "boolean | undefined"
|
2080
|
+
},
|
2081
|
+
"description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
|
2082
|
+
"default": "undefined",
|
2083
|
+
"attribute": "soft-disabled",
|
2084
|
+
"reflects": true,
|
2085
|
+
"inheritedFrom": {
|
2086
|
+
"name": "Buttonsimple",
|
2087
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2088
|
+
}
|
2089
|
+
},
|
2090
|
+
{
|
2091
|
+
"kind": "field",
|
2092
|
+
"name": "ariaStateKey",
|
2093
|
+
"type": {
|
2094
|
+
"text": "string | undefined"
|
2095
|
+
},
|
2096
|
+
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
2097
|
+
"default": "'aria-pressed' (when)",
|
2098
|
+
"attribute": "ariaStateKey",
|
2099
|
+
"reflects": true,
|
2100
|
+
"inheritedFrom": {
|
2101
|
+
"name": "Buttonsimple",
|
2102
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2103
|
+
}
|
2104
|
+
},
|
2105
|
+
{
|
2106
|
+
"kind": "field",
|
2107
|
+
"name": "type",
|
2108
|
+
"type": {
|
2109
|
+
"text": "ButtonType"
|
2110
|
+
},
|
2111
|
+
"description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
|
2112
|
+
"default": "button",
|
2113
|
+
"attribute": "type",
|
2114
|
+
"reflects": true,
|
2115
|
+
"inheritedFrom": {
|
2116
|
+
"name": "Buttonsimple",
|
2117
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2118
|
+
}
|
2119
|
+
},
|
2120
|
+
{
|
2121
|
+
"kind": "method",
|
2122
|
+
"name": "executeAction",
|
2123
|
+
"privacy": "protected",
|
2124
|
+
"inheritedFrom": {
|
2125
|
+
"name": "Buttonsimple",
|
2126
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2127
|
+
}
|
2128
|
+
},
|
2129
|
+
{
|
2130
|
+
"kind": "method",
|
2131
|
+
"name": "setActive",
|
2132
|
+
"privacy": "protected",
|
2133
|
+
"parameters": [
|
2134
|
+
{
|
2135
|
+
"name": "element",
|
2136
|
+
"type": {
|
2137
|
+
"text": "HTMLElement"
|
2138
|
+
},
|
2139
|
+
"description": "The button element"
|
2140
|
+
},
|
2141
|
+
{
|
2142
|
+
"name": "active",
|
2143
|
+
"optional": true,
|
2144
|
+
"type": {
|
2145
|
+
"text": "boolean"
|
2146
|
+
},
|
2147
|
+
"description": "The active state of the element"
|
2148
|
+
}
|
2149
|
+
],
|
2150
|
+
"description": "Sets the ariaStateKey attributes based on the active state of the button.",
|
2151
|
+
"inheritedFrom": {
|
2152
|
+
"name": "Buttonsimple",
|
2153
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2154
|
+
}
|
2155
|
+
},
|
2156
|
+
{
|
2157
|
+
"kind": "method",
|
2158
|
+
"name": "setSoftDisabled",
|
2159
|
+
"privacy": "private",
|
2160
|
+
"parameters": [
|
2161
|
+
{
|
2162
|
+
"name": "element",
|
2163
|
+
"type": {
|
2164
|
+
"text": "HTMLElement"
|
2165
|
+
},
|
2166
|
+
"description": "The button element."
|
2167
|
+
},
|
2168
|
+
{
|
2169
|
+
"name": "softDisabled",
|
2170
|
+
"optional": true,
|
2171
|
+
"type": {
|
2172
|
+
"text": "boolean"
|
2173
|
+
},
|
2174
|
+
"description": "The soft-disabled state."
|
2175
|
+
}
|
2176
|
+
],
|
2177
|
+
"description": "Sets the soft-disabled attribute for the button.\nWhen soft-disabled, the button looks to be disabled but remains focusable and clickable.\nAlso sets/removes aria-disabled attribute.",
|
2178
|
+
"inheritedFrom": {
|
2179
|
+
"name": "Buttonsimple",
|
2180
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2181
|
+
}
|
2182
|
+
},
|
2183
|
+
{
|
2184
|
+
"kind": "method",
|
2185
|
+
"name": "setDisabled",
|
2186
|
+
"privacy": "private",
|
2187
|
+
"parameters": [
|
2188
|
+
{
|
2189
|
+
"name": "element",
|
2190
|
+
"type": {
|
2191
|
+
"text": "HTMLElement"
|
2192
|
+
},
|
2193
|
+
"description": "The button element."
|
2194
|
+
},
|
2195
|
+
{
|
2196
|
+
"name": "disabled",
|
2197
|
+
"type": {
|
2198
|
+
"text": "boolean"
|
2199
|
+
},
|
2200
|
+
"description": "The disabled state."
|
2201
|
+
}
|
2202
|
+
],
|
2203
|
+
"description": "Sets the disabled attribute for the button.\nWhen disabled, the button is not focusable or clickable, and tabindex is set to -1.\nThe previous tabindex is stored and restored when enabled.\nAlso sets/removes aria-disabled attribute.",
|
2204
|
+
"inheritedFrom": {
|
2205
|
+
"name": "Buttonsimple",
|
2206
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2207
|
+
}
|
2208
|
+
},
|
2209
|
+
{
|
2210
|
+
"kind": "method",
|
2211
|
+
"name": "triggerClickEvent",
|
2212
|
+
"privacy": "private",
|
2213
|
+
"inheritedFrom": {
|
2214
|
+
"name": "Buttonsimple",
|
2215
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2216
|
+
}
|
2217
|
+
},
|
2218
|
+
{
|
2219
|
+
"kind": "method",
|
2220
|
+
"name": "handleBlur",
|
2221
|
+
"privacy": "private",
|
2222
|
+
"description": "In case the button is pressed and the focus is lost while pressing,\nthe pressed class is removed.",
|
2223
|
+
"inheritedFrom": {
|
2224
|
+
"name": "Buttonsimple",
|
2225
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2226
|
+
}
|
2227
|
+
},
|
2228
|
+
{
|
2229
|
+
"kind": "method",
|
2230
|
+
"name": "handleKeyDown",
|
2231
|
+
"privacy": "private",
|
2232
|
+
"parameters": [
|
2233
|
+
{
|
2234
|
+
"name": "event",
|
2235
|
+
"type": {
|
2236
|
+
"text": "KeyboardEvent"
|
2237
|
+
},
|
2238
|
+
"description": "The keyboard event."
|
2239
|
+
}
|
2240
|
+
],
|
2241
|
+
"description": "Handles the keydown event on the button.\nIf the key is 'Enter' or 'Space', the button is pressed.\nIf the key is 'Enter', the button is pressed. The native HTML button works in the same way.\nIf the key is 'Space', the button's default is prevent to avoid scrolling etc in the host application.",
|
2242
|
+
"inheritedFrom": {
|
2243
|
+
"name": "Buttonsimple",
|
2244
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2245
|
+
}
|
2246
|
+
},
|
2247
|
+
{
|
2248
|
+
"kind": "method",
|
2249
|
+
"name": "handleKeyUp",
|
2250
|
+
"privacy": "private",
|
2251
|
+
"parameters": [
|
2252
|
+
{
|
2253
|
+
"name": "event",
|
2254
|
+
"type": {
|
2255
|
+
"text": "KeyboardEvent"
|
2256
|
+
},
|
2257
|
+
"description": "The keyboard event."
|
2258
|
+
}
|
2259
|
+
],
|
2260
|
+
"description": "Handles the keyup event on the button.\nIf the key is 'Enter' or 'Space', the button is clicked.\nIf the key is 'Space', the button is pressed. The native HTML button works in the same way.",
|
2261
|
+
"inheritedFrom": {
|
2262
|
+
"name": "Buttonsimple",
|
2263
|
+
"module": "components/buttonsimple/buttonsimple.component.js"
|
2264
|
+
}
|
2265
|
+
}
|
2266
|
+
],
|
2267
|
+
"attributes": [
|
2268
|
+
{
|
2269
|
+
"name": "size",
|
2270
|
+
"type": {
|
2271
|
+
"text": "ButtonSize"
|
2272
|
+
},
|
2273
|
+
"description": "Button sizing is based on the button type.\n- **Pill button**: 40, 32, 28, 24.\n- **Icon button**: 64, 52, 40, 32, 28, 24.\n- Tertiary icon button can also be 20.",
|
2274
|
+
"default": "32",
|
2275
|
+
"fieldName": "size",
|
2276
|
+
"inheritedFrom": {
|
2277
|
+
"name": "Buttonsimple",
|
2278
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2279
|
+
}
|
2280
|
+
},
|
2281
|
+
{
|
2182
2282
|
"name": "inverted",
|
2183
2283
|
"type": {
|
2184
2284
|
"text": "boolean"
|
2185
2285
|
},
|
2186
2286
|
"description": "The button color can be inverted by setting the inverted attribute to true.\n\nOnly applies when variant is set to `primary`, color is set to `default`\nand button is not `active`.",
|
2187
2287
|
"default": "false",
|
2188
|
-
"
|
2189
|
-
"reflects": true
|
2288
|
+
"fieldName": "inverted"
|
2190
2289
|
},
|
2191
2290
|
{
|
2192
|
-
"kind": "field",
|
2193
2291
|
"name": "role",
|
2194
2292
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
2195
2293
|
"default": "'button'",
|
2196
|
-
"
|
2197
|
-
"reflects": true,
|
2294
|
+
"fieldName": "role",
|
2198
2295
|
"type": {
|
2199
2296
|
"text": "string"
|
2200
2297
|
},
|
2201
2298
|
"inheritedFrom": {
|
2202
2299
|
"name": "Buttonsimple",
|
2203
|
-
"module": "components/buttonsimple/buttonsimple.component.
|
2300
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2204
2301
|
}
|
2205
2302
|
},
|
2206
2303
|
{
|
2207
|
-
"
|
2208
|
-
"name": "inferFilledIconName",
|
2209
|
-
"privacy": "private",
|
2210
|
-
"parameters": [
|
2211
|
-
{
|
2212
|
-
"name": "active",
|
2213
|
-
"optional": true,
|
2214
|
-
"type": {
|
2215
|
-
"text": "boolean"
|
2216
|
-
},
|
2217
|
-
"description": "The active state."
|
2218
|
-
}
|
2219
|
-
],
|
2220
|
-
"description": "Modifies the icon name based on the active state.\nIf the button is active, the icon name is suffixed with '-filled'.\nIf the button is inactive, the icon name is restored to its original value.\nIf '-filled' icon is not available, the icon name remains unchanged."
|
2221
|
-
},
|
2222
|
-
{
|
2223
|
-
"kind": "field",
|
2224
|
-
"name": "prefixIcon",
|
2304
|
+
"name": "prefix-icon",
|
2225
2305
|
"type": {
|
2226
2306
|
"text": "IconNames | undefined"
|
2227
2307
|
},
|
2228
2308
|
"description": "The name of the icon to display as a prefix.\nThe icon is displayed on the left side of the button.",
|
2229
|
-
"
|
2230
|
-
"reflects": true,
|
2309
|
+
"fieldName": "prefixIcon",
|
2231
2310
|
"inheritedFrom": {
|
2232
2311
|
"name": "ButtonComponentMixin",
|
2233
|
-
"module": "utils/mixins/ButtonComponentMixin.
|
2312
|
+
"module": "src/utils/mixins/ButtonComponentMixin.ts"
|
2234
2313
|
}
|
2235
2314
|
},
|
2236
2315
|
{
|
2237
|
-
"
|
2238
|
-
"name": "postfixIcon",
|
2316
|
+
"name": "postfix-icon",
|
2239
2317
|
"type": {
|
2240
2318
|
"text": "IconNames | undefined"
|
2241
2319
|
},
|
2242
2320
|
"description": "The name of the icon to display as a postfix.\nThe icon is displayed on the right side of the button.",
|
2243
|
-
"
|
2244
|
-
"reflects": true,
|
2321
|
+
"fieldName": "postfixIcon",
|
2245
2322
|
"inheritedFrom": {
|
2246
2323
|
"name": "ButtonComponentMixin",
|
2247
|
-
"module": "utils/mixins/ButtonComponentMixin.
|
2324
|
+
"module": "src/utils/mixins/ButtonComponentMixin.ts"
|
2248
2325
|
}
|
2249
2326
|
},
|
2250
2327
|
{
|
2251
|
-
"kind": "field",
|
2252
2328
|
"name": "variant",
|
2253
2329
|
"type": {
|
2254
2330
|
"text": "ButtonVariant"
|
2255
2331
|
},
|
2256
2332
|
"description": "There are 3 variants of button: primary, secondary, tertiary. They are styled differently.\n- **Primary**: Solid background color.\n- **Secondary**: Transparent background with a solid border.\n- **Tertiary**: No background or border, appears as plain text but retains all button functionalities.",
|
2257
2333
|
"default": "primary",
|
2258
|
-
"
|
2334
|
+
"fieldName": "variant",
|
2259
2335
|
"inheritedFrom": {
|
2260
2336
|
"name": "ButtonComponentMixin",
|
2261
|
-
"module": "utils/mixins/ButtonComponentMixin.
|
2337
|
+
"module": "src/utils/mixins/ButtonComponentMixin.ts"
|
2262
2338
|
}
|
2263
2339
|
},
|
2264
2340
|
{
|
2265
|
-
"kind": "field",
|
2266
2341
|
"name": "color",
|
2267
2342
|
"type": {
|
2268
2343
|
"text": "ButtonColor"
|
2269
2344
|
},
|
2270
2345
|
"description": "There are 5 colors for button: positive, negative, accent, promotional, default.",
|
2271
2346
|
"default": "default",
|
2272
|
-
"
|
2347
|
+
"fieldName": "color",
|
2273
2348
|
"inheritedFrom": {
|
2274
2349
|
"name": "ButtonComponentMixin",
|
2275
|
-
"module": "utils/mixins/ButtonComponentMixin.
|
2350
|
+
"module": "src/utils/mixins/ButtonComponentMixin.ts"
|
2276
2351
|
}
|
2277
2352
|
},
|
2278
2353
|
{
|
2279
|
-
"
|
2280
|
-
"
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
"text": "ButtonVariant"
|
2287
|
-
},
|
2288
|
-
"description": "The variant to set."
|
2289
|
-
}
|
2290
|
-
],
|
2291
|
-
"description": "Sets the variant attribute for the button component.\nIf the provided variant is not included in the BUTTON_VARIANTS,\nit defaults to the value specified in DEFAULTS.VARIANT.",
|
2354
|
+
"name": "tabIndex",
|
2355
|
+
"type": {
|
2356
|
+
"text": "number"
|
2357
|
+
},
|
2358
|
+
"default": "0",
|
2359
|
+
"description": "This property specifies the tab order of the element.",
|
2360
|
+
"fieldName": "tabIndex",
|
2292
2361
|
"inheritedFrom": {
|
2293
|
-
"name": "
|
2294
|
-
"module": "utils/mixins/
|
2362
|
+
"name": "TabIndexMixin",
|
2363
|
+
"module": "src/utils/mixins/TabIndexMixin.ts"
|
2295
2364
|
}
|
2296
2365
|
},
|
2297
2366
|
{
|
2298
|
-
"
|
2299
|
-
"
|
2300
|
-
|
2301
|
-
|
2302
|
-
|
2303
|
-
|
2304
|
-
|
2305
|
-
"text": "ButtonColor"
|
2306
|
-
},
|
2307
|
-
"description": "The color to set."
|
2308
|
-
}
|
2309
|
-
],
|
2310
|
-
"description": "Sets the color attribute for the button.\nDefaults to DEFAULTS.COLOR if invalid or for tertiary button.",
|
2367
|
+
"name": "disabled",
|
2368
|
+
"type": {
|
2369
|
+
"text": "boolean | undefined"
|
2370
|
+
},
|
2371
|
+
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
2372
|
+
"default": "undefined",
|
2373
|
+
"fieldName": "disabled",
|
2311
2374
|
"inheritedFrom": {
|
2312
|
-
"name": "
|
2313
|
-
"module": "utils/mixins/
|
2375
|
+
"name": "DisabledMixin",
|
2376
|
+
"module": "src/utils/mixins/DisabledMixin.ts"
|
2377
|
+
}
|
2378
|
+
},
|
2379
|
+
{
|
2380
|
+
"name": "active",
|
2381
|
+
"type": {
|
2382
|
+
"text": "boolean | undefined"
|
2383
|
+
},
|
2384
|
+
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.\n\nThis attribute is used to set the provided `ariaStateKey` to true or false.",
|
2385
|
+
"default": "undefined",
|
2386
|
+
"fieldName": "active",
|
2387
|
+
"inheritedFrom": {
|
2388
|
+
"name": "Buttonsimple",
|
2389
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2390
|
+
}
|
2391
|
+
},
|
2392
|
+
{
|
2393
|
+
"name": "soft-disabled",
|
2394
|
+
"type": {
|
2395
|
+
"text": "boolean | undefined"
|
2396
|
+
},
|
2397
|
+
"description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
|
2398
|
+
"default": "undefined",
|
2399
|
+
"fieldName": "softDisabled",
|
2400
|
+
"inheritedFrom": {
|
2401
|
+
"name": "Buttonsimple",
|
2402
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2403
|
+
}
|
2404
|
+
},
|
2405
|
+
{
|
2406
|
+
"name": "ariaStateKey",
|
2407
|
+
"type": {
|
2408
|
+
"text": "string | undefined"
|
2409
|
+
},
|
2410
|
+
"description": "This property defines the ARIA state key, which will be toggled when the\nButton is set to `active`.\nThe default value is 'aria-pressed', which is commonly used for toggle buttons.\n\nConsumers can override this property to use a different ARIA state key if needed.\nIn case multiple aria attributes should be toggled, they can be passed in as\na comma separated string.\nFor example: `aria-pressed,aria-expanded`",
|
2411
|
+
"default": "'aria-pressed' (when)",
|
2412
|
+
"fieldName": "ariaStateKey",
|
2413
|
+
"inheritedFrom": {
|
2414
|
+
"name": "Buttonsimple",
|
2415
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2416
|
+
}
|
2417
|
+
},
|
2418
|
+
{
|
2419
|
+
"name": "type",
|
2420
|
+
"type": {
|
2421
|
+
"text": "ButtonType"
|
2422
|
+
},
|
2423
|
+
"description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
|
2424
|
+
"default": "button",
|
2425
|
+
"fieldName": "type",
|
2426
|
+
"inheritedFrom": {
|
2427
|
+
"name": "Buttonsimple",
|
2428
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2429
|
+
}
|
2430
|
+
}
|
2431
|
+
],
|
2432
|
+
"mixins": [
|
2433
|
+
{
|
2434
|
+
"name": "ButtonComponentMixin",
|
2435
|
+
"module": "/src/utils/mixins/ButtonComponentMixin"
|
2436
|
+
}
|
2437
|
+
],
|
2438
|
+
"superclass": {
|
2439
|
+
"name": "Buttonsimple",
|
2440
|
+
"module": "/src/components/buttonsimple/buttonsimple.component"
|
2441
|
+
},
|
2442
|
+
"tagName": "mdc-button",
|
2443
|
+
"jsDoc": "/**\n * `mdc-button` is a component that can be configured in various ways to suit different use cases.\n *\n * Button Variants:\n * - **Primary**: Solid background color.\n * - **Secondary**: Transparent background with a solid border.\n * - **Tertiary**: No background or border, appears as plain text but retains all button functionalities.\n *\n * Button Colors:\n * - **Positive**: Green color.\n * - **Negative**: Red color.\n * - **Accent**: Blue color.\n * - **Promotional**: Purple color.\n * - **Default**: White color.\n *\n * Button Sizes (in REM units):\n * - **Pill button**: 40, 32, 28, 24.\n * - **Icon button**: 64, 52, 40, 32, 28, 24.\n * - **Tertiary icon button**: 20.\n *\n * Button Types:\n * - **Pill button**: A button that contains text value. Commonly used for call to action, tags, or filters.\n * - **Pill button with icons**: A button containing an icon either on the left or right side of the button.\n * - **Icon button**: A button represented by just an icon without any text.\n * The type of button is inferred based on the presence of slot and/or prefix and postfix icons.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-button\n *\n * @slot - Text label of the button.\n */",
|
2444
|
+
"customElement": true,
|
2445
|
+
"events": [
|
2446
|
+
{
|
2447
|
+
"description": "(React: onClick) This event is dispatched when the button is clicked.",
|
2448
|
+
"name": "click",
|
2449
|
+
"reactName": "onClick",
|
2450
|
+
"inheritedFrom": {
|
2451
|
+
"name": "Buttonsimple",
|
2452
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2453
|
+
}
|
2454
|
+
},
|
2455
|
+
{
|
2456
|
+
"description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the button.",
|
2457
|
+
"name": "keydown",
|
2458
|
+
"reactName": "onKeyDown",
|
2459
|
+
"inheritedFrom": {
|
2460
|
+
"name": "Buttonsimple",
|
2461
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2462
|
+
}
|
2463
|
+
},
|
2464
|
+
{
|
2465
|
+
"description": "(React: onKeyUp) This event is dispatched when a key is released on the button.",
|
2466
|
+
"name": "keyup",
|
2467
|
+
"reactName": "onKeyUp",
|
2468
|
+
"inheritedFrom": {
|
2469
|
+
"name": "Buttonsimple",
|
2470
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2471
|
+
}
|
2472
|
+
},
|
2473
|
+
{
|
2474
|
+
"description": "(React: onFocus) This event is dispatched when the button receives focus.",
|
2475
|
+
"name": "focus",
|
2476
|
+
"reactName": "onFocus",
|
2477
|
+
"inheritedFrom": {
|
2478
|
+
"name": "Buttonsimple",
|
2479
|
+
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2314
2480
|
}
|
2481
|
+
}
|
2482
|
+
]
|
2483
|
+
}
|
2484
|
+
],
|
2485
|
+
"exports": [
|
2486
|
+
{
|
2487
|
+
"kind": "js",
|
2488
|
+
"name": "default",
|
2489
|
+
"declaration": {
|
2490
|
+
"name": "Button",
|
2491
|
+
"module": "components/button/button.component.js"
|
2492
|
+
}
|
2493
|
+
}
|
2494
|
+
]
|
2495
|
+
},
|
2496
|
+
{
|
2497
|
+
"kind": "javascript-module",
|
2498
|
+
"path": "components/badge/badge.component.js",
|
2499
|
+
"declarations": [
|
2500
|
+
{
|
2501
|
+
"kind": "class",
|
2502
|
+
"description": "The `mdc-badge` component is a versatile UI element used to\ndisplay dot, icons, counters, success, warning and error type badge.\n\nSupported badge types:\n- `dot`: Displays a dot notification badge with a blue color.\n- `icon`: Displays a badge with a specified icon using the `icon-name` attribute.\n- `counter`: Displays a badge with a counter value. If the counter exceeds the `max-counter`,\nit shows `maxCounter+`. The maximum value of the counter is 999 and anything above that will be set to `999+`.\n- `success`: Displays a success badge with a check circle icon and green color.\n- `warning`: Displays a warning badge with a warning icon and yellow color.\n- `error`: Displays a error badge with a error legacy icon and red color.\n\nFor `icon`, `success`, `warning` and `error` types, the `mdc-icon` component is used to render the icon.\n\nFor the `counter` type, the `mdc-text` component is used to render the counter value.",
|
2503
|
+
"name": "Badge",
|
2504
|
+
"cssProperties": [
|
2505
|
+
{
|
2506
|
+
"description": "The foreground color of the primary badge.",
|
2507
|
+
"name": "--mdc-badge-primary-foreground-color"
|
2508
|
+
},
|
2509
|
+
{
|
2510
|
+
"description": "The background color of the primary badge.",
|
2511
|
+
"name": "--mdc-badge-primary-background-color"
|
2512
|
+
},
|
2513
|
+
{
|
2514
|
+
"description": "The foreground color of the secondary badge.",
|
2515
|
+
"name": "--mdc-badge-secondary-foreground-color"
|
2516
|
+
},
|
2517
|
+
{
|
2518
|
+
"description": "The background color of the secondary badge.",
|
2519
|
+
"name": "--mdc-badge-secondary-background-color"
|
2520
|
+
},
|
2521
|
+
{
|
2522
|
+
"description": "The foreground color of the success badge.",
|
2523
|
+
"name": "--mdc-badge-success-foreground-color"
|
2524
|
+
},
|
2525
|
+
{
|
2526
|
+
"description": "The background color of the success badge.",
|
2527
|
+
"name": "--mdc-badge-success-background-color"
|
2528
|
+
},
|
2529
|
+
{
|
2530
|
+
"description": "The foreground color of the warning badge.",
|
2531
|
+
"name": "--mdc-badge-warning-foreground-color"
|
2532
|
+
},
|
2533
|
+
{
|
2534
|
+
"description": "The background color of the warning badge.",
|
2535
|
+
"name": "--mdc-badge-warning-background-color"
|
2315
2536
|
},
|
2316
2537
|
{
|
2317
|
-
"
|
2318
|
-
"name": "
|
2319
|
-
"privacy": "protected",
|
2320
|
-
"parameters": [
|
2321
|
-
{
|
2322
|
-
"name": "size",
|
2323
|
-
"type": {
|
2324
|
-
"text": "PillButtonSize | IconButtonSize"
|
2325
|
-
},
|
2326
|
-
"description": "The size to set."
|
2327
|
-
}
|
2328
|
-
],
|
2329
|
-
"description": "Sets the size attribute for the button component.\nValidates the size based on the button type (icon, pill, or tertiary).\nDefaults to DEFAULTS.SIZE if invalid.",
|
2330
|
-
"inheritedFrom": {
|
2331
|
-
"name": "ButtonComponentMixin",
|
2332
|
-
"module": "utils/mixins/ButtonComponentMixin.js"
|
2333
|
-
}
|
2538
|
+
"description": "The foreground color of the error badge.",
|
2539
|
+
"name": "--mdc-badge-error-foreground-color"
|
2334
2540
|
},
|
2335
2541
|
{
|
2336
|
-
"
|
2337
|
-
"name": "
|
2338
|
-
"privacy": "protected",
|
2339
|
-
"description": "Infers the type of button based on the presence of slot and/or prefix and postfix icons.",
|
2340
|
-
"parameters": [
|
2341
|
-
{
|
2342
|
-
"description": "default slot of button",
|
2343
|
-
"name": "slot"
|
2344
|
-
}
|
2345
|
-
],
|
2346
|
-
"inheritedFrom": {
|
2347
|
-
"name": "ButtonComponentMixin",
|
2348
|
-
"module": "utils/mixins/ButtonComponentMixin.js"
|
2349
|
-
}
|
2542
|
+
"description": "The background color of the error badge.",
|
2543
|
+
"name": "--mdc-badge-error-background-color"
|
2350
2544
|
},
|
2545
|
+
{
|
2546
|
+
"description": "The background color of the badge overlay.",
|
2547
|
+
"name": "--mdc-badge-overlay-background-color"
|
2548
|
+
}
|
2549
|
+
],
|
2550
|
+
"members": [
|
2351
2551
|
{
|
2352
2552
|
"kind": "field",
|
2353
|
-
"name": "
|
2553
|
+
"name": "type",
|
2354
2554
|
"type": {
|
2355
|
-
"text": "
|
2555
|
+
"text": "BadgeType | undefined"
|
2356
2556
|
},
|
2357
|
-
"
|
2358
|
-
"
|
2359
|
-
"
|
2360
|
-
"reflects": true,
|
2361
|
-
"inheritedFrom": {
|
2362
|
-
"name": "TabIndexMixin",
|
2363
|
-
"module": "utils/mixins/TabIndexMixin.js"
|
2364
|
-
}
|
2557
|
+
"description": "Type of the badge\nCan be `dot` (notification) , `icon`, `counter`, `success`, `warning` or `error`.",
|
2558
|
+
"attribute": "type",
|
2559
|
+
"reflects": true
|
2365
2560
|
},
|
2366
2561
|
{
|
2367
2562
|
"kind": "field",
|
2368
|
-
"name": "
|
2563
|
+
"name": "variant",
|
2369
2564
|
"type": {
|
2370
|
-
"text": "
|
2565
|
+
"text": "IconVariant"
|
2371
2566
|
},
|
2372
|
-
"description": "
|
2373
|
-
"default": "
|
2374
|
-
"attribute": "
|
2375
|
-
"reflects": true
|
2376
|
-
"inheritedFrom": {
|
2377
|
-
"name": "DisabledMixin",
|
2378
|
-
"module": "utils/mixins/DisabledMixin.js"
|
2379
|
-
}
|
2567
|
+
"description": "Type of the variant can be `primary` or `secondary`.\nIt defines the background and foreground color of the icon.",
|
2568
|
+
"default": "primary",
|
2569
|
+
"attribute": "variant",
|
2570
|
+
"reflects": true
|
2380
2571
|
},
|
2381
2572
|
{
|
2382
2573
|
"kind": "field",
|
2383
|
-
"name": "
|
2574
|
+
"name": "counter",
|
2384
2575
|
"type": {
|
2385
|
-
"text": "
|
2576
|
+
"text": "number | undefined"
|
2386
2577
|
},
|
2387
|
-
"description": "
|
2388
|
-
"
|
2389
|
-
"attribute": "active",
|
2390
|
-
"reflects": true,
|
2391
|
-
"inheritedFrom": {
|
2392
|
-
"name": "Buttonsimple",
|
2393
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2394
|
-
}
|
2578
|
+
"description": "Counter is the number which can be provided in the badge.",
|
2579
|
+
"attribute": "counter"
|
2395
2580
|
},
|
2396
2581
|
{
|
2397
2582
|
"kind": "field",
|
2398
|
-
"name": "
|
2583
|
+
"name": "maxCounter",
|
2399
2584
|
"type": {
|
2400
|
-
"text": "
|
2585
|
+
"text": "number"
|
2401
2586
|
},
|
2402
|
-
"description": "
|
2403
|
-
"default": "
|
2404
|
-
"attribute": "
|
2405
|
-
"reflects": true
|
2406
|
-
"inheritedFrom": {
|
2407
|
-
"name": "Buttonsimple",
|
2408
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2409
|
-
}
|
2587
|
+
"description": "The maximum number can be set up to 999, anything above that will be rendered as _999+_.\nThe max counter can be `9`, `99` or `999`.",
|
2588
|
+
"default": "99",
|
2589
|
+
"attribute": "max-counter",
|
2590
|
+
"reflects": true
|
2410
2591
|
},
|
2411
2592
|
{
|
2412
2593
|
"kind": "field",
|
2413
|
-
"name": "
|
2594
|
+
"name": "overlay",
|
2414
2595
|
"type": {
|
2415
|
-
"text": "
|
2596
|
+
"text": "boolean"
|
2416
2597
|
},
|
2417
|
-
"
|
2418
|
-
"
|
2419
|
-
"attribute": "
|
2420
|
-
"reflects": true,
|
2421
|
-
"inheritedFrom": {
|
2422
|
-
"name": "Buttonsimple",
|
2423
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2424
|
-
}
|
2598
|
+
"default": "false",
|
2599
|
+
"description": "Overlay is to add a thin outline to the badge.\nThis will help distinguish between the badge and the button,\nwhere the badge will be layered on top of a button.",
|
2600
|
+
"attribute": "overlay"
|
2425
2601
|
},
|
2426
2602
|
{
|
2427
2603
|
"kind": "field",
|
2428
|
-
"name": "
|
2604
|
+
"name": "ariaLabel",
|
2429
2605
|
"type": {
|
2430
|
-
"text": "
|
2606
|
+
"text": "string | null"
|
2431
2607
|
},
|
2432
|
-
"
|
2433
|
-
"
|
2434
|
-
"attribute": "
|
2435
|
-
"reflects": true,
|
2436
|
-
"inheritedFrom": {
|
2437
|
-
"name": "Buttonsimple",
|
2438
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2439
|
-
}
|
2440
|
-
},
|
2441
|
-
{
|
2442
|
-
"kind": "method",
|
2443
|
-
"name": "executeAction",
|
2444
|
-
"privacy": "protected",
|
2445
|
-
"inheritedFrom": {
|
2446
|
-
"name": "Buttonsimple",
|
2447
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2448
|
-
}
|
2449
|
-
},
|
2450
|
-
{
|
2451
|
-
"kind": "method",
|
2452
|
-
"name": "setActive",
|
2453
|
-
"privacy": "protected",
|
2454
|
-
"parameters": [
|
2455
|
-
{
|
2456
|
-
"name": "element",
|
2457
|
-
"type": {
|
2458
|
-
"text": "HTMLElement"
|
2459
|
-
},
|
2460
|
-
"description": "The button element"
|
2461
|
-
},
|
2462
|
-
{
|
2463
|
-
"name": "active",
|
2464
|
-
"optional": true,
|
2465
|
-
"type": {
|
2466
|
-
"text": "boolean"
|
2467
|
-
},
|
2468
|
-
"description": "The active state of the element"
|
2469
|
-
}
|
2470
|
-
],
|
2471
|
-
"description": "Sets the ariaStateKey attributes based on the active state of the button.",
|
2472
|
-
"inheritedFrom": {
|
2473
|
-
"name": "Buttonsimple",
|
2474
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2475
|
-
}
|
2608
|
+
"default": "null",
|
2609
|
+
"description": "Aria-label attribute to be set for accessibility",
|
2610
|
+
"attribute": "aria-label"
|
2476
2611
|
},
|
2477
2612
|
{
|
2478
2613
|
"kind": "method",
|
2479
|
-
"name": "
|
2614
|
+
"name": "getCounterText",
|
2480
2615
|
"privacy": "private",
|
2616
|
+
"return": {
|
2617
|
+
"type": {
|
2618
|
+
"text": ""
|
2619
|
+
}
|
2620
|
+
},
|
2481
2621
|
"parameters": [
|
2482
2622
|
{
|
2483
|
-
"name": "
|
2623
|
+
"name": "maxCounter",
|
2484
2624
|
"type": {
|
2485
|
-
"text": "
|
2625
|
+
"text": "number"
|
2486
2626
|
},
|
2487
|
-
"description": "
|
2627
|
+
"description": "the maximum limit which can be displayed on the badge"
|
2488
2628
|
},
|
2489
2629
|
{
|
2490
|
-
"name": "
|
2630
|
+
"name": "counter",
|
2491
2631
|
"optional": true,
|
2492
2632
|
"type": {
|
2493
|
-
"text": "
|
2633
|
+
"text": "number"
|
2494
2634
|
},
|
2495
|
-
"description": "
|
2635
|
+
"description": "the number to be displayed on the badge"
|
2496
2636
|
}
|
2497
2637
|
],
|
2498
|
-
"description": "
|
2499
|
-
"inheritedFrom": {
|
2500
|
-
"name": "Buttonsimple",
|
2501
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2502
|
-
}
|
2638
|
+
"description": "If `type` is set to `counter` and if `counter` is greater than `maxCounter`,\nthen it will return a string the maxCounter value as string.\nOtherwise, it will return a string representation of `counter`.\nIf `counter` is not a number, it will return an empty string."
|
2503
2639
|
},
|
2504
2640
|
{
|
2505
2641
|
"kind": "method",
|
2506
|
-
"name": "
|
2642
|
+
"name": "getBadgeIcon",
|
2507
2643
|
"privacy": "private",
|
2644
|
+
"return": {
|
2645
|
+
"type": {
|
2646
|
+
"text": ""
|
2647
|
+
}
|
2648
|
+
},
|
2508
2649
|
"parameters": [
|
2509
2650
|
{
|
2510
|
-
"name": "
|
2651
|
+
"name": "iconName",
|
2511
2652
|
"type": {
|
2512
|
-
"text": "
|
2653
|
+
"text": "string"
|
2513
2654
|
},
|
2514
|
-
"description": "
|
2655
|
+
"description": "the name of the icon from the icon set"
|
2515
2656
|
},
|
2516
2657
|
{
|
2517
|
-
"name": "
|
2658
|
+
"name": "backgroundClassPostfix",
|
2518
2659
|
"type": {
|
2519
|
-
"text": "
|
2660
|
+
"text": "string"
|
2520
2661
|
},
|
2521
|
-
"description": "
|
2662
|
+
"description": "postfix for the class to style the badge icon."
|
2522
2663
|
}
|
2523
2664
|
],
|
2524
|
-
"description": "
|
2525
|
-
"inheritedFrom": {
|
2526
|
-
"name": "Buttonsimple",
|
2527
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2528
|
-
}
|
2529
|
-
},
|
2530
|
-
{
|
2531
|
-
"kind": "method",
|
2532
|
-
"name": "triggerClickEvent",
|
2533
|
-
"privacy": "private",
|
2534
|
-
"inheritedFrom": {
|
2535
|
-
"name": "Buttonsimple",
|
2536
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2537
|
-
}
|
2538
|
-
},
|
2539
|
-
{
|
2540
|
-
"kind": "method",
|
2541
|
-
"name": "handleBlur",
|
2542
|
-
"privacy": "private",
|
2543
|
-
"description": "In case the button is pressed and the focus is lost while pressing,\nthe pressed class is removed.",
|
2544
|
-
"inheritedFrom": {
|
2545
|
-
"name": "Buttonsimple",
|
2546
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2547
|
-
}
|
2665
|
+
"description": "Method to generate the badge icon."
|
2548
2666
|
},
|
2549
2667
|
{
|
2550
2668
|
"kind": "method",
|
2551
|
-
"name": "
|
2669
|
+
"name": "getBadgeDot",
|
2552
2670
|
"privacy": "private",
|
2553
|
-
"
|
2554
|
-
{
|
2555
|
-
"
|
2556
|
-
|
2557
|
-
|
2558
|
-
|
2559
|
-
"description": "The keyboard event."
|
2560
|
-
}
|
2561
|
-
],
|
2562
|
-
"description": "Handles the keydown event on the button.\nIf the key is 'Enter' or 'Space', the button is pressed.\nIf the key is 'Enter', the button is pressed. The native HTML button works in the same way.\nIf the key is 'Space', the button's default is prevent to avoid scrolling etc in the host application.",
|
2563
|
-
"inheritedFrom": {
|
2564
|
-
"name": "Buttonsimple",
|
2565
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2566
|
-
}
|
2671
|
+
"return": {
|
2672
|
+
"type": {
|
2673
|
+
"text": ""
|
2674
|
+
}
|
2675
|
+
},
|
2676
|
+
"description": "Method to generate the badge dot template."
|
2567
2677
|
},
|
2568
2678
|
{
|
2569
2679
|
"kind": "method",
|
2570
|
-
"name": "
|
2680
|
+
"name": "getBadgeCounterText",
|
2571
2681
|
"privacy": "private",
|
2572
|
-
"
|
2573
|
-
{
|
2574
|
-
"
|
2575
|
-
"type": {
|
2576
|
-
"text": "KeyboardEvent"
|
2577
|
-
},
|
2578
|
-
"description": "The keyboard event."
|
2682
|
+
"return": {
|
2683
|
+
"type": {
|
2684
|
+
"text": ""
|
2579
2685
|
}
|
2580
|
-
],
|
2581
|
-
"description": "Handles the keyup event on the button.\nIf the key is 'Enter' or 'Space', the button is clicked.\nIf the key is 'Space', the button is pressed. The native HTML button works in the same way.",
|
2582
|
-
"inheritedFrom": {
|
2583
|
-
"name": "Buttonsimple",
|
2584
|
-
"module": "components/buttonsimple/buttonsimple.component.js"
|
2585
|
-
}
|
2586
|
-
}
|
2587
|
-
],
|
2588
|
-
"attributes": [
|
2589
|
-
{
|
2590
|
-
"name": "size",
|
2591
|
-
"type": {
|
2592
|
-
"text": "ButtonSize"
|
2593
2686
|
},
|
2594
|
-
"description": "
|
2595
|
-
"default": "32",
|
2596
|
-
"fieldName": "size",
|
2597
|
-
"inheritedFrom": {
|
2598
|
-
"name": "Buttonsimple",
|
2599
|
-
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2600
|
-
}
|
2687
|
+
"description": "Method to generate the badge text and counter template."
|
2601
2688
|
},
|
2602
2689
|
{
|
2603
|
-
"
|
2604
|
-
"
|
2605
|
-
|
2690
|
+
"kind": "method",
|
2691
|
+
"name": "setRoleByAriaLabel",
|
2692
|
+
"privacy": "private",
|
2693
|
+
"return": {
|
2694
|
+
"type": {
|
2695
|
+
"text": "void"
|
2696
|
+
}
|
2606
2697
|
},
|
2607
|
-
"description": "
|
2608
|
-
"default": "false",
|
2609
|
-
"fieldName": "inverted"
|
2698
|
+
"description": "Method to set the role based on the aria-label provided.\nIf the aria-label is provided, the role of the element will be 'img'.\nOtherwise, the role will be null."
|
2610
2699
|
},
|
2611
2700
|
{
|
2612
|
-
"
|
2613
|
-
"
|
2614
|
-
"
|
2615
|
-
"
|
2616
|
-
|
2617
|
-
|
2701
|
+
"kind": "method",
|
2702
|
+
"name": "getBadgeContentBasedOnType",
|
2703
|
+
"privacy": "private",
|
2704
|
+
"return": {
|
2705
|
+
"type": {
|
2706
|
+
"text": ""
|
2707
|
+
}
|
2618
2708
|
},
|
2619
|
-
"
|
2620
|
-
"name": "Buttonsimple",
|
2621
|
-
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2622
|
-
}
|
2709
|
+
"description": "Generates the badge content based on the badge type.\nUtilizes various helper methods to create the appropriate badge template based on the\ncurrent badge type. Supports 'dot', 'icon', 'counter', 'success', 'warning', and 'error'\ntypes, returning the corresponding template result for each type."
|
2623
2710
|
},
|
2624
2711
|
{
|
2625
|
-
"
|
2712
|
+
"kind": "field",
|
2713
|
+
"name": "iconName",
|
2626
2714
|
"type": {
|
2627
2715
|
"text": "IconNames | undefined"
|
2628
2716
|
},
|
2629
|
-
"description": "
|
2630
|
-
"
|
2717
|
+
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
2718
|
+
"attribute": "icon-name",
|
2631
2719
|
"inheritedFrom": {
|
2632
|
-
"name": "
|
2633
|
-
"module": "
|
2720
|
+
"name": "IconNameMixin",
|
2721
|
+
"module": "utils/mixins/IconNameMixin.js"
|
2634
2722
|
}
|
2635
|
-
}
|
2723
|
+
}
|
2724
|
+
],
|
2725
|
+
"attributes": [
|
2636
2726
|
{
|
2637
|
-
"name": "
|
2727
|
+
"name": "type",
|
2638
2728
|
"type": {
|
2639
|
-
"text": "
|
2729
|
+
"text": "BadgeType | undefined"
|
2640
2730
|
},
|
2641
|
-
"description": "
|
2642
|
-
"fieldName": "
|
2643
|
-
"inheritedFrom": {
|
2644
|
-
"name": "ButtonComponentMixin",
|
2645
|
-
"module": "src/utils/mixins/ButtonComponentMixin.ts"
|
2646
|
-
}
|
2731
|
+
"description": "Type of the badge\nCan be `dot` (notification) , `icon`, `counter`, `success`, `warning` or `error`.",
|
2732
|
+
"fieldName": "type"
|
2647
2733
|
},
|
2648
2734
|
{
|
2649
2735
|
"name": "variant",
|
2650
2736
|
"type": {
|
2651
|
-
"text": "
|
2737
|
+
"text": "IconVariant"
|
2652
2738
|
},
|
2653
|
-
"description": "
|
2739
|
+
"description": "Type of the variant can be `primary` or `secondary`.\nIt defines the background and foreground color of the icon.",
|
2654
2740
|
"default": "primary",
|
2655
|
-
"fieldName": "variant"
|
2656
|
-
"inheritedFrom": {
|
2657
|
-
"name": "ButtonComponentMixin",
|
2658
|
-
"module": "src/utils/mixins/ButtonComponentMixin.ts"
|
2659
|
-
}
|
2741
|
+
"fieldName": "variant"
|
2660
2742
|
},
|
2661
2743
|
{
|
2662
|
-
"name": "
|
2744
|
+
"name": "counter",
|
2663
2745
|
"type": {
|
2664
|
-
"text": "
|
2746
|
+
"text": "number | undefined"
|
2665
2747
|
},
|
2666
|
-
"description": "
|
2667
|
-
"
|
2668
|
-
"fieldName": "color",
|
2669
|
-
"inheritedFrom": {
|
2670
|
-
"name": "ButtonComponentMixin",
|
2671
|
-
"module": "src/utils/mixins/ButtonComponentMixin.ts"
|
2672
|
-
}
|
2748
|
+
"description": "Counter is the number which can be provided in the badge.",
|
2749
|
+
"fieldName": "counter"
|
2673
2750
|
},
|
2674
2751
|
{
|
2675
|
-
"name": "
|
2752
|
+
"name": "max-counter",
|
2676
2753
|
"type": {
|
2677
2754
|
"text": "number"
|
2678
2755
|
},
|
2679
|
-
"
|
2680
|
-
"
|
2681
|
-
"fieldName": "
|
2682
|
-
"inheritedFrom": {
|
2683
|
-
"name": "TabIndexMixin",
|
2684
|
-
"module": "src/utils/mixins/TabIndexMixin.ts"
|
2685
|
-
}
|
2686
|
-
},
|
2687
|
-
{
|
2688
|
-
"name": "disabled",
|
2689
|
-
"type": {
|
2690
|
-
"text": "boolean | undefined"
|
2691
|
-
},
|
2692
|
-
"description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
|
2693
|
-
"default": "undefined",
|
2694
|
-
"fieldName": "disabled",
|
2695
|
-
"inheritedFrom": {
|
2696
|
-
"name": "DisabledMixin",
|
2697
|
-
"module": "src/utils/mixins/DisabledMixin.ts"
|
2698
|
-
}
|
2699
|
-
},
|
2700
|
-
{
|
2701
|
-
"name": "active",
|
2702
|
-
"type": {
|
2703
|
-
"text": "boolean | undefined"
|
2704
|
-
},
|
2705
|
-
"description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.\n\nThis attribute is used to set the provided `ariaStateKey` to true or false.",
|
2706
|
-
"default": "undefined",
|
2707
|
-
"fieldName": "active",
|
2708
|
-
"inheritedFrom": {
|
2709
|
-
"name": "Buttonsimple",
|
2710
|
-
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2711
|
-
}
|
2756
|
+
"description": "The maximum number can be set up to 999, anything above that will be rendered as _999+_.\nThe max counter can be `9`, `99` or `999`.",
|
2757
|
+
"default": "99",
|
2758
|
+
"fieldName": "maxCounter"
|
2712
2759
|
},
|
2713
2760
|
{
|
2714
|
-
"name": "
|
2761
|
+
"name": "overlay",
|
2715
2762
|
"type": {
|
2716
|
-
"text": "boolean
|
2763
|
+
"text": "boolean"
|
2717
2764
|
},
|
2718
|
-
"
|
2719
|
-
"
|
2720
|
-
"fieldName": "
|
2721
|
-
"inheritedFrom": {
|
2722
|
-
"name": "Buttonsimple",
|
2723
|
-
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2724
|
-
}
|
2765
|
+
"default": "false",
|
2766
|
+
"description": "Overlay is to add a thin outline to the badge.\nThis will help distinguish between the badge and the button,\nwhere the badge will be layered on top of a button.",
|
2767
|
+
"fieldName": "overlay"
|
2725
2768
|
},
|
2726
2769
|
{
|
2727
|
-
"name": "
|
2770
|
+
"name": "aria-label",
|
2728
2771
|
"type": {
|
2729
|
-
"text": "string |
|
2772
|
+
"text": "string | null"
|
2730
2773
|
},
|
2731
|
-
"
|
2732
|
-
"
|
2733
|
-
"fieldName": "
|
2734
|
-
"inheritedFrom": {
|
2735
|
-
"name": "Buttonsimple",
|
2736
|
-
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2737
|
-
}
|
2774
|
+
"default": "null",
|
2775
|
+
"description": "Aria-label attribute to be set for accessibility",
|
2776
|
+
"fieldName": "ariaLabel"
|
2738
2777
|
},
|
2739
2778
|
{
|
2740
|
-
"name": "
|
2779
|
+
"name": "icon-name",
|
2741
2780
|
"type": {
|
2742
|
-
"text": "
|
2781
|
+
"text": "IconNames | undefined"
|
2743
2782
|
},
|
2744
|
-
"description": "
|
2745
|
-
"
|
2746
|
-
"fieldName": "type",
|
2783
|
+
"description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
|
2784
|
+
"fieldName": "iconName",
|
2747
2785
|
"inheritedFrom": {
|
2748
|
-
"name": "
|
2749
|
-
"module": "src/
|
2786
|
+
"name": "IconNameMixin",
|
2787
|
+
"module": "src/utils/mixins/IconNameMixin.ts"
|
2750
2788
|
}
|
2751
2789
|
}
|
2752
2790
|
],
|
2753
2791
|
"mixins": [
|
2754
2792
|
{
|
2755
|
-
"name": "
|
2756
|
-
"module": "/src/utils/mixins/
|
2793
|
+
"name": "IconNameMixin",
|
2794
|
+
"module": "/src/utils/mixins/IconNameMixin"
|
2757
2795
|
}
|
2758
2796
|
],
|
2759
2797
|
"superclass": {
|
2760
|
-
"name": "
|
2761
|
-
"module": "/src/
|
2798
|
+
"name": "Component",
|
2799
|
+
"module": "/src/models"
|
2762
2800
|
},
|
2763
|
-
"tagName": "mdc-
|
2764
|
-
"jsDoc": "/**\n * `mdc-
|
2765
|
-
"customElement": true
|
2766
|
-
"events": [
|
2767
|
-
{
|
2768
|
-
"description": "(React: onClick) This event is dispatched when the button is clicked.",
|
2769
|
-
"name": "click",
|
2770
|
-
"reactName": "onClick",
|
2771
|
-
"inheritedFrom": {
|
2772
|
-
"name": "Buttonsimple",
|
2773
|
-
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2774
|
-
}
|
2775
|
-
},
|
2776
|
-
{
|
2777
|
-
"description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the button.",
|
2778
|
-
"name": "keydown",
|
2779
|
-
"reactName": "onKeyDown",
|
2780
|
-
"inheritedFrom": {
|
2781
|
-
"name": "Buttonsimple",
|
2782
|
-
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2783
|
-
}
|
2784
|
-
},
|
2785
|
-
{
|
2786
|
-
"description": "(React: onKeyUp) This event is dispatched when a key is released on the button.",
|
2787
|
-
"name": "keyup",
|
2788
|
-
"reactName": "onKeyUp",
|
2789
|
-
"inheritedFrom": {
|
2790
|
-
"name": "Buttonsimple",
|
2791
|
-
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2792
|
-
}
|
2793
|
-
},
|
2794
|
-
{
|
2795
|
-
"description": "(React: onFocus) This event is dispatched when the button receives focus.",
|
2796
|
-
"name": "focus",
|
2797
|
-
"reactName": "onFocus",
|
2798
|
-
"inheritedFrom": {
|
2799
|
-
"name": "Buttonsimple",
|
2800
|
-
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
2801
|
-
}
|
2802
|
-
}
|
2803
|
-
]
|
2801
|
+
"tagName": "mdc-badge",
|
2802
|
+
"jsDoc": "/**\n * The `mdc-badge` component is a versatile UI element used to\n * display dot, icons, counters, success, warning and error type badge.\n *\n * Supported badge types:\n * - `dot`: Displays a dot notification badge with a blue color.\n * - `icon`: Displays a badge with a specified icon using the `icon-name` attribute.\n * - `counter`: Displays a badge with a counter value. If the counter exceeds the `max-counter`,\n * it shows `maxCounter+`. The maximum value of the counter is 999 and anything above that will be set to `999+`.\n * - `success`: Displays a success badge with a check circle icon and green color.\n * - `warning`: Displays a warning badge with a warning icon and yellow color.\n * - `error`: Displays a error badge with a error legacy icon and red color.\n *\n * For `icon`, `success`, `warning` and `error` types, the `mdc-icon` component is used to render the icon.\n *\n * For the `counter` type, the `mdc-text` component is used to render the counter value.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-badge\n *\n * @cssproperty --mdc-badge-primary-foreground-color - The foreground color of the primary badge.\n * @cssproperty --mdc-badge-primary-background-color - The background color of the primary badge.\n * @cssproperty --mdc-badge-secondary-foreground-color - The foreground color of the secondary badge.\n * @cssproperty --mdc-badge-secondary-background-color - The background color of the secondary badge.\n * @cssproperty --mdc-badge-success-foreground-color - The foreground color of the success badge.\n * @cssproperty --mdc-badge-success-background-color - The background color of the success badge.\n * @cssproperty --mdc-badge-warning-foreground-color - The foreground color of the warning badge.\n * @cssproperty --mdc-badge-warning-background-color - The background color of the warning badge.\n * @cssproperty --mdc-badge-error-foreground-color - The foreground color of the error badge.\n * @cssproperty --mdc-badge-error-background-color - The background color of the error badge.\n * @cssproperty --mdc-badge-overlay-background-color - The background color of the badge overlay.\n */",
|
2803
|
+
"customElement": true
|
2804
2804
|
}
|
2805
2805
|
],
|
2806
2806
|
"exports": [
|
@@ -2808,8 +2808,8 @@
|
|
2808
2808
|
"kind": "js",
|
2809
2809
|
"name": "default",
|
2810
2810
|
"declaration": {
|
2811
|
-
"name": "
|
2812
|
-
"module": "components/
|
2811
|
+
"name": "Badge",
|
2812
|
+
"module": "components/badge/badge.component.js"
|
2813
2813
|
}
|
2814
2814
|
}
|
2815
2815
|
]
|