@momentum-design/components 0.104.12 → 0.104.13

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.
@@ -8131,20 +8131,6 @@
8131
8131
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
8132
8132
  }
8133
8133
  },
8134
- {
8135
- "kind": "field",
8136
- "name": "id",
8137
- "type": {
8138
- "text": "string"
8139
- },
8140
- "default": "''",
8141
- "description": "The unique id of the input field. It is used to link the input field with the label.",
8142
- "attribute": "id",
8143
- "inheritedFrom": {
8144
- "name": "FormfieldWrapper",
8145
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
8146
- }
8147
- },
8148
8134
  {
8149
8135
  "kind": "field",
8150
8136
  "name": "helpTextType",
@@ -8426,19 +8412,6 @@
8426
8412
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
8427
8413
  }
8428
8414
  },
8429
- {
8430
- "name": "id",
8431
- "type": {
8432
- "text": "string"
8433
- },
8434
- "default": "''",
8435
- "description": "The unique id of the input field. It is used to link the input field with the label.",
8436
- "fieldName": "id",
8437
- "inheritedFrom": {
8438
- "name": "FormfieldWrapper",
8439
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
8440
- }
8441
- },
8442
8415
  {
8443
8416
  "name": "help-text-type",
8444
8417
  "type": {
@@ -13135,20 +13108,6 @@
13135
13108
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
13136
13109
  }
13137
13110
  },
13138
- {
13139
- "kind": "field",
13140
- "name": "id",
13141
- "type": {
13142
- "text": "string"
13143
- },
13144
- "default": "''",
13145
- "description": "The unique id of the input field. It is used to link the input field with the label.",
13146
- "attribute": "id",
13147
- "inheritedFrom": {
13148
- "name": "FormfieldWrapper",
13149
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
13150
- }
13151
- },
13152
13111
  {
13153
13112
  "kind": "field",
13154
13113
  "name": "helpTextType",
@@ -13361,19 +13320,6 @@
13361
13320
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
13362
13321
  }
13363
13322
  },
13364
- {
13365
- "name": "id",
13366
- "type": {
13367
- "text": "string"
13368
- },
13369
- "default": "''",
13370
- "description": "The unique id of the input field. It is used to link the input field with the label.",
13371
- "fieldName": "id",
13372
- "inheritedFrom": {
13373
- "name": "FormfieldWrapper",
13374
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
13375
- }
13376
- },
13377
13323
  {
13378
13324
  "name": "help-text-type",
13379
13325
  "type": {
@@ -13479,16 +13425,6 @@
13479
13425
  "attribute": "required",
13480
13426
  "reflects": true
13481
13427
  },
13482
- {
13483
- "kind": "field",
13484
- "name": "id",
13485
- "type": {
13486
- "text": "string"
13487
- },
13488
- "default": "''",
13489
- "description": "The unique id of the input field. It is used to link the input field with the label.",
13490
- "attribute": "id"
13491
- },
13492
13428
  {
13493
13429
  "kind": "field",
13494
13430
  "name": "helpTextType",
@@ -13629,15 +13565,6 @@
13629
13565
  "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
13630
13566
  "fieldName": "required"
13631
13567
  },
13632
- {
13633
- "name": "id",
13634
- "type": {
13635
- "text": "string"
13636
- },
13637
- "default": "''",
13638
- "description": "The unique id of the input field. It is used to link the input field with the label.",
13639
- "fieldName": "id"
13640
- },
13641
13568
  {
13642
13569
  "name": "help-text-type",
13643
13570
  "type": {
@@ -14654,20 +14581,6 @@
14654
14581
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
14655
14582
  }
14656
14583
  },
14657
- {
14658
- "kind": "field",
14659
- "name": "id",
14660
- "type": {
14661
- "text": "string"
14662
- },
14663
- "default": "''",
14664
- "description": "The unique id of the input field. It is used to link the input field with the label.",
14665
- "attribute": "id",
14666
- "inheritedFrom": {
14667
- "name": "FormfieldWrapper",
14668
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
14669
- }
14670
- },
14671
14584
  {
14672
14585
  "kind": "field",
14673
14586
  "name": "helpTextType",
@@ -15068,19 +14981,6 @@
15068
14981
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
15069
14982
  }
15070
14983
  },
15071
- {
15072
- "name": "id",
15073
- "type": {
15074
- "text": "string"
15075
- },
15076
- "default": "''",
15077
- "description": "The unique id of the input field. It is used to link the input field with the label.",
15078
- "fieldName": "id",
15079
- "inheritedFrom": {
15080
- "name": "FormfieldWrapper",
15081
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
15082
- }
15083
- },
15084
14984
  {
15085
14985
  "name": "help-text-type",
15086
14986
  "type": {
@@ -15815,588 +15715,268 @@
15815
15715
  },
15816
15716
  {
15817
15717
  "kind": "javascript-module",
15818
- "path": "components/linkbutton/linkbutton.component.js",
15718
+ "path": "components/list/list.component.js",
15819
15719
  "declarations": [
15820
15720
  {
15821
15721
  "kind": "class",
15822
- "description": "`mdc-linkbutton` visually mimics a hyperlink while functioning as a button. It blends the appearance of `mdc-link` with the accessibility and interaction capabilities of `mdc-button`.\n\n### Features:\n- Looks like a link, behaves like a button.\n- Supports slots for a text label and an optional trailing icon.\n- Inherits accessibility and keyboard interaction behavior from `mdc-buttonsimple`.",
15823
- "name": "LinkButton",
15824
- "cssProperties": [
15825
- {
15826
- "description": "Border radius of the linkbutton.",
15827
- "name": "--mdc-link-border-radius"
15828
- },
15829
- {
15830
- "description": "Color of the linkbutton’s child content in the active state.",
15831
- "name": "--mdc-link-color-active"
15832
- },
15833
- {
15834
- "description": "Color of the linkbutton’s child content in the disabled state.",
15835
- "name": "--mdc-link-color-disabled"
15836
- },
15837
- {
15838
- "description": "Color of the linkbutton’s child content in the hover state.",
15839
- "name": "--mdc-link-color-hover"
15840
- },
15841
- {
15842
- "description": "Color of the linkbutton’s child content in the normal state.",
15843
- "name": "--mdc-link-color-normal"
15844
- },
15845
- {
15846
- "description": "Color of the inverted linkbutton’s child content in the active state.",
15847
- "name": "--mdc-link-inverted-color-active"
15848
- },
15849
- {
15850
- "description": "Color of the inverted linkbutton’s child content in the disabled state.",
15851
- "name": "--mdc-link-inverted-color-disabled"
15852
- },
15853
- {
15854
- "description": "Color of the inverted linkbutton’s child content in the hover state.",
15855
- "name": "--mdc-link-inverted-color-hover"
15856
- },
15722
+ "description": "mdc-list component is used to display a group of list items. It is used as a container to wrap other list items.\n\nTo add a header to the list, use the `mdc-listheader` component and place it in the `list-header` slot.\n`mdc-listitem` components can be placed in the default slot.",
15723
+ "name": "List",
15724
+ "cssParts": [
15857
15725
  {
15858
- "description": "Color of the inverted linkbutton’s child content in the normal state.",
15859
- "name": "--mdc-link-inverted-color-normal"
15726
+ "description": "The container slot around the list items",
15727
+ "name": "container"
15860
15728
  }
15861
15729
  ],
15862
15730
  "slots": [
15863
15731
  {
15864
- "description": "Text label of the linkbutton.",
15865
- "name": ""
15732
+ "description": "This is a default/unnamed slot, where listitems can be placed.",
15733
+ "name": "default"
15734
+ },
15735
+ {
15736
+ "description": "This slot is used to pass a header for the list, which can be a `mdc-listheader` component.",
15737
+ "name": "list-header"
15866
15738
  }
15867
15739
  ],
15868
15740
  "members": [
15869
15741
  {
15870
- "kind": "field",
15871
- "name": "size",
15872
- "type": {
15873
- "text": "ButtonSize"
15742
+ "kind": "method",
15743
+ "name": "handleKeyDown",
15744
+ "privacy": "private",
15745
+ "return": {
15746
+ "type": {
15747
+ "text": "void"
15748
+ }
15874
15749
  },
15875
- "description": "Sets the size of the linkbutton.\nAcceptable values: \n- 12\n- 14\n- 16",
15876
- "default": "16",
15877
- "attribute": "size",
15878
- "reflects": true,
15879
- "inheritedFrom": {
15880
- "name": "Buttonsimple",
15881
- "module": "components/buttonsimple/buttonsimple.component.js"
15882
- }
15750
+ "parameters": [
15751
+ {
15752
+ "name": "event",
15753
+ "type": {
15754
+ "text": "KeyboardEvent"
15755
+ },
15756
+ "description": "The keyboard event."
15757
+ }
15758
+ ],
15759
+ "description": "Handles the keydown event on the list element.\nIf the key is 'ArrowUp' or 'ArrowDown', it focuses to the previous or next list item\nand sets the active tabindex of the list item.\nPrevents the default event behavior."
15883
15760
  },
15884
15761
  {
15885
- "kind": "field",
15886
- "name": "inline",
15887
- "type": {
15888
- "text": "boolean"
15762
+ "kind": "method",
15763
+ "name": "getCurrentIndex",
15764
+ "privacy": "private",
15765
+ "return": {
15766
+ "type": {
15767
+ "text": ""
15768
+ }
15889
15769
  },
15890
- "description": "The linkbutton can be inline or standalone.",
15891
- "default": "false",
15892
- "attribute": "inline",
15893
- "reflects": true
15770
+ "parameters": [
15771
+ {
15772
+ "name": "target",
15773
+ "type": {
15774
+ "text": "EventTarget | null"
15775
+ },
15776
+ "description": "The target element to find the index of."
15777
+ }
15778
+ ],
15779
+ "description": "Returns the index of the given target in the listItems array.\nIf the target is not a list item, but a child element of a list item,\nit returns the index of the parent list item."
15894
15780
  },
15895
15781
  {
15896
- "kind": "field",
15897
- "name": "inverted",
15898
- "type": {
15899
- "text": "boolean"
15782
+ "kind": "method",
15783
+ "name": "getNewIndexBasedOnKey",
15784
+ "privacy": "private",
15785
+ "return": {
15786
+ "type": {
15787
+ "text": ""
15788
+ }
15900
15789
  },
15901
- "description": "The linkbutton color can be inverted by setting the inverted attribute to true.",
15902
- "default": "false",
15903
- "attribute": "inverted",
15904
- "reflects": true
15790
+ "parameters": [
15791
+ {
15792
+ "name": "key",
15793
+ "type": {
15794
+ "text": "string"
15795
+ },
15796
+ "description": "The key that was pressed."
15797
+ },
15798
+ {
15799
+ "name": "currentIndex",
15800
+ "type": {
15801
+ "text": "number"
15802
+ },
15803
+ "description": "The current index of the focused list item."
15804
+ },
15805
+ {
15806
+ "name": "wrappedDivsCount",
15807
+ "type": {
15808
+ "text": "number"
15809
+ },
15810
+ "description": "The total number of list items."
15811
+ }
15812
+ ],
15813
+ "description": "Calculates a new index based on the pressed keyboard key.\nSupports navigation keys for moving focus within a list."
15905
15814
  },
15906
15815
  {
15907
15816
  "kind": "method",
15908
- "name": "setSize",
15909
- "privacy": "private",
15817
+ "name": "handleMouseClick",
15818
+ "privacy": "protected",
15819
+ "return": {
15820
+ "type": {
15821
+ "text": "void"
15822
+ }
15823
+ },
15910
15824
  "parameters": [
15911
15825
  {
15912
- "name": "size",
15826
+ "name": "event",
15913
15827
  "type": {
15914
- "text": "LinkButtonSize"
15828
+ "text": "MouseEvent"
15915
15829
  },
15916
- "description": "The desired link size."
15830
+ "description": "The mouse event."
15917
15831
  }
15918
15832
  ],
15919
- "description": "Sets the `size` attribute for the linkbutton, falling back to the default if the value is invalid."
15920
- },
15921
- {
15922
- "kind": "field",
15923
- "name": "iconName",
15924
- "type": {
15925
- "text": "IconNames | undefined"
15926
- },
15927
- "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
15928
- "attribute": "icon-name",
15929
- "inheritedFrom": {
15930
- "name": "IconNameMixin",
15931
- "module": "utils/mixins/IconNameMixin.js"
15932
- }
15933
- },
15934
- {
15935
- "kind": "field",
15936
- "name": "autofocus",
15937
- "type": {
15938
- "text": "boolean"
15939
- },
15940
- "default": "false",
15941
- "description": "This property indicates whether the element should receive focus automatically when it is rendered.",
15942
- "attribute": "autofocus",
15943
- "reflects": true,
15944
- "inheritedFrom": {
15945
- "name": "Buttonsimple",
15946
- "module": "components/buttonsimple/buttonsimple.component.js"
15947
- }
15948
- },
15949
- {
15950
- "kind": "field",
15951
- "name": "tabIndex",
15952
- "type": {
15953
- "text": "number"
15954
- },
15955
- "default": "0",
15956
- "description": "This property specifies the tab order of the element.",
15957
- "attribute": "tabIndex",
15958
- "reflects": true,
15959
- "inheritedFrom": {
15960
- "name": "Buttonsimple",
15961
- "module": "components/buttonsimple/buttonsimple.component.js"
15962
- }
15963
- },
15964
- {
15965
- "kind": "field",
15966
- "name": "disabled",
15967
- "type": {
15968
- "text": "boolean | undefined"
15969
- },
15970
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
15971
- "default": "undefined",
15972
- "attribute": "disabled",
15973
- "reflects": true,
15974
- "inheritedFrom": {
15975
- "name": "Buttonsimple",
15976
- "module": "components/buttonsimple/buttonsimple.component.js"
15977
- }
15978
- },
15979
- {
15980
- "kind": "field",
15981
- "name": "active",
15982
- "type": {
15983
- "text": "boolean | undefined"
15984
- },
15985
- "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.",
15986
- "default": "undefined",
15987
- "attribute": "active",
15988
- "reflects": true,
15989
- "inheritedFrom": {
15990
- "name": "Buttonsimple",
15991
- "module": "components/buttonsimple/buttonsimple.component.js"
15992
- }
15993
- },
15994
- {
15995
- "kind": "field",
15996
- "name": "softDisabled",
15997
- "type": {
15998
- "text": "boolean | undefined"
15999
- },
16000
- "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.",
16001
- "default": "undefined",
16002
- "attribute": "soft-disabled",
16003
- "reflects": true,
16004
- "inheritedFrom": {
16005
- "name": "Buttonsimple",
16006
- "module": "components/buttonsimple/buttonsimple.component.js"
16007
- }
16008
- },
16009
- {
16010
- "kind": "field",
16011
- "name": "role",
16012
- "type": {
16013
- "text": "RoleType"
16014
- },
16015
- "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.",
16016
- "default": "button",
16017
- "attribute": "role",
16018
- "reflects": true,
16019
- "inheritedFrom": {
16020
- "name": "Buttonsimple",
16021
- "module": "components/buttonsimple/buttonsimple.component.js"
16022
- }
16023
- },
16024
- {
16025
- "kind": "field",
16026
- "name": "ariaStateKey",
16027
- "type": {
16028
- "text": "string | undefined"
16029
- },
16030
- "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`",
16031
- "default": "'aria-pressed' (when)",
16032
- "attribute": "ariaStateKey",
16033
- "reflects": true,
16034
- "inheritedFrom": {
16035
- "name": "Buttonsimple",
16036
- "module": "components/buttonsimple/buttonsimple.component.js"
16037
- }
16038
- },
16039
- {
16040
- "kind": "field",
16041
- "name": "type",
16042
- "type": {
16043
- "text": "ButtonType"
16044
- },
16045
- "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.",
16046
- "default": "button",
16047
- "attribute": "type",
16048
- "reflects": true,
16049
- "inheritedFrom": {
16050
- "name": "Buttonsimple",
16051
- "module": "components/buttonsimple/buttonsimple.component.js"
16052
- }
16053
- },
16054
- {
16055
- "kind": "method",
16056
- "name": "executeAction",
16057
- "privacy": "protected",
16058
- "inheritedFrom": {
16059
- "name": "Buttonsimple",
16060
- "module": "components/buttonsimple/buttonsimple.component.js"
16061
- }
16062
- },
16063
- {
16064
- "kind": "method",
16065
- "name": "setActive",
16066
- "privacy": "protected",
16067
- "parameters": [
16068
- {
16069
- "name": "element",
16070
- "type": {
16071
- "text": "HTMLElement"
16072
- },
16073
- "description": "The button element"
16074
- },
16075
- {
16076
- "name": "active",
16077
- "optional": true,
16078
- "type": {
16079
- "text": "boolean"
16080
- },
16081
- "description": "The active state of the element"
16082
- }
16083
- ],
16084
- "description": "Sets the ariaStateKey attributes based on the active state of the button.",
16085
- "inheritedFrom": {
16086
- "name": "Buttonsimple",
16087
- "module": "components/buttonsimple/buttonsimple.component.js"
16088
- }
16089
- },
16090
- {
16091
- "kind": "method",
16092
- "name": "setSoftDisabled",
16093
- "privacy": "private",
16094
- "parameters": [
16095
- {
16096
- "name": "element",
16097
- "type": {
16098
- "text": "HTMLElement"
16099
- },
16100
- "description": "The button element."
16101
- },
16102
- {
16103
- "name": "softDisabled",
16104
- "optional": true,
16105
- "type": {
16106
- "text": "boolean"
16107
- },
16108
- "description": "The soft-disabled state."
16109
- }
16110
- ],
16111
- "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.",
16112
- "inheritedFrom": {
16113
- "name": "Buttonsimple",
16114
- "module": "components/buttonsimple/buttonsimple.component.js"
16115
- }
16116
- },
16117
- {
16118
- "kind": "method",
16119
- "name": "setDisabled",
16120
- "privacy": "private",
16121
- "parameters": [
16122
- {
16123
- "name": "element",
16124
- "type": {
16125
- "text": "HTMLElement"
16126
- },
16127
- "description": "The button element."
16128
- },
16129
- {
16130
- "name": "disabled",
16131
- "type": {
16132
- "text": "boolean"
16133
- },
16134
- "description": "The disabled state."
16135
- }
16136
- ],
16137
- "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.",
16138
- "inheritedFrom": {
16139
- "name": "Buttonsimple",
16140
- "module": "components/buttonsimple/buttonsimple.component.js"
16141
- }
16142
- },
16143
- {
16144
- "kind": "method",
16145
- "name": "triggerClickEvent",
16146
- "privacy": "private",
16147
- "inheritedFrom": {
16148
- "name": "Buttonsimple",
16149
- "module": "components/buttonsimple/buttonsimple.component.js"
16150
- }
16151
- },
16152
- {
16153
- "kind": "method",
16154
- "name": "handleBlur",
16155
- "privacy": "private",
16156
- "description": "In case the button is pressed and the focus is lost while pressing,\nthe pressed class is removed.",
16157
- "inheritedFrom": {
16158
- "name": "Buttonsimple",
16159
- "module": "components/buttonsimple/buttonsimple.component.js"
16160
- }
16161
- },
16162
- {
16163
- "kind": "method",
16164
- "name": "handleKeyDown",
16165
- "privacy": "private",
16166
- "parameters": [
16167
- {
16168
- "name": "event",
16169
- "type": {
16170
- "text": "KeyboardEvent"
16171
- },
16172
- "description": "The keyboard event."
16173
- }
16174
- ],
16175
- "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.",
16176
- "inheritedFrom": {
16177
- "name": "Buttonsimple",
16178
- "module": "components/buttonsimple/buttonsimple.component.js"
16179
- }
15833
+ "description": "Handles the mouse click event on the list element.\nFinds the index of the target element in the list items array and calls\n`resetTabIndexAndSetActiveTabIndex` with that index."
16180
15834
  },
16181
15835
  {
16182
15836
  "kind": "method",
16183
- "name": "handleKeyUp",
15837
+ "name": "resetTabIndexAndSetActiveTabIndex",
16184
15838
  "privacy": "private",
16185
15839
  "parameters": [
16186
15840
  {
16187
- "name": "event",
15841
+ "name": "newIndex",
16188
15842
  "type": {
16189
- "text": "KeyboardEvent"
15843
+ "text": "number"
16190
15844
  },
16191
- "description": "The keyboard event."
15845
+ "description": "The index of the new active element in the list."
16192
15846
  }
16193
15847
  ],
16194
- "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.",
16195
- "inheritedFrom": {
16196
- "name": "Buttonsimple",
16197
- "module": "components/buttonsimple/buttonsimple.component.js"
16198
- }
15848
+ "description": "Resets all list items tabindex to -1 and sets the tabindex of the\nelement at the given index to 0, effectively setting the active\nelement. This is used when navigating the list via keyboard."
16199
15849
  }
16200
15850
  ],
16201
- "events": [
16202
- {
16203
- "description": "(React: onClick) This event is dispatched when the linkbutton is clicked.",
16204
- "name": "click",
16205
- "reactName": "onClick",
16206
- "inheritedFrom": {
16207
- "name": "Buttonsimple",
16208
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16209
- }
16210
- },
15851
+ "superclass": {
15852
+ "name": "Component",
15853
+ "module": "/src/models"
15854
+ },
15855
+ "tagName": "mdc-list",
15856
+ "jsDoc": "/**\n * mdc-list component is used to display a group of list items. It is used as a container to wrap other list items.\n *\n * To add a header to the list, use the `mdc-listheader` component and place it in the `list-header` slot.\n * `mdc-listitem` components can be placed in the default slot.\n *\n * @tagname mdc-list\n *\n * @slot default - This is a default/unnamed slot, where listitems can be placed.\n * @slot list-header - This slot is used to pass a header for the list, which can be a `mdc-listheader` component.\n *\n * @csspart container - The container slot around the list items\n */",
15857
+ "customElement": true
15858
+ }
15859
+ ],
15860
+ "exports": [
15861
+ {
15862
+ "kind": "js",
15863
+ "name": "default",
15864
+ "declaration": {
15865
+ "name": "List",
15866
+ "module": "components/list/list.component.js"
15867
+ }
15868
+ }
15869
+ ]
15870
+ },
15871
+ {
15872
+ "kind": "javascript-module",
15873
+ "path": "components/listheader/listheader.component.js",
15874
+ "declarations": [
15875
+ {
15876
+ "kind": "class",
15877
+ "description": "Listheader component is used to display a header in a list.\nIt can include icons before and after the header text, and allows for additional content via slots.",
15878
+ "name": "Listheader",
15879
+ "cssProperties": [
16211
15880
  {
16212
- "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.",
16213
- "name": "keydown",
16214
- "reactName": "onKeyDown",
16215
- "inheritedFrom": {
16216
- "name": "Buttonsimple",
16217
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16218
- }
15881
+ "description": "height of the header",
15882
+ "name": "--mdc-listheader-height"
16219
15883
  },
16220
15884
  {
16221
- "description": "(React: onKeyUp) This event is dispatched when a key is released on the linkbutton.",
16222
- "name": "keyup",
16223
- "reactName": "onKeyUp",
16224
- "inheritedFrom": {
16225
- "name": "Buttonsimple",
16226
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16227
- }
15885
+ "description": "padding around the header content",
15886
+ "name": "--mdc-listheader-padding"
16228
15887
  },
16229
15888
  {
16230
- "description": "(React: onFocus) This event is dispatched when the linkbutton receives focus.",
16231
- "name": "focus",
16232
- "reactName": "onFocus",
16233
- "inheritedFrom": {
16234
- "name": "Buttonsimple",
16235
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16236
- }
15889
+ "description": "gap between content",
15890
+ "name": "--mdc-listheader-gap"
16237
15891
  }
16238
15892
  ],
16239
- "attributes": [
16240
- {
16241
- "name": "size",
16242
- "type": {
16243
- "text": "ButtonSize"
16244
- },
16245
- "description": "Sets the size of the linkbutton.\nAcceptable values: \n- 12\n- 14\n- 16",
16246
- "default": "16",
16247
- "fieldName": "size",
16248
- "inheritedFrom": {
16249
- "name": "Buttonsimple",
16250
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16251
- }
16252
- },
16253
- {
16254
- "name": "inline",
16255
- "type": {
16256
- "text": "boolean"
16257
- },
16258
- "description": "The linkbutton can be inline or standalone.",
16259
- "default": "false",
16260
- "fieldName": "inline"
16261
- },
15893
+ "slots": [
16262
15894
  {
16263
- "name": "inverted",
16264
- "type": {
16265
- "text": "boolean"
16266
- },
16267
- "description": "The linkbutton color can be inverted by setting the inverted attribute to true.",
16268
- "default": "false",
16269
- "fieldName": "inverted"
16270
- },
15895
+ "description": "to pass in actionable content like buttons or links",
15896
+ "name": "default"
15897
+ }
15898
+ ],
15899
+ "members": [
16271
15900
  {
16272
- "name": "icon-name",
15901
+ "kind": "field",
15902
+ "name": "prefixIcon",
16273
15903
  "type": {
16274
15904
  "text": "IconNames | undefined"
16275
15905
  },
16276
- "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
16277
- "fieldName": "iconName",
16278
- "inheritedFrom": {
16279
- "name": "IconNameMixin",
16280
- "module": "src/utils/mixins/IconNameMixin.ts"
16281
- }
15906
+ "description": "Name of the icon rendered before the text\n\nIf not provided, no icon will be rendered and text will be aligned to the start.",
15907
+ "attribute": "prefix-icon"
16282
15908
  },
16283
15909
  {
16284
- "name": "autofocus",
15910
+ "kind": "field",
15911
+ "name": "postfixIcon",
16285
15912
  "type": {
16286
- "text": "boolean"
15913
+ "text": "IconNames | undefined"
16287
15914
  },
16288
- "default": "false",
16289
- "description": "This property indicates whether the element should receive focus automatically when it is rendered.",
16290
- "fieldName": "autofocus",
16291
- "inheritedFrom": {
16292
- "name": "Buttonsimple",
16293
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16294
- }
15915
+ "description": "Name of the icon rendered after the slot & text\n\nIf not provided, no icon will be rendered and content will be aligned to the end.",
15916
+ "attribute": "postfix-icon"
16295
15917
  },
16296
15918
  {
16297
- "name": "tabIndex",
15919
+ "kind": "field",
15920
+ "name": "headerText",
16298
15921
  "type": {
16299
- "text": "number"
15922
+ "text": "string | undefined"
16300
15923
  },
16301
- "default": "0",
16302
- "description": "This property specifies the tab order of the element.",
16303
- "fieldName": "tabIndex",
16304
- "inheritedFrom": {
16305
- "name": "Buttonsimple",
16306
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16307
- }
15924
+ "description": "Text to be rendered in the header",
15925
+ "attribute": "header-text"
16308
15926
  },
16309
15927
  {
15928
+ "kind": "field",
16310
15929
  "name": "disabled",
16311
15930
  "type": {
16312
- "text": "boolean | undefined"
16313
- },
16314
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
16315
- "default": "undefined",
16316
- "fieldName": "disabled",
16317
- "inheritedFrom": {
16318
- "name": "Buttonsimple",
16319
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16320
- }
16321
- },
16322
- {
16323
- "name": "active",
16324
- "type": {
16325
- "text": "boolean | undefined"
15931
+ "text": "boolean"
16326
15932
  },
16327
- "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.",
16328
- "default": "undefined",
16329
- "fieldName": "active",
16330
- "inheritedFrom": {
16331
- "name": "Buttonsimple",
16332
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16333
- }
16334
- },
15933
+ "default": "false",
15934
+ "description": "Disables the header, making it visually styled as disabled.\n\nNOTE: slot content will still be interactive unless individually disabled.\nMake sure to handle the disabled state of any actionable elements inside the slot.",
15935
+ "attribute": "disabled",
15936
+ "reflects": true
15937
+ }
15938
+ ],
15939
+ "attributes": [
16335
15940
  {
16336
- "name": "soft-disabled",
15941
+ "name": "prefix-icon",
16337
15942
  "type": {
16338
- "text": "boolean | undefined"
15943
+ "text": "IconNames | undefined"
16339
15944
  },
16340
- "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.",
16341
- "default": "undefined",
16342
- "fieldName": "softDisabled",
16343
- "inheritedFrom": {
16344
- "name": "Buttonsimple",
16345
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16346
- }
15945
+ "description": "Name of the icon rendered before the text\n\nIf not provided, no icon will be rendered and text will be aligned to the start.",
15946
+ "fieldName": "prefixIcon"
16347
15947
  },
16348
15948
  {
16349
- "name": "role",
15949
+ "name": "postfix-icon",
16350
15950
  "type": {
16351
- "text": "RoleType"
15951
+ "text": "IconNames | undefined"
16352
15952
  },
16353
- "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.",
16354
- "default": "button",
16355
- "fieldName": "role",
16356
- "inheritedFrom": {
16357
- "name": "Buttonsimple",
16358
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16359
- }
15953
+ "description": "Name of the icon rendered after the slot & text\n\nIf not provided, no icon will be rendered and content will be aligned to the end.",
15954
+ "fieldName": "postfixIcon"
16360
15955
  },
16361
15956
  {
16362
- "name": "ariaStateKey",
15957
+ "name": "header-text",
16363
15958
  "type": {
16364
15959
  "text": "string | undefined"
16365
15960
  },
16366
- "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`",
16367
- "default": "'aria-pressed' (when)",
16368
- "fieldName": "ariaStateKey",
16369
- "inheritedFrom": {
16370
- "name": "Buttonsimple",
16371
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16372
- }
15961
+ "description": "Text to be rendered in the header",
15962
+ "fieldName": "headerText"
16373
15963
  },
16374
15964
  {
16375
- "name": "type",
16376
- "type": {
16377
- "text": "ButtonType"
16378
- },
16379
- "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.",
16380
- "default": "button",
16381
- "fieldName": "type",
16382
- "inheritedFrom": {
16383
- "name": "Buttonsimple",
16384
- "module": "src/components/buttonsimple/buttonsimple.component.ts"
16385
- }
16386
- }
16387
- ],
16388
- "mixins": [
16389
- {
16390
- "name": "IconNameMixin",
16391
- "module": "/src/utils/mixins/IconNameMixin"
15965
+ "name": "disabled",
15966
+ "type": {
15967
+ "text": "boolean"
15968
+ },
15969
+ "default": "false",
15970
+ "description": "Disables the header, making it visually styled as disabled.\n\nNOTE: slot content will still be interactive unless individually disabled.\nMake sure to handle the disabled state of any actionable elements inside the slot.",
15971
+ "fieldName": "disabled"
16392
15972
  }
16393
15973
  ],
16394
15974
  "superclass": {
16395
- "name": "Buttonsimple",
16396
- "module": "/src/components/buttonsimple/buttonsimple.component"
15975
+ "name": "Component",
15976
+ "module": "/src/models"
16397
15977
  },
16398
- "tagName": "mdc-linkbutton",
16399
- "jsDoc": "/**\n * `mdc-linkbutton` visually mimics a hyperlink while functioning as a button. It blends the appearance of `mdc-link` with the accessibility and interaction capabilities of `mdc-button`.\n *\n * ### Features:\n * - Looks like a link, behaves like a button.\n * - Supports slots for a text label and an optional trailing icon.\n * - Inherits accessibility and keyboard interaction behavior from `mdc-buttonsimple`.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-linkbutton\n *\n * @slot - Text label of the linkbutton.\n *\n * @event click - (React: onClick) This event is dispatched when the linkbutton is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the linkbutton.\n * @event focus - (React: onFocus) This event is dispatched when the linkbutton receives focus.\n *\n * @cssproperty --mdc-link-border-radius - Border radius of the linkbutton.\n * @cssproperty --mdc-link-color-active - Color of the linkbutton’s child content in the active state.\n * @cssproperty --mdc-link-color-disabled - Color of the linkbutton’s child content in the disabled state.\n * @cssproperty --mdc-link-color-hover - Color of the linkbutton’s child content in the hover state.\n * @cssproperty --mdc-link-color-normal - Color of the linkbutton’s child content in the normal state.\n * @cssproperty --mdc-link-inverted-color-active - Color of the inverted linkbutton’s child content in the active state.\n * @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted linkbutton’s child content in the disabled state.\n * @cssproperty --mdc-link-inverted-color-hover - Color of the inverted linkbutton’s child content in the hover state.\n * @cssproperty --mdc-link-inverted-color-normal - Color of the inverted linkbutton’s child content in the normal state.\n */",
15978
+ "tagName": "mdc-listheader",
15979
+ "jsDoc": "/**\n * Listheader component is used to display a header in a list.\n * It can include icons before and after the header text, and allows for additional content via slots.\n *\n * @tagname mdc-listheader\n *\n * @slot default - to pass in actionable content like buttons or links\n *\n * @cssproperty --mdc-listheader-height - height of the header\n * @cssproperty --mdc-listheader-padding - padding around the header content\n * @cssproperty --mdc-listheader-gap - gap between content\n */",
16400
15980
  "customElement": true
16401
15981
  }
16402
15982
  ],
@@ -16405,8 +15985,8 @@
16405
15985
  "kind": "js",
16406
15986
  "name": "default",
16407
15987
  "declaration": {
16408
- "name": "LinkButton",
16409
- "module": "components/linkbutton/linkbutton.component.js"
15988
+ "name": "Listheader",
15989
+ "module": "components/listheader/listheader.component.js"
16410
15990
  }
16411
15991
  }
16412
15992
  ]
@@ -16702,268 +16282,588 @@
16702
16282
  },
16703
16283
  {
16704
16284
  "kind": "javascript-module",
16705
- "path": "components/list/list.component.js",
16285
+ "path": "components/linkbutton/linkbutton.component.js",
16706
16286
  "declarations": [
16707
16287
  {
16708
16288
  "kind": "class",
16709
- "description": "mdc-list component is used to display a group of list items. It is used as a container to wrap other list items.\n\nTo add a header to the list, use the `mdc-listheader` component and place it in the `list-header` slot.\n`mdc-listitem` components can be placed in the default slot.",
16710
- "name": "List",
16711
- "cssParts": [
16289
+ "description": "`mdc-linkbutton` visually mimics a hyperlink while functioning as a button. It blends the appearance of `mdc-link` with the accessibility and interaction capabilities of `mdc-button`.\n\n### Features:\n- Looks like a link, behaves like a button.\n- Supports slots for a text label and an optional trailing icon.\n- Inherits accessibility and keyboard interaction behavior from `mdc-buttonsimple`.",
16290
+ "name": "LinkButton",
16291
+ "cssProperties": [
16712
16292
  {
16713
- "description": "The container slot around the list items",
16714
- "name": "container"
16293
+ "description": "Border radius of the linkbutton.",
16294
+ "name": "--mdc-link-border-radius"
16295
+ },
16296
+ {
16297
+ "description": "Color of the linkbutton’s child content in the active state.",
16298
+ "name": "--mdc-link-color-active"
16299
+ },
16300
+ {
16301
+ "description": "Color of the linkbutton’s child content in the disabled state.",
16302
+ "name": "--mdc-link-color-disabled"
16303
+ },
16304
+ {
16305
+ "description": "Color of the linkbutton’s child content in the hover state.",
16306
+ "name": "--mdc-link-color-hover"
16307
+ },
16308
+ {
16309
+ "description": "Color of the linkbutton’s child content in the normal state.",
16310
+ "name": "--mdc-link-color-normal"
16311
+ },
16312
+ {
16313
+ "description": "Color of the inverted linkbutton’s child content in the active state.",
16314
+ "name": "--mdc-link-inverted-color-active"
16315
+ },
16316
+ {
16317
+ "description": "Color of the inverted linkbutton’s child content in the disabled state.",
16318
+ "name": "--mdc-link-inverted-color-disabled"
16319
+ },
16320
+ {
16321
+ "description": "Color of the inverted linkbutton’s child content in the hover state.",
16322
+ "name": "--mdc-link-inverted-color-hover"
16323
+ },
16324
+ {
16325
+ "description": "Color of the inverted linkbutton’s child content in the normal state.",
16326
+ "name": "--mdc-link-inverted-color-normal"
16715
16327
  }
16716
16328
  ],
16717
16329
  "slots": [
16718
16330
  {
16719
- "description": "This is a default/unnamed slot, where listitems can be placed.",
16720
- "name": "default"
16331
+ "description": "Text label of the linkbutton.",
16332
+ "name": ""
16333
+ }
16334
+ ],
16335
+ "members": [
16336
+ {
16337
+ "kind": "field",
16338
+ "name": "size",
16339
+ "type": {
16340
+ "text": "ButtonSize"
16341
+ },
16342
+ "description": "Sets the size of the linkbutton.\nAcceptable values: \n- 12\n- 14\n- 16",
16343
+ "default": "16",
16344
+ "attribute": "size",
16345
+ "reflects": true,
16346
+ "inheritedFrom": {
16347
+ "name": "Buttonsimple",
16348
+ "module": "components/buttonsimple/buttonsimple.component.js"
16349
+ }
16350
+ },
16351
+ {
16352
+ "kind": "field",
16353
+ "name": "inline",
16354
+ "type": {
16355
+ "text": "boolean"
16356
+ },
16357
+ "description": "The linkbutton can be inline or standalone.",
16358
+ "default": "false",
16359
+ "attribute": "inline",
16360
+ "reflects": true
16361
+ },
16362
+ {
16363
+ "kind": "field",
16364
+ "name": "inverted",
16365
+ "type": {
16366
+ "text": "boolean"
16367
+ },
16368
+ "description": "The linkbutton color can be inverted by setting the inverted attribute to true.",
16369
+ "default": "false",
16370
+ "attribute": "inverted",
16371
+ "reflects": true
16372
+ },
16373
+ {
16374
+ "kind": "method",
16375
+ "name": "setSize",
16376
+ "privacy": "private",
16377
+ "parameters": [
16378
+ {
16379
+ "name": "size",
16380
+ "type": {
16381
+ "text": "LinkButtonSize"
16382
+ },
16383
+ "description": "The desired link size."
16384
+ }
16385
+ ],
16386
+ "description": "Sets the `size` attribute for the linkbutton, falling back to the default if the value is invalid."
16387
+ },
16388
+ {
16389
+ "kind": "field",
16390
+ "name": "iconName",
16391
+ "type": {
16392
+ "text": "IconNames | undefined"
16393
+ },
16394
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
16395
+ "attribute": "icon-name",
16396
+ "inheritedFrom": {
16397
+ "name": "IconNameMixin",
16398
+ "module": "utils/mixins/IconNameMixin.js"
16399
+ }
16400
+ },
16401
+ {
16402
+ "kind": "field",
16403
+ "name": "autofocus",
16404
+ "type": {
16405
+ "text": "boolean"
16406
+ },
16407
+ "default": "false",
16408
+ "description": "This property indicates whether the element should receive focus automatically when it is rendered.",
16409
+ "attribute": "autofocus",
16410
+ "reflects": true,
16411
+ "inheritedFrom": {
16412
+ "name": "Buttonsimple",
16413
+ "module": "components/buttonsimple/buttonsimple.component.js"
16414
+ }
16415
+ },
16416
+ {
16417
+ "kind": "field",
16418
+ "name": "tabIndex",
16419
+ "type": {
16420
+ "text": "number"
16421
+ },
16422
+ "default": "0",
16423
+ "description": "This property specifies the tab order of the element.",
16424
+ "attribute": "tabIndex",
16425
+ "reflects": true,
16426
+ "inheritedFrom": {
16427
+ "name": "Buttonsimple",
16428
+ "module": "components/buttonsimple/buttonsimple.component.js"
16429
+ }
16430
+ },
16431
+ {
16432
+ "kind": "field",
16433
+ "name": "disabled",
16434
+ "type": {
16435
+ "text": "boolean | undefined"
16436
+ },
16437
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
16438
+ "default": "undefined",
16439
+ "attribute": "disabled",
16440
+ "reflects": true,
16441
+ "inheritedFrom": {
16442
+ "name": "Buttonsimple",
16443
+ "module": "components/buttonsimple/buttonsimple.component.js"
16444
+ }
16445
+ },
16446
+ {
16447
+ "kind": "field",
16448
+ "name": "active",
16449
+ "type": {
16450
+ "text": "boolean | undefined"
16451
+ },
16452
+ "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.",
16453
+ "default": "undefined",
16454
+ "attribute": "active",
16455
+ "reflects": true,
16456
+ "inheritedFrom": {
16457
+ "name": "Buttonsimple",
16458
+ "module": "components/buttonsimple/buttonsimple.component.js"
16459
+ }
16460
+ },
16461
+ {
16462
+ "kind": "field",
16463
+ "name": "softDisabled",
16464
+ "type": {
16465
+ "text": "boolean | undefined"
16466
+ },
16467
+ "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.",
16468
+ "default": "undefined",
16469
+ "attribute": "soft-disabled",
16470
+ "reflects": true,
16471
+ "inheritedFrom": {
16472
+ "name": "Buttonsimple",
16473
+ "module": "components/buttonsimple/buttonsimple.component.js"
16474
+ }
16475
+ },
16476
+ {
16477
+ "kind": "field",
16478
+ "name": "role",
16479
+ "type": {
16480
+ "text": "RoleType"
16481
+ },
16482
+ "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.",
16483
+ "default": "button",
16484
+ "attribute": "role",
16485
+ "reflects": true,
16486
+ "inheritedFrom": {
16487
+ "name": "Buttonsimple",
16488
+ "module": "components/buttonsimple/buttonsimple.component.js"
16489
+ }
16490
+ },
16491
+ {
16492
+ "kind": "field",
16493
+ "name": "ariaStateKey",
16494
+ "type": {
16495
+ "text": "string | undefined"
16496
+ },
16497
+ "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`",
16498
+ "default": "'aria-pressed' (when)",
16499
+ "attribute": "ariaStateKey",
16500
+ "reflects": true,
16501
+ "inheritedFrom": {
16502
+ "name": "Buttonsimple",
16503
+ "module": "components/buttonsimple/buttonsimple.component.js"
16504
+ }
16505
+ },
16506
+ {
16507
+ "kind": "field",
16508
+ "name": "type",
16509
+ "type": {
16510
+ "text": "ButtonType"
16511
+ },
16512
+ "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.",
16513
+ "default": "button",
16514
+ "attribute": "type",
16515
+ "reflects": true,
16516
+ "inheritedFrom": {
16517
+ "name": "Buttonsimple",
16518
+ "module": "components/buttonsimple/buttonsimple.component.js"
16519
+ }
16721
16520
  },
16722
16521
  {
16723
- "description": "This slot is used to pass a header for the list, which can be a `mdc-listheader` component.",
16724
- "name": "list-header"
16725
- }
16726
- ],
16727
- "members": [
16522
+ "kind": "method",
16523
+ "name": "executeAction",
16524
+ "privacy": "protected",
16525
+ "inheritedFrom": {
16526
+ "name": "Buttonsimple",
16527
+ "module": "components/buttonsimple/buttonsimple.component.js"
16528
+ }
16529
+ },
16728
16530
  {
16729
16531
  "kind": "method",
16730
- "name": "handleKeyDown",
16731
- "privacy": "private",
16732
- "return": {
16733
- "type": {
16734
- "text": "void"
16735
- }
16736
- },
16532
+ "name": "setActive",
16533
+ "privacy": "protected",
16737
16534
  "parameters": [
16738
16535
  {
16739
- "name": "event",
16536
+ "name": "element",
16740
16537
  "type": {
16741
- "text": "KeyboardEvent"
16538
+ "text": "HTMLElement"
16742
16539
  },
16743
- "description": "The keyboard event."
16540
+ "description": "The button element"
16541
+ },
16542
+ {
16543
+ "name": "active",
16544
+ "optional": true,
16545
+ "type": {
16546
+ "text": "boolean"
16547
+ },
16548
+ "description": "The active state of the element"
16744
16549
  }
16745
16550
  ],
16746
- "description": "Handles the keydown event on the list element.\nIf the key is 'ArrowUp' or 'ArrowDown', it focuses to the previous or next list item\nand sets the active tabindex of the list item.\nPrevents the default event behavior."
16551
+ "description": "Sets the ariaStateKey attributes based on the active state of the button.",
16552
+ "inheritedFrom": {
16553
+ "name": "Buttonsimple",
16554
+ "module": "components/buttonsimple/buttonsimple.component.js"
16555
+ }
16747
16556
  },
16748
16557
  {
16749
16558
  "kind": "method",
16750
- "name": "getCurrentIndex",
16559
+ "name": "setSoftDisabled",
16751
16560
  "privacy": "private",
16752
- "return": {
16753
- "type": {
16754
- "text": ""
16755
- }
16756
- },
16757
16561
  "parameters": [
16758
16562
  {
16759
- "name": "target",
16563
+ "name": "element",
16760
16564
  "type": {
16761
- "text": "EventTarget | null"
16565
+ "text": "HTMLElement"
16762
16566
  },
16763
- "description": "The target element to find the index of."
16567
+ "description": "The button element."
16568
+ },
16569
+ {
16570
+ "name": "softDisabled",
16571
+ "optional": true,
16572
+ "type": {
16573
+ "text": "boolean"
16574
+ },
16575
+ "description": "The soft-disabled state."
16764
16576
  }
16765
16577
  ],
16766
- "description": "Returns the index of the given target in the listItems array.\nIf the target is not a list item, but a child element of a list item,\nit returns the index of the parent list item."
16578
+ "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.",
16579
+ "inheritedFrom": {
16580
+ "name": "Buttonsimple",
16581
+ "module": "components/buttonsimple/buttonsimple.component.js"
16582
+ }
16767
16583
  },
16768
16584
  {
16769
16585
  "kind": "method",
16770
- "name": "getNewIndexBasedOnKey",
16586
+ "name": "setDisabled",
16771
16587
  "privacy": "private",
16772
- "return": {
16773
- "type": {
16774
- "text": ""
16775
- }
16776
- },
16777
16588
  "parameters": [
16778
16589
  {
16779
- "name": "key",
16780
- "type": {
16781
- "text": "string"
16782
- },
16783
- "description": "The key that was pressed."
16784
- },
16785
- {
16786
- "name": "currentIndex",
16590
+ "name": "element",
16787
16591
  "type": {
16788
- "text": "number"
16592
+ "text": "HTMLElement"
16789
16593
  },
16790
- "description": "The current index of the focused list item."
16594
+ "description": "The button element."
16791
16595
  },
16792
16596
  {
16793
- "name": "wrappedDivsCount",
16597
+ "name": "disabled",
16794
16598
  "type": {
16795
- "text": "number"
16599
+ "text": "boolean"
16796
16600
  },
16797
- "description": "The total number of list items."
16601
+ "description": "The disabled state."
16798
16602
  }
16799
16603
  ],
16800
- "description": "Calculates a new index based on the pressed keyboard key.\nSupports navigation keys for moving focus within a list."
16604
+ "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.",
16605
+ "inheritedFrom": {
16606
+ "name": "Buttonsimple",
16607
+ "module": "components/buttonsimple/buttonsimple.component.js"
16608
+ }
16801
16609
  },
16802
16610
  {
16803
16611
  "kind": "method",
16804
- "name": "handleMouseClick",
16805
- "privacy": "protected",
16806
- "return": {
16807
- "type": {
16808
- "text": "void"
16809
- }
16810
- },
16612
+ "name": "triggerClickEvent",
16613
+ "privacy": "private",
16614
+ "inheritedFrom": {
16615
+ "name": "Buttonsimple",
16616
+ "module": "components/buttonsimple/buttonsimple.component.js"
16617
+ }
16618
+ },
16619
+ {
16620
+ "kind": "method",
16621
+ "name": "handleBlur",
16622
+ "privacy": "private",
16623
+ "description": "In case the button is pressed and the focus is lost while pressing,\nthe pressed class is removed.",
16624
+ "inheritedFrom": {
16625
+ "name": "Buttonsimple",
16626
+ "module": "components/buttonsimple/buttonsimple.component.js"
16627
+ }
16628
+ },
16629
+ {
16630
+ "kind": "method",
16631
+ "name": "handleKeyDown",
16632
+ "privacy": "private",
16811
16633
  "parameters": [
16812
16634
  {
16813
16635
  "name": "event",
16814
16636
  "type": {
16815
- "text": "MouseEvent"
16637
+ "text": "KeyboardEvent"
16816
16638
  },
16817
- "description": "The mouse event."
16639
+ "description": "The keyboard event."
16818
16640
  }
16819
16641
  ],
16820
- "description": "Handles the mouse click event on the list element.\nFinds the index of the target element in the list items array and calls\n`resetTabIndexAndSetActiveTabIndex` with that index."
16642
+ "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.",
16643
+ "inheritedFrom": {
16644
+ "name": "Buttonsimple",
16645
+ "module": "components/buttonsimple/buttonsimple.component.js"
16646
+ }
16821
16647
  },
16822
16648
  {
16823
16649
  "kind": "method",
16824
- "name": "resetTabIndexAndSetActiveTabIndex",
16650
+ "name": "handleKeyUp",
16825
16651
  "privacy": "private",
16826
16652
  "parameters": [
16827
16653
  {
16828
- "name": "newIndex",
16654
+ "name": "event",
16829
16655
  "type": {
16830
- "text": "number"
16656
+ "text": "KeyboardEvent"
16831
16657
  },
16832
- "description": "The index of the new active element in the list."
16658
+ "description": "The keyboard event."
16833
16659
  }
16834
16660
  ],
16835
- "description": "Resets all list items tabindex to -1 and sets the tabindex of the\nelement at the given index to 0, effectively setting the active\nelement. This is used when navigating the list via keyboard."
16661
+ "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.",
16662
+ "inheritedFrom": {
16663
+ "name": "Buttonsimple",
16664
+ "module": "components/buttonsimple/buttonsimple.component.js"
16665
+ }
16836
16666
  }
16837
16667
  ],
16838
- "superclass": {
16839
- "name": "Component",
16840
- "module": "/src/models"
16841
- },
16842
- "tagName": "mdc-list",
16843
- "jsDoc": "/**\n * mdc-list component is used to display a group of list items. It is used as a container to wrap other list items.\n *\n * To add a header to the list, use the `mdc-listheader` component and place it in the `list-header` slot.\n * `mdc-listitem` components can be placed in the default slot.\n *\n * @tagname mdc-list\n *\n * @slot default - This is a default/unnamed slot, where listitems can be placed.\n * @slot list-header - This slot is used to pass a header for the list, which can be a `mdc-listheader` component.\n *\n * @csspart container - The container slot around the list items\n */",
16844
- "customElement": true
16845
- }
16846
- ],
16847
- "exports": [
16848
- {
16849
- "kind": "js",
16850
- "name": "default",
16851
- "declaration": {
16852
- "name": "List",
16853
- "module": "components/list/list.component.js"
16854
- }
16855
- }
16856
- ]
16857
- },
16858
- {
16859
- "kind": "javascript-module",
16860
- "path": "components/listheader/listheader.component.js",
16861
- "declarations": [
16862
- {
16863
- "kind": "class",
16864
- "description": "Listheader component is used to display a header in a list.\nIt can include icons before and after the header text, and allows for additional content via slots.",
16865
- "name": "Listheader",
16866
- "cssProperties": [
16668
+ "events": [
16867
16669
  {
16868
- "description": "height of the header",
16869
- "name": "--mdc-listheader-height"
16670
+ "description": "(React: onClick) This event is dispatched when the linkbutton is clicked.",
16671
+ "name": "click",
16672
+ "reactName": "onClick",
16673
+ "inheritedFrom": {
16674
+ "name": "Buttonsimple",
16675
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16676
+ }
16870
16677
  },
16871
16678
  {
16872
- "description": "padding around the header content",
16873
- "name": "--mdc-listheader-padding"
16679
+ "description": "(React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.",
16680
+ "name": "keydown",
16681
+ "reactName": "onKeyDown",
16682
+ "inheritedFrom": {
16683
+ "name": "Buttonsimple",
16684
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16685
+ }
16874
16686
  },
16875
16687
  {
16876
- "description": "gap between content",
16877
- "name": "--mdc-listheader-gap"
16878
- }
16879
- ],
16880
- "slots": [
16688
+ "description": "(React: onKeyUp) This event is dispatched when a key is released on the linkbutton.",
16689
+ "name": "keyup",
16690
+ "reactName": "onKeyUp",
16691
+ "inheritedFrom": {
16692
+ "name": "Buttonsimple",
16693
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16694
+ }
16695
+ },
16881
16696
  {
16882
- "description": "to pass in actionable content like buttons or links",
16883
- "name": "default"
16697
+ "description": "(React: onFocus) This event is dispatched when the linkbutton receives focus.",
16698
+ "name": "focus",
16699
+ "reactName": "onFocus",
16700
+ "inheritedFrom": {
16701
+ "name": "Buttonsimple",
16702
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16703
+ }
16884
16704
  }
16885
16705
  ],
16886
- "members": [
16706
+ "attributes": [
16707
+ {
16708
+ "name": "size",
16709
+ "type": {
16710
+ "text": "ButtonSize"
16711
+ },
16712
+ "description": "Sets the size of the linkbutton.\nAcceptable values: \n- 12\n- 14\n- 16",
16713
+ "default": "16",
16714
+ "fieldName": "size",
16715
+ "inheritedFrom": {
16716
+ "name": "Buttonsimple",
16717
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16718
+ }
16719
+ },
16720
+ {
16721
+ "name": "inline",
16722
+ "type": {
16723
+ "text": "boolean"
16724
+ },
16725
+ "description": "The linkbutton can be inline or standalone.",
16726
+ "default": "false",
16727
+ "fieldName": "inline"
16728
+ },
16729
+ {
16730
+ "name": "inverted",
16731
+ "type": {
16732
+ "text": "boolean"
16733
+ },
16734
+ "description": "The linkbutton color can be inverted by setting the inverted attribute to true.",
16735
+ "default": "false",
16736
+ "fieldName": "inverted"
16737
+ },
16887
16738
  {
16888
- "kind": "field",
16889
- "name": "prefixIcon",
16739
+ "name": "icon-name",
16890
16740
  "type": {
16891
16741
  "text": "IconNames | undefined"
16892
16742
  },
16893
- "description": "Name of the icon rendered before the text\n\nIf not provided, no icon will be rendered and text will be aligned to the start.",
16894
- "attribute": "prefix-icon"
16743
+ "description": "Name of the icon (= filename).\n\nIf no `icon-name` is provided, no icon will be rendered.",
16744
+ "fieldName": "iconName",
16745
+ "inheritedFrom": {
16746
+ "name": "IconNameMixin",
16747
+ "module": "src/utils/mixins/IconNameMixin.ts"
16748
+ }
16895
16749
  },
16896
16750
  {
16897
- "kind": "field",
16898
- "name": "postfixIcon",
16751
+ "name": "autofocus",
16899
16752
  "type": {
16900
- "text": "IconNames | undefined"
16753
+ "text": "boolean"
16901
16754
  },
16902
- "description": "Name of the icon rendered after the slot & text\n\nIf not provided, no icon will be rendered and content will be aligned to the end.",
16903
- "attribute": "postfix-icon"
16755
+ "default": "false",
16756
+ "description": "This property indicates whether the element should receive focus automatically when it is rendered.",
16757
+ "fieldName": "autofocus",
16758
+ "inheritedFrom": {
16759
+ "name": "Buttonsimple",
16760
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16761
+ }
16904
16762
  },
16905
16763
  {
16906
- "kind": "field",
16907
- "name": "headerText",
16764
+ "name": "tabIndex",
16908
16765
  "type": {
16909
- "text": "string | undefined"
16766
+ "text": "number"
16910
16767
  },
16911
- "description": "Text to be rendered in the header",
16912
- "attribute": "header-text"
16768
+ "default": "0",
16769
+ "description": "This property specifies the tab order of the element.",
16770
+ "fieldName": "tabIndex",
16771
+ "inheritedFrom": {
16772
+ "name": "Buttonsimple",
16773
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16774
+ }
16913
16775
  },
16914
16776
  {
16915
- "kind": "field",
16916
16777
  "name": "disabled",
16917
16778
  "type": {
16918
- "text": "boolean"
16779
+ "text": "boolean | undefined"
16919
16780
  },
16920
- "default": "false",
16921
- "description": "Disables the header, making it visually styled as disabled.\n\nNOTE: slot content will still be interactive unless individually disabled.\nMake sure to handle the disabled state of any actionable elements inside the slot.",
16922
- "attribute": "disabled",
16923
- "reflects": true
16924
- }
16925
- ],
16926
- "attributes": [
16781
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
16782
+ "default": "undefined",
16783
+ "fieldName": "disabled",
16784
+ "inheritedFrom": {
16785
+ "name": "Buttonsimple",
16786
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16787
+ }
16788
+ },
16927
16789
  {
16928
- "name": "prefix-icon",
16790
+ "name": "active",
16929
16791
  "type": {
16930
- "text": "IconNames | undefined"
16792
+ "text": "boolean | undefined"
16931
16793
  },
16932
- "description": "Name of the icon rendered before the text\n\nIf not provided, no icon will be rendered and text will be aligned to the start.",
16933
- "fieldName": "prefixIcon"
16794
+ "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.",
16795
+ "default": "undefined",
16796
+ "fieldName": "active",
16797
+ "inheritedFrom": {
16798
+ "name": "Buttonsimple",
16799
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16800
+ }
16934
16801
  },
16935
16802
  {
16936
- "name": "postfix-icon",
16803
+ "name": "soft-disabled",
16937
16804
  "type": {
16938
- "text": "IconNames | undefined"
16805
+ "text": "boolean | undefined"
16939
16806
  },
16940
- "description": "Name of the icon rendered after the slot & text\n\nIf not provided, no icon will be rendered and content will be aligned to the end.",
16941
- "fieldName": "postfixIcon"
16807
+ "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.",
16808
+ "default": "undefined",
16809
+ "fieldName": "softDisabled",
16810
+ "inheritedFrom": {
16811
+ "name": "Buttonsimple",
16812
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16813
+ }
16942
16814
  },
16943
16815
  {
16944
- "name": "header-text",
16816
+ "name": "role",
16817
+ "type": {
16818
+ "text": "RoleType"
16819
+ },
16820
+ "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.",
16821
+ "default": "button",
16822
+ "fieldName": "role",
16823
+ "inheritedFrom": {
16824
+ "name": "Buttonsimple",
16825
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16826
+ }
16827
+ },
16828
+ {
16829
+ "name": "ariaStateKey",
16945
16830
  "type": {
16946
16831
  "text": "string | undefined"
16947
16832
  },
16948
- "description": "Text to be rendered in the header",
16949
- "fieldName": "headerText"
16833
+ "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`",
16834
+ "default": "'aria-pressed' (when)",
16835
+ "fieldName": "ariaStateKey",
16836
+ "inheritedFrom": {
16837
+ "name": "Buttonsimple",
16838
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16839
+ }
16950
16840
  },
16951
16841
  {
16952
- "name": "disabled",
16842
+ "name": "type",
16953
16843
  "type": {
16954
- "text": "boolean"
16844
+ "text": "ButtonType"
16955
16845
  },
16956
- "default": "false",
16957
- "description": "Disables the header, making it visually styled as disabled.\n\nNOTE: slot content will still be interactive unless individually disabled.\nMake sure to handle the disabled state of any actionable elements inside the slot.",
16958
- "fieldName": "disabled"
16846
+ "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.",
16847
+ "default": "button",
16848
+ "fieldName": "type",
16849
+ "inheritedFrom": {
16850
+ "name": "Buttonsimple",
16851
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
16852
+ }
16853
+ }
16854
+ ],
16855
+ "mixins": [
16856
+ {
16857
+ "name": "IconNameMixin",
16858
+ "module": "/src/utils/mixins/IconNameMixin"
16959
16859
  }
16960
16860
  ],
16961
16861
  "superclass": {
16962
- "name": "Component",
16963
- "module": "/src/models"
16862
+ "name": "Buttonsimple",
16863
+ "module": "/src/components/buttonsimple/buttonsimple.component"
16964
16864
  },
16965
- "tagName": "mdc-listheader",
16966
- "jsDoc": "/**\n * Listheader component is used to display a header in a list.\n * It can include icons before and after the header text, and allows for additional content via slots.\n *\n * @tagname mdc-listheader\n *\n * @slot default - to pass in actionable content like buttons or links\n *\n * @cssproperty --mdc-listheader-height - height of the header\n * @cssproperty --mdc-listheader-padding - padding around the header content\n * @cssproperty --mdc-listheader-gap - gap between content\n */",
16865
+ "tagName": "mdc-linkbutton",
16866
+ "jsDoc": "/**\n * `mdc-linkbutton` visually mimics a hyperlink while functioning as a button. It blends the appearance of `mdc-link` with the accessibility and interaction capabilities of `mdc-button`.\n *\n * ### Features:\n * - Looks like a link, behaves like a button.\n * - Supports slots for a text label and an optional trailing icon.\n * - Inherits accessibility and keyboard interaction behavior from `mdc-buttonsimple`.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-linkbutton\n *\n * @slot - Text label of the linkbutton.\n *\n * @event click - (React: onClick) This event is dispatched when the linkbutton is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the linkbutton.\n * @event focus - (React: onFocus) This event is dispatched when the linkbutton receives focus.\n *\n * @cssproperty --mdc-link-border-radius - Border radius of the linkbutton.\n * @cssproperty --mdc-link-color-active - Color of the linkbutton’s child content in the active state.\n * @cssproperty --mdc-link-color-disabled - Color of the linkbutton’s child content in the disabled state.\n * @cssproperty --mdc-link-color-hover - Color of the linkbutton’s child content in the hover state.\n * @cssproperty --mdc-link-color-normal - Color of the linkbutton’s child content in the normal state.\n * @cssproperty --mdc-link-inverted-color-active - Color of the inverted linkbutton’s child content in the active state.\n * @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted linkbutton’s child content in the disabled state.\n * @cssproperty --mdc-link-inverted-color-hover - Color of the inverted linkbutton’s child content in the hover state.\n * @cssproperty --mdc-link-inverted-color-normal - Color of the inverted linkbutton’s child content in the normal state.\n */",
16967
16867
  "customElement": true
16968
16868
  }
16969
16869
  ],
@@ -16972,8 +16872,8 @@
16972
16872
  "kind": "js",
16973
16873
  "name": "default",
16974
16874
  "declaration": {
16975
- "name": "Listheader",
16976
- "module": "components/listheader/listheader.component.js"
16875
+ "name": "LinkButton",
16876
+ "module": "components/linkbutton/linkbutton.component.js"
16977
16877
  }
16978
16878
  }
16979
16879
  ]
@@ -26192,20 +26092,6 @@
26192
26092
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
26193
26093
  }
26194
26094
  },
26195
- {
26196
- "kind": "field",
26197
- "name": "id",
26198
- "type": {
26199
- "text": "string"
26200
- },
26201
- "default": "''",
26202
- "description": "The unique id of the input field. It is used to link the input field with the label.",
26203
- "attribute": "id",
26204
- "inheritedFrom": {
26205
- "name": "FormfieldWrapper",
26206
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
26207
- }
26208
- },
26209
26095
  {
26210
26096
  "kind": "field",
26211
26097
  "name": "helpText",
@@ -26697,19 +26583,6 @@
26697
26583
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
26698
26584
  }
26699
26585
  },
26700
- {
26701
- "name": "id",
26702
- "type": {
26703
- "text": "string"
26704
- },
26705
- "default": "''",
26706
- "description": "The unique id of the input field. It is used to link the input field with the label.",
26707
- "fieldName": "id",
26708
- "inheritedFrom": {
26709
- "name": "FormfieldWrapper",
26710
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
26711
- }
26712
- },
26713
26586
  {
26714
26587
  "name": "help-text",
26715
26588
  "type": {
@@ -28679,20 +28552,6 @@
28679
28552
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
28680
28553
  }
28681
28554
  },
28682
- {
28683
- "kind": "field",
28684
- "name": "id",
28685
- "type": {
28686
- "text": "string"
28687
- },
28688
- "default": "''",
28689
- "description": "The unique id of the input field. It is used to link the input field with the label.",
28690
- "attribute": "id",
28691
- "inheritedFrom": {
28692
- "name": "FormfieldWrapper",
28693
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
28694
- }
28695
- },
28696
28555
  {
28697
28556
  "kind": "field",
28698
28557
  "name": "helpTextType",
@@ -28919,19 +28778,6 @@
28919
28778
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
28920
28779
  }
28921
28780
  },
28922
- {
28923
- "name": "id",
28924
- "type": {
28925
- "text": "string"
28926
- },
28927
- "default": "''",
28928
- "description": "The unique id of the input field. It is used to link the input field with the label.",
28929
- "fieldName": "id",
28930
- "inheritedFrom": {
28931
- "name": "FormfieldWrapper",
28932
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
28933
- }
28934
- },
28935
28781
  {
28936
28782
  "name": "help-text-type",
28937
28783
  "type": {
@@ -29284,20 +29130,6 @@
29284
29130
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
29285
29131
  }
29286
29132
  },
29287
- {
29288
- "kind": "field",
29289
- "name": "id",
29290
- "type": {
29291
- "text": "string"
29292
- },
29293
- "default": "''",
29294
- "description": "The unique id of the input field. It is used to link the input field with the label.",
29295
- "attribute": "id",
29296
- "inheritedFrom": {
29297
- "name": "FormfieldWrapper",
29298
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
29299
- }
29300
- },
29301
29133
  {
29302
29134
  "kind": "field",
29303
29135
  "name": "helpTextType",
@@ -29543,19 +29375,6 @@
29543
29375
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
29544
29376
  }
29545
29377
  },
29546
- {
29547
- "name": "id",
29548
- "type": {
29549
- "text": "string"
29550
- },
29551
- "default": "''",
29552
- "description": "The unique id of the input field. It is used to link the input field with the label.",
29553
- "fieldName": "id",
29554
- "inheritedFrom": {
29555
- "name": "FormfieldWrapper",
29556
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
29557
- }
29558
- },
29559
29378
  {
29560
29379
  "name": "help-text-type",
29561
29380
  "type": {
@@ -29973,20 +29792,6 @@
29973
29792
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
29974
29793
  }
29975
29794
  },
29976
- {
29977
- "kind": "field",
29978
- "name": "id",
29979
- "type": {
29980
- "text": "string"
29981
- },
29982
- "default": "''",
29983
- "description": "The unique id of the input field. It is used to link the input field with the label.",
29984
- "attribute": "id",
29985
- "inheritedFrom": {
29986
- "name": "FormfieldWrapper",
29987
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
29988
- }
29989
- },
29990
29795
  {
29991
29796
  "kind": "field",
29992
29797
  "name": "helpTextType",
@@ -30266,19 +30071,6 @@
30266
30071
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
30267
30072
  }
30268
30073
  },
30269
- {
30270
- "name": "id",
30271
- "type": {
30272
- "text": "string"
30273
- },
30274
- "default": "''",
30275
- "description": "The unique id of the input field. It is used to link the input field with the label.",
30276
- "fieldName": "id",
30277
- "inheritedFrom": {
30278
- "name": "FormfieldWrapper",
30279
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
30280
- }
30281
- },
30282
30074
  {
30283
30075
  "name": "help-text-type",
30284
30076
  "type": {
@@ -30446,24 +30238,10 @@
30446
30238
  "type": {
30447
30239
  "text": "boolean"
30448
30240
  },
30449
- "default": "false",
30450
- "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
30451
- "attribute": "required",
30452
- "reflects": true,
30453
- "inheritedFrom": {
30454
- "name": "FormfieldWrapper",
30455
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
30456
- }
30457
- },
30458
- {
30459
- "kind": "field",
30460
- "name": "id",
30461
- "type": {
30462
- "text": "string"
30463
- },
30464
- "default": "''",
30465
- "description": "The unique id of the input field. It is used to link the input field with the label.",
30466
- "attribute": "id",
30241
+ "default": "false",
30242
+ "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
30243
+ "attribute": "required",
30244
+ "reflects": true,
30467
30245
  "inheritedFrom": {
30468
30246
  "name": "FormfieldWrapper",
30469
30247
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
@@ -30677,19 +30455,6 @@
30677
30455
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
30678
30456
  }
30679
30457
  },
30680
- {
30681
- "name": "id",
30682
- "type": {
30683
- "text": "string"
30684
- },
30685
- "default": "''",
30686
- "description": "The unique id of the input field. It is used to link the input field with the label.",
30687
- "fieldName": "id",
30688
- "inheritedFrom": {
30689
- "name": "FormfieldWrapper",
30690
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
30691
- }
30692
- },
30693
30458
  {
30694
30459
  "name": "help-text-type",
30695
30460
  "type": {
@@ -31505,20 +31270,6 @@
31505
31270
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
31506
31271
  }
31507
31272
  },
31508
- {
31509
- "kind": "field",
31510
- "name": "id",
31511
- "type": {
31512
- "text": "string"
31513
- },
31514
- "default": "''",
31515
- "description": "The unique id of the input field. It is used to link the input field with the label.",
31516
- "attribute": "id",
31517
- "inheritedFrom": {
31518
- "name": "FormfieldWrapper",
31519
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
31520
- }
31521
- },
31522
31273
  {
31523
31274
  "kind": "field",
31524
31275
  "name": "helpTextType",
@@ -32010,19 +31761,6 @@
32010
31761
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
32011
31762
  }
32012
31763
  },
32013
- {
32014
- "name": "id",
32015
- "type": {
32016
- "text": "string"
32017
- },
32018
- "default": "''",
32019
- "description": "The unique id of the input field. It is used to link the input field with the label.",
32020
- "fieldName": "id",
32021
- "inheritedFrom": {
32022
- "name": "FormfieldWrapper",
32023
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
32024
- }
32025
- },
32026
31764
  {
32027
31765
  "name": "help-text-type",
32028
31766
  "type": {
@@ -32792,20 +32530,6 @@
32792
32530
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
32793
32531
  }
32794
32532
  },
32795
- {
32796
- "kind": "field",
32797
- "name": "id",
32798
- "type": {
32799
- "text": "string"
32800
- },
32801
- "default": "''",
32802
- "description": "The unique id of the input field. It is used to link the input field with the label.",
32803
- "attribute": "id",
32804
- "inheritedFrom": {
32805
- "name": "FormfieldWrapper",
32806
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
32807
- }
32808
- },
32809
32533
  {
32810
32534
  "kind": "field",
32811
32535
  "name": "helpTextType",
@@ -33145,19 +32869,6 @@
33145
32869
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
33146
32870
  }
33147
32871
  },
33148
- {
33149
- "name": "id",
33150
- "type": {
33151
- "text": "string"
33152
- },
33153
- "default": "''",
33154
- "description": "The unique id of the input field. It is used to link the input field with the label.",
33155
- "fieldName": "id",
33156
- "inheritedFrom": {
33157
- "name": "FormfieldWrapper",
33158
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
33159
- }
33160
- },
33161
32872
  {
33162
32873
  "name": "help-text-type",
33163
32874
  "type": {
@@ -36578,20 +36289,6 @@
36578
36289
  "module": "components/formfieldwrapper/formfieldwrapper.component.js"
36579
36290
  }
36580
36291
  },
36581
- {
36582
- "kind": "field",
36583
- "name": "id",
36584
- "type": {
36585
- "text": "string"
36586
- },
36587
- "default": "''",
36588
- "description": "The unique id of the input field. It is used to link the input field with the label.",
36589
- "attribute": "id",
36590
- "inheritedFrom": {
36591
- "name": "FormfieldWrapper",
36592
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
36593
- }
36594
- },
36595
36292
  {
36596
36293
  "kind": "field",
36597
36294
  "name": "helpTextType",
@@ -36967,19 +36664,6 @@
36967
36664
  "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
36968
36665
  }
36969
36666
  },
36970
- {
36971
- "name": "id",
36972
- "type": {
36973
- "text": "string"
36974
- },
36975
- "default": "''",
36976
- "description": "The unique id of the input field. It is used to link the input field with the label.",
36977
- "fieldName": "id",
36978
- "inheritedFrom": {
36979
- "name": "FormfieldWrapper",
36980
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
36981
- }
36982
- },
36983
36667
  {
36984
36668
  "name": "help-text-type",
36985
36669
  "type": {
@@ -37184,376 +36868,690 @@
37184
36868
  },
37185
36869
  {
37186
36870
  "kind": "javascript-module",
37187
- "path": "components/toast/toast.component.js",
36871
+ "path": "components/toggle/toggle.component.js",
37188
36872
  "declarations": [
37189
36873
  {
37190
36874
  "kind": "class",
37191
- "description": "`mdc-toast` is a lightweight, non-blocking alert used to inform users about application processes.\nIt supports success, warning, error, and custom messages, and is designed to be controlled externally.\n\n**Note**: When using `slot=\"toast-body-normal\"` and `slot=\"toast-body-detailed\"`, it's strongly recommended to wrap the content with `<mdc-text tagname=\"span\">`.\nIf not used, ensure your custom content is styled appropriately to match the design and alignment expectations of the toast component.",
37192
- "name": "Toast",
36875
+ "description": "Toggle Component is an interactive control used to switch between two mutually exclusive options,\nsuch as On/Off, Active/Inactive. These are commonly used in settings panels, forms, and preference selections\nwhere users need to enable or disable a feature.\nIt contains an optional label and an optional helper text.\n\nTo create a group of toggles, use the FormFieldGroup component.\n\nNote: It internally renders a checkbox styled as a toggle switch.",
36876
+ "name": "Toggle",
37193
36877
  "cssProperties": [
37194
36878
  {
37195
- "description": "Background color of the toast.",
37196
- "name": "--mdc-toast-background-color"
36879
+ "description": "Width of the toggle",
36880
+ "name": "--mdc-toggle-width"
37197
36881
  },
37198
36882
  {
37199
- "description": "Border color of the toast.",
37200
- "name": "--mdc-toast-border-color"
36883
+ "description": "Height of the toggle",
36884
+ "name": "--mdc-toggle-height"
37201
36885
  },
37202
36886
  {
37203
- "description": "Color of the header text in the toast.",
37204
- "name": "--mdc-toast-header-text-color"
36887
+ "description": "Width of the toggle when it's size is compact",
36888
+ "name": "--mdc-toggle-width-compact"
37205
36889
  },
37206
36890
  {
37207
- "description": "Color of the icon in the toast.",
37208
- "name": "--mdc-toast-icon-color"
36891
+ "description": "Height of the toggle when it's size is compact",
36892
+ "name": "--mdc-toggle-height-compact"
37209
36893
  },
37210
36894
  {
37211
- "description": "Elevation effect applied to the toast.",
37212
- "name": "--mdc-toast-elevation-3"
36895
+ "description": "Line height of the toggle label",
36896
+ "name": "--mdc-toggle-label-lineheight"
37213
36897
  },
37214
36898
  {
37215
- "description": "Width of the toast.",
37216
- "name": "--mdc-toast-width"
36899
+ "description": "Font size of the toggle label",
36900
+ "name": "--mdc-toggle-label-fontsize"
37217
36901
  },
37218
36902
  {
37219
- "description": "Padding inside the toast.",
37220
- "name": "--mdc-toast-padding"
37221
- }
37222
- ],
37223
- "cssParts": [
37224
- {
37225
- "description": "The container for the toast's main content, including icon, text, and close button.",
37226
- "name": "content-container"
36903
+ "description": "Font weight of the toggle label",
36904
+ "name": "--mdc-toggle-label-fontweight"
37227
36905
  },
37228
36906
  {
37229
- "description": "The icon shown at the start of the toast, styled by variant.",
37230
- "name": "toast-prefix-icon"
36907
+ "description": "Color of the toggle label and help text in disabled state",
36908
+ "name": "--mdc-toggle-label-color-disabled"
37231
36909
  },
37232
36910
  {
37233
- "description": "The container for the header and body content of the toast.",
37234
- "name": "toast-content"
36911
+ "description": "Color of the help text label",
36912
+ "name": "--mdc-toggle-help-text-color"
37235
36913
  },
37236
36914
  {
37237
- "description": "The header text of the toast.",
37238
- "name": "toast-header"
36915
+ "description": "Background color of the active toggle in hover state",
36916
+ "name": "--mdc-toggle-active-hover-color"
37239
36917
  },
37240
36918
  {
37241
- "description": "The container for the toast's footer, including toggle and action buttons.",
37242
- "name": "footer"
36919
+ "description": "Background color of the active toggle in pressed state",
36920
+ "name": "--mdc-toggle-active-pressed-color"
37243
36921
  },
37244
36922
  {
37245
- "description": "The toggle button for showing/hiding detailed content.",
37246
- "name": "footer-button-toggle"
36923
+ "description": "Background color of the inactive toggle in hover state",
36924
+ "name": "--mdc-toggle-inactive-hover-color"
37247
36925
  },
37248
36926
  {
37249
- "description": "The close button for the toast.",
37250
- "name": "toast-close-btn"
36927
+ "description": "Background color of the inactive toggle in pressed state",
36928
+ "name": "--mdc-toggle-inactive-pressed-color"
37251
36929
  }
37252
36930
  ],
37253
- "slots": [
36931
+ "members": [
37254
36932
  {
37255
- "description": "Slot for custom content before the icon (only for custom variant).",
37256
- "name": "content-prefix"
36933
+ "kind": "field",
36934
+ "name": "checked",
36935
+ "type": {
36936
+ "text": "boolean"
36937
+ },
36938
+ "default": "false",
36939
+ "description": "Determines whether the toggle is active or inactive.",
36940
+ "attribute": "checked",
36941
+ "reflects": true
37257
36942
  },
37258
36943
  {
37259
- "description": "Slot for the main body content of the toast.",
37260
- "name": "toast-body-normal"
36944
+ "kind": "field",
36945
+ "name": "size",
36946
+ "type": {
36947
+ "text": "ToggleSize"
36948
+ },
36949
+ "description": "Determines toggle size in rem (height is specified here).\n- **Default**: 1.5\n- **Compact**: 1",
36950
+ "default": "default",
36951
+ "attribute": "size",
36952
+ "reflects": true
37261
36953
  },
37262
36954
  {
37263
- "description": "Slot for additional detailed content, shown when expanded.",
37264
- "name": "toast-body-detailed"
36955
+ "kind": "field",
36956
+ "name": "autofocus",
36957
+ "type": {
36958
+ "text": "boolean"
36959
+ },
36960
+ "default": "false",
36961
+ "description": "Automatically focus on the element when the page loads.\n[MDN Reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)",
36962
+ "attribute": "autofocus",
36963
+ "reflects": true
37265
36964
  },
37266
36965
  {
37267
- "description": "Slot for custom footer content. Prefer using footer-button-primary and footer-button-secondary slots.",
37268
- "name": "footer"
36966
+ "kind": "method",
36967
+ "name": "manageRequired",
36968
+ "privacy": "private",
36969
+ "description": "Manages the required state of the checkbox.\nIf the checkbox is not checked and the required property is set, then the checkbox is invalid.\nIf the validationMessage is set, it will be used as the custom validity message.\nIf the validationMessage is not set, it will clear the custom validity message."
36970
+ },
36971
+ {
36972
+ "kind": "method",
36973
+ "name": "setFormValue",
36974
+ "privacy": "private",
36975
+ "description": "Updates the form value to reflect the current state of the toggle.\nIf toggle is switched on, the value is set to either the user-provided value or 'isActive' if no value is provided.\nIf toggle is switched off, the value is set to null."
36976
+ },
36977
+ {
36978
+ "kind": "method",
36979
+ "name": "toggleState",
36980
+ "privacy": "private",
36981
+ "return": {
36982
+ "type": {
36983
+ "text": "void"
36984
+ }
36985
+ },
36986
+ "description": "Toggles the state of the toggle element.\nIf the element is not disabled, then the checked property is toggled."
36987
+ },
36988
+ {
36989
+ "kind": "method",
36990
+ "name": "handleKeyDown",
36991
+ "privacy": "private",
36992
+ "return": {
36993
+ "type": {
36994
+ "text": "void"
36995
+ }
36996
+ },
36997
+ "parameters": [
36998
+ {
36999
+ "name": "event",
37000
+ "type": {
37001
+ "text": "KeyboardEvent"
37002
+ },
37003
+ "description": "The keyboard event."
37004
+ }
37005
+ ],
37006
+ "description": "Handles the keydown event on the toggle element.\nWhen the user presses Enter, the form is submitted."
37007
+ },
37008
+ {
37009
+ "kind": "method",
37010
+ "name": "handleChange",
37011
+ "privacy": "private",
37012
+ "parameters": [
37013
+ {
37014
+ "name": "event",
37015
+ "type": {
37016
+ "text": "Event"
37017
+ }
37018
+ }
37019
+ ],
37020
+ "description": "Toggles the state of the toggle element.\nand dispatch the new change event."
37021
+ },
37022
+ {
37023
+ "kind": "method",
37024
+ "name": "setToggleSize",
37025
+ "privacy": "private",
37026
+ "parameters": [
37027
+ {
37028
+ "name": "size",
37029
+ "type": {
37030
+ "text": "ToggleSize"
37031
+ },
37032
+ "description": "The size to set."
37033
+ }
37034
+ ],
37035
+ "description": "Sets the size attribute for the toggle component.\nIf the provided size is not included in the TOGGLE_SIZE,\nit defaults to the value specified in DEFAULTS.SIZE."
37269
37036
  },
37270
37037
  {
37271
- "description": "Slot for passing the primary variant of `mdc-button` in the footer.",
37272
- "name": "footer-button-primary"
37038
+ "kind": "field",
37039
+ "name": "name",
37040
+ "type": {
37041
+ "text": "string"
37042
+ },
37043
+ "default": "''",
37044
+ "description": "Indicates the name of the component group.\nThey are used to group elements in a form together.",
37045
+ "attribute": "name",
37046
+ "reflects": true,
37047
+ "inheritedFrom": {
37048
+ "name": "FormInternalsMixin",
37049
+ "module": "utils/mixins/FormInternalsMixin.js"
37050
+ }
37273
37051
  },
37274
- {
37275
- "description": "Slot for passing the secondary variant of `mdc-button` in the footer.",
37276
- "name": "footer-button-secondary"
37277
- }
37278
- ],
37279
- "members": [
37280
37052
  {
37281
37053
  "kind": "field",
37282
- "name": "variant",
37054
+ "name": "value",
37283
37055
  "type": {
37284
- "text": "ToastVariant"
37056
+ "text": "string"
37285
37057
  },
37286
- "description": "Type of toast\n- Can be `custom`, `success`, `warning` or `error`.",
37287
- "default": "'custom'",
37288
- "attribute": "variant",
37289
- "reflects": true
37058
+ "default": "''",
37059
+ "description": "Indicates the value of the component group (ex: input, checkbox, radio, select etc...)",
37060
+ "attribute": "value",
37061
+ "reflects": true,
37062
+ "inheritedFrom": {
37063
+ "name": "FormInternalsMixin",
37064
+ "module": "utils/mixins/FormInternalsMixin.js"
37065
+ }
37290
37066
  },
37291
37067
  {
37292
37068
  "kind": "field",
37293
- "name": "closeButtonAriaLabel",
37069
+ "name": "validationMessage",
37294
37070
  "type": {
37295
37071
  "text": "string | undefined"
37296
37072
  },
37297
- "description": "Defines aria-label attribute for close button accessibility",
37298
- "attribute": "close-button-aria-label"
37073
+ "description": "Custom validation message that will override the default message and displayed when the input is invalid.\n\nTo display custom validation messages, you must listen for input events (or other relevant events)\non your component and update the `validationMessage` property with the desired message string.\nUpdating this property will ensure that new validation messages are shown to the user.\n- The `validationMessage` property overrides the default browser validation message when set.\n- Consumers are responsible for updating `validationMessage` in response to input or validation state changes.",
37074
+ "attribute": "validation-message",
37075
+ "reflects": true,
37076
+ "inheritedFrom": {
37077
+ "name": "FormInternalsMixin",
37078
+ "module": "utils/mixins/FormInternalsMixin.js"
37079
+ }
37299
37080
  },
37300
37081
  {
37301
37082
  "kind": "field",
37302
- "name": "headerText",
37083
+ "name": "validity",
37303
37084
  "type": {
37304
- "text": "string | undefined"
37085
+ "text": "ValidityState"
37305
37086
  },
37306
- "description": "Defines a string value to display as the title of the toast",
37307
- "attribute": "header-text",
37308
- "reflects": true
37087
+ "readonly": true,
37088
+ "inheritedFrom": {
37089
+ "name": "FormInternalsMixin",
37090
+ "module": "utils/mixins/FormInternalsMixin.js"
37091
+ }
37309
37092
  },
37310
37093
  {
37311
37094
  "kind": "field",
37312
- "name": "headerTagName",
37313
- "type": {
37314
- "text": "TagName"
37095
+ "name": "willValidate",
37096
+ "readonly": true,
37097
+ "inheritedFrom": {
37098
+ "name": "FormInternalsMixin",
37099
+ "module": "utils/mixins/FormInternalsMixin.js"
37100
+ }
37101
+ },
37102
+ {
37103
+ "kind": "method",
37104
+ "name": "setValidity",
37105
+ "description": "Sets the validity of the input field based on the input field's validity.",
37106
+ "return": {
37107
+ "type": {
37108
+ "text": ""
37109
+ }
37315
37110
  },
37316
- "description": "The html tag to be used for the header text",
37317
- "default": "'h2'",
37318
- "attribute": "header-tag-name",
37319
- "reflects": true
37111
+ "inheritedFrom": {
37112
+ "name": "FormInternalsMixin",
37113
+ "module": "utils/mixins/FormInternalsMixin.js"
37114
+ }
37115
+ },
37116
+ {
37117
+ "kind": "method",
37118
+ "name": "checkValidity",
37119
+ "return": {
37120
+ "type": {
37121
+ "text": "boolean"
37122
+ }
37123
+ },
37124
+ "inheritedFrom": {
37125
+ "name": "FormInternalsMixin",
37126
+ "module": "utils/mixins/FormInternalsMixin.js"
37127
+ }
37128
+ },
37129
+ {
37130
+ "kind": "method",
37131
+ "name": "reportValidity",
37132
+ "inheritedFrom": {
37133
+ "name": "FormInternalsMixin",
37134
+ "module": "utils/mixins/FormInternalsMixin.js"
37135
+ }
37320
37136
  },
37321
37137
  {
37322
37138
  "kind": "field",
37323
- "name": "ariaLabel",
37139
+ "name": "dataAriaLabel",
37324
37140
  "type": {
37325
37141
  "text": "string | null"
37326
37142
  },
37327
37143
  "default": "null",
37328
- "description": "Defines aria-label attribute when header is not used",
37329
- "attribute": "aria-label",
37330
- "reflects": true
37144
+ "description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
37145
+ "attribute": "data-aria-label",
37146
+ "reflects": true,
37147
+ "inheritedFrom": {
37148
+ "name": "DataAriaLabelMixin",
37149
+ "module": "utils/mixins/DataAriaLabelMixin.js"
37150
+ }
37331
37151
  },
37332
37152
  {
37333
37153
  "kind": "field",
37334
- "name": "showMoreText",
37154
+ "name": "disabled",
37335
37155
  "type": {
37336
- "text": "string | undefined"
37156
+ "text": "boolean | undefined"
37337
37157
  },
37338
- "description": "Defines the text shown on the linkbutton when detailed content is hidden.",
37339
- "attribute": "show-more-text",
37340
- "reflects": true
37158
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
37159
+ "default": "undefined",
37160
+ "attribute": "disabled",
37161
+ "reflects": true,
37162
+ "inheritedFrom": {
37163
+ "name": "FormfieldWrapper",
37164
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37165
+ }
37341
37166
  },
37342
37167
  {
37343
37168
  "kind": "field",
37344
- "name": "showLessText",
37169
+ "name": "label",
37345
37170
  "type": {
37346
37171
  "text": "string | undefined"
37347
37172
  },
37348
- "description": "Defines the text shown on the linkbutton when detailed content is visible.",
37349
- "attribute": "show-less-text",
37350
- "reflects": true
37173
+ "description": "The label of the input field. It is linked to the input field using the `for` attribute.",
37174
+ "attribute": "label",
37175
+ "reflects": true,
37176
+ "inheritedFrom": {
37177
+ "name": "FormfieldWrapper",
37178
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37179
+ }
37351
37180
  },
37352
37181
  {
37353
37182
  "kind": "field",
37354
- "name": "isDetailVisible",
37183
+ "name": "required",
37355
37184
  "type": {
37356
37185
  "text": "boolean"
37357
37186
  },
37358
- "privacy": "private",
37359
- "default": "false"
37187
+ "default": "false",
37188
+ "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
37189
+ "attribute": "required",
37190
+ "reflects": true,
37191
+ "inheritedFrom": {
37192
+ "name": "FormfieldWrapper",
37193
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37194
+ }
37360
37195
  },
37361
37196
  {
37362
37197
  "kind": "field",
37363
- "name": "hasDetailedSlot",
37198
+ "name": "helpTextType",
37364
37199
  "type": {
37365
- "text": "boolean"
37200
+ "text": "ValidationType"
37366
37201
  },
37367
- "privacy": "private",
37368
- "default": "false"
37202
+ "description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
37203
+ "attribute": "help-text-type",
37204
+ "reflects": true,
37205
+ "inheritedFrom": {
37206
+ "name": "FormfieldWrapper",
37207
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37208
+ }
37369
37209
  },
37370
37210
  {
37371
37211
  "kind": "field",
37372
- "name": "detailedElements",
37212
+ "name": "helpText",
37373
37213
  "type": {
37374
- "text": "HTMLElement[]"
37214
+ "text": "string | undefined"
37375
37215
  },
37376
- "privacy": "private"
37216
+ "description": "The help text that is displayed below the input field.",
37217
+ "attribute": "help-text",
37218
+ "reflects": true,
37219
+ "inheritedFrom": {
37220
+ "name": "FormfieldWrapper",
37221
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37222
+ }
37377
37223
  },
37378
37224
  {
37379
37225
  "kind": "field",
37380
- "name": "hasFooterButtons",
37226
+ "name": "toggletipText",
37381
37227
  "type": {
37382
- "text": "string"
37228
+ "text": "string | undefined"
37383
37229
  },
37384
- "privacy": "private",
37385
- "default": "''"
37386
- },
37387
- {
37388
- "kind": "method",
37389
- "name": "closeToast",
37390
- "privacy": "private",
37391
- "description": "Fired when Close Button is clicked using mouse or keyboard.\nThis method dispatches the close event.\nIt is used to notify that the toast should be closed."
37392
- },
37393
- {
37394
- "kind": "method",
37395
- "name": "toggleDetailVisibility",
37396
- "privacy": "private"
37230
+ "description": "The toggletip text that is displayed when the label is hovered.\nIt is used to provide additional information about the label.",
37231
+ "attribute": "toggletip-text",
37232
+ "reflects": true,
37233
+ "inheritedFrom": {
37234
+ "name": "FormfieldWrapper",
37235
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37236
+ }
37397
37237
  },
37398
37238
  {
37399
- "kind": "method",
37400
- "name": "updateDetailedSlotPresence",
37401
- "privacy": "private"
37239
+ "kind": "field",
37240
+ "name": "toggletipPlacement",
37241
+ "type": {
37242
+ "text": "PopoverPlacement"
37243
+ },
37244
+ "description": "The placement of the toggletip that is displayed when the info icon is hovered.",
37245
+ "default": "'top'",
37246
+ "attribute": "toggletip-placement",
37247
+ "reflects": true,
37248
+ "inheritedFrom": {
37249
+ "name": "FormfieldWrapper",
37250
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37251
+ }
37402
37252
  },
37403
37253
  {
37404
- "kind": "method",
37405
- "name": "updateFooterButtonsPresence",
37406
- "privacy": "private"
37254
+ "kind": "field",
37255
+ "name": "infoIconAriaLabel",
37256
+ "type": {
37257
+ "text": "string | undefined"
37258
+ },
37259
+ "description": "Aria label for the info icon that is displayed next to the label when `toggletipText` is set.\nThis is used for accessibility purposes to provide a description of the icon.",
37260
+ "attribute": "info-icon-aria-label",
37261
+ "reflects": true,
37262
+ "inheritedFrom": {
37263
+ "name": "FormfieldWrapper",
37264
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37265
+ }
37407
37266
  },
37408
37267
  {
37409
37268
  "kind": "method",
37410
- "name": "renderIcon",
37269
+ "name": "renderLabelElement",
37411
37270
  "privacy": "protected",
37412
- "parameters": [
37413
- {
37414
- "name": "iconName",
37415
- "type": {
37416
- "text": "string"
37417
- }
37271
+ "description": "creates the label element when the label property is set.\nid is used to link the label with the input field.",
37272
+ "return": {
37273
+ "type": {
37274
+ "text": ""
37418
37275
  }
37419
- ]
37420
- },
37421
- {
37422
- "kind": "method",
37423
- "name": "shouldRenderToggleButton",
37424
- "privacy": "private"
37276
+ },
37277
+ "inheritedFrom": {
37278
+ "name": "FormfieldWrapper",
37279
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37280
+ }
37425
37281
  },
37426
37282
  {
37427
37283
  "kind": "method",
37428
- "name": "renderToggleDetailButton",
37429
- "privacy": "private"
37284
+ "name": "renderHelpTextIcon",
37285
+ "privacy": "protected",
37286
+ "description": "creates the helpertext icon based on the helpTextType for validation.\nIf the helpTextType is not set, it defaults to 'default' and it doesn't display any icon.",
37287
+ "return": {
37288
+ "type": {
37289
+ "text": ""
37290
+ }
37291
+ },
37292
+ "inheritedFrom": {
37293
+ "name": "FormfieldWrapper",
37294
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37295
+ }
37430
37296
  },
37431
37297
  {
37432
37298
  "kind": "method",
37433
- "name": "renderHeader",
37434
- "privacy": "protected"
37299
+ "name": "renderHelpText",
37300
+ "privacy": "protected",
37301
+ "description": "creates the helper text component when the helpertext value is set.\nIt is also used to display the validation message based on the helpTextType.",
37302
+ "return": {
37303
+ "type": {
37304
+ "text": ""
37305
+ }
37306
+ },
37307
+ "inheritedFrom": {
37308
+ "name": "FormfieldWrapper",
37309
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37310
+ }
37435
37311
  },
37436
37312
  {
37437
37313
  "kind": "method",
37438
- "name": "handleFooterSlot",
37314
+ "name": "renderLabel",
37439
37315
  "privacy": "protected",
37316
+ "description": "renders the mdc-label-text container that contains the label and labelInfoToggleTip.",
37440
37317
  "return": {
37441
37318
  "type": {
37442
- "text": "void"
37319
+ "text": ""
37443
37320
  }
37444
37321
  },
37445
- "parameters": [
37446
- {
37447
- "name": "tagname",
37448
- "type": {
37449
- "text": "string"
37450
- }
37451
- },
37452
- {
37453
- "name": "variant",
37454
- "optional": true,
37455
- "type": {
37456
- "text": "string | undefined"
37457
- }
37458
- }
37459
- ]
37322
+ "inheritedFrom": {
37323
+ "name": "FormfieldWrapper",
37324
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37325
+ }
37460
37326
  },
37461
37327
  {
37462
37328
  "kind": "method",
37463
- "name": "renderFooter",
37329
+ "name": "renderHelperText",
37464
37330
  "privacy": "protected",
37465
- "description": "Renders the footer of the card if footer-link,\nfooter-button-primary, or footer-button-secondary slots are provided",
37331
+ "description": "renders the mdc-help-text container that contains the helpertext icon and helpertext.",
37466
37332
  "return": {
37467
37333
  "type": {
37468
37334
  "text": ""
37469
37335
  }
37470
37336
  },
37471
37337
  "inheritedFrom": {
37472
- "name": "FooterMixin",
37473
- "module": "utils/mixins/FooterMixin.js"
37338
+ "name": "FormfieldWrapper",
37339
+ "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37474
37340
  }
37475
37341
  }
37476
37342
  ],
37477
37343
  "events": [
37478
37344
  {
37479
- "description": "(React: onClose) Dispatched when the Close Button is clicked using mouse or keyboard.",
37480
- "name": "close",
37481
- "reactName": "onClose"
37345
+ "type": {
37346
+ "text": "EventConstructor"
37347
+ }
37348
+ },
37349
+ {
37350
+ "description": "(React: onChange) Event that gets dispatched when the toggle state changes.",
37351
+ "name": "change",
37352
+ "reactName": "onChange"
37353
+ },
37354
+ {
37355
+ "description": "(React: onFocus) Event that gets dispatched when the toggle receives focus.",
37356
+ "name": "focus",
37357
+ "reactName": "onFocus"
37482
37358
  }
37483
37359
  ],
37484
37360
  "attributes": [
37485
37361
  {
37486
- "name": "variant",
37362
+ "name": "checked",
37487
37363
  "type": {
37488
- "text": "ToastVariant"
37364
+ "text": "boolean"
37489
37365
  },
37490
- "description": "Type of toast\n- Can be `custom`, `success`, `warning` or `error`.",
37491
- "default": "'custom'",
37492
- "fieldName": "variant"
37366
+ "default": "false",
37367
+ "description": "Determines whether the toggle is active or inactive.",
37368
+ "fieldName": "checked"
37493
37369
  },
37494
37370
  {
37495
- "name": "close-button-aria-label",
37371
+ "name": "size",
37496
37372
  "type": {
37497
- "text": "string | undefined"
37373
+ "text": "ToggleSize"
37498
37374
  },
37499
- "description": "Defines aria-label attribute for close button accessibility",
37500
- "fieldName": "closeButtonAriaLabel"
37375
+ "description": "Determines toggle size in rem (height is specified here).\n- **Default**: 1.5\n- **Compact**: 1",
37376
+ "default": "default",
37377
+ "fieldName": "size"
37501
37378
  },
37502
37379
  {
37503
- "name": "header-text",
37380
+ "name": "autofocus",
37504
37381
  "type": {
37505
- "text": "string | undefined"
37382
+ "text": "boolean"
37506
37383
  },
37507
- "description": "Defines a string value to display as the title of the toast",
37508
- "fieldName": "headerText"
37384
+ "default": "false",
37385
+ "description": "Automatically focus on the element when the page loads.\n[MDN Reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)",
37386
+ "fieldName": "autofocus"
37509
37387
  },
37510
37388
  {
37511
- "name": "header-tag-name",
37389
+ "name": "name",
37512
37390
  "type": {
37513
- "text": "TagName"
37391
+ "text": "string"
37514
37392
  },
37515
- "description": "The html tag to be used for the header text",
37516
- "default": "'h2'",
37517
- "fieldName": "headerTagName"
37393
+ "default": "''",
37394
+ "description": "Indicates the name of the component group.\nThey are used to group elements in a form together.",
37395
+ "fieldName": "name",
37396
+ "inheritedFrom": {
37397
+ "name": "FormInternalsMixin",
37398
+ "module": "src/utils/mixins/FormInternalsMixin.ts"
37399
+ }
37518
37400
  },
37519
37401
  {
37520
- "name": "aria-label",
37402
+ "name": "value",
37403
+ "type": {
37404
+ "text": "string"
37405
+ },
37406
+ "default": "''",
37407
+ "description": "Indicates the value of the component group (ex: input, checkbox, radio, select etc...)",
37408
+ "fieldName": "value",
37409
+ "inheritedFrom": {
37410
+ "name": "FormInternalsMixin",
37411
+ "module": "src/utils/mixins/FormInternalsMixin.ts"
37412
+ }
37413
+ },
37414
+ {
37415
+ "name": "validation-message",
37416
+ "type": {
37417
+ "text": "string | undefined"
37418
+ },
37419
+ "description": "Custom validation message that will override the default message and displayed when the input is invalid.\n\nTo display custom validation messages, you must listen for input events (or other relevant events)\non your component and update the `validationMessage` property with the desired message string.\nUpdating this property will ensure that new validation messages are shown to the user.\n- The `validationMessage` property overrides the default browser validation message when set.\n- Consumers are responsible for updating `validationMessage` in response to input or validation state changes.",
37420
+ "fieldName": "validationMessage",
37421
+ "inheritedFrom": {
37422
+ "name": "FormInternalsMixin",
37423
+ "module": "src/utils/mixins/FormInternalsMixin.ts"
37424
+ }
37425
+ },
37426
+ {
37427
+ "name": "data-aria-label",
37521
37428
  "type": {
37522
37429
  "text": "string | null"
37523
37430
  },
37524
37431
  "default": "null",
37525
- "description": "Defines aria-label attribute when header is not used",
37526
- "fieldName": "ariaLabel"
37432
+ "description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
37433
+ "fieldName": "dataAriaLabel",
37434
+ "inheritedFrom": {
37435
+ "name": "DataAriaLabelMixin",
37436
+ "module": "src/utils/mixins/DataAriaLabelMixin.ts"
37437
+ }
37527
37438
  },
37528
37439
  {
37529
- "name": "show-more-text",
37440
+ "name": "disabled",
37441
+ "type": {
37442
+ "text": "boolean | undefined"
37443
+ },
37444
+ "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
37445
+ "default": "undefined",
37446
+ "fieldName": "disabled",
37447
+ "inheritedFrom": {
37448
+ "name": "FormfieldWrapper",
37449
+ "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
37450
+ }
37451
+ },
37452
+ {
37453
+ "name": "label",
37530
37454
  "type": {
37531
37455
  "text": "string | undefined"
37532
37456
  },
37533
- "description": "Defines the text shown on the linkbutton when detailed content is hidden.",
37534
- "fieldName": "showMoreText"
37457
+ "description": "The label of the input field. It is linked to the input field using the `for` attribute.",
37458
+ "fieldName": "label",
37459
+ "inheritedFrom": {
37460
+ "name": "FormfieldWrapper",
37461
+ "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
37462
+ }
37535
37463
  },
37536
37464
  {
37537
- "name": "show-less-text",
37465
+ "name": "required",
37466
+ "type": {
37467
+ "text": "boolean"
37468
+ },
37469
+ "default": "false",
37470
+ "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
37471
+ "fieldName": "required",
37472
+ "inheritedFrom": {
37473
+ "name": "FormfieldWrapper",
37474
+ "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
37475
+ }
37476
+ },
37477
+ {
37478
+ "name": "help-text-type",
37479
+ "type": {
37480
+ "text": "ValidationType"
37481
+ },
37482
+ "description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
37483
+ "fieldName": "helpTextType",
37484
+ "inheritedFrom": {
37485
+ "name": "FormfieldWrapper",
37486
+ "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
37487
+ }
37488
+ },
37489
+ {
37490
+ "name": "help-text",
37538
37491
  "type": {
37539
37492
  "text": "string | undefined"
37540
37493
  },
37541
- "description": "Defines the text shown on the linkbutton when detailed content is visible.",
37542
- "fieldName": "showLessText"
37494
+ "description": "The help text that is displayed below the input field.",
37495
+ "fieldName": "helpText",
37496
+ "inheritedFrom": {
37497
+ "name": "FormfieldWrapper",
37498
+ "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
37499
+ }
37500
+ },
37501
+ {
37502
+ "name": "toggletip-text",
37503
+ "type": {
37504
+ "text": "string | undefined"
37505
+ },
37506
+ "description": "The toggletip text that is displayed when the label is hovered.\nIt is used to provide additional information about the label.",
37507
+ "fieldName": "toggletipText",
37508
+ "inheritedFrom": {
37509
+ "name": "FormfieldWrapper",
37510
+ "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
37511
+ }
37512
+ },
37513
+ {
37514
+ "name": "toggletip-placement",
37515
+ "type": {
37516
+ "text": "PopoverPlacement"
37517
+ },
37518
+ "description": "The placement of the toggletip that is displayed when the info icon is hovered.",
37519
+ "default": "'top'",
37520
+ "fieldName": "toggletipPlacement",
37521
+ "inheritedFrom": {
37522
+ "name": "FormfieldWrapper",
37523
+ "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
37524
+ }
37525
+ },
37526
+ {
37527
+ "name": "info-icon-aria-label",
37528
+ "type": {
37529
+ "text": "string | undefined"
37530
+ },
37531
+ "description": "Aria label for the info icon that is displayed next to the label when `toggletipText` is set.\nThis is used for accessibility purposes to provide a description of the icon.",
37532
+ "fieldName": "infoIconAriaLabel",
37533
+ "inheritedFrom": {
37534
+ "name": "FormfieldWrapper",
37535
+ "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
37536
+ }
37543
37537
  }
37544
37538
  ],
37545
37539
  "mixins": [
37546
37540
  {
37547
- "name": "FooterMixin",
37548
- "module": "/src/utils/mixins/FooterMixin"
37541
+ "name": "FormInternalsMixin",
37542
+ "module": "/src/utils/mixins/FormInternalsMixin"
37543
+ },
37544
+ {
37545
+ "name": "DataAriaLabelMixin",
37546
+ "module": "/src/utils/mixins/DataAriaLabelMixin"
37549
37547
  }
37550
37548
  ],
37551
37549
  "superclass": {
37552
- "name": "Component",
37553
- "module": "/src/models"
37550
+ "name": "FormfieldWrapper",
37551
+ "module": "/src/components/formfieldwrapper"
37554
37552
  },
37555
- "tagName": "mdc-toast",
37556
- "jsDoc": "/**\n * `mdc-toast` is a lightweight, non-blocking alert used to inform users about application processes.\n * It supports success, warning, error, and custom messages, and is designed to be controlled externally.\n * \n * **Note**: When using `slot=\"toast-body-normal\"` and `slot=\"toast-body-detailed\"`, it's strongly recommended to wrap the content with `<mdc-text tagname=\"span\">`.\n * If not used, ensure your custom content is styled appropriately to match the design and alignment expectations of the toast component.\n * \n * @dependency mdc-icon\n * @dependency mdc-text\n * @dependency mdc-button\n * @dependency mdc-linkbutton\n *\n * @slot content-prefix - Slot for custom content before the icon (only for custom variant).\n * @slot toast-body-normal - Slot for the main body content of the toast.\n * @slot toast-body-detailed - Slot for additional detailed content, shown when expanded.\n * @slot footer - Slot for custom footer content. Prefer using footer-button-primary and footer-button-secondary slots.\n * @slot footer-button-primary - Slot for passing the primary variant of `mdc-button` in the footer.\n * @slot footer-button-secondary - Slot for passing the secondary variant of `mdc-button` in the footer.\n *\n * @tagname mdc-toast\n * \n * @event close - (React: onClose) Dispatched when the Close Button is clicked using mouse or keyboard.\n *\n * @csspart content-container - The container for the toast's main content, including icon, text, and close button.\n * @csspart toast-prefix-icon - The icon shown at the start of the toast, styled by variant.\n * @csspart toast-content - The container for the header and body content of the toast.\n * @csspart toast-header - The header text of the toast.\n * @csspart footer - The container for the toast's footer, including toggle and action buttons.\n * @csspart footer-button-toggle - The toggle button for showing/hiding detailed content.\n * @csspart toast-close-btn - The close button for the toast.\n *\n * @cssproperty --mdc-toast-background-color - Background color of the toast.\n * @cssproperty --mdc-toast-border-color - Border color of the toast.\n * @cssproperty --mdc-toast-header-text-color - Color of the header text in the toast.\n * @cssproperty --mdc-toast-icon-color - Color of the icon in the toast.\n * @cssproperty --mdc-toast-elevation-3 - Elevation effect applied to the toast.\n * @cssproperty --mdc-toast-width - Width of the toast.\n * @cssproperty --mdc-toast-padding - Padding inside the toast.\n */",
37553
+ "tagName": "mdc-toggle",
37554
+ "jsDoc": "/**\n * Toggle Component is an interactive control used to switch between two mutually exclusive options,\n * such as On/Off, Active/Inactive. These are commonly used in settings panels, forms, and preference selections\n * where users need to enable or disable a feature.\n * It contains an optional label and an optional helper text.\n *\n * To create a group of toggles, use the FormFieldGroup component.\n *\n * Note: It internally renders a checkbox styled as a toggle switch.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-statictoggle\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @tagname mdc-toggle\n *\n * @event change - (React: onChange) Event that gets dispatched when the toggle state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the toggle receives focus.\n *\n * @cssproperty --mdc-toggle-width - Width of the toggle\n * @cssproperty --mdc-toggle-height - Height of the toggle\n * @cssproperty --mdc-toggle-width-compact - Width of the toggle when it's size is compact\n * @cssproperty --mdc-toggle-height-compact - Height of the toggle when it's size is compact\n * @cssproperty --mdc-toggle-label-lineheight - Line height of the toggle label\n * @cssproperty --mdc-toggle-label-fontsize - Font size of the toggle label\n * @cssproperty --mdc-toggle-label-fontweight - Font weight of the toggle label\n * @cssproperty --mdc-toggle-label-color-disabled - Color of the toggle label and help text in disabled state\n * @cssproperty --mdc-toggle-help-text-color - Color of the help text label\n * @cssproperty --mdc-toggle-active-hover-color - Background color of the active toggle in hover state\n * @cssproperty --mdc-toggle-active-pressed-color - Background color of the active toggle in pressed state\n * @cssproperty --mdc-toggle-inactive-hover-color - Background color of the inactive toggle in hover state\n * @cssproperty --mdc-toggle-inactive-pressed-color - Background color of the inactive toggle in pressed state\n */",
37557
37555
  "customElement": true
37558
37556
  }
37559
37557
  ],
@@ -37562,725 +37560,384 @@
37562
37560
  "kind": "js",
37563
37561
  "name": "default",
37564
37562
  "declaration": {
37565
- "name": "Toast",
37566
- "module": "components/toast/toast.component.js"
37563
+ "name": "Toggle",
37564
+ "module": "components/toggle/toggle.component.js"
37567
37565
  }
37568
37566
  }
37569
37567
  ]
37570
37568
  },
37571
37569
  {
37572
37570
  "kind": "javascript-module",
37573
- "path": "components/toggle/toggle.component.js",
37571
+ "path": "components/toast/toast.component.js",
37574
37572
  "declarations": [
37575
37573
  {
37576
37574
  "kind": "class",
37577
- "description": "Toggle Component is an interactive control used to switch between two mutually exclusive options,\nsuch as On/Off, Active/Inactive. These are commonly used in settings panels, forms, and preference selections\nwhere users need to enable or disable a feature.\nIt contains an optional label and an optional helper text.\n\nTo create a group of toggles, use the FormFieldGroup component.\n\nNote: It internally renders a checkbox styled as a toggle switch.",
37578
- "name": "Toggle",
37575
+ "description": "`mdc-toast` is a lightweight, non-blocking alert used to inform users about application processes.\nIt supports success, warning, error, and custom messages, and is designed to be controlled externally.\n\n**Note**: When using `slot=\"toast-body-normal\"` and `slot=\"toast-body-detailed\"`, it's strongly recommended to wrap the content with `<mdc-text tagname=\"span\">`.\nIf not used, ensure your custom content is styled appropriately to match the design and alignment expectations of the toast component.",
37576
+ "name": "Toast",
37579
37577
  "cssProperties": [
37580
37578
  {
37581
- "description": "Width of the toggle",
37582
- "name": "--mdc-toggle-width"
37583
- },
37584
- {
37585
- "description": "Height of the toggle",
37586
- "name": "--mdc-toggle-height"
37587
- },
37588
- {
37589
- "description": "Width of the toggle when it's size is compact",
37590
- "name": "--mdc-toggle-width-compact"
37591
- },
37592
- {
37593
- "description": "Height of the toggle when it's size is compact",
37594
- "name": "--mdc-toggle-height-compact"
37595
- },
37596
- {
37597
- "description": "Line height of the toggle label",
37598
- "name": "--mdc-toggle-label-lineheight"
37599
- },
37600
- {
37601
- "description": "Font size of the toggle label",
37602
- "name": "--mdc-toggle-label-fontsize"
37603
- },
37604
- {
37605
- "description": "Font weight of the toggle label",
37606
- "name": "--mdc-toggle-label-fontweight"
37579
+ "description": "Background color of the toast.",
37580
+ "name": "--mdc-toast-background-color"
37607
37581
  },
37608
37582
  {
37609
- "description": "Color of the toggle label and help text in disabled state",
37610
- "name": "--mdc-toggle-label-color-disabled"
37583
+ "description": "Border color of the toast.",
37584
+ "name": "--mdc-toast-border-color"
37611
37585
  },
37612
37586
  {
37613
- "description": "Color of the help text label",
37614
- "name": "--mdc-toggle-help-text-color"
37587
+ "description": "Color of the header text in the toast.",
37588
+ "name": "--mdc-toast-header-text-color"
37615
37589
  },
37616
37590
  {
37617
- "description": "Background color of the active toggle in hover state",
37618
- "name": "--mdc-toggle-active-hover-color"
37591
+ "description": "Color of the icon in the toast.",
37592
+ "name": "--mdc-toast-icon-color"
37619
37593
  },
37620
37594
  {
37621
- "description": "Background color of the active toggle in pressed state",
37622
- "name": "--mdc-toggle-active-pressed-color"
37595
+ "description": "Elevation effect applied to the toast.",
37596
+ "name": "--mdc-toast-elevation-3"
37623
37597
  },
37624
37598
  {
37625
- "description": "Background color of the inactive toggle in hover state",
37626
- "name": "--mdc-toggle-inactive-hover-color"
37599
+ "description": "Width of the toast.",
37600
+ "name": "--mdc-toast-width"
37627
37601
  },
37628
37602
  {
37629
- "description": "Background color of the inactive toggle in pressed state",
37630
- "name": "--mdc-toggle-inactive-pressed-color"
37603
+ "description": "Padding inside the toast.",
37604
+ "name": "--mdc-toast-padding"
37631
37605
  }
37632
37606
  ],
37633
- "members": [
37634
- {
37635
- "kind": "field",
37636
- "name": "checked",
37637
- "type": {
37638
- "text": "boolean"
37639
- },
37640
- "default": "false",
37641
- "description": "Determines whether the toggle is active or inactive.",
37642
- "attribute": "checked",
37643
- "reflects": true
37644
- },
37645
- {
37646
- "kind": "field",
37647
- "name": "size",
37648
- "type": {
37649
- "text": "ToggleSize"
37650
- },
37651
- "description": "Determines toggle size in rem (height is specified here).\n- **Default**: 1.5\n- **Compact**: 1",
37652
- "default": "default",
37653
- "attribute": "size",
37654
- "reflects": true
37655
- },
37656
- {
37657
- "kind": "field",
37658
- "name": "autofocus",
37659
- "type": {
37660
- "text": "boolean"
37661
- },
37662
- "default": "false",
37663
- "description": "Automatically focus on the element when the page loads.\n[MDN Reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)",
37664
- "attribute": "autofocus",
37665
- "reflects": true
37666
- },
37667
- {
37668
- "kind": "method",
37669
- "name": "manageRequired",
37670
- "privacy": "private",
37671
- "description": "Manages the required state of the checkbox.\nIf the checkbox is not checked and the required property is set, then the checkbox is invalid.\nIf the validationMessage is set, it will be used as the custom validity message.\nIf the validationMessage is not set, it will clear the custom validity message."
37672
- },
37673
- {
37674
- "kind": "method",
37675
- "name": "setFormValue",
37676
- "privacy": "private",
37677
- "description": "Updates the form value to reflect the current state of the toggle.\nIf toggle is switched on, the value is set to either the user-provided value or 'isActive' if no value is provided.\nIf toggle is switched off, the value is set to null."
37678
- },
37607
+ "cssParts": [
37679
37608
  {
37680
- "kind": "method",
37681
- "name": "toggleState",
37682
- "privacy": "private",
37683
- "return": {
37684
- "type": {
37685
- "text": "void"
37686
- }
37687
- },
37688
- "description": "Toggles the state of the toggle element.\nIf the element is not disabled, then the checked property is toggled."
37609
+ "description": "The container for the toast's main content, including icon, text, and close button.",
37610
+ "name": "content-container"
37689
37611
  },
37690
37612
  {
37691
- "kind": "method",
37692
- "name": "handleKeyDown",
37693
- "privacy": "private",
37694
- "return": {
37695
- "type": {
37696
- "text": "void"
37697
- }
37698
- },
37699
- "parameters": [
37700
- {
37701
- "name": "event",
37702
- "type": {
37703
- "text": "KeyboardEvent"
37704
- },
37705
- "description": "The keyboard event."
37706
- }
37707
- ],
37708
- "description": "Handles the keydown event on the toggle element.\nWhen the user presses Enter, the form is submitted."
37613
+ "description": "The icon shown at the start of the toast, styled by variant.",
37614
+ "name": "toast-prefix-icon"
37709
37615
  },
37710
37616
  {
37711
- "kind": "method",
37712
- "name": "handleChange",
37713
- "privacy": "private",
37714
- "parameters": [
37715
- {
37716
- "name": "event",
37717
- "type": {
37718
- "text": "Event"
37719
- }
37720
- }
37721
- ],
37722
- "description": "Toggles the state of the toggle element.\nand dispatch the new change event."
37617
+ "description": "The container for the header and body content of the toast.",
37618
+ "name": "toast-content"
37723
37619
  },
37724
37620
  {
37725
- "kind": "method",
37726
- "name": "setToggleSize",
37727
- "privacy": "private",
37728
- "parameters": [
37729
- {
37730
- "name": "size",
37731
- "type": {
37732
- "text": "ToggleSize"
37733
- },
37734
- "description": "The size to set."
37735
- }
37736
- ],
37737
- "description": "Sets the size attribute for the toggle component.\nIf the provided size is not included in the TOGGLE_SIZE,\nit defaults to the value specified in DEFAULTS.SIZE."
37621
+ "description": "The header text of the toast.",
37622
+ "name": "toast-header"
37738
37623
  },
37739
37624
  {
37740
- "kind": "field",
37741
- "name": "name",
37742
- "type": {
37743
- "text": "string"
37744
- },
37745
- "default": "''",
37746
- "description": "Indicates the name of the component group.\nThey are used to group elements in a form together.",
37747
- "attribute": "name",
37748
- "reflects": true,
37749
- "inheritedFrom": {
37750
- "name": "FormInternalsMixin",
37751
- "module": "utils/mixins/FormInternalsMixin.js"
37752
- }
37625
+ "description": "The container for the toast's footer, including toggle and action buttons.",
37626
+ "name": "footer"
37753
37627
  },
37754
37628
  {
37755
- "kind": "field",
37756
- "name": "value",
37757
- "type": {
37758
- "text": "string"
37759
- },
37760
- "default": "''",
37761
- "description": "Indicates the value of the component group (ex: input, checkbox, radio, select etc...)",
37762
- "attribute": "value",
37763
- "reflects": true,
37764
- "inheritedFrom": {
37765
- "name": "FormInternalsMixin",
37766
- "module": "utils/mixins/FormInternalsMixin.js"
37767
- }
37629
+ "description": "The toggle button for showing/hiding detailed content.",
37630
+ "name": "footer-button-toggle"
37768
37631
  },
37769
37632
  {
37770
- "kind": "field",
37771
- "name": "validationMessage",
37772
- "type": {
37773
- "text": "string | undefined"
37774
- },
37775
- "description": "Custom validation message that will override the default message and displayed when the input is invalid.\n\nTo display custom validation messages, you must listen for input events (or other relevant events)\non your component and update the `validationMessage` property with the desired message string.\nUpdating this property will ensure that new validation messages are shown to the user.\n- The `validationMessage` property overrides the default browser validation message when set.\n- Consumers are responsible for updating `validationMessage` in response to input or validation state changes.",
37776
- "attribute": "validation-message",
37777
- "reflects": true,
37778
- "inheritedFrom": {
37779
- "name": "FormInternalsMixin",
37780
- "module": "utils/mixins/FormInternalsMixin.js"
37781
- }
37782
- },
37633
+ "description": "The close button for the toast.",
37634
+ "name": "toast-close-btn"
37635
+ }
37636
+ ],
37637
+ "slots": [
37783
37638
  {
37784
- "kind": "field",
37785
- "name": "validity",
37786
- "type": {
37787
- "text": "ValidityState"
37788
- },
37789
- "readonly": true,
37790
- "inheritedFrom": {
37791
- "name": "FormInternalsMixin",
37792
- "module": "utils/mixins/FormInternalsMixin.js"
37793
- }
37639
+ "description": "Slot for custom content before the icon (only for custom variant).",
37640
+ "name": "content-prefix"
37794
37641
  },
37795
37642
  {
37796
- "kind": "field",
37797
- "name": "willValidate",
37798
- "readonly": true,
37799
- "inheritedFrom": {
37800
- "name": "FormInternalsMixin",
37801
- "module": "utils/mixins/FormInternalsMixin.js"
37802
- }
37643
+ "description": "Slot for the main body content of the toast.",
37644
+ "name": "toast-body-normal"
37803
37645
  },
37804
37646
  {
37805
- "kind": "method",
37806
- "name": "setValidity",
37807
- "description": "Sets the validity of the input field based on the input field's validity.",
37808
- "return": {
37809
- "type": {
37810
- "text": ""
37811
- }
37812
- },
37813
- "inheritedFrom": {
37814
- "name": "FormInternalsMixin",
37815
- "module": "utils/mixins/FormInternalsMixin.js"
37816
- }
37647
+ "description": "Slot for additional detailed content, shown when expanded.",
37648
+ "name": "toast-body-detailed"
37817
37649
  },
37818
37650
  {
37819
- "kind": "method",
37820
- "name": "checkValidity",
37821
- "return": {
37822
- "type": {
37823
- "text": "boolean"
37824
- }
37825
- },
37826
- "inheritedFrom": {
37827
- "name": "FormInternalsMixin",
37828
- "module": "utils/mixins/FormInternalsMixin.js"
37829
- }
37651
+ "description": "Slot for custom footer content. Prefer using footer-button-primary and footer-button-secondary slots.",
37652
+ "name": "footer"
37830
37653
  },
37831
37654
  {
37832
- "kind": "method",
37833
- "name": "reportValidity",
37834
- "inheritedFrom": {
37835
- "name": "FormInternalsMixin",
37836
- "module": "utils/mixins/FormInternalsMixin.js"
37837
- }
37655
+ "description": "Slot for passing the primary variant of `mdc-button` in the footer.",
37656
+ "name": "footer-button-primary"
37838
37657
  },
37658
+ {
37659
+ "description": "Slot for passing the secondary variant of `mdc-button` in the footer.",
37660
+ "name": "footer-button-secondary"
37661
+ }
37662
+ ],
37663
+ "members": [
37839
37664
  {
37840
37665
  "kind": "field",
37841
- "name": "dataAriaLabel",
37666
+ "name": "variant",
37842
37667
  "type": {
37843
- "text": "string | null"
37668
+ "text": "ToastVariant"
37844
37669
  },
37845
- "default": "null",
37846
- "description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
37847
- "attribute": "data-aria-label",
37848
- "reflects": true,
37849
- "inheritedFrom": {
37850
- "name": "DataAriaLabelMixin",
37851
- "module": "utils/mixins/DataAriaLabelMixin.js"
37852
- }
37670
+ "description": "Type of toast\n- Can be `custom`, `success`, `warning` or `error`.",
37671
+ "default": "'custom'",
37672
+ "attribute": "variant",
37673
+ "reflects": true
37853
37674
  },
37854
37675
  {
37855
37676
  "kind": "field",
37856
- "name": "disabled",
37677
+ "name": "closeButtonAriaLabel",
37857
37678
  "type": {
37858
- "text": "boolean | undefined"
37679
+ "text": "string | undefined"
37859
37680
  },
37860
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
37861
- "default": "undefined",
37862
- "attribute": "disabled",
37863
- "reflects": true,
37864
- "inheritedFrom": {
37865
- "name": "FormfieldWrapper",
37866
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37867
- }
37681
+ "description": "Defines aria-label attribute for close button accessibility",
37682
+ "attribute": "close-button-aria-label"
37868
37683
  },
37869
37684
  {
37870
37685
  "kind": "field",
37871
- "name": "label",
37686
+ "name": "headerText",
37872
37687
  "type": {
37873
37688
  "text": "string | undefined"
37874
37689
  },
37875
- "description": "The label of the input field. It is linked to the input field using the `for` attribute.",
37876
- "attribute": "label",
37877
- "reflects": true,
37878
- "inheritedFrom": {
37879
- "name": "FormfieldWrapper",
37880
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37881
- }
37690
+ "description": "Defines a string value to display as the title of the toast",
37691
+ "attribute": "header-text",
37692
+ "reflects": true
37882
37693
  },
37883
37694
  {
37884
37695
  "kind": "field",
37885
- "name": "required",
37696
+ "name": "headerTagName",
37886
37697
  "type": {
37887
- "text": "boolean"
37698
+ "text": "TagName"
37888
37699
  },
37889
- "default": "false",
37890
- "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
37891
- "attribute": "required",
37892
- "reflects": true,
37893
- "inheritedFrom": {
37894
- "name": "FormfieldWrapper",
37895
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37896
- }
37700
+ "description": "The html tag to be used for the header text",
37701
+ "default": "'h2'",
37702
+ "attribute": "header-tag-name",
37703
+ "reflects": true
37897
37704
  },
37898
37705
  {
37899
37706
  "kind": "field",
37900
- "name": "id",
37707
+ "name": "ariaLabel",
37901
37708
  "type": {
37902
- "text": "string"
37709
+ "text": "string | null"
37903
37710
  },
37904
- "default": "''",
37905
- "description": "The unique id of the input field. It is used to link the input field with the label.",
37906
- "attribute": "id",
37907
- "inheritedFrom": {
37908
- "name": "FormfieldWrapper",
37909
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37910
- }
37711
+ "default": "null",
37712
+ "description": "Defines aria-label attribute when header is not used",
37713
+ "attribute": "aria-label",
37714
+ "reflects": true
37911
37715
  },
37912
37716
  {
37913
37717
  "kind": "field",
37914
- "name": "helpTextType",
37718
+ "name": "showMoreText",
37915
37719
  "type": {
37916
- "text": "ValidationType"
37720
+ "text": "string | undefined"
37917
37721
  },
37918
- "description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
37919
- "attribute": "help-text-type",
37920
- "reflects": true,
37921
- "inheritedFrom": {
37922
- "name": "FormfieldWrapper",
37923
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37924
- }
37722
+ "description": "Defines the text shown on the linkbutton when detailed content is hidden.",
37723
+ "attribute": "show-more-text",
37724
+ "reflects": true
37925
37725
  },
37926
37726
  {
37927
37727
  "kind": "field",
37928
- "name": "helpText",
37728
+ "name": "showLessText",
37929
37729
  "type": {
37930
37730
  "text": "string | undefined"
37931
37731
  },
37932
- "description": "The help text that is displayed below the input field.",
37933
- "attribute": "help-text",
37934
- "reflects": true,
37935
- "inheritedFrom": {
37936
- "name": "FormfieldWrapper",
37937
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37938
- }
37732
+ "description": "Defines the text shown on the linkbutton when detailed content is visible.",
37733
+ "attribute": "show-less-text",
37734
+ "reflects": true
37939
37735
  },
37940
37736
  {
37941
37737
  "kind": "field",
37942
- "name": "toggletipText",
37738
+ "name": "isDetailVisible",
37943
37739
  "type": {
37944
- "text": "string | undefined"
37740
+ "text": "boolean"
37945
37741
  },
37946
- "description": "The toggletip text that is displayed when the label is hovered.\nIt is used to provide additional information about the label.",
37947
- "attribute": "toggletip-text",
37948
- "reflects": true,
37949
- "inheritedFrom": {
37950
- "name": "FormfieldWrapper",
37951
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37952
- }
37742
+ "privacy": "private",
37743
+ "default": "false"
37953
37744
  },
37954
37745
  {
37955
37746
  "kind": "field",
37956
- "name": "toggletipPlacement",
37747
+ "name": "hasDetailedSlot",
37957
37748
  "type": {
37958
- "text": "PopoverPlacement"
37749
+ "text": "boolean"
37959
37750
  },
37960
- "description": "The placement of the toggletip that is displayed when the info icon is hovered.",
37961
- "default": "'top'",
37962
- "attribute": "toggletip-placement",
37963
- "reflects": true,
37964
- "inheritedFrom": {
37965
- "name": "FormfieldWrapper",
37966
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37967
- }
37751
+ "privacy": "private",
37752
+ "default": "false"
37968
37753
  },
37969
37754
  {
37970
37755
  "kind": "field",
37971
- "name": "infoIconAriaLabel",
37756
+ "name": "detailedElements",
37972
37757
  "type": {
37973
- "text": "string | undefined"
37758
+ "text": "HTMLElement[]"
37974
37759
  },
37975
- "description": "Aria label for the info icon that is displayed next to the label when `toggletipText` is set.\nThis is used for accessibility purposes to provide a description of the icon.",
37976
- "attribute": "info-icon-aria-label",
37977
- "reflects": true,
37978
- "inheritedFrom": {
37979
- "name": "FormfieldWrapper",
37980
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37981
- }
37760
+ "privacy": "private"
37982
37761
  },
37983
37762
  {
37984
- "kind": "method",
37985
- "name": "renderLabelElement",
37986
- "privacy": "protected",
37987
- "description": "creates the label element when the label property is set.\nid is used to link the label with the input field.",
37988
- "return": {
37989
- "type": {
37990
- "text": ""
37991
- }
37763
+ "kind": "field",
37764
+ "name": "hasFooterButtons",
37765
+ "type": {
37766
+ "text": "string"
37992
37767
  },
37993
- "inheritedFrom": {
37994
- "name": "FormfieldWrapper",
37995
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37996
- }
37768
+ "privacy": "private",
37769
+ "default": "''"
37997
37770
  },
37998
37771
  {
37999
37772
  "kind": "method",
38000
- "name": "renderHelpTextIcon",
38001
- "privacy": "protected",
38002
- "description": "creates the helpertext icon based on the helpTextType for validation.\nIf the helpTextType is not set, it defaults to 'default' and it doesn't display any icon.",
38003
- "return": {
38004
- "type": {
38005
- "text": ""
38006
- }
38007
- },
38008
- "inheritedFrom": {
38009
- "name": "FormfieldWrapper",
38010
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
38011
- }
37773
+ "name": "closeToast",
37774
+ "privacy": "private",
37775
+ "description": "Fired when Close Button is clicked using mouse or keyboard.\nThis method dispatches the close event.\nIt is used to notify that the toast should be closed."
38012
37776
  },
38013
37777
  {
38014
37778
  "kind": "method",
38015
- "name": "renderHelpText",
37779
+ "name": "toggleDetailVisibility",
37780
+ "privacy": "private"
37781
+ },
37782
+ {
37783
+ "kind": "method",
37784
+ "name": "updateDetailedSlotPresence",
37785
+ "privacy": "private"
37786
+ },
37787
+ {
37788
+ "kind": "method",
37789
+ "name": "updateFooterButtonsPresence",
37790
+ "privacy": "private"
37791
+ },
37792
+ {
37793
+ "kind": "method",
37794
+ "name": "renderIcon",
38016
37795
  "privacy": "protected",
38017
- "description": "creates the helper text component when the helpertext value is set.\nIt is also used to display the validation message based on the helpTextType.",
38018
- "return": {
38019
- "type": {
38020
- "text": ""
37796
+ "parameters": [
37797
+ {
37798
+ "name": "iconName",
37799
+ "type": {
37800
+ "text": "string"
37801
+ }
38021
37802
  }
38022
- },
38023
- "inheritedFrom": {
38024
- "name": "FormfieldWrapper",
38025
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
38026
- }
37803
+ ]
37804
+ },
37805
+ {
37806
+ "kind": "method",
37807
+ "name": "shouldRenderToggleButton",
37808
+ "privacy": "private"
37809
+ },
37810
+ {
37811
+ "kind": "method",
37812
+ "name": "renderToggleDetailButton",
37813
+ "privacy": "private"
37814
+ },
37815
+ {
37816
+ "kind": "method",
37817
+ "name": "renderHeader",
37818
+ "privacy": "protected"
38027
37819
  },
38028
37820
  {
38029
37821
  "kind": "method",
38030
- "name": "renderLabel",
37822
+ "name": "handleFooterSlot",
38031
37823
  "privacy": "protected",
38032
- "description": "renders the mdc-label-text container that contains the label and labelInfoToggleTip.",
38033
37824
  "return": {
38034
37825
  "type": {
38035
- "text": ""
37826
+ "text": "void"
38036
37827
  }
38037
37828
  },
38038
- "inheritedFrom": {
38039
- "name": "FormfieldWrapper",
38040
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
38041
- }
37829
+ "parameters": [
37830
+ {
37831
+ "name": "tagname",
37832
+ "type": {
37833
+ "text": "string"
37834
+ }
37835
+ },
37836
+ {
37837
+ "name": "variant",
37838
+ "optional": true,
37839
+ "type": {
37840
+ "text": "string | undefined"
37841
+ }
37842
+ }
37843
+ ]
38042
37844
  },
38043
37845
  {
38044
37846
  "kind": "method",
38045
- "name": "renderHelperText",
37847
+ "name": "renderFooter",
38046
37848
  "privacy": "protected",
38047
- "description": "renders the mdc-help-text container that contains the helpertext icon and helpertext.",
37849
+ "description": "Renders the footer of the card if footer-link,\nfooter-button-primary, or footer-button-secondary slots are provided",
38048
37850
  "return": {
38049
37851
  "type": {
38050
37852
  "text": ""
38051
37853
  }
38052
37854
  },
38053
37855
  "inheritedFrom": {
38054
- "name": "FormfieldWrapper",
38055
- "module": "components/formfieldwrapper/formfieldwrapper.component.js"
37856
+ "name": "FooterMixin",
37857
+ "module": "utils/mixins/FooterMixin.js"
38056
37858
  }
38057
37859
  }
38058
37860
  ],
38059
37861
  "events": [
38060
37862
  {
38061
- "type": {
38062
- "text": "EventConstructor"
38063
- }
38064
- },
38065
- {
38066
- "description": "(React: onChange) Event that gets dispatched when the toggle state changes.",
38067
- "name": "change",
38068
- "reactName": "onChange"
38069
- },
38070
- {
38071
- "description": "(React: onFocus) Event that gets dispatched when the toggle receives focus.",
38072
- "name": "focus",
38073
- "reactName": "onFocus"
37863
+ "description": "(React: onClose) Dispatched when the Close Button is clicked using mouse or keyboard.",
37864
+ "name": "close",
37865
+ "reactName": "onClose"
38074
37866
  }
38075
37867
  ],
38076
37868
  "attributes": [
38077
37869
  {
38078
- "name": "checked",
38079
- "type": {
38080
- "text": "boolean"
38081
- },
38082
- "default": "false",
38083
- "description": "Determines whether the toggle is active or inactive.",
38084
- "fieldName": "checked"
38085
- },
38086
- {
38087
- "name": "size",
38088
- "type": {
38089
- "text": "ToggleSize"
38090
- },
38091
- "description": "Determines toggle size in rem (height is specified here).\n- **Default**: 1.5\n- **Compact**: 1",
38092
- "default": "default",
38093
- "fieldName": "size"
38094
- },
38095
- {
38096
- "name": "autofocus",
38097
- "type": {
38098
- "text": "boolean"
38099
- },
38100
- "default": "false",
38101
- "description": "Automatically focus on the element when the page loads.\n[MDN Reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus)",
38102
- "fieldName": "autofocus"
38103
- },
38104
- {
38105
- "name": "name",
38106
- "type": {
38107
- "text": "string"
38108
- },
38109
- "default": "''",
38110
- "description": "Indicates the name of the component group.\nThey are used to group elements in a form together.",
38111
- "fieldName": "name",
38112
- "inheritedFrom": {
38113
- "name": "FormInternalsMixin",
38114
- "module": "src/utils/mixins/FormInternalsMixin.ts"
38115
- }
38116
- },
38117
- {
38118
- "name": "value",
37870
+ "name": "variant",
38119
37871
  "type": {
38120
- "text": "string"
37872
+ "text": "ToastVariant"
38121
37873
  },
38122
- "default": "''",
38123
- "description": "Indicates the value of the component group (ex: input, checkbox, radio, select etc...)",
38124
- "fieldName": "value",
38125
- "inheritedFrom": {
38126
- "name": "FormInternalsMixin",
38127
- "module": "src/utils/mixins/FormInternalsMixin.ts"
38128
- }
37874
+ "description": "Type of toast\n- Can be `custom`, `success`, `warning` or `error`.",
37875
+ "default": "'custom'",
37876
+ "fieldName": "variant"
38129
37877
  },
38130
37878
  {
38131
- "name": "validation-message",
37879
+ "name": "close-button-aria-label",
38132
37880
  "type": {
38133
37881
  "text": "string | undefined"
38134
37882
  },
38135
- "description": "Custom validation message that will override the default message and displayed when the input is invalid.\n\nTo display custom validation messages, you must listen for input events (or other relevant events)\non your component and update the `validationMessage` property with the desired message string.\nUpdating this property will ensure that new validation messages are shown to the user.\n- The `validationMessage` property overrides the default browser validation message when set.\n- Consumers are responsible for updating `validationMessage` in response to input or validation state changes.",
38136
- "fieldName": "validationMessage",
38137
- "inheritedFrom": {
38138
- "name": "FormInternalsMixin",
38139
- "module": "src/utils/mixins/FormInternalsMixin.ts"
38140
- }
38141
- },
38142
- {
38143
- "name": "data-aria-label",
38144
- "type": {
38145
- "text": "string | null"
38146
- },
38147
- "default": "null",
38148
- "description": "Defines a string value that labels the current element.\nThe Aria-Label attribute to be set for accessibility.",
38149
- "fieldName": "dataAriaLabel",
38150
- "inheritedFrom": {
38151
- "name": "DataAriaLabelMixin",
38152
- "module": "src/utils/mixins/DataAriaLabelMixin.ts"
38153
- }
38154
- },
38155
- {
38156
- "name": "disabled",
38157
- "type": {
38158
- "text": "boolean | undefined"
38159
- },
38160
- "description": "Indicates whether the component is disabled.\nWhen the component is disabled for user interaction; it is not focusable or clickable.",
38161
- "default": "undefined",
38162
- "fieldName": "disabled",
38163
- "inheritedFrom": {
38164
- "name": "FormfieldWrapper",
38165
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
38166
- }
37883
+ "description": "Defines aria-label attribute for close button accessibility",
37884
+ "fieldName": "closeButtonAriaLabel"
38167
37885
  },
38168
37886
  {
38169
- "name": "label",
37887
+ "name": "header-text",
38170
37888
  "type": {
38171
37889
  "text": "string | undefined"
38172
37890
  },
38173
- "description": "The label of the input field. It is linked to the input field using the `for` attribute.",
38174
- "fieldName": "label",
38175
- "inheritedFrom": {
38176
- "name": "FormfieldWrapper",
38177
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
38178
- }
38179
- },
38180
- {
38181
- "name": "required",
38182
- "type": {
38183
- "text": "boolean"
38184
- },
38185
- "default": "false",
38186
- "description": "The required attribute to indicate that the input field is required.\nIt is used to append a required indicator (*) to the label.",
38187
- "fieldName": "required",
38188
- "inheritedFrom": {
38189
- "name": "FormfieldWrapper",
38190
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
38191
- }
38192
- },
38193
- {
38194
- "name": "id",
38195
- "type": {
38196
- "text": "string"
38197
- },
38198
- "default": "''",
38199
- "description": "The unique id of the input field. It is used to link the input field with the label.",
38200
- "fieldName": "id",
38201
- "inheritedFrom": {
38202
- "name": "FormfieldWrapper",
38203
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
38204
- }
37891
+ "description": "Defines a string value to display as the title of the toast",
37892
+ "fieldName": "headerText"
38205
37893
  },
38206
37894
  {
38207
- "name": "help-text-type",
37895
+ "name": "header-tag-name",
38208
37896
  "type": {
38209
- "text": "ValidationType"
37897
+ "text": "TagName"
38210
37898
  },
38211
- "description": "The type of help text. It can be 'default', 'error', 'warning', 'success', 'priority'.",
38212
- "fieldName": "helpTextType",
38213
- "inheritedFrom": {
38214
- "name": "FormfieldWrapper",
38215
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
38216
- }
37899
+ "description": "The html tag to be used for the header text",
37900
+ "default": "'h2'",
37901
+ "fieldName": "headerTagName"
38217
37902
  },
38218
37903
  {
38219
- "name": "help-text",
37904
+ "name": "aria-label",
38220
37905
  "type": {
38221
- "text": "string | undefined"
37906
+ "text": "string | null"
38222
37907
  },
38223
- "description": "The help text that is displayed below the input field.",
38224
- "fieldName": "helpText",
38225
- "inheritedFrom": {
38226
- "name": "FormfieldWrapper",
38227
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
38228
- }
37908
+ "default": "null",
37909
+ "description": "Defines aria-label attribute when header is not used",
37910
+ "fieldName": "ariaLabel"
38229
37911
  },
38230
37912
  {
38231
- "name": "toggletip-text",
37913
+ "name": "show-more-text",
38232
37914
  "type": {
38233
37915
  "text": "string | undefined"
38234
37916
  },
38235
- "description": "The toggletip text that is displayed when the label is hovered.\nIt is used to provide additional information about the label.",
38236
- "fieldName": "toggletipText",
38237
- "inheritedFrom": {
38238
- "name": "FormfieldWrapper",
38239
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
38240
- }
38241
- },
38242
- {
38243
- "name": "toggletip-placement",
38244
- "type": {
38245
- "text": "PopoverPlacement"
38246
- },
38247
- "description": "The placement of the toggletip that is displayed when the info icon is hovered.",
38248
- "default": "'top'",
38249
- "fieldName": "toggletipPlacement",
38250
- "inheritedFrom": {
38251
- "name": "FormfieldWrapper",
38252
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
38253
- }
37917
+ "description": "Defines the text shown on the linkbutton when detailed content is hidden.",
37918
+ "fieldName": "showMoreText"
38254
37919
  },
38255
37920
  {
38256
- "name": "info-icon-aria-label",
37921
+ "name": "show-less-text",
38257
37922
  "type": {
38258
37923
  "text": "string | undefined"
38259
37924
  },
38260
- "description": "Aria label for the info icon that is displayed next to the label when `toggletipText` is set.\nThis is used for accessibility purposes to provide a description of the icon.",
38261
- "fieldName": "infoIconAriaLabel",
38262
- "inheritedFrom": {
38263
- "name": "FormfieldWrapper",
38264
- "module": "src/components/formfieldwrapper/formfieldwrapper.component.ts"
38265
- }
37925
+ "description": "Defines the text shown on the linkbutton when detailed content is visible.",
37926
+ "fieldName": "showLessText"
38266
37927
  }
38267
37928
  ],
38268
37929
  "mixins": [
38269
37930
  {
38270
- "name": "FormInternalsMixin",
38271
- "module": "/src/utils/mixins/FormInternalsMixin"
38272
- },
38273
- {
38274
- "name": "DataAriaLabelMixin",
38275
- "module": "/src/utils/mixins/DataAriaLabelMixin"
37931
+ "name": "FooterMixin",
37932
+ "module": "/src/utils/mixins/FooterMixin"
38276
37933
  }
38277
37934
  ],
38278
37935
  "superclass": {
38279
- "name": "FormfieldWrapper",
38280
- "module": "/src/components/formfieldwrapper"
37936
+ "name": "Component",
37937
+ "module": "/src/models"
38281
37938
  },
38282
- "tagName": "mdc-toggle",
38283
- "jsDoc": "/**\n * Toggle Component is an interactive control used to switch between two mutually exclusive options,\n * such as On/Off, Active/Inactive. These are commonly used in settings panels, forms, and preference selections\n * where users need to enable or disable a feature.\n * It contains an optional label and an optional helper text.\n *\n * To create a group of toggles, use the FormFieldGroup component.\n *\n * Note: It internally renders a checkbox styled as a toggle switch.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-statictoggle\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @tagname mdc-toggle\n *\n * @event change - (React: onChange) Event that gets dispatched when the toggle state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the toggle receives focus.\n *\n * @cssproperty --mdc-toggle-width - Width of the toggle\n * @cssproperty --mdc-toggle-height - Height of the toggle\n * @cssproperty --mdc-toggle-width-compact - Width of the toggle when it's size is compact\n * @cssproperty --mdc-toggle-height-compact - Height of the toggle when it's size is compact\n * @cssproperty --mdc-toggle-label-lineheight - Line height of the toggle label\n * @cssproperty --mdc-toggle-label-fontsize - Font size of the toggle label\n * @cssproperty --mdc-toggle-label-fontweight - Font weight of the toggle label\n * @cssproperty --mdc-toggle-label-color-disabled - Color of the toggle label and help text in disabled state\n * @cssproperty --mdc-toggle-help-text-color - Color of the help text label\n * @cssproperty --mdc-toggle-active-hover-color - Background color of the active toggle in hover state\n * @cssproperty --mdc-toggle-active-pressed-color - Background color of the active toggle in pressed state\n * @cssproperty --mdc-toggle-inactive-hover-color - Background color of the inactive toggle in hover state\n * @cssproperty --mdc-toggle-inactive-pressed-color - Background color of the inactive toggle in pressed state\n */",
37939
+ "tagName": "mdc-toast",
37940
+ "jsDoc": "/**\n * `mdc-toast` is a lightweight, non-blocking alert used to inform users about application processes.\n * It supports success, warning, error, and custom messages, and is designed to be controlled externally.\n * \n * **Note**: When using `slot=\"toast-body-normal\"` and `slot=\"toast-body-detailed\"`, it's strongly recommended to wrap the content with `<mdc-text tagname=\"span\">`.\n * If not used, ensure your custom content is styled appropriately to match the design and alignment expectations of the toast component.\n * \n * @dependency mdc-icon\n * @dependency mdc-text\n * @dependency mdc-button\n * @dependency mdc-linkbutton\n *\n * @slot content-prefix - Slot for custom content before the icon (only for custom variant).\n * @slot toast-body-normal - Slot for the main body content of the toast.\n * @slot toast-body-detailed - Slot for additional detailed content, shown when expanded.\n * @slot footer - Slot for custom footer content. Prefer using footer-button-primary and footer-button-secondary slots.\n * @slot footer-button-primary - Slot for passing the primary variant of `mdc-button` in the footer.\n * @slot footer-button-secondary - Slot for passing the secondary variant of `mdc-button` in the footer.\n *\n * @tagname mdc-toast\n * \n * @event close - (React: onClose) Dispatched when the Close Button is clicked using mouse or keyboard.\n *\n * @csspart content-container - The container for the toast's main content, including icon, text, and close button.\n * @csspart toast-prefix-icon - The icon shown at the start of the toast, styled by variant.\n * @csspart toast-content - The container for the header and body content of the toast.\n * @csspart toast-header - The header text of the toast.\n * @csspart footer - The container for the toast's footer, including toggle and action buttons.\n * @csspart footer-button-toggle - The toggle button for showing/hiding detailed content.\n * @csspart toast-close-btn - The close button for the toast.\n *\n * @cssproperty --mdc-toast-background-color - Background color of the toast.\n * @cssproperty --mdc-toast-border-color - Border color of the toast.\n * @cssproperty --mdc-toast-header-text-color - Color of the header text in the toast.\n * @cssproperty --mdc-toast-icon-color - Color of the icon in the toast.\n * @cssproperty --mdc-toast-elevation-3 - Elevation effect applied to the toast.\n * @cssproperty --mdc-toast-width - Width of the toast.\n * @cssproperty --mdc-toast-padding - Padding inside the toast.\n */",
38284
37941
  "customElement": true
38285
37942
  }
38286
37943
  ],
@@ -38289,8 +37946,8 @@
38289
37946
  "kind": "js",
38290
37947
  "name": "default",
38291
37948
  "declaration": {
38292
- "name": "Toggle",
38293
- "module": "components/toggle/toggle.component.js"
37949
+ "name": "Toast",
37950
+ "module": "components/toast/toast.component.js"
38294
37951
  }
38295
37952
  }
38296
37953
  ]