@tylertech/forge 3.0.0-next.17 → 3.0.0-next.18

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 (46) hide show
  1. package/custom-elements.json +149 -126
  2. package/dist/esm/banner/index.js +1 -1
  3. package/dist/esm/calendar/index.js +1 -1
  4. package/dist/esm/chunks/{chunk.6JR2HMWB.js → chunk.3QUIEBYX.js} +2 -2
  5. package/dist/esm/chunks/chunk.4MEXAG3E.js +7 -0
  6. package/dist/esm/chunks/chunk.4MEXAG3E.js.map +7 -0
  7. package/dist/esm/chunks/{chunk.O47OSK6Z.js → chunk.A6N7ZGN5.js} +2 -2
  8. package/dist/esm/chunks/{chunk.O47OSK6Z.js.map → chunk.A6N7ZGN5.js.map} +1 -1
  9. package/dist/esm/chunks/{chunk.XPIAOMSC.js → chunk.BRLXEKLE.js} +2 -2
  10. package/dist/esm/chunks/{chunk.MMMG4MZ3.js → chunk.IQ3JWZ2P.js} +2 -2
  11. package/dist/esm/chunks/{chunk.NHYJMP25.js → chunk.KOGQOU27.js} +2 -2
  12. package/dist/esm/chunks/{chunk.YVCGGQQG.js → chunk.NES5KNAU.js} +2 -2
  13. package/dist/esm/date-picker/index.js +1 -1
  14. package/dist/esm/date-range-picker/index.js +1 -1
  15. package/dist/esm/index.js +1 -1
  16. package/dist/esm/split-view/index.js +1 -1
  17. package/dist/esm/split-view/split-view/index.js +1 -1
  18. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  19. package/dist/forge-dark.css +1 -1
  20. package/esm/banner/banner-adapter.d.ts +14 -18
  21. package/esm/banner/banner-adapter.js +17 -25
  22. package/esm/banner/banner-constants.d.ts +17 -16
  23. package/esm/banner/banner-constants.js +16 -21
  24. package/esm/banner/banner-foundation.d.ts +15 -14
  25. package/esm/banner/banner-foundation.js +49 -44
  26. package/esm/banner/banner.d.ts +33 -7
  27. package/esm/banner/banner.js +49 -18
  28. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  29. package/package.json +1 -1
  30. package/styles/banner/_core.scss +53 -0
  31. package/styles/banner/_token-utils.scss +30 -0
  32. package/styles/banner/banner.scss +109 -9
  33. package/styles/banner/index.scss +6 -0
  34. package/styles/core/styles/tokens/banner/_tokens.scss +25 -0
  35. package/styles/theme/_theme-dark.scss +0 -6
  36. package/dist/esm/chunks/chunk.DFRD7A2Y.js +0 -7
  37. package/dist/esm/chunks/chunk.DFRD7A2Y.js.map +0 -7
  38. package/styles/badge/_mixins.scss +0 -125
  39. package/styles/badge/_variables.scss +0 -87
  40. package/styles/banner/_mixins.scss +0 -219
  41. package/styles/banner/_variables.scss +0 -88
  42. /package/dist/esm/chunks/{chunk.6JR2HMWB.js.map → chunk.3QUIEBYX.js.map} +0 -0
  43. /package/dist/esm/chunks/{chunk.XPIAOMSC.js.map → chunk.BRLXEKLE.js.map} +0 -0
  44. /package/dist/esm/chunks/{chunk.MMMG4MZ3.js.map → chunk.IQ3JWZ2P.js.map} +0 -0
  45. /package/dist/esm/chunks/{chunk.NHYJMP25.js.map → chunk.KOGQOU27.js.map} +0 -0
  46. /package/dist/esm/chunks/{chunk.YVCGGQQG.js.map → chunk.NES5KNAU.js.map} +0 -0
@@ -7540,41 +7540,35 @@
7540
7540
  },
7541
7541
  {
7542
7542
  "kind": "field",
7543
- "name": "_forgeIconButtonDismiss",
7543
+ "name": "_dismissButtonElement",
7544
7544
  "type": {
7545
- "text": "IIconButtonComponent"
7545
+ "text": "HTMLButtonElement"
7546
7546
  },
7547
- "privacy": "private"
7547
+ "privacy": "private",
7548
+ "default": "getShadowElement(component, BANNER_CONSTANTS.selectors.DISMISS_BUTTON)"
7548
7549
  },
7549
7550
  {
7550
7551
  "kind": "field",
7551
- "name": "_buttonDismiss",
7552
+ "name": "_iconSlotElement",
7552
7553
  "type": {
7553
- "text": "HTMLButtonElement"
7554
+ "text": "HTMLSlotElement"
7554
7555
  },
7555
- "privacy": "private"
7556
+ "privacy": "private",
7557
+ "default": "getShadowElement(component, BANNER_CONSTANTS.selectors.ICON_SLOT)"
7556
7558
  },
7557
7559
  {
7558
7560
  "kind": "method",
7559
- "name": "addRootClass",
7561
+ "name": "initialize",
7560
7562
  "privacy": "public",
7561
7563
  "return": {
7562
7564
  "type": {
7563
7565
  "text": "void"
7564
7566
  }
7565
- },
7566
- "parameters": [
7567
- {
7568
- "name": "name",
7569
- "type": {
7570
- "text": "string"
7571
- }
7572
- }
7573
- ]
7567
+ }
7574
7568
  },
7575
7569
  {
7576
7570
  "kind": "method",
7577
- "name": "removeRootClass",
7571
+ "name": "setDismissButtonVisibility",
7578
7572
  "privacy": "public",
7579
7573
  "return": {
7580
7574
  "type": {
@@ -7583,16 +7577,16 @@
7583
7577
  },
7584
7578
  "parameters": [
7585
7579
  {
7586
- "name": "name",
7580
+ "name": "visible",
7587
7581
  "type": {
7588
- "text": "string"
7582
+ "text": "boolean"
7589
7583
  }
7590
7584
  }
7591
7585
  ]
7592
7586
  },
7593
7587
  {
7594
7588
  "kind": "method",
7595
- "name": "addDismissButtonAttribute",
7589
+ "name": "addDismissListener",
7596
7590
  "privacy": "public",
7597
7591
  "return": {
7598
7592
  "type": {
@@ -7601,20 +7595,16 @@
7601
7595
  },
7602
7596
  "parameters": [
7603
7597
  {
7604
- "name": "name",
7598
+ "name": "callback",
7605
7599
  "type": {
7606
- "text": "string"
7600
+ "text": "EventListener"
7607
7601
  }
7608
- },
7609
- {
7610
- "name": "value",
7611
- "default": "''"
7612
7602
  }
7613
7603
  ]
7614
7604
  },
7615
7605
  {
7616
7606
  "kind": "method",
7617
- "name": "removeDismissButtonAttribute",
7607
+ "name": "removeDismissListener",
7618
7608
  "privacy": "public",
7619
7609
  "return": {
7620
7610
  "type": {
@@ -7623,16 +7613,16 @@
7623
7613
  },
7624
7614
  "parameters": [
7625
7615
  {
7626
- "name": "name",
7616
+ "name": "callback",
7627
7617
  "type": {
7628
- "text": "string"
7618
+ "text": "EventListener"
7629
7619
  }
7630
7620
  }
7631
7621
  ]
7632
7622
  },
7633
7623
  {
7634
7624
  "kind": "method",
7635
- "name": "addDismissEventListener",
7625
+ "name": "setDismissed",
7636
7626
  "privacy": "public",
7637
7627
  "return": {
7638
7628
  "type": {
@@ -7641,60 +7631,22 @@
7641
7631
  },
7642
7632
  "parameters": [
7643
7633
  {
7644
- "name": "event",
7645
- "type": {
7646
- "text": "string"
7647
- }
7648
- },
7649
- {
7650
- "name": "callback",
7634
+ "name": "value",
7651
7635
  "type": {
7652
- "text": "(event: Event) => void"
7636
+ "text": "boolean"
7653
7637
  }
7654
7638
  }
7655
7639
  ]
7656
7640
  },
7657
7641
  {
7658
7642
  "kind": "method",
7659
- "name": "removeDismissEventListener",
7660
- "privacy": "public",
7643
+ "name": "_onIconSlotChange",
7644
+ "privacy": "private",
7661
7645
  "return": {
7662
7646
  "type": {
7663
7647
  "text": "void"
7664
7648
  }
7665
- },
7666
- "parameters": [
7667
- {
7668
- "name": "event",
7669
- "type": {
7670
- "text": "string"
7671
- }
7672
- },
7673
- {
7674
- "name": "callback",
7675
- "type": {
7676
- "text": "(event: Event) => void"
7677
- }
7678
- }
7679
- ]
7680
- },
7681
- {
7682
- "kind": "field",
7683
- "name": "forgeIconButtonDismiss",
7684
- "type": {
7685
- "text": "IIconButtonComponent"
7686
- },
7687
- "privacy": "public",
7688
- "readonly": true
7689
- },
7690
- {
7691
- "kind": "field",
7692
- "name": "buttonDismiss",
7693
- "type": {
7694
- "text": "HTMLButtonElement"
7695
- },
7696
- "privacy": "public",
7697
- "readonly": true
7649
+ }
7698
7650
  },
7699
7651
  {
7700
7652
  "kind": "field",
@@ -8320,7 +8272,7 @@
8320
8272
  "type": {
8321
8273
  "text": "object"
8322
8274
  },
8323
- "default": "{\n elementName,\n classes,\n selectors,\n attributes,\n slots,\n events\n}"
8275
+ "default": "{\n elementName,\n observedAttributes,\n attributes,\n classes,\n selectors,\n defaults,\n events\n}"
8324
8276
  }
8325
8277
  ],
8326
8278
  "exports": [
@@ -8354,34 +8306,32 @@
8354
8306
  },
8355
8307
  {
8356
8308
  "kind": "field",
8357
- "name": "_canDismiss",
8309
+ "name": "_persistent",
8358
8310
  "type": {
8359
8311
  "text": "boolean"
8360
8312
  },
8361
8313
  "privacy": "private",
8362
- "default": "true"
8314
+ "default": "false"
8363
8315
  },
8364
8316
  {
8365
8317
  "kind": "field",
8366
- "name": "_dismissBanner",
8318
+ "name": "_theme",
8367
8319
  "type": {
8368
- "text": "() => void"
8320
+ "text": "BannerTheme"
8369
8321
  },
8370
8322
  "privacy": "private"
8371
8323
  },
8372
8324
  {
8373
- "kind": "method",
8374
- "name": "connect",
8375
- "privacy": "public",
8376
- "return": {
8377
- "type": {
8378
- "text": "void"
8379
- }
8380
- }
8325
+ "kind": "field",
8326
+ "name": "_dismissListener",
8327
+ "type": {
8328
+ "text": "EventListener"
8329
+ },
8330
+ "privacy": "private"
8381
8331
  },
8382
8332
  {
8383
8333
  "kind": "method",
8384
- "name": "disconnect",
8334
+ "name": "initialize",
8385
8335
  "privacy": "public",
8386
8336
  "return": {
8387
8337
  "type": {
@@ -8391,47 +8341,17 @@
8391
8341
  },
8392
8342
  {
8393
8343
  "kind": "method",
8394
- "name": "_dismiss",
8395
- "privacy": "private",
8396
- "return": {
8397
- "type": {
8398
- "text": "void"
8399
- }
8400
- }
8401
- },
8402
- {
8403
- "kind": "method",
8404
- "name": "_syncDismissedState",
8405
- "privacy": "private",
8406
- "return": {
8407
- "type": {
8408
- "text": "void"
8409
- }
8410
- }
8411
- },
8412
- {
8413
- "kind": "method",
8414
- "name": "_setUndissmissedClass",
8415
- "privacy": "private",
8416
- "return": {
8417
- "type": {
8418
- "text": "void"
8419
- }
8420
- }
8421
- },
8422
- {
8423
- "kind": "method",
8424
- "name": "_setDismissedClass",
8344
+ "name": "_onDismiss",
8425
8345
  "privacy": "private",
8426
8346
  "return": {
8427
8347
  "type": {
8428
- "text": "void"
8348
+ "text": "Promise<void>"
8429
8349
  }
8430
8350
  }
8431
8351
  },
8432
8352
  {
8433
8353
  "kind": "method",
8434
- "name": "_syncCanDismissState",
8354
+ "name": "_addDismissListener",
8435
8355
  "privacy": "private",
8436
8356
  "return": {
8437
8357
  "type": {
@@ -8441,7 +8361,7 @@
8441
8361
  },
8442
8362
  {
8443
8363
  "kind": "method",
8444
- "name": "_addDismissEventListener",
8364
+ "name": "_removeDismissEventListener",
8445
8365
  "privacy": "private",
8446
8366
  "return": {
8447
8367
  "type": {
@@ -8451,7 +8371,7 @@
8451
8371
  },
8452
8372
  {
8453
8373
  "kind": "method",
8454
- "name": "_removeDismissEventListener",
8374
+ "name": "_applyPersistent",
8455
8375
  "privacy": "private",
8456
8376
  "return": {
8457
8377
  "type": {
@@ -8469,11 +8389,19 @@
8469
8389
  },
8470
8390
  {
8471
8391
  "kind": "field",
8472
- "name": "canDismiss",
8392
+ "name": "persistent",
8473
8393
  "type": {
8474
8394
  "text": "boolean"
8475
8395
  },
8476
8396
  "privacy": "public"
8397
+ },
8398
+ {
8399
+ "kind": "field",
8400
+ "name": "theme",
8401
+ "type": {
8402
+ "text": "BannerTheme"
8403
+ },
8404
+ "privacy": "public"
8477
8405
  }
8478
8406
  ]
8479
8407
  }
@@ -8495,8 +8423,52 @@
8495
8423
  "declarations": [
8496
8424
  {
8497
8425
  "kind": "class",
8498
- "description": "The custom element class behind the `<forge-banner>` element.",
8426
+ "description": "",
8499
8427
  "name": "BannerComponent",
8428
+ "cssProperties": [
8429
+ {
8430
+ "description": "The background color of the banner.",
8431
+ "name": "--forge-banner-background"
8432
+ },
8433
+ {
8434
+ "description": "The text color of the banner.",
8435
+ "name": "--forge-banner-color"
8436
+ },
8437
+ {
8438
+ "description": "The gap between the contents.",
8439
+ "name": "--forge-banner-gap"
8440
+ },
8441
+ {
8442
+ "description": "The inline padding.",
8443
+ "name": "--forge-banner-padding-inline"
8444
+ },
8445
+ {
8446
+ "description": "The block padding.",
8447
+ "name": "--forge-banner-padding-block"
8448
+ },
8449
+ {
8450
+ "description": "The transition duration.",
8451
+ "name": "--forge-banner-transition-duration"
8452
+ },
8453
+ {
8454
+ "description": "The transition easing function.",
8455
+ "name": "--forge-banner-transition-easing"
8456
+ }
8457
+ ],
8458
+ "slots": [
8459
+ {
8460
+ "description": "The content of the banner.",
8461
+ "name": ""
8462
+ },
8463
+ {
8464
+ "description": "The icon to display.",
8465
+ "name": "icon"
8466
+ },
8467
+ {
8468
+ "description": "The optional button to display.",
8469
+ "name": "button"
8470
+ }
8471
+ ],
8500
8472
  "members": [
8501
8473
  {
8502
8474
  "kind": "field",
@@ -8514,7 +8486,25 @@
8514
8486
  "text": "boolean"
8515
8487
  },
8516
8488
  "privacy": "public",
8517
- "description": "Controls whether the component is dismissed (hidden) or not."
8489
+ "description": "Controls the visibility of the banner."
8490
+ },
8491
+ {
8492
+ "kind": "field",
8493
+ "name": "persistent",
8494
+ "type": {
8495
+ "text": "boolean"
8496
+ },
8497
+ "privacy": "public",
8498
+ "description": "Controls the visibility of the built-in dismiss button."
8499
+ },
8500
+ {
8501
+ "kind": "field",
8502
+ "name": "theme",
8503
+ "type": {
8504
+ "text": "BannerTheme"
8505
+ },
8506
+ "privacy": "public",
8507
+ "description": "The theme of the banner."
8518
8508
  },
8519
8509
  {
8520
8510
  "kind": "field",
@@ -8523,7 +8513,39 @@
8523
8513
  "text": "boolean"
8524
8514
  },
8525
8515
  "privacy": "public",
8526
- "description": "Controls the visibility of the dismiss button."
8516
+ "deprecated": "Use `persistent` instead."
8517
+ }
8518
+ ],
8519
+ "events": [
8520
+ {
8521
+ "type": {
8522
+ "text": "CustomEvent"
8523
+ },
8524
+ "description": "Dispatched when the banner is dismissed.",
8525
+ "name": "forge-banner-dismissed"
8526
+ }
8527
+ ],
8528
+ "attributes": [
8529
+ {
8530
+ "type": {
8531
+ "text": "boolean"
8532
+ },
8533
+ "description": "Controls the visibility of the banner.",
8534
+ "name": "dismissed"
8535
+ },
8536
+ {
8537
+ "type": {
8538
+ "text": "boolean"
8539
+ },
8540
+ "description": "Controls the visibility of the built-in dismiss button.",
8541
+ "name": "persistent"
8542
+ },
8543
+ {
8544
+ "type": {
8545
+ "text": "BannerTheme"
8546
+ },
8547
+ "description": "The theme of the banner.",
8548
+ "name": "theme"
8527
8549
  }
8528
8550
  ],
8529
8551
  "superclass": {
@@ -8531,6 +8553,7 @@
8531
8553
  "module": "/core/base/base-component"
8532
8554
  },
8533
8555
  "tagName": "forge-banner",
8556
+ "summary": "Banners are used to inform users of important information, such as errors, warnings, or success messages.",
8534
8557
  "customElement": true
8535
8558
  }
8536
8559
  ],
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a,b,c,d,e}from"../chunks/chunk.DFRD7A2Y.js";import"../chunks/chunk.MTZOQQXR.js";import"../chunks/chunk.D7L2IMHJ.js";import"../chunks/chunk.DOAQODLZ.js";import"../chunks/chunk.53HPDCFR.js";import"../chunks/chunk.NPCUVYWP.js";import"../chunks/chunk.ZSHN7Z45.js";import"../chunks/chunk.INQZNXG6.js";import"../chunks/chunk.KZMXTOLO.js";import"../chunks/chunk.VOL4DT5F.js";import"../chunks/chunk.OJHNLDNM.js";import"../chunks/chunk.OR5GB6X3.js";import"../chunks/chunk.EWT2PBEP.js";import"../chunks/chunk.L7BSLZCB.js";import"../chunks/chunk.OD54UG2G.js";import"../chunks/chunk.FTADCSFT.js";import"../chunks/chunk.KD4DVSJR.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.QG5EYBS3.js";import"../chunks/chunk.XIQFHO5R.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.BX4AQRHB.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.YTBNAGLS.js";import"../chunks/chunk.OUIWXKO2.js";import"../chunks/chunk.HPCXVNG6.js";import"../chunks/chunk.ZY3ETQ3D.js";import"../chunks/chunk.NVUMRW44.js";import"../chunks/chunk.UVXKHQQZ.js";import"../chunks/chunk.NHOGZDLN.js";import"../chunks/chunk.TPXXHX5J.js";import"../chunks/chunk.MGLWXAZO.js";import"../chunks/chunk.HZUQXCOQ.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.M3QDAYD2.js";export{a as BANNER_CONSTANTS,b as BannerAdapter,d as BannerComponent,c as BannerFoundation,e as defineBannerComponent};
6
+ import{a,b,c,d,e}from"../chunks/chunk.4MEXAG3E.js";import"../chunks/chunk.MTZOQQXR.js";import"../chunks/chunk.D7L2IMHJ.js";import"../chunks/chunk.DOAQODLZ.js";import"../chunks/chunk.53HPDCFR.js";import"../chunks/chunk.NPCUVYWP.js";import"../chunks/chunk.ZSHN7Z45.js";import"../chunks/chunk.INQZNXG6.js";import"../chunks/chunk.KZMXTOLO.js";import"../chunks/chunk.VOL4DT5F.js";import"../chunks/chunk.OJHNLDNM.js";import"../chunks/chunk.OR5GB6X3.js";import"../chunks/chunk.EWT2PBEP.js";import"../chunks/chunk.L7BSLZCB.js";import"../chunks/chunk.OD54UG2G.js";import"../chunks/chunk.FTADCSFT.js";import"../chunks/chunk.KD4DVSJR.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.QG5EYBS3.js";import"../chunks/chunk.XIQFHO5R.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.BX4AQRHB.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.YTBNAGLS.js";import"../chunks/chunk.OUIWXKO2.js";import"../chunks/chunk.HPCXVNG6.js";import"../chunks/chunk.ZY3ETQ3D.js";import"../chunks/chunk.NVUMRW44.js";import"../chunks/chunk.UVXKHQQZ.js";import"../chunks/chunk.NHOGZDLN.js";import"../chunks/chunk.TPXXHX5J.js";import"../chunks/chunk.MGLWXAZO.js";import"../chunks/chunk.HZUQXCOQ.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.M3QDAYD2.js";export{a as BANNER_CONSTANTS,b as BannerAdapter,d as BannerComponent,c as BannerFoundation,e as defineBannerComponent};
7
7
  //# sourceMappingURL=index.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{A as oa,B as pa,C as qa,D as ra,E as sa,F as ta,G as wa,a as Q,b as R,c as S,d as T,e as U,f as V,g as W,h as X,i as Y,j as Z,k as _,l as $,m as aa,n as ba,o as ca,p as da,q as ea,r as fa,s as ga,t as ha,u as ia,v as ja,w as ka,x as la,y as ma,z as na}from"../chunks/chunk.NHYJMP25.js";import{A as M,B as N,C as O,D as P,E as ua,F as va,a as l,b as m,c as n,d as o,e as p,f as q,g as r,h as s,i as t,j as u,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H,w as I,x as J,y as K,z as L}from"../chunks/chunk.IC4DLKE3.js";import{a as v}from"../chunks/chunk.44IUAOBP.js";import{a,b,c,d,e,f,g,h,i,j,k}from"../chunks/chunk.UYAP5GFT.js";import"../chunks/chunk.MTZOQQXR.js";import"../chunks/chunk.D7L2IMHJ.js";import"../chunks/chunk.DOAQODLZ.js";import"../chunks/chunk.53HPDCFR.js";import"../chunks/chunk.VX7H6YHF.js";import"../chunks/chunk.6YPD6CQM.js";import"../chunks/chunk.253H47GA.js";import"../chunks/chunk.LEVFMI2Q.js";import"../chunks/chunk.NPCUVYWP.js";import"../chunks/chunk.ZSHN7Z45.js";import"../chunks/chunk.INQZNXG6.js";import"../chunks/chunk.KZMXTOLO.js";import"../chunks/chunk.VOL4DT5F.js";import"../chunks/chunk.OJHNLDNM.js";import"../chunks/chunk.OR5GB6X3.js";import"../chunks/chunk.EWT2PBEP.js";import"../chunks/chunk.L7BSLZCB.js";import"../chunks/chunk.OD54UG2G.js";import"../chunks/chunk.FTADCSFT.js";import"../chunks/chunk.KD4DVSJR.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.QG5EYBS3.js";import"../chunks/chunk.XIQFHO5R.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.BX4AQRHB.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.YTBNAGLS.js";import"../chunks/chunk.OUIWXKO2.js";import"../chunks/chunk.HPCXVNG6.js";import"../chunks/chunk.ZY3ETQ3D.js";import"../chunks/chunk.NVUMRW44.js";import"../chunks/chunk.UVXKHQQZ.js";import"../chunks/chunk.NHOGZDLN.js";import"../chunks/chunk.TPXXHX5J.js";import"../chunks/chunk.MGLWXAZO.js";import"../chunks/chunk.HZUQXCOQ.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.M3QDAYD2.js";export{l as CALENDAR_CONSTANTS,ua as CALENDAR_DROPDOWN_CONSTANTS,a as CALENDAR_MENU_CONSTANTS,qa as CalendarAdapter,sa as CalendarComponent,ta as CalendarComponentDelegate,va as CalendarDropdown,ra as CalendarFoundation,h as CalendarMenuAdapter,j as CalendarMenuComponent,i as CalendarMenuFoundation,n as CalendarMonthFocus,v as DateRange,m as DayOfWeek,oa as coerceDateFromValue,wa as defineCalendarComponent,k as defineCalendarMenuComponent,N as eventIncludesDate,O as eventIncludesElement,J as getAccessibleHeader,ia as getAllYearOptions,L as getClearButton,B as getDateElement,x as getDateId,$ as getDateRangeFromDates,A as getDateRow,C as getDateSpacerElement,aa as getDatesFromDateRange,ca as getDatesInRange,z as getDayElement,w as getDayId,da as getEventDescriptions,E as getEventElement,D as getEventWrapperElement,y as getEventWrapperId,ma as getEventsOnDate,S as getFirstDateOfWeek,U as getFirstDayOfMonth,s as getFirstDayOfWeekForLocale,K as getFooter,b as getGrid,c as getGridItems,G as getHeader,la as getIndexOfDate,T as getLastDateOfWeek,d as getList,e as getListItems,p as getLocalizedDayOfMonth,o as getLocalizedDayOfWeek,q as getLocalizedMonth,r as getLocalizedYear,ba as getMinAndMaxDates,H as getMonthButtonContent,Q as getMonthDates,ga as getMonthOptions,na as getMultipleFromRange,f as getScrollSpy,V as getSortedDaysOfWeek,M as getTodayButton,F as getTooltip,R as getWeekDates,t as getWeekendDaysForLocale,I as getYearButtonContent,ha as getYearOptions,ka as isDisabled,X as isInMonth,Y as isInRange,u as isRtlLocale,ja as isSelected,W as isToday,ea as parseDateOffset,fa as parseYearRange,g as removeAllExceptLastChild,P as setTabindexOnElement,pa as shouldHandleEvent,Z as sortDates,_ as splitIntoWeeks};
6
+ import{A as oa,B as pa,C as qa,D as ra,E as sa,F as ta,G as wa,a as Q,b as R,c as S,d as T,e as U,f as V,g as W,h as X,i as Y,j as Z,k as _,l as $,m as aa,n as ba,o as ca,p as da,q as ea,r as fa,s as ga,t as ha,u as ia,v as ja,w as ka,x as la,y as ma,z as na}from"../chunks/chunk.KOGQOU27.js";import{a as v}from"../chunks/chunk.44IUAOBP.js";import{A as M,B as N,C as O,D as P,E as ua,F as va,a as l,b as m,c as n,d as o,e as p,f as q,g as r,h as s,i as t,j as u,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H,w as I,x as J,y as K,z as L}from"../chunks/chunk.IC4DLKE3.js";import{a,b,c,d,e,f,g,h,i,j,k}from"../chunks/chunk.UYAP5GFT.js";import"../chunks/chunk.MTZOQQXR.js";import"../chunks/chunk.D7L2IMHJ.js";import"../chunks/chunk.DOAQODLZ.js";import"../chunks/chunk.53HPDCFR.js";import"../chunks/chunk.VX7H6YHF.js";import"../chunks/chunk.6YPD6CQM.js";import"../chunks/chunk.253H47GA.js";import"../chunks/chunk.LEVFMI2Q.js";import"../chunks/chunk.NPCUVYWP.js";import"../chunks/chunk.ZSHN7Z45.js";import"../chunks/chunk.INQZNXG6.js";import"../chunks/chunk.KZMXTOLO.js";import"../chunks/chunk.VOL4DT5F.js";import"../chunks/chunk.OJHNLDNM.js";import"../chunks/chunk.OR5GB6X3.js";import"../chunks/chunk.EWT2PBEP.js";import"../chunks/chunk.L7BSLZCB.js";import"../chunks/chunk.OD54UG2G.js";import"../chunks/chunk.FTADCSFT.js";import"../chunks/chunk.KD4DVSJR.js";import"../chunks/chunk.6KTLOA7V.js";import"../chunks/chunk.QG5EYBS3.js";import"../chunks/chunk.XIQFHO5R.js";import"../chunks/chunk.SKLCDWYQ.js";import"../chunks/chunk.BX4AQRHB.js";import"../chunks/chunk.U6FJJGO3.js";import"../chunks/chunk.YTBNAGLS.js";import"../chunks/chunk.OUIWXKO2.js";import"../chunks/chunk.HPCXVNG6.js";import"../chunks/chunk.ZY3ETQ3D.js";import"../chunks/chunk.NVUMRW44.js";import"../chunks/chunk.UVXKHQQZ.js";import"../chunks/chunk.NHOGZDLN.js";import"../chunks/chunk.TPXXHX5J.js";import"../chunks/chunk.MGLWXAZO.js";import"../chunks/chunk.HZUQXCOQ.js";import"../chunks/chunk.J2M2MXP2.js";import"../chunks/chunk.M3QDAYD2.js";export{l as CALENDAR_CONSTANTS,ua as CALENDAR_DROPDOWN_CONSTANTS,a as CALENDAR_MENU_CONSTANTS,qa as CalendarAdapter,sa as CalendarComponent,ta as CalendarComponentDelegate,va as CalendarDropdown,ra as CalendarFoundation,h as CalendarMenuAdapter,j as CalendarMenuComponent,i as CalendarMenuFoundation,n as CalendarMonthFocus,v as DateRange,m as DayOfWeek,oa as coerceDateFromValue,wa as defineCalendarComponent,k as defineCalendarMenuComponent,N as eventIncludesDate,O as eventIncludesElement,J as getAccessibleHeader,ia as getAllYearOptions,L as getClearButton,B as getDateElement,x as getDateId,$ as getDateRangeFromDates,A as getDateRow,C as getDateSpacerElement,aa as getDatesFromDateRange,ca as getDatesInRange,z as getDayElement,w as getDayId,da as getEventDescriptions,E as getEventElement,D as getEventWrapperElement,y as getEventWrapperId,ma as getEventsOnDate,S as getFirstDateOfWeek,U as getFirstDayOfMonth,s as getFirstDayOfWeekForLocale,K as getFooter,b as getGrid,c as getGridItems,G as getHeader,la as getIndexOfDate,T as getLastDateOfWeek,d as getList,e as getListItems,p as getLocalizedDayOfMonth,o as getLocalizedDayOfWeek,q as getLocalizedMonth,r as getLocalizedYear,ba as getMinAndMaxDates,H as getMonthButtonContent,Q as getMonthDates,ga as getMonthOptions,na as getMultipleFromRange,f as getScrollSpy,V as getSortedDaysOfWeek,M as getTodayButton,F as getTooltip,R as getWeekDates,t as getWeekendDaysForLocale,I as getYearButtonContent,ha as getYearOptions,ka as isDisabled,X as isInMonth,Y as isInRange,u as isRtlLocale,ja as isSelected,W as isToday,ea as parseDateOffset,fa as parseYearRange,g as removeAllExceptLastChild,P as setTabindexOnElement,pa as shouldHandleEvent,Z as sortDates,_ as splitIntoWeeks};
7
7
  //# sourceMappingURL=index.js.map
@@ -3,5 +3,5 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- import{a as z,b as B,c as H,d as K,e as U}from"./chunk.ZZRAZZ3N.js";import{E as S}from"./chunk.NHYJMP25.js";import{F as O}from"./chunk.IC4DLKE3.js";import{a}from"./chunk.44IUAOBP.js";import{e as N}from"./chunk.253H47GA.js";import{a as _}from"./chunk.LEN33O6V.js";import{e as v}from"./chunk.UV3WIHCM.js";import{d as w}from"./chunk.NPCUVYWP.js";import{l as A}from"./chunk.EWT2PBEP.js";import{d as R,l as x}from"./chunk.L7BSLZCB.js";import{e as p}from"./chunk.QG5EYBS3.js";import{b as T}from"./chunk.XIQFHO5R.js";import{a as L}from"./chunk.YTBNAGLS.js";import{a as E}from"./chunk.NVUMRW44.js";import{a as F,b as M}from"./chunk.UVXKHQQZ.js";import{a as y,e as P,h as D}from"./chunk.TPXXHX5J.js";import{a as V}from"./chunk.MGLWXAZO.js";import{t as k}from"./chunk.HZUQXCOQ.js";import{f as g,g as b}from"./chunk.J2M2MXP2.js";import{d as h}from"./chunk.M3QDAYD2.js";var d=`${M}date-range-picker`,m=class l{constructor(r){r&&(this.from=r.from,this.to=r.to)}copy(){return new l(this)}},q={FROM:"from",TO:"to",END_VALUE:"end-value"},G={INPUT:"input"},W={CHANGE:`${d}-change`,OPEN:`${d}-open`,CLOSE:`${d}-close`,INPUT:`${d}-input`},n={elementName:d,selectors:G,events:W,observedAttributes:q};var c=class extends K{constructor(t){super(t);this._dropdownIdentifier=`forge-date-range-picker-${this._identifier}`}_initializeInput(){if(this._fromInputElement=this._component.querySelectorAll(n.selectors.INPUT)[0],this._toInputElement=this._component.querySelectorAll(n.selectors.INPUT)[1],!this._fromInputElement||!this._fromInputElement)throw new Error(`The ${n.elementName} requires two inputs`)}_initializeCalendarDropdown(){let t=this._getDefaultTargetElement();this._calendarDropdown=new O(t,this._dropdownIdentifier)}initializeMask(t){var e;(e=this._fromInputMask)==null||e.destroy(),this._fromInputMask=new T(this._fromInputElement,t)}destroyMask(){var t;(t=this._fromInputMask)==null||t.destroy(),this._fromInputMask=void 0}initializeToMask(t){var e;(e=this._toInputMask)==null||e.destroy(),this._toInputMask=new T(this._toInputElement,t)}destroyToMask(){var t;(t=this._toInputMask)==null||t.destroy(),this._toInputMask=void 0}destroy(){super.destroy(),this._destroyToValueChangeListener()}_destroyToValueChangeListener(){typeof this._toValueChangeListener=="function"&&this._toValueChangeListener()}initializeAccessibility(){this._applyToInputs(t=>t.setAttribute("autocomplete","off")),this._applyToInputs(t=>t.setAttribute("autocorrect","off")),this._applyToInputs(t=>t.setAttribute("autocapitalize","off")),this._applyToInputs(t=>t.setAttribute("spellcheck","false")),this._applyToInputs(t=>t.setAttribute("role","combobox")),this._applyToInputs(t=>t.setAttribute("aria-live","assertive")),this._applyToInputs(t=>t.setAttribute("aria-atomic","true")),this._applyToInputs(t=>t.setAttribute("aria-haspopup","true")),this._applyToInputs(t=>t.setAttribute("aria-expanded","false")),this._applyToInputs(t=>t.setAttribute("aria-owns",this._dropdownIdentifier))}addInputListener(t,e,i){var o;(o=this._fromInputElement)==null||o.addEventListener(t,e,{capture:i})}addToInputListener(t,e,i){var o;(o=this._toInputElement)==null||o.addEventListener(t,e,{capture:i})}removeInputListener(t,e){var i;(i=this._fromInputElement)==null||i.removeEventListener(t,e)}removeToInputListener(t,e){var i;(i=this._toInputElement)==null||i.removeEventListener(t,e)}setInputValueChangedListener(t,e){this._valueChangeListeners.length&&this.destroyValueChangeListener();let i=v(t,this._fromInputElement,"value",e);this._valueChangeListeners.push(i)}setToInputValueChangedListener(t,e){this._destroyToValueChangeListener(),this._toValueChangeListener=v(t,this._toInputElement,"value",e)}hasInputElement(){return!!this._fromInputElement&&!!this._toInputElement}attachCalendar(t,e){super.attachCalendar(t,e),this._fromInputElement.setAttribute("aria-expanded","true")}detachCalendar(){super.detachCalendar(),this._fromInputElement&&(this._fromInputElement.setAttribute("aria-expanded","false"),this._fromInputElement.removeAttribute("aria-activedescendant"))}setActiveDescendant(t){this._fromInputElement.setAttribute("aria-activedescendant",t)}setInputValue(t,e){this._fromInputElement.value!==t&&(this._fromInputElement.value=t,this._fromInputMask&&this._fromInputMask.updateMask(),e&&(this._fromInputElement.dispatchEvent(new Event("change")),this._fromInputElement.dispatchEvent(new Event("input"))))}setToInputValue(t,e){this._toInputElement.value!==t&&(this._toInputElement.value=t,this._toInputMask&&this._toInputMask.updateMask(),e&&(this._toInputElement.dispatchEvent(new Event("change")),this._toInputElement.dispatchEvent(new Event("input"))))}isInputDisabled(){return this._fromInputElement.disabled}isInputFocused(t){if(t&&this._toInputElement===t||this._fromInputElement===t)return!0;let e=k(this._component.ownerDocument);return this._toInputElement===e||this._fromInputElement===e}getInputValue(){return this._fromInputElement.value}getToInputValue(){return this._toInputElement.value}setDisabled(t){this._fromInputElement.disabled=t,this._toInputElement.disabled=t,this._toInputElement.setAttribute("aria-disabled",t.toString()),this._fromInputElement.setAttribute("aria-disabled",t.toString()),this._toggleElement&&(this._toggleElement.setAttribute("aria-disabled",t.toString()),this._toggleElement.hasOwnProperty("disabled")&&(this._toggleElement.disabled=t))}emitInputEvent(t,e){D(this._fromInputElement,t,e)}emitToInputEvent(t,e){D(this._toInputElement,t,e)}_createToggleElement(){return H("date_range")}tryFocusInput(){this._fromInputElement.focus()}tryBlurInput(){this._fromInputElement.blur()}selectInputText(){this._fromInputElement.select()}selectToInputText(){this._toInputElement.select()}_applyToInputs(t){[this._fromInputElement,this._toInputElement].forEach(t)}};var f=class extends U{constructor(t){super(t);this._mode="range";this._from=null;this._to=null;this._toInputListener=e=>this._onToInput(e),this._toInputValueChangedListener=e=>this._onToInputValueChanged(e),this._toInputKeydownListener=e=>this._onInputKeydown(e),this._toInputFocusListener=e=>this._onToInputFocus(),this._toInputBlurListener=e=>this._onToInputBlur(e)}initialize(){super.initialize(),this._setFormattedToInputValue(!0)}_initializeState(){this._applyToMask(),this._from||(this._from=this._coerceDateValue(this._adapter.getInputValue())),this._to||(this._to=this._coerceDateValue(this._adapter.getToInputValue()))}_initializeListeners(){super._initializeListeners(),this._adapter.addToInputListener("keydown",this._toInputKeydownListener),this._adapter.addToInputListener("focus",this._toInputFocusListener),this._adapter.addToInputListener("blur",this._toInputBlurListener)}_initializeValueChangedListeners(){super._initializeValueChangedListeners(),this._adapter.setToInputValueChangedListener(this,this._toInputValueChangedListener)}_setInputChangeListeners(){super._setInputChangeListeners(),this._adapter.addToInputListener("input",this._toInputListener)}_removeInputChangeListeners(){super._removeInputChangeListeners(),this._adapter.removeToInputListener("input",this._toInputListener)}_openCalendar(t){this._formatToInputValue(),super._openCalendar(t);let e=this._getCurrentValue();e!=null&&e.to?this._adapter.goToCalendarDate(new Date(e.to)):e!=null&&e.from&&this._adapter.goToCalendarDate(new Date(e.from))}_emitChangeEvent(t,e){let i=this._getTypedValue(t&&t.from||null),o=this._getTypedValue(t&&t.to||null),u=new m({from:i,to:o});return this._adapter.emitHostEvent(n.events.CHANGE,u,!0,!e)?(this._setValue(this._coerceDateValue(t&&t.from||null)),this._setToValue(this._coerceDateValue(t&&t.to||null)),!0):!1}_emitOpenEvent(){this._adapter.emitHostEvent(n.events.OPEN,void 0,!1)}_emitCloseEvent(){this._adapter.emitHostEvent(n.events.CLOSE,void 0,!1)}_onToday(){let t=new Date,e=this._open?new a({from:this._from||t,to:this._to||void 0}):new a({from:t});this._isDateRangeAcceptable(e)&&(this.value=e,this._onDateSelected({date:t,range:e,selected:!0,type:"date"}),this._adapter.setCalendarActiveDate(t))}_onClear(){this._onDateSelected({date:null,range:new a,selected:!1,type:"date"}),this._closeCalendar(!0)}_getCurrentValue(){return this._value}_applyToMask(){this._masked?this._initializeToMask():(this._adapter.destroyToMask(),this._formatToInputValue())}_formatToInputValue(){let t=this._adapter.getToInputValue();if(t){let e=this._parseDateString(t);if(b(e)&&this._isDateValueAcceptable(e)){let i=this._formatDate(e);i&&this._adapter.setToInputValue(i,this._notifyInputValueChanges)}else this._allowInvalidDate||this._adapter.setToInputValue("",this._notifyInputValueChanges)}}_setFormattedInputValue(t){let e=this._formatDate(this._from);!e&&!this._allowInvalidDate&&(e=""),this._adapter.setInputValue(e,t?!1:this._notifyInputValueChanges)}_setFormattedToInputValue(t){let e=this._formatDate(this._to);!e&&!this._allowInvalidDate&&(e=""),this._adapter.setToInputValue(e,t?!1:this._notifyInputValueChanges)}_isDateRangeAcceptable(t){if(!(t!=null&&t.to))return!0;let e=()=>this._isDateValueAcceptable(t.from),i=()=>this._isDateValueAcceptable(t.to),o=()=>t!=null&&t.from&&(t!=null&&t.to)?t.from.getTime()<=t.to.getTime():!0;return e()&&i()&&o()}_setValue(t){this._isDateValueAcceptable(t)&&(this._from=t||null,this._value?this._value.from=this._from:this._value={from:this._from,to:this._to})}_setToValue(t){this._isDateValueAcceptable(t)&&(this._to=t||null,this._value?this._value.to=this._to:this._value={from:this._from,to:this._to})}_onDateSelected(t){let e=t.range;if(t.rangeSelectionState==="to"&&this._closeCalendar(!0),!this._emitChangeEvent(e!=null?e:null))return;let i=this._formatDate(e&&e.from||null),o=this._formatDate(e&&e.to||null);this._adapter.setInputValue(i,this._notifyInputValueChanges),this._adapter.setToInputValue(o,this._notifyInputValueChanges),this._formatInputValue(),this._formatToInputValue(),this._from=e&&e.from||null,this._to=e&&e.to||null,V.isMobile||(o?this._adapter.selectToInputText():this._adapter.selectInputText())}_applyMin(){this._from&&!this._isDateValueAcceptable(this._from)&&(this._emitChangeEvent(new a({to:this._to||void 0}),!0),this._setFormattedInputValue()),this._to&&!this._isDateValueAcceptable(this._to)&&(this._emitChangeEvent(new a({from:this._from||void 0}),!0),this._setFormattedToInputValue()),super._applyMin()}_applyMax(){this._from&&!this._isDateValueAcceptable(this._from)&&(this._emitChangeEvent(new a({to:this._to||void 0}),!0),this._setFormattedInputValue()),this._to&&!this._isDateValueAcceptable(this._to)&&(this._emitChangeEvent(new a({from:this._from||void 0}),!0),this._setFormattedToInputValue()),super._applyMax()}_initializeToMask(){if(!this._masked)return;let t={showMaskFormat:this._showMaskFormat&&this._adapter.isInputFocused(),pattern:this._maskFormat,onChange:e=>this._handleToInput(e)};this._prepareMaskCallback&&(t.prepareCallback=(e,i,o,u)=>this._prepareMaskCallback.call(null,e,i,o,u)),this._adapter.initializeToMask(t)}_applyDisabledDates(){this._from&&!this._isDateValueAcceptable(this._from)&&(this._emitChangeEvent(new a({to:this._to||void 0}),!0),this._setFormattedInputValue()),this._to&&!this._isDateValueAcceptable(this._to)&&(this._emitChangeEvent(new a({from:this._from||void 0}),!0),this._setFormattedToInputValue())}_applyDisabledDaysOfWeek(){this._from&&!this._isDateValueAcceptable(this._from)&&(this._emitChangeEvent(null,!0),this._setFormattedInputValue()),this._to&&!this._isDateValueAcceptable(this._to)&&(this._emitChangeEvent(null,!0),this._setFormattedToInputValue())}_onToInput(t){this._handleInput(this._adapter.getInputValue())}_handleInput(t){let e=this._getSanitizedDateString(t),i=this._coerceDateValue(e);this._masked&&this._adapter.emitInputEvent(n.events.INPUT,e),!p(i,this._from)&&this._isDateValueAcceptable(i)&&this._emitChangeEvent(new a({from:i||void 0,to:this._to||void 0}))}_handleToInput(t){let e=this._getSanitizedDateString(t),i=this._coerceDateValue(e);this._masked&&this._adapter.emitToInputEvent(n.events.INPUT,e),!p(i,this._to)&&this._isDateValueAcceptable(i)&&this._emitChangeEvent(new a({from:this._from||void 0,to:i||void 0}))}_onToInputFocus(){this.masked&&this._showMaskFormat&&(this._initializeMask(),this._initializeToMask()),this._adapter.selectToInputText()}_onToInputBlur(t){this._masked&&!this._adapter.isInputFocused(t.relatedTarget)&&(this._initializeMask(),this._initializeToMask()),this._formatToInputValue(),this._open&&this._closeCalendar(!0)}_onInputFocus(t){this.masked&&this._showMaskFormat&&(this._initializeMask(),this._initializeToMask()),this._adapter.selectInputText()}_onInputBlur(t){this.masked&&!this._adapter.isInputFocused(t.relatedTarget)&&(this._initializeMask(),this._initializeToMask()),this._formatInputValue(),this._open&&!this._adapter.isInputFocused(t.relatedTarget)&&this._closeCalendar(!0)}_onInputValueChanged(t){if(this._masked)return;let e=this._getSanitizedDateString(t),i=this._coerceDateValue(e);p(i,this._from)||(this.from=i,this._emitChangeEvent(new a({from:i||void 0,to:this._to||void 0})))}_onToInputValueChanged(t){if(this._masked)return;let e=this._getSanitizedDateString(t),i=this._coerceDateValue(e);p(i,this._to)||(this.to=i,this._emitChangeEvent(new a({from:this._from||void 0,to:i||void 0})))}get value(){return{from:this.from,to:this.to}}set value(t){t||(t={from:null,to:null}),t.from===void 0&&(t.from=null),t.to===void 0&&(t.to=null),this.from=t.from,this.to=t.to,this._value={from:this.from,to:this.to}}get from(){let t=this._getTypedValue(this._from);return t?g(t)?new Date(t.getTime()):t:null}set from(t){this._from!==t&&(this._setValue(this._coerceDateValue(t)),this._isInitialized&&(this._setFormattedInputValue(),this._open&&this._adapter.setCalendarValue(new a({from:this._coerceDateValue(t)||void 0,to:this._coerceDateValue(this._to)||void 0}))))}get to(){let t=this._getTypedValue(this._to);return t?g(t)?new Date(t.getTime()):t:null}set to(t){this._to!==t&&(this._setToValue(this._coerceDateValue(t)),this._isInitialized&&(this._setFormattedToInputValue(),this._open&&this._adapter.setCalendarValue(new a({to:this._coerceDateValue(t)||void 0,from:this._coerceDateValue(this._from)||void 0}))))}};var X="<template><slot></slot></template>",j=":host{display:block}:host([hidden]){display:none}",s=class extends B{constructor(){super();R.define(A),P(this,X,j),this._foundation=new f(new c(this))}static get observedAttributes(){return[...Object.values(z.observedAttributes),n.observedAttributes.FROM,n.observedAttributes.TO]}attributeChangedCallback(t,e,i){switch(t){case n.observedAttributes.FROM:this.from=i;return;case n.observedAttributes.TO:this.to=i;return}super.attributeChangedCallback(t,e,i)}};h([E()],s.prototype,"from",2),h([E()],s.prototype,"to",2),s=h([F({name:n.elementName,dependencies:[N,S,w,x]})],s);var $=class extends L{constructor(t){super(t)}_build(){let t=document.createElement(n.elementName);return this._attachTextField(t),t}get fromInput(){return this._textField.querySelector(`input[${_.attributes.MULTI_INPUT}-0]`)}get toInput(){return this._textField.querySelector(`input[${_.attributes.MULTI_INPUT}-1]`)}get textField(){return this._textField}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._textField.invalid||!1}set invalid(t){this._textField.invalid=t}onChange(t){this._element.addEventListener(n.events.CHANGE,e=>t(e.detail))}onFocus(t){this._element.addEventListener("focusin",e=>{!this._element.contains(e.relatedTarget)&&t(e)})}onBlur(t){this._element.addEventListener("focusout",e=>{!this._element.contains(e.relatedTarget)&&t(e)})}_attachTextField(t){var i,o,u,I,C;this._textField=document.createElement(_.elementName),(i=this._config.options)!=null&&i.required&&(this._textField.required=!0),(o=this._config.options)!=null&&o.density&&(this._textField.density=this._config.options.density),this._fromInput=document.createElement("input"),this._fromInput.type="text",this._fromInput.placeholder=((u=this._config.options)==null?void 0:u.fromPlaceholder)||"From",this._textField.appendChild(this._fromInput),this._toInput=document.createElement("input"),this._toInput.type="text",this._toInput.placeholder=((I=this._config.options)==null?void 0:I.toPlaceholder)||"To",this._textField.appendChild(this._toInput);let e=document.createElement("label");e.textContent=((C=this._config.options)==null?void 0:C.label)||"Choose date range",this._textField.appendChild(e),t.appendChild(this._textField)}};function qt(){y(s)}export{m as a,n as b,c,f as d,s as e,$ as f,qt as g};
7
- //# sourceMappingURL=chunk.6JR2HMWB.js.map
6
+ import{a as z,b as B,c as H,d as K,e as U}from"./chunk.ZZRAZZ3N.js";import{E as S}from"./chunk.KOGQOU27.js";import{a}from"./chunk.44IUAOBP.js";import{F as O}from"./chunk.IC4DLKE3.js";import{e as N}from"./chunk.253H47GA.js";import{a as _}from"./chunk.LEN33O6V.js";import{e as v}from"./chunk.UV3WIHCM.js";import{d as w}from"./chunk.NPCUVYWP.js";import{l as A}from"./chunk.EWT2PBEP.js";import{d as R,l as x}from"./chunk.L7BSLZCB.js";import{e as p}from"./chunk.QG5EYBS3.js";import{b as T}from"./chunk.XIQFHO5R.js";import{a as L}from"./chunk.YTBNAGLS.js";import{a as E}from"./chunk.NVUMRW44.js";import{a as F,b as M}from"./chunk.UVXKHQQZ.js";import{a as y,e as P,h as D}from"./chunk.TPXXHX5J.js";import{a as V}from"./chunk.MGLWXAZO.js";import{t as k}from"./chunk.HZUQXCOQ.js";import{f as g,g as b}from"./chunk.J2M2MXP2.js";import{d as h}from"./chunk.M3QDAYD2.js";var d=`${M}date-range-picker`,m=class l{constructor(r){r&&(this.from=r.from,this.to=r.to)}copy(){return new l(this)}},q={FROM:"from",TO:"to",END_VALUE:"end-value"},G={INPUT:"input"},W={CHANGE:`${d}-change`,OPEN:`${d}-open`,CLOSE:`${d}-close`,INPUT:`${d}-input`},n={elementName:d,selectors:G,events:W,observedAttributes:q};var c=class extends K{constructor(t){super(t);this._dropdownIdentifier=`forge-date-range-picker-${this._identifier}`}_initializeInput(){if(this._fromInputElement=this._component.querySelectorAll(n.selectors.INPUT)[0],this._toInputElement=this._component.querySelectorAll(n.selectors.INPUT)[1],!this._fromInputElement||!this._fromInputElement)throw new Error(`The ${n.elementName} requires two inputs`)}_initializeCalendarDropdown(){let t=this._getDefaultTargetElement();this._calendarDropdown=new O(t,this._dropdownIdentifier)}initializeMask(t){var e;(e=this._fromInputMask)==null||e.destroy(),this._fromInputMask=new T(this._fromInputElement,t)}destroyMask(){var t;(t=this._fromInputMask)==null||t.destroy(),this._fromInputMask=void 0}initializeToMask(t){var e;(e=this._toInputMask)==null||e.destroy(),this._toInputMask=new T(this._toInputElement,t)}destroyToMask(){var t;(t=this._toInputMask)==null||t.destroy(),this._toInputMask=void 0}destroy(){super.destroy(),this._destroyToValueChangeListener()}_destroyToValueChangeListener(){typeof this._toValueChangeListener=="function"&&this._toValueChangeListener()}initializeAccessibility(){this._applyToInputs(t=>t.setAttribute("autocomplete","off")),this._applyToInputs(t=>t.setAttribute("autocorrect","off")),this._applyToInputs(t=>t.setAttribute("autocapitalize","off")),this._applyToInputs(t=>t.setAttribute("spellcheck","false")),this._applyToInputs(t=>t.setAttribute("role","combobox")),this._applyToInputs(t=>t.setAttribute("aria-live","assertive")),this._applyToInputs(t=>t.setAttribute("aria-atomic","true")),this._applyToInputs(t=>t.setAttribute("aria-haspopup","true")),this._applyToInputs(t=>t.setAttribute("aria-expanded","false")),this._applyToInputs(t=>t.setAttribute("aria-owns",this._dropdownIdentifier))}addInputListener(t,e,i){var o;(o=this._fromInputElement)==null||o.addEventListener(t,e,{capture:i})}addToInputListener(t,e,i){var o;(o=this._toInputElement)==null||o.addEventListener(t,e,{capture:i})}removeInputListener(t,e){var i;(i=this._fromInputElement)==null||i.removeEventListener(t,e)}removeToInputListener(t,e){var i;(i=this._toInputElement)==null||i.removeEventListener(t,e)}setInputValueChangedListener(t,e){this._valueChangeListeners.length&&this.destroyValueChangeListener();let i=v(t,this._fromInputElement,"value",e);this._valueChangeListeners.push(i)}setToInputValueChangedListener(t,e){this._destroyToValueChangeListener(),this._toValueChangeListener=v(t,this._toInputElement,"value",e)}hasInputElement(){return!!this._fromInputElement&&!!this._toInputElement}attachCalendar(t,e){super.attachCalendar(t,e),this._fromInputElement.setAttribute("aria-expanded","true")}detachCalendar(){super.detachCalendar(),this._fromInputElement&&(this._fromInputElement.setAttribute("aria-expanded","false"),this._fromInputElement.removeAttribute("aria-activedescendant"))}setActiveDescendant(t){this._fromInputElement.setAttribute("aria-activedescendant",t)}setInputValue(t,e){this._fromInputElement.value!==t&&(this._fromInputElement.value=t,this._fromInputMask&&this._fromInputMask.updateMask(),e&&(this._fromInputElement.dispatchEvent(new Event("change")),this._fromInputElement.dispatchEvent(new Event("input"))))}setToInputValue(t,e){this._toInputElement.value!==t&&(this._toInputElement.value=t,this._toInputMask&&this._toInputMask.updateMask(),e&&(this._toInputElement.dispatchEvent(new Event("change")),this._toInputElement.dispatchEvent(new Event("input"))))}isInputDisabled(){return this._fromInputElement.disabled}isInputFocused(t){if(t&&this._toInputElement===t||this._fromInputElement===t)return!0;let e=k(this._component.ownerDocument);return this._toInputElement===e||this._fromInputElement===e}getInputValue(){return this._fromInputElement.value}getToInputValue(){return this._toInputElement.value}setDisabled(t){this._fromInputElement.disabled=t,this._toInputElement.disabled=t,this._toInputElement.setAttribute("aria-disabled",t.toString()),this._fromInputElement.setAttribute("aria-disabled",t.toString()),this._toggleElement&&(this._toggleElement.setAttribute("aria-disabled",t.toString()),this._toggleElement.hasOwnProperty("disabled")&&(this._toggleElement.disabled=t))}emitInputEvent(t,e){D(this._fromInputElement,t,e)}emitToInputEvent(t,e){D(this._toInputElement,t,e)}_createToggleElement(){return H("date_range")}tryFocusInput(){this._fromInputElement.focus()}tryBlurInput(){this._fromInputElement.blur()}selectInputText(){this._fromInputElement.select()}selectToInputText(){this._toInputElement.select()}_applyToInputs(t){[this._fromInputElement,this._toInputElement].forEach(t)}};var f=class extends U{constructor(t){super(t);this._mode="range";this._from=null;this._to=null;this._toInputListener=e=>this._onToInput(e),this._toInputValueChangedListener=e=>this._onToInputValueChanged(e),this._toInputKeydownListener=e=>this._onInputKeydown(e),this._toInputFocusListener=e=>this._onToInputFocus(),this._toInputBlurListener=e=>this._onToInputBlur(e)}initialize(){super.initialize(),this._setFormattedToInputValue(!0)}_initializeState(){this._applyToMask(),this._from||(this._from=this._coerceDateValue(this._adapter.getInputValue())),this._to||(this._to=this._coerceDateValue(this._adapter.getToInputValue()))}_initializeListeners(){super._initializeListeners(),this._adapter.addToInputListener("keydown",this._toInputKeydownListener),this._adapter.addToInputListener("focus",this._toInputFocusListener),this._adapter.addToInputListener("blur",this._toInputBlurListener)}_initializeValueChangedListeners(){super._initializeValueChangedListeners(),this._adapter.setToInputValueChangedListener(this,this._toInputValueChangedListener)}_setInputChangeListeners(){super._setInputChangeListeners(),this._adapter.addToInputListener("input",this._toInputListener)}_removeInputChangeListeners(){super._removeInputChangeListeners(),this._adapter.removeToInputListener("input",this._toInputListener)}_openCalendar(t){this._formatToInputValue(),super._openCalendar(t);let e=this._getCurrentValue();e!=null&&e.to?this._adapter.goToCalendarDate(new Date(e.to)):e!=null&&e.from&&this._adapter.goToCalendarDate(new Date(e.from))}_emitChangeEvent(t,e){let i=this._getTypedValue(t&&t.from||null),o=this._getTypedValue(t&&t.to||null),u=new m({from:i,to:o});return this._adapter.emitHostEvent(n.events.CHANGE,u,!0,!e)?(this._setValue(this._coerceDateValue(t&&t.from||null)),this._setToValue(this._coerceDateValue(t&&t.to||null)),!0):!1}_emitOpenEvent(){this._adapter.emitHostEvent(n.events.OPEN,void 0,!1)}_emitCloseEvent(){this._adapter.emitHostEvent(n.events.CLOSE,void 0,!1)}_onToday(){let t=new Date,e=this._open?new a({from:this._from||t,to:this._to||void 0}):new a({from:t});this._isDateRangeAcceptable(e)&&(this.value=e,this._onDateSelected({date:t,range:e,selected:!0,type:"date"}),this._adapter.setCalendarActiveDate(t))}_onClear(){this._onDateSelected({date:null,range:new a,selected:!1,type:"date"}),this._closeCalendar(!0)}_getCurrentValue(){return this._value}_applyToMask(){this._masked?this._initializeToMask():(this._adapter.destroyToMask(),this._formatToInputValue())}_formatToInputValue(){let t=this._adapter.getToInputValue();if(t){let e=this._parseDateString(t);if(b(e)&&this._isDateValueAcceptable(e)){let i=this._formatDate(e);i&&this._adapter.setToInputValue(i,this._notifyInputValueChanges)}else this._allowInvalidDate||this._adapter.setToInputValue("",this._notifyInputValueChanges)}}_setFormattedInputValue(t){let e=this._formatDate(this._from);!e&&!this._allowInvalidDate&&(e=""),this._adapter.setInputValue(e,t?!1:this._notifyInputValueChanges)}_setFormattedToInputValue(t){let e=this._formatDate(this._to);!e&&!this._allowInvalidDate&&(e=""),this._adapter.setToInputValue(e,t?!1:this._notifyInputValueChanges)}_isDateRangeAcceptable(t){if(!(t!=null&&t.to))return!0;let e=()=>this._isDateValueAcceptable(t.from),i=()=>this._isDateValueAcceptable(t.to),o=()=>t!=null&&t.from&&(t!=null&&t.to)?t.from.getTime()<=t.to.getTime():!0;return e()&&i()&&o()}_setValue(t){this._isDateValueAcceptable(t)&&(this._from=t||null,this._value?this._value.from=this._from:this._value={from:this._from,to:this._to})}_setToValue(t){this._isDateValueAcceptable(t)&&(this._to=t||null,this._value?this._value.to=this._to:this._value={from:this._from,to:this._to})}_onDateSelected(t){let e=t.range;if(t.rangeSelectionState==="to"&&this._closeCalendar(!0),!this._emitChangeEvent(e!=null?e:null))return;let i=this._formatDate(e&&e.from||null),o=this._formatDate(e&&e.to||null);this._adapter.setInputValue(i,this._notifyInputValueChanges),this._adapter.setToInputValue(o,this._notifyInputValueChanges),this._formatInputValue(),this._formatToInputValue(),this._from=e&&e.from||null,this._to=e&&e.to||null,V.isMobile||(o?this._adapter.selectToInputText():this._adapter.selectInputText())}_applyMin(){this._from&&!this._isDateValueAcceptable(this._from)&&(this._emitChangeEvent(new a({to:this._to||void 0}),!0),this._setFormattedInputValue()),this._to&&!this._isDateValueAcceptable(this._to)&&(this._emitChangeEvent(new a({from:this._from||void 0}),!0),this._setFormattedToInputValue()),super._applyMin()}_applyMax(){this._from&&!this._isDateValueAcceptable(this._from)&&(this._emitChangeEvent(new a({to:this._to||void 0}),!0),this._setFormattedInputValue()),this._to&&!this._isDateValueAcceptable(this._to)&&(this._emitChangeEvent(new a({from:this._from||void 0}),!0),this._setFormattedToInputValue()),super._applyMax()}_initializeToMask(){if(!this._masked)return;let t={showMaskFormat:this._showMaskFormat&&this._adapter.isInputFocused(),pattern:this._maskFormat,onChange:e=>this._handleToInput(e)};this._prepareMaskCallback&&(t.prepareCallback=(e,i,o,u)=>this._prepareMaskCallback.call(null,e,i,o,u)),this._adapter.initializeToMask(t)}_applyDisabledDates(){this._from&&!this._isDateValueAcceptable(this._from)&&(this._emitChangeEvent(new a({to:this._to||void 0}),!0),this._setFormattedInputValue()),this._to&&!this._isDateValueAcceptable(this._to)&&(this._emitChangeEvent(new a({from:this._from||void 0}),!0),this._setFormattedToInputValue())}_applyDisabledDaysOfWeek(){this._from&&!this._isDateValueAcceptable(this._from)&&(this._emitChangeEvent(null,!0),this._setFormattedInputValue()),this._to&&!this._isDateValueAcceptable(this._to)&&(this._emitChangeEvent(null,!0),this._setFormattedToInputValue())}_onToInput(t){this._handleInput(this._adapter.getInputValue())}_handleInput(t){let e=this._getSanitizedDateString(t),i=this._coerceDateValue(e);this._masked&&this._adapter.emitInputEvent(n.events.INPUT,e),!p(i,this._from)&&this._isDateValueAcceptable(i)&&this._emitChangeEvent(new a({from:i||void 0,to:this._to||void 0}))}_handleToInput(t){let e=this._getSanitizedDateString(t),i=this._coerceDateValue(e);this._masked&&this._adapter.emitToInputEvent(n.events.INPUT,e),!p(i,this._to)&&this._isDateValueAcceptable(i)&&this._emitChangeEvent(new a({from:this._from||void 0,to:i||void 0}))}_onToInputFocus(){this.masked&&this._showMaskFormat&&(this._initializeMask(),this._initializeToMask()),this._adapter.selectToInputText()}_onToInputBlur(t){this._masked&&!this._adapter.isInputFocused(t.relatedTarget)&&(this._initializeMask(),this._initializeToMask()),this._formatToInputValue(),this._open&&this._closeCalendar(!0)}_onInputFocus(t){this.masked&&this._showMaskFormat&&(this._initializeMask(),this._initializeToMask()),this._adapter.selectInputText()}_onInputBlur(t){this.masked&&!this._adapter.isInputFocused(t.relatedTarget)&&(this._initializeMask(),this._initializeToMask()),this._formatInputValue(),this._open&&!this._adapter.isInputFocused(t.relatedTarget)&&this._closeCalendar(!0)}_onInputValueChanged(t){if(this._masked)return;let e=this._getSanitizedDateString(t),i=this._coerceDateValue(e);p(i,this._from)||(this.from=i,this._emitChangeEvent(new a({from:i||void 0,to:this._to||void 0})))}_onToInputValueChanged(t){if(this._masked)return;let e=this._getSanitizedDateString(t),i=this._coerceDateValue(e);p(i,this._to)||(this.to=i,this._emitChangeEvent(new a({from:this._from||void 0,to:i||void 0})))}get value(){return{from:this.from,to:this.to}}set value(t){t||(t={from:null,to:null}),t.from===void 0&&(t.from=null),t.to===void 0&&(t.to=null),this.from=t.from,this.to=t.to,this._value={from:this.from,to:this.to}}get from(){let t=this._getTypedValue(this._from);return t?g(t)?new Date(t.getTime()):t:null}set from(t){this._from!==t&&(this._setValue(this._coerceDateValue(t)),this._isInitialized&&(this._setFormattedInputValue(),this._open&&this._adapter.setCalendarValue(new a({from:this._coerceDateValue(t)||void 0,to:this._coerceDateValue(this._to)||void 0}))))}get to(){let t=this._getTypedValue(this._to);return t?g(t)?new Date(t.getTime()):t:null}set to(t){this._to!==t&&(this._setToValue(this._coerceDateValue(t)),this._isInitialized&&(this._setFormattedToInputValue(),this._open&&this._adapter.setCalendarValue(new a({to:this._coerceDateValue(t)||void 0,from:this._coerceDateValue(this._from)||void 0}))))}};var X="<template><slot></slot></template>",j=":host{display:block}:host([hidden]){display:none}",s=class extends B{constructor(){super();R.define(A),P(this,X,j),this._foundation=new f(new c(this))}static get observedAttributes(){return[...Object.values(z.observedAttributes),n.observedAttributes.FROM,n.observedAttributes.TO]}attributeChangedCallback(t,e,i){switch(t){case n.observedAttributes.FROM:this.from=i;return;case n.observedAttributes.TO:this.to=i;return}super.attributeChangedCallback(t,e,i)}};h([E()],s.prototype,"from",2),h([E()],s.prototype,"to",2),s=h([F({name:n.elementName,dependencies:[N,S,w,x]})],s);var $=class extends L{constructor(t){super(t)}_build(){let t=document.createElement(n.elementName);return this._attachTextField(t),t}get fromInput(){return this._textField.querySelector(`input[${_.attributes.MULTI_INPUT}-0]`)}get toInput(){return this._textField.querySelector(`input[${_.attributes.MULTI_INPUT}-1]`)}get textField(){return this._textField}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._textField.invalid||!1}set invalid(t){this._textField.invalid=t}onChange(t){this._element.addEventListener(n.events.CHANGE,e=>t(e.detail))}onFocus(t){this._element.addEventListener("focusin",e=>{!this._element.contains(e.relatedTarget)&&t(e)})}onBlur(t){this._element.addEventListener("focusout",e=>{!this._element.contains(e.relatedTarget)&&t(e)})}_attachTextField(t){var i,o,u,I,C;this._textField=document.createElement(_.elementName),(i=this._config.options)!=null&&i.required&&(this._textField.required=!0),(o=this._config.options)!=null&&o.density&&(this._textField.density=this._config.options.density),this._fromInput=document.createElement("input"),this._fromInput.type="text",this._fromInput.placeholder=((u=this._config.options)==null?void 0:u.fromPlaceholder)||"From",this._textField.appendChild(this._fromInput),this._toInput=document.createElement("input"),this._toInput.type="text",this._toInput.placeholder=((I=this._config.options)==null?void 0:I.toPlaceholder)||"To",this._textField.appendChild(this._toInput);let e=document.createElement("label");e.textContent=((C=this._config.options)==null?void 0:C.label)||"Choose date range",this._textField.appendChild(e),t.appendChild(this._textField)}};function qt(){y(s)}export{m as a,n as b,c,f as d,s as e,$ as f,qt as g};
7
+ //# sourceMappingURL=chunk.3QUIEBYX.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ import{c as T}from"./chunk.MTZOQQXR.js";import{d as S}from"./chunk.NPCUVYWP.js";import{f as _}from"./chunk.EWT2PBEP.js";import{d as E}from"./chunk.L7BSLZCB.js";import{a as u}from"./chunk.ZY3ETQ3D.js";import{a as d}from"./chunk.NVUMRW44.js";import{a as h,b as v}from"./chunk.UVXKHQQZ.js";import{a as p,e as g,f as a,k as f}from"./chunk.TPXXHX5J.js";import{k as o}from"./chunk.J2M2MXP2.js";import{a as b,d as r}from"./chunk.M3QDAYD2.js";var I=`${v}banner`,B={DISMISSED:"dismissed",PERSISTENT:"persistent",CAN_DISMISS:"can-dismiss",THEME:"theme"},k=b({},B),y={HAS_ICON:"has-icon"},D={DISMISS_BUTTON:"[part=dismiss-button]",ICON_SLOT:"slot[name=icon]"},x={THEME:"info"},N={DISMISSED:`${I}-dismissed`},n={elementName:I,observedAttributes:B,attributes:k,classes:y,selectors:D,defaults:x,events:N};var m=class extends u{constructor(t){super(t);this._rootElement=this._component;this._rootElement=a(t,".forge-banner"),this._dismissButtonElement=a(t,n.selectors.DISMISS_BUTTON),this._iconSlotElement=a(t,n.selectors.ICON_SLOT)}initialize(){this._iconSlotElement.addEventListener("slotchange",this._onIconSlotChange.bind(this)),this._onIconSlotChange()}setDismissButtonVisibility(t){this._dismissButtonElement.hidden=!t}addDismissListener(t){this._dismissButtonElement.addEventListener("click",t)}removeDismissListener(t){this._dismissButtonElement.removeEventListener("click",t)}setDismissed(t){this._rootElement.inert=t}_onIconSlotChange(){this._rootElement.classList.toggle(n.classes.HAS_ICON,this._iconSlotElement.assignedNodes().length>0)}};var c=class{constructor(e){this._adapter=e;this._dismissed=!1;this._persistent=!1;this._theme=n.defaults.THEME;this._dismissListener=this._onDismiss.bind(this)}initialize(){this._adapter.initialize(),this._persistent||this._addDismissListener()}async _onDismiss(){let e=this._dismissed;this._dismissed=!this._dismissed;let t=new CustomEvent(n.events.DISMISSED,{bubbles:!0,composed:!0,cancelable:!0});this._adapter.dispatchHostEvent(t),this._dismissed=e,!t.defaultPrevented&&(this.dismissed=!this._dismissed)}_addDismissListener(){this._adapter.addDismissListener(this._dismissListener)}_removeDismissEventListener(){this._adapter.removeDismissListener(this._dismissListener)}_applyPersistent(){this._adapter.setDismissButtonVisibility(!this._persistent),this._persistent?this._removeDismissEventListener():this._addDismissListener()}get dismissed(){return this._dismissed}set dismissed(e){e=!!e,this.dismissed!==e&&(this._dismissed=e,this._adapter.setDismissed(this._dismissed),this._adapter.toggleHostAttribute(n.attributes.DISMISSED,this.dismissed))}get persistent(){return this._persistent}set persistent(e){e=!!e,this._persistent!==e&&(this._persistent=e,this._applyPersistent(),this._adapter.toggleHostAttribute(n.attributes.PERSISTENT,this._persistent))}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e!=null?e:n.defaults.THEME,this._adapter.setHostAttribute(n.attributes.THEME,this._theme))}};var L='<template><div class="forge-banner" part="root"><div class="inner"><div class="container"><slot name="icon"></slot><slot></slot><div class="button-container"><slot name="button"></slot></div></div><div><forge-icon-button part="dismiss-button"><forge-icon name="cancel"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="bottom"><slot name="dismiss-tooltip">Dismiss</slot></forge-tooltip></div></div></div></template>',C=":host{display:block;container-type:inline-size}:host([hidden]){display:none}.forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-info-container, #c7daf0));--_banner-color:var(--forge-banner-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_banner-gap:var(--forge-banner-gap, var(--forge-spacing-small, 12px));--_banner-padding-inline:var(--forge-banner-padding-inline, var(--forge-spacing-large, 24px));--_banner-padding-block:var(--forge-banner-padding-block, var(--forge-spacing-small, 12px));--_banner-transition-duration:var(--forge-banner-transition-duration, var(--forge-animation-duration-short4, 200ms));--_banner-transition-easing:var(--forge-banner-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-banner{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition-property:opacity,grid-template-rows,min-height;transition-property:opacity,grid-template-rows,min-height;transition-property:opacity,grid-template-rows,min-height,-ms-grid-rows;-webkit-transition-duration:var(--_banner-transition-duration);transition-duration:var(--_banner-transition-duration);-webkit-transition-timing-function:var(--_banner-transition-easing);transition-timing-function:var(--_banner-transition-easing);background:var(--_banner-background);color:var(--_banner-color);opacity:1}.forge-banner .inner{display:grid;grid-template-columns:1fr auto;place-items:center;gap:var(--_banner-gap);overflow:hidden;padding-inline:var(--_banner-padding-inline)}.forge-banner .container{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;gap:var(--_banner-gap);-webkit-box-flex:1;flex:1 1 auto;padding-block:var(--_banner-padding-block)}.forge-banner forge-icon-button{--forge-icon-button-focus-indicator-color:var(--_banner-color)}::slotted(forge-button[slot=button]){--forge-button-primary-color:var(--_banner-color)}:host([dismissed]) .forge-banner{grid-template-rows:0fr;opacity:0}:host([theme=primary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-primary-container, #d1d5ed))}:host([theme=secondary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-secondary-container, #fff0c3))}:host([theme=tertiary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-tertiary-container, #d0d7ff))}:host([theme=success]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-success-container, #cde0ce))}:host([theme=error]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-error-container, #ecc2c9))}:host([theme=warning]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-warning-container, #f4d3c2))}:host([theme=danger]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-error-container, #ecc2c9))}:host([theme=info-secondary]) .forge-banner{--_banner-background:var(--forge-banner-background, var(--forge-theme-surface-container, #e0e0e0))}@container (max-width:600px){.forge-banner .container{display:grid;grid-template-rows:[content] 1fr [button] auto;grid-template-columns:[content] 1fr;place-items:normal}.forge-banner.has-icon .container{grid-template-columns:[icon] auto [content] 1fr}.forge-banner .inner{place-items:normal}.forge-banner .button-container{grid-row:button;grid-column:content}}",i=class extends f{constructor(){super();E.define(_),g(this,L,C),this._foundation=new c(new m(this))}static get observedAttributes(){return Object.values(n.observedAttributes)}connectedCallback(){this._foundation.initialize()}attributeChangedCallback(t,A,s){switch(t){case n.observedAttributes.DISMISSED:this.dismissed=o(s);break;case n.observedAttributes.PERSISTENT:this.persistent=o(s);break;case n.observedAttributes.CAN_DISMISS:this.persistent=o(s)===!1;break;case n.observedAttributes.THEME:this.theme=s;break}}get canDismiss(){return this.persistent}set canDismiss(t){this.persistent=!t}};r([d()],i.prototype,"dismissed",2),r([d()],i.prototype,"persistent",2),r([d()],i.prototype,"theme",2),i=r([h({name:n.elementName,dependencies:[S,T]})],i);function oe(){p(i)}export{n as a,m as b,c,i as d,oe as e};
7
+ //# sourceMappingURL=chunk.4MEXAG3E.js.map