@redvars/peacock 3.14.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.
@@ -23811,6 +23811,451 @@
23811
23811
  }
23812
23812
  ]
23813
23813
  },
23814
+ {
23815
+ "kind": "javascript-module",
23816
+ "path": "src/pagination/page-items.ts",
23817
+ "declarations": [
23818
+ {
23819
+ "kind": "function",
23820
+ "name": "getPageItems",
23821
+ "return": {
23822
+ "type": {
23823
+ "text": "PageItem[]"
23824
+ }
23825
+ },
23826
+ "parameters": [
23827
+ {
23828
+ "name": "current",
23829
+ "type": {
23830
+ "text": "number"
23831
+ }
23832
+ },
23833
+ {
23834
+ "name": "total",
23835
+ "type": {
23836
+ "text": "number"
23837
+ }
23838
+ },
23839
+ {
23840
+ "name": "siblings",
23841
+ "default": "1",
23842
+ "type": {
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": [
23870
+ {
23871
+ "description": "Background of the control. Defaults to the surface color.",
23872
+ "name": "--pagination-background"
23873
+ }
23874
+ ],
23875
+ "members": [
23876
+ {
23877
+ "kind": "field",
23878
+ "name": "page",
23879
+ "type": {
23880
+ "text": "number"
23881
+ },
23882
+ "default": "1",
23883
+ "description": "The current page number (1-based). Defaults to `1`.",
23884
+ "attribute": "page"
23885
+ },
23886
+ {
23887
+ "kind": "field",
23888
+ "name": "pageSize",
23889
+ "type": {
23890
+ "text": "number"
23891
+ },
23892
+ "default": "10",
23893
+ "description": "The number of rows per page. Defaults to `10`.",
23894
+ "attribute": "page-size"
23895
+ },
23896
+ {
23897
+ "kind": "field",
23898
+ "name": "totalItems",
23899
+ "type": {
23900
+ "text": "number | undefined"
23901
+ },
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"
23904
+ },
23905
+ {
23906
+ "kind": "field",
23907
+ "name": "pageSizes",
23908
+ "type": {
23909
+ "text": "number[]"
23910
+ },
23911
+ "default": "[10, 25, 50, 100]",
23912
+ "description": "Supported page size options.",
23913
+ "attribute": "page-sizes"
23914
+ },
23915
+ {
23916
+ "kind": "field",
23917
+ "name": "variant",
23918
+ "type": {
23919
+ "text": "PaginationVariant"
23920
+ },
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
+ }
23928
+ },
23929
+ {
23930
+ "kind": "field",
23931
+ "name": "hasNext",
23932
+ "type": {
23933
+ "text": "boolean"
23934
+ },
23935
+ "default": "false",
23936
+ "description": "Whether another page exists after this one. Used only when `total-items` is unset.",
23937
+ "attribute": "has-next"
23938
+ },
23939
+ {
23940
+ "kind": "field",
23941
+ "name": "showFirstLast",
23942
+ "type": {
23943
+ "text": "boolean"
23944
+ },
23945
+ "default": "false",
23946
+ "description": "Shows buttons that jump to the first and the last page.",
23947
+ "attribute": "show-first-last"
23948
+ },
23949
+ {
23950
+ "kind": "field",
23951
+ "name": "hidePageSize",
23952
+ "type": {
23953
+ "text": "boolean"
23954
+ },
23955
+ "default": "false",
23956
+ "description": "Hides the rows-per-page selector.",
23957
+ "attribute": "hide-page-size"
23958
+ },
23959
+ {
23960
+ "kind": "field",
23961
+ "name": "label",
23962
+ "type": {
23963
+ "text": "string"
23964
+ },
23965
+ "default": "'Pagination'",
23966
+ "description": "Accessible name of the navigation landmark. Defaults to `\"Pagination\"`.",
23967
+ "attribute": "label"
23968
+ },
23969
+ {
23970
+ "kind": "field",
23971
+ "name": "hasTotal",
23972
+ "type": {
23973
+ "text": "boolean"
23974
+ },
23975
+ "privacy": "private",
23976
+ "description": "True when the total is known.",
23977
+ "readonly": true
23978
+ },
23979
+ {
23980
+ "kind": "method",
23981
+ "name": "getTotalPages",
23982
+ "privacy": "private",
23983
+ "return": {
23984
+ "type": {
23985
+ "text": "number | undefined"
23986
+ }
23987
+ },
23988
+ "description": "The number of pages, or `undefined` when the total is unknown."
23989
+ },
23990
+ {
23991
+ "kind": "field",
23992
+ "name": "isFirstPage",
23993
+ "type": {
23994
+ "text": "boolean"
23995
+ },
23996
+ "privacy": "private",
23997
+ "readonly": true
23998
+ },
23999
+ {
24000
+ "kind": "field",
24001
+ "name": "isLastPage",
24002
+ "type": {
24003
+ "text": "boolean"
24004
+ },
24005
+ "privacy": "private",
24006
+ "readonly": true
24007
+ },
24008
+ {
24009
+ "kind": "field",
24010
+ "name": "effectiveVariant",
24011
+ "type": {
24012
+ "text": "PaginationVariant"
24013
+ },
24014
+ "privacy": "private",
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
+ }
24020
+ },
24021
+ {
24022
+ "kind": "method",
24023
+ "name": "getRangeText",
24024
+ "privacy": "private",
24025
+ "return": {
24026
+ "type": {
24027
+ "text": "string"
24028
+ }
24029
+ }
24030
+ },
24031
+ {
24032
+ "kind": "method",
24033
+ "name": "setPage",
24034
+ "privacy": "private",
24035
+ "parameters": [
24036
+ {
24037
+ "name": "nextPage",
24038
+ "type": {
24039
+ "text": "number"
24040
+ }
24041
+ }
24042
+ ]
24043
+ },
24044
+ {
24045
+ "kind": "method",
24046
+ "name": "handlePageSizeChange",
24047
+ "privacy": "private",
24048
+ "parameters": [
24049
+ {
24050
+ "name": "event",
24051
+ "type": {
24052
+ "text": "CustomEvent<{ value?: string }>"
24053
+ }
24054
+ }
24055
+ ]
24056
+ },
24057
+ {
24058
+ "kind": "field",
24059
+ "name": "handlePageInput",
24060
+ "privacy": "private"
24061
+ },
24062
+ {
24063
+ "kind": "field",
24064
+ "name": "handlePageInputKeydown",
24065
+ "privacy": "private"
24066
+ },
24067
+ {
24068
+ "kind": "method",
24069
+ "name": "dispatchPageEvent",
24070
+ "privacy": "private"
24071
+ },
24072
+ {
24073
+ "kind": "method",
24074
+ "name": "renderNavButton",
24075
+ "privacy": "private",
24076
+ "parameters": [
24077
+ {
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
+ },
23814
24259
  {
23815
24260
  "kind": "javascript-module",
23816
24261
  "path": "src/table/table.ts",
@@ -23819,6 +24264,26 @@
23819
24264
  "kind": "class",
23820
24265
  "description": "",
23821
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
+ ],
23822
24287
  "members": [
23823
24288
  {
23824
24289
  "kind": "field",
@@ -23827,14 +24292,14 @@
23827
24292
  "text": "TableColumn[]"
23828
24293
  },
23829
24294
  "default": "[]",
23830
- "description": "Grid columns configuration.\nEach column can have: name, label, width (px), fixed (boolean), template (function).",
24295
+ "description": "Grid columns configuration.\nEach column can have: name, label, width (rem), fixed, align, type, sortable, wrap, template.",
23831
24296
  "attribute": "columns"
23832
24297
  },
23833
24298
  {
23834
24299
  "kind": "field",
23835
24300
  "name": "data",
23836
24301
  "type": {
23837
- "text": "any[]"
24302
+ "text": "TableRow[]"
23838
24303
  },
23839
24304
  "default": "[]",
23840
24305
  "description": "Grid data to display on table.",
@@ -23916,7 +24381,7 @@
23916
24381
  "text": "boolean"
23917
24382
  },
23918
24383
  "default": "false",
23919
- "description": "If true, pagination is enabled. Defaults to `true`.",
24384
+ "description": "If true, pagination is enabled. Defaults to `false`.",
23920
24385
  "attribute": "paginate"
23921
24386
  },
23922
24387
  {
@@ -23939,15 +24404,90 @@
23939
24404
  "description": "The number of rows per page. Defaults to `10`.",
23940
24405
  "attribute": "page-size"
23941
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
+ },
23942
24416
  {
23943
24417
  "kind": "field",
23944
24418
  "name": "totalItems",
23945
24419
  "type": {
23946
24420
  "text": "number | undefined"
23947
24421
  },
23948
- "description": "Total number of items (used in managed/controlled mode).",
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`.",
23949
24423
  "attribute": "total-items"
23950
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
+ },
23951
24491
  {
23952
24492
  "kind": "field",
23953
24493
  "name": "emptyStateHeadline",
@@ -23970,58 +24510,293 @@
23970
24510
  },
23971
24511
  {
23972
24512
  "kind": "field",
23973
- "name": "hoveredCell",
24513
+ "name": "allPagesSelected",
23974
24514
  "type": {
23975
- "text": "{ row?: any; column?: any }"
24515
+ "text": "boolean"
23976
24516
  },
23977
24517
  "privacy": "private",
23978
- "default": "{}",
23979
- "description": "Tracks the currently hovered row and column for hover-highlight CSS."
24518
+ "default": "false",
24519
+ "description": "True when every item across all pages is selected, not only the current page."
23980
24520
  },
23981
24521
  {
23982
24522
  "kind": "field",
23983
- "name": "isSelectAll",
24523
+ "name": "scrolledFromStart",
23984
24524
  "type": {
23985
24525
  "text": "boolean"
23986
24526
  },
23987
24527
  "privacy": "private",
23988
24528
  "default": "false",
23989
- "description": "True when all rows on the current page are selected."
24529
+ "description": "True when content is scrolled under the start-pinned columns."
23990
24530
  },
23991
24531
  {
23992
24532
  "kind": "field",
23993
- "name": "isSelectAllIntermediate",
24533
+ "name": "scrolledFromEnd",
23994
24534
  "type": {
23995
24535
  "text": "boolean"
23996
24536
  },
23997
24537
  "privacy": "private",
23998
24538
  "default": "false",
23999
- "description": "True when some (but not all) rows on the current page are selected."
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"
24000
24558
  },
24001
24559
  {
24002
24560
  "kind": "field",
24003
- "name": "isHorizontallyScrolled",
24561
+ "name": "pendingFocus",
24004
24562
  "type": {
24005
24563
  "text": "boolean"
24006
24564
  },
24007
24565
  "privacy": "private",
24008
24566
  "default": "false",
24009
- "description": "True when the scroll container has been scrolled horizontally."
24567
+ "description": "Set when a keyboard move must focus the active cell after the next render."
24010
24568
  },
24011
24569
  {
24012
24570
  "kind": "field",
24013
- "name": "onCellMouseOverThrottled",
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",
24014
24630
  "privacy": "private",
24015
- "description": "Throttled version of the cell-mouseover handler to avoid excessive state updates."
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
+ ]
24016
24645
  },
24017
24646
  {
24018
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",
24019
24754
  "name": "onSelectAllClick",
24020
- "privacy": "private"
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
+ ]
24021
24796
  },
24022
24797
  {
24023
- "kind": "field",
24024
- "name": "onRowSelectClick",
24798
+ "kind": "method",
24799
+ "name": "clearSelection",
24025
24800
  "privacy": "private"
24026
24801
  },
24027
24802
  {
@@ -24034,6 +24809,12 @@
24034
24809
  "type": {
24035
24810
  "text": "string[]"
24036
24811
  }
24812
+ },
24813
+ {
24814
+ "name": "pageRows",
24815
+ "type": {
24816
+ "text": "TableRow[]"
24817
+ }
24037
24818
  }
24038
24819
  ]
24039
24820
  },
@@ -24045,7 +24826,7 @@
24045
24826
  {
24046
24827
  "name": "row",
24047
24828
  "type": {
24048
- "text": "any"
24829
+ "text": "TableRow"
24049
24830
  }
24050
24831
  },
24051
24832
  {
@@ -24062,33 +24843,106 @@
24062
24843
  }
24063
24844
  ]
24064
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
+ },
24065
24884
  {
24066
24885
  "kind": "field",
24067
24886
  "name": "onScrollContainer",
24068
24887
  "privacy": "private"
24069
24888
  },
24070
24889
  {
24071
- "kind": "field",
24072
- "name": "totalColumnsWidth",
24073
- "type": {
24074
- "text": "number"
24075
- },
24890
+ "kind": "method",
24891
+ "name": "updateScrollEdges",
24892
+ "privacy": "private"
24893
+ },
24894
+ {
24895
+ "kind": "method",
24896
+ "name": "getCell",
24076
24897
  "privacy": "private",
24077
- "readonly": true
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
+ ]
24078
24917
  },
24079
24918
  {
24080
24919
  "kind": "method",
24081
- "name": "getTotalItems",
24920
+ "name": "getFocusTarget",
24082
24921
  "privacy": "private",
24083
24922
  "return": {
24084
24923
  "type": {
24085
- "text": "number"
24924
+ "text": "HTMLElement | null"
24086
24925
  }
24087
- }
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."
24088
24942
  },
24089
24943
  {
24090
24944
  "kind": "method",
24091
- "name": "getSortIcon",
24945
+ "name": "tabIndexFor",
24092
24946
  "privacy": "private",
24093
24947
  "return": {
24094
24948
  "type": {
@@ -24096,42 +24950,171 @@
24096
24950
  }
24097
24951
  },
24098
24952
  "parameters": [
24953
+ {
24954
+ "name": "row",
24955
+ "type": {
24956
+ "text": "number"
24957
+ }
24958
+ },
24099
24959
  {
24100
24960
  "name": "col",
24101
24961
  "type": {
24102
- "text": "TableColumn"
24962
+ "text": "number"
24103
24963
  }
24104
24964
  }
24105
24965
  ]
24106
24966
  },
24967
+ {
24968
+ "kind": "field",
24969
+ "name": "onGridFocusIn",
24970
+ "privacy": "private"
24971
+ },
24972
+ {
24973
+ "kind": "field",
24974
+ "name": "onGridKeydown",
24975
+ "privacy": "private"
24976
+ },
24107
24977
  {
24108
24978
  "kind": "method",
24109
- "name": "onSortClick",
24979
+ "name": "renderCellContent",
24110
24980
  "privacy": "private",
24111
24981
  "parameters": [
24112
24982
  {
24113
- "name": "col",
24983
+ "name": "row",
24984
+ "type": {
24985
+ "text": "TableRow"
24986
+ }
24987
+ },
24988
+ {
24989
+ "name": "column",
24114
24990
  "type": {
24115
24991
  "text": "TableColumn"
24116
24992
  }
24117
24993
  }
24118
24994
  ]
24119
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
+ },
24120
25049
  {
24121
25050
  "kind": "method",
24122
25051
  "name": "renderHeader",
24123
- "privacy": "private"
25052
+ "privacy": "private",
25053
+ "parameters": [
25054
+ {
25055
+ "name": "columns",
25056
+ "type": {
25057
+ "text": "GridColumn[]"
25058
+ }
25059
+ },
25060
+ {
25061
+ "name": "pageRows",
25062
+ "type": {
25063
+ "text": "TableRow[]"
25064
+ }
25065
+ }
25066
+ ]
24124
25067
  },
24125
25068
  {
24126
25069
  "kind": "method",
24127
25070
  "name": "renderBody",
24128
- "privacy": "private"
25071
+ "privacy": "private",
25072
+ "parameters": [
25073
+ {
25074
+ "name": "columns",
25075
+ "type": {
25076
+ "text": "GridColumn[]"
25077
+ }
25078
+ },
25079
+ {
25080
+ "name": "pageRows",
25081
+ "type": {
25082
+ "text": "TableRow[]"
25083
+ }
25084
+ }
25085
+ ]
25086
+ },
25087
+ {
25088
+ "kind": "method",
25089
+ "name": "renderSkeletonBody",
25090
+ "privacy": "private",
25091
+ "parameters": [
25092
+ {
25093
+ "name": "columns",
25094
+ "type": {
25095
+ "text": "GridColumn[]"
25096
+ }
25097
+ }
25098
+ ]
24129
25099
  },
24130
25100
  {
24131
25101
  "kind": "method",
24132
25102
  "name": "renderEmptyState",
24133
25103
  "privacy": "private"
24134
25104
  },
25105
+ {
25106
+ "kind": "method",
25107
+ "name": "renderBulkBar",
25108
+ "privacy": "private",
25109
+ "parameters": [
25110
+ {
25111
+ "name": "pageRows",
25112
+ "type": {
25113
+ "text": "TableRow[]"
25114
+ }
25115
+ }
25116
+ ]
25117
+ },
24135
25118
  {
24136
25119
  "kind": "method",
24137
25120
  "name": "renderPagination",
@@ -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,34 +25245,99 @@
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
  {
24262
- "name": "page",
25252
+ "name": "page",
25253
+ "type": {
25254
+ "text": "number"
25255
+ },
25256
+ "default": "1",
25257
+ "description": "The current page number (1-based). Defaults to `1`.",
25258
+ "fieldName": "page"
25259
+ },
25260
+ {
25261
+ "name": "page-size",
25262
+ "type": {
25263
+ "text": "number"
25264
+ },
25265
+ "default": "10",
25266
+ "description": "The number of rows per page. Defaults to `10`.",
25267
+ "fieldName": "pageSize"
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
+ },
25277
+ {
25278
+ "name": "total-items",
25279
+ "type": {
25280
+ "text": "number | undefined"
25281
+ },
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`.",
25283
+ "fieldName": "totalItems"
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",
24263
25317
  "type": {
24264
- "text": "number"
25318
+ "text": "boolean"
24265
25319
  },
24266
- "default": "1",
24267
- "description": "The current page number (1-based). Defaults to `1`.",
24268
- "fieldName": "page"
25320
+ "default": "false",
25321
+ "description": "Shades every other row.",
25322
+ "fieldName": "striped"
24269
25323
  },
24270
25324
  {
24271
- "name": "page-size",
25325
+ "name": "loading",
24272
25326
  "type": {
24273
- "text": "number"
25327
+ "text": "boolean"
24274
25328
  },
24275
- "default": "10",
24276
- "description": "The number of rows per page. Defaults to `10`.",
24277
- "fieldName": "pageSize"
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"
24278
25332
  },
24279
25333
  {
24280
- "name": "total-items",
25334
+ "name": "label",
24281
25335
  "type": {
24282
- "text": "number | undefined"
25336
+ "text": "string"
24283
25337
  },
24284
- "description": "Total number of items (used in managed/controlled mode).",
24285
- "fieldName": "totalItems"
25338
+ "default": "''",
25339
+ "description": "Accessible name of the table.",
25340
+ "fieldName": "label"
24286
25341
  },
24287
25342
  {
24288
25343
  "name": "empty-state-headline",
@@ -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",
@@ -27386,20 +28277,35 @@
27386
28277
  },
27387
28278
  {
27388
28279
  "kind": "field",
27389
- "name": "_visible",
28280
+ "name": "_dialog",
27390
28281
  "type": {
27391
- "text": "boolean"
28282
+ "text": "HTMLDialogElement | undefined"
27392
28283
  },
27393
- "privacy": "private",
27394
- "default": "false"
28284
+ "privacy": "private"
28285
+ },
28286
+ {
28287
+ "kind": "field",
28288
+ "name": "_panel",
28289
+ "type": {
28290
+ "text": "HTMLElement | undefined"
28291
+ },
28292
+ "privacy": "private"
27395
28293
  },
27396
28294
  {
27397
28295
  "kind": "method",
27398
- "name": "show"
28296
+ "name": "show",
28297
+ "description": "Opens the modal."
27399
28298
  },
27400
28299
  {
27401
28300
  "kind": "method",
27402
- "name": "hide"
28301
+ "name": "hide",
28302
+ "description": "Closes the modal."
28303
+ },
28304
+ {
28305
+ "kind": "method",
28306
+ "name": "_syncDialog",
28307
+ "privacy": "private",
28308
+ "description": "Opens the native dialog in the top layer, or closes it once the exit animation ends."
27403
28309
  },
27404
28310
  {
27405
28311
  "kind": "method",
@@ -27416,32 +28322,47 @@
27416
28322
  },
27417
28323
  {
27418
28324
  "kind": "method",
27419
- "name": "_handleScrimClick",
27420
- "privacy": "private"
28325
+ "name": "_handleCancel",
28326
+ "privacy": "private",
28327
+ "parameters": [
28328
+ {
28329
+ "name": "event",
28330
+ "type": {
28331
+ "text": "Event"
28332
+ }
28333
+ }
28334
+ ],
28335
+ "description": "Escape: close through `open` so the property stays the source of truth."
27421
28336
  },
27422
28337
  {
27423
28338
  "kind": "method",
27424
- "name": "_handleCloseClick",
27425
- "privacy": "private"
27426
- },
27427
- {
27428
- "kind": "field",
27429
- "name": "_handleKeydown",
28339
+ "name": "_handleNativeClose",
27430
28340
  "privacy": "private",
27431
- "readonly": true
28341
+ "description": "The browser closed the dialog by itself (for example a forced Escape): keep `open` in step."
27432
28342
  },
27433
28343
  {
27434
28344
  "kind": "method",
27435
- "name": "_handleAnimationEnd",
28345
+ "name": "_handleDialogClick",
27436
28346
  "privacy": "private",
27437
28347
  "parameters": [
27438
28348
  {
27439
- "name": "e",
28349
+ "name": "event",
27440
28350
  "type": {
27441
- "text": "AnimationEvent"
28351
+ "text": "MouseEvent"
27442
28352
  }
27443
28353
  }
27444
- ]
28354
+ ],
28355
+ "description": "A click that lands outside the dialog container, not on its content, is a scrim click."
28356
+ },
28357
+ {
28358
+ "kind": "method",
28359
+ "name": "_handleCloseClick",
28360
+ "privacy": "private"
28361
+ },
28362
+ {
28363
+ "kind": "method",
28364
+ "name": "_renderHeader",
28365
+ "privacy": "private"
27445
28366
  }
27446
28367
  ],
27447
28368
  "events": [
@@ -27449,7 +28370,8 @@
27449
28370
  "name": "modal-close",
27450
28371
  "type": {
27451
28372
  "text": "CustomEvent"
27452
- }
28373
+ },
28374
+ "description": "Fired when the modal closes. `detail.reason` is `\"close-button\"`, `\"scrim\"`, `\"escape\"` or `\"programmatic\"`."
27453
28375
  }
27454
28376
  ],
27455
28377
  "attributes": [