@govtechsg/sgds-web-component 3.20.0-rc.1 → 3.20.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Datepicker/datepicker.js +1 -1
- package/components/Datepicker/index.umd.min.js +18 -17
- package/components/Datepicker/index.umd.min.js.map +1 -1
- package/components/Datepicker/sgds-datepicker.d.ts +15 -1
- package/components/Datepicker/sgds-datepicker.js +50 -19
- package/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/components/Table/index.umd.min.js +1 -1
- package/components/Table/index.umd.min.js.map +1 -1
- package/components/Table/sgds-table.js +4 -4
- package/components/Table/sgds-table.js.map +1 -1
- package/components/index.umd.min.js +19 -18
- package/components/index.umd.min.js.map +1 -1
- package/custom-elements.json +109 -5
- package/index.umd.min.js +96 -95
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/components/Datepicker/datepicker.cjs.js +1 -1
- package/react/components/Datepicker/datepicker.js +1 -1
- package/react/components/Datepicker/sgds-datepicker.cjs.js +50 -19
- package/react/components/Datepicker/sgds-datepicker.cjs.js.map +1 -1
- package/react/components/Datepicker/sgds-datepicker.js +50 -19
- package/react/components/Datepicker/sgds-datepicker.js.map +1 -1
- package/react/components/Table/sgds-table.cjs.js +4 -4
- package/react/components/Table/sgds-table.cjs.js.map +1 -1
- package/react/components/Table/sgds-table.js +4 -4
- package/react/components/Table/sgds-table.js.map +1 -1
- package/react/datepicker/index.cjs.js +2 -0
- package/react/datepicker/index.cjs.js.map +1 -1
- package/react/datepicker/index.js +2 -0
- package/react/datepicker/index.js.map +1 -1
- package/types/react.d.ts +6 -0
package/custom-elements.json
CHANGED
|
@@ -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": {
|
|
@@ -22300,7 +22400,8 @@
|
|
|
22300
22400
|
},
|
|
22301
22401
|
"default": "\"horizontal\"",
|
|
22302
22402
|
"description": "Defines the placement of headers in the table.\nUse \"horizontal\" for top headers only, \"vertical\" for left headers only,\nor \"both\" for both row and column headers.",
|
|
22303
|
-
"attribute": "headerPosition"
|
|
22403
|
+
"attribute": "headerPosition",
|
|
22404
|
+
"reflects": true
|
|
22304
22405
|
},
|
|
22305
22406
|
{
|
|
22306
22407
|
"kind": "field",
|
|
@@ -22310,7 +22411,8 @@
|
|
|
22310
22411
|
},
|
|
22311
22412
|
"default": "false",
|
|
22312
22413
|
"description": "Enables background styling on horizontal header rows.\nWhen true, applies background color to header cells for better visual distinction.",
|
|
22313
|
-
"attribute": "headerBackground"
|
|
22414
|
+
"attribute": "headerBackground",
|
|
22415
|
+
"reflects": true
|
|
22314
22416
|
},
|
|
22315
22417
|
{
|
|
22316
22418
|
"kind": "field",
|
|
@@ -22320,7 +22422,8 @@
|
|
|
22320
22422
|
},
|
|
22321
22423
|
"default": "false",
|
|
22322
22424
|
"description": "Enables borders around table cells.\nWhen true, displays visible borders between all table cells.",
|
|
22323
|
-
"attribute": "tableBorder"
|
|
22425
|
+
"attribute": "tableBorder",
|
|
22426
|
+
"reflects": true
|
|
22324
22427
|
},
|
|
22325
22428
|
{
|
|
22326
22429
|
"kind": "field",
|
|
@@ -22330,7 +22433,8 @@
|
|
|
22330
22433
|
},
|
|
22331
22434
|
"default": "\"auto\"",
|
|
22332
22435
|
"description": "Controls the CSS `table-layout` algorithm.\nUse \"auto\" to let the browser size columns based on content, or \"fixed\" to distribute column widths evenly regardless of content.",
|
|
22333
|
-
"attribute": "layout"
|
|
22436
|
+
"attribute": "layout",
|
|
22437
|
+
"reflects": true
|
|
22334
22438
|
},
|
|
22335
22439
|
{
|
|
22336
22440
|
"kind": "field",
|
|
@@ -27323,7 +27427,7 @@
|
|
|
27323
27427
|
"package": {
|
|
27324
27428
|
"name": "@govtechsg/sgds-web-component",
|
|
27325
27429
|
"description": "",
|
|
27326
|
-
"version": "3.20.0-rc.
|
|
27430
|
+
"version": "3.20.0-rc.3",
|
|
27327
27431
|
"author": "GovTechSG",
|
|
27328
27432
|
"license": "MIT"
|
|
27329
27433
|
}
|