@mhmo91/schmancy 0.5.34 → 0.5.36

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 (383) hide show
  1. package/ai/content-drawer.md +114 -140
  2. package/ai/navigation-bar.md +30 -4
  3. package/ai/navigation-rail.md +72 -0
  4. package/ai/theme.md +218 -789
  5. package/dist/ai/content-drawer.md +114 -140
  6. package/dist/ai/navigation-bar.md +30 -4
  7. package/dist/ai/navigation-rail.md +72 -0
  8. package/dist/ai/theme.md +218 -789
  9. package/dist/{animated-text-COvhr8E3.js → animated-text-BEAHZetl.js} +4 -3
  10. package/dist/{animated-text-COvhr8E3.js.map → animated-text-BEAHZetl.js.map} +1 -1
  11. package/dist/{animated-text-BZUrBdvN.cjs → animated-text-ChV1GUee.cjs} +2 -2
  12. package/dist/{animated-text-BZUrBdvN.cjs.map → animated-text-ChV1GUee.cjs.map} +1 -1
  13. package/dist/animated-text.cjs +1 -1
  14. package/dist/animated-text.js +1 -1
  15. package/dist/area.cjs +1 -1
  16. package/dist/{area.component-BHtBHWVt.js → area.component-R4KQInpP.js} +4 -3
  17. package/dist/{area.component-BHtBHWVt.js.map → area.component-R4KQInpP.js.map} +1 -1
  18. package/dist/area.component-cxxQIhCN.cjs +12 -0
  19. package/dist/{area.component-Ch2Eaa4i.cjs.map → area.component-cxxQIhCN.cjs.map} +1 -1
  20. package/dist/area.js +1 -1
  21. package/dist/{autocomplete-CenwFcT1.cjs → autocomplete-Cq_NzrBX.cjs} +2 -2
  22. package/dist/{autocomplete-CenwFcT1.cjs.map → autocomplete-Cq_NzrBX.cjs.map} +1 -1
  23. package/dist/{autocomplete-9RkU9LmA.js → autocomplete-DKYBmt2q.js} +18 -18
  24. package/dist/{autocomplete-9RkU9LmA.js.map → autocomplete-DKYBmt2q.js.map} +1 -1
  25. package/dist/autocomplete.cjs +1 -1
  26. package/dist/autocomplete.js +1 -1
  27. package/dist/{avatar-DnYQquLU.js → avatar-DJ7qYc6-.js} +163 -152
  28. package/dist/avatar-DJ7qYc6-.js.map +1 -0
  29. package/dist/avatar-DbUCDe1w.cjs +306 -0
  30. package/dist/avatar-DbUCDe1w.cjs.map +1 -0
  31. package/dist/badge.cjs +1 -1
  32. package/dist/badge.js +1 -1
  33. package/dist/boat-BBFE1yJY.js +276 -0
  34. package/dist/boat-BBFE1yJY.js.map +1 -0
  35. package/dist/boat-BSYtwy1W.cjs +78 -0
  36. package/dist/boat-BSYtwy1W.cjs.map +1 -0
  37. package/dist/boat.cjs +1 -1
  38. package/dist/boat.js +1 -1
  39. package/dist/busy.cjs +1 -1
  40. package/dist/busy.js +1 -1
  41. package/dist/button.cjs +1 -1
  42. package/dist/button.js +1 -1
  43. package/dist/card.cjs +1 -1
  44. package/dist/card.js +1 -1
  45. package/dist/{checkbox-8djp_8NK.cjs → checkbox-BBJqucMb.cjs} +2 -2
  46. package/dist/{checkbox-8djp_8NK.cjs.map → checkbox-BBJqucMb.cjs.map} +1 -1
  47. package/dist/{checkbox-D6-WQeEk.js → checkbox-geD1IIHh.js} +3 -2
  48. package/dist/{checkbox-D6-WQeEk.js.map → checkbox-geD1IIHh.js.map} +1 -1
  49. package/dist/checkbox.cjs +1 -1
  50. package/dist/checkbox.js +1 -1
  51. package/dist/chips.cjs +1 -1
  52. package/dist/chips.js +2 -2
  53. package/dist/code-highlight.cjs +1 -1
  54. package/dist/code-highlight.js +1 -1
  55. package/dist/{code-preview-BFoEmN8y.cjs → code-preview-CR3U6wXD.cjs} +5 -5
  56. package/dist/{code-preview-BFoEmN8y.cjs.map → code-preview-CR3U6wXD.cjs.map} +1 -1
  57. package/dist/{code-preview-Z02-2suM.js → code-preview-D2ZpTZ7C.js} +8 -8
  58. package/dist/{code-preview-Z02-2suM.js.map → code-preview-D2ZpTZ7C.js.map} +1 -1
  59. package/dist/components.cjs +1 -1
  60. package/dist/components.js +1 -1
  61. package/dist/content-drawer.cjs +1 -1
  62. package/dist/content-drawer.js +1 -1
  63. package/dist/context-create-CA907mdD.cjs +2 -0
  64. package/dist/context-create-CA907mdD.cjs.map +1 -0
  65. package/dist/{context-object-BE1o2XB3.js → context-create-DCiujzV2.js} +262 -212
  66. package/dist/context-create-DCiujzV2.js.map +1 -0
  67. package/dist/{date-range-DoCtnpW6.cjs → date-range-DkSLcajW.cjs} +2 -2
  68. package/dist/{date-range-DoCtnpW6.cjs.map → date-range-DkSLcajW.cjs.map} +1 -1
  69. package/dist/{date-range-kFnTrnHN.js → date-range-NB6Q02hz.js} +141 -140
  70. package/dist/{date-range-kFnTrnHN.js.map → date-range-NB6Q02hz.js.map} +1 -1
  71. package/dist/date-range-inline-C8InUZoD.cjs +44 -0
  72. package/dist/{date-range-inline-DNr7C5X-.cjs.map → date-range-inline-C8InUZoD.cjs.map} +1 -1
  73. package/dist/{date-range-inline-BXeX6T7R.js → date-range-inline-DXBR0Ocx.js} +8 -7
  74. package/dist/{date-range-inline-BXeX6T7R.js.map → date-range-inline-DXBR0Ocx.js.map} +1 -1
  75. package/dist/date-range-inline.cjs +1 -1
  76. package/dist/date-range-inline.js +1 -1
  77. package/dist/date-range.cjs +1 -1
  78. package/dist/date-range.js +1 -1
  79. package/dist/{delay-CrdOikhP.cjs → delay-B4IPKZEn.cjs} +2 -2
  80. package/dist/{delay-CrdOikhP.cjs.map → delay-B4IPKZEn.cjs.map} +1 -1
  81. package/dist/{delay-Cz-9rZxi.js → delay-DsOC-uuq.js} +2 -2
  82. package/dist/{delay-Cz-9rZxi.js.map → delay-DsOC-uuq.js.map} +1 -1
  83. package/dist/delay.cjs +1 -1
  84. package/dist/delay.js +1 -1
  85. package/dist/{details-CsqhGMjL.cjs → details-7pcQWJF9.cjs} +2 -2
  86. package/dist/{details-CsqhGMjL.cjs.map → details-7pcQWJF9.cjs.map} +1 -1
  87. package/dist/{details-DeBtsJlp.js → details-D6Vq36lN.js} +3 -2
  88. package/dist/{details-DeBtsJlp.js.map → details-D6Vq36lN.js.map} +1 -1
  89. package/dist/details.cjs +1 -1
  90. package/dist/details.js +1 -1
  91. package/dist/{dialog-content-BzSQoM2J.cjs → dialog-content-BC--KBf7.cjs} +2 -2
  92. package/dist/{dialog-content-BzSQoM2J.cjs.map → dialog-content-BC--KBf7.cjs.map} +1 -1
  93. package/dist/{dialog-content-DTKdAF_l.js → dialog-content-XoKxxGTv.js} +4 -4
  94. package/dist/{dialog-content-DTKdAF_l.js.map → dialog-content-XoKxxGTv.js.map} +1 -1
  95. package/dist/dialog.cjs +1 -1
  96. package/dist/dialog.js +1 -1
  97. package/dist/discovery.cjs +2 -0
  98. package/dist/discovery.cjs.map +1 -0
  99. package/dist/discovery.js +6 -0
  100. package/dist/discovery.js.map +1 -0
  101. package/dist/discovery.service-BbYjU5x8.js +21 -0
  102. package/dist/discovery.service-BbYjU5x8.js.map +1 -0
  103. package/dist/discovery.service-BpGCuXPd.cjs +2 -0
  104. package/dist/discovery.service-BpGCuXPd.cjs.map +1 -0
  105. package/dist/divider-55yUklFI.cjs +2 -0
  106. package/dist/{divider-CNxOc8ep.cjs.map → divider-55yUklFI.cjs.map} +1 -1
  107. package/dist/{divider-7iyyEd8k.js → divider-JaB5FtmR.js} +4 -3
  108. package/dist/{divider-7iyyEd8k.js.map → divider-JaB5FtmR.js.map} +1 -1
  109. package/dist/divider.cjs +1 -1
  110. package/dist/divider.js +1 -1
  111. package/dist/{dropdown-content-De0OkNoq.cjs → dropdown-content-C2nxdAFA.cjs} +2 -2
  112. package/dist/{dropdown-content-De0OkNoq.cjs.map → dropdown-content-C2nxdAFA.cjs.map} +1 -1
  113. package/dist/{dropdown-content-_GMpqsNq.js → dropdown-content-Qzt-B1FB.js} +4 -3
  114. package/dist/{dropdown-content-_GMpqsNq.js.map → dropdown-content-Qzt-B1FB.js.map} +1 -1
  115. package/dist/dropdown.cjs +1 -1
  116. package/dist/dropdown.js +1 -1
  117. package/dist/{email-recipients-DS01C3V3.cjs → email-recipients-7reIxhmF.cjs} +2 -2
  118. package/dist/{email-recipients-DS01C3V3.cjs.map → email-recipients-7reIxhmF.cjs.map} +1 -1
  119. package/dist/{email-recipients-CPZlUiRR.js → email-recipients-C3TfQU2c.js} +6 -5
  120. package/dist/{email-recipients-CPZlUiRR.js.map → email-recipients-C3TfQU2c.js.map} +1 -1
  121. package/dist/extra.cjs +1 -1
  122. package/dist/extra.js +1 -1
  123. package/dist/{flex-CHf9Gc5V.cjs → flex-1y7FNRpS.cjs} +2 -2
  124. package/dist/{flex-CHf9Gc5V.cjs.map → flex-1y7FNRpS.cjs.map} +1 -1
  125. package/dist/{flex-BeSoRNTu.js → flex-DauT7n0E.js} +3 -2
  126. package/dist/{flex-BeSoRNTu.js.map → flex-DauT7n0E.js.map} +1 -1
  127. package/dist/{form-DNeKagke.js → form-DqA7DfNR.js} +3 -2
  128. package/dist/{form-DNeKagke.js.map → form-DqA7DfNR.js.map} +1 -1
  129. package/dist/form-Xg8jZsBF.cjs +2 -0
  130. package/dist/{form-DzDksPgv.cjs.map → form-Xg8jZsBF.cjs.map} +1 -1
  131. package/dist/form.cjs +1 -1
  132. package/dist/form.js +1 -1
  133. package/dist/{formField.mixin-D5YAYIS1.cjs → formField.mixin-BnSYnYXQ.cjs} +2 -2
  134. package/dist/{formField.mixin-D5YAYIS1.cjs.map → formField.mixin-BnSYnYXQ.cjs.map} +1 -1
  135. package/dist/{formField.mixin-BNj75WQ4.js → formField.mixin-YvrrvL_A.js} +2 -2
  136. package/dist/{formField.mixin-BNj75WQ4.js.map → formField.mixin-YvrrvL_A.js.map} +1 -1
  137. package/dist/{icon-DebIySqv.cjs → icon-BFYUD00J.cjs} +3 -3
  138. package/dist/{icon-DebIySqv.cjs.map → icon-BFYUD00J.cjs.map} +1 -1
  139. package/dist/{icon-CCMpTJTp.js → icon-BtdeB2JT.js} +9 -9
  140. package/dist/{icon-CCMpTJTp.js.map → icon-BtdeB2JT.js.map} +1 -1
  141. package/dist/{icon-button-DwnnW2oj.cjs → icon-button-B-uxvO86.cjs} +2 -2
  142. package/dist/{icon-button-DwnnW2oj.cjs.map → icon-button-B-uxvO86.cjs.map} +1 -1
  143. package/dist/{icon-button-D6DH52j4.js → icon-button-DwL4WnDE.js} +4 -3
  144. package/dist/{icon-button-D6DH52j4.js.map → icon-button-DwL4WnDE.js.map} +1 -1
  145. package/dist/icons.cjs +1 -1
  146. package/dist/icons.js +1 -1
  147. package/dist/index.cjs +1 -1
  148. package/dist/index.js +187 -182
  149. package/dist/index.js.map +1 -1
  150. package/dist/{input-DtHPCCyd.js → input-CuOmXLVJ.js} +4 -3
  151. package/dist/{input-DtHPCCyd.js.map → input-CuOmXLVJ.js.map} +1 -1
  152. package/dist/input-PoerIsqx.cjs +51 -0
  153. package/dist/{input-C2Vz-51i.cjs.map → input-PoerIsqx.cjs.map} +1 -1
  154. package/dist/{input-chip-B7ANrtLF.cjs → input-chip-BlmZB-cO.cjs} +2 -2
  155. package/dist/{input-chip-B7ANrtLF.cjs.map → input-chip-BlmZB-cO.cjs.map} +1 -1
  156. package/dist/{input-chip-DbIvSyvP.js → input-chip-CcNElytP.js} +2 -2
  157. package/dist/{input-chip-DbIvSyvP.js.map → input-chip-CcNElytP.js.map} +1 -1
  158. package/dist/input.cjs +1 -1
  159. package/dist/input.js +1 -1
  160. package/dist/layout.cjs +1 -1
  161. package/dist/layout.js +1 -1
  162. package/dist/{list-BH8OJ3Rv.cjs → list-BJjW-iAW.cjs} +2 -2
  163. package/dist/{list-BH8OJ3Rv.cjs.map → list-BJjW-iAW.cjs.map} +1 -1
  164. package/dist/{list-BBo0--_Q.js → list-Bou3BRYQ.js} +3 -2
  165. package/dist/{list-BBo0--_Q.js.map → list-Bou3BRYQ.js.map} +1 -1
  166. package/dist/list.cjs +1 -1
  167. package/dist/list.js +1 -1
  168. package/dist/{litElement.mixin-CzF0mNQd.js → litElement.mixin-Bkdw4DeE.js} +2 -2
  169. package/dist/{litElement.mixin-CzF0mNQd.js.map → litElement.mixin-Bkdw4DeE.js.map} +1 -1
  170. package/dist/{litElement.mixin-LplXbzd8.cjs → litElement.mixin-Di-HgRnn.cjs} +2 -2
  171. package/dist/{litElement.mixin-LplXbzd8.cjs.map → litElement.mixin-Di-HgRnn.cjs.map} +1 -1
  172. package/dist/mailbox.cjs +1 -1
  173. package/dist/mailbox.js +1 -1
  174. package/dist/{map-C7lxYU4A.cjs → map-CXNKwo__.cjs} +2 -2
  175. package/dist/{map-C7lxYU4A.cjs.map → map-CXNKwo__.cjs.map} +1 -1
  176. package/dist/{map-DeiCBxMP.js → map-bUVyL7jN.js} +19 -19
  177. package/dist/{map-DeiCBxMP.js.map → map-bUVyL7jN.js.map} +1 -1
  178. package/dist/map.cjs +1 -1
  179. package/dist/map.js +1 -1
  180. package/dist/{media-CsYVcfaX.cjs → media-8D6oDv1e.cjs} +6 -6
  181. package/dist/{media-CsYVcfaX.cjs.map → media-8D6oDv1e.cjs.map} +1 -1
  182. package/dist/{media-CEnaqjig.js → media-CF1lpFAm.js} +9 -8
  183. package/dist/{media-CEnaqjig.js.map → media-CF1lpFAm.js.map} +1 -1
  184. package/dist/{menu-Boqsyfmh.cjs → menu-B8Ad1OVm.cjs} +2 -2
  185. package/dist/{menu-Boqsyfmh.cjs.map → menu-B8Ad1OVm.cjs.map} +1 -1
  186. package/dist/{menu-wtkHGlyc.js → menu-C9mJa_ck.js} +4 -3
  187. package/dist/{menu-wtkHGlyc.js.map → menu-C9mJa_ck.js.map} +1 -1
  188. package/dist/menu.cjs +1 -1
  189. package/dist/menu.js +1 -1
  190. package/dist/mixins/baseElement.ts +33 -1
  191. package/dist/nav-drawer.cjs +1 -1
  192. package/dist/nav-drawer.js +1 -1
  193. package/dist/navigation-bar.cjs +1 -1
  194. package/dist/navigation-bar.js +1 -1
  195. package/dist/{navigation-rail-6ONc-XE-.cjs → navigation-rail-CAgKSJh4.cjs} +14 -11
  196. package/dist/navigation-rail-CAgKSJh4.cjs.map +1 -0
  197. package/dist/{navigation-rail-D-lK9oVd.js → navigation-rail-Dh3B6B0L.js} +43 -31
  198. package/dist/navigation-rail-Dh3B6B0L.js.map +1 -0
  199. package/dist/navigation-rail.cjs +1 -1
  200. package/dist/navigation-rail.js +1 -1
  201. package/dist/{notification-service-ZiGUSd63.js → notification-service-IBQJTcmw.js} +7 -6
  202. package/dist/{notification-service-ZiGUSd63.js.map → notification-service-IBQJTcmw.js.map} +1 -1
  203. package/dist/{notification-service-9HXSKWcw.cjs → notification-service-L82ozhd0.cjs} +2 -2
  204. package/dist/{notification-service-9HXSKWcw.cjs.map → notification-service-L82ozhd0.cjs.map} +1 -1
  205. package/dist/notification.cjs +1 -1
  206. package/dist/notification.js +2 -2
  207. package/dist/{notify-W-NrP0cC.cjs → notify-AIKWEjDG.cjs} +2 -2
  208. package/dist/{notify-W-NrP0cC.cjs.map → notify-AIKWEjDG.cjs.map} +1 -1
  209. package/dist/{notify-DbfX6Z2P.js → notify-CtxRmxjL.js} +2 -2
  210. package/dist/{notify-DbfX6Z2P.js.map → notify-CtxRmxjL.js.map} +1 -1
  211. package/dist/{option-D2bxihLu.cjs → option-D5OW1kDk.cjs} +2 -2
  212. package/dist/{option-D2bxihLu.cjs.map → option-D5OW1kDk.cjs.map} +1 -1
  213. package/dist/{option-BFlWiCu0.js → option-DHGTgRBn.js} +11 -10
  214. package/dist/{option-BFlWiCu0.js.map → option-DHGTgRBn.js.map} +1 -1
  215. package/dist/option.cjs +1 -1
  216. package/dist/option.js +1 -1
  217. package/dist/payment-card-form-CHS_s_Fk.cjs +74 -0
  218. package/dist/{payment-card-form--v94EhJF.cjs.map → payment-card-form-CHS_s_Fk.cjs.map} +1 -1
  219. package/dist/{payment-card-form-DLRNX9NX.js → payment-card-form-wj2JWoyn.js} +4 -3
  220. package/dist/{payment-card-form-DLRNX9NX.js.map → payment-card-form-wj2JWoyn.js.map} +1 -1
  221. package/dist/{progress-CjkD8QBy.cjs → progress-CP4R_l3i.cjs} +2 -2
  222. package/dist/{progress-CjkD8QBy.cjs.map → progress-CP4R_l3i.cjs.map} +1 -1
  223. package/dist/{progress-BYohUvYO.js → progress-ZrDv_k3Z.js} +10 -9
  224. package/dist/{progress-BYohUvYO.js.map → progress-ZrDv_k3Z.js.map} +1 -1
  225. package/dist/progress.cjs +1 -1
  226. package/dist/progress.js +1 -1
  227. package/dist/{radio-button-CGmGOAil.cjs → radio-button-BXP_yPjS.cjs} +2 -2
  228. package/dist/{radio-button-CGmGOAil.cjs.map → radio-button-BXP_yPjS.cjs.map} +1 -1
  229. package/dist/{radio-button-BlxeCjdq.js → radio-button-D0pVoIe-.js} +4 -3
  230. package/dist/{radio-button-BlxeCjdq.js.map → radio-button-D0pVoIe-.js.map} +1 -1
  231. package/dist/radio-group.cjs +1 -1
  232. package/dist/radio-group.js +1 -1
  233. package/dist/{schmancy-steps-container-CydL78yk.cjs → schmancy-steps-container-BSv1aURP.cjs} +2 -2
  234. package/dist/{schmancy-steps-container-CydL78yk.cjs.map → schmancy-steps-container-BSv1aURP.cjs.map} +1 -1
  235. package/dist/{schmancy-steps-container-BtAHCm73.js → schmancy-steps-container-vjioa19k.js} +2 -2
  236. package/dist/{schmancy-steps-container-BtAHCm73.js.map → schmancy-steps-container-vjioa19k.js.map} +1 -1
  237. package/dist/{select-CrB02cIO.cjs → select-DZ-Cy-lg.cjs} +2 -2
  238. package/dist/{select-CrB02cIO.cjs.map → select-DZ-Cy-lg.cjs.map} +1 -1
  239. package/dist/{select-BiN334GN.js → select-SgSe22qC.js} +13 -13
  240. package/dist/{select-BiN334GN.js.map → select-SgSe22qC.js.map} +1 -1
  241. package/dist/select.cjs +1 -1
  242. package/dist/select.js +1 -1
  243. package/dist/selector-hook-BWMY8npH.cjs +2 -0
  244. package/dist/selector-hook-BWMY8npH.cjs.map +1 -0
  245. package/dist/selector-hook-CKeyK4K-.js +313 -0
  246. package/dist/selector-hook-CKeyK4K-.js.map +1 -0
  247. package/dist/{sheet-sgVoRMi1.cjs → sheet-CNMKrulQ.cjs} +2 -2
  248. package/dist/{sheet-sgVoRMi1.cjs.map → sheet-CNMKrulQ.cjs.map} +1 -1
  249. package/dist/{sheet-DpJv4DRi.js → sheet-CevNG0tZ.js} +4 -3
  250. package/dist/{sheet-DpJv4DRi.js.map → sheet-CevNG0tZ.js.map} +1 -1
  251. package/dist/sheet.cjs +1 -1
  252. package/dist/sheet.js +1 -1
  253. package/dist/{slider-Dd1L6oYm.cjs → slider-BSxJatG-.cjs} +4 -4
  254. package/dist/{slider-Dd1L6oYm.cjs.map → slider-BSxJatG-.cjs.map} +1 -1
  255. package/dist/{slider-D7qdxfvX.js → slider-DIRocNv8.js} +9 -9
  256. package/dist/{slider-D7qdxfvX.js.map → slider-DIRocNv8.js.map} +1 -1
  257. package/dist/slider.cjs +1 -1
  258. package/dist/slider.js +1 -1
  259. package/dist/{spinner-CaXU45TV.cjs → spinner-Cx54uto8.cjs} +2 -2
  260. package/dist/{spinner-CaXU45TV.cjs.map → spinner-Cx54uto8.cjs.map} +1 -1
  261. package/dist/{spinner-XN4W5ihQ.js → spinner-DZcG-AtO.js} +3 -2
  262. package/dist/{spinner-XN4W5ihQ.js.map → spinner-DZcG-AtO.js.map} +1 -1
  263. package/dist/steps.cjs +1 -1
  264. package/dist/steps.js +1 -1
  265. package/dist/store.cjs +1 -1
  266. package/dist/store.js +26 -26
  267. package/dist/{suggestion-chip-CdhoATv9.js → suggestion-chip-DADIje6B.js} +3 -3
  268. package/dist/{suggestion-chip-CdhoATv9.js.map → suggestion-chip-DADIje6B.js.map} +1 -1
  269. package/dist/{suggestion-chip-PI24Hc3s.cjs → suggestion-chip-ssmmc0q6.cjs} +2 -2
  270. package/dist/{suggestion-chip-PI24Hc3s.cjs.map → suggestion-chip-ssmmc0q6.cjs.map} +1 -1
  271. package/dist/{surface-CKrYJ58l.js → surface-_cS9Ehk0.js} +2 -2
  272. package/dist/{surface-CKrYJ58l.js.map → surface-_cS9Ehk0.js.map} +1 -1
  273. package/dist/{surface-Ax6I7ldp.cjs → surface-ix9qOb7a.cjs} +2 -2
  274. package/dist/{surface-Ax6I7ldp.cjs.map → surface-ix9qOb7a.cjs.map} +1 -1
  275. package/dist/surface.cjs +1 -1
  276. package/dist/surface.js +1 -1
  277. package/dist/{table-CP6_NkPm.js → table-Bi2ftsJe.js} +2 -2
  278. package/dist/{table-CP6_NkPm.js.map → table-Bi2ftsJe.js.map} +1 -1
  279. package/dist/{table-BlwUyf_4.cjs → table-DSEK3bMb.cjs} +2 -2
  280. package/dist/{table-BlwUyf_4.cjs.map → table-DSEK3bMb.cjs.map} +1 -1
  281. package/dist/table.cjs +1 -1
  282. package/dist/table.js +1 -1
  283. package/dist/{tabs-compatibility-CX0cIu_Y.cjs → tabs-compatibility-BE2Q3rig.cjs} +4 -4
  284. package/dist/{tabs-compatibility-CX0cIu_Y.cjs.map → tabs-compatibility-BE2Q3rig.cjs.map} +1 -1
  285. package/dist/{tabs-compatibility-7QKuXX4i.js → tabs-compatibility-DA3RIq35.js} +7 -6
  286. package/dist/{tabs-compatibility-7QKuXX4i.js.map → tabs-compatibility-DA3RIq35.js.map} +1 -1
  287. package/dist/tabs.cjs +1 -1
  288. package/dist/tabs.js +1 -1
  289. package/dist/tailwind.mixin-CvQn8Ynb.cjs +2 -0
  290. package/dist/tailwind.mixin-CvQn8Ynb.cjs.map +1 -0
  291. package/dist/tailwind.mixin-DGLcZhRp.js +57 -0
  292. package/dist/tailwind.mixin-DGLcZhRp.js.map +1 -0
  293. package/dist/teleport.cjs +1 -1
  294. package/dist/teleport.js +1 -1
  295. package/dist/{textarea-DHrDn-O6.js → textarea-CBb2CzKu.js} +3 -2
  296. package/dist/{textarea-DHrDn-O6.js.map → textarea-CBb2CzKu.js.map} +1 -1
  297. package/dist/textarea-ClgK_mP6.cjs +44 -0
  298. package/dist/{textarea-qLA0vP78.cjs.map → textarea-ClgK_mP6.cjs.map} +1 -1
  299. package/dist/textarea.cjs +1 -1
  300. package/dist/textarea.js +1 -1
  301. package/dist/theme-button-Dhp3ozyB.cjs +9 -0
  302. package/dist/{theme-button-D7fBEUGf.cjs.map → theme-button-Dhp3ozyB.cjs.map} +1 -1
  303. package/dist/{theme-button-BEUsbH5m.js → theme-button-Z_xWXMaf.js} +6 -5
  304. package/dist/{theme-button-BEUsbH5m.js.map → theme-button-Z_xWXMaf.js.map} +1 -1
  305. package/dist/theme-button.cjs +1 -1
  306. package/dist/theme-button.js +1 -1
  307. package/dist/theme.cjs +1 -1
  308. package/dist/{theme.component-ByGua01V.js → theme.controls-BtaZcM7z.js} +367 -238
  309. package/dist/theme.controls-BtaZcM7z.js.map +1 -0
  310. package/dist/theme.controls-C_zAMJgA.cjs +67 -0
  311. package/dist/theme.controls-C_zAMJgA.cjs.map +1 -0
  312. package/dist/theme.js +13 -11
  313. package/dist/{timezone-BpDMR26D.js → timezone-CZ0gCI2P.js} +10 -9
  314. package/dist/{timezone-BpDMR26D.js.map → timezone-CZ0gCI2P.js.map} +1 -1
  315. package/dist/{timezone-Bw4EXBt7.cjs → timezone-DucGbWcE.cjs} +2 -2
  316. package/dist/{timezone-Bw4EXBt7.cjs.map → timezone-DucGbWcE.cjs.map} +1 -1
  317. package/dist/{tooltip-Dhs4HL3A.cjs → tooltip-BSWp7Mmz.cjs} +2 -2
  318. package/dist/{tooltip-Dhs4HL3A.cjs.map → tooltip-BSWp7Mmz.cjs.map} +1 -1
  319. package/dist/{tooltip-B1jynZOH.js → tooltip-BSppSqZM.js} +2 -2
  320. package/dist/{tooltip-B1jynZOH.js.map → tooltip-BSppSqZM.js.map} +1 -1
  321. package/dist/tooltip.cjs +1 -1
  322. package/dist/tooltip.js +1 -1
  323. package/dist/{tree-D-ezei_U.cjs → tree-DL71EUih.cjs} +4 -4
  324. package/dist/{tree-D-ezei_U.cjs.map → tree-DL71EUih.cjs.map} +1 -1
  325. package/dist/{tree-BH1qCJ_U.js → tree-dEse6eMH.js} +3 -2
  326. package/dist/{tree-BH1qCJ_U.js.map → tree-dEse6eMH.js.map} +1 -1
  327. package/dist/tree.cjs +1 -1
  328. package/dist/tree.js +1 -1
  329. package/dist/typewriter-B1Au4MRO.cjs +9 -0
  330. package/dist/{typewriter-CtPh4Pyj.cjs.map → typewriter-B1Au4MRO.cjs.map} +1 -1
  331. package/dist/{typewriter-DQbpNPtY.js → typewriter-DBvUYzpl.js} +5 -4
  332. package/dist/{typewriter-DQbpNPtY.js.map → typewriter-DBvUYzpl.js.map} +1 -1
  333. package/dist/typewriter.cjs +1 -1
  334. package/dist/typewriter.js +1 -1
  335. package/dist/{typography-BrIaOYmC.cjs → typography-3gXQvLXN.cjs} +2 -2
  336. package/dist/{typography-BrIaOYmC.cjs.map → typography-3gXQvLXN.cjs.map} +1 -1
  337. package/dist/{typography-D71cmr0R.js → typography-iOtjgSkI.js} +2 -2
  338. package/dist/{typography-D71cmr0R.js.map → typography-iOtjgSkI.js.map} +1 -1
  339. package/dist/typography.cjs +1 -1
  340. package/dist/typography.js +1 -1
  341. package/package.json +1 -1
  342. package/types/mixins/baseElement.d.ts +2 -1
  343. package/types/src/boat/boat.d.ts +10 -5
  344. package/types/src/discovery/discovery.service.d.ts +17 -0
  345. package/types/src/discovery/index.d.ts +1 -0
  346. package/types/src/index.d.ts +1 -0
  347. package/types/src/navigation-bar/navigation-bar.d.ts +19 -2
  348. package/types/src/navigation-rail/navigation-rail.d.ts +13 -0
  349. package/types/src/theme/index.d.ts +1 -0
  350. package/types/src/theme/theme.controls.d.ts +27 -0
  351. package/types/src/theme/theme.service.d.ts +58 -2
  352. package/dist/area.component-Ch2Eaa4i.cjs +0 -12
  353. package/dist/avatar-DZMY4ePP.cjs +0 -303
  354. package/dist/avatar-DZMY4ePP.cjs.map +0 -1
  355. package/dist/avatar-DnYQquLU.js.map +0 -1
  356. package/dist/boat-CUsJXaLf.js +0 -240
  357. package/dist/boat-CUsJXaLf.js.map +0 -1
  358. package/dist/boat-Dfx9-P8c.cjs +0 -83
  359. package/dist/boat-Dfx9-P8c.cjs.map +0 -1
  360. package/dist/context-object-BE1o2XB3.js.map +0 -1
  361. package/dist/context-object-DA9DM9QJ.cjs +0 -2
  362. package/dist/context-object-DA9DM9QJ.cjs.map +0 -1
  363. package/dist/date-range-inline-DNr7C5X-.cjs +0 -44
  364. package/dist/divider-CNxOc8ep.cjs +0 -2
  365. package/dist/form-DzDksPgv.cjs +0 -2
  366. package/dist/input-C2Vz-51i.cjs +0 -51
  367. package/dist/navigation-rail-6ONc-XE-.cjs.map +0 -1
  368. package/dist/navigation-rail-D-lK9oVd.js.map +0 -1
  369. package/dist/payment-card-form--v94EhJF.cjs +0 -74
  370. package/dist/selector-hook-DOsvFxG2.js +0 -364
  371. package/dist/selector-hook-DOsvFxG2.js.map +0 -1
  372. package/dist/selector-hook-DQ9zoDM4.cjs +0 -2
  373. package/dist/selector-hook-DQ9zoDM4.cjs.map +0 -1
  374. package/dist/tailwind.mixin-BjDGMGbj.js +0 -43
  375. package/dist/tailwind.mixin-BjDGMGbj.js.map +0 -1
  376. package/dist/tailwind.mixin-ClfV2_Nh.cjs +0 -2
  377. package/dist/tailwind.mixin-ClfV2_Nh.cjs.map +0 -1
  378. package/dist/textarea-qLA0vP78.cjs +0 -44
  379. package/dist/theme-button-D7fBEUGf.cjs +0 -9
  380. package/dist/theme.component-ByGua01V.js.map +0 -1
  381. package/dist/theme.component-CQ1trrZB.cjs +0 -3
  382. package/dist/theme.component-CQ1trrZB.cjs.map +0 -1
  383. package/dist/typewriter-CtPh4Pyj.cjs +0 -9
@@ -1,21 +1,22 @@
1
- import { fromEvent as se, takeUntil as G, debounceTime as ye, timer as ge } from "rxjs";
1
+ import { fromEvent as st, takeUntil as G, debounceTime as yt, timer as gt } from "rxjs";
2
+ import "rxjs/operators";
2
3
  import "lit/directives/class-map.js";
3
4
  import "lit/directives/style-map.js";
4
- import { property as T, customElement as ue, state as j } from "lit/decorators.js";
5
- import "./tailwind.mixin-BjDGMGbj.js";
6
- import { $ as ce } from "./litElement.mixin-CzF0mNQd.js";
7
- import { g as he } from "./_commonjsHelpers-Dw9sPFZy.js";
5
+ import { property as T, customElement as ut, state as j } from "lit/decorators.js";
6
+ import "./tailwind.mixin-DGLcZhRp.js";
7
+ import { $ as ct } from "./litElement.mixin-Bkdw4DeE.js";
8
+ import { g as ht } from "./_commonjsHelpers-Dw9sPFZy.js";
8
9
  import { html as W } from "lit";
9
10
  import { $ as J } from "./dialog-service-CyQzm5qE.js";
10
11
  import { ifDefined as z } from "lit/directives/if-defined.js";
11
- var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
12
- var t = 1e3, a = 6e4, e = 36e5, n = "millisecond", l = "second", r = "minute", c = "hour", f = "day", v = "week", $ = "month", Y = "quarter", O = "year", L = "date", ee = "Invalid Date", le = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, me = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, pe = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(h) {
12
+ var rt, it = { exports: {} }, vt = (rt || (rt = 1, it.exports = function() {
13
+ var e = 1e3, a = 6e4, t = 36e5, n = "millisecond", l = "second", r = "minute", c = "hour", f = "day", v = "week", $ = "month", Y = "quarter", O = "year", L = "date", tt = "Invalid Date", lt = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, mt = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, pt = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(h) {
13
14
  var o = ["th", "st", "nd", "rd"], s = h % 100;
14
15
  return "[" + h + (o[(s - 20) % 10] || o[s] || o[0]) + "]";
15
16
  } }, K = function(h, o, s) {
16
17
  var u = String(h);
17
18
  return !u || u.length >= o ? h : "" + Array(o + 1 - u.length).join(s) + h;
18
- }, fe = { s: K, z: function(h) {
19
+ }, ft = { s: K, z: function(h) {
19
20
  var o = -h.utcOffset(), s = Math.abs(o), u = Math.floor(s / 60), i = s % 60;
20
21
  return (o <= 0 ? "+" : "-") + K(u, 2, "0") + ":" + K(i, 2, "0");
21
22
  }, m: function h(o, s) {
@@ -29,9 +30,9 @@ var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
29
30
  }, u: function(h) {
30
31
  return h === void 0;
31
32
  } }, E = "en", A = {};
32
- A[E] = pe;
33
- var te = "$isDayjsObject", Z = function(h) {
34
- return h instanceof U || !(!h || !h[te]);
33
+ A[E] = pt;
34
+ var et = "$isDayjsObject", Z = function(h) {
35
+ return h instanceof U || !(!h || !h[et]);
35
36
  }, I = function h(o, s, u) {
36
37
  var i;
37
38
  if (!o) return E;
@@ -49,13 +50,13 @@ var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
49
50
  if (Z(h)) return h.clone();
50
51
  var s = typeof o == "object" ? o : {};
51
52
  return s.date = h, s.args = arguments, new U(s);
52
- }, y = fe;
53
+ }, y = ft;
53
54
  y.l = I, y.i = Z, y.w = function(h, o) {
54
55
  return w(h, { locale: o.$L, utc: o.$u, x: o.$x, $offset: o.$offset });
55
56
  };
56
57
  var U = function() {
57
58
  function h(s) {
58
- this.$L = I(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[te] = !0;
59
+ this.$L = I(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[et] = !0;
59
60
  }
60
61
  var o = h.prototype;
61
62
  return o.parse = function(s) {
@@ -65,7 +66,7 @@ var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
65
66
  if (y.u(i)) return /* @__PURE__ */ new Date();
66
67
  if (i instanceof Date) return new Date(i);
67
68
  if (typeof i == "string" && !/Z$/i.test(i)) {
68
- var p = i.match(le);
69
+ var p = i.match(lt);
69
70
  if (p) {
70
71
  var g = p[2] - 1 || 0, b = (p[7] || "0").substring(0, 3);
71
72
  return m ? new Date(Date.UTC(p[1], g, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, b)) : new Date(p[1], g, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, b);
@@ -79,7 +80,7 @@ var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
79
80
  }, o.$utils = function() {
80
81
  return y;
81
82
  }, o.isValid = function() {
82
- return this.$d.toString() !== ee;
83
+ return this.$d.toString() !== tt;
83
84
  }, o.isSame = function(s, u) {
84
85
  var i = w(s);
85
86
  return this.startOf(u) <= i && i <= this.endOf(u);
@@ -144,13 +145,13 @@ var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
144
145
  if (p === O) return this.set(O, this.$y + s);
145
146
  if (p === f) return g(1);
146
147
  if (p === v) return g(7);
147
- var b = (i = {}, i[r] = a, i[c] = e, i[l] = t, i)[p] || 1, F = this.$d.getTime() + s * b;
148
+ var b = (i = {}, i[r] = a, i[c] = t, i[l] = e, i)[p] || 1, F = this.$d.getTime() + s * b;
148
149
  return y.w(F, this);
149
150
  }, o.subtract = function(s, u) {
150
151
  return this.add(-1 * s, u);
151
152
  }, o.format = function(s) {
152
153
  var u = this, i = this.$locale();
153
- if (!this.isValid()) return i.invalidDate || ee;
154
+ if (!this.isValid()) return i.invalidDate || tt;
154
155
  var m = s || "YYYY-MM-DDTHH:mm:ssZ", p = y.z(this), g = this.$H, b = this.$m, F = this.$M, k = i.weekdays, x = i.months, q = i.meridiem, _ = function(S, C, V, B) {
155
156
  return S && (S[C] || S(u, m)) || V[C].slice(0, B);
156
157
  }, N = function(S) {
@@ -159,7 +160,7 @@ var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
159
160
  var B = S < 12 ? "AM" : "PM";
160
161
  return V ? B.toLowerCase() : B;
161
162
  };
162
- return m.replace(me, function(S, C) {
163
+ return m.replace(mt, function(S, C) {
163
164
  return C || function(V) {
164
165
  switch (V) {
165
166
  case "YY":
@@ -237,13 +238,13 @@ var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
237
238
  m = (k - F) / 864e5;
238
239
  break;
239
240
  case c:
240
- m = k / e;
241
+ m = k / t;
241
242
  break;
242
243
  case r:
243
244
  m = k / a;
244
245
  break;
245
246
  case l:
246
- m = k / t;
247
+ m = k / e;
247
248
  break;
248
249
  default:
249
250
  m = k;
@@ -268,9 +269,9 @@ var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
268
269
  }, o.toString = function() {
269
270
  return this.$d.toUTCString();
270
271
  }, h;
271
- }(), ae = U.prototype;
272
- return w.prototype = ae, [["$ms", n], ["$s", l], ["$m", r], ["$H", c], ["$W", f], ["$M", $], ["$y", O], ["$D", L]].forEach(function(h) {
273
- ae[h[1]] = function(o) {
272
+ }(), at = U.prototype;
273
+ return w.prototype = at, [["$ms", n], ["$s", l], ["$m", r], ["$H", c], ["$W", f], ["$M", $], ["$y", O], ["$D", L]].forEach(function(h) {
274
+ at[h[1]] = function(o) {
274
275
  return this.$g(o, h[0], h[1]);
275
276
  };
276
277
  }), w.extend = function(h, o) {
@@ -278,20 +279,20 @@ var re, ie = { exports: {} }, ve = (re || (re = 1, ie.exports = function() {
278
279
  }, w.locale = I, w.isDayjs = Z, w.unix = function(h) {
279
280
  return w(1e3 * h);
280
281
  }, w.en = A[E], w.Ls = A, w.p = {}, w;
281
- }()), ie.exports);
282
- const d = he(ve);
283
- var ne, Q, X, oe = { exports: {} };
284
- const be = he(ne ? oe.exports : (ne = 1, oe.exports = (Q = "month", X = "quarter", function(t, a) {
285
- var e = a.prototype;
286
- e.quarter = function(r) {
282
+ }()), it.exports);
283
+ const d = ht(vt);
284
+ var nt, Q, X, ot = { exports: {} };
285
+ const bt = ht(nt ? ot.exports : (nt = 1, ot.exports = (Q = "month", X = "quarter", function(e, a) {
286
+ var t = a.prototype;
287
+ t.quarter = function(r) {
287
288
  return this.$utils().u(r) ? Math.ceil((this.month() + 1) / 3) : this.month(this.month() % 3 + 3 * (r - 1));
288
289
  };
289
- var n = e.add;
290
- e.add = function(r, c) {
290
+ var n = t.add;
291
+ t.add = function(r, c) {
291
292
  return r = Number(r), this.$utils().p(c) === X ? this.add(3 * r, Q) : n.bind(this)(r, c);
292
293
  };
293
- var l = e.startOf;
294
- e.startOf = function(r, c) {
294
+ var l = t.startOf;
295
+ t.startOf = function(r, c) {
295
296
  var f = this.$utils(), v = !!f.u(c) || c;
296
297
  if (f.p(r) === X) {
297
298
  var $ = this.quarter() - 1;
@@ -300,50 +301,50 @@ const be = he(ne ? oe.exports : (ne = 1, oe.exports = (Q = "month", X = "quarter
300
301
  return l.bind(this)(r, c);
301
302
  };
302
303
  })));
303
- function $e(t, a) {
304
- return t.map((e) => ({ label: `Last ${e} Days`, range: { dateFrom: d().subtract(e - 1, "days").startOf("day").format(a), dateTo: d().endOf("day").format(a) }, step: "day" }));
304
+ function $t(e, a) {
305
+ return e.map((t) => ({ label: `Last ${t} Days`, range: { dateFrom: d().subtract(t - 1, "days").startOf("day").format(a), dateTo: d().endOf("day").format(a) }, step: "day" }));
305
306
  }
306
- function De(t, a) {
307
- return t.map((e) => ({ label: `Last ${e} Weeks`, range: { dateFrom: d().subtract(e, "weeks").startOf("week").format(a), dateTo: d().endOf("day").format(a) }, step: "week" }));
307
+ function Dt(e, a) {
308
+ return e.map((t) => ({ label: `Last ${t} Weeks`, range: { dateFrom: d().subtract(t, "weeks").startOf("week").format(a), dateTo: d().endOf("day").format(a) }, step: "week" }));
308
309
  }
309
- function Te(t, a) {
310
- return t.map((e) => ({ label: `Last ${e} Months`, range: { dateFrom: d().subtract(e, "months").startOf("month").format(a), dateTo: d().endOf("day").format(a) }, step: "month" }));
310
+ function Tt(e, a) {
311
+ return e.map((t) => ({ label: `Last ${t} Months`, range: { dateFrom: d().subtract(t, "months").startOf("month").format(a), dateTo: d().endOf("day").format(a) }, step: "month" }));
311
312
  }
312
- function we(t, a) {
313
- return t.map((e) => ({ label: `Last ${e} Quarters`, range: { dateFrom: d().subtract(e, "quarters").startOf("quarter").format(a), dateTo: d().endOf("day").format(a) }, step: "quarter" }));
313
+ function wt(e, a) {
314
+ return e.map((t) => ({ label: `Last ${t} Quarters`, range: { dateFrom: d().subtract(t, "quarters").startOf("quarter").format(a), dateTo: d().endOf("day").format(a) }, step: "quarter" }));
314
315
  }
315
- function de(t, a) {
316
- if (!t) return null;
317
- const e = d(t);
318
- return e.isValid() ? e.format(a) : null;
316
+ function dt(e, a) {
317
+ if (!e) return null;
318
+ const t = d(e);
319
+ return t.isValid() ? t.format(a) : null;
319
320
  }
320
- function Fe(t, a, e) {
321
- const n = de(t, e), l = de(a, e);
321
+ function Ft(e, a, t) {
322
+ const n = dt(e, t), l = dt(a, t);
322
323
  return { dateFrom: n, dateTo: l, isValid: n !== null && l !== null };
323
324
  }
324
- var Me = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, R = (t, a, e, n) => {
325
- for (var l, r = n > 1 ? void 0 : n ? Oe(a, e) : a, c = t.length - 1; c >= 0; c--) (l = t[c]) && (r = (n ? l(a, e, r) : l(r)) || r);
326
- return n && r && Me(a, e, r), r;
325
+ var Mt = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, R = (e, a, t, n) => {
326
+ for (var l, r = n > 1 ? void 0 : n ? Ot(a, t) : a, c = e.length - 1; c >= 0; c--) (l = e[c]) && (r = (n ? l(a, t, r) : l(r)) || r);
327
+ return n && r && Mt(a, t, r), r;
327
328
  };
328
- let P = class extends ce() {
329
+ let P = class extends ct() {
329
330
  constructor() {
330
331
  super(...arguments), this.type = "date", this.dateFrom = { label: "From", value: "" }, this.dateTo = { label: "To", value: "" }, this.activePreset = null, this.presetCategories = [];
331
332
  }
332
- handleFromDateChange(t) {
333
- const a = t.target;
333
+ handleFromDateChange(e) {
334
+ const a = e.target;
334
335
  this.dateFrom = { ...this.dateFrom, value: a.value }, this.dateTo.value && d(this.dateFrom.value).isAfter(d(this.dateTo.value)) && (this.dateTo = { ...this.dateTo, value: this.dateFrom.value }), this.dispatchEvent(new CustomEvent("date-change", { detail: { dateFrom: this.dateFrom.value, dateTo: this.dateTo.value }, bubbles: !0, composed: !0 }));
335
336
  }
336
- handleToDateChange(t) {
337
- const a = t.target;
337
+ handleToDateChange(e) {
338
+ const a = e.target;
338
339
  this.dateTo = { ...this.dateTo, value: a.value }, this.dispatchEvent(new CustomEvent("date-change", { detail: { dateFrom: this.dateFrom.value, dateTo: this.dateTo.value }, bubbles: !0, composed: !0 }));
339
340
  }
340
- handlePresetSelection(t, a) {
341
- a.stopPropagation(), this.dispatchEvent(new CustomEvent("preset-select", { detail: { preset: t }, bubbles: !0, composed: !0 })), J.dismiss();
341
+ handlePresetSelection(e, a) {
342
+ a.stopPropagation(), this.dispatchEvent(new CustomEvent("preset-select", { detail: { preset: e }, bubbles: !0, composed: !0 })), J.dismiss();
342
343
  }
343
- applyManualDateSelection(t) {
344
- t.stopPropagation();
345
- const a = d(this.dateFrom.value), e = d(this.dateTo.value);
346
- a.isValid() && e.isValid() ? (this.dispatchEvent(new CustomEvent("apply-dates", { detail: { dateFrom: this.dateFrom.value, dateTo: this.dateTo.value, swapIfNeeded: a.isAfter(e) }, bubbles: !0, composed: !0 })), J.dismiss()) : this.dispatchEvent(new CustomEvent("announce", { detail: { message: "Invalid date format. Please check your input." }, bubbles: !0, composed: !0 }));
344
+ applyManualDateSelection(e) {
345
+ e.stopPropagation();
346
+ const a = d(this.dateFrom.value), t = d(this.dateTo.value);
347
+ a.isValid() && t.isValid() ? (this.dispatchEvent(new CustomEvent("apply-dates", { detail: { dateFrom: this.dateFrom.value, dateTo: this.dateTo.value, swapIfNeeded: a.isAfter(t) }, bubbles: !0, composed: !0 })), J.dismiss()) : this.dispatchEvent(new CustomEvent("announce", { detail: { message: "Invalid date format. Please check your input." }, bubbles: !0, composed: !0 }));
347
348
  }
348
349
  render() {
349
350
  return W`
@@ -385,7 +386,7 @@ let P = class extends ce() {
385
386
  <div class="flex justify-end mt-2">
386
387
  <schmancy-button
387
388
  variant="filled"
388
- @click="${(t) => this.applyManualDateSelection(t)}"
389
+ @click="${(e) => this.applyManualDateSelection(e)}"
389
390
  ?disabled="${!this.dateFrom.value || !this.dateTo.value}"
390
391
  >
391
392
  Apply
@@ -397,17 +398,17 @@ let P = class extends ce() {
397
398
  <!-- Presets Section -->
398
399
  <div class="flex-1 overflow-y-auto overflow-x-hidden min-h-0">
399
400
  <div class="grid grid-cols-2 md:grid-cols-5 gap-6">
400
- ${this.presetCategories.map((t) => W`
401
+ ${this.presetCategories.map((e) => W`
401
402
  <div class="space-y-3">
402
403
  <schmancy-typography type="title" token="md" class="text-surface-onVariant font-medium">
403
- ${t.name}
404
+ ${e.name}
404
405
  </schmancy-typography>
405
406
  <div class="space-y-1">
406
- ${t.presets.map((a) => W`
407
+ ${e.presets.map((a) => W`
407
408
  <schmancy-button
408
409
  variant="${this.activePreset === a.label ? "filled" : "text"}"
409
410
  class="w-full justify-start text-left"
410
- @click="${(e) => this.handlePresetSelection(a, e)}"
411
+ @click="${(t) => this.handlePresetSelection(a, t)}"
411
412
  aria-pressed="${this.activePreset === a.label}"
412
413
  aria-label="${a.label}: ${a.range.dateFrom} to ${a.range.dateTo}"
413
414
  title="${a.range.dateFrom} to ${a.range.dateTo}"
@@ -424,55 +425,55 @@ let P = class extends ce() {
424
425
  `;
425
426
  }
426
427
  };
427
- R([T({ type: String })], P.prototype, "type", 2), R([T({ type: Object })], P.prototype, "dateFrom", 2), R([T({ type: Object })], P.prototype, "dateTo", 2), R([T({ type: String })], P.prototype, "minDate", 2), R([T({ type: String })], P.prototype, "maxDate", 2), R([T({ type: String })], P.prototype, "activePreset", 2), R([T({ type: Array })], P.prototype, "presetCategories", 2), P = R([ue("schmancy-date-range-dialog")], P);
428
- var ke = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, M = (t, a, e, n) => {
429
- for (var l, r = n > 1 ? void 0 : n ? Se(a, e) : a, c = t.length - 1; c >= 0; c--) (l = t[c]) && (r = (n ? l(a, e, r) : l(r)) || r);
430
- return n && r && ke(a, e, r), r;
428
+ R([T({ type: String })], P.prototype, "type", 2), R([T({ type: Object })], P.prototype, "dateFrom", 2), R([T({ type: Object })], P.prototype, "dateTo", 2), R([T({ type: String })], P.prototype, "minDate", 2), R([T({ type: String })], P.prototype, "maxDate", 2), R([T({ type: String })], P.prototype, "activePreset", 2), R([T({ type: Array })], P.prototype, "presetCategories", 2), P = R([ut("schmancy-date-range-dialog")], P);
429
+ var kt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, M = (e, a, t, n) => {
430
+ for (var l, r = n > 1 ? void 0 : n ? St(a, t) : a, c = e.length - 1; c >= 0; c--) (l = e[c]) && (r = (n ? l(a, t, r) : l(r)) || r);
431
+ return n && r && kt(a, t, r), r;
431
432
  };
432
- d.extend(be);
433
- let D = class extends ce() {
433
+ d.extend(bt);
434
+ let D = class extends ct() {
434
435
  constructor() {
435
436
  super(...arguments), this.type = "date", this.dateFrom = { label: "From", value: "" }, this.dateTo = { label: "To", value: "" }, this.customPresets = [], this.disabled = !1, this.required = !1, this.placeholder = "Select date range", this.clearable = !0, this.isOpen = !1, this.selectedDateRange = "", this.activePreset = null, this.announceMessage = "", this.isMobile = !1, this.presetRanges = [], this.presetCategories = [], this.memoizedPresets = /* @__PURE__ */ new Map();
436
437
  }
437
438
  connectedCallback() {
438
439
  super.connectedCallback(), this.initPresetRanges(), this.checkMobileView();
439
- const t = this.getDateFormat(), a = Fe(this.dateFrom.value, this.dateTo.value, t);
440
+ const e = this.getDateFormat(), a = Ft(this.dateFrom.value, this.dateTo.value, e);
440
441
  if (a.isValid) this.dateFrom.value = a.dateFrom, this.dateTo.value = a.dateTo, this.updateSelectedDateRange();
441
442
  else {
442
- const e = d().format(t);
443
- this.dateFrom.value = e, this.dateTo.value = e, this.updateSelectedDateRange();
443
+ const t = d().format(e);
444
+ this.dateFrom.value = t, this.dateTo.value = t, this.updateSelectedDateRange();
444
445
  }
445
446
  this.setupEventHandlers();
446
447
  }
447
448
  setupEventHandlers() {
448
- se(document, "keydown").pipe(G(this.disconnecting)).subscribe((t) => {
449
- this.handleKeyboardNavigation(t);
450
- }), se(window, "resize").pipe(ye(150), G(this.disconnecting)).subscribe(() => {
449
+ st(document, "keydown").pipe(G(this.disconnecting)).subscribe((e) => {
450
+ this.handleKeyboardNavigation(e);
451
+ }), st(window, "resize").pipe(yt(150), G(this.disconnecting)).subscribe(() => {
451
452
  this.checkMobileView();
452
453
  });
453
454
  }
454
455
  disconnectedCallback() {
455
456
  super.disconnectedCallback();
456
457
  }
457
- updated(t) {
458
- super.updated(t), !t.has("dateFrom") && !t.has("dateTo") || this.dateFrom?.value === void 0 && this.dateTo?.value === void 0 || this.updateSelectedDateRange();
458
+ updated(e) {
459
+ super.updated(e), !e.has("dateFrom") && !e.has("dateTo") || this.dateFrom?.value === void 0 && this.dateTo?.value === void 0 || this.updateSelectedDateRange();
459
460
  }
460
461
  initPresetRanges() {
461
- const t = this.getDateFormat(), a = `${this.type}-${t}-${JSON.stringify(this.customPresets)}`;
462
+ const e = this.getDateFormat(), a = `${this.type}-${e}-${JSON.stringify(this.customPresets)}`;
462
463
  if (this.memoizedPresets.has(a)) {
463
- const e = this.memoizedPresets.get(a);
464
- return this.presetCategories = e, this.presetRanges = [], void e.forEach((n) => {
464
+ const t = this.memoizedPresets.get(a);
465
+ return this.presetCategories = t, this.presetRanges = [], void t.forEach((n) => {
465
466
  this.presetRanges.push(...n.presets);
466
467
  });
467
468
  }
468
- if (this.presetCategories = function(e, n = !1) {
469
+ if (this.presetCategories = function(t, n = !1) {
469
470
  const l = [];
470
- return n && l.push({ name: "Hours", presets: [{ label: "Last 24 Hours", range: { dateFrom: d().subtract(24, "hours").format(e), dateTo: d().format(e) }, step: "hour" }, { label: "Last 12 Hours", range: { dateFrom: d().subtract(12, "hours").format(e), dateTo: d().format(e) }, step: "hour" }] }), l.push({ name: "Days", presets: [{ label: "Today", range: { dateFrom: d().startOf("day").format(e), dateTo: d().endOf("day").format(e) }, step: "day" }, { label: "Yesterday", range: { dateFrom: d().subtract(1, "days").startOf("day").format(e), dateTo: d().subtract(1, "days").endOf("day").format(e) }, step: "day" }, ...$e([7, 14, 30, 60, 90], e)] }), l.push({ name: "Weeks", presets: [{ label: "This Week", range: { dateFrom: d().startOf("week").format(e), dateTo: d().endOf("week").format(e) }, step: "week" }, { label: "Last Week", range: { dateFrom: d().subtract(1, "weeks").startOf("week").format(e), dateTo: d().subtract(1, "weeks").endOf("week").format(e) }, step: "week" }, ...De([2, 4], e)] }), l.push({ name: "Months", presets: [{ label: "This Month", range: { dateFrom: d().startOf("month").format(e), dateTo: d().endOf("month").format(e) }, step: "month" }, { label: "Last Month", range: { dateFrom: d().subtract(1, "month").startOf("month").format(e), dateTo: d().subtract(1, "month").endOf("month").format(e) }, step: "month" }, ...Te([3, 6], e)] }), l.push({ name: "Quarters", presets: [{ label: "This Quarter", range: { dateFrom: d().startOf("quarter").format(e), dateTo: d().endOf("quarter").format(e) }, step: "quarter" }, { label: "Last Quarter", range: { dateFrom: d().subtract(1, "quarter").startOf("quarter").format(e), dateTo: d().subtract(1, "quarter").endOf("quarter").format(e) }, step: "quarter" }, ...we([2, 4], e)] }), l.push({ name: "Years", presets: [{ label: "This Year", range: { dateFrom: d().startOf("year").format(e), dateTo: d().endOf("year").format(e) }, step: "year" }, { label: "Last Year", range: { dateFrom: d().subtract(1, "year").startOf("year").format(e), dateTo: d().subtract(1, "year").endOf("year").format(e) }, step: "year" }, { label: "Year to Date", range: { dateFrom: d().startOf("year").format(e), dateTo: d().endOf("day").format(e) }, step: "day" }] }), l;
471
- }(t, this.type === "datetime-local"), this.presetRanges = [], this.presetCategories.forEach((e) => {
472
- this.presetRanges.push(...e.presets);
471
+ return n && l.push({ name: "Hours", presets: [{ label: "Last 24 Hours", range: { dateFrom: d().subtract(24, "hours").format(t), dateTo: d().format(t) }, step: "hour" }, { label: "Last 12 Hours", range: { dateFrom: d().subtract(12, "hours").format(t), dateTo: d().format(t) }, step: "hour" }] }), l.push({ name: "Days", presets: [{ label: "Today", range: { dateFrom: d().startOf("day").format(t), dateTo: d().endOf("day").format(t) }, step: "day" }, { label: "Yesterday", range: { dateFrom: d().subtract(1, "days").startOf("day").format(t), dateTo: d().subtract(1, "days").endOf("day").format(t) }, step: "day" }, ...$t([7, 14, 30, 60, 90], t)] }), l.push({ name: "Weeks", presets: [{ label: "This Week", range: { dateFrom: d().startOf("week").format(t), dateTo: d().endOf("week").format(t) }, step: "week" }, { label: "Last Week", range: { dateFrom: d().subtract(1, "weeks").startOf("week").format(t), dateTo: d().subtract(1, "weeks").endOf("week").format(t) }, step: "week" }, ...Dt([2, 4], t)] }), l.push({ name: "Months", presets: [{ label: "This Month", range: { dateFrom: d().startOf("month").format(t), dateTo: d().endOf("month").format(t) }, step: "month" }, { label: "Last Month", range: { dateFrom: d().subtract(1, "month").startOf("month").format(t), dateTo: d().subtract(1, "month").endOf("month").format(t) }, step: "month" }, ...Tt([3, 6], t)] }), l.push({ name: "Quarters", presets: [{ label: "This Quarter", range: { dateFrom: d().startOf("quarter").format(t), dateTo: d().endOf("quarter").format(t) }, step: "quarter" }, { label: "Last Quarter", range: { dateFrom: d().subtract(1, "quarter").startOf("quarter").format(t), dateTo: d().subtract(1, "quarter").endOf("quarter").format(t) }, step: "quarter" }, ...wt([2, 4], t)] }), l.push({ name: "Years", presets: [{ label: "This Year", range: { dateFrom: d().startOf("year").format(t), dateTo: d().endOf("year").format(t) }, step: "year" }, { label: "Last Year", range: { dateFrom: d().subtract(1, "year").startOf("year").format(t), dateTo: d().subtract(1, "year").endOf("year").format(t) }, step: "year" }, { label: "Year to Date", range: { dateFrom: d().startOf("year").format(t), dateTo: d().endOf("day").format(t) }, step: "day" }] }), l;
472
+ }(e, this.type === "datetime-local"), this.presetRanges = [], this.presetCategories.forEach((t) => {
473
+ this.presetRanges.push(...t.presets);
473
474
  }), this.customPresets && this.customPresets.length > 0) {
474
- const e = { name: "Custom", presets: this.customPresets.map((n) => ({ label: n.label, range: { dateFrom: n.dateFrom, dateTo: n.dateTo }, step: "day" })) };
475
- this.presetCategories.push(e), this.presetRanges.push(...e.presets);
475
+ const t = { name: "Custom", presets: this.customPresets.map((n) => ({ label: n.label, range: { dateFrom: n.dateFrom, dateTo: n.dateTo }, step: "day" })) };
476
+ this.presetCategories.push(t), this.presetRanges.push(...t.presets);
476
477
  }
477
478
  this.memoizedPresets.set(a, [...this.presetCategories]);
478
479
  }
@@ -480,26 +481,26 @@ let D = class extends ce() {
480
481
  return this.format || (this.type === "date" ? "YYYY-MM-DD" : "YYYY-MM-DDTHH:mm");
481
482
  }
482
483
  updateSelectedDateRange() {
483
- const t = this.presetRanges.find((a) => a.range.dateFrom === this.dateFrom.value && a.range.dateTo === this.dateTo.value);
484
- if (t) return this.selectedDateRange = t.label, void (this.activePreset = t.label);
485
- this.checkAndUpdateActivePreset(this.dateFrom.value, this.dateTo.value), this.activePreset = null, this.selectedDateRange = function(a, e, n, l) {
486
- if (!a || !e) return l;
487
- const r = d(a), c = d(e);
484
+ const e = this.presetRanges.find((a) => a.range.dateFrom === this.dateFrom.value && a.range.dateTo === this.dateTo.value);
485
+ if (e) return this.selectedDateRange = e.label, void (this.activePreset = e.label);
486
+ this.checkAndUpdateActivePreset(this.dateFrom.value, this.dateTo.value), this.activePreset = null, this.selectedDateRange = function(a, t, n, l) {
487
+ if (!a || !t) return l;
488
+ const r = d(a), c = d(t);
488
489
  if (!r.isValid() || !c.isValid()) return l;
489
490
  const f = n === "datetime-local" ? r.format(" h:mm A") : "", v = n === "datetime-local" ? c.format(" h:mm A") : "";
490
491
  return r.isSame(c, "day") ? `${r.format("MMM D, YYYY")}${f}` : r.isSame(c, "month") && r.isSame(c, "year") ? `${r.format("MMM D")}-${c.format("D, YYYY")}${v}` : r.isSame(c, "year") ? `${r.format("MMM D")} - ${c.format("MMM D, YYYY")}${v}` : `${r.format("MMM D, YYYY")}${f} - ${c.format("MMM D, YYYY")}${v}`;
491
492
  }(this.dateFrom.value, this.dateTo.value, this.type, this.placeholder);
492
493
  }
493
- setDateRange(t, a) {
494
- this.dateFrom.value = t, this.dateTo.value = a, this.updateSelectedDateRange(), this.announceToScreenReader(`Date range updated: ${this.selectedDateRange}`), this.dispatchEvent(new CustomEvent("change", { detail: { dateFrom: t, dateTo: a }, bubbles: !0, composed: !0 }));
494
+ setDateRange(e, a) {
495
+ this.dateFrom.value = e, this.dateTo.value = a, this.updateSelectedDateRange(), this.announceToScreenReader(`Date range updated: ${this.selectedDateRange}`), this.dispatchEvent(new CustomEvent("change", { detail: { dateFrom: e, dateTo: a }, bubbles: !0, composed: !0 }));
495
496
  }
496
- toggleDropdown(t) {
497
- t.stopPropagation(), this.disabled || this.step !== void 0 || (this.isOpen ? this.closeDropdown() : this.openDropdown());
497
+ toggleDropdown(e) {
498
+ e.stopPropagation(), this.disabled || this.step !== void 0 || (this.isOpen ? this.closeDropdown() : this.openDropdown());
498
499
  }
499
500
  openDropdown() {
500
501
  if (this.disabled || this.step !== void 0) return;
501
502
  this.isOpen = !0;
502
- const t = W`
503
+ const e = W`
503
504
  <schmancy-date-range-dialog
504
505
  .type="${this.type}"
505
506
  .dateFrom="${this.dateFrom}"
@@ -513,46 +514,46 @@ let D = class extends ce() {
513
514
  }}"
514
515
  @date-change="${() => this.updateSelectedDateRange()}"
515
516
  @apply-dates="${(a) => {
516
- const { dateFrom: e, dateTo: n, swapIfNeeded: l } = a.detail;
517
- l ? this.setDateRange(n, e) : this.setDateRange(e, n);
517
+ const { dateFrom: t, dateTo: n, swapIfNeeded: l } = a.detail;
518
+ l ? this.setDateRange(n, t) : this.setDateRange(t, n);
518
519
  }}"
519
520
  @announce="${(a) => this.announceToScreenReader(a.detail.message)}"
520
521
  ></schmancy-date-range-dialog>
521
522
  `;
522
- J.component(t, { title: "Select Date Range", width: this.isMobile ? "100vw" : "800px", hideActions: !0 }).then(() => {
523
+ J.component(e, { title: "Select Date Range", width: this.isMobile ? "100vw" : "800px", hideActions: !0 }).then(() => {
523
524
  this.isOpen = !1;
524
525
  });
525
526
  }
526
527
  closeDropdown() {
527
528
  J.dismiss(), this.isOpen = !1;
528
529
  }
529
- shiftDateRange(t, a) {
530
+ shiftDateRange(e, a) {
530
531
  if (a.stopPropagation(), !this.dateFrom.value || !this.dateTo.value) return;
531
- const e = d(this.dateFrom.value), n = d(this.dateTo.value);
532
- if (!e.isValid() || !n.isValid()) return;
533
- const l = this.getDateFormat(), r = t > 0 ? 1 : -1;
532
+ const t = d(this.dateFrom.value), n = d(this.dateTo.value);
533
+ if (!t.isValid() || !n.isValid()) return;
534
+ const l = this.getDateFormat(), r = e > 0 ? 1 : -1;
534
535
  let c, f;
535
- if (this.step !== void 0) if (typeof this.step == "number") c = r > 0 ? e.add(this.step, "day") : e.subtract(this.step, "day"), f = r > 0 ? n.add(this.step, "day") : n.subtract(this.step, "day");
536
+ if (this.step !== void 0) if (typeof this.step == "number") c = r > 0 ? t.add(this.step, "day") : t.subtract(this.step, "day"), f = r > 0 ? n.add(this.step, "day") : n.subtract(this.step, "day");
536
537
  else switch (this.step) {
537
538
  case "day": {
538
- const v = n.diff(e, "day") + 1;
539
- c = r > 0 ? e.add(v, "day") : e.subtract(v, "day"), f = r > 0 ? n.add(v, "day") : n.subtract(v, "day");
539
+ const v = n.diff(t, "day") + 1;
540
+ c = r > 0 ? t.add(v, "day") : t.subtract(v, "day"), f = r > 0 ? n.add(v, "day") : n.subtract(v, "day");
540
541
  break;
541
542
  }
542
543
  case "week":
543
- c = r > 0 ? e.add(1, "week") : e.subtract(1, "week"), f = r > 0 ? n.add(1, "week") : n.subtract(1, "week");
544
+ c = r > 0 ? t.add(1, "week") : t.subtract(1, "week"), f = r > 0 ? n.add(1, "week") : n.subtract(1, "week");
544
545
  break;
545
546
  case "month":
546
- c = r > 0 ? e.add(1, "month") : e.subtract(1, "month"), f = r > 0 ? n.add(1, "month") : n.subtract(1, "month");
547
+ c = r > 0 ? t.add(1, "month") : t.subtract(1, "month"), f = r > 0 ? n.add(1, "month") : n.subtract(1, "month");
547
548
  break;
548
549
  case "year":
549
- c = r > 0 ? e.add(1, "year") : e.subtract(1, "year"), f = r > 0 ? n.add(1, "year") : n.subtract(1, "year");
550
+ c = r > 0 ? t.add(1, "year") : t.subtract(1, "year"), f = r > 0 ? n.add(1, "year") : n.subtract(1, "year");
550
551
  }
551
552
  else {
552
553
  const v = function(Y, O) {
553
554
  return { isFullMonth: Y.date() === 1 && O.isSame(Y.endOf("month"), "day"), isFullQuarter: Y.isSame(Y.startOf("quarter"), "day") && O.isSame(O.endOf("quarter"), "day"), isFullYear: Y.isSame(Y.startOf("year"), "day") && O.isSame(O.endOf("year"), "day"), isFullWeek: Y.day() === 0 && O.day() === 6 && O.diff(Y, "days") === 6 };
554
- }(e, n), $ = n.diff(e, "day") + 1;
555
- v.isFullYear ? (c = r > 0 ? e.add(1, "year") : e.subtract(1, "year"), f = r > 0 ? n.add(1, "year") : n.subtract(1, "year")) : v.isFullMonth ? (c = r > 0 ? e.add(1, "month") : e.subtract(1, "month"), f = r > 0 ? n.add(1, "month") : n.subtract(1, "month")) : v.isFullWeek ? (c = r > 0 ? e.add(1, "week") : e.subtract(1, "week"), f = r > 0 ? n.add(1, "week") : n.subtract(1, "week")) : $ === 1 ? (c = r > 0 ? e.add(1, "day") : e.subtract(1, "day"), f = r > 0 ? n.add(1, "day") : n.subtract(1, "day")) : (c = r > 0 ? e.add($, "day") : e.subtract($, "day"), f = r > 0 ? n.add($, "day") : n.subtract($, "day"));
555
+ }(t, n), $ = n.diff(t, "day") + 1;
556
+ v.isFullYear ? (c = r > 0 ? t.add(1, "year") : t.subtract(1, "year"), f = r > 0 ? n.add(1, "year") : n.subtract(1, "year")) : v.isFullMonth ? (c = r > 0 ? t.add(1, "month") : t.subtract(1, "month"), f = r > 0 ? n.add(1, "month") : n.subtract(1, "month")) : v.isFullWeek ? (c = r > 0 ? t.add(1, "week") : t.subtract(1, "week"), f = r > 0 ? n.add(1, "week") : n.subtract(1, "week")) : $ === 1 ? (c = r > 0 ? t.add(1, "day") : t.subtract(1, "day"), f = r > 0 ? n.add(1, "day") : n.subtract(1, "day")) : (c = r > 0 ? t.add($, "day") : t.subtract($, "day"), f = r > 0 ? n.add($, "day") : n.subtract($, "day"));
556
557
  }
557
558
  if (this.minDate) {
558
559
  const v = d(this.minDate);
@@ -564,47 +565,47 @@ let D = class extends ce() {
564
565
  }
565
566
  this.setDateRange(c.format(l), f.format(l)), this.checkAndUpdateActivePreset(c.format(l), f.format(l));
566
567
  }
567
- handleKeyboardNavigation(t) {
568
- const a = t.key;
568
+ handleKeyboardNavigation(e) {
569
+ const a = e.key;
569
570
  if (this.dateFrom.value && this.dateTo.value && !this.disabled) switch (a) {
570
571
  case "PageUp":
571
- (t.target === this || this.contains(t.target)) && (this.shiftDateRange(-1, t), t.preventDefault());
572
+ (e.target === this || this.contains(e.target)) && (this.shiftDateRange(-1, e), e.preventDefault());
572
573
  break;
573
574
  case "PageDown":
574
- (t.target === this || this.contains(t.target)) && (this.shiftDateRange(1, t), t.preventDefault());
575
+ (e.target === this || this.contains(e.target)) && (this.shiftDateRange(1, e), e.preventDefault());
575
576
  break;
576
577
  case "Home":
577
- if (t.ctrlKey && (t.target === this || this.contains(t.target))) {
578
- const e = d(this.dateFrom.value), n = d(this.dateTo.value), l = e.startOf("month"), r = n.diff(e, "day");
579
- this.setDateRange(l.format(this.getDateFormat()), l.add(r, "day").format(this.getDateFormat())), t.preventDefault();
578
+ if (e.ctrlKey && (e.target === this || this.contains(e.target))) {
579
+ const t = d(this.dateFrom.value), n = d(this.dateTo.value), l = t.startOf("month"), r = n.diff(t, "day");
580
+ this.setDateRange(l.format(this.getDateFormat()), l.add(r, "day").format(this.getDateFormat())), e.preventDefault();
580
581
  }
581
582
  break;
582
583
  case "End":
583
- if (t.ctrlKey && (t.target === this || this.contains(t.target))) {
584
- const e = d(this.dateFrom.value), n = d(this.dateTo.value), l = n.diff(e, "day"), r = n.endOf("month");
585
- this.setDateRange(r.subtract(l, "day").format(this.getDateFormat()), r.format(this.getDateFormat())), t.preventDefault();
584
+ if (e.ctrlKey && (e.target === this || this.contains(e.target))) {
585
+ const t = d(this.dateFrom.value), n = d(this.dateTo.value), l = n.diff(t, "day"), r = n.endOf("month");
586
+ this.setDateRange(r.subtract(l, "day").format(this.getDateFormat()), r.format(this.getDateFormat())), e.preventDefault();
586
587
  }
587
588
  }
588
589
  }
589
- checkAndUpdateActivePreset(t, a) {
590
- const e = this.presetRanges.find((n) => n.range.dateFrom === t && n.range.dateTo === a);
591
- this.activePreset = e ? e.label : null;
590
+ checkAndUpdateActivePreset(e, a) {
591
+ const t = this.presetRanges.find((n) => n.range.dateFrom === e && n.range.dateTo === a);
592
+ this.activePreset = t ? t.label : null;
592
593
  }
593
594
  checkMobileView() {
594
595
  this.isMobile = window.innerWidth < 768;
595
596
  }
596
597
  canNavigateBackward() {
597
598
  if (!this.dateFrom.value || !this.minDate) return !0;
598
- const t = d(this.dateFrom.value), a = d(this.minDate);
599
- return t.isAfter(a);
599
+ const e = d(this.dateFrom.value), a = d(this.minDate);
600
+ return e.isAfter(a);
600
601
  }
601
602
  canNavigateForward() {
602
603
  if (!this.dateTo.value || !this.maxDate) return !0;
603
- const t = d(this.dateTo.value), a = d(this.maxDate);
604
- return t.isBefore(a);
604
+ const e = d(this.dateTo.value), a = d(this.maxDate);
605
+ return e.isBefore(a);
605
606
  }
606
- announceToScreenReader(t) {
607
- this.announceMessage = t, ge(100).pipe(G(this.disconnecting)).subscribe(() => {
607
+ announceToScreenReader(e) {
608
+ this.announceMessage = e, gt(100).pipe(G(this.disconnecting)).subscribe(() => {
608
609
  this.announceMessage = "";
609
610
  });
610
611
  }
@@ -617,11 +618,11 @@ let D = class extends ce() {
617
618
  </div>
618
619
 
619
620
  <!-- Trigger using the preferred schmancy-grid pattern -->
620
- <section @click=${(t) => t.stopPropagation()} class="flex" >
621
+ <section @click=${(e) => e.stopPropagation()} class="flex" >
621
622
  <schmancy-icon-button
622
623
  type="button"
623
624
  aria-label="Previous ${this.activePreset ? this.activePreset.toLowerCase() : "date range"}"
624
- @click=${(t) => this.shiftDateRange(-1, t)}
625
+ @click=${(e) => this.shiftDateRange(-1, e)}
625
626
  ?disabled=${this.disabled || !this.dateFrom.value || !this.dateTo.value || !this.canNavigateBackward()}
626
627
  >
627
628
  arrow_left
@@ -635,7 +636,7 @@ let D = class extends ce() {
635
636
  aria-expanded=${this.isOpen}
636
637
  aria-label="Select date range. Current: ${this.selectedDateRange || "No date selected"}"
637
638
  aria-readonly="${this.step !== void 0}"
638
- @click=${(t) => this.toggleDropdown(t)}
639
+ @click=${(e) => this.toggleDropdown(e)}
639
640
  ?disabled=${this.disabled}
640
641
  style="${this.step !== void 0 ? "cursor: default;" : ""}"
641
642
  >
@@ -645,7 +646,7 @@ let D = class extends ce() {
645
646
  <schmancy-icon-button
646
647
  type="button"
647
648
  aria-label="Next ${this.activePreset ? this.activePreset.toLowerCase() : "date range"}"
648
- @click=${(t) => this.shiftDateRange(1, t)}
649
+ @click=${(e) => this.shiftDateRange(1, e)}
649
650
  ?disabled=${this.disabled || !this.dateFrom.value || !this.dateTo.value || !this.canNavigateForward()}
650
651
  >
651
652
  arrow_right
@@ -655,9 +656,9 @@ let D = class extends ce() {
655
656
  `;
656
657
  }
657
658
  };
658
- M([T({ type: String })], D.prototype, "type", 2), M([T({ type: Object })], D.prototype, "dateFrom", 2), M([T({ type: Object })], D.prototype, "dateTo", 2), M([T({ type: String })], D.prototype, "minDate", 2), M([T({ type: String })], D.prototype, "maxDate", 2), M([T({ type: Array })], D.prototype, "customPresets", 2), M([T({ type: String })], D.prototype, "format", 2), M([T({ type: Boolean })], D.prototype, "disabled", 2), M([T({ type: Boolean })], D.prototype, "required", 2), M([T({ type: String })], D.prototype, "placeholder", 2), M([T({ type: Boolean })], D.prototype, "clearable", 2), M([T()], D.prototype, "step", 2), M([j()], D.prototype, "isOpen", 2), M([j()], D.prototype, "selectedDateRange", 2), M([j()], D.prototype, "activePreset", 2), M([j()], D.prototype, "announceMessage", 2), M([j()], D.prototype, "isMobile", 2), D = M([ue("schmancy-date-range")], D);
659
+ M([T({ type: String })], D.prototype, "type", 2), M([T({ type: Object })], D.prototype, "dateFrom", 2), M([T({ type: Object })], D.prototype, "dateTo", 2), M([T({ type: String })], D.prototype, "minDate", 2), M([T({ type: String })], D.prototype, "maxDate", 2), M([T({ type: Array })], D.prototype, "customPresets", 2), M([T({ type: String })], D.prototype, "format", 2), M([T({ type: Boolean })], D.prototype, "disabled", 2), M([T({ type: Boolean })], D.prototype, "required", 2), M([T({ type: String })], D.prototype, "placeholder", 2), M([T({ type: Boolean })], D.prototype, "clearable", 2), M([T()], D.prototype, "step", 2), M([j()], D.prototype, "isOpen", 2), M([j()], D.prototype, "selectedDateRange", 2), M([j()], D.prototype, "activePreset", 2), M([j()], D.prototype, "announceMessage", 2), M([j()], D.prototype, "isMobile", 2), D = M([ut("schmancy-date-range")], D);
659
660
  export {
660
661
  D as S,
661
- Fe as v
662
+ Ft as v
662
663
  };
663
- //# sourceMappingURL=date-range-kFnTrnHN.js.map
664
+ //# sourceMappingURL=date-range-NB6Q02hz.js.map