@redvars/peacock 3.15.0 → 3.16.0

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.
@@ -23813,324 +23813,1307 @@
23813
23813
  },
23814
23814
  {
23815
23815
  "kind": "javascript-module",
23816
- "path": "src/table/table.ts",
23816
+ "path": "src/pagination/page-items.ts",
23817
23817
  "declarations": [
23818
23818
  {
23819
- "kind": "class",
23820
- "description": "",
23821
- "name": "Table",
23822
- "members": [
23819
+ "kind": "function",
23820
+ "name": "getPageItems",
23821
+ "return": {
23822
+ "type": {
23823
+ "text": "PageItem[]"
23824
+ }
23825
+ },
23826
+ "parameters": [
23823
23827
  {
23824
- "kind": "field",
23825
- "name": "columns",
23828
+ "name": "current",
23826
23829
  "type": {
23827
- "text": "TableColumn[]"
23828
- },
23829
- "default": "[]",
23830
- "description": "Grid columns configuration.\nEach column can have: name, label, width (px), fixed (boolean), template (function).",
23831
- "attribute": "columns"
23830
+ "text": "number"
23831
+ }
23832
23832
  },
23833
23833
  {
23834
- "kind": "field",
23835
- "name": "data",
23834
+ "name": "total",
23836
23835
  "type": {
23837
- "text": "any[]"
23838
- },
23839
- "default": "[]",
23840
- "description": "Grid data to display on table.",
23841
- "attribute": "data"
23836
+ "text": "number"
23837
+ }
23842
23838
  },
23843
23839
  {
23844
- "kind": "field",
23845
- "name": "selectionType",
23840
+ "name": "siblings",
23841
+ "default": "1",
23846
23842
  "type": {
23847
- "text": "'checkbox' | undefined"
23848
- },
23849
- "description": "Row selection type. Set to `\"checkbox\"` to enable checkbox selection.",
23850
- "attribute": "selection-type"
23851
- },
23843
+ "text": "number"
23844
+ }
23845
+ }
23846
+ ],
23847
+ "description": "Builds the page list shown by the `full` pagination variant.\n\nThe list always keeps the first and last page, the current page and `siblings` pages on each\nside of it, and fills the rest with an ellipsis. It never holds more than\n`2 * siblings + 5` slots, so the control keeps its width while the user moves through pages."
23848
+ }
23849
+ ],
23850
+ "exports": [
23851
+ {
23852
+ "kind": "js",
23853
+ "name": "getPageItems",
23854
+ "declaration": {
23855
+ "name": "getPageItems",
23856
+ "module": "src/pagination/page-items.ts"
23857
+ }
23858
+ }
23859
+ ]
23860
+ },
23861
+ {
23862
+ "kind": "javascript-module",
23863
+ "path": "src/pagination/pagination.ts",
23864
+ "declarations": [
23865
+ {
23866
+ "kind": "class",
23867
+ "description": "",
23868
+ "name": "Pagination",
23869
+ "cssProperties": [
23852
23870
  {
23853
- "kind": "field",
23854
- "name": "selectedRowKeys",
23855
- "type": {
23856
- "text": "string[]"
23857
- },
23858
- "default": "[]",
23859
- "description": "Array of selected row key values.",
23860
- "attribute": "selected-row-keys"
23861
- },
23871
+ "description": "Background of the control. Defaults to the surface color.",
23872
+ "name": "--pagination-background"
23873
+ }
23874
+ ],
23875
+ "members": [
23862
23876
  {
23863
23877
  "kind": "field",
23864
- "name": "keyField",
23878
+ "name": "page",
23865
23879
  "type": {
23866
- "text": "string"
23880
+ "text": "number"
23867
23881
  },
23868
- "default": "'id'",
23869
- "description": "The field name used as the unique key for each row. Defaults to `\"id\"`.",
23870
- "attribute": "key-field"
23882
+ "default": "1",
23883
+ "description": "The current page number (1-based). Defaults to `1`.",
23884
+ "attribute": "page"
23871
23885
  },
23872
23886
  {
23873
23887
  "kind": "field",
23874
- "name": "managed",
23888
+ "name": "pageSize",
23875
23889
  "type": {
23876
- "text": "boolean"
23890
+ "text": "number"
23877
23891
  },
23878
- "default": "false",
23879
- "description": "If true, sorting and pagination are managed externally (controlled mode).",
23880
- "attribute": "managed"
23892
+ "default": "10",
23893
+ "description": "The number of rows per page. Defaults to `10`.",
23894
+ "attribute": "page-size"
23881
23895
  },
23882
23896
  {
23883
23897
  "kind": "field",
23884
- "name": "sortable",
23898
+ "name": "totalItems",
23885
23899
  "type": {
23886
- "text": "boolean"
23900
+ "text": "number | undefined"
23887
23901
  },
23888
- "default": "true",
23889
- "description": "If true, columns are sortable. Defaults to `true`.",
23890
- "attribute": "sortable"
23902
+ "description": "Total number of items. Leave it unset when the total is unknown; the control then shows\nprevious and next only, and `has-next` decides whether next is enabled.",
23903
+ "attribute": "total-items"
23891
23904
  },
23892
23905
  {
23893
23906
  "kind": "field",
23894
- "name": "sortBy",
23907
+ "name": "pageSizes",
23895
23908
  "type": {
23896
- "text": "string"
23909
+ "text": "number[]"
23897
23910
  },
23898
- "default": "''",
23899
- "description": "The field name currently used for sorting.",
23900
- "attribute": "sort-by"
23911
+ "default": "[10, 25, 50, 100]",
23912
+ "description": "Supported page size options.",
23913
+ "attribute": "page-sizes"
23901
23914
  },
23902
23915
  {
23903
23916
  "kind": "field",
23904
- "name": "sortOrder",
23917
+ "name": "variant",
23905
23918
  "type": {
23906
- "text": "'asc' | 'desc'"
23919
+ "text": "PaginationVariant"
23907
23920
  },
23908
- "default": "'asc'",
23909
- "description": "The current sort order. Possible values are `\"asc\"` and `\"desc\"`. Defaults to `\"asc\"`.",
23910
- "attribute": "sort-order"
23921
+ "default": "'full'",
23922
+ "description": "How the pages are shown: `full` (page numbers), `compact` (\"Page [n] of N\") or `simple`\n(previous and next only). Defaults to `full`.",
23923
+ "attribute": "variant",
23924
+ "reflects": true,
23925
+ "expandedType": {
23926
+ "text": "'full' | 'compact' | 'simple'"
23927
+ }
23911
23928
  },
23912
23929
  {
23913
23930
  "kind": "field",
23914
- "name": "paginate",
23931
+ "name": "hasNext",
23915
23932
  "type": {
23916
23933
  "text": "boolean"
23917
23934
  },
23918
23935
  "default": "false",
23919
- "description": "If true, pagination is enabled. Defaults to `true`.",
23920
- "attribute": "paginate"
23921
- },
23922
- {
23923
- "kind": "field",
23924
- "name": "page",
23925
- "type": {
23926
- "text": "number"
23927
- },
23928
- "default": "1",
23929
- "description": "The current page number (1-based). Defaults to `1`.",
23930
- "attribute": "page"
23936
+ "description": "Whether another page exists after this one. Used only when `total-items` is unset.",
23937
+ "attribute": "has-next"
23931
23938
  },
23932
23939
  {
23933
23940
  "kind": "field",
23934
- "name": "pageSize",
23941
+ "name": "showFirstLast",
23935
23942
  "type": {
23936
- "text": "number"
23943
+ "text": "boolean"
23937
23944
  },
23938
- "default": "10",
23939
- "description": "The number of rows per page. Defaults to `10`.",
23940
- "attribute": "page-size"
23945
+ "default": "false",
23946
+ "description": "Shows buttons that jump to the first and the last page.",
23947
+ "attribute": "show-first-last"
23941
23948
  },
23942
23949
  {
23943
23950
  "kind": "field",
23944
- "name": "totalItems",
23951
+ "name": "hidePageSize",
23945
23952
  "type": {
23946
- "text": "number | undefined"
23953
+ "text": "boolean"
23947
23954
  },
23948
- "description": "Total number of items (used in managed/controlled mode).",
23949
- "attribute": "total-items"
23955
+ "default": "false",
23956
+ "description": "Hides the rows-per-page selector.",
23957
+ "attribute": "hide-page-size"
23950
23958
  },
23951
23959
  {
23952
23960
  "kind": "field",
23953
- "name": "emptyStateHeadline",
23961
+ "name": "label",
23954
23962
  "type": {
23955
23963
  "text": "string"
23956
23964
  },
23957
- "default": "'No items'",
23958
- "description": "Headline text shown when the table has no data.",
23959
- "attribute": "empty-state-headline"
23965
+ "default": "'Pagination'",
23966
+ "description": "Accessible name of the navigation landmark. Defaults to `\"Pagination\"`.",
23967
+ "attribute": "label"
23960
23968
  },
23961
23969
  {
23962
23970
  "kind": "field",
23963
- "name": "emptyStateDescription",
23971
+ "name": "hasTotal",
23964
23972
  "type": {
23965
- "text": "string"
23973
+ "text": "boolean"
23966
23974
  },
23967
- "default": "'There are no items to display'",
23968
- "description": "Description text shown when the table has no data.",
23969
- "attribute": "empty-state-description"
23975
+ "privacy": "private",
23976
+ "description": "True when the total is known.",
23977
+ "readonly": true
23970
23978
  },
23971
23979
  {
23972
- "kind": "field",
23973
- "name": "hoveredCell",
23974
- "type": {
23975
- "text": "{ row?: any; column?: any }"
23976
- },
23980
+ "kind": "method",
23981
+ "name": "getTotalPages",
23977
23982
  "privacy": "private",
23978
- "default": "{}",
23979
- "description": "Tracks the currently hovered row and column for hover-highlight CSS."
23983
+ "return": {
23984
+ "type": {
23985
+ "text": "number | undefined"
23986
+ }
23987
+ },
23988
+ "description": "The number of pages, or `undefined` when the total is unknown."
23980
23989
  },
23981
23990
  {
23982
23991
  "kind": "field",
23983
- "name": "isSelectAll",
23992
+ "name": "isFirstPage",
23984
23993
  "type": {
23985
23994
  "text": "boolean"
23986
23995
  },
23987
23996
  "privacy": "private",
23988
- "default": "false",
23989
- "description": "True when all rows on the current page are selected."
23997
+ "readonly": true
23990
23998
  },
23991
23999
  {
23992
24000
  "kind": "field",
23993
- "name": "isSelectAllIntermediate",
24001
+ "name": "isLastPage",
23994
24002
  "type": {
23995
24003
  "text": "boolean"
23996
24004
  },
23997
24005
  "privacy": "private",
23998
- "default": "false",
23999
- "description": "True when some (but not all) rows on the current page are selected."
24006
+ "readonly": true
24000
24007
  },
24001
24008
  {
24002
24009
  "kind": "field",
24003
- "name": "isHorizontallyScrolled",
24010
+ "name": "effectiveVariant",
24004
24011
  "type": {
24005
- "text": "boolean"
24012
+ "text": "PaginationVariant"
24006
24013
  },
24007
24014
  "privacy": "private",
24008
- "default": "false",
24009
- "description": "True when the scroll container has been scrolled horizontally."
24015
+ "description": "The variant actually rendered: an unknown total can only go previous and next.",
24016
+ "readonly": true,
24017
+ "expandedType": {
24018
+ "text": "'full' | 'compact' | 'simple'"
24019
+ }
24010
24020
  },
24011
24021
  {
24012
- "kind": "field",
24013
- "name": "onCellMouseOverThrottled",
24022
+ "kind": "method",
24023
+ "name": "getRangeText",
24014
24024
  "privacy": "private",
24015
- "description": "Throttled version of the cell-mouseover handler to avoid excessive state updates."
24016
- },
24017
- {
24018
- "kind": "field",
24019
- "name": "onSelectAllClick",
24020
- "privacy": "private"
24021
- },
24022
- {
24023
- "kind": "field",
24024
- "name": "onRowSelectClick",
24025
- "privacy": "private"
24025
+ "return": {
24026
+ "type": {
24027
+ "text": "string"
24028
+ }
24029
+ }
24026
24030
  },
24027
24031
  {
24028
24032
  "kind": "method",
24029
- "name": "onSelectChange",
24033
+ "name": "setPage",
24030
24034
  "privacy": "private",
24031
24035
  "parameters": [
24032
24036
  {
24033
- "name": "selectedRowKeys",
24037
+ "name": "nextPage",
24034
24038
  "type": {
24035
- "text": "string[]"
24039
+ "text": "number"
24036
24040
  }
24037
24041
  }
24038
24042
  ]
24039
24043
  },
24040
24044
  {
24041
24045
  "kind": "method",
24042
- "name": "onCellClick",
24046
+ "name": "handlePageSizeChange",
24043
24047
  "privacy": "private",
24044
24048
  "parameters": [
24045
24049
  {
24046
- "name": "row",
24047
- "type": {
24048
- "text": "any"
24049
- }
24050
- },
24051
- {
24052
- "name": "col",
24053
- "type": {
24054
- "text": "TableColumn"
24055
- }
24056
- },
24057
- {
24058
- "name": "evt",
24050
+ "name": "event",
24059
24051
  "type": {
24060
- "text": "MouseEvent"
24052
+ "text": "CustomEvent<{ value?: string }>"
24061
24053
  }
24062
24054
  }
24063
24055
  ]
24064
24056
  },
24065
24057
  {
24066
24058
  "kind": "field",
24067
- "name": "onScrollContainer",
24059
+ "name": "handlePageInput",
24068
24060
  "privacy": "private"
24069
24061
  },
24070
24062
  {
24071
24063
  "kind": "field",
24072
- "name": "totalColumnsWidth",
24073
- "type": {
24074
- "text": "number"
24075
- },
24076
- "privacy": "private",
24077
- "readonly": true
24064
+ "name": "handlePageInputKeydown",
24065
+ "privacy": "private"
24078
24066
  },
24079
24067
  {
24080
24068
  "kind": "method",
24081
- "name": "getTotalItems",
24082
- "privacy": "private",
24083
- "return": {
24084
- "type": {
24085
- "text": "number"
24086
- }
24087
- }
24069
+ "name": "dispatchPageEvent",
24070
+ "privacy": "private"
24088
24071
  },
24089
24072
  {
24090
24073
  "kind": "method",
24091
- "name": "getSortIcon",
24074
+ "name": "renderNavButton",
24092
24075
  "privacy": "private",
24093
- "return": {
24094
- "type": {
24095
- "text": "string"
24096
- }
24097
- },
24098
24076
  "parameters": [
24099
24077
  {
24100
- "name": "col",
24078
+ "name": "icon",
24079
+ "type": {
24080
+ "text": "string"
24081
+ }
24082
+ },
24083
+ {
24084
+ "name": "label",
24085
+ "type": {
24086
+ "text": "string"
24087
+ }
24088
+ },
24089
+ {
24090
+ "name": "disabled",
24091
+ "type": {
24092
+ "text": "boolean"
24093
+ }
24094
+ },
24095
+ {
24096
+ "name": "target",
24097
+ "type": {
24098
+ "text": "() => number"
24099
+ }
24100
+ },
24101
+ {
24102
+ "name": "className",
24103
+ "type": {
24104
+ "text": "string"
24105
+ }
24106
+ }
24107
+ ]
24108
+ },
24109
+ {
24110
+ "kind": "method",
24111
+ "name": "renderPageList",
24112
+ "privacy": "private",
24113
+ "parameters": [
24114
+ {
24115
+ "name": "totalPages",
24116
+ "type": {
24117
+ "text": "number"
24118
+ }
24119
+ }
24120
+ ]
24121
+ },
24122
+ {
24123
+ "kind": "method",
24124
+ "name": "renderPageJump",
24125
+ "privacy": "private",
24126
+ "parameters": [
24127
+ {
24128
+ "name": "totalPages",
24129
+ "type": {
24130
+ "text": "number"
24131
+ }
24132
+ }
24133
+ ]
24134
+ },
24135
+ {
24136
+ "kind": "method",
24137
+ "name": "renderPageSize",
24138
+ "privacy": "private"
24139
+ }
24140
+ ],
24141
+ "events": [
24142
+ {
24143
+ "name": "page",
24144
+ "type": {
24145
+ "text": "CustomEvent"
24146
+ },
24147
+ "description": "Dispatched when the page or page size changes. Detail: `{ page, pageSize }`."
24148
+ }
24149
+ ],
24150
+ "attributes": [
24151
+ {
24152
+ "name": "page",
24153
+ "type": {
24154
+ "text": "number"
24155
+ },
24156
+ "default": "1",
24157
+ "description": "The current page number (1-based). Defaults to `1`.",
24158
+ "fieldName": "page"
24159
+ },
24160
+ {
24161
+ "name": "page-size",
24162
+ "type": {
24163
+ "text": "number"
24164
+ },
24165
+ "default": "10",
24166
+ "description": "The number of rows per page. Defaults to `10`.",
24167
+ "fieldName": "pageSize"
24168
+ },
24169
+ {
24170
+ "name": "total-items",
24171
+ "type": {
24172
+ "text": "number | undefined"
24173
+ },
24174
+ "description": "Total number of items. Leave it unset when the total is unknown; the control then shows\nprevious and next only, and `has-next` decides whether next is enabled.",
24175
+ "fieldName": "totalItems"
24176
+ },
24177
+ {
24178
+ "name": "page-sizes",
24179
+ "type": {
24180
+ "text": "number[]"
24181
+ },
24182
+ "default": "DEFAULT_PAGE_SIZES",
24183
+ "description": "Supported page size options.",
24184
+ "fieldName": "pageSizes"
24185
+ },
24186
+ {
24187
+ "name": "variant",
24188
+ "type": {
24189
+ "text": "PaginationVariant"
24190
+ },
24191
+ "default": "'full'",
24192
+ "description": "How the pages are shown: `full` (page numbers), `compact` (\"Page [n] of N\") or `simple`\n(previous and next only). Defaults to `full`.",
24193
+ "fieldName": "variant",
24194
+ "expandedType": {
24195
+ "text": "'full' | 'compact' | 'simple'"
24196
+ }
24197
+ },
24198
+ {
24199
+ "name": "has-next",
24200
+ "type": {
24201
+ "text": "boolean"
24202
+ },
24203
+ "default": "false",
24204
+ "description": "Whether another page exists after this one. Used only when `total-items` is unset.",
24205
+ "fieldName": "hasNext"
24206
+ },
24207
+ {
24208
+ "name": "show-first-last",
24209
+ "type": {
24210
+ "text": "boolean"
24211
+ },
24212
+ "default": "false",
24213
+ "description": "Shows buttons that jump to the first and the last page.",
24214
+ "fieldName": "showFirstLast"
24215
+ },
24216
+ {
24217
+ "name": "hide-page-size",
24218
+ "type": {
24219
+ "text": "boolean"
24220
+ },
24221
+ "default": "false",
24222
+ "description": "Hides the rows-per-page selector.",
24223
+ "fieldName": "hidePageSize"
24224
+ },
24225
+ {
24226
+ "name": "label",
24227
+ "type": {
24228
+ "text": "string"
24229
+ },
24230
+ "default": "'Pagination'",
24231
+ "description": "Accessible name of the navigation landmark. Defaults to `\"Pagination\"`.",
24232
+ "fieldName": "label"
24233
+ }
24234
+ ],
24235
+ "superclass": {
24236
+ "name": "LitElement",
24237
+ "package": "lit"
24238
+ },
24239
+ "tagName": "wc-pagination",
24240
+ "customElement": true,
24241
+ "summary": "A pagination control with page numbers, a rows-per-page selector and the current item range.",
24242
+ "rawTag": {
24243
+ "name": "pagination",
24244
+ "description": ""
24245
+ }
24246
+ }
24247
+ ],
24248
+ "exports": [
24249
+ {
24250
+ "kind": "js",
24251
+ "name": "Pagination",
24252
+ "declaration": {
24253
+ "name": "Pagination",
24254
+ "module": "src/pagination/pagination.ts"
24255
+ }
24256
+ }
24257
+ ]
24258
+ },
24259
+ {
24260
+ "kind": "javascript-module",
24261
+ "path": "src/table/table.ts",
24262
+ "declarations": [
24263
+ {
24264
+ "kind": "class",
24265
+ "description": "",
24266
+ "name": "Table",
24267
+ "cssProperties": [
24268
+ {
24269
+ "description": "Minimum height of a row. Set by `density`.",
24270
+ "name": "--table-row-height"
24271
+ },
24272
+ {
24273
+ "description": "Color of the row dividers.",
24274
+ "name": "--table-border-color"
24275
+ },
24276
+ {
24277
+ "description": "Horizontal padding of a cell.",
24278
+ "name": "--table-cell-padding-inline"
24279
+ }
24280
+ ],
24281
+ "slots": [
24282
+ {
24283
+ "description": "Actions shown in the selection bar while rows are selected.",
24284
+ "name": "bulk-actions"
24285
+ }
24286
+ ],
24287
+ "members": [
24288
+ {
24289
+ "kind": "field",
24290
+ "name": "columns",
24291
+ "type": {
24292
+ "text": "TableColumn[]"
24293
+ },
24294
+ "default": "[]",
24295
+ "description": "Grid columns configuration.\nEach column can have: name, label, width (rem), fixed, align, type, sortable, wrap, template.",
24296
+ "attribute": "columns"
24297
+ },
24298
+ {
24299
+ "kind": "field",
24300
+ "name": "data",
24301
+ "type": {
24302
+ "text": "TableRow[]"
24303
+ },
24304
+ "default": "[]",
24305
+ "description": "Grid data to display on table.",
24306
+ "attribute": "data"
24307
+ },
24308
+ {
24309
+ "kind": "field",
24310
+ "name": "selectionType",
24311
+ "type": {
24312
+ "text": "'checkbox' | undefined"
24313
+ },
24314
+ "description": "Row selection type. Set to `\"checkbox\"` to enable checkbox selection.",
24315
+ "attribute": "selection-type"
24316
+ },
24317
+ {
24318
+ "kind": "field",
24319
+ "name": "selectedRowKeys",
24320
+ "type": {
24321
+ "text": "string[]"
24322
+ },
24323
+ "default": "[]",
24324
+ "description": "Array of selected row key values.",
24325
+ "attribute": "selected-row-keys"
24326
+ },
24327
+ {
24328
+ "kind": "field",
24329
+ "name": "keyField",
24330
+ "type": {
24331
+ "text": "string"
24332
+ },
24333
+ "default": "'id'",
24334
+ "description": "The field name used as the unique key for each row. Defaults to `\"id\"`.",
24335
+ "attribute": "key-field"
24336
+ },
24337
+ {
24338
+ "kind": "field",
24339
+ "name": "managed",
24340
+ "type": {
24341
+ "text": "boolean"
24342
+ },
24343
+ "default": "false",
24344
+ "description": "If true, sorting and pagination are managed externally (controlled mode).",
24345
+ "attribute": "managed"
24346
+ },
24347
+ {
24348
+ "kind": "field",
24349
+ "name": "sortable",
24350
+ "type": {
24351
+ "text": "boolean"
24352
+ },
24353
+ "default": "true",
24354
+ "description": "If true, columns are sortable. Defaults to `true`.",
24355
+ "attribute": "sortable"
24356
+ },
24357
+ {
24358
+ "kind": "field",
24359
+ "name": "sortBy",
24360
+ "type": {
24361
+ "text": "string"
24362
+ },
24363
+ "default": "''",
24364
+ "description": "The field name currently used for sorting.",
24365
+ "attribute": "sort-by"
24366
+ },
24367
+ {
24368
+ "kind": "field",
24369
+ "name": "sortOrder",
24370
+ "type": {
24371
+ "text": "'asc' | 'desc'"
24372
+ },
24373
+ "default": "'asc'",
24374
+ "description": "The current sort order. Possible values are `\"asc\"` and `\"desc\"`. Defaults to `\"asc\"`.",
24375
+ "attribute": "sort-order"
24376
+ },
24377
+ {
24378
+ "kind": "field",
24379
+ "name": "paginate",
24380
+ "type": {
24381
+ "text": "boolean"
24382
+ },
24383
+ "default": "false",
24384
+ "description": "If true, pagination is enabled. Defaults to `false`.",
24385
+ "attribute": "paginate"
24386
+ },
24387
+ {
24388
+ "kind": "field",
24389
+ "name": "page",
24390
+ "type": {
24391
+ "text": "number"
24392
+ },
24393
+ "default": "1",
24394
+ "description": "The current page number (1-based). Defaults to `1`.",
24395
+ "attribute": "page"
24396
+ },
24397
+ {
24398
+ "kind": "field",
24399
+ "name": "pageSize",
24400
+ "type": {
24401
+ "text": "number"
24402
+ },
24403
+ "default": "10",
24404
+ "description": "The number of rows per page. Defaults to `10`.",
24405
+ "attribute": "page-size"
24406
+ },
24407
+ {
24408
+ "kind": "field",
24409
+ "name": "pageSizes",
24410
+ "type": {
24411
+ "text": "number[] | undefined"
24412
+ },
24413
+ "description": "Supported page size options, passed to the pagination.",
24414
+ "attribute": "page-sizes"
24415
+ },
24416
+ {
24417
+ "kind": "field",
24418
+ "name": "totalItems",
24419
+ "type": {
24420
+ "text": "number | undefined"
24421
+ },
24422
+ "description": "Total number of items (used in managed/controlled mode). Leave it unset when the total is\nunknown; the pagination then shows previous and next, driven by `has-next`.",
24423
+ "attribute": "total-items"
24424
+ },
24425
+ {
24426
+ "kind": "field",
24427
+ "name": "hasNext",
24428
+ "type": {
24429
+ "text": "boolean"
24430
+ },
24431
+ "default": "false",
24432
+ "description": "Whether another page exists after this one, in managed mode with an unknown total.",
24433
+ "attribute": "has-next"
24434
+ },
24435
+ {
24436
+ "kind": "field",
24437
+ "name": "paginationVariant",
24438
+ "type": {
24439
+ "text": "PaginationVariant"
24440
+ },
24441
+ "default": "'full'",
24442
+ "description": "Pagination variant: `full` (page numbers), `compact` or `simple`. Defaults to `full`.",
24443
+ "attribute": "pagination-variant",
24444
+ "expandedType": {
24445
+ "text": "'full' | 'compact' | 'simple'"
24446
+ }
24447
+ },
24448
+ {
24449
+ "kind": "field",
24450
+ "name": "density",
24451
+ "type": {
24452
+ "text": "'compact' | 'default' | 'comfortable'"
24453
+ },
24454
+ "default": "'default'",
24455
+ "description": "Row height: `compact`, `default` or `comfortable`. Defaults to `default`.",
24456
+ "attribute": "density",
24457
+ "reflects": true
24458
+ },
24459
+ {
24460
+ "kind": "field",
24461
+ "name": "striped",
24462
+ "type": {
24463
+ "text": "boolean"
24464
+ },
24465
+ "default": "false",
24466
+ "description": "Shades every other row.",
24467
+ "attribute": "striped",
24468
+ "reflects": true
24469
+ },
24470
+ {
24471
+ "kind": "field",
24472
+ "name": "loading",
24473
+ "type": {
24474
+ "text": "boolean"
24475
+ },
24476
+ "default": "false",
24477
+ "description": "Shows a loading state: skeleton rows while there is no data, otherwise a progress bar\nunder the header so the current rows stay readable.",
24478
+ "attribute": "loading",
24479
+ "reflects": true
24480
+ },
24481
+ {
24482
+ "kind": "field",
24483
+ "name": "label",
24484
+ "type": {
24485
+ "text": "string"
24486
+ },
24487
+ "default": "''",
24488
+ "description": "Accessible name of the table.",
24489
+ "attribute": "label"
24490
+ },
24491
+ {
24492
+ "kind": "field",
24493
+ "name": "emptyStateHeadline",
24494
+ "type": {
24495
+ "text": "string"
24496
+ },
24497
+ "default": "'No items'",
24498
+ "description": "Headline text shown when the table has no data.",
24499
+ "attribute": "empty-state-headline"
24500
+ },
24501
+ {
24502
+ "kind": "field",
24503
+ "name": "emptyStateDescription",
24504
+ "type": {
24505
+ "text": "string"
24506
+ },
24507
+ "default": "'There are no items to display'",
24508
+ "description": "Description text shown when the table has no data.",
24509
+ "attribute": "empty-state-description"
24510
+ },
24511
+ {
24512
+ "kind": "field",
24513
+ "name": "allPagesSelected",
24514
+ "type": {
24515
+ "text": "boolean"
24516
+ },
24517
+ "privacy": "private",
24518
+ "default": "false",
24519
+ "description": "True when every item across all pages is selected, not only the current page."
24520
+ },
24521
+ {
24522
+ "kind": "field",
24523
+ "name": "scrolledFromStart",
24524
+ "type": {
24525
+ "text": "boolean"
24526
+ },
24527
+ "privacy": "private",
24528
+ "default": "false",
24529
+ "description": "True when content is scrolled under the start-pinned columns."
24530
+ },
24531
+ {
24532
+ "kind": "field",
24533
+ "name": "scrolledFromEnd",
24534
+ "type": {
24535
+ "text": "boolean"
24536
+ },
24537
+ "privacy": "private",
24538
+ "default": "false",
24539
+ "description": "True when more content waits past the end-pinned columns."
24540
+ },
24541
+ {
24542
+ "kind": "field",
24543
+ "name": "activeCell",
24544
+ "type": {
24545
+ "text": "{ row: number; col: number }"
24546
+ },
24547
+ "privacy": "private",
24548
+ "default": "{ row: 0, col: 0 }",
24549
+ "description": "The cell that holds the grid's single tab stop. Row 0 is the header."
24550
+ },
24551
+ {
24552
+ "kind": "field",
24553
+ "name": "scrollContainer",
24554
+ "type": {
24555
+ "text": "HTMLElement | undefined"
24556
+ },
24557
+ "privacy": "private"
24558
+ },
24559
+ {
24560
+ "kind": "field",
24561
+ "name": "pendingFocus",
24562
+ "type": {
24563
+ "text": "boolean"
24564
+ },
24565
+ "privacy": "private",
24566
+ "default": "false",
24567
+ "description": "Set when a keyboard move must focus the active cell after the next render."
24568
+ },
24569
+ {
24570
+ "kind": "field",
24571
+ "name": "resizeObserver",
24572
+ "type": {
24573
+ "text": "ResizeObserver | undefined"
24574
+ },
24575
+ "privacy": "private",
24576
+ "description": "Watches the scroll container so the edge shadows follow resizes."
24577
+ },
24578
+ {
24579
+ "kind": "method",
24580
+ "name": "getGridColumns",
24581
+ "privacy": "private",
24582
+ "return": {
24583
+ "type": {
24584
+ "text": "GridColumn[]"
24585
+ }
24586
+ },
24587
+ "description": "Columns in visual order: checkbox, start-pinned, scrolling, end-pinned."
24588
+ },
24589
+ {
24590
+ "kind": "method",
24591
+ "name": "getPlacement",
24592
+ "privacy": "private",
24593
+ "static": true,
24594
+ "return": {
24595
+ "type": {
24596
+ "text": "ColumnPlacement"
24597
+ }
24598
+ },
24599
+ "parameters": [
24600
+ {
24601
+ "name": "column",
24602
+ "type": {
24603
+ "text": "TableColumn"
24604
+ }
24605
+ }
24606
+ ]
24607
+ },
24608
+ {
24609
+ "kind": "method",
24610
+ "name": "getAlign",
24611
+ "privacy": "private",
24612
+ "static": true,
24613
+ "return": {
24614
+ "type": {
24615
+ "text": "'start' | 'center' | 'end'"
24616
+ }
24617
+ },
24618
+ "parameters": [
24619
+ {
24620
+ "name": "column",
24621
+ "type": {
24622
+ "text": "TableColumn"
24623
+ }
24624
+ }
24625
+ ]
24626
+ },
24627
+ {
24628
+ "kind": "method",
24629
+ "name": "getWidth",
24630
+ "privacy": "private",
24631
+ "static": true,
24632
+ "return": {
24633
+ "type": {
24634
+ "text": "number"
24635
+ }
24636
+ },
24637
+ "parameters": [
24638
+ {
24639
+ "name": "column",
24640
+ "type": {
24641
+ "text": "TableColumn"
24642
+ }
24643
+ }
24644
+ ]
24645
+ },
24646
+ {
24647
+ "kind": "field",
24648
+ "name": "totalColumnsWidth",
24649
+ "type": {
24650
+ "text": "number"
24651
+ },
24652
+ "privacy": "private",
24653
+ "readonly": true
24654
+ },
24655
+ {
24656
+ "kind": "method",
24657
+ "name": "isColumnSortable",
24658
+ "privacy": "private",
24659
+ "return": {
24660
+ "type": {
24661
+ "text": "boolean"
24662
+ }
24663
+ },
24664
+ "parameters": [
24665
+ {
24666
+ "name": "column",
24667
+ "type": {
24668
+ "text": "TableColumn"
24669
+ }
24670
+ }
24671
+ ]
24672
+ },
24673
+ {
24674
+ "kind": "method",
24675
+ "name": "getTotalItems",
24676
+ "privacy": "private",
24677
+ "return": {
24678
+ "type": {
24679
+ "text": "number | undefined"
24680
+ }
24681
+ },
24682
+ "description": "Total item count across pages, or `undefined` when it is unknown."
24683
+ },
24684
+ {
24685
+ "kind": "method",
24686
+ "name": "getPageRows",
24687
+ "privacy": "private",
24688
+ "return": {
24689
+ "type": {
24690
+ "text": "TableRow[]"
24691
+ }
24692
+ },
24693
+ "description": "Rows shown on the current page, sorted and sliced unless the table is managed."
24694
+ },
24695
+ {
24696
+ "kind": "method",
24697
+ "name": "compare",
24698
+ "privacy": "private",
24699
+ "static": true,
24700
+ "return": {
24701
+ "type": {
24702
+ "text": "number"
24703
+ }
24704
+ },
24705
+ "parameters": [
24706
+ {
24707
+ "name": "a",
24708
+ "type": {
24709
+ "text": "unknown"
24710
+ }
24711
+ },
24712
+ {
24713
+ "name": "b",
24714
+ "type": {
24715
+ "text": "unknown"
24716
+ }
24717
+ }
24718
+ ],
24719
+ "description": "Compares numbers by value and everything else as text with natural number order."
24720
+ },
24721
+ {
24722
+ "kind": "method",
24723
+ "name": "getRowKey",
24724
+ "privacy": "private",
24725
+ "return": {
24726
+ "type": {
24727
+ "text": "string"
24728
+ }
24729
+ },
24730
+ "parameters": [
24731
+ {
24732
+ "name": "row",
24733
+ "type": {
24734
+ "text": "TableRow"
24735
+ }
24736
+ }
24737
+ ]
24738
+ },
24739
+ {
24740
+ "kind": "method",
24741
+ "name": "onSortClick",
24742
+ "privacy": "private",
24743
+ "parameters": [
24744
+ {
24745
+ "name": "col",
24746
+ "type": {
24747
+ "text": "TableColumn"
24748
+ }
24749
+ }
24750
+ ]
24751
+ },
24752
+ {
24753
+ "kind": "method",
24754
+ "name": "onSelectAllClick",
24755
+ "privacy": "private",
24756
+ "parameters": [
24757
+ {
24758
+ "name": "pageRows",
24759
+ "type": {
24760
+ "text": "TableRow[]"
24761
+ }
24762
+ }
24763
+ ]
24764
+ },
24765
+ {
24766
+ "kind": "method",
24767
+ "name": "onRowSelectClick",
24768
+ "privacy": "private",
24769
+ "parameters": [
24770
+ {
24771
+ "name": "row",
24772
+ "type": {
24773
+ "text": "TableRow"
24774
+ }
24775
+ },
24776
+ {
24777
+ "name": "pageRows",
24778
+ "type": {
24779
+ "text": "TableRow[]"
24780
+ }
24781
+ }
24782
+ ]
24783
+ },
24784
+ {
24785
+ "kind": "method",
24786
+ "name": "selectAllPages",
24787
+ "privacy": "private",
24788
+ "parameters": [
24789
+ {
24790
+ "name": "pageRows",
24791
+ "type": {
24792
+ "text": "TableRow[]"
24793
+ }
24794
+ }
24795
+ ]
24796
+ },
24797
+ {
24798
+ "kind": "method",
24799
+ "name": "clearSelection",
24800
+ "privacy": "private"
24801
+ },
24802
+ {
24803
+ "kind": "method",
24804
+ "name": "onSelectChange",
24805
+ "privacy": "private",
24806
+ "parameters": [
24807
+ {
24808
+ "name": "selectedRowKeys",
24809
+ "type": {
24810
+ "text": "string[]"
24811
+ }
24812
+ },
24813
+ {
24814
+ "name": "pageRows",
24815
+ "type": {
24816
+ "text": "TableRow[]"
24817
+ }
24818
+ }
24819
+ ]
24820
+ },
24821
+ {
24822
+ "kind": "method",
24823
+ "name": "onCellClick",
24824
+ "privacy": "private",
24825
+ "parameters": [
24826
+ {
24827
+ "name": "row",
24828
+ "type": {
24829
+ "text": "TableRow"
24830
+ }
24831
+ },
24832
+ {
24833
+ "name": "col",
24834
+ "type": {
24835
+ "text": "TableColumn"
24836
+ }
24837
+ },
24838
+ {
24839
+ "name": "evt",
24840
+ "type": {
24841
+ "text": "MouseEvent"
24842
+ }
24843
+ }
24844
+ ]
24845
+ },
24846
+ {
24847
+ "kind": "method",
24848
+ "name": "dispatchCellEvents",
24849
+ "privacy": "private",
24850
+ "parameters": [
24851
+ {
24852
+ "name": "row",
24853
+ "type": {
24854
+ "text": "TableRow"
24855
+ }
24856
+ },
24857
+ {
24858
+ "name": "col",
24859
+ "type": {
24860
+ "text": "TableColumn"
24861
+ }
24862
+ },
24863
+ {
24864
+ "name": "evt",
24865
+ "type": {
24866
+ "text": "MouseEvent | KeyboardEvent"
24867
+ }
24868
+ }
24869
+ ]
24870
+ },
24871
+ {
24872
+ "kind": "method",
24873
+ "name": "onPage",
24874
+ "privacy": "private",
24875
+ "parameters": [
24876
+ {
24877
+ "name": "event",
24878
+ "type": {
24879
+ "text": "CustomEvent<{ page: number; pageSize: number }>"
24880
+ }
24881
+ }
24882
+ ]
24883
+ },
24884
+ {
24885
+ "kind": "field",
24886
+ "name": "onScrollContainer",
24887
+ "privacy": "private"
24888
+ },
24889
+ {
24890
+ "kind": "method",
24891
+ "name": "updateScrollEdges",
24892
+ "privacy": "private"
24893
+ },
24894
+ {
24895
+ "kind": "method",
24896
+ "name": "getCell",
24897
+ "privacy": "private",
24898
+ "return": {
24899
+ "type": {
24900
+ "text": "HTMLElement | null"
24901
+ }
24902
+ },
24903
+ "parameters": [
24904
+ {
24905
+ "name": "row",
24906
+ "type": {
24907
+ "text": "number"
24908
+ }
24909
+ },
24910
+ {
24911
+ "name": "col",
24912
+ "type": {
24913
+ "text": "number"
24914
+ }
24915
+ }
24916
+ ]
24917
+ },
24918
+ {
24919
+ "kind": "method",
24920
+ "name": "getFocusTarget",
24921
+ "privacy": "private",
24922
+ "return": {
24923
+ "type": {
24924
+ "text": "HTMLElement | null"
24925
+ }
24926
+ },
24927
+ "parameters": [
24928
+ {
24929
+ "name": "row",
24930
+ "type": {
24931
+ "text": "number"
24932
+ }
24933
+ },
24934
+ {
24935
+ "name": "col",
24936
+ "type": {
24937
+ "text": "number"
24938
+ }
24939
+ }
24940
+ ],
24941
+ "description": "The element that takes focus for a cell: its sort button, or the cell itself."
24942
+ },
24943
+ {
24944
+ "kind": "method",
24945
+ "name": "tabIndexFor",
24946
+ "privacy": "private",
24947
+ "return": {
24948
+ "type": {
24949
+ "text": "string"
24950
+ }
24951
+ },
24952
+ "parameters": [
24953
+ {
24954
+ "name": "row",
24955
+ "type": {
24956
+ "text": "number"
24957
+ }
24958
+ },
24959
+ {
24960
+ "name": "col",
24961
+ "type": {
24962
+ "text": "number"
24963
+ }
24964
+ }
24965
+ ]
24966
+ },
24967
+ {
24968
+ "kind": "field",
24969
+ "name": "onGridFocusIn",
24970
+ "privacy": "private"
24971
+ },
24972
+ {
24973
+ "kind": "field",
24974
+ "name": "onGridKeydown",
24975
+ "privacy": "private"
24976
+ },
24977
+ {
24978
+ "kind": "method",
24979
+ "name": "renderCellContent",
24980
+ "privacy": "private",
24981
+ "parameters": [
24982
+ {
24983
+ "name": "row",
24984
+ "type": {
24985
+ "text": "TableRow"
24986
+ }
24987
+ },
24988
+ {
24989
+ "name": "column",
24990
+ "type": {
24991
+ "text": "TableColumn"
24992
+ }
24993
+ }
24994
+ ]
24995
+ },
24996
+ {
24997
+ "kind": "method",
24998
+ "name": "cellClasses",
24999
+ "privacy": "private",
25000
+ "parameters": [
25001
+ {
25002
+ "name": "entry",
25003
+ "type": {
25004
+ "text": "GridColumn"
25005
+ }
25006
+ },
25007
+ {
25008
+ "name": "extra",
25009
+ "default": "{}",
25010
+ "type": {
25011
+ "text": "Record<string, boolean>"
25012
+ }
25013
+ }
25014
+ ]
25015
+ },
25016
+ {
25017
+ "kind": "method",
25018
+ "name": "cellStyle",
25019
+ "privacy": "private",
25020
+ "parameters": [
25021
+ {
25022
+ "name": "entry",
25023
+ "type": {
25024
+ "text": "GridColumn"
25025
+ }
25026
+ }
25027
+ ]
25028
+ },
25029
+ {
25030
+ "kind": "method",
25031
+ "name": "renderRowGroups",
25032
+ "privacy": "private",
25033
+ "parameters": [
25034
+ {
25035
+ "name": "columns",
25036
+ "type": {
25037
+ "text": "GridColumn[]"
25038
+ }
25039
+ },
25040
+ {
25041
+ "name": "renderCell",
25042
+ "type": {
25043
+ "text": "(entry: GridColumn, index: number) => TemplateResult"
25044
+ }
25045
+ }
25046
+ ],
25047
+ "description": "Splits a row's cells into the start-pinned, scrolling and end-pinned groups."
25048
+ },
25049
+ {
25050
+ "kind": "method",
25051
+ "name": "renderHeader",
25052
+ "privacy": "private",
25053
+ "parameters": [
25054
+ {
25055
+ "name": "columns",
25056
+ "type": {
25057
+ "text": "GridColumn[]"
25058
+ }
25059
+ },
25060
+ {
25061
+ "name": "pageRows",
24101
25062
  "type": {
24102
- "text": "TableColumn"
25063
+ "text": "TableRow[]"
24103
25064
  }
24104
25065
  }
24105
25066
  ]
24106
25067
  },
24107
25068
  {
24108
25069
  "kind": "method",
24109
- "name": "onSortClick",
25070
+ "name": "renderBody",
24110
25071
  "privacy": "private",
24111
25072
  "parameters": [
24112
25073
  {
24113
- "name": "col",
25074
+ "name": "columns",
24114
25075
  "type": {
24115
- "text": "TableColumn"
25076
+ "text": "GridColumn[]"
25077
+ }
25078
+ },
25079
+ {
25080
+ "name": "pageRows",
25081
+ "type": {
25082
+ "text": "TableRow[]"
24116
25083
  }
24117
25084
  }
24118
25085
  ]
24119
25086
  },
24120
25087
  {
24121
25088
  "kind": "method",
24122
- "name": "renderHeader",
24123
- "privacy": "private"
25089
+ "name": "renderSkeletonBody",
25090
+ "privacy": "private",
25091
+ "parameters": [
25092
+ {
25093
+ "name": "columns",
25094
+ "type": {
25095
+ "text": "GridColumn[]"
25096
+ }
25097
+ }
25098
+ ]
24124
25099
  },
24125
25100
  {
24126
25101
  "kind": "method",
24127
- "name": "renderBody",
25102
+ "name": "renderEmptyState",
24128
25103
  "privacy": "private"
24129
25104
  },
24130
25105
  {
24131
25106
  "kind": "method",
24132
- "name": "renderEmptyState",
24133
- "privacy": "private"
25107
+ "name": "renderBulkBar",
25108
+ "privacy": "private",
25109
+ "parameters": [
25110
+ {
25111
+ "name": "pageRows",
25112
+ "type": {
25113
+ "text": "TableRow[]"
25114
+ }
25115
+ }
25116
+ ]
24134
25117
  },
24135
25118
  {
24136
25119
  "kind": "method",
@@ -24139,33 +25122,40 @@
24139
25122
  }
24140
25123
  ],
24141
25124
  "events": [
25125
+ {
25126
+ "name": "sort",
25127
+ "type": {
25128
+ "text": "CustomEvent"
25129
+ },
25130
+ "description": "Dispatched when the table is sorted. Detail: `{ sortBy, sortOrder }`."
25131
+ },
24142
25132
  {
24143
25133
  "name": "selection-change",
24144
25134
  "type": {
24145
25135
  "text": "CustomEvent"
24146
25136
  },
24147
- "description": "Dispatched when the row selection changes."
25137
+ "description": "Dispatched when the row selection changes. Detail: `{ value, isSelectAll, allPages }`."
24148
25138
  },
24149
25139
  {
24150
25140
  "name": "cell-click",
24151
25141
  "type": {
24152
25142
  "text": "CustomEvent"
24153
25143
  },
24154
- "description": "Dispatched when a table cell is clicked."
25144
+ "description": "Dispatched when a cell is clicked or activated with Enter. Detail: `{ record, column, altKey, ctrlKey, metaKey, shiftKey }`."
24155
25145
  },
24156
25146
  {
24157
- "name": "sort",
25147
+ "name": "row-click",
24158
25148
  "type": {
24159
25149
  "text": "CustomEvent"
24160
25150
  },
24161
- "description": "Dispatched when the table is sorted."
25151
+ "description": "Dispatched when a row is clicked or activated with Enter. Detail: `{ record }`."
24162
25152
  },
24163
25153
  {
24164
25154
  "name": "page",
24165
25155
  "type": {
24166
25156
  "text": "CustomEvent"
24167
25157
  },
24168
- "description": "Dispatched when the page or page size changes."
25158
+ "description": "Dispatched when the page or page size changes. Detail: `{ page, pageSize }`."
24169
25159
  }
24170
25160
  ],
24171
25161
  "attributes": [
@@ -24175,13 +25165,13 @@
24175
25165
  "text": "TableColumn[]"
24176
25166
  },
24177
25167
  "default": "[]",
24178
- "description": "Grid columns configuration.\nEach column can have: name, label, width (px), fixed (boolean), template (function).",
25168
+ "description": "Grid columns configuration.\nEach column can have: name, label, width (rem), fixed, align, type, sortable, wrap, template.",
24179
25169
  "fieldName": "columns"
24180
25170
  },
24181
25171
  {
24182
25172
  "name": "data",
24183
25173
  "type": {
24184
- "text": "any[]"
25174
+ "text": "TableRow[]"
24185
25175
  },
24186
25176
  "default": "[]",
24187
25177
  "description": "Grid data to display on table.",
@@ -24255,7 +25245,7 @@
24255
25245
  "text": "boolean"
24256
25246
  },
24257
25247
  "default": "false",
24258
- "description": "If true, pagination is enabled. Defaults to `true`.",
25248
+ "description": "If true, pagination is enabled. Defaults to `false`.",
24259
25249
  "fieldName": "paginate"
24260
25250
  },
24261
25251
  {
@@ -24276,14 +25266,79 @@
24276
25266
  "description": "The number of rows per page. Defaults to `10`.",
24277
25267
  "fieldName": "pageSize"
24278
25268
  },
25269
+ {
25270
+ "name": "page-sizes",
25271
+ "type": {
25272
+ "text": "number[] | undefined"
25273
+ },
25274
+ "description": "Supported page size options, passed to the pagination.",
25275
+ "fieldName": "pageSizes"
25276
+ },
24279
25277
  {
24280
25278
  "name": "total-items",
24281
25279
  "type": {
24282
25280
  "text": "number | undefined"
24283
25281
  },
24284
- "description": "Total number of items (used in managed/controlled mode).",
25282
+ "description": "Total number of items (used in managed/controlled mode). Leave it unset when the total is\nunknown; the pagination then shows previous and next, driven by `has-next`.",
24285
25283
  "fieldName": "totalItems"
24286
25284
  },
25285
+ {
25286
+ "name": "has-next",
25287
+ "type": {
25288
+ "text": "boolean"
25289
+ },
25290
+ "default": "false",
25291
+ "description": "Whether another page exists after this one, in managed mode with an unknown total.",
25292
+ "fieldName": "hasNext"
25293
+ },
25294
+ {
25295
+ "name": "pagination-variant",
25296
+ "type": {
25297
+ "text": "PaginationVariant"
25298
+ },
25299
+ "default": "'full'",
25300
+ "description": "Pagination variant: `full` (page numbers), `compact` or `simple`. Defaults to `full`.",
25301
+ "fieldName": "paginationVariant",
25302
+ "expandedType": {
25303
+ "text": "'full' | 'compact' | 'simple'"
25304
+ }
25305
+ },
25306
+ {
25307
+ "name": "density",
25308
+ "type": {
25309
+ "text": "'compact' | 'default' | 'comfortable'"
25310
+ },
25311
+ "default": "'default'",
25312
+ "description": "Row height: `compact`, `default` or `comfortable`. Defaults to `default`.",
25313
+ "fieldName": "density"
25314
+ },
25315
+ {
25316
+ "name": "striped",
25317
+ "type": {
25318
+ "text": "boolean"
25319
+ },
25320
+ "default": "false",
25321
+ "description": "Shades every other row.",
25322
+ "fieldName": "striped"
25323
+ },
25324
+ {
25325
+ "name": "loading",
25326
+ "type": {
25327
+ "text": "boolean"
25328
+ },
25329
+ "default": "false",
25330
+ "description": "Shows a loading state: skeleton rows while there is no data, otherwise a progress bar\nunder the header so the current rows stay readable.",
25331
+ "fieldName": "loading"
25332
+ },
25333
+ {
25334
+ "name": "label",
25335
+ "type": {
25336
+ "text": "string"
25337
+ },
25338
+ "default": "''",
25339
+ "description": "Accessible name of the table.",
25340
+ "fieldName": "label"
25341
+ },
24287
25342
  {
24288
25343
  "name": "empty-state-headline",
24289
25344
  "type": {
@@ -24314,6 +25369,14 @@
24314
25369
  "name": "table",
24315
25370
  "description": ""
24316
25371
  }
25372
+ },
25373
+ {
25374
+ "kind": "variable",
25375
+ "name": "placement"
25376
+ },
25377
+ {
25378
+ "kind": "variable",
25379
+ "name": "column"
24317
25380
  }
24318
25381
  ],
24319
25382
  "exports": [
@@ -24342,178 +25405,6 @@
24342
25405
  }
24343
25406
  ]
24344
25407
  },
24345
- {
24346
- "kind": "javascript-module",
24347
- "path": "src/pagination/pagination.ts",
24348
- "declarations": [
24349
- {
24350
- "kind": "class",
24351
- "description": "",
24352
- "name": "Pagination",
24353
- "members": [
24354
- {
24355
- "kind": "field",
24356
- "name": "page",
24357
- "type": {
24358
- "text": "number"
24359
- },
24360
- "default": "1",
24361
- "description": "The current page number (1-based). Defaults to `1`.",
24362
- "attribute": "page"
24363
- },
24364
- {
24365
- "kind": "field",
24366
- "name": "pageSize",
24367
- "type": {
24368
- "text": "number"
24369
- },
24370
- "default": "10",
24371
- "description": "The number of rows per page. Defaults to `10`.",
24372
- "attribute": "page-size"
24373
- },
24374
- {
24375
- "kind": "field",
24376
- "name": "totalItems",
24377
- "type": {
24378
- "text": "number"
24379
- },
24380
- "default": "0",
24381
- "description": "Total number of items.",
24382
- "attribute": "total-items"
24383
- },
24384
- {
24385
- "kind": "field",
24386
- "name": "pageSizes",
24387
- "type": {
24388
- "text": "number[]"
24389
- },
24390
- "default": "[10, 25, 50, 100]",
24391
- "description": "Supported page size options.",
24392
- "attribute": "page-sizes"
24393
- },
24394
- {
24395
- "kind": "method",
24396
- "name": "getTotalPages",
24397
- "privacy": "private",
24398
- "return": {
24399
- "type": {
24400
- "text": "number"
24401
- }
24402
- }
24403
- },
24404
- {
24405
- "kind": "method",
24406
- "name": "setPage",
24407
- "privacy": "private",
24408
- "parameters": [
24409
- {
24410
- "name": "nextPage",
24411
- "type": {
24412
- "text": "number"
24413
- }
24414
- }
24415
- ]
24416
- },
24417
- {
24418
- "kind": "method",
24419
- "name": "handlePageSizeChange",
24420
- "privacy": "private",
24421
- "parameters": [
24422
- {
24423
- "name": "event",
24424
- "type": {
24425
- "text": "CustomEvent<{ value?: string }>"
24426
- }
24427
- }
24428
- ]
24429
- },
24430
- {
24431
- "kind": "field",
24432
- "name": "handlePreviousPage",
24433
- "privacy": "private"
24434
- },
24435
- {
24436
- "kind": "field",
24437
- "name": "handleNextPage",
24438
- "privacy": "private"
24439
- },
24440
- {
24441
- "kind": "method",
24442
- "name": "dispatchPageEvent",
24443
- "privacy": "private"
24444
- }
24445
- ],
24446
- "events": [
24447
- {
24448
- "name": "page",
24449
- "type": {
24450
- "text": "CustomEvent"
24451
- },
24452
- "description": "Dispatched when the page or page size changes. Detail: `{ page, pageSize }`."
24453
- }
24454
- ],
24455
- "attributes": [
24456
- {
24457
- "name": "page",
24458
- "type": {
24459
- "text": "number"
24460
- },
24461
- "default": "1",
24462
- "description": "The current page number (1-based). Defaults to `1`.",
24463
- "fieldName": "page"
24464
- },
24465
- {
24466
- "name": "page-size",
24467
- "type": {
24468
- "text": "number"
24469
- },
24470
- "default": "10",
24471
- "description": "The number of rows per page. Defaults to `10`.",
24472
- "fieldName": "pageSize"
24473
- },
24474
- {
24475
- "name": "total-items",
24476
- "type": {
24477
- "text": "number"
24478
- },
24479
- "default": "0",
24480
- "description": "Total number of items.",
24481
- "fieldName": "totalItems"
24482
- },
24483
- {
24484
- "name": "page-sizes",
24485
- "type": {
24486
- "text": "number[]"
24487
- },
24488
- "default": "DEFAULT_PAGE_SIZES",
24489
- "description": "Supported page size options.",
24490
- "fieldName": "pageSizes"
24491
- }
24492
- ],
24493
- "superclass": {
24494
- "name": "LitElement",
24495
- "package": "lit"
24496
- },
24497
- "tagName": "wc-pagination",
24498
- "customElement": true,
24499
- "summary": "A pagination control with page size selector, item count display, and previous/next navigation.",
24500
- "rawTag": {
24501
- "name": "pagination",
24502
- "description": ""
24503
- }
24504
- }
24505
- ],
24506
- "exports": [
24507
- {
24508
- "kind": "js",
24509
- "name": "Pagination",
24510
- "declaration": {
24511
- "name": "Pagination",
24512
- "module": "src/pagination/pagination.ts"
24513
- }
24514
- }
24515
- ]
24516
- },
24517
25408
  {
24518
25409
  "kind": "javascript-module",
24519
25410
  "path": "src/pagination/index.ts",