@nysds/components 1.16.0-alpha-2 → 1.16.0-alpha3

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.
@@ -6507,21 +6507,23 @@
6507
6507
  },
6508
6508
  {
6509
6509
  "kind": "field",
6510
- "name": "isMobileMenuOpen",
6510
+ "name": "_isMobileMenuOpen",
6511
6511
  "type": {
6512
6512
  "text": "boolean"
6513
6513
  },
6514
6514
  "privacy": "private",
6515
- "default": "false"
6515
+ "default": "false",
6516
+ "description": "Internal state to track mobile menu open/closed status."
6516
6517
  },
6517
6518
  {
6518
6519
  "kind": "field",
6519
- "name": "hasLinkContent",
6520
+ "name": "_hasLinkContent",
6520
6521
  "type": {
6521
6522
  "text": "boolean"
6522
6523
  },
6523
6524
  "privacy": "private",
6524
- "default": "false"
6525
+ "default": "false",
6526
+ "description": "Internal state to track if any navigation links are present in the slot."
6525
6527
  },
6526
6528
  {
6527
6529
  "kind": "method",
@@ -9939,6 +9941,7 @@
9939
9941
  {
9940
9942
  "kind": "method",
9941
9943
  "name": "_onSortClick",
9944
+ "privacy": "private",
9942
9945
  "parameters": [
9943
9946
  {
9944
9947
  "name": "columnIndex",
@@ -9993,12 +9996,50 @@
9993
9996
  {
9994
9997
  "kind": "method",
9995
9998
  "name": "downloadFile"
9999
+ },
10000
+ {
10001
+ "kind": "method",
10002
+ "name": "_emitColumnSortEvent",
10003
+ "privacy": "private",
10004
+ "return": {
10005
+ "type": {
10006
+ "text": "boolean"
10007
+ }
10008
+ },
10009
+ "parameters": [
10010
+ {
10011
+ "name": "columnIndex",
10012
+ "type": {
10013
+ "text": "number"
10014
+ },
10015
+ "description": "Zero-based index of the sorted column."
10016
+ },
10017
+ {
10018
+ "name": "columnLabel",
10019
+ "type": {
10020
+ "text": "string"
10021
+ },
10022
+ "description": "The text label of the sorted column header."
10023
+ },
10024
+ {
10025
+ "name": "sortDirection",
10026
+ "type": {
10027
+ "text": "\"asc\" | \"desc\" | \"none\""
10028
+ },
10029
+ "description": "The new sort direction: \"asc\", \"desc\", or \"none\"."
10030
+ }
10031
+ ],
10032
+ "description": "Dispatches the `nys-column-sort` custom event."
9996
10033
  }
9997
10034
  ],
9998
10035
  "events": [
9999
10036
  {
10000
10037
  "description": "Fired when the download button or sortable headers are clicked.",
10001
10038
  "name": "nys-click"
10039
+ },
10040
+ {
10041
+ "description": "Fired when a sortable column header is clicked. Can be prevented by calling `event.preventDefault()` to override default sort behavior. Detail: { columnIndex: number, columnLabel: string, sortDirection: \"asc\" | \"desc\" | \"none\" }",
10042
+ "name": "nys-column-sort"
10002
10043
  }
10003
10044
  ],
10004
10045
  "attributes": [
@@ -1361,7 +1361,7 @@
1361
1361
  },
1362
1362
  {
1363
1363
  "name": "nys-table",
1364
- "description": "`<nys-table>` is a responsive table component that can display native HTML tables,\nsupports striped and bordered styling, sortable columns, and CSV download.\n---\n\n\n### **Events:**\n - **nys-click** - Fired when the download button or sortable headers are clicked.\n\n### **Slots:**\n - _default_ - Accepts a `<table>` element. Only the first table is rendered.",
1364
+ "description": "`<nys-table>` is a responsive table component that can display native HTML tables,\nsupports striped and bordered styling, sortable columns, and CSV download.\n---\n\n\n### **Events:**\n - **nys-click** - Fired when the download button or sortable headers are clicked.\n- **nys-column-sort** - Fired when a sortable column header is clicked. Can be prevented by calling `event.preventDefault()` to override default sort behavior. Detail: { columnIndex: number, columnLabel: string, sortDirection: \"asc\" | \"desc\" | \"none\" }\n\n### **Slots:**\n - _default_ - Accepts a `<table>` element. Only the first table is rendered.",
1365
1365
  "attributes": [
1366
1366
  { "name": "id", "values": [] },
1367
1367
  { "name": "name", "values": [] },
@@ -6507,21 +6507,23 @@
6507
6507
  },
6508
6508
  {
6509
6509
  "kind": "field",
6510
- "name": "isMobileMenuOpen",
6510
+ "name": "_isMobileMenuOpen",
6511
6511
  "type": {
6512
6512
  "text": "boolean"
6513
6513
  },
6514
6514
  "privacy": "private",
6515
- "default": "false"
6515
+ "default": "false",
6516
+ "description": "Internal state to track mobile menu open/closed status."
6516
6517
  },
6517
6518
  {
6518
6519
  "kind": "field",
6519
- "name": "hasLinkContent",
6520
+ "name": "_hasLinkContent",
6520
6521
  "type": {
6521
6522
  "text": "boolean"
6522
6523
  },
6523
6524
  "privacy": "private",
6524
- "default": "false"
6525
+ "default": "false",
6526
+ "description": "Internal state to track if any navigation links are present in the slot."
6525
6527
  },
6526
6528
  {
6527
6529
  "kind": "method",
@@ -9939,6 +9941,7 @@
9939
9941
  {
9940
9942
  "kind": "method",
9941
9943
  "name": "_onSortClick",
9944
+ "privacy": "private",
9942
9945
  "parameters": [
9943
9946
  {
9944
9947
  "name": "columnIndex",
@@ -9993,12 +9996,50 @@
9993
9996
  {
9994
9997
  "kind": "method",
9995
9998
  "name": "downloadFile"
9999
+ },
10000
+ {
10001
+ "kind": "method",
10002
+ "name": "_emitColumnSortEvent",
10003
+ "privacy": "private",
10004
+ "return": {
10005
+ "type": {
10006
+ "text": "boolean"
10007
+ }
10008
+ },
10009
+ "parameters": [
10010
+ {
10011
+ "name": "columnIndex",
10012
+ "type": {
10013
+ "text": "number"
10014
+ },
10015
+ "description": "Zero-based index of the sorted column."
10016
+ },
10017
+ {
10018
+ "name": "columnLabel",
10019
+ "type": {
10020
+ "text": "string"
10021
+ },
10022
+ "description": "The text label of the sorted column header."
10023
+ },
10024
+ {
10025
+ "name": "sortDirection",
10026
+ "type": {
10027
+ "text": "\"asc\" | \"desc\" | \"none\""
10028
+ },
10029
+ "description": "The new sort direction: \"asc\", \"desc\", or \"none\"."
10030
+ }
10031
+ ],
10032
+ "description": "Dispatches the `nys-column-sort` custom event."
9996
10033
  }
9997
10034
  ],
9998
10035
  "events": [
9999
10036
  {
10000
10037
  "description": "Fired when the download button or sortable headers are clicked.",
10001
10038
  "name": "nys-click"
10039
+ },
10040
+ {
10041
+ "description": "Fired when a sortable column header is clicked. Can be prevented by calling `event.preventDefault()` to override default sort behavior. Detail: { columnIndex: number, columnLabel: string, sortDirection: \"asc\" | \"desc\" | \"none\" }",
10042
+ "name": "nys-column-sort"
10002
10043
  }
10003
10044
  ],
10004
10045
  "attributes": [