@tylertech/forge 3.0.0-next.20 → 3.0.0-next.21

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.
Files changed (80) hide show
  1. package/custom-elements.json +141 -309
  2. package/dist/esm/accordion/index.js +1 -1
  3. package/dist/esm/autocomplete/index.js +1 -1
  4. package/dist/esm/button-area/index.js +1 -1
  5. package/dist/esm/chunks/{chunk.OFXSMOV6.js → chunk.5UGN5FYV.js} +2 -2
  6. package/dist/esm/chunks/{chunk.2N5KNNQX.js → chunk.5UZ2DEW3.js} +2 -2
  7. package/dist/esm/chunks/chunk.656X22EF.js +7 -0
  8. package/dist/esm/chunks/chunk.656X22EF.js.map +7 -0
  9. package/dist/esm/chunks/chunk.6JVMCBCR.js +7 -0
  10. package/dist/esm/chunks/{chunk.OT4AIOMN.js.map → chunk.6JVMCBCR.js.map} +3 -3
  11. package/dist/esm/chunks/{chunk.O56VP4OZ.js → chunk.A6BIUNPW.js} +2 -2
  12. package/dist/esm/chunks/{chunk.KEFJZO5K.js → chunk.BMQAVBWZ.js} +2 -2
  13. package/dist/esm/chunks/{chunk.KEFJZO5K.js.map → chunk.BMQAVBWZ.js.map} +1 -1
  14. package/dist/esm/chunks/{chunk.5S7XNYRQ.js → chunk.GL2H6QOP.js} +2 -2
  15. package/dist/esm/chunks/chunk.HMJODLAS.js +7 -0
  16. package/dist/esm/chunks/chunk.HMJODLAS.js.map +7 -0
  17. package/dist/esm/chunks/{chunk.ZAREP2QH.js → chunk.HYTFCFP6.js} +2 -2
  18. package/dist/esm/chunks/{chunk.TPNZYEC7.js → chunk.NIUX6DVF.js} +2 -2
  19. package/dist/esm/chunks/{chunk.VOTT5COZ.js → chunk.OSBNFFCI.js} +2 -2
  20. package/dist/esm/chunks/chunk.RJC42RNR.js +7 -0
  21. package/dist/esm/chunks/chunk.RJC42RNR.js.map +7 -0
  22. package/dist/esm/chunks/chunk.V7ILFIOR.js +7 -0
  23. package/dist/esm/chunks/chunk.V7ILFIOR.js.map +7 -0
  24. package/dist/esm/date-picker/index.js +1 -1
  25. package/dist/esm/date-range-picker/index.js +1 -1
  26. package/dist/esm/expansion-panel/index.js +1 -1
  27. package/dist/esm/field-next/index.js +1 -1
  28. package/dist/esm/index.js +1 -1
  29. package/dist/esm/split-view/index.js +1 -1
  30. package/dist/esm/split-view/split-view/index.js +1 -1
  31. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  32. package/dist/esm/stepper/index.js +1 -1
  33. package/dist/esm/stepper/step/index.js +1 -1
  34. package/dist/esm/stepper/stepper/index.js +1 -1
  35. package/dist/esm/table/index.js +1 -1
  36. package/dist/esm/text-field/index.js +1 -1
  37. package/dist/esm/time-picker/index.js +1 -1
  38. package/dist/forge.css +1 -1
  39. package/esm/button-area/button-area-foundation.js +2 -3
  40. package/esm/expansion-panel/expansion-panel-adapter.d.ts +13 -20
  41. package/esm/expansion-panel/expansion-panel-adapter.js +22 -159
  42. package/esm/expansion-panel/expansion-panel-constants.d.ts +16 -22
  43. package/esm/expansion-panel/expansion-panel-constants.js +16 -30
  44. package/esm/expansion-panel/expansion-panel-foundation.d.ts +14 -37
  45. package/esm/expansion-panel/expansion-panel-foundation.js +50 -117
  46. package/esm/expansion-panel/expansion-panel.d.ts +29 -32
  47. package/esm/expansion-panel/expansion-panel.js +32 -32
  48. package/esm/field-next/field.js +1 -1
  49. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  50. package/esm/stepper/step/step-adapter.js +2 -2
  51. package/esm/table/table-utils.js +5 -4
  52. package/package.json +1 -1
  53. package/styles/core/styles/tokens/expansion-panel/_tokens.scss +17 -0
  54. package/styles/expansion-panel/_core.scss +65 -0
  55. package/styles/expansion-panel/_token-utils.scss +30 -0
  56. package/styles/expansion-panel/expansion-panel.scss +83 -3
  57. package/styles/expansion-panel/index.scss +6 -0
  58. package/styles/field-next/_core.layout.scss +2 -6
  59. package/styles/field-next/_core.scss +2 -1
  60. package/styles/field-next/field.scss +0 -4
  61. package/styles/forge.scss +0 -1
  62. package/dist/esm/chunks/chunk.IZ63EJ32.js +0 -7
  63. package/dist/esm/chunks/chunk.IZ63EJ32.js.map +0 -7
  64. package/dist/esm/chunks/chunk.LGEZI5SZ.js +0 -7
  65. package/dist/esm/chunks/chunk.LGEZI5SZ.js.map +0 -7
  66. package/dist/esm/chunks/chunk.OT4AIOMN.js +0 -7
  67. package/dist/esm/chunks/chunk.SIGRWU4V.js +0 -7
  68. package/dist/esm/chunks/chunk.SIGRWU4V.js.map +0 -7
  69. package/dist/esm/chunks/chunk.USO2XVOI.js +0 -7
  70. package/dist/esm/chunks/chunk.USO2XVOI.js.map +0 -7
  71. package/dist/expansion-panel/forge-expansion-panel.css +0 -6
  72. package/styles/expansion-panel/_mixins.scss +0 -88
  73. package/styles/expansion-panel/forge-expansion-panel.scss +0 -16
  74. /package/dist/esm/chunks/{chunk.OFXSMOV6.js.map → chunk.5UGN5FYV.js.map} +0 -0
  75. /package/dist/esm/chunks/{chunk.2N5KNNQX.js.map → chunk.5UZ2DEW3.js.map} +0 -0
  76. /package/dist/esm/chunks/{chunk.O56VP4OZ.js.map → chunk.A6BIUNPW.js.map} +0 -0
  77. /package/dist/esm/chunks/{chunk.5S7XNYRQ.js.map → chunk.GL2H6QOP.js.map} +0 -0
  78. /package/dist/esm/chunks/{chunk.ZAREP2QH.js.map → chunk.HYTFCFP6.js.map} +0 -0
  79. /package/dist/esm/chunks/{chunk.TPNZYEC7.js.map → chunk.NIUX6DVF.js.map} +0 -0
  80. /package/dist/esm/chunks/{chunk.VOTT5COZ.js.map → chunk.OSBNFFCI.js.map} +0 -0
@@ -43463,46 +43463,31 @@
43463
43463
  },
43464
43464
  {
43465
43465
  "kind": "field",
43466
- "name": "_headerSlotElement",
43466
+ "name": "_transitionStartListener",
43467
43467
  "type": {
43468
- "text": "HTMLSlotElement"
43468
+ "text": "EventListener"
43469
43469
  },
43470
- "privacy": "private",
43471
- "default": "getShadowElement(this._component, EXPANSION_PANEL_CONSTANTS.selectors.HEADER_SLOT)"
43470
+ "privacy": "private"
43472
43471
  },
43473
43472
  {
43474
43473
  "kind": "field",
43475
- "name": "_activeAnimationFrame",
43474
+ "name": "_transitionEndListener",
43476
43475
  "type": {
43477
- "text": "number | undefined"
43476
+ "text": "EventListener"
43478
43477
  },
43479
43478
  "privacy": "private"
43480
43479
  },
43481
43480
  {
43482
- "kind": "method",
43483
- "name": "initialize",
43484
- "privacy": "public",
43485
- "return": {
43486
- "type": {
43487
- "text": "void"
43488
- }
43481
+ "kind": "field",
43482
+ "name": "_transitionCompleteListener",
43483
+ "type": {
43484
+ "text": "() => void"
43489
43485
  },
43490
- "parameters": [
43491
- {
43492
- "name": "open",
43493
- "type": {
43494
- "text": "boolean"
43495
- }
43496
- },
43497
- {
43498
- "name": "orientation",
43499
- "default": "'vertical'"
43500
- }
43501
- ]
43486
+ "privacy": "private"
43502
43487
  },
43503
43488
  {
43504
43489
  "kind": "method",
43505
- "name": "setHeaderVisibility",
43490
+ "name": "setAnimationCompleteListener",
43506
43491
  "privacy": "public",
43507
43492
  "return": {
43508
43493
  "type": {
@@ -43511,16 +43496,16 @@
43511
43496
  },
43512
43497
  "parameters": [
43513
43498
  {
43514
- "name": "visible",
43499
+ "name": "listener",
43515
43500
  "type": {
43516
- "text": "boolean"
43501
+ "text": "() => void"
43517
43502
  }
43518
43503
  }
43519
43504
  ]
43520
43505
  },
43521
43506
  {
43522
43507
  "kind": "method",
43523
- "name": "setOpenState",
43508
+ "name": "addHeaderListener",
43524
43509
  "privacy": "public",
43525
43510
  "return": {
43526
43511
  "type": {
@@ -43529,60 +43514,22 @@
43529
43514
  },
43530
43515
  "parameters": [
43531
43516
  {
43532
- "name": "opening",
43517
+ "name": "type",
43533
43518
  "type": {
43534
- "text": "boolean"
43519
+ "text": "keyof HTMLElementEventMap"
43535
43520
  }
43536
43521
  },
43537
- {
43538
- "name": "orientation",
43539
- "default": "EXPANSION_PANEL_CONSTANTS.strings.ORIENTATION_VERTICAL"
43540
- },
43541
- {
43542
- "name": "animate",
43543
- "default": "true"
43544
- }
43545
- ]
43546
- },
43547
- {
43548
- "kind": "method",
43549
- "name": "registerClickListener",
43550
- "privacy": "public",
43551
- "return": {
43552
- "type": {
43553
- "text": "void"
43554
- }
43555
- },
43556
- "parameters": [
43557
43522
  {
43558
43523
  "name": "listener",
43559
43524
  "type": {
43560
- "text": "(evt: MouseEvent) => void"
43561
- }
43562
- }
43563
- ]
43564
- },
43565
- {
43566
- "kind": "method",
43567
- "name": "deregisterClickListener",
43568
- "privacy": "public",
43569
- "return": {
43570
- "type": {
43571
- "text": "void"
43572
- }
43573
- },
43574
- "parameters": [
43575
- {
43576
- "name": "listener",
43577
- "type": {
43578
- "text": "(evt: MouseEvent) => void"
43525
+ "text": "EventListener"
43579
43526
  }
43580
43527
  }
43581
43528
  ]
43582
43529
  },
43583
43530
  {
43584
43531
  "kind": "method",
43585
- "name": "registerKeydownListener",
43532
+ "name": "tryToggleOpenIcon",
43586
43533
  "privacy": "public",
43587
43534
  "return": {
43588
43535
  "type": {
@@ -43591,16 +43538,16 @@
43591
43538
  },
43592
43539
  "parameters": [
43593
43540
  {
43594
- "name": "listener",
43541
+ "name": "value",
43595
43542
  "type": {
43596
- "text": "(evt: KeyboardEvent) => void"
43543
+ "text": "boolean"
43597
43544
  }
43598
43545
  }
43599
43546
  ]
43600
43547
  },
43601
43548
  {
43602
43549
  "kind": "method",
43603
- "name": "deregisterKeydownListener",
43550
+ "name": "setContentVisibility",
43604
43551
  "privacy": "public",
43605
43552
  "return": {
43606
43553
  "type": {
@@ -43609,17 +43556,17 @@
43609
43556
  },
43610
43557
  "parameters": [
43611
43558
  {
43612
- "name": "listener",
43559
+ "name": "visible",
43613
43560
  "type": {
43614
- "text": "(evt: KeyboardEvent) => void"
43561
+ "text": "boolean"
43615
43562
  }
43616
43563
  }
43617
43564
  ]
43618
43565
  },
43619
43566
  {
43620
43567
  "kind": "method",
43621
- "name": "registerHeaderSlotListener",
43622
- "privacy": "public",
43568
+ "name": "_onTransitionStart",
43569
+ "privacy": "private",
43623
43570
  "return": {
43624
43571
  "type": {
43625
43572
  "text": "void"
@@ -43627,17 +43574,17 @@
43627
43574
  },
43628
43575
  "parameters": [
43629
43576
  {
43630
- "name": "listener",
43577
+ "name": "evt",
43631
43578
  "type": {
43632
- "text": "(evt: Event) => void"
43579
+ "text": "TransitionEvent"
43633
43580
  }
43634
43581
  }
43635
43582
  ]
43636
43583
  },
43637
43584
  {
43638
43585
  "kind": "method",
43639
- "name": "deregisterHeaderSlotListener",
43640
- "privacy": "public",
43586
+ "name": "_onTransitionEnd",
43587
+ "privacy": "private",
43641
43588
  "return": {
43642
43589
  "type": {
43643
43590
  "text": "void"
@@ -43645,9 +43592,9 @@
43645
43592
  },
43646
43593
  "parameters": [
43647
43594
  {
43648
- "name": "listener",
43595
+ "name": "evt",
43649
43596
  "type": {
43650
- "text": "(evt: Event) => void"
43597
+ "text": "TransitionEvent"
43651
43598
  }
43652
43599
  }
43653
43600
  ]
@@ -44277,7 +44224,7 @@
44277
44224
  "type": {
44278
44225
  "text": "object"
44279
44226
  },
44280
- "default": "{\n elementName,\n classes,\n selectors,\n events,\n attributes,\n numbers,\n strings\n}"
44227
+ "default": "{\n elementName,\n observedAttributes,\n attributes,\n classes,\n selectors,\n events\n}"
44281
44228
  }
44282
44229
  ],
44283
44230
  "exports": [
@@ -44311,39 +44258,27 @@
44311
44258
  },
44312
44259
  {
44313
44260
  "kind": "field",
44314
- "name": "_useAnimations",
44261
+ "name": "_orientation",
44315
44262
  "type": {
44316
- "text": "boolean"
44263
+ "text": "ExpansionPanelOrientation"
44317
44264
  },
44318
44265
  "privacy": "private",
44319
- "default": "true"
44320
- },
44321
- {
44322
- "kind": "field",
44323
- "name": "_openCallback",
44324
- "type": {
44325
- "text": "() => void | Promise<void>"
44326
- },
44327
- "privacy": "private"
44266
+ "default": "'vertical'"
44328
44267
  },
44329
44268
  {
44330
44269
  "kind": "field",
44331
- "name": "_closeCallback",
44270
+ "name": "_animationType",
44332
44271
  "type": {
44333
- "text": "() => void | Promise<void>"
44272
+ "text": "ExpansionPanelAnimationType"
44334
44273
  },
44335
- "privacy": "private"
44336
- },
44337
- {
44338
- "kind": "field",
44339
- "name": "_orientation",
44340
- "privacy": "private"
44274
+ "privacy": "private",
44275
+ "default": "'default'"
44341
44276
  },
44342
44277
  {
44343
44278
  "kind": "field",
44344
44279
  "name": "_clickListener",
44345
44280
  "type": {
44346
- "text": "(evt: MouseEvent) => void"
44281
+ "text": "EventListener"
44347
44282
  },
44348
44283
  "privacy": "private"
44349
44284
  },
@@ -44351,27 +44286,15 @@
44351
44286
  "kind": "field",
44352
44287
  "name": "_keydownListener",
44353
44288
  "type": {
44354
- "text": "(evt: KeyboardEvent) => void"
44289
+ "text": "EventListener"
44355
44290
  },
44356
44291
  "privacy": "private"
44357
44292
  },
44358
44293
  {
44359
44294
  "kind": "field",
44360
- "name": "_headerSlotChangeListener",
44361
- "type": {
44362
- "text": "(evt: Event) => void"
44363
- },
44295
+ "name": "_animationCompleteListener",
44364
44296
  "privacy": "private"
44365
44297
  },
44366
- {
44367
- "kind": "field",
44368
- "name": "_isInitialized",
44369
- "type": {
44370
- "text": "boolean"
44371
- },
44372
- "privacy": "private",
44373
- "default": "false"
44374
- },
44375
44298
  {
44376
44299
  "kind": "method",
44377
44300
  "name": "initialize",
@@ -44384,28 +44307,8 @@
44384
44307
  },
44385
44308
  {
44386
44309
  "kind": "method",
44387
- "name": "connect",
44388
- "privacy": "public",
44389
- "return": {
44390
- "type": {
44391
- "text": "void"
44392
- }
44393
- }
44394
- },
44395
- {
44396
- "kind": "method",
44397
- "name": "disconnect",
44398
- "privacy": "public",
44399
- "return": {
44400
- "type": {
44401
- "text": "void"
44402
- }
44403
- }
44404
- },
44405
- {
44406
- "kind": "method",
44407
- "name": "setOpenImmediate",
44408
- "privacy": "public",
44310
+ "name": "_onClick",
44311
+ "privacy": "private",
44409
44312
  "return": {
44410
44313
  "type": {
44411
44314
  "text": "void"
@@ -44413,16 +44316,16 @@
44413
44316
  },
44414
44317
  "parameters": [
44415
44318
  {
44416
- "name": "open",
44319
+ "name": "evt",
44417
44320
  "type": {
44418
- "text": "boolean"
44321
+ "text": "MouseEvent"
44419
44322
  }
44420
44323
  }
44421
44324
  ]
44422
44325
  },
44423
44326
  {
44424
44327
  "kind": "method",
44425
- "name": "_applyOpen",
44328
+ "name": "_onKeydown",
44426
44329
  "privacy": "private",
44427
44330
  "return": {
44428
44331
  "type": {
@@ -44431,97 +44334,36 @@
44431
44334
  },
44432
44335
  "parameters": [
44433
44336
  {
44434
- "name": "value",
44337
+ "name": "evt",
44435
44338
  "type": {
44436
- "text": "boolean"
44339
+ "text": "KeyboardEvent"
44437
44340
  }
44438
44341
  }
44439
44342
  ]
44440
44343
  },
44441
- {
44442
- "kind": "field",
44443
- "name": "open",
44444
- "type": {
44445
- "text": "boolean"
44446
- },
44447
- "privacy": "public",
44448
- "description": "Controls the open state of the panel."
44449
- },
44450
- {
44451
- "kind": "field",
44452
- "name": "openCallback",
44453
- "type": {
44454
- "text": "() => void | Promise<void>"
44455
- },
44456
- "privacy": "public"
44457
- },
44458
- {
44459
- "kind": "field",
44460
- "name": "closeCallback",
44461
- "type": {
44462
- "text": "() => void | Promise<void>"
44463
- },
44464
- "privacy": "public"
44465
- },
44466
- {
44467
- "kind": "field",
44468
- "name": "orientation",
44469
- "type": {
44470
- "text": "string"
44471
- },
44472
- "privacy": "public"
44473
- },
44474
- {
44475
- "kind": "field",
44476
- "name": "useAnimations",
44477
- "type": {
44478
- "text": "boolean"
44479
- },
44480
- "privacy": "public"
44481
- },
44482
44344
  {
44483
44345
  "kind": "method",
44484
- "name": "_onClick",
44346
+ "name": "_onAnimationComplete",
44485
44347
  "privacy": "private",
44486
44348
  "return": {
44487
44349
  "type": {
44488
44350
  "text": "void"
44489
44351
  }
44490
- },
44491
- "parameters": [
44492
- {
44493
- "name": "evt",
44494
- "type": {
44495
- "text": "MouseEvent"
44496
- },
44497
- "description": "The click event."
44498
- }
44499
- ],
44500
- "description": "Handles click events on the header element."
44352
+ }
44501
44353
  },
44502
44354
  {
44503
44355
  "kind": "method",
44504
- "name": "_onKeydown",
44356
+ "name": "_togglePanel",
44505
44357
  "privacy": "private",
44506
44358
  "return": {
44507
44359
  "type": {
44508
44360
  "text": "void"
44509
44361
  }
44510
- },
44511
- "parameters": [
44512
- {
44513
- "name": "evt",
44514
- "type": {
44515
- "text": "KeyboardEvent"
44516
- },
44517
- "description": "The keydown event"
44518
- }
44519
- ],
44520
- "description": "Handles keydown events on the header."
44362
+ }
44521
44363
  },
44522
44364
  {
44523
44365
  "kind": "method",
44524
- "name": "_emitEvent",
44366
+ "name": "_dispatchToggleEvent",
44525
44367
  "privacy": "private",
44526
44368
  "return": {
44527
44369
  "type": {
@@ -44540,58 +44382,28 @@
44540
44382
  }
44541
44383
  },
44542
44384
  {
44543
- "kind": "method",
44544
- "name": "_openPanel",
44545
- "privacy": "private",
44546
- "return": {
44547
- "type": {
44548
- "text": "void"
44549
- }
44385
+ "kind": "field",
44386
+ "name": "open",
44387
+ "type": {
44388
+ "text": "boolean"
44550
44389
  },
44551
- "parameters": [
44552
- {
44553
- "name": "animate",
44554
- "type": {
44555
- "text": "boolean"
44556
- }
44557
- }
44558
- ]
44390
+ "privacy": "public"
44559
44391
  },
44560
44392
  {
44561
- "kind": "method",
44562
- "name": "_closePanel",
44563
- "privacy": "private",
44564
- "return": {
44565
- "type": {
44566
- "text": "void"
44567
- }
44393
+ "kind": "field",
44394
+ "name": "orientation",
44395
+ "type": {
44396
+ "text": "ExpansionPanelOrientation"
44568
44397
  },
44569
- "parameters": [
44570
- {
44571
- "name": "animate",
44572
- "type": {
44573
- "text": "boolean"
44574
- }
44575
- }
44576
- ]
44398
+ "privacy": "public"
44577
44399
  },
44578
44400
  {
44579
- "kind": "method",
44580
- "name": "_onHeaderSlotChanged",
44581
- "privacy": "private",
44582
- "return": {
44583
- "type": {
44584
- "text": "void"
44585
- }
44401
+ "kind": "field",
44402
+ "name": "animationType",
44403
+ "type": {
44404
+ "text": "ExpansionPanelAnimationType"
44586
44405
  },
44587
- "parameters": [
44588
- {
44589
- "name": "evt",
44590
- "type": {
44591
- "text": "Event"
44592
- }
44593
- }
44594
- ]
44406
+ "privacy": "public"
44595
44407
  }
44596
44408
  ]
44597
44409
  }
@@ -44613,8 +44425,42 @@
44613
44425
  "declarations": [
44614
44426
  {
44615
44427
  "kind": "class",
44616
- "description": "A web component that encapsulates the functionality of expanding/collapsing content when clicked.",
44428
+ "description": "",
44617
44429
  "name": "ExpansionPanelComponent",
44430
+ "cssProperties": [
44431
+ {
44432
+ "description": "The duration of the open/close animation.",
44433
+ "name": "--forge-expansion-animation-duration"
44434
+ },
44435
+ {
44436
+ "description": "The easing function of the open/close animation.",
44437
+ "name": "--forge-expansion-animation-easing"
44438
+ }
44439
+ ],
44440
+ "cssParts": [
44441
+ {
44442
+ "description": "The root element of the panel.",
44443
+ "name": "root"
44444
+ },
44445
+ {
44446
+ "description": "The header of the panel.",
44447
+ "name": "header"
44448
+ },
44449
+ {
44450
+ "description": "The content of the panel.",
44451
+ "name": "content"
44452
+ }
44453
+ ],
44454
+ "slots": [
44455
+ {
44456
+ "description": "The content of the panel.",
44457
+ "name": ""
44458
+ },
44459
+ {
44460
+ "description": "The header of the panel.",
44461
+ "name": "header"
44462
+ }
44463
+ ],
44618
44464
  "members": [
44619
44465
  {
44620
44466
  "kind": "field",
@@ -44625,16 +44471,6 @@
44625
44471
  "privacy": "private",
44626
44472
  "default": "new ExpansionPanelFoundation(new ExpansionPanelAdapter(this))"
44627
44473
  },
44628
- {
44629
- "kind": "method",
44630
- "name": "initializedCallback",
44631
- "privacy": "public",
44632
- "return": {
44633
- "type": {
44634
- "text": "void"
44635
- }
44636
- }
44637
- },
44638
44474
  {
44639
44475
  "kind": "field",
44640
44476
  "name": "open",
@@ -44642,43 +44478,25 @@
44642
44478
  "text": "boolean"
44643
44479
  },
44644
44480
  "privacy": "public",
44645
- "description": "Controls the open state of the panel."
44646
- },
44647
- {
44648
- "kind": "field",
44649
- "name": "openCallback",
44650
- "type": {
44651
- "text": "() => void | Promise<void>"
44652
- },
44653
- "privacy": "public",
44654
- "description": "Sets the function to call when the panel wants to open.\nThe function must return a promise which can be resolved to\nopen the panel or rejected which cancels the panel open."
44655
- },
44656
- {
44657
- "kind": "field",
44658
- "name": "closeCallback",
44659
- "type": {
44660
- "text": "() => void | Promise<void>"
44661
- },
44662
- "privacy": "public",
44663
- "description": "Sets the function to call when the panel wants to close.\nThe function must return a promise which can be resolved to\nclose the panel or rejected which cancels the panel close."
44481
+ "description": "Whether the panel is open or closed."
44664
44482
  },
44665
44483
  {
44666
44484
  "kind": "field",
44667
44485
  "name": "orientation",
44668
44486
  "type": {
44669
- "text": "string"
44487
+ "text": "ExpansionPanelOrientation"
44670
44488
  },
44671
44489
  "privacy": "public",
44672
- "description": "Sets the orientation of the panel expansion.\nValid values are 'vertical' (default) or 'horizontal'."
44490
+ "description": "The orientation of the panel."
44673
44491
  },
44674
44492
  {
44675
44493
  "kind": "field",
44676
- "name": "useAnimations",
44494
+ "name": "animationType",
44677
44495
  "type": {
44678
- "text": "boolean"
44496
+ "text": "ExpansionPanelAnimationType"
44679
44497
  },
44680
44498
  "privacy": "public",
44681
- "description": "Gets/sets if animations are used in the expand/collapse transition."
44499
+ "description": "The type of animation to use when opening/closing the panel."
44682
44500
  },
44683
44501
  {
44684
44502
  "kind": "method",
@@ -44688,27 +44506,40 @@
44688
44506
  "type": {
44689
44507
  "text": "void"
44690
44508
  }
44509
+ }
44510
+ }
44511
+ ],
44512
+ "events": [
44513
+ {
44514
+ "description": "Event fired when the panel is toggled open or closed.",
44515
+ "name": "forge-expansion-panel-toggle"
44516
+ },
44517
+ {
44518
+ "description": "Event fired when the panel has finished animating when toggling.",
44519
+ "name": "forge-expansion-panel-animation-complete"
44520
+ }
44521
+ ],
44522
+ "attributes": [
44523
+ {
44524
+ "type": {
44525
+ "text": "boolean"
44691
44526
  },
44692
- "description": "Toggles the collapsed state."
44527
+ "description": "Whether the panel is open or closed.",
44528
+ "name": "open"
44693
44529
  },
44694
44530
  {
44695
- "kind": "method",
44696
- "name": "setOpenImmediate",
44697
- "privacy": "public",
44698
- "return": {
44699
- "type": {
44700
- "text": "void"
44701
- }
44531
+ "type": {
44532
+ "text": "ExpansionPanelOrientation"
44702
44533
  },
44703
- "parameters": [
44704
- {
44705
- "name": "open",
44706
- "type": {
44707
- "text": "boolean"
44708
- }
44709
- }
44710
- ],
44711
- "description": "Forces the expansion panel to expand/collapse without transition animations."
44534
+ "description": "The orientation of the panel.",
44535
+ "name": "orientation"
44536
+ },
44537
+ {
44538
+ "type": {
44539
+ "text": "ExpansionPanelAnimationType"
44540
+ },
44541
+ "description": "The type of animation to use when opening/closing the panel.",
44542
+ "name": "animation-type"
44712
44543
  }
44713
44544
  ],
44714
44545
  "superclass": {
@@ -44716,6 +44547,7 @@
44716
44547
  "module": "/core/base/base-component"
44717
44548
  },
44718
44549
  "tagName": "forge-expansion-panel",
44550
+ "summary": "Expansion panels provide progressive disclosure of content.",
44719
44551
  "customElement": true
44720
44552
  }
44721
44553
  ],