@govtechsg/sgds-web-component 3.20.0-rc.1 → 3.20.0-rc.2

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.
@@ -5765,6 +5765,17 @@
5765
5765
  "module": "src/base/dropdown-element.ts"
5766
5766
  }
5767
5767
  },
5768
+ {
5769
+ "kind": "field",
5770
+ "name": "noValidate",
5771
+ "type": {
5772
+ "text": "boolean"
5773
+ },
5774
+ "default": "false",
5775
+ "description": "Disables native and sgds validation for the datepicker.",
5776
+ "attribute": "noValidate",
5777
+ "reflects": true
5778
+ },
5768
5779
  {
5769
5780
  "kind": "field",
5770
5781
  "name": "value",
@@ -5909,6 +5920,17 @@
5909
5920
  "default": "\"\"",
5910
5921
  "description": "Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element."
5911
5922
  },
5923
+ {
5924
+ "kind": "field",
5925
+ "name": "invalid",
5926
+ "type": {
5927
+ "text": "boolean"
5928
+ },
5929
+ "default": "false",
5930
+ "description": "Marks the component as invalid. Replace the pseudo :invalid selector.",
5931
+ "attribute": "invalid",
5932
+ "reflects": true
5933
+ },
5912
5934
  {
5913
5935
  "kind": "field",
5914
5936
  "name": "view",
@@ -6007,6 +6029,56 @@
6007
6029
  "description": "Checks for validity without any native error popup message",
6008
6030
  "type": {}
6009
6031
  },
6032
+ {
6033
+ "kind": "method",
6034
+ "name": "setInvalid",
6035
+ "privacy": "public",
6036
+ "parameters": [
6037
+ {
6038
+ "name": "bool",
6039
+ "type": {
6040
+ "text": "boolean"
6041
+ }
6042
+ }
6043
+ ],
6044
+ "description": "Programmatically sets the invalid state of the datepicker.\nUse together with `noValidate` (or `novalidate` on the parent `<form>`) and `invalidFeedback`\nto integrate 3rd-party or custom validation logic.",
6045
+ "type": {}
6046
+ },
6047
+ {
6048
+ "kind": "method",
6049
+ "name": "setValidity",
6050
+ "privacy": "public",
6051
+ "return": {
6052
+ "type": {
6053
+ "text": "void"
6054
+ }
6055
+ },
6056
+ "parameters": [
6057
+ {
6058
+ "name": "flags",
6059
+ "optional": true,
6060
+ "type": {
6061
+ "text": "ValidityStateFlags"
6062
+ }
6063
+ },
6064
+ {
6065
+ "name": "message",
6066
+ "optional": true,
6067
+ "type": {
6068
+ "text": "string"
6069
+ }
6070
+ },
6071
+ {
6072
+ "name": "anchor",
6073
+ "optional": true,
6074
+ "type": {
6075
+ "text": "HTMLElement"
6076
+ }
6077
+ }
6078
+ ],
6079
+ "description": "Checks for validity without any native error popup message",
6080
+ "type": {}
6081
+ },
6010
6082
  {
6011
6083
  "kind": "field",
6012
6084
  "name": "validity",
@@ -6496,6 +6568,16 @@
6496
6568
  "name": "sgds-change-date",
6497
6569
  "reactName": "onSgdsChangeDate"
6498
6570
  },
6571
+ {
6572
+ "description": "Emitted when the combo box's invalid state is set to true.",
6573
+ "name": "sgds-invalid",
6574
+ "reactName": "onSgdsInvalid"
6575
+ },
6576
+ {
6577
+ "description": "Emitted when the combo box's invalid state is set to false.",
6578
+ "name": "sgds-valid",
6579
+ "reactName": "onSgdsValid"
6580
+ },
6499
6581
  {
6500
6582
  "description": "Emitted event when show instance is called",
6501
6583
  "name": "sgds-show",
@@ -6564,6 +6646,15 @@
6564
6646
  "module": "src/base/dropdown-element.ts"
6565
6647
  }
6566
6648
  },
6649
+ {
6650
+ "name": "noValidate",
6651
+ "type": {
6652
+ "text": "boolean"
6653
+ },
6654
+ "default": "false",
6655
+ "description": "Disables native and sgds validation for the datepicker.",
6656
+ "fieldName": "noValidate"
6657
+ },
6567
6658
  {
6568
6659
  "name": "value",
6569
6660
  "type": {
@@ -6662,6 +6753,15 @@
6662
6753
  "description": "The drop position of menu relative to the toggle button",
6663
6754
  "fieldName": "drop"
6664
6755
  },
6756
+ {
6757
+ "name": "invalid",
6758
+ "type": {
6759
+ "text": "boolean"
6760
+ },
6761
+ "default": "false",
6762
+ "description": "Marks the component as invalid. Replace the pseudo :invalid selector.",
6763
+ "fieldName": "invalid"
6764
+ },
6665
6765
  {
6666
6766
  "name": "floatingOpts",
6667
6767
  "type": {
@@ -27323,7 +27423,7 @@
27323
27423
  "package": {
27324
27424
  "name": "@govtechsg/sgds-web-component",
27325
27425
  "description": "",
27326
- "version": "3.20.0-rc.1",
27426
+ "version": "3.20.0-rc.2",
27327
27427
  "author": "GovTechSG",
27328
27428
  "license": "MIT"
27329
27429
  }