@tylertech/forge 2.8.0 → 2.9.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.
Files changed (276) hide show
  1. package/custom-elements.json +4350 -82
  2. package/dist/esm/accordion/index.js +7 -7
  3. package/dist/esm/app-bar/help-button/index.js +9 -9
  4. package/dist/esm/app-bar/index.js +15 -15
  5. package/dist/esm/app-bar/menu-button/index.js +6 -6
  6. package/dist/esm/app-bar/notification-button/index.js +6 -6
  7. package/dist/esm/app-bar/profile-button/index.js +7 -7
  8. package/dist/esm/app-bar/search/index.js +5 -5
  9. package/dist/esm/autocomplete/index.js +13 -13
  10. package/dist/esm/banner/index.js +6 -6
  11. package/dist/esm/bottom-sheet/index.js +5 -5
  12. package/dist/esm/busy-indicator/index.js +4 -4
  13. package/dist/esm/button/index.js +3 -3
  14. package/dist/esm/calendar/calendar-dropdown/index.js +2 -2
  15. package/dist/esm/calendar/calendar-menu/index.js +2 -2
  16. package/dist/esm/calendar/index.js +7 -7
  17. package/dist/esm/checkbox/index.js +2 -2
  18. package/dist/esm/chip-field/index.js +9 -9
  19. package/dist/esm/chips/chip/index.js +6 -6
  20. package/dist/esm/chips/chip-set/index.js +6 -6
  21. package/dist/esm/chips/index.js +7 -7
  22. package/dist/esm/chunks/{chunk.VXVE7KEM.js → chunk.2QB3WXEH.js} +4 -4
  23. package/dist/esm/chunks/{chunk.VXVE7KEM.js.map → chunk.2QB3WXEH.js.map} +0 -0
  24. package/dist/esm/chunks/{chunk.3QXCVTCP.js → chunk.2Z23LQVW.js} +2 -2
  25. package/dist/esm/chunks/{chunk.3QXCVTCP.js.map → chunk.2Z23LQVW.js.map} +0 -0
  26. package/dist/esm/chunks/{chunk.BEAJZPWS.js → chunk.3TFBNPQF.js} +2 -2
  27. package/dist/esm/chunks/{chunk.BEAJZPWS.js.map → chunk.3TFBNPQF.js.map} +0 -0
  28. package/dist/esm/chunks/{chunk.2MBI5DLT.js → chunk.3ULPDQ2I.js} +71 -15
  29. package/dist/esm/chunks/chunk.3ULPDQ2I.js.map +7 -0
  30. package/dist/esm/chunks/{chunk.JC2PZ4TS.js → chunk.5DJS3K7V.js} +10 -8
  31. package/dist/esm/chunks/chunk.5DJS3K7V.js.map +7 -0
  32. package/dist/esm/chunks/{chunk.GHZ75UPO.js → chunk.5EBM357P.js} +3 -3
  33. package/dist/esm/chunks/{chunk.GHZ75UPO.js.map → chunk.5EBM357P.js.map} +0 -0
  34. package/dist/esm/chunks/{chunk.J5NUYQ4D.js → chunk.5XUOWRCK.js} +3 -3
  35. package/dist/esm/chunks/{chunk.J5NUYQ4D.js.map → chunk.5XUOWRCK.js.map} +0 -0
  36. package/dist/esm/chunks/{chunk.6EGTLHJS.js → chunk.65ZCTZEM.js} +6 -2
  37. package/dist/esm/chunks/{chunk.6EGTLHJS.js.map → chunk.65ZCTZEM.js.map} +2 -2
  38. package/dist/esm/chunks/chunk.A5GIQB6E.js +20 -0
  39. package/dist/esm/chunks/{chunk.2NMHSTAO.js.map → chunk.A5GIQB6E.js.map} +3 -3
  40. package/dist/esm/chunks/{chunk.PM7D2SUE.js → chunk.A6YZB7UK.js} +33 -2
  41. package/dist/esm/chunks/{chunk.PM7D2SUE.js.map → chunk.A6YZB7UK.js.map} +2 -2
  42. package/dist/esm/chunks/chunk.AJJILT3A.js +6 -0
  43. package/dist/esm/chunks/chunk.AJJILT3A.js.map +7 -0
  44. package/dist/esm/chunks/chunk.CGKWQIL3.js +1236 -0
  45. package/dist/esm/chunks/chunk.CGKWQIL3.js.map +7 -0
  46. package/dist/esm/chunks/chunk.CGOYP37Z.js +345 -0
  47. package/dist/esm/chunks/chunk.CGOYP37Z.js.map +7 -0
  48. package/dist/esm/chunks/{chunk.QYWAZCBX.js → chunk.CTMCTMRO.js} +2 -2
  49. package/dist/esm/chunks/{chunk.QYWAZCBX.js.map → chunk.CTMCTMRO.js.map} +0 -0
  50. package/dist/esm/chunks/{chunk.2NMHSTAO.js → chunk.D2AL6QLF.js} +10 -13
  51. package/dist/esm/chunks/chunk.D2AL6QLF.js.map +7 -0
  52. package/dist/esm/chunks/{chunk.U5ECVIX5.js → chunk.D3MXPNTL.js} +2 -2
  53. package/dist/esm/chunks/{chunk.U5ECVIX5.js.map → chunk.D3MXPNTL.js.map} +0 -0
  54. package/dist/esm/chunks/{chunk.HAWYW54W.js → chunk.D45QN7JA.js} +5 -5
  55. package/dist/esm/chunks/{chunk.HAWYW54W.js.map → chunk.D45QN7JA.js.map} +0 -0
  56. package/dist/esm/chunks/{chunk.2WBHHTUM.js → chunk.EFQZGAM5.js} +2 -2
  57. package/dist/esm/chunks/{chunk.2WBHHTUM.js.map → chunk.EFQZGAM5.js.map} +0 -0
  58. package/dist/esm/chunks/{chunk.BLZJIYMG.js → chunk.F5O63UF4.js} +2 -2
  59. package/dist/esm/chunks/{chunk.BLZJIYMG.js.map → chunk.F5O63UF4.js.map} +0 -0
  60. package/dist/esm/chunks/{chunk.RL7ZFLMG.js → chunk.FRT7RD5L.js} +2 -2
  61. package/dist/esm/chunks/{chunk.RL7ZFLMG.js.map → chunk.FRT7RD5L.js.map} +0 -0
  62. package/dist/esm/chunks/{chunk.LK2DN5KX.js → chunk.GG3O42UP.js} +4 -4
  63. package/dist/esm/chunks/{chunk.LK2DN5KX.js.map → chunk.GG3O42UP.js.map} +0 -0
  64. package/dist/esm/chunks/{chunk.WSH4S3GM.js → chunk.GVR5LXMJ.js} +2 -2
  65. package/dist/esm/chunks/{chunk.WSH4S3GM.js.map → chunk.GVR5LXMJ.js.map} +0 -0
  66. package/dist/esm/chunks/{chunk.LHWZ4KZU.js → chunk.HL2ORG3A.js} +4 -4
  67. package/dist/esm/chunks/{chunk.LHWZ4KZU.js.map → chunk.HL2ORG3A.js.map} +1 -1
  68. package/dist/esm/chunks/{chunk.ELAJS33V.js → chunk.J2FCOFOE.js} +2 -2
  69. package/dist/esm/chunks/{chunk.ELAJS33V.js.map → chunk.J2FCOFOE.js.map} +0 -0
  70. package/dist/esm/chunks/{chunk.PKZ43JNW.js → chunk.JM6SZSUI.js} +50 -4
  71. package/dist/esm/chunks/{chunk.PKZ43JNW.js.map → chunk.JM6SZSUI.js.map} +2 -2
  72. package/dist/esm/chunks/{chunk.VXAPRFMK.js → chunk.K4B7NJ2G.js} +4 -4
  73. package/dist/esm/chunks/{chunk.VXAPRFMK.js.map → chunk.K4B7NJ2G.js.map} +0 -0
  74. package/dist/esm/chunks/{chunk.67B6JDOJ.js → chunk.KVOXJKCU.js} +3 -3
  75. package/dist/esm/chunks/{chunk.67B6JDOJ.js.map → chunk.KVOXJKCU.js.map} +0 -0
  76. package/dist/esm/chunks/{chunk.ITQ55IPH.js → chunk.LTN47GWQ.js} +4 -4
  77. package/dist/esm/chunks/{chunk.ITQ55IPH.js.map → chunk.LTN47GWQ.js.map} +0 -0
  78. package/dist/esm/chunks/{chunk.UPW5HUKB.js → chunk.NU3XRT37.js} +5 -5
  79. package/dist/esm/chunks/{chunk.UPW5HUKB.js.map → chunk.NU3XRT37.js.map} +0 -0
  80. package/dist/esm/chunks/{chunk.I6PJGNJS.js → chunk.NWPH4FRE.js} +6 -6
  81. package/dist/esm/chunks/chunk.NWPH4FRE.js.map +7 -0
  82. package/dist/esm/chunks/{chunk.KNR5DXE4.js → chunk.OTJJU35B.js} +2 -2
  83. package/dist/esm/chunks/{chunk.KNR5DXE4.js.map → chunk.OTJJU35B.js.map} +0 -0
  84. package/dist/esm/chunks/{chunk.BVGJFMEG.js → chunk.PRRL5C6Z.js} +7 -7
  85. package/dist/esm/chunks/{chunk.BVGJFMEG.js.map → chunk.PRRL5C6Z.js.map} +0 -0
  86. package/dist/esm/chunks/{chunk.TIUNGGBF.js → chunk.QFG7SPQV.js} +3 -3
  87. package/dist/esm/chunks/{chunk.TIUNGGBF.js.map → chunk.QFG7SPQV.js.map} +0 -0
  88. package/dist/esm/chunks/{chunk.XE7ZMJBZ.js → chunk.QKCIMRRG.js} +32 -17
  89. package/dist/esm/chunks/chunk.QKCIMRRG.js.map +7 -0
  90. package/dist/esm/chunks/{chunk.IGBDDH3J.js → chunk.QRGWP6Z2.js} +3 -3
  91. package/dist/esm/chunks/chunk.QRGWP6Z2.js.map +7 -0
  92. package/dist/esm/chunks/{chunk.MUP3NY6M.js → chunk.QSFE3J74.js} +5 -5
  93. package/dist/esm/chunks/{chunk.MUP3NY6M.js.map → chunk.QSFE3J74.js.map} +0 -0
  94. package/dist/esm/chunks/{chunk.UFMUXBT4.js → chunk.R357QRWX.js} +53 -49
  95. package/dist/esm/chunks/chunk.R357QRWX.js.map +7 -0
  96. package/dist/esm/chunks/{chunk.46BED43J.js → chunk.SVS3G6Y7.js} +5 -19
  97. package/dist/esm/chunks/chunk.SVS3G6Y7.js.map +7 -0
  98. package/dist/esm/chunks/{chunk.S3UVF647.js → chunk.TBQ72CBS.js} +3 -3
  99. package/dist/esm/chunks/{chunk.S3UVF647.js.map → chunk.TBQ72CBS.js.map} +0 -0
  100. package/dist/esm/chunks/{chunk.ZSHQMR4O.js → chunk.TSHHEAIC.js} +2 -2
  101. package/dist/esm/chunks/{chunk.ZSHQMR4O.js.map → chunk.TSHHEAIC.js.map} +0 -0
  102. package/dist/esm/chunks/{chunk.EBC2HGO3.js → chunk.UAW46BWM.js} +3 -3
  103. package/dist/esm/chunks/{chunk.EBC2HGO3.js.map → chunk.UAW46BWM.js.map} +0 -0
  104. package/dist/esm/chunks/{chunk.FJJVIMZ2.js → chunk.V6ESTGWD.js} +5 -5
  105. package/dist/esm/chunks/chunk.V6ESTGWD.js.map +7 -0
  106. package/dist/esm/chunks/{chunk.5OYAJ36F.js → chunk.VLAUYV76.js} +2 -2
  107. package/dist/esm/chunks/{chunk.5OYAJ36F.js.map → chunk.VLAUYV76.js.map} +0 -0
  108. package/dist/esm/chunks/{chunk.L4OUV7W6.js → chunk.VSKPHQZE.js} +4 -4
  109. package/dist/esm/chunks/{chunk.L4OUV7W6.js.map → chunk.VSKPHQZE.js.map} +0 -0
  110. package/dist/esm/chunks/{chunk.GS2AXUCN.js → chunk.WOL4KRZK.js} +6 -1
  111. package/dist/esm/chunks/{chunk.GS2AXUCN.js.map → chunk.WOL4KRZK.js.map} +1 -1
  112. package/dist/esm/chunks/{chunk.TM46MNYN.js → chunk.WQRR5OGK.js} +5 -5
  113. package/dist/esm/chunks/{chunk.TM46MNYN.js.map → chunk.WQRR5OGK.js.map} +0 -0
  114. package/dist/esm/chunks/chunk.X2RP4QW3.js +6 -0
  115. package/dist/esm/chunks/chunk.X2RP4QW3.js.map +7 -0
  116. package/dist/esm/chunks/{chunk.K7OLG7CS.js → chunk.X3TV6IHS.js} +2 -2
  117. package/dist/esm/chunks/{chunk.K7OLG7CS.js.map → chunk.X3TV6IHS.js.map} +0 -0
  118. package/dist/esm/chunks/{chunk.U37G47LH.js → chunk.XC56O73Q.js} +6 -6
  119. package/dist/esm/chunks/{chunk.U37G47LH.js.map → chunk.XC56O73Q.js.map} +0 -0
  120. package/dist/esm/chunks/{chunk.QWW6A7AF.js → chunk.XRK62M5E.js} +2 -2
  121. package/dist/esm/chunks/{chunk.QWW6A7AF.js.map → chunk.XRK62M5E.js.map} +0 -0
  122. package/dist/esm/chunks/{chunk.ZLF2G3YT.js → chunk.XSS7BYJS.js} +3 -3
  123. package/dist/esm/chunks/{chunk.ZLF2G3YT.js.map → chunk.XSS7BYJS.js.map} +0 -0
  124. package/dist/esm/chunks/{chunk.PNKLV3BK.js → chunk.YCHKXJLN.js} +2 -2
  125. package/dist/esm/chunks/{chunk.PNKLV3BK.js.map → chunk.YCHKXJLN.js.map} +0 -0
  126. package/dist/esm/chunks/{chunk.UQ3QTUUB.js → chunk.YMP3JQQQ.js} +2 -2
  127. package/dist/esm/chunks/{chunk.UQ3QTUUB.js.map → chunk.YMP3JQQQ.js.map} +0 -0
  128. package/dist/esm/chunks/{chunk.7I2XNJBL.js → chunk.YTFOQNFU.js} +6 -16
  129. package/dist/esm/chunks/chunk.YTFOQNFU.js.map +7 -0
  130. package/dist/esm/chunks/{chunk.IJW2YKP3.js → chunk.Z5KLXKMB.js} +21 -15
  131. package/dist/esm/chunks/chunk.Z5KLXKMB.js.map +7 -0
  132. package/dist/esm/chunks/{chunk.MBZLA635.js → chunk.ZIZGRSAX.js} +6 -6
  133. package/dist/esm/chunks/{chunk.MBZLA635.js.map → chunk.ZIZGRSAX.js.map} +1 -1
  134. package/dist/esm/chunks/{chunk.CLEUHAZ6.js → chunk.ZLX3L6KW.js} +2 -2
  135. package/dist/esm/chunks/{chunk.CLEUHAZ6.js.map → chunk.ZLX3L6KW.js.map} +0 -0
  136. package/dist/esm/color-picker/index.js +6 -6
  137. package/dist/esm/core/index.js +14 -2
  138. package/dist/esm/core/utils/index.js +14 -2
  139. package/dist/esm/date-picker/index.js +11 -11
  140. package/dist/esm/date-range-picker/index.js +11 -11
  141. package/dist/esm/dialog/index.js +5 -5
  142. package/dist/esm/drawer/base/index.js +2 -2
  143. package/dist/esm/drawer/drawer/index.js +3 -3
  144. package/dist/esm/drawer/index.js +5 -5
  145. package/dist/esm/drawer/mini-drawer/index.js +3 -3
  146. package/dist/esm/drawer/modal-drawer/index.js +3 -3
  147. package/dist/esm/expansion-panel/index.js +6 -6
  148. package/dist/esm/file-picker/index.js +4 -4
  149. package/dist/esm/icon/index.js +3 -3
  150. package/dist/esm/icon-button/index.js +4 -4
  151. package/dist/esm/index.js +168 -93
  152. package/dist/esm/list-dropdown/index.js +5 -5
  153. package/dist/esm/menu/index.js +7 -7
  154. package/dist/esm/open-icon/index.js +5 -5
  155. package/dist/esm/paginator/index.js +12 -12
  156. package/dist/esm/profile-card/index.js +4 -4
  157. package/dist/esm/quantity-field/index.js +6 -7
  158. package/dist/esm/select/core/index.js +7 -7
  159. package/dist/esm/select/index.js +11 -11
  160. package/dist/esm/select/select/index.js +9 -9
  161. package/dist/esm/select/select-dropdown/index.js +9 -9
  162. package/dist/esm/slider/index.js +2 -2
  163. package/dist/esm/split-view/core/index.js +7 -0
  164. package/dist/esm/split-view/core/index.js.map +7 -0
  165. package/dist/esm/split-view/index.js +92 -0
  166. package/dist/esm/split-view/index.js.map +7 -0
  167. package/dist/esm/split-view/split-view/index.js +44 -0
  168. package/dist/esm/split-view/split-view/index.js.map +7 -0
  169. package/dist/esm/split-view/split-view-panel/index.js +78 -0
  170. package/dist/esm/split-view/split-view-panel/index.js.map +7 -0
  171. package/dist/esm/stepper/index.js +6 -6
  172. package/dist/esm/stepper/step/index.js +5 -5
  173. package/dist/esm/stepper/stepper/index.js +6 -6
  174. package/dist/esm/switch/index.js +2 -2
  175. package/dist/esm/table/index.js +7 -7
  176. package/dist/esm/tabs/index.js +6 -6
  177. package/dist/esm/tabs/tab-bar/index.js +6 -6
  178. package/dist/esm/text-field/index.js +2 -2
  179. package/dist/esm/time-picker/index.js +11 -10
  180. package/dist/esm/toast/index.js +7 -7
  181. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.d.ts +6 -1
  182. package/esm/app-bar/profile-button/app-bar-profile-button-adapter.js +30 -12
  183. package/esm/app-bar/profile-button/app-bar-profile-button-constants.d.ts +4 -0
  184. package/esm/app-bar/profile-button/app-bar-profile-button-constants.js +2 -0
  185. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.d.ts +8 -0
  186. package/esm/app-bar/profile-button/app-bar-profile-button-foundation.js +22 -0
  187. package/esm/app-bar/profile-button/app-bar-profile-button.d.ts +4 -0
  188. package/esm/app-bar/profile-button/app-bar-profile-button.js +14 -0
  189. package/esm/autocomplete/autocomplete-adapter.d.ts +2 -0
  190. package/esm/autocomplete/autocomplete-adapter.js +4 -0
  191. package/esm/autocomplete/autocomplete-foundation.js +10 -7
  192. package/esm/chip-field/chip-field-adapter.d.ts +1 -1
  193. package/esm/chip-field/chip-field-adapter.js +2 -2
  194. package/esm/chip-field/chip-field.js +1 -1
  195. package/esm/chips/chip/chip.js +1 -1
  196. package/esm/core/utils/event-utils.d.ts +1 -0
  197. package/esm/core/utils/event-utils.js +3 -0
  198. package/esm/core/utils/utils.d.ts +36 -0
  199. package/esm/core/utils/utils.js +57 -0
  200. package/esm/date-picker/date-picker-foundation.js +3 -1
  201. package/esm/field/field-adapter.d.ts +4 -4
  202. package/esm/field/field-adapter.js +4 -13
  203. package/esm/field/field-foundation.js +2 -2
  204. package/esm/index.d.ts +1 -0
  205. package/esm/index.js +3 -0
  206. package/esm/profile-card/profile-card-adapter.d.ts +4 -0
  207. package/esm/profile-card/profile-card-adapter.js +6 -0
  208. package/esm/profile-card/profile-card-constants.d.ts +4 -0
  209. package/esm/profile-card/profile-card-constants.js +5 -1
  210. package/esm/profile-card/profile-card-foundation.d.ts +6 -0
  211. package/esm/profile-card/profile-card-foundation.js +22 -0
  212. package/esm/profile-card/profile-card.d.ts +4 -0
  213. package/esm/profile-card/profile-card.js +15 -1
  214. package/esm/quantity-field/quantity-field-adapter.d.ts +0 -2
  215. package/esm/quantity-field/quantity-field-adapter.js +1 -13
  216. package/esm/quantity-field/quantity-field-foundation.js +0 -1
  217. package/esm/quantity-field/quantity-field.js +1 -1
  218. package/esm/select/select/select.js +1 -1
  219. package/esm/split-view/core/index.d.ts +6 -0
  220. package/esm/split-view/core/index.js +6 -0
  221. package/esm/split-view/core/split-view-base.d.ts +14 -0
  222. package/esm/split-view/core/split-view-base.js +6 -0
  223. package/esm/split-view/index.d.ts +8 -0
  224. package/esm/split-view/index.js +8 -0
  225. package/esm/split-view/split-view/index.d.ts +10 -0
  226. package/esm/split-view/split-view/index.js +14 -0
  227. package/esm/split-view/split-view/split-view-adapter.d.ts +29 -0
  228. package/esm/split-view/split-view/split-view-adapter.js +62 -0
  229. package/esm/split-view/split-view/split-view-constants.d.ts +41 -0
  230. package/esm/split-view/split-view/split-view-constants.js +40 -0
  231. package/esm/split-view/split-view/split-view-foundation.d.ts +86 -0
  232. package/esm/split-view/split-view/split-view-foundation.js +179 -0
  233. package/esm/split-view/split-view/split-view.d.ts +67 -0
  234. package/esm/split-view/split-view/split-view.js +103 -0
  235. package/esm/split-view/split-view-panel/index.d.ts +11 -0
  236. package/esm/split-view/split-view-panel/index.js +15 -0
  237. package/esm/split-view/split-view-panel/split-view-panel-adapter.d.ts +171 -0
  238. package/esm/split-view/split-view-panel/split-view-panel-adapter.js +295 -0
  239. package/esm/split-view/split-view-panel/split-view-panel-constants.d.ts +97 -0
  240. package/esm/split-view/split-view-panel/split-view-panel-constants.js +78 -0
  241. package/esm/split-view/split-view-panel/split-view-panel-foundation.d.ts +235 -0
  242. package/esm/split-view/split-view-panel/split-view-panel-foundation.js +667 -0
  243. package/esm/split-view/split-view-panel/split-view-panel-utils.d.ts +130 -0
  244. package/esm/split-view/split-view-panel/split-view-panel-utils.js +300 -0
  245. package/esm/split-view/split-view-panel/split-view-panel.d.ts +105 -0
  246. package/esm/split-view/split-view-panel/split-view-panel.js +173 -0
  247. package/esm/table/table-utils.d.ts +2 -2
  248. package/esm/table/table-utils.js +30 -14
  249. package/esm/text-field/text-field-adapter.d.ts +1 -1
  250. package/esm/text-field/text-field-adapter.js +2 -2
  251. package/esm/text-field/text-field.js +1 -1
  252. package/package.json +2 -2
  253. package/styles/chip-field/_base.scss +2 -2
  254. package/styles/chip-field/_selector.scss +1 -1
  255. package/styles/chip-field/_variables.scss +1 -1
  256. package/styles/chips/chip/_mixins.scss +4 -3
  257. package/styles/chips/chip/_variables.scss +3 -2
  258. package/styles/field/_base.scss +16 -4
  259. package/styles/field/_selector.scss +4 -4
  260. package/styles/quantity-field/_mixins.scss +1 -1
  261. package/styles/select/select/_selector.scss +1 -1
  262. package/styles/split-view/split-view/_mixins.scss +48 -0
  263. package/styles/split-view/split-view/split-view.scss +25 -0
  264. package/styles/split-view/split-view-panel/_mixins.scss +260 -0
  265. package/styles/split-view/split-view-panel/_variables.scss +7 -0
  266. package/styles/split-view/split-view-panel/split-view-panel.scss +23 -0
  267. package/dist/esm/chunks/chunk.2MBI5DLT.js.map +0 -7
  268. package/dist/esm/chunks/chunk.46BED43J.js.map +0 -7
  269. package/dist/esm/chunks/chunk.7I2XNJBL.js.map +0 -7
  270. package/dist/esm/chunks/chunk.FJJVIMZ2.js.map +0 -7
  271. package/dist/esm/chunks/chunk.I6PJGNJS.js.map +0 -7
  272. package/dist/esm/chunks/chunk.IGBDDH3J.js.map +0 -7
  273. package/dist/esm/chunks/chunk.IJW2YKP3.js.map +0 -7
  274. package/dist/esm/chunks/chunk.JC2PZ4TS.js.map +0 -7
  275. package/dist/esm/chunks/chunk.UFMUXBT4.js.map +0 -7
  276. package/dist/esm/chunks/chunk.XE7ZMJBZ.js.map +0 -7
@@ -0,0 +1,1236 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ import {
7
+ tylIconDragVerticalVariant
8
+ } from "./chunk.A5GIQB6E.js";
9
+ import {
10
+ RippleComponent
11
+ } from "./chunk.56BNM7F2.js";
12
+ import {
13
+ tylIconDragHandle
14
+ } from "./chunk.WOL4KRZK.js";
15
+ import {
16
+ IconComponent,
17
+ IconRegistry
18
+ } from "./chunk.GVR5LXMJ.js";
19
+ import {
20
+ percentToPixels,
21
+ safeMin,
22
+ scaleValue
23
+ } from "./chunk.A6YZB7UK.js";
24
+ import {
25
+ eventIncludesArrowKey
26
+ } from "./chunk.65ZCTZEM.js";
27
+ import {
28
+ BaseAdapter
29
+ } from "./chunk.KZATVOA6.js";
30
+ import {
31
+ FoundationProperty
32
+ } from "./chunk.MMIZOYAS.js";
33
+ import {
34
+ COMPONENT_NAME_PREFIX,
35
+ CustomElement
36
+ } from "./chunk.35U3UPDV.js";
37
+ import {
38
+ BaseComponent
39
+ } from "./chunk.VK6LIH3B.js";
40
+ import {
41
+ attachShadowTemplate,
42
+ defineCustomElement,
43
+ getShadowElement
44
+ } from "./chunk.K2PCTUVN.js";
45
+ import {
46
+ playKeyframeAnimation,
47
+ toggleAttribute
48
+ } from "./chunk.4JURZYE4.js";
49
+ import {
50
+ coerceBoolean,
51
+ coerceNumber,
52
+ isDefined
53
+ } from "./chunk.MEFT5FQC.js";
54
+ import {
55
+ __decorateClass,
56
+ __spreadProps,
57
+ __spreadValues
58
+ } from "./chunk.LM5TVNZY.js";
59
+
60
+ // dist/build/lib/staging/src/split-view/split-view-panel/split-view-panel-constants.ts
61
+ var elementName = `${COMPONENT_NAME_PREFIX}split-view-panel`;
62
+ var attributes = {
63
+ RESIZABLE: "resizable",
64
+ SIZE: "size",
65
+ MIN: "min",
66
+ MAX: "max",
67
+ OPEN: "open",
68
+ ACCESSIBLE_LABEL: "accessible-label",
69
+ DISABLED: "disabled",
70
+ ALLOW_CLOSE: "allow-close",
71
+ AUTO_CLOSE: "auto-close",
72
+ AUTO_CLOSE_THRESHOLD: "auto-close-threshold",
73
+ ORIENTATION: "orientation"
74
+ };
75
+ var classes = {
76
+ ROOT: "forge-split-view-panel",
77
+ GRABBED: "forge-split-view-panel--grabbed",
78
+ HANDLE: "forge-split-view-panel__handle",
79
+ ICON: "forge-split-view-panel__icon",
80
+ CONTENT: "forge-split-view-panel__content",
81
+ CLOSED: "forge-split-view-panel--closed",
82
+ CLOSING: "forge-split-view-panel--closing",
83
+ OPENING: "forge-split-view-panel--opening",
84
+ DISABLED: "forge-split-view-panel--disabled"
85
+ };
86
+ var ids = {
87
+ ROOT: "root",
88
+ HANDLE: "handle",
89
+ ICON: "icon",
90
+ RIPPLE: "ripple",
91
+ CONTENT: "content"
92
+ };
93
+ var selectors = {
94
+ ROOT: `#${ids.ROOT}`,
95
+ HANDLE: `#${ids.HANDLE}`,
96
+ ICON: `#${ids.ICON}`,
97
+ RIPPLE: `#${ids.RIPPLE}`,
98
+ CONTENT: `#${ids.CONTENT}`
99
+ };
100
+ var events = {
101
+ WILL_RESIZE: `${elementName}-will-resize`,
102
+ RESIZE_START: `${elementName}-resize-start`,
103
+ RESIZE_END: `${elementName}-resize-end`,
104
+ RESIZE: `${elementName}-resize`,
105
+ DID_OPEN: `${elementName}-did-open`,
106
+ DID_CLOSE: `${elementName}-did-close`,
107
+ WILL_OPEN: `${elementName}-will-open`,
108
+ WILL_CLOSE: `${elementName}-will-close`
109
+ };
110
+ var numbers = {
111
+ RIPPLE_ACTIVATION_WAIT: 200
112
+ };
113
+ var customCssProperties = {
114
+ SIZE: "--forge-split-view-panel-size",
115
+ CURSOR: "--forge-split-view-panel-cursor"
116
+ };
117
+ var SPLIT_VIEW_PANEL_CONSTANTS = {
118
+ elementName,
119
+ attributes,
120
+ classes,
121
+ ids,
122
+ selectors,
123
+ events,
124
+ numbers,
125
+ customCssProperties
126
+ };
127
+ var SplitViewAnimatingLayer = /* @__PURE__ */ ((SplitViewAnimatingLayer2) => {
128
+ SplitViewAnimatingLayer2[SplitViewAnimatingLayer2["Under"] = 1] = "Under";
129
+ SplitViewAnimatingLayer2[SplitViewAnimatingLayer2["Active"] = 2] = "Active";
130
+ SplitViewAnimatingLayer2[SplitViewAnimatingLayer2["Above"] = 3] = "Above";
131
+ return SplitViewAnimatingLayer2;
132
+ })(SplitViewAnimatingLayer || {});
133
+
134
+ // dist/build/lib/staging/src/split-view/split-view-panel/split-view-panel-utils.ts
135
+ function initState() {
136
+ return {
137
+ orientation: "horizontal",
138
+ resizable: "off",
139
+ arrowKeyHeld: false,
140
+ keyboardDelta: 0,
141
+ isAtMin: false,
142
+ isAtMax: false,
143
+ min: 0
144
+ };
145
+ }
146
+ function setState(adapter, state) {
147
+ const currentSize = adapter.getContentSize(state.orientation);
148
+ return __spreadProps(__spreadValues({}, state), {
149
+ currentSize,
150
+ startSize: currentSize,
151
+ availableSpace: adapter.getAvailableSpace(state.orientation, state.resizable),
152
+ siblingSize: adapter.getSiblingContentSize(),
153
+ isAtMin: false,
154
+ isAtMax: false
155
+ });
156
+ }
157
+ function clearState(state) {
158
+ return __spreadProps(__spreadValues({}, state), {
159
+ arrowKeyHeld: false,
160
+ keyboardDelta: 0,
161
+ isAtMin: false,
162
+ isAtMax: false
163
+ });
164
+ }
165
+ function pointerResize(adapter, evt, state) {
166
+ if (state.startPoint === void 0 || state.startSize === void 0) {
167
+ return false;
168
+ }
169
+ const initialSize = state.currentSize;
170
+ const evtPoint = state.orientation === "horizontal" ? evt.clientX : evt.clientY;
171
+ let delta = state.startPoint - evtPoint;
172
+ if (state.resizable === "start") {
173
+ delta *= -1;
174
+ }
175
+ const size = state.startSize - delta;
176
+ state.currentSize = clampSize(size, state);
177
+ adapter.setContentSize(state.currentSize);
178
+ handleBoundariesDuringResize(adapter, state, "pointer");
179
+ adapter.setValuenow(getValuenow(state.currentSize, state));
180
+ const siblingDelta = size - state.currentSize + delta;
181
+ resizeSibling(adapter, siblingDelta, state);
182
+ return initialSize !== state.currentSize;
183
+ }
184
+ function keyboardResize(adapter, increment, state) {
185
+ if (state.startSize === void 0) {
186
+ return false;
187
+ }
188
+ const initialSize = state.currentSize;
189
+ state.keyboardDelta += increment;
190
+ const size = state.startSize + state.keyboardDelta;
191
+ state.currentSize = clampSize(size, state);
192
+ adapter.setContentSize(state.currentSize);
193
+ handleBoundariesDuringResize(adapter, state, "keyboard");
194
+ adapter.setValuenow(getValuenow(state.currentSize, state));
195
+ const siblingDelta = size - state.currentSize + state.keyboardDelta * -1;
196
+ resizeSibling(adapter, siblingDelta, state);
197
+ return initialSize !== state.currentSize;
198
+ }
199
+ function minResize(adapter, state) {
200
+ adapter.setContentSize(state.min);
201
+ return state.min;
202
+ }
203
+ function maxResize(adapter, state) {
204
+ const availableSpace = adapter.getAvailableSpace(state.orientation, state.resizable);
205
+ const max = safeMin(state.max, availableSpace);
206
+ adapter.setContentSize(max);
207
+ return max;
208
+ }
209
+ function resizeSibling(adapter, delta, state) {
210
+ if (state.siblingSize !== void 0) {
211
+ const siblingSize = state.siblingSize + delta;
212
+ adapter.setSiblingContentSize(siblingSize);
213
+ }
214
+ }
215
+ function clampSize(size, state) {
216
+ size = Math.max(size, state.min);
217
+ size = safeMin(size, state.max, state.availableSpace);
218
+ return size;
219
+ }
220
+ function handleBoundariesDuringResize(adapter, state, inputDevice) {
221
+ if (state.currentSize === void 0) {
222
+ return false;
223
+ }
224
+ if (state.currentSize <= state.min) {
225
+ if (!state.isAtMin) {
226
+ adapter.activateRipple(inputDevice === "pointer");
227
+ if (inputDevice === "pointer") {
228
+ adapter.setBodyCursor(state.orientation, { resizable: state.resizable, boundary: "min" });
229
+ }
230
+ state.isAtMin = true;
231
+ }
232
+ return true;
233
+ } else if (state.isAtMin) {
234
+ state.isAtMin = false;
235
+ }
236
+ const max = safeMin(state.max, state.availableSpace);
237
+ if (state.currentSize >= max) {
238
+ if (!state.isAtMax) {
239
+ adapter.activateRipple(inputDevice === "pointer");
240
+ if (inputDevice === "pointer") {
241
+ adapter.setBodyCursor(state.orientation, { resizable: state.resizable, boundary: "max" });
242
+ }
243
+ state.isAtMax = true;
244
+ }
245
+ return true;
246
+ } else if (state.isAtMax) {
247
+ state.isAtMax = false;
248
+ }
249
+ if (inputDevice === "pointer") {
250
+ adapter.setBodyCursor(state.orientation);
251
+ }
252
+ return false;
253
+ }
254
+ function handleBoundariesAfterResize(adapter, size, state) {
255
+ if (size <= state.min) {
256
+ adapter.setHandleCursor(state.orientation, { resizable: state.resizable, boundary: "min" });
257
+ return true;
258
+ }
259
+ const max = safeMin(state.max, state.availableSpace);
260
+ if (size >= max) {
261
+ adapter.setHandleCursor(state.orientation, { resizable: state.resizable, boundary: "max" });
262
+ return true;
263
+ }
264
+ adapter.setHandleCursor(state.orientation);
265
+ return false;
266
+ }
267
+ function getValuenow(size, state) {
268
+ if (!state.availableSpace && !state.max) {
269
+ return 100;
270
+ }
271
+ const max = safeMin(state.max, state.availableSpace);
272
+ return scaleValue(size, state.min, max);
273
+ }
274
+ function getCursor(orientation, config) {
275
+ if (orientation === "horizontal") {
276
+ switch (config == null ? void 0 : config.boundary) {
277
+ case "min":
278
+ return config.resizable === "end" ? "e-resize" : "w-resize";
279
+ case "max":
280
+ return config.resizable === "end" ? "w-resize" : "e-resize";
281
+ default:
282
+ return "col-resize";
283
+ }
284
+ } else {
285
+ switch (config == null ? void 0 : config.boundary) {
286
+ case "min":
287
+ return config.resizable === "end" ? "s-resize" : "n-resize";
288
+ case "max":
289
+ return config.resizable === "end" ? "n-resize" : "s-resize";
290
+ default:
291
+ return "row-resize";
292
+ }
293
+ }
294
+ }
295
+ function getHandleIcon(orientation) {
296
+ return orientation === "horizontal" ? "drag_vertical_variant" : "drag_handle";
297
+ }
298
+ function getSplitViewPanelSibling(el) {
299
+ const resizable = el.resizable;
300
+ if (resizable === "off") {
301
+ return void 0;
302
+ }
303
+ let sibling = el;
304
+ do {
305
+ sibling = resizable === "end" ? sibling.nextElementSibling : sibling.previousElementSibling;
306
+ } while (sibling instanceof SplitViewPanelComponent && !sibling.open);
307
+ if (sibling instanceof SplitViewPanelComponent) {
308
+ return sibling;
309
+ }
310
+ return void 0;
311
+ }
312
+ function parseSize(value) {
313
+ var _a, _b;
314
+ if (!isNaN(+value)) {
315
+ return { amount: +value, unit: "px" };
316
+ }
317
+ const regex = /(^\d*\.?\d*)\s*(px|%$)?/i;
318
+ const parts = value.match(regex);
319
+ const amount = (parts == null ? void 0 : parts[1]) ? +parts[1] : -1;
320
+ const unit = (_b = (_a = parts == null ? void 0 : parts[2]) == null ? void 0 : _a.toLowerCase()) != null ? _b : "";
321
+ return { amount, unit };
322
+ }
323
+ function getPixelDimension(value, parentSize) {
324
+ const parsedSize = parseSize(value);
325
+ if (parsedSize.unit === "%") {
326
+ return percentToPixels(parsedSize.amount, parentSize);
327
+ }
328
+ return parsedSize.amount;
329
+ }
330
+
331
+ // dist/build/lib/staging/src/split-view/split-view-panel/split-view-panel-foundation.ts
332
+ var SplitViewPanelFoundation = class {
333
+ constructor(_adapter) {
334
+ this._adapter = _adapter;
335
+ this._size = 200;
336
+ this._min = 0;
337
+ this._accessibleLabel = "Split view panel";
338
+ this._open = true;
339
+ this._state = initState();
340
+ this._isInitialized = false;
341
+ this._parentProperties = {};
342
+ this._pointerdownListener = (evt) => this._onPointerdown(evt);
343
+ this._pointerupListener = (evt) => this._onPointerup(evt);
344
+ this._pointermoveListener = (evt) => this._onPointermove(evt);
345
+ this._keydownListener = (evt) => this._onKeydown(evt);
346
+ this._keyupListener = (evt) => this._onKeyup(evt);
347
+ }
348
+ get _orientation() {
349
+ return this._state.orientation;
350
+ }
351
+ set _orientation(value) {
352
+ this._state.orientation = value;
353
+ }
354
+ get _resizable() {
355
+ return this._state.resizable;
356
+ }
357
+ set _resizable(value) {
358
+ this._state.resizable = value;
359
+ }
360
+ get _pixelMin() {
361
+ return this._state.min;
362
+ }
363
+ set _pixelMin(value) {
364
+ this._state.min = value;
365
+ }
366
+ get _pixelMax() {
367
+ return this._state.max;
368
+ }
369
+ set _pixelMax(value) {
370
+ this._state.max = value;
371
+ }
372
+ get _appliedDisabled() {
373
+ var _a, _b;
374
+ return (_b = (_a = this._disabled) != null ? _a : this._parentProperties.disabled) != null ? _b : false;
375
+ }
376
+ get _appliedAllowClose() {
377
+ var _a, _b;
378
+ return (_b = (_a = this._allowClose) != null ? _a : this._parentProperties.allowClose) != null ? _b : false;
379
+ }
380
+ get _appliedAutoClose() {
381
+ var _a, _b;
382
+ return (_b = (_a = this._autoClose) != null ? _a : this._parentProperties.autoClose) != null ? _b : false;
383
+ }
384
+ get _appliedAutoCloseThreshold() {
385
+ var _a, _b;
386
+ return (_b = (_a = this._autoCloseThreshold) != null ? _a : this._parentProperties.autoCloseThreshold) != null ? _b : 0;
387
+ }
388
+ initialize() {
389
+ this._adapter.initialize();
390
+ this._adapter.setPointerdownListener(this._pointerdownListener);
391
+ this._adapter.setKeydownListener(this._keydownListener);
392
+ this._getParentProperties();
393
+ this._applyResizable();
394
+ this._applyMin();
395
+ this._applyMax();
396
+ this._applySize();
397
+ this._applyAccessibleLabel();
398
+ this._applyOpen();
399
+ this._applyDisabled();
400
+ this._applyAllowClose();
401
+ this._applyAutoClose();
402
+ this._applyAutoCloseThreshold();
403
+ this._isInitialized = true;
404
+ }
405
+ disconnect() {
406
+ this._adapter.removePointerupListener(this._pointerupListener);
407
+ this._adapter.removePointermoveListener(this._pointermoveListener);
408
+ }
409
+ _onPointerdown(evt) {
410
+ if (this._appliedDisabled || !this._allowResize("pointer")) {
411
+ return;
412
+ }
413
+ evt.preventDefault();
414
+ this._adapter.setPointermoveListener(this._pointermoveListener);
415
+ this._adapter.setPointerupListener(this._pointerupListener);
416
+ this._handlePointerdown(evt);
417
+ }
418
+ _onPointerup(evt) {
419
+ evt.preventDefault();
420
+ this._adapter.removePointermoveListener(this._pointermoveListener);
421
+ this._adapter.removePointerupListener(this._pointerupListener);
422
+ this._handlePointerup();
423
+ }
424
+ _onPointermove(evt) {
425
+ if (this._appliedDisabled) {
426
+ return;
427
+ }
428
+ evt.preventDefault();
429
+ if (evt.buttons === 0) {
430
+ this._adapter.removePointermoveListener(this._pointermoveListener);
431
+ this._adapter.removePointerupListener(this._pointerupListener);
432
+ this._handlePointerup();
433
+ return;
434
+ }
435
+ this._handlePointermove(evt);
436
+ }
437
+ _onKeydown(evt) {
438
+ if (this._appliedDisabled) {
439
+ return;
440
+ }
441
+ if (evt.key === "Enter") {
442
+ this._handleEnterKey(evt);
443
+ } else if (evt.key === "Home" && this._allowResize("keyboard")) {
444
+ this._handleHomeKey(evt);
445
+ } else if (evt.key === "End" && this._allowResize("keyboard")) {
446
+ this._handleEndKey(evt);
447
+ } else if (eventIncludesArrowKey(evt) && this._allowResize("keyboard")) {
448
+ this._adapter.setKeyupListener(this._keyupListener);
449
+ this._handleArrowKey(evt);
450
+ }
451
+ }
452
+ _onKeyup(evt) {
453
+ if (eventIncludesArrowKey(evt)) {
454
+ this._adapter.removeKeyupListener(this._keyupListener);
455
+ this._handleArrowKeyUp();
456
+ }
457
+ }
458
+ _handleEnterKey(evt) {
459
+ if (!this._appliedAllowClose) {
460
+ return;
461
+ }
462
+ evt.preventDefault();
463
+ this._tryOpenOrClose(!this._open, false, true);
464
+ }
465
+ _handleHomeKey(evt) {
466
+ evt.preventDefault();
467
+ const size = minResize(this._adapter, this._state);
468
+ this._adapter.emitHostEvent(SPLIT_VIEW_PANEL_CONSTANTS.events.RESIZE, size);
469
+ this._tryAutoClose();
470
+ }
471
+ _handleEndKey(evt) {
472
+ evt.preventDefault();
473
+ const size = maxResize(this._adapter, this._state);
474
+ this._adapter.emitHostEvent(SPLIT_VIEW_PANEL_CONSTANTS.events.RESIZE, size);
475
+ }
476
+ _handleArrowKey(evt) {
477
+ let increment = 0;
478
+ if (this._orientation === "horizontal") {
479
+ switch (evt.key) {
480
+ case "ArrowLeft":
481
+ increment = -1;
482
+ break;
483
+ case "ArrowRight":
484
+ increment = 1;
485
+ break;
486
+ default:
487
+ return;
488
+ }
489
+ } else {
490
+ switch (evt.key) {
491
+ case "ArrowUp":
492
+ increment = -1;
493
+ break;
494
+ case "ArrowDown":
495
+ increment = 1;
496
+ break;
497
+ default:
498
+ return;
499
+ }
500
+ }
501
+ evt.preventDefault();
502
+ if (this._resizable === "start") {
503
+ increment *= -1;
504
+ }
505
+ if (evt.shiftKey) {
506
+ increment *= 10;
507
+ }
508
+ this._tryHandleArrowKeyDown();
509
+ this._handleArrowKeyHeld(increment);
510
+ }
511
+ _tryHandleArrowKeyDown() {
512
+ if (!this._state.arrowKeyHeld) {
513
+ this._startResize();
514
+ }
515
+ this._state.arrowKeyHeld = true;
516
+ }
517
+ _handleArrowKeyUp() {
518
+ this._endResize();
519
+ }
520
+ _handleArrowKeyHeld(increment) {
521
+ if (keyboardResize(this._adapter, increment, this._state)) {
522
+ this._adapter.emitHostEvent(SPLIT_VIEW_PANEL_CONSTANTS.events.RESIZE, this._state.currentSize);
523
+ }
524
+ }
525
+ _handlePointerdown(evt) {
526
+ this._adapter.setGrabbed(true);
527
+ this._adapter.focusHandle();
528
+ this._startResize();
529
+ this._state.startPoint = this._orientation === "horizontal" ? evt.clientX : evt.clientY;
530
+ handleBoundariesDuringResize(this._adapter, this._state, "pointer");
531
+ }
532
+ _handlePointerup() {
533
+ this._adapter.setGrabbed(false);
534
+ this._adapter.deactivateRipple();
535
+ this._endResize();
536
+ }
537
+ _handlePointermove(evt) {
538
+ if (pointerResize(this._adapter, evt, this._state)) {
539
+ this._adapter.emitHostEvent(SPLIT_VIEW_PANEL_CONSTANTS.events.RESIZE, this._state.currentSize);
540
+ }
541
+ }
542
+ _allowResize(inputDeviceType) {
543
+ return this._adapter.emitHostEvent(SPLIT_VIEW_PANEL_CONSTANTS.events.WILL_RESIZE, { inputDeviceType }, true, true);
544
+ }
545
+ _startResize() {
546
+ this._state = setState(this._adapter, this._state);
547
+ this._adapter.emitHostEvent(SPLIT_VIEW_PANEL_CONSTANTS.events.RESIZE_START, this._state.startSize);
548
+ }
549
+ _endResize() {
550
+ this._adapter.emitHostEvent(SPLIT_VIEW_PANEL_CONSTANTS.events.RESIZE_END, this._state.currentSize);
551
+ this._adapter.updateParent({ accessibility: this._state.startSize !== this._state.currentSize, cursor: true });
552
+ this._state = clearState(this._state);
553
+ this._tryAutoClose();
554
+ }
555
+ _tryOpenOrClose(shouldOpen = true, auto = false, userInitiated = false) {
556
+ const eventType = shouldOpen ? SPLIT_VIEW_PANEL_CONSTANTS.events.WILL_OPEN : SPLIT_VIEW_PANEL_CONSTANTS.events.WILL_CLOSE;
557
+ const event = {
558
+ auto,
559
+ userInitiated
560
+ };
561
+ const isAllowed = this._adapter.emitHostEvent(eventType, event, true, true);
562
+ if (!isAllowed) {
563
+ return;
564
+ }
565
+ this._open = shouldOpen;
566
+ this._applyOpen(event);
567
+ }
568
+ _tryAutoClose() {
569
+ const size = this._adapter.getContentSize(this._orientation);
570
+ if (this._appliedAutoClose && size <= this._appliedAutoCloseThreshold) {
571
+ this._tryOpenOrClose(false, true, false);
572
+ }
573
+ }
574
+ _getParentProperties() {
575
+ const parentDisabled = this._adapter.getParentProperty("disabled");
576
+ this._parentProperties.disabled = parentDisabled;
577
+ this._applyParentDisabled();
578
+ const parentAllowClose = this._adapter.getParentProperty("allowClose");
579
+ this._parentProperties.allowClose = parentAllowClose;
580
+ const parentAutoClose = this._adapter.getParentProperty("autoClose");
581
+ this._parentProperties.autoClose = parentAutoClose;
582
+ this._applyParentAutoClose();
583
+ const parentAutoCloseThreshold = this._adapter.getParentProperty("autoCloseThreshold");
584
+ this._parentProperties.autoCloseThreshold = parentAutoCloseThreshold;
585
+ this._applyParentAutoCloseThreshold();
586
+ }
587
+ _applyOrientation() {
588
+ this._adapter.setOrientation(this._orientation);
589
+ }
590
+ get resizable() {
591
+ return this._resizable;
592
+ }
593
+ set resizable(value) {
594
+ if (this._resizable !== value) {
595
+ this._resizable = value;
596
+ this._applyResizable();
597
+ }
598
+ }
599
+ _applyResizable() {
600
+ this._adapter.setHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.RESIZABLE, this._resizable);
601
+ this._adapter.setResizable(this._resizable);
602
+ }
603
+ get size() {
604
+ return this._size;
605
+ }
606
+ set size(value) {
607
+ if (this._size.toString() !== value.toString()) {
608
+ this._size = value;
609
+ this._applySize();
610
+ }
611
+ }
612
+ _applySize() {
613
+ const parentSize = this._adapter.getParentSize(this._orientation);
614
+ const pixelSize = getPixelDimension(this._size, parentSize);
615
+ this._adapter.setHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.SIZE, this._size.toString());
616
+ this._adapter.setContentSize(pixelSize);
617
+ window.requestAnimationFrame(() => {
618
+ const availableSpace = this._adapter.getAvailableSpace(this._orientation, this._resizable);
619
+ const maxSize = safeMin(this._pixelMax, availableSpace);
620
+ const newValue = scaleValue(pixelSize, this._pixelMin, maxSize);
621
+ this._adapter.setValuenow(newValue);
622
+ this._adapter.updateParent({ cursor: true });
623
+ });
624
+ }
625
+ get min() {
626
+ return this._min;
627
+ }
628
+ set min(value) {
629
+ if (this._min.toString() !== value.toString()) {
630
+ this._min = value;
631
+ this._applyMin();
632
+ }
633
+ }
634
+ _applyMin() {
635
+ this._adapter.setHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.MIN, this._min.toString());
636
+ const parentSize = this._adapter.getParentSize(this._orientation);
637
+ this._pixelMin = getPixelDimension(this._min, parentSize);
638
+ if (this._resizable === "off") {
639
+ return;
640
+ }
641
+ const size = this._adapter.getContentSize(this._orientation);
642
+ if (size < this._pixelMin) {
643
+ this.setContentSize(size);
644
+ }
645
+ }
646
+ get max() {
647
+ return this._max;
648
+ }
649
+ set max(value) {
650
+ var _a;
651
+ if (((_a = this._max) == null ? void 0 : _a.toString()) !== (value == null ? void 0 : value.toString())) {
652
+ this._max = value;
653
+ this._applyMax();
654
+ }
655
+ }
656
+ _applyMax() {
657
+ var _a;
658
+ this._adapter.toggleHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.MAX, this._max !== void 0, (_a = this._max) == null ? void 0 : _a.toString());
659
+ if (this._max === void 0) {
660
+ this._pixelMax = void 0;
661
+ return;
662
+ }
663
+ const parentSize = this._adapter.getParentSize(this._orientation);
664
+ this._pixelMax = getPixelDimension(this._max, parentSize);
665
+ if (this._resizable === "off") {
666
+ return;
667
+ }
668
+ const size = this._adapter.getContentSize(this._orientation);
669
+ if (size > this._pixelMax) {
670
+ this.setContentSize(size);
671
+ }
672
+ }
673
+ get accessibleLabel() {
674
+ return this._accessibleLabel;
675
+ }
676
+ set accessibleLabel(value) {
677
+ if (this._accessibleLabel !== value) {
678
+ this._accessibleLabel = value;
679
+ this._applyAccessibleLabel();
680
+ }
681
+ }
682
+ _applyAccessibleLabel() {
683
+ this._adapter.setHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.ACCESSIBLE_LABEL, this._accessibleLabel);
684
+ this._adapter.setAccessibleLabel(this._accessibleLabel);
685
+ }
686
+ get open() {
687
+ return this._open;
688
+ }
689
+ set open(value) {
690
+ if (this._open !== value) {
691
+ if (this._isInitialized) {
692
+ this._tryOpenOrClose(value, false, false);
693
+ return;
694
+ }
695
+ this._open = value;
696
+ const event = this._isInitialized ? {
697
+ auto: false,
698
+ userInitiated: false
699
+ } : void 0;
700
+ this._applyOpen(event);
701
+ }
702
+ }
703
+ _applyOpen(event) {
704
+ this._adapter.setHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.OPEN, this._open.toString());
705
+ this._adapter.setOpen(this._open, this._isInitialized, event);
706
+ }
707
+ get disabled() {
708
+ return this._disabled;
709
+ }
710
+ set disabled(value) {
711
+ if (this._disabled !== value) {
712
+ this._disabled = value;
713
+ this._applyDisabled();
714
+ }
715
+ }
716
+ _applyDisabled() {
717
+ var _a;
718
+ this._adapter.toggleHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.DISABLED, (_a = this._disabled) != null ? _a : false);
719
+ this._adapter.setDisabled(this._appliedDisabled);
720
+ }
721
+ _applyParentDisabled() {
722
+ if (this._isInitialized && !isDefined(this._disabled)) {
723
+ this._adapter.setDisabled(this._appliedDisabled);
724
+ }
725
+ }
726
+ get allowClose() {
727
+ return this._allowClose;
728
+ }
729
+ set allowClose(value) {
730
+ if (this._allowClose !== value) {
731
+ this._allowClose = value;
732
+ this._applyAllowClose();
733
+ }
734
+ }
735
+ _applyAllowClose() {
736
+ var _a;
737
+ this._adapter.toggleHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.ALLOW_CLOSE, (_a = this._allowClose) != null ? _a : false);
738
+ }
739
+ get autoClose() {
740
+ return this._autoClose;
741
+ }
742
+ set autoClose(value) {
743
+ if (this._autoClose !== value) {
744
+ this._autoClose = value;
745
+ this._applyAutoClose();
746
+ }
747
+ }
748
+ _applyAutoClose() {
749
+ var _a;
750
+ this._adapter.toggleHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.AUTO_CLOSE, (_a = this._autoClose) != null ? _a : false);
751
+ if (this._isInitialized) {
752
+ this._tryAutoClose();
753
+ }
754
+ }
755
+ _applyParentAutoClose() {
756
+ if (this._isInitialized && !isDefined(this._autoClose)) {
757
+ this._tryAutoClose();
758
+ }
759
+ }
760
+ get autoCloseThreshold() {
761
+ return this._autoCloseThreshold;
762
+ }
763
+ set autoCloseThreshold(value) {
764
+ if (this._autoCloseThreshold !== value) {
765
+ this._autoCloseThreshold = value;
766
+ this._applyAutoCloseThreshold();
767
+ }
768
+ }
769
+ _applyAutoCloseThreshold() {
770
+ var _a;
771
+ this._adapter.toggleHostAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.AUTO_CLOSE_THRESHOLD, isDefined(this._autoCloseThreshold), (_a = this.autoCloseThreshold) == null ? void 0 : _a.toString());
772
+ if (this._isInitialized) {
773
+ this._tryAutoClose();
774
+ }
775
+ }
776
+ _applyParentAutoCloseThreshold() {
777
+ if (this._isInitialized && !isDefined(this._autoCloseThreshold)) {
778
+ this._tryAutoClose();
779
+ }
780
+ }
781
+ getContentSize() {
782
+ return this._adapter.getContentSize(this._orientation);
783
+ }
784
+ getCollapsibleSize() {
785
+ const parentSize = this._adapter.getParentSize(this._orientation);
786
+ const pixelMin = getPixelDimension(this._min, parentSize);
787
+ return this._adapter.getContentSize(this._orientation) - pixelMin;
788
+ }
789
+ setContentSize(size) {
790
+ if (this._resizable === "off") {
791
+ return;
792
+ }
793
+ const newSize = clampSize(size, this._state);
794
+ this._adapter.setContentSize(newSize);
795
+ if (this._isInitialized) {
796
+ this._adapter.emitHostEvent(SPLIT_VIEW_PANEL_CONSTANTS.events.RESIZE, newSize);
797
+ }
798
+ }
799
+ update(config) {
800
+ if (config.orientation) {
801
+ this._orientation = config.orientation;
802
+ this._applyOrientation();
803
+ }
804
+ if (config.properties) {
805
+ if (isDefined(config.properties.disabled) && this._parentProperties.disabled !== config.properties.disabled) {
806
+ this._parentProperties.disabled = config.properties.disabled;
807
+ this._applyDisabled();
808
+ }
809
+ if (isDefined(config.properties.allowClose)) {
810
+ this._parentProperties.allowClose = config.properties.allowClose;
811
+ }
812
+ if (isDefined(config.properties.autoClose) && this._parentProperties.autoClose !== config.properties.autoClose) {
813
+ this._parentProperties.autoClose = config.properties.autoClose;
814
+ if (!isDefined(this._autoClose)) {
815
+ this._applyAutoClose();
816
+ }
817
+ }
818
+ if (isDefined(config.properties.autoCloseThreshold) && this._parentProperties.autoCloseThreshold !== config.properties.autoCloseThreshold) {
819
+ this._parentProperties.autoCloseThreshold = config.properties.autoCloseThreshold;
820
+ if (!isDefined(this._autoCloseThreshold)) {
821
+ this._applyAutoCloseThreshold();
822
+ }
823
+ }
824
+ }
825
+ if (config.size) {
826
+ const parentSize = this._adapter.getParentSize(this._orientation);
827
+ this._pixelMin = getPixelDimension(this._min, parentSize);
828
+ this._pixelMax = isDefined(this._max) ? getPixelDimension(this._max, parentSize) : void 0;
829
+ this.setContentSize(this._adapter.getContentSize(this._orientation));
830
+ }
831
+ if (this._resizable === "off") {
832
+ return;
833
+ }
834
+ const size = this._adapter.getContentSize(this._orientation);
835
+ const availableSpace = this._adapter.getAvailableSpace(this._orientation, this._resizable);
836
+ if (config.accessibility) {
837
+ const valueNow = getValuenow(size, __spreadProps(__spreadValues({}, this._state), { availableSpace }));
838
+ this._adapter.setValuenow(valueNow);
839
+ }
840
+ if (config.cursor) {
841
+ handleBoundariesAfterResize(this._adapter, size, __spreadProps(__spreadValues({}, this._state), { availableSpace }));
842
+ }
843
+ if (config.clearCursor) {
844
+ this._adapter.setHandleCursor();
845
+ }
846
+ }
847
+ };
848
+
849
+ // dist/build/lib/staging/src/split-view/split-view/split-view-constants.ts
850
+ var elementName2 = `${COMPONENT_NAME_PREFIX}split-view`;
851
+ var attributes2 = {
852
+ ORIENTATION: "orientation",
853
+ DISABLED: "disabled",
854
+ ALLOW_CLOSE: "allow-close",
855
+ AUTO_CLOSE: "auto-close",
856
+ AUTO_CLOSE_THRESHOLD: "auto-close-threshold"
857
+ };
858
+ var classes2 = {
859
+ ROOT: "forge-split-view"
860
+ };
861
+ var ids2 = {
862
+ ROOT: "root"
863
+ };
864
+ var selectors2 = {
865
+ ROOT: `#${ids2.ROOT}`,
866
+ PANEL: SPLIT_VIEW_PANEL_CONSTANTS.elementName
867
+ };
868
+ var numbers2 = {
869
+ RESIZE_THROTTLE_THRESHOLD: 200
870
+ };
871
+ var customCssProperties2 = {
872
+ ANIMATING_LAYER: "--forge-split-view-animating-layer"
873
+ };
874
+ var SPLIT_VIEW_CONSTANTS = {
875
+ elementName: elementName2,
876
+ attributes: attributes2,
877
+ classes: classes2,
878
+ ids: ids2,
879
+ selectors: selectors2,
880
+ numbers: numbers2,
881
+ customCssProperties: customCssProperties2
882
+ };
883
+
884
+ // dist/build/lib/staging/src/split-view/split-view-panel/split-view-panel-adapter.ts
885
+ var SplitViewPanelAdapter = class extends BaseAdapter {
886
+ constructor(component) {
887
+ super(component);
888
+ this._root = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.ROOT);
889
+ this._handle = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.HANDLE);
890
+ this._icon = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.ICON);
891
+ this._ripple = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.RIPPLE);
892
+ this._content = getShadowElement(component, SPLIT_VIEW_PANEL_CONSTANTS.selectors.CONTENT);
893
+ }
894
+ initialize() {
895
+ const parent = this._component.parentElement;
896
+ if ((parent == null ? void 0 : parent.tagName.toLowerCase()) === SPLIT_VIEW_CONSTANTS.elementName) {
897
+ this._parent = parent;
898
+ }
899
+ }
900
+ setPointerdownListener(listener) {
901
+ this._handle.addEventListener("pointerdown", listener);
902
+ }
903
+ setPointerupListener(listener) {
904
+ document.addEventListener("pointerup", listener);
905
+ }
906
+ removePointerupListener(listener) {
907
+ document.removeEventListener("pointerup", listener);
908
+ }
909
+ setPointermoveListener(listener) {
910
+ document.addEventListener("pointermove", listener);
911
+ }
912
+ removePointermoveListener(listener) {
913
+ document.removeEventListener("pointermove", listener);
914
+ }
915
+ setKeydownListener(listener) {
916
+ this._handle.addEventListener("keydown", listener);
917
+ }
918
+ setKeyupListener(listener) {
919
+ this._handle.addEventListener("keyup", listener);
920
+ }
921
+ removeKeyupListener(listener) {
922
+ this._handle.removeEventListener("keyup", listener);
923
+ }
924
+ getParentProperty(name) {
925
+ var _a;
926
+ return (_a = this._parent) == null ? void 0 : _a[name];
927
+ }
928
+ setAccessibleLabel(value) {
929
+ this._handle.setAttribute("aria-label", value);
930
+ }
931
+ setDisabled(value) {
932
+ this._root.classList.toggle(SPLIT_VIEW_PANEL_CONSTANTS.classes.DISABLED, value);
933
+ if (this._handle) {
934
+ this._handle.setAttribute("tabindex", value ? "-1" : "0");
935
+ toggleAttribute(this._handle, value, "aria-disabled", "true");
936
+ }
937
+ }
938
+ setResizable(value) {
939
+ this._root.setAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.RESIZABLE, value.toString());
940
+ toggleAttribute(this._handle, value !== "off", "aria-valuemin", "0");
941
+ toggleAttribute(this._handle, value !== "off", "aria-valuemax", "100");
942
+ if (value === "off") {
943
+ return;
944
+ }
945
+ this._handle.remove();
946
+ if (value === "end") {
947
+ this._root.append(this._handle);
948
+ } else {
949
+ this._root.prepend(this._handle);
950
+ }
951
+ }
952
+ setOrientation(value) {
953
+ this._root.setAttribute(SPLIT_VIEW_PANEL_CONSTANTS.attributes.ORIENTATION, value);
954
+ this._handle.setAttribute("aria-orientation", value === "horizontal" ? "vertical" : "horizontal");
955
+ this._icon.setAttribute("name", getHandleIcon(value));
956
+ }
957
+ setOpen(value, withAnimation = true, event) {
958
+ var _a, _b;
959
+ const finish = () => {
960
+ var _a2, _b2;
961
+ if (!value) {
962
+ this._root.classList.add(SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSED);
963
+ }
964
+ if (event) {
965
+ this.emitHostEvent(value ? SPLIT_VIEW_PANEL_CONSTANTS.events.DID_OPEN : SPLIT_VIEW_PANEL_CONSTANTS.events.DID_CLOSE, event);
966
+ }
967
+ (_a2 = this._parent) == null ? void 0 : _a2.unlayerSlottedPanels();
968
+ (_b2 = this._parent) == null ? void 0 : _b2.update({ accessibility: true, cursor: true });
969
+ };
970
+ if (value && this._root.classList.contains(SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSED)) {
971
+ this._root.classList.remove(SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSED);
972
+ if (!withAnimation) {
973
+ finish();
974
+ return;
975
+ }
976
+ (_a = this._parent) == null ? void 0 : _a.layerSlottedPanels(this._component);
977
+ playKeyframeAnimation(this._root, SPLIT_VIEW_PANEL_CONSTANTS.classes.OPENING, true).then(() => {
978
+ finish();
979
+ });
980
+ } else if (!value && !this._root.classList.contains(SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSED)) {
981
+ if (!withAnimation) {
982
+ finish();
983
+ return;
984
+ }
985
+ (_b = this._parent) == null ? void 0 : _b.layerSlottedPanels(this._component);
986
+ playKeyframeAnimation(this._root, SPLIT_VIEW_PANEL_CONSTANTS.classes.CLOSING, true).then(() => {
987
+ finish();
988
+ });
989
+ }
990
+ }
991
+ setGrabbed(value) {
992
+ var _a;
993
+ this._root.classList.toggle(SPLIT_VIEW_PANEL_CONSTANTS.classes.GRABBED, value);
994
+ this._handle.setAttribute("aria-grabbed", value.toString());
995
+ (_a = this._parent) == null ? void 0 : _a.update({ clearCursor: true });
996
+ if (!value) {
997
+ document.body.style.removeProperty("cursor");
998
+ }
999
+ }
1000
+ setHandleCursor(orientation, config) {
1001
+ if (orientation) {
1002
+ this._root.style.setProperty(SPLIT_VIEW_PANEL_CONSTANTS.customCssProperties.CURSOR, getCursor(orientation, config));
1003
+ } else {
1004
+ this._root.style.removeProperty(SPLIT_VIEW_PANEL_CONSTANTS.customCssProperties.CURSOR);
1005
+ }
1006
+ }
1007
+ setBodyCursor(orientation, config) {
1008
+ document.body.style.setProperty("cursor", getCursor(orientation, config));
1009
+ }
1010
+ getContentSize(orientation) {
1011
+ return orientation === "horizontal" ? this._content.clientWidth : this._content.clientHeight;
1012
+ }
1013
+ setContentSize(value) {
1014
+ this._component.style.setProperty(SPLIT_VIEW_PANEL_CONSTANTS.customCssProperties.SIZE, `${value}px`);
1015
+ }
1016
+ setValuenow(value) {
1017
+ this._handle.setAttribute("aria-valuenow", value.toFixed(2));
1018
+ }
1019
+ focusHandle() {
1020
+ this._handle.focus();
1021
+ }
1022
+ getAvailableSpace(orientation, resizable) {
1023
+ if (resizable === "off") {
1024
+ return -1;
1025
+ }
1026
+ const sibling = getSplitViewPanelSibling(this._component);
1027
+ if (sibling) {
1028
+ const siblingSize = sibling.getCollapsibleSize();
1029
+ return siblingSize + this.getContentSize(orientation);
1030
+ } else {
1031
+ return this.getParentSize(orientation);
1032
+ }
1033
+ }
1034
+ getSiblingContentSize() {
1035
+ var _a;
1036
+ const sibling = getSplitViewPanelSibling(this._component);
1037
+ return (_a = sibling == null ? void 0 : sibling.getContentSize()) != null ? _a : 0;
1038
+ }
1039
+ setSiblingContentSize(value) {
1040
+ const sibling = getSplitViewPanelSibling(this._component);
1041
+ sibling == null ? void 0 : sibling.setContentSize(value);
1042
+ }
1043
+ activateRipple(fromActivated) {
1044
+ if (fromActivated) {
1045
+ this._ripple.deactivate();
1046
+ window.setTimeout(() => {
1047
+ this._ripple.activate();
1048
+ }, SPLIT_VIEW_PANEL_CONSTANTS.numbers.RIPPLE_ACTIVATION_WAIT);
1049
+ } else {
1050
+ this._ripple.activate();
1051
+ this._ripple.deactivate();
1052
+ }
1053
+ }
1054
+ deactivateRipple() {
1055
+ this._ripple.deactivate();
1056
+ }
1057
+ getParentSize(orientation) {
1058
+ var _a, _b;
1059
+ const parentSize = orientation === "horizontal" ? (_a = this._parent) == null ? void 0 : _a.clientWidth : (_b = this._parent) == null ? void 0 : _b.clientHeight;
1060
+ return parentSize != null ? parentSize : 0;
1061
+ }
1062
+ updateParent(config) {
1063
+ var _a;
1064
+ (_a = this._parent) == null ? void 0 : _a.update(config);
1065
+ }
1066
+ };
1067
+
1068
+ // dist/build/lib/staging/src/split-view/split-view-panel/split-view-panel.ts
1069
+ var template = '<template><div class="forge-split-view-panel" id="root" part="root"><div class="forge-split-view-panel__handle" id="handle" part="handle" role="separator" aria-controls="content" aria-grabbed="false" tabindex="0"><forge-icon class="forge-split-view-panel__icon" id="icon" part="icon"></forge-icon><forge-ripple id="ripple" part="ripple"></forge-ripple></div><div class="forge-split-view-panel__content" id="content" part="content" role="group"><slot></slot></div></div></template>';
1070
+ var styles = '@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{--mdc-ripple-color:var(--mdc-theme-on-surface)}.forge-split-view-panel{display:-webkit-box;display:flex;width:100%;height:100%;overflow:hidden;contain:paint size}.forge-split-view-panel__handle{color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-light,rgba(0,0,0,.54));background-color:#e0e0e0;background-color:var(--forge-theme-border-color,#e0e0e0);display:-webkit-box;display:flex;flex-shrink:0;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;outline:0}.forge-split-view-panel__content{-webkit-box-flex:1;flex:1;overflow:hidden}.forge-split-view-panel--closed{display:none}.forge-split-view-panel--disabled #handle{pointer-events:none}.forge-split-view-panel--disabled .forge-split-view-panel__icon{display:none}.forge-split-view-panel[orientation=horizontal]{min-width:8px;min-width:var(--forge-split-view-handle-width,8px);width:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.forge-split-view-panel[orientation=horizontal] .forge-split-view-panel__handle{width:8px;width:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;-webkit-animation-name:uz9zuy8;animation-name:uz9zuy8;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1)}@-webkit-keyframes uz9zuy8{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes uz9zuy8{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=start]{position:absolute;top:0;right:0;-webkit-animation-name:uz9zuye;animation-name:uz9zuye;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1)}@-webkit-keyframes uz9zuye{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes uz9zuye{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;-webkit-animation-name:uz9zuyf;animation-name:uz9zuyf;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-direction:reverse}@-webkit-keyframes uz9zuyf{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes uz9zuyf{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=start]{position:absolute;top:0;right:0;-webkit-animation-name:uz9zuyr;animation-name:uz9zuyr;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-direction:reverse}@-webkit-keyframes uz9zuyr{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes uz9zuyr{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.forge-split-view-panel[orientation=vertical]{min-height:8px;min-height:var(--forge-split-view-handle-width,8px);height:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.forge-split-view-panel[orientation=vertical] .forge-split-view-panel__handle{height:8px;height:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;-webkit-animation-name:uz9zuzr;animation-name:uz9zuzr;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1)}@-webkit-keyframes uz9zuzr{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@keyframes uz9zuzr{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=start]{position:absolute;bottom:0;left:0;-webkit-animation-name:uz9zv05;animation-name:uz9zv05;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1)}@-webkit-keyframes uz9zv05{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes uz9zv05{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;-webkit-animation-name:uz9zv0c;animation-name:uz9zv0c;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-direction:reverse}@-webkit-keyframes uz9zv0c{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}@keyframes uz9zv0c{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(-100%);transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=start]{position:absolute;bottom:0;left:0;-webkit-animation-name:uz9zv0x;animation-name:uz9zv0x;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-direction:reverse}@-webkit-keyframes uz9zv0x{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes uz9zv0x{from{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(100%);transform:translateY(100%)}}:host{z-index:var(--forge-split-view-animating-layer)!important;display:block;position:relative;height:100%;width:100%;-webkit-box-flex:0;flex:0}:host([hidden]){display:none}:host(:not([resizable=start],[resizable=end])){-webkit-box-flex:1;flex:1}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel{width:100%;height:100%;min-width:0;min-height:0}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel__handle{display:none}';
1071
+ var SplitViewPanelComponent = class extends BaseComponent {
1072
+ constructor() {
1073
+ super();
1074
+ IconRegistry.define([tylIconDragVerticalVariant, tylIconDragHandle]);
1075
+ attachShadowTemplate(this, template, styles);
1076
+ this._foundation = new SplitViewPanelFoundation(new SplitViewPanelAdapter(this));
1077
+ }
1078
+ static get observedAttributes() {
1079
+ return [
1080
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.RESIZABLE,
1081
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.SIZE,
1082
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.MIN,
1083
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.MAX,
1084
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.ACCESSIBLE_LABEL,
1085
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.OPEN,
1086
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.DISABLED,
1087
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.ALLOW_CLOSE,
1088
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.AUTO_CLOSE,
1089
+ SPLIT_VIEW_PANEL_CONSTANTS.attributes.AUTO_CLOSE_THRESHOLD
1090
+ ];
1091
+ }
1092
+ connectedCallback() {
1093
+ this._foundation.initialize();
1094
+ }
1095
+ disconnectedCallback() {
1096
+ this._foundation.disconnect();
1097
+ }
1098
+ attributeChangedCallback(name, oldValue, newValue) {
1099
+ switch (name) {
1100
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.RESIZABLE:
1101
+ this.resizable = newValue;
1102
+ break;
1103
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.SIZE:
1104
+ this.size = newValue;
1105
+ break;
1106
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.MIN:
1107
+ this.min = newValue;
1108
+ break;
1109
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.MAX:
1110
+ if (newValue) {
1111
+ this.max = newValue;
1112
+ } else {
1113
+ this.max = void 0;
1114
+ }
1115
+ break;
1116
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.ACCESSIBLE_LABEL:
1117
+ this.accessibleLabel = newValue;
1118
+ break;
1119
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.OPEN:
1120
+ this.open = coerceBoolean(newValue);
1121
+ break;
1122
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.DISABLED:
1123
+ if (this.hasAttribute(name)) {
1124
+ this.disabled = coerceBoolean(newValue);
1125
+ } else {
1126
+ this.disabled = void 0;
1127
+ }
1128
+ break;
1129
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.ALLOW_CLOSE:
1130
+ if (this.hasAttribute(name)) {
1131
+ this.allowClose = coerceBoolean(newValue);
1132
+ } else {
1133
+ this.allowClose = void 0;
1134
+ }
1135
+ break;
1136
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.AUTO_CLOSE:
1137
+ if (this.hasAttribute(name)) {
1138
+ this.autoClose = coerceBoolean(newValue);
1139
+ } else {
1140
+ this.autoClose = void 0;
1141
+ }
1142
+ break;
1143
+ case SPLIT_VIEW_PANEL_CONSTANTS.attributes.AUTO_CLOSE_THRESHOLD:
1144
+ if (newValue) {
1145
+ this.autoCloseThreshold = coerceNumber(newValue);
1146
+ } else {
1147
+ this.autoCloseThreshold = void 0;
1148
+ }
1149
+ break;
1150
+ }
1151
+ }
1152
+ getContentSize() {
1153
+ return this._foundation.getContentSize();
1154
+ }
1155
+ getCollapsibleSize() {
1156
+ return this._foundation.getCollapsibleSize();
1157
+ }
1158
+ setContentSize(size) {
1159
+ this._foundation.setContentSize(size);
1160
+ }
1161
+ update(config) {
1162
+ this._foundation.update(config);
1163
+ }
1164
+ };
1165
+ __decorateClass([
1166
+ FoundationProperty()
1167
+ ], SplitViewPanelComponent.prototype, "resizable", 2);
1168
+ __decorateClass([
1169
+ FoundationProperty()
1170
+ ], SplitViewPanelComponent.prototype, "size", 2);
1171
+ __decorateClass([
1172
+ FoundationProperty()
1173
+ ], SplitViewPanelComponent.prototype, "min", 2);
1174
+ __decorateClass([
1175
+ FoundationProperty()
1176
+ ], SplitViewPanelComponent.prototype, "max", 2);
1177
+ __decorateClass([
1178
+ FoundationProperty()
1179
+ ], SplitViewPanelComponent.prototype, "accessibleLabel", 2);
1180
+ __decorateClass([
1181
+ FoundationProperty()
1182
+ ], SplitViewPanelComponent.prototype, "open", 2);
1183
+ __decorateClass([
1184
+ FoundationProperty()
1185
+ ], SplitViewPanelComponent.prototype, "disabled", 2);
1186
+ __decorateClass([
1187
+ FoundationProperty()
1188
+ ], SplitViewPanelComponent.prototype, "allowClose", 2);
1189
+ __decorateClass([
1190
+ FoundationProperty()
1191
+ ], SplitViewPanelComponent.prototype, "autoClose", 2);
1192
+ __decorateClass([
1193
+ FoundationProperty()
1194
+ ], SplitViewPanelComponent.prototype, "autoCloseThreshold", 2);
1195
+ SplitViewPanelComponent = __decorateClass([
1196
+ CustomElement({
1197
+ name: SPLIT_VIEW_PANEL_CONSTANTS.elementName,
1198
+ dependencies: [
1199
+ IconComponent,
1200
+ RippleComponent
1201
+ ]
1202
+ })
1203
+ ], SplitViewPanelComponent);
1204
+
1205
+ // dist/build/lib/staging/src/split-view/split-view-panel/index.ts
1206
+ function defineSplitViewPanelComponent() {
1207
+ defineCustomElement(SplitViewPanelComponent);
1208
+ }
1209
+
1210
+ export {
1211
+ SPLIT_VIEW_PANEL_CONSTANTS,
1212
+ SplitViewAnimatingLayer,
1213
+ initState,
1214
+ setState,
1215
+ clearState,
1216
+ pointerResize,
1217
+ keyboardResize,
1218
+ minResize,
1219
+ maxResize,
1220
+ resizeSibling,
1221
+ clampSize,
1222
+ handleBoundariesDuringResize,
1223
+ handleBoundariesAfterResize,
1224
+ getValuenow,
1225
+ getCursor,
1226
+ getHandleIcon,
1227
+ getSplitViewPanelSibling,
1228
+ parseSize,
1229
+ getPixelDimension,
1230
+ SplitViewPanelFoundation,
1231
+ SPLIT_VIEW_CONSTANTS,
1232
+ SplitViewPanelAdapter,
1233
+ SplitViewPanelComponent,
1234
+ defineSplitViewPanelComponent
1235
+ };
1236
+ //# sourceMappingURL=chunk.CGKWQIL3.js.map