snice 4.21.0 → 4.22.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 (338) hide show
  1. package/adapters/react/drawer.d.ts +4 -0
  2. package/adapters/react/drawer.d.ts.map +1 -1
  3. package/adapters/react/drawer.js +1 -1
  4. package/adapters/react/drawer.js.map +1 -1
  5. package/adapters/react/drawer.tsx +5 -1
  6. package/dist/cdn/accordion/snice-accordion.js +1 -1
  7. package/dist/cdn/accordion/snice-accordion.min.js +1 -1
  8. package/dist/cdn/activity-feed/snice-activity-feed.js +1 -1
  9. package/dist/cdn/activity-feed/snice-activity-feed.min.js +1 -1
  10. package/dist/cdn/alert/snice-alert.js +1 -1
  11. package/dist/cdn/alert/snice-alert.min.js +1 -1
  12. package/dist/cdn/app-tiles/snice-app-tiles.js +1 -1
  13. package/dist/cdn/app-tiles/snice-app-tiles.min.js +1 -1
  14. package/dist/cdn/approval-flow/snice-approval-flow.js +1 -1
  15. package/dist/cdn/approval-flow/snice-approval-flow.min.js +1 -1
  16. package/dist/cdn/audio-recorder/snice-audio-recorder.js +1 -1
  17. package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +1 -1
  18. package/dist/cdn/availability/snice-availability.js +1 -1
  19. package/dist/cdn/availability/snice-availability.min.js +1 -1
  20. package/dist/cdn/avatar/snice-avatar.js +1 -1
  21. package/dist/cdn/avatar/snice-avatar.min.js +1 -1
  22. package/dist/cdn/avatar-group/snice-avatar-group.js +1 -1
  23. package/dist/cdn/avatar-group/snice-avatar-group.min.js +1 -1
  24. package/dist/cdn/badge/snice-badge.js +1 -1
  25. package/dist/cdn/badge/snice-badge.min.js +1 -1
  26. package/dist/cdn/banner/snice-banner.js +1 -1
  27. package/dist/cdn/banner/snice-banner.min.js +1 -1
  28. package/dist/cdn/book/snice-book.js +1 -1
  29. package/dist/cdn/book/snice-book.min.js +1 -1
  30. package/dist/cdn/booking/snice-booking.js +1 -1
  31. package/dist/cdn/booking/snice-booking.min.js +1 -1
  32. package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +1 -1
  33. package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +1 -1
  34. package/dist/cdn/button/snice-button.js +1 -1
  35. package/dist/cdn/button/snice-button.min.js +1 -1
  36. package/dist/cdn/calendar/snice-calendar.js +1 -1
  37. package/dist/cdn/calendar/snice-calendar.min.js +1 -1
  38. package/dist/cdn/camera/snice-camera.js +1 -1
  39. package/dist/cdn/camera/snice-camera.min.js +1 -1
  40. package/dist/cdn/camera-annotate/snice-camera-annotate.js +1 -1
  41. package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +1 -1
  42. package/dist/cdn/candlestick/snice-candlestick.js +1 -1
  43. package/dist/cdn/candlestick/snice-candlestick.min.js +1 -1
  44. package/dist/cdn/card/snice-card.js +1 -1
  45. package/dist/cdn/card/snice-card.min.js +1 -1
  46. package/dist/cdn/carousel/snice-carousel.js +1 -1
  47. package/dist/cdn/carousel/snice-carousel.min.js +1 -1
  48. package/dist/cdn/cart/README.md +1 -1
  49. package/dist/cdn/cart/snice-cart.js +24 -20
  50. package/dist/cdn/cart/snice-cart.js.map +1 -1
  51. package/dist/cdn/cart/snice-cart.min.js +24 -20
  52. package/dist/cdn/cart/snice-cart.min.js.map +1 -1
  53. package/dist/cdn/chart/snice-chart.js +1 -1
  54. package/dist/cdn/chart/snice-chart.min.js +1 -1
  55. package/dist/cdn/chat/README.md +2 -2
  56. package/dist/cdn/chat/snice-chat.js +177 -10
  57. package/dist/cdn/chat/snice-chat.js.map +1 -1
  58. package/dist/cdn/chat/snice-chat.min.js +49 -17
  59. package/dist/cdn/chat/snice-chat.min.js.map +1 -1
  60. package/dist/cdn/checkbox/snice-checkbox.js +1 -1
  61. package/dist/cdn/checkbox/snice-checkbox.min.js +1 -1
  62. package/dist/cdn/chip/snice-chip.js +1 -1
  63. package/dist/cdn/chip/snice-chip.min.js +1 -1
  64. package/dist/cdn/code-block/README.md +1 -1
  65. package/dist/cdn/code-block/snice-code-block.js +2 -2
  66. package/dist/cdn/code-block/snice-code-block.js.map +1 -1
  67. package/dist/cdn/code-block/snice-code-block.min.js +3 -3
  68. package/dist/cdn/code-block/snice-code-block.min.js.map +1 -1
  69. package/dist/cdn/color-display/snice-color-display.js +1 -1
  70. package/dist/cdn/color-display/snice-color-display.min.js +1 -1
  71. package/dist/cdn/color-picker/snice-color-picker.js +1 -1
  72. package/dist/cdn/color-picker/snice-color-picker.min.js +1 -1
  73. package/dist/cdn/command-palette/snice-command-palette.js +2 -2
  74. package/dist/cdn/command-palette/snice-command-palette.js.map +1 -1
  75. package/dist/cdn/command-palette/snice-command-palette.min.js +2 -2
  76. package/dist/cdn/command-palette/snice-command-palette.min.js.map +1 -1
  77. package/dist/cdn/comments/snice-comments.js +1 -1
  78. package/dist/cdn/comments/snice-comments.min.js +1 -1
  79. package/dist/cdn/countdown/snice-countdown.js +1 -1
  80. package/dist/cdn/countdown/snice-countdown.min.js +1 -1
  81. package/dist/cdn/cropper/snice-cropper.js +1 -1
  82. package/dist/cdn/cropper/snice-cropper.min.js +1 -1
  83. package/dist/cdn/data-card/snice-data-card.js +1 -1
  84. package/dist/cdn/data-card/snice-data-card.min.js +1 -1
  85. package/dist/cdn/date-picker/snice-date-picker.js +1 -1
  86. package/dist/cdn/date-picker/snice-date-picker.min.js +1 -1
  87. package/dist/cdn/date-time-picker/snice-date-time-picker.js +1 -1
  88. package/dist/cdn/date-time-picker/snice-date-time-picker.min.js +1 -1
  89. package/dist/cdn/diff/snice-diff.js +1 -1
  90. package/dist/cdn/diff/snice-diff.min.js +1 -1
  91. package/dist/cdn/divider/snice-divider.js +1 -1
  92. package/dist/cdn/divider/snice-divider.min.js +1 -1
  93. package/dist/cdn/doc/snice-doc.js +1 -1
  94. package/dist/cdn/doc/snice-doc.min.js +1 -1
  95. package/dist/cdn/draw/snice-draw.js +1 -1
  96. package/dist/cdn/draw/snice-draw.min.js +1 -1
  97. package/dist/cdn/drawer/README.md +2 -2
  98. package/dist/cdn/drawer/snice-drawer.js +129 -22
  99. package/dist/cdn/drawer/snice-drawer.js.map +1 -1
  100. package/dist/cdn/drawer/snice-drawer.min.js +22 -18
  101. package/dist/cdn/drawer/snice-drawer.min.js.map +1 -1
  102. package/dist/cdn/empty-state/snice-empty-state.js +1 -1
  103. package/dist/cdn/empty-state/snice-empty-state.min.js +1 -1
  104. package/dist/cdn/estimate/snice-estimate.js +1 -1
  105. package/dist/cdn/estimate/snice-estimate.min.js +1 -1
  106. package/dist/cdn/file-gallery/snice-file-gallery.js +1 -1
  107. package/dist/cdn/file-gallery/snice-file-gallery.min.js +1 -1
  108. package/dist/cdn/file-upload/snice-file-upload.js +1 -1
  109. package/dist/cdn/file-upload/snice-file-upload.min.js +1 -1
  110. package/dist/cdn/flip-card/snice-flip-card.js +1 -1
  111. package/dist/cdn/flip-card/snice-flip-card.min.js +1 -1
  112. package/dist/cdn/flow/snice-flow.js +1 -1
  113. package/dist/cdn/flow/snice-flow.min.js +1 -1
  114. package/dist/cdn/form-layout/snice-form-layout.js +1 -1
  115. package/dist/cdn/form-layout/snice-form-layout.min.js +1 -1
  116. package/dist/cdn/funnel/snice-funnel.js +1 -1
  117. package/dist/cdn/funnel/snice-funnel.min.js +1 -1
  118. package/dist/cdn/gantt/snice-gantt.js +1 -1
  119. package/dist/cdn/gantt/snice-gantt.min.js +1 -1
  120. package/dist/cdn/gauge/snice-gauge.js +1 -1
  121. package/dist/cdn/gauge/snice-gauge.min.js +1 -1
  122. package/dist/cdn/heatmap/README.md +2 -2
  123. package/dist/cdn/heatmap/snice-heatmap.js +2 -2
  124. package/dist/cdn/heatmap/snice-heatmap.js.map +1 -1
  125. package/dist/cdn/heatmap/snice-heatmap.min.js +5 -5
  126. package/dist/cdn/heatmap/snice-heatmap.min.js.map +1 -1
  127. package/dist/cdn/image/snice-image.js +1 -1
  128. package/dist/cdn/image/snice-image.min.js +1 -1
  129. package/dist/cdn/input/snice-input.js +1 -1
  130. package/dist/cdn/input/snice-input.min.js +1 -1
  131. package/dist/cdn/invoice/snice-invoice.js +1 -1
  132. package/dist/cdn/invoice/snice-invoice.min.js +1 -1
  133. package/dist/cdn/kanban/snice-kanban.js +1 -1
  134. package/dist/cdn/kanban/snice-kanban.min.js +1 -1
  135. package/dist/cdn/key-value/snice-key-value.js +1 -1
  136. package/dist/cdn/key-value/snice-key-value.min.js +1 -1
  137. package/dist/cdn/kpi/snice-kpi.js +1 -1
  138. package/dist/cdn/kpi/snice-kpi.min.js +1 -1
  139. package/dist/cdn/layout/snice-layout.js +1 -1
  140. package/dist/cdn/layout/snice-layout.min.js +1 -1
  141. package/dist/cdn/leaderboard/snice-leaderboard.js +1 -1
  142. package/dist/cdn/leaderboard/snice-leaderboard.min.js +1 -1
  143. package/dist/cdn/link/snice-link.js +1 -1
  144. package/dist/cdn/link/snice-link.min.js +1 -1
  145. package/dist/cdn/link-preview/snice-link-preview.js +1 -1
  146. package/dist/cdn/link-preview/snice-link-preview.min.js +1 -1
  147. package/dist/cdn/list/README.md +2 -2
  148. package/dist/cdn/list/snice-list.js +179 -8
  149. package/dist/cdn/list/snice-list.js.map +1 -1
  150. package/dist/cdn/list/snice-list.min.js +45 -9
  151. package/dist/cdn/list/snice-list.min.js.map +1 -1
  152. package/dist/cdn/location/snice-location.js +1 -1
  153. package/dist/cdn/location/snice-location.min.js +1 -1
  154. package/dist/cdn/login/snice-login.js +1 -1
  155. package/dist/cdn/login/snice-login.min.js +1 -1
  156. package/dist/cdn/map/snice-map.js +1 -1
  157. package/dist/cdn/map/snice-map.min.js +1 -1
  158. package/dist/cdn/markdown/snice-markdown.js +1 -1
  159. package/dist/cdn/markdown/snice-markdown.min.js +1 -1
  160. package/dist/cdn/masonry/snice-masonry.js +1 -1
  161. package/dist/cdn/masonry/snice-masonry.min.js +1 -1
  162. package/dist/cdn/menu/snice-menu.js +1 -1
  163. package/dist/cdn/menu/snice-menu.min.js +1 -1
  164. package/dist/cdn/message-strip/snice-message-strip.js +1 -1
  165. package/dist/cdn/message-strip/snice-message-strip.min.js +1 -1
  166. package/dist/cdn/metric-table/snice-metric-table.js +1 -1
  167. package/dist/cdn/metric-table/snice-metric-table.min.js +1 -1
  168. package/dist/cdn/modal/snice-modal.js +1 -1
  169. package/dist/cdn/modal/snice-modal.min.js +1 -1
  170. package/dist/cdn/music-player/snice-music-player.js +1 -1
  171. package/dist/cdn/music-player/snice-music-player.min.js +1 -1
  172. package/dist/cdn/nav/snice-nav.js +1 -1
  173. package/dist/cdn/nav/snice-nav.min.js +1 -1
  174. package/dist/cdn/network-graph/snice-network-graph.js +1 -1
  175. package/dist/cdn/network-graph/snice-network-graph.min.js +1 -1
  176. package/dist/cdn/notification-center/README.md +2 -2
  177. package/dist/cdn/notification-center/snice-notification-center.js +136 -15
  178. package/dist/cdn/notification-center/snice-notification-center.js.map +1 -1
  179. package/dist/cdn/notification-center/snice-notification-center.min.js +57 -23
  180. package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -1
  181. package/dist/cdn/order-tracker/snice-order-tracker.js +1 -1
  182. package/dist/cdn/order-tracker/snice-order-tracker.min.js +1 -1
  183. package/dist/cdn/org-chart/snice-org-chart.js +1 -1
  184. package/dist/cdn/org-chart/snice-org-chart.min.js +1 -1
  185. package/dist/cdn/pagination/snice-pagination.js +1 -1
  186. package/dist/cdn/pagination/snice-pagination.min.js +1 -1
  187. package/dist/cdn/paint/snice-paint.js +1 -1
  188. package/dist/cdn/paint/snice-paint.min.js +1 -1
  189. package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +1 -1
  190. package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +1 -1
  191. package/dist/cdn/permission-matrix/snice-permission-matrix.js +1 -1
  192. package/dist/cdn/permission-matrix/snice-permission-matrix.min.js +1 -1
  193. package/dist/cdn/podcast-player/snice-podcast-player.js +1 -1
  194. package/dist/cdn/podcast-player/snice-podcast-player.min.js +1 -1
  195. package/dist/cdn/pricing-table/snice-pricing-table.js +1 -1
  196. package/dist/cdn/pricing-table/snice-pricing-table.min.js +1 -1
  197. package/dist/cdn/product-card/README.md +1 -1
  198. package/dist/cdn/product-card/snice-product-card.js +2 -2
  199. package/dist/cdn/product-card/snice-product-card.js.map +1 -1
  200. package/dist/cdn/product-card/snice-product-card.min.js +18 -18
  201. package/dist/cdn/product-card/snice-product-card.min.js.map +1 -1
  202. package/dist/cdn/progress/snice-progress.js +1 -1
  203. package/dist/cdn/progress/snice-progress.min.js +1 -1
  204. package/dist/cdn/progress-ring/snice-progress-ring.js +1 -1
  205. package/dist/cdn/progress-ring/snice-progress-ring.min.js +1 -1
  206. package/dist/cdn/qr-code/snice-qr-code.js +1 -1
  207. package/dist/cdn/qr-code/snice-qr-code.min.js +1 -1
  208. package/dist/cdn/qr-reader/snice-qr-reader.js +1 -1
  209. package/dist/cdn/qr-reader/snice-qr-reader.min.js +1 -1
  210. package/dist/cdn/radio/snice-radio.js +1 -1
  211. package/dist/cdn/radio/snice-radio.min.js +1 -1
  212. package/dist/cdn/range-slider/snice-range-slider.js +1 -1
  213. package/dist/cdn/range-slider/snice-range-slider.min.js +1 -1
  214. package/dist/cdn/rating/snice-rating.js +1 -1
  215. package/dist/cdn/rating/snice-rating.min.js +1 -1
  216. package/dist/cdn/receipt/snice-receipt.js +1 -1
  217. package/dist/cdn/receipt/snice-receipt.min.js +1 -1
  218. package/dist/cdn/recipe/snice-recipe.js +1 -1
  219. package/dist/cdn/recipe/snice-recipe.min.js +1 -1
  220. package/dist/cdn/runtime/snice-runtime.esm.js +4 -4
  221. package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
  222. package/dist/cdn/runtime/snice-runtime.esm.min.js +4 -4
  223. package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
  224. package/dist/cdn/runtime/snice-runtime.js +4 -4
  225. package/dist/cdn/runtime/snice-runtime.js.map +1 -1
  226. package/dist/cdn/runtime/snice-runtime.min.js +4 -4
  227. package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
  228. package/dist/cdn/sankey/snice-sankey.js +1 -1
  229. package/dist/cdn/sankey/snice-sankey.min.js +1 -1
  230. package/dist/cdn/segmented-control/snice-segmented-control.js +1 -1
  231. package/dist/cdn/segmented-control/snice-segmented-control.min.js +1 -1
  232. package/dist/cdn/select/snice-select.js +1 -1
  233. package/dist/cdn/select/snice-select.min.js +1 -1
  234. package/dist/cdn/skeleton/snice-skeleton.js +1 -1
  235. package/dist/cdn/skeleton/snice-skeleton.min.js +1 -1
  236. package/dist/cdn/slider/snice-slider.js +1 -1
  237. package/dist/cdn/slider/snice-slider.min.js +1 -1
  238. package/dist/cdn/sortable/snice-sortable.js +1 -1
  239. package/dist/cdn/sortable/snice-sortable.min.js +1 -1
  240. package/dist/cdn/sparkline/snice-sparkline.js +1 -1
  241. package/dist/cdn/sparkline/snice-sparkline.min.js +1 -1
  242. package/dist/cdn/spinner/snice-spinner.js +1 -1
  243. package/dist/cdn/spinner/snice-spinner.min.js +1 -1
  244. package/dist/cdn/split-button/snice-split-button.js +1 -1
  245. package/dist/cdn/split-button/snice-split-button.min.js +1 -1
  246. package/dist/cdn/split-pane/snice-split-pane.js +1 -1
  247. package/dist/cdn/split-pane/snice-split-pane.min.js +1 -1
  248. package/dist/cdn/spotlight/snice-spotlight.js +1 -1
  249. package/dist/cdn/spotlight/snice-spotlight.min.js +1 -1
  250. package/dist/cdn/spreadsheet/snice-spreadsheet.js +1 -1
  251. package/dist/cdn/spreadsheet/snice-spreadsheet.min.js +1 -1
  252. package/dist/cdn/stat-group/snice-stat-group.js +1 -1
  253. package/dist/cdn/stat-group/snice-stat-group.min.js +1 -1
  254. package/dist/cdn/step-input/snice-step-input.js +1 -1
  255. package/dist/cdn/step-input/snice-step-input.min.js +1 -1
  256. package/dist/cdn/stepper/snice-stepper.js +1 -1
  257. package/dist/cdn/stepper/snice-stepper.min.js +1 -1
  258. package/dist/cdn/switch/snice-switch.js +1 -1
  259. package/dist/cdn/switch/snice-switch.min.js +1 -1
  260. package/dist/cdn/table/snice-table.js +1 -1
  261. package/dist/cdn/table/snice-table.min.js +1 -1
  262. package/dist/cdn/tabs/snice-tabs.js +1 -1
  263. package/dist/cdn/tabs/snice-tabs.min.js +1 -1
  264. package/dist/cdn/tag/snice-tag.js +1 -1
  265. package/dist/cdn/tag/snice-tag.min.js +1 -1
  266. package/dist/cdn/tag-input/snice-tag-input.js +1 -1
  267. package/dist/cdn/tag-input/snice-tag-input.min.js +1 -1
  268. package/dist/cdn/terminal/snice-terminal.js +1 -1
  269. package/dist/cdn/terminal/snice-terminal.min.js +1 -1
  270. package/dist/cdn/testimonial/snice-testimonial.js +1 -1
  271. package/dist/cdn/testimonial/snice-testimonial.min.js +1 -1
  272. package/dist/cdn/textarea/snice-textarea.js +1 -1
  273. package/dist/cdn/textarea/snice-textarea.min.js +1 -1
  274. package/dist/cdn/time-picker/snice-time-picker.js +1 -1
  275. package/dist/cdn/time-picker/snice-time-picker.min.js +1 -1
  276. package/dist/cdn/time-range-picker/snice-time-range-picker.js +1 -1
  277. package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +1 -1
  278. package/dist/cdn/timeline/snice-timeline.js +1 -1
  279. package/dist/cdn/timeline/snice-timeline.min.js +1 -1
  280. package/dist/cdn/timer/snice-timer.js +1 -1
  281. package/dist/cdn/timer/snice-timer.min.js +1 -1
  282. package/dist/cdn/toast/README.md +2 -2
  283. package/dist/cdn/toast/snice-toast.js +9 -9
  284. package/dist/cdn/toast/snice-toast.js.map +1 -1
  285. package/dist/cdn/toast/snice-toast.min.js +12 -12
  286. package/dist/cdn/toast/snice-toast.min.js.map +1 -1
  287. package/dist/cdn/tooltip/snice-tooltip.js +1 -1
  288. package/dist/cdn/tooltip/snice-tooltip.min.js +1 -1
  289. package/dist/cdn/tree/snice-tree.js +1 -1
  290. package/dist/cdn/tree/snice-tree.min.js +1 -1
  291. package/dist/cdn/treemap/snice-treemap.js +1 -1
  292. package/dist/cdn/treemap/snice-treemap.min.js +1 -1
  293. package/dist/cdn/user-card/snice-user-card.js +1 -1
  294. package/dist/cdn/user-card/snice-user-card.min.js +1 -1
  295. package/dist/cdn/video-player/snice-video-player.js +1 -1
  296. package/dist/cdn/video-player/snice-video-player.min.js +1 -1
  297. package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +1 -1
  298. package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +1 -1
  299. package/dist/cdn/waterfall/snice-waterfall.js +1 -1
  300. package/dist/cdn/waterfall/snice-waterfall.min.js +1 -1
  301. package/dist/cdn/weather/snice-weather.js +1 -1
  302. package/dist/cdn/weather/snice-weather.min.js +1 -1
  303. package/dist/cdn/work-order/snice-work-order.js +1 -1
  304. package/dist/cdn/work-order/snice-work-order.min.js +1 -1
  305. package/dist/components/cart/snice-cart.js +23 -19
  306. package/dist/components/cart/snice-cart.js.map +1 -1
  307. package/dist/components/chat/snice-chat.d.ts +1 -0
  308. package/dist/components/chat/snice-chat.js +10 -9
  309. package/dist/components/chat/snice-chat.js.map +1 -1
  310. package/dist/components/code-block/snice-code-block.js +1 -1
  311. package/dist/components/code-block/snice-code-block.js.map +1 -1
  312. package/dist/components/command-palette/snice-command-palette.js +1 -1
  313. package/dist/components/command-palette/snice-command-palette.js.map +1 -1
  314. package/dist/components/drawer/snice-drawer.d.ts +13 -0
  315. package/dist/components/drawer/snice-drawer.js +128 -21
  316. package/dist/components/drawer/snice-drawer.js.map +1 -1
  317. package/dist/components/drawer/snice-drawer.types.d.ts +4 -0
  318. package/dist/components/heatmap/snice-heatmap.js +1 -1
  319. package/dist/components/heatmap/snice-heatmap.js.map +1 -1
  320. package/dist/components/list/snice-list.d.ts +1 -0
  321. package/dist/components/list/snice-list.js +10 -5
  322. package/dist/components/list/snice-list.js.map +1 -1
  323. package/dist/components/notification-center/snice-notification-center.d.ts +1 -0
  324. package/dist/components/notification-center/snice-notification-center.js +16 -14
  325. package/dist/components/notification-center/snice-notification-center.js.map +1 -1
  326. package/dist/components/product-card/snice-product-card.js +1 -1
  327. package/dist/components/product-card/snice-product-card.js.map +1 -1
  328. package/dist/components/toast/snice-toast.js +8 -8
  329. package/dist/index.cjs +1 -1
  330. package/dist/index.esm.js +1 -1
  331. package/dist/index.iife.js +1 -1
  332. package/dist/symbols.cjs +1 -1
  333. package/dist/symbols.esm.js +1 -1
  334. package/dist/transitions.cjs +1 -1
  335. package/dist/transitions.esm.js +1 -1
  336. package/docs/ai/components/drawer.md +45 -1
  337. package/docs/components/drawer.md +65 -0
  338. package/package.json +1 -1
@@ -1,37 +1,41 @@
1
1
  /*!
2
- * snice v4.20.1
2
+ * snice v4.21.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
6
6
  */
7
- void 0===globalThis.Snice&&console.warn("[snice] snice-runtime.min.js must be loaded before snice-drawer.min.js");var SniceDrawer=function(e,t){"use strict";function i(e,t,i,s,r,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var n,d=s.kind,h="getter"===d?"get":"setter"===d?"set":"value",l=!t&&e?s.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,s.name):{}),c=!1,u=i.length-1;u>=0;u--){var m={};for(var w in s)m[w]="access"===w?{}:s[w];for(var w in s.access)m.access[w]=s.access[w];m.addInitializer=function(e){if(c)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var g=(0,i[u])("accessor"===d?{get:p.get,set:p.set}:p[h],m);if("accessor"===d){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(n=o(g.get))&&(p.get=n),(n=o(g.set))&&(p.set=n),(n=o(g.init))&&r.unshift(n)}else(n=o(g))&&("field"===d?r.unshift(n):p[h]=n)}l&&Object.defineProperty(l,s.name,p),c=!0}function s(e,t,i){for(var s=arguments.length>2,r=0;r<t.length;r++)i=s?t[r].call(e,i):t[r].call(e);return s?i:void 0}"function"==typeof SuppressedError&&SuppressedError;let r=(()=>{let e,r,a,o,n,d,h,l,p,c,u,m,w,g,v,x,f,b,z,y,k,E,T,C,B,S,F=[t.element("snice-drawer")],O=[],D=HTMLElement,_=[],H=[],A=[],j=[],q=[],P=[],L=[],X=[],M=[],Y=[],I=[],$=[],R=[],U=[],V=[],G=[],J=[],K=[],N=[],Q=[],W=[],Z=[],ee=[],te=[],ie=[],se=[],re=[],ae=[],oe=[],ne=[],de=[];return class extends D{static{r=this}constructor(){super(...arguments),this.open=(s(this,_),s(this,H,!1)),this.position=(s(this,A),s(this,j,"left")),this.size=(s(this,q),s(this,P,"medium")),this.noBackdrop=(s(this,L),s(this,X,!1)),this.noBackdropDismiss=(s(this,M),s(this,Y,!1)),this.noEscapeDismiss=(s(this,I),s(this,$,!1)),this.noFocusTrap=(s(this,R),s(this,U,!1)),this.persistent=(s(this,V),s(this,G,!1)),this.pushContent=(s(this,J),s(this,K,!1)),this.contained=(s(this,N),s(this,Q,!1)),this.drawerElement=(s(this,W),s(this,Z,void 0)),this.backdropElement=(s(this,ee),s(this,te,void 0)),this.closeButton=(s(this,ie),s(this,se,void 0)),this.focusTrapStart=(s(this,re),s(this,ae,void 0)),this.focusTrapEnd=(s(this,oe),s(this,ne,void 0)),this.previousFocus=s(this,de),this._isHandlingOpenChange=!1,this._lastEventType=null,this._lastEventTime=0}static{const he="function"==typeof Symbol&&Symbol.metadata?Object.create(D[Symbol.metadata]??null):void 0;a=[t.property({type:Boolean})],o=[t.property({})],n=[t.property({})],d=[t.property({type:Boolean,attribute:"no-backdrop"})],h=[t.property({type:Boolean,attribute:"no-backdrop-dismiss"})],l=[t.property({type:Boolean,attribute:"no-escape-dismiss"})],p=[t.property({type:Boolean,attribute:"no-focus-trap"})],c=[t.property({type:Boolean})],u=[t.property({type:Boolean,attribute:"push-content"})],m=[t.property({type:Boolean})],w=[t.query(".drawer")],g=[t.query(".drawer-backdrop")],v=[t.query(".drawer-close")],x=[t.query(".focus-trap-start")],f=[t.query(".focus-trap-end")],b=[t.render()],z=[t.styles()],y=[t.ready()],k=[t.watch("open")],E=[t.on("click",{target:".drawer-backdrop"})],T=[t.on("click",{target:".drawer-close"})],C=[t.on("focus",{target:".focus-trap-start"})],B=[t.on("focus",{target:".focus-trap-end"})],S=[t.dispose()],i(this,null,b,{kind:"method",name:"render",static:!1,private:!1,access:{has:e=>"render"in e,get:e=>e.render},metadata:he},null,_),i(this,null,z,{kind:"method",name:"styles",static:!1,private:!1,access:{has:e=>"styles"in e,get:e=>e.styles},metadata:he},null,_),i(this,null,y,{kind:"method",name:"init",static:!1,private:!1,access:{has:e=>"init"in e,get:e=>e.init},metadata:he},null,_),i(this,null,k,{kind:"method",name:"handleOpenChange",static:!1,private:!1,access:{has:e=>"handleOpenChange"in e,get:e=>e.handleOpenChange},metadata:he},null,_),i(this,null,E,{kind:"method",name:"handleBackdropClick",static:!1,private:!1,access:{has:e=>"handleBackdropClick"in e,get:e=>e.handleBackdropClick},metadata:he},null,_),i(this,null,T,{kind:"method",name:"handleCloseClick",static:!1,private:!1,access:{has:e=>"handleCloseClick"in e,get:e=>e.handleCloseClick},metadata:he},null,_),i(this,null,C,{kind:"method",name:"handleFocusTrapStart",static:!1,private:!1,access:{has:e=>"handleFocusTrapStart"in e,get:e=>e.handleFocusTrapStart},metadata:he},null,_),i(this,null,B,{kind:"method",name:"handleFocusTrapEnd",static:!1,private:!1,access:{has:e=>"handleFocusTrapEnd"in e,get:e=>e.handleFocusTrapEnd},metadata:he},null,_),i(this,null,S,{kind:"method",name:"cleanup",static:!1,private:!1,access:{has:e=>"cleanup"in e,get:e=>e.cleanup},metadata:he},null,_),i(null,null,a,{kind:"field",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:he},H,A),i(null,null,o,{kind:"field",name:"position",static:!1,private:!1,access:{has:e=>"position"in e,get:e=>e.position,set:(e,t)=>{e.position=t}},metadata:he},j,q),i(null,null,n,{kind:"field",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,t)=>{e.size=t}},metadata:he},P,L),i(null,null,d,{kind:"field",name:"noBackdrop",static:!1,private:!1,access:{has:e=>"noBackdrop"in e,get:e=>e.noBackdrop,set:(e,t)=>{e.noBackdrop=t}},metadata:he},X,M),i(null,null,h,{kind:"field",name:"noBackdropDismiss",static:!1,private:!1,access:{has:e=>"noBackdropDismiss"in e,get:e=>e.noBackdropDismiss,set:(e,t)=>{e.noBackdropDismiss=t}},metadata:he},Y,I),i(null,null,l,{kind:"field",name:"noEscapeDismiss",static:!1,private:!1,access:{has:e=>"noEscapeDismiss"in e,get:e=>e.noEscapeDismiss,set:(e,t)=>{e.noEscapeDismiss=t}},metadata:he},$,R),i(null,null,p,{kind:"field",name:"noFocusTrap",static:!1,private:!1,access:{has:e=>"noFocusTrap"in e,get:e=>e.noFocusTrap,set:(e,t)=>{e.noFocusTrap=t}},metadata:he},U,V),i(null,null,c,{kind:"field",name:"persistent",static:!1,private:!1,access:{has:e=>"persistent"in e,get:e=>e.persistent,set:(e,t)=>{e.persistent=t}},metadata:he},G,J),i(null,null,u,{kind:"field",name:"pushContent",static:!1,private:!1,access:{has:e=>"pushContent"in e,get:e=>e.pushContent,set:(e,t)=>{e.pushContent=t}},metadata:he},K,N),i(null,null,m,{kind:"field",name:"contained",static:!1,private:!1,access:{has:e=>"contained"in e,get:e=>e.contained,set:(e,t)=>{e.contained=t}},metadata:he},Q,W),i(null,null,w,{kind:"field",name:"drawerElement",static:!1,private:!1,access:{has:e=>"drawerElement"in e,get:e=>e.drawerElement,set:(e,t)=>{e.drawerElement=t}},metadata:he},Z,ee),i(null,null,g,{kind:"field",name:"backdropElement",static:!1,private:!1,access:{has:e=>"backdropElement"in e,get:e=>e.backdropElement,set:(e,t)=>{e.backdropElement=t}},metadata:he},te,ie),i(null,null,v,{kind:"field",name:"closeButton",static:!1,private:!1,access:{has:e=>"closeButton"in e,get:e=>e.closeButton,set:(e,t)=>{e.closeButton=t}},metadata:he},se,re),i(null,null,x,{kind:"field",name:"focusTrapStart",static:!1,private:!1,access:{has:e=>"focusTrapStart"in e,get:e=>e.focusTrapStart,set:(e,t)=>{e.focusTrapStart=t}},metadata:he},ae,oe),i(null,null,f,{kind:"field",name:"focusTrapEnd",static:!1,private:!1,access:{has:e=>"focusTrapEnd"in e,get:e=>e.focusTrapEnd,set:(e,t)=>{e.focusTrapEnd=t}},metadata:he},ne,de),i(null,e={value:r},F,{kind:"class",name:r.name,metadata:he},null,O),r=e.value,he&&Object.defineProperty(r,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:he}),s(r,O)}render(){return t.html`
7
+ void 0===globalThis.Snice&&console.warn("[snice] snice-runtime.min.js must be loaded before snice-drawer.min.js");var SniceDrawer=function(e,t){"use strict";function i(e,t,i,r,s,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var n,h=r.kind,d="getter"===h?"get":"setter"===h?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),c=!1,u=i.length-1;u>=0;u--){var w={};for(var m in r)w[m]="access"===m?{}:r[m];for(var m in r.access)w.access[m]=r.access[m];w.addInitializer=function(e){if(c)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var g=(0,i[u])("accessor"===h?{get:p.get,set:p.set}:p[d],w);if("accessor"===h){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(n=o(g.get))&&(p.get=n),(n=o(g.set))&&(p.set=n),(n=o(g.init))&&s.unshift(n)}else(n=o(g))&&("field"===h?s.unshift(n):p[d]=n)}l&&Object.defineProperty(l,r.name,p),c=!0}function r(e,t,i){for(var r=arguments.length>2,s=0;s<t.length;s++)i=r?t[s].call(e,i):t[s].call(e);return r?i:void 0}"function"==typeof SuppressedError&&SuppressedError;let s=(()=>{let e,s,a,o,n,h,d,l,p,c,u,w,m,g,v,x,b,f,z,k,y,E,B,C,T,F,S,H,O,A,D,L=[t.element("snice-drawer")],_=[],P=HTMLElement,q=[],j=[],I=[],Q=[],X=[],M=[],$=[],Y=[],N=[],R=[],U=[],V=[],G=[],J=[],K=[],W=[],Z=[],ee=[],te=[],ie=[],re=[],se=[],ae=[],oe=[],ne=[],he=[],de=[],le=[],pe=[],ce=[],ue=[],we=[],me=[],ge=[],ve=[],xe=[],be=[],fe=[],ze=[];return class extends P{static{s=this}constructor(){super(...arguments),this.open=(r(this,q),r(this,j,!1)),this.position=(r(this,I),r(this,Q,"left")),this.size=(r(this,X),r(this,M,"medium")),this.inline=(r(this,$),r(this,Y,!1)),this.breakpoint=(r(this,N),r(this,R,0)),this.noBackdrop=(r(this,U),r(this,V,!1)),this.noBackdropDismiss=(r(this,G),r(this,J,!1)),this.noEscapeDismiss=(r(this,K),r(this,W,!1)),this.noFocusTrap=(r(this,Z),r(this,ee,!1)),this.persistent=(r(this,te),r(this,ie,!1)),this.pushContent=(r(this,re),r(this,se,!1)),this.contained=(r(this,ae),r(this,oe,!1)),this.noHeader=(r(this,ne),r(this,he,!1)),this.noFooter=(r(this,de),r(this,le,!1)),this.drawerElement=(r(this,pe),r(this,ce,void 0)),this.backdropElement=(r(this,ue),r(this,we,void 0)),this.closeButton=(r(this,me),r(this,ge,void 0)),this.focusTrapStart=(r(this,ve),r(this,xe,void 0)),this.focusTrapEnd=(r(this,be),r(this,fe,void 0)),this.previousFocus=r(this,ze),this._isHandlingOpenChange=!1,this._lastEventType=null,this._lastEventTime=0}static{const ke="function"==typeof Symbol&&Symbol.metadata?Object.create(P[Symbol.metadata]??null):void 0;a=[t.property({type:Boolean})],o=[t.property({})],n=[t.property({})],h=[t.property({type:Boolean})],d=[t.property({type:Number})],l=[t.property({type:Boolean,attribute:"no-backdrop"})],p=[t.property({type:Boolean,attribute:"no-backdrop-dismiss"})],c=[t.property({type:Boolean,attribute:"no-escape-dismiss"})],u=[t.property({type:Boolean,attribute:"no-focus-trap"})],w=[t.property({type:Boolean})],m=[t.property({type:Boolean,attribute:"push-content"})],g=[t.property({type:Boolean})],v=[t.property({type:Boolean,attribute:"no-header"})],x=[t.property({type:Boolean,attribute:"no-footer"})],b=[t.query(".drawer")],f=[t.query(".drawer-backdrop")],z=[t.query(".drawer-close")],k=[t.query(".focus-trap-start")],y=[t.query(".focus-trap-end")],E=[t.render()],B=[t.styles()],C=[t.ready()],T=[t.watch("breakpoint")],F=[t.watch("open")],S=[t.on("click",{target:".drawer-backdrop"})],H=[t.on("click",{target:".drawer-close"})],O=[t.on("focus",{target:".focus-trap-start"})],A=[t.on("focus",{target:".focus-trap-end"})],D=[t.dispose()],i(this,null,E,{kind:"method",name:"render",static:!1,private:!1,access:{has:e=>"render"in e,get:e=>e.render},metadata:ke},null,q),i(this,null,B,{kind:"method",name:"styles",static:!1,private:!1,access:{has:e=>"styles"in e,get:e=>e.styles},metadata:ke},null,q),i(this,null,C,{kind:"method",name:"init",static:!1,private:!1,access:{has:e=>"init"in e,get:e=>e.init},metadata:ke},null,q),i(this,null,T,{kind:"method",name:"handleBreakpointPropChange",static:!1,private:!1,access:{has:e=>"handleBreakpointPropChange"in e,get:e=>e.handleBreakpointPropChange},metadata:ke},null,q),i(this,null,F,{kind:"method",name:"handleOpenChange",static:!1,private:!1,access:{has:e=>"handleOpenChange"in e,get:e=>e.handleOpenChange},metadata:ke},null,q),i(this,null,S,{kind:"method",name:"handleBackdropClick",static:!1,private:!1,access:{has:e=>"handleBackdropClick"in e,get:e=>e.handleBackdropClick},metadata:ke},null,q),i(this,null,H,{kind:"method",name:"handleCloseClick",static:!1,private:!1,access:{has:e=>"handleCloseClick"in e,get:e=>e.handleCloseClick},metadata:ke},null,q),i(this,null,O,{kind:"method",name:"handleFocusTrapStart",static:!1,private:!1,access:{has:e=>"handleFocusTrapStart"in e,get:e=>e.handleFocusTrapStart},metadata:ke},null,q),i(this,null,A,{kind:"method",name:"handleFocusTrapEnd",static:!1,private:!1,access:{has:e=>"handleFocusTrapEnd"in e,get:e=>e.handleFocusTrapEnd},metadata:ke},null,q),i(this,null,D,{kind:"method",name:"cleanup",static:!1,private:!1,access:{has:e=>"cleanup"in e,get:e=>e.cleanup},metadata:ke},null,q),i(null,null,a,{kind:"field",name:"open",static:!1,private:!1,access:{has:e=>"open"in e,get:e=>e.open,set:(e,t)=>{e.open=t}},metadata:ke},j,I),i(null,null,o,{kind:"field",name:"position",static:!1,private:!1,access:{has:e=>"position"in e,get:e=>e.position,set:(e,t)=>{e.position=t}},metadata:ke},Q,X),i(null,null,n,{kind:"field",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,t)=>{e.size=t}},metadata:ke},M,$),i(null,null,h,{kind:"field",name:"inline",static:!1,private:!1,access:{has:e=>"inline"in e,get:e=>e.inline,set:(e,t)=>{e.inline=t}},metadata:ke},Y,N),i(null,null,d,{kind:"field",name:"breakpoint",static:!1,private:!1,access:{has:e=>"breakpoint"in e,get:e=>e.breakpoint,set:(e,t)=>{e.breakpoint=t}},metadata:ke},R,U),i(null,null,l,{kind:"field",name:"noBackdrop",static:!1,private:!1,access:{has:e=>"noBackdrop"in e,get:e=>e.noBackdrop,set:(e,t)=>{e.noBackdrop=t}},metadata:ke},V,G),i(null,null,p,{kind:"field",name:"noBackdropDismiss",static:!1,private:!1,access:{has:e=>"noBackdropDismiss"in e,get:e=>e.noBackdropDismiss,set:(e,t)=>{e.noBackdropDismiss=t}},metadata:ke},J,K),i(null,null,c,{kind:"field",name:"noEscapeDismiss",static:!1,private:!1,access:{has:e=>"noEscapeDismiss"in e,get:e=>e.noEscapeDismiss,set:(e,t)=>{e.noEscapeDismiss=t}},metadata:ke},W,Z),i(null,null,u,{kind:"field",name:"noFocusTrap",static:!1,private:!1,access:{has:e=>"noFocusTrap"in e,get:e=>e.noFocusTrap,set:(e,t)=>{e.noFocusTrap=t}},metadata:ke},ee,te),i(null,null,w,{kind:"field",name:"persistent",static:!1,private:!1,access:{has:e=>"persistent"in e,get:e=>e.persistent,set:(e,t)=>{e.persistent=t}},metadata:ke},ie,re),i(null,null,m,{kind:"field",name:"pushContent",static:!1,private:!1,access:{has:e=>"pushContent"in e,get:e=>e.pushContent,set:(e,t)=>{e.pushContent=t}},metadata:ke},se,ae),i(null,null,g,{kind:"field",name:"contained",static:!1,private:!1,access:{has:e=>"contained"in e,get:e=>e.contained,set:(e,t)=>{e.contained=t}},metadata:ke},oe,ne),i(null,null,v,{kind:"field",name:"noHeader",static:!1,private:!1,access:{has:e=>"noHeader"in e,get:e=>e.noHeader,set:(e,t)=>{e.noHeader=t}},metadata:ke},he,de),i(null,null,x,{kind:"field",name:"noFooter",static:!1,private:!1,access:{has:e=>"noFooter"in e,get:e=>e.noFooter,set:(e,t)=>{e.noFooter=t}},metadata:ke},le,pe),i(null,null,b,{kind:"field",name:"drawerElement",static:!1,private:!1,access:{has:e=>"drawerElement"in e,get:e=>e.drawerElement,set:(e,t)=>{e.drawerElement=t}},metadata:ke},ce,ue),i(null,null,f,{kind:"field",name:"backdropElement",static:!1,private:!1,access:{has:e=>"backdropElement"in e,get:e=>e.backdropElement,set:(e,t)=>{e.backdropElement=t}},metadata:ke},we,me),i(null,null,z,{kind:"field",name:"closeButton",static:!1,private:!1,access:{has:e=>"closeButton"in e,get:e=>e.closeButton,set:(e,t)=>{e.closeButton=t}},metadata:ke},ge,ve),i(null,null,k,{kind:"field",name:"focusTrapStart",static:!1,private:!1,access:{has:e=>"focusTrapStart"in e,get:e=>e.focusTrapStart,set:(e,t)=>{e.focusTrapStart=t}},metadata:ke},xe,be),i(null,null,y,{kind:"field",name:"focusTrapEnd",static:!1,private:!1,access:{has:e=>"focusTrapEnd"in e,get:e=>e.focusTrapEnd,set:(e,t)=>{e.focusTrapEnd=t}},metadata:ke},fe,ze),i(null,e={value:s},L,{kind:"class",name:s.name,metadata:ke},null,_),s=e.value,ke&&Object.defineProperty(s,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:ke}),r(s,_)}render(){return t.html`
8
8
  <div class="drawer-backdrop" part="backdrop"></div>
9
9
 
10
10
  <div class="drawer" role="dialog" aria-modal="true" tabindex="-1" part="base">
11
11
  <span class="focus-trap-start" tabindex="0"></span>
12
12
 
13
- <div class="drawer-header" part="header">
14
- <h2 class="drawer-title" part="title">
15
- <slot name="title"></slot>
16
- </h2>
17
- <if ${!this.persistent}>
18
- <button class="drawer-close" type="button" aria-label="Close" part="close">
19
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
20
- <path d="M18 6L6 18M6 6l12 12"/>
21
- </svg>
22
- </button>
23
- </if>
24
- </div>
13
+ <if ${!this.noHeader}>
14
+ <div class="drawer-header" part="header">
15
+ <h2 class="drawer-title" part="title">
16
+ <slot name="title"></slot>
17
+ </h2>
18
+ <if ${!this.persistent}>
19
+ <button class="drawer-close" type="button" aria-label="Close" part="close">
20
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
21
+ <path d="M18 6L6 18M6 6l12 12"/>
22
+ </svg>
23
+ </button>
24
+ </if>
25
+ </div>
26
+ </if>
25
27
 
26
28
  <div class="drawer-body" part="body">
27
29
  <slot></slot>
28
30
  </div>
29
31
 
30
- <div class="drawer-footer" part="footer">
31
- <slot name="footer"></slot>
32
- </div>
32
+ <if ${!this.noFooter}>
33
+ <div class="drawer-footer" part="footer">
34
+ <slot name="footer"></slot>
35
+ </div>
36
+ </if>
33
37
 
34
38
  <span class="focus-trap-end" tabindex="0"></span>
35
39
  </div>
36
- `}styles(){return t.css`${":host{--drawer-width-small:var(--snice-size-drawer-small, 15rem);--drawer-width-medium:var(--snice-size-drawer-medium, 20rem);--drawer-width-large:var(--snice-size-drawer-large, 30rem);--drawer-width-xl:var(--snice-size-drawer-xl, 40rem);--drawer-width-xxl:var(--snice-size-drawer-xxl, 50rem);--drawer-width-xxxl:var(--snice-size-drawer-xxxl, 60rem);--drawer-height-small:var(--snice-size-drawer-height-small, 12.5rem);--drawer-height-medium:var(--snice-size-drawer-height-medium, 25rem);--drawer-height-large:var(--snice-size-drawer-height-large, 37.5rem);--drawer-height-xl:var(--snice-size-drawer-height-xl, 70vh);--drawer-height-xxl:var(--snice-size-drawer-height-xxl, 80vh);--drawer-height-xxxl:var(--snice-size-drawer-height-xxxl, 90vh);--drawer-bg:var(--snice-color-background, white);--drawer-shadow:var(--snice-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));--drawer-backdrop:var(--snice-color-backdrop, rgba(0, 0, 0, 0.5));--drawer-transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(0.4, 0, 0.2, 1);--drawer-z-index:var(--snice-z-index-modal, 1050);display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;isolation:isolate;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);contain:layout style paint}:host([contained]){position:absolute;width:100%;height:100%}.drawer-backdrop{position:absolute;inset:0;background:var(--drawer-backdrop);opacity:0;transition:opacity .3s ease-in-out;z-index:var(--drawer-z-index);pointer-events:none;visibility:hidden}:host([open]){pointer-events:auto}:host([open]) .drawer-backdrop{opacity:1;pointer-events:auto;visibility:visible}:host([no-backdrop]) .drawer-backdrop{display:none}.drawer{position:absolute;background:var(--drawer-bg);box-shadow:var(--drawer-shadow);transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(.4, 0, .2, 1),opacity var(--snice-transition-medium, 250ms) cubic-bezier(.2, 0, .8, 1);z-index:calc(var(--drawer-z-index) + 1);display:flex;flex-direction:column;outline:0;overflow:hidden;opacity:0;pointer-events:auto}:host([open]) .drawer{opacity:1}:host(:not([position])) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host(:not([position])[open]) .drawer{transform:translateX(0)}:host([position=left]) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host([position=left][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=left][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=left][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=left][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=left][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=left][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=left][size=full]) .drawer{width:100%}:host([position=left][open]) .drawer{transform:translateX(0)}:host([position=right]) .drawer{top:0;right:0;height:100%;width:var(--drawer-width-medium);transform:translateX(100%)}:host([position=right][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=right][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=right][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=right][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=right][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=right][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=right][size=full]) .drawer{width:100%}:host([position=right][open]) .drawer{transform:translateX(0)}:host([position=top]) .drawer{top:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(-100%)}:host([position=top][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=top][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=top][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=top][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=top][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=top][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=top][size=full]) .drawer{height:100%}:host([position=top][open]) .drawer{transform:translateY(0)}:host([position=bottom]) .drawer{bottom:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(100%)}:host([position=bottom][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=bottom][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=bottom][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=bottom][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=bottom][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=bottom][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=bottom][size=full]) .drawer{height:100%}:host([position=bottom][open]) .drawer{transform:translateY(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-bottom:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-header:has(.drawer-title:empty):not(:has(.drawer-close)){display:none}.drawer-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0;color:var(--snice-color-text,rgb(17 24 39));line-height:var(--snice-line-height-tight, 1.25)}.drawer-close{display:flex;align-items:center;justify-content:center;width:var(--snice-size-control-md,2rem);height:var(--snice-size-control-md,2rem);border:none;background:0 0;border-radius:var(--snice-border-radius-md,6px);cursor:pointer;color:var(--snice-color-text-secondary,rgb(107 114 128));transition:all var(--snice-transition-fast, 150ms) ease}.drawer-close:hover{background:var(--snice-color-background-hover,rgb(243 244 246));color:var(--snice-color-text,rgb(17 24 39))}.drawer-close:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246));outline-offset:var(--snice-focus-ring-offset,2px)}.drawer-body{flex:1;padding:var(--snice-spacing-lg,1.25rem);overflow-y:auto;overflow-x:hidden;color:var(--snice-color-text,rgb(17 24 39))}.drawer-footer{padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-top:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-footer:empty{display:none}@media (prefers-reduced-motion:reduce){.drawer,.drawer-backdrop{transition:none}}@media (max-width:640px){:host([position=left][size=large]) .drawer,:host([position=left][size=medium]) .drawer,:host([position=left][size=xl]) .drawer,:host([position=left][size=xxl]) .drawer,:host([position=left][size=xxxl]) .drawer,:host([position=right][size=large]) .drawer,:host([position=right][size=medium]) .drawer,:host([position=right][size=xl]) .drawer,:host([position=right][size=xxl]) .drawer,:host([position=right][size=xxxl]) .drawer{width:calc(100% - 2.5rem)}}.focus-trap-end,.focus-trap-start{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host([push-content]){--drawer-push-amount:0px}:host([push-content][position=left][open][size=small]){--drawer-push-amount:var(--drawer-width-small)}:host([push-content][position=left][open][size=medium]){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=left][open][size=large]){--drawer-push-amount:var(--drawer-width-large)}:host([push-content][position=left][open][size=xl]){--drawer-push-amount:var(--drawer-width-xl)}:host([push-content][position=left][open][size=xxl]){--drawer-push-amount:var(--drawer-width-xxl)}:host([push-content][position=left][open][size=xxxl]){--drawer-push-amount:var(--drawer-width-xxxl)}:host([push-content][position=left][open][size=full]){--drawer-push-amount:100vw}:host([push-content][position=left][open]:not([size])){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=right][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-width-small))}:host([push-content][position=right][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=right][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-width-large))}:host([push-content][position=right][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xl))}:host([push-content][position=right][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxl))}:host([push-content][position=right][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxxl))}:host([push-content][position=right][open][size=full]){--drawer-push-amount:-100vw}:host([push-content][position=right][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=top][open][size=small]){--drawer-push-amount:var(--drawer-height-small)}:host([push-content][position=top][open][size=medium]){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=top][open][size=large]){--drawer-push-amount:var(--drawer-height-large)}:host([push-content][position=top][open][size=xl]){--drawer-push-amount:var(--drawer-height-xl)}:host([push-content][position=top][open][size=xxl]){--drawer-push-amount:var(--drawer-height-xxl)}:host([push-content][position=top][open][size=xxxl]){--drawer-push-amount:var(--drawer-height-xxxl)}:host([push-content][position=top][open][size=full]){--drawer-push-amount:100vh}:host([push-content][position=top][open]:not([size])){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=bottom][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-height-small))}:host([push-content][position=bottom][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}:host([push-content][position=bottom][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-height-large))}:host([push-content][position=bottom][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xl))}:host([push-content][position=bottom][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxl))}:host([push-content][position=bottom][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxxl))}:host([push-content][position=bottom][open][size=full]){--drawer-push-amount:-100vh}:host([push-content][position=bottom][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}"}`}init(){if(this.hasAttribute("position")||this.setAttribute("position",this.position),this.hasAttribute("size")||this.setAttribute("size",this.size),this.setAttribute("role","complementary"),this.setAttribute("aria-hidden",String(!this.open)),this.pushContent){const e=document.querySelector("main")||document.body;e&&e!==document.body&&(e.style.transition="margin 0.3s cubic-bezier(0.4, 0, 0.2, 1)")}this.open&&this.handleOpen()}handleOpenChange(){if(!this._isHandlingOpenChange){this._isHandlingOpenChange=!0;try{this.setAttribute("aria-hidden",String(!this.open)),this.open?this.handleOpen():this.handleClose()}finally{this._isHandlingOpenChange=!1}}}handleBackdropClick(e){this.noBackdropDismiss||this.persistent||(e.stopPropagation(),this.hide())}handleCloseClick(e){e.stopPropagation(),this.hide()}handleFocusTrapStart(e){if(!this.noFocusTrap){const e=this.getFocusableElements();e.length>0&&e[e.length-1].focus()}}handleFocusTrapEnd(e){if(!this.noFocusTrap){const e=this.getFocusableElements();e.length>0&&e[0].focus()}}handleOpen(){this.previousFocus=document.activeElement,this.noEscapeDismiss||this.persistent||(this.boundHandleEscape=e=>{"Escape"===e.key&&(e.preventDefault(),this.hide())},document.addEventListener("keydown",this.boundHandleEscape)),this.noFocusTrap||requestAnimationFrame(()=>{this.drawerElement&&this.drawerElement.focus({preventScroll:!0})}),this.pushContent&&this.updatePushContent(),this.dispatchOpenEvent()}handleClose(){this.boundHandleEscape&&(document.removeEventListener("keydown",this.boundHandleEscape),this.boundHandleEscape=void 0),this.previousFocus&&this.previousFocus.focus&&(this.previousFocus.focus(),this.previousFocus=void 0),this.pushContent&&this.updatePushContent(),this.dispatchCloseEvent()}updatePushContent(){if(!this.pushContent)return;const e=document.querySelector("main")||document.body;if(e&&e!==document.body)if(e.style.transition||(e.style.transition="margin 0.3s cubic-bezier(0.4, 0, 0.2, 1)"),this.open){const t=getComputedStyle(this).getPropertyValue("--drawer-push-amount"),i="left"===this.position||"right"===this.position?"marginLeft":"marginTop";e.style[i]=t||"0px"}else e.style.marginLeft="",e.style.marginTop=""}getFocusableElements(){return this.drawerElement?this.drawerElement.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])'):document.querySelectorAll("none")}dispatchOpenEvent(){const e=Date.now();"open"===this._lastEventType&&e-this._lastEventTime<100||(this._lastEventType="open",this._lastEventTime=e,this.dispatchEvent(new CustomEvent("drawer-open",{bubbles:!0,composed:!0,detail:{drawer:this}})))}dispatchCloseEvent(){const e=Date.now();"close"===this._lastEventType&&e-this._lastEventTime<100||(this._lastEventType="close",this._lastEventTime=e,this.dispatchEvent(new CustomEvent("drawer-close",{bubbles:!0,composed:!0,detail:{drawer:this}})))}cleanup(){this.boundHandleEscape&&document.removeEventListener("keydown",this.boundHandleEscape)}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}},r})();return e.SniceDrawer=r,e}({},Snice);
40
+ `}styles(){return t.css`${":host{--drawer-width-small:var(--snice-size-drawer-small, 15rem);--drawer-width-medium:var(--snice-size-drawer-medium, 20rem);--drawer-width-large:var(--snice-size-drawer-large, 30rem);--drawer-width-xl:var(--snice-size-drawer-xl, 40rem);--drawer-width-xxl:var(--snice-size-drawer-xxl, 50rem);--drawer-width-xxxl:var(--snice-size-drawer-xxxl, 60rem);--drawer-height-small:var(--snice-size-drawer-height-small, 12.5rem);--drawer-height-medium:var(--snice-size-drawer-height-medium, 25rem);--drawer-height-large:var(--snice-size-drawer-height-large, 37.5rem);--drawer-height-xl:var(--snice-size-drawer-height-xl, 70vh);--drawer-height-xxl:var(--snice-size-drawer-height-xxl, 80vh);--drawer-height-xxxl:var(--snice-size-drawer-height-xxxl, 90vh);--drawer-bg:var(--snice-color-background, white);--drawer-shadow:var(--snice-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));--drawer-backdrop:var(--snice-color-backdrop, rgba(0, 0, 0, 0.5));--drawer-transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(0.4, 0, 0.2, 1);--drawer-z-index:var(--snice-z-index-modal, 1050);display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;isolation:isolate;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);contain:layout style paint}:host([contained]){position:absolute;width:100%;height:100%}.drawer-backdrop{position:absolute;inset:0;background:var(--drawer-backdrop);opacity:0;transition:opacity .3s ease-in-out;z-index:var(--drawer-z-index);pointer-events:none;visibility:hidden}:host([open]){pointer-events:auto}:host([open]) .drawer-backdrop{opacity:1;pointer-events:auto;visibility:visible}:host([no-backdrop]) .drawer-backdrop{display:none}.drawer{position:absolute;background:var(--drawer-bg);box-shadow:var(--drawer-shadow);transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(.4, 0, .2, 1),opacity var(--snice-transition-medium, 250ms) cubic-bezier(.2, 0, .8, 1);z-index:calc(var(--drawer-z-index) + 1);display:flex;flex-direction:column;outline:0;overflow:hidden;opacity:0;pointer-events:auto}:host([open]) .drawer{opacity:1}:host(:not([position])) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host(:not([position])[open]) .drawer{transform:translateX(0)}:host([position=left]) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host([position=left][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=left][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=left][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=left][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=left][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=left][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=left][size=full]) .drawer{width:100%}:host([position=left][open]) .drawer{transform:translateX(0)}:host([position=right]) .drawer{top:0;right:0;height:100%;width:var(--drawer-width-medium);transform:translateX(100%)}:host([position=right][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=right][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=right][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=right][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=right][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=right][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=right][size=full]) .drawer{width:100%}:host([position=right][open]) .drawer{transform:translateX(0)}:host([position=top]) .drawer{top:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(-100%)}:host([position=top][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=top][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=top][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=top][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=top][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=top][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=top][size=full]) .drawer{height:100%}:host([position=top][open]) .drawer{transform:translateY(0)}:host([position=bottom]) .drawer{bottom:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(100%)}:host([position=bottom][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=bottom][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=bottom][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=bottom][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=bottom][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=bottom][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=bottom][size=full]) .drawer{height:100%}:host([position=bottom][open]) .drawer{transform:translateY(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-bottom:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-header:has(.drawer-title:empty):not(:has(.drawer-close)){display:none}.drawer-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0;color:var(--snice-color-text,rgb(17 24 39));line-height:var(--snice-line-height-tight, 1.25)}.drawer-close{display:flex;align-items:center;justify-content:center;width:var(--snice-size-control-md,2rem);height:var(--snice-size-control-md,2rem);border:none;background:0 0;border-radius:var(--snice-border-radius-md,6px);cursor:pointer;color:var(--snice-color-text-secondary,rgb(107 114 128));transition:all var(--snice-transition-fast, 150ms) ease}.drawer-close:hover{background:var(--snice-color-background-hover,rgb(243 244 246));color:var(--snice-color-text,rgb(17 24 39))}.drawer-close:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246));outline-offset:var(--snice-focus-ring-offset,2px)}.drawer-body{flex:1;padding:var(--snice-spacing-lg,1.25rem);overflow-y:auto;overflow-x:hidden;color:var(--snice-color-text,rgb(17 24 39))}.drawer-footer{padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-top:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-footer:empty{display:none}@media (prefers-reduced-motion:reduce){.drawer,.drawer-backdrop{transition:none}}@media (max-width:640px){:host([position=left][size=large]) .drawer,:host([position=left][size=medium]) .drawer,:host([position=left][size=xl]) .drawer,:host([position=left][size=xxl]) .drawer,:host([position=left][size=xxxl]) .drawer,:host([position=right][size=large]) .drawer,:host([position=right][size=medium]) .drawer,:host([position=right][size=xl]) .drawer,:host([position=right][size=xxl]) .drawer,:host([position=right][size=xxxl]) .drawer{width:calc(100% - 2.5rem)}}.focus-trap-end,.focus-trap-start{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host([push-content]){--drawer-push-amount:0px}:host([push-content][position=left][open][size=small]){--drawer-push-amount:var(--drawer-width-small)}:host([push-content][position=left][open][size=medium]){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=left][open][size=large]){--drawer-push-amount:var(--drawer-width-large)}:host([push-content][position=left][open][size=xl]){--drawer-push-amount:var(--drawer-width-xl)}:host([push-content][position=left][open][size=xxl]){--drawer-push-amount:var(--drawer-width-xxl)}:host([push-content][position=left][open][size=xxxl]){--drawer-push-amount:var(--drawer-width-xxxl)}:host([push-content][position=left][open][size=full]){--drawer-push-amount:100vw}:host([push-content][position=left][open]:not([size])){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=right][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-width-small))}:host([push-content][position=right][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=right][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-width-large))}:host([push-content][position=right][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xl))}:host([push-content][position=right][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxl))}:host([push-content][position=right][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxxl))}:host([push-content][position=right][open][size=full]){--drawer-push-amount:-100vw}:host([push-content][position=right][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=top][open][size=small]){--drawer-push-amount:var(--drawer-height-small)}:host([push-content][position=top][open][size=medium]){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=top][open][size=large]){--drawer-push-amount:var(--drawer-height-large)}:host([push-content][position=top][open][size=xl]){--drawer-push-amount:var(--drawer-height-xl)}:host([push-content][position=top][open][size=xxl]){--drawer-push-amount:var(--drawer-height-xxl)}:host([push-content][position=top][open][size=xxxl]){--drawer-push-amount:var(--drawer-height-xxxl)}:host([push-content][position=top][open][size=full]){--drawer-push-amount:100vh}:host([push-content][position=top][open]:not([size])){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=bottom][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-height-small))}:host([push-content][position=bottom][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}:host([push-content][position=bottom][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-height-large))}:host([push-content][position=bottom][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xl))}:host([push-content][position=bottom][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxl))}:host([push-content][position=bottom][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxxl))}:host([push-content][position=bottom][open][size=full]){--drawer-push-amount:-100vh}:host([push-content][position=bottom][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}:host([inline]){position:static;width:auto;height:auto;pointer-events:auto;contain:layout style}:host([inline]) .drawer-backdrop{display:none}:host([inline]) .drawer{position:static;transform:none;opacity:1;box-shadow:none;z-index:auto;transition:none;border-right:1px solid var(--snice-color-border,rgb(229 231 235))}:host([inline]) .drawer,:host([inline][position=left]) .drawer{width:var(--drawer-width-medium);height:100%}:host([inline]:not([position])[size=small]) .drawer,:host([inline][position=left][size=small]) .drawer{width:var(--drawer-width-small)}:host([inline]:not([position])[size=large]) .drawer,:host([inline][position=left][size=large]) .drawer{width:var(--drawer-width-large)}:host([inline]:not([position])[size=xl]) .drawer,:host([inline][position=left][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([inline]:not([position])[size=xxl]) .drawer,:host([inline][position=left][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([inline]:not([position])[size=xxxl]) .drawer,:host([inline][position=left][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([inline]:not([position])[size=full]) .drawer,:host([inline][position=left][size=full]) .drawer{width:100%}:host([inline][position=right]) .drawer{border-right:none;border-left:1px solid var(--snice-color-border,rgb(229 231 235));width:var(--drawer-width-medium);height:100%}:host([inline][position=right][size=small]) .drawer{width:var(--drawer-width-small)}:host([inline][position=right][size=large]) .drawer{width:var(--drawer-width-large)}:host([inline][position=right][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([inline][position=right][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([inline][position=right][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([inline][position=right][size=full]) .drawer{width:100%}:host([inline][position=top]) .drawer{border-right:none;border-bottom:1px solid var(--snice-color-border,rgb(229 231 235));width:100%;height:var(--drawer-height-medium)}:host([inline][position=top][size=small]) .drawer{height:var(--drawer-height-small)}:host([inline][position=top][size=large]) .drawer{height:var(--drawer-height-large)}:host([inline][position=top][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([inline][position=top][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([inline][position=top][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([inline][position=top][size=full]) .drawer{height:100%}:host([inline][position=bottom]) .drawer{border-right:none;border-top:1px solid var(--snice-color-border,rgb(229 231 235));width:100%;height:var(--drawer-height-medium)}:host([inline][position=bottom][size=small]) .drawer{height:var(--drawer-height-small)}:host([inline][position=bottom][size=large]) .drawer{height:var(--drawer-height-large)}:host([inline][position=bottom][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([inline][position=bottom][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([inline][position=bottom][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([inline][position=bottom][size=full]) .drawer{height:100%}:host([inline]) .focus-trap-end,:host([inline]) .focus-trap-start{display:none}"}`}init(){if(this.hasAttribute("position")||this.setAttribute("position",this.position),this.hasAttribute("size")||this.setAttribute("size",this.size),this.setAttribute("role","complementary"),this.setAttribute("aria-hidden",String(!this.open)),this.breakpoint>0&&this.setupBreakpointListener(),this.pushContent&&!this.isInlineActive()){const e=document.querySelector("main")||document.body;e&&e!==document.body&&(e.style.transition="margin 0.3s cubic-bezier(0.4, 0, 0.2, 1)")}this.open&&!this.isInlineActive()&&this.handleOpen()}isInlineActive(){return this.inline||this.hasAttribute("inline")}setupBreakpointListener(){this.teardownBreakpointListener(),this.breakpoint<=0||(this.breakpointQuery=window.matchMedia(`(min-width: ${this.breakpoint}px)`),this.boundBreakpointHandler=e=>this.handleBreakpointChange(e.matches),this.handleBreakpointChange(this.breakpointQuery.matches),this.breakpointQuery.addEventListener("change",this.boundBreakpointHandler))}teardownBreakpointListener(){this.breakpointQuery&&this.boundBreakpointHandler&&(this.breakpointQuery.removeEventListener("change",this.boundBreakpointHandler),this.breakpointQuery=void 0,this.boundBreakpointHandler=void 0)}handleBreakpointChange(e){const t=this.isInlineActive();e?(this.setAttribute("inline",""),!t&&this.open&&this.teardownOverlayBehaviors()):(this.removeAttribute("inline"),t&&this.open&&this.handleOpen())}teardownOverlayBehaviors(){if(this.boundHandleEscape&&(document.removeEventListener("keydown",this.boundHandleEscape),this.boundHandleEscape=void 0),this.pushContent){const e=document.querySelector("main")||document.body;e&&e!==document.body&&(e.style.marginLeft="",e.style.marginTop="")}}handleBreakpointPropChange(){this.breakpoint>0?this.setupBreakpointListener():(this.teardownBreakpointListener(),this.inline||this.removeAttribute("inline"))}handleOpenChange(){if(!this._isHandlingOpenChange){this._isHandlingOpenChange=!0;try{if(this.setAttribute("aria-hidden",String(!this.open)),this.isInlineActive())return;this.open?this.handleOpen():this.handleClose()}finally{this._isHandlingOpenChange=!1}}}handleBackdropClick(e){this.noBackdropDismiss||this.persistent||(e.stopPropagation(),this.hide())}handleCloseClick(e){e.stopPropagation(),this.hide()}handleFocusTrapStart(e){if(!this.noFocusTrap){const e=this.getFocusableElements();e.length>0&&e[e.length-1].focus()}}handleFocusTrapEnd(e){if(!this.noFocusTrap){const e=this.getFocusableElements();e.length>0&&e[0].focus()}}handleOpen(){this.previousFocus=document.activeElement,this.noEscapeDismiss||this.persistent||(this.boundHandleEscape=e=>{"Escape"===e.key&&(e.preventDefault(),this.hide())},document.addEventListener("keydown",this.boundHandleEscape)),this.noFocusTrap||requestAnimationFrame(()=>{this.drawerElement&&this.drawerElement.focus({preventScroll:!0})}),this.pushContent&&this.updatePushContent(),this.dispatchOpenEvent()}handleClose(){this.boundHandleEscape&&(document.removeEventListener("keydown",this.boundHandleEscape),this.boundHandleEscape=void 0),this.previousFocus&&this.previousFocus.focus&&(this.previousFocus.focus(),this.previousFocus=void 0),this.pushContent&&this.updatePushContent(),this.dispatchCloseEvent()}updatePushContent(){if(!this.pushContent)return;const e=document.querySelector("main")||document.body;if(e&&e!==document.body)if(e.style.transition||(e.style.transition="margin 0.3s cubic-bezier(0.4, 0, 0.2, 1)"),this.open){const t=getComputedStyle(this).getPropertyValue("--drawer-push-amount"),i="left"===this.position||"right"===this.position?"marginLeft":"marginTop";e.style[i]=t||"0px"}else e.style.marginLeft="",e.style.marginTop=""}getFocusableElements(){return this.drawerElement?this.drawerElement.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])'):document.querySelectorAll("none")}dispatchOpenEvent(){const e=Date.now();"open"===this._lastEventType&&e-this._lastEventTime<100||(this._lastEventType="open",this._lastEventTime=e,this.dispatchEvent(new CustomEvent("drawer-open",{bubbles:!0,composed:!0,detail:{drawer:this}})))}dispatchCloseEvent(){const e=Date.now();"close"===this._lastEventType&&e-this._lastEventTime<100||(this._lastEventType="close",this._lastEventTime=e,this.dispatchEvent(new CustomEvent("drawer-close",{bubbles:!0,composed:!0,detail:{drawer:this}})))}cleanup(){this.boundHandleEscape&&document.removeEventListener("keydown",this.boundHandleEscape),this.teardownBreakpointListener()}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}},s})();return e.SniceDrawer=s,e}({},Snice);
37
41
  //# sourceMappingURL=snice-drawer.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"snice-drawer.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/drawer/snice-drawer.js"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","import { __runInitializers, __esDecorate } from 'tslib';\nimport { element, property, query, render, styles, ready, watch, on, dispose, html, css } from 'snice';\n\nvar cssContent = \":host{--drawer-width-small:var(--snice-size-drawer-small, 15rem);--drawer-width-medium:var(--snice-size-drawer-medium, 20rem);--drawer-width-large:var(--snice-size-drawer-large, 30rem);--drawer-width-xl:var(--snice-size-drawer-xl, 40rem);--drawer-width-xxl:var(--snice-size-drawer-xxl, 50rem);--drawer-width-xxxl:var(--snice-size-drawer-xxxl, 60rem);--drawer-height-small:var(--snice-size-drawer-height-small, 12.5rem);--drawer-height-medium:var(--snice-size-drawer-height-medium, 25rem);--drawer-height-large:var(--snice-size-drawer-height-large, 37.5rem);--drawer-height-xl:var(--snice-size-drawer-height-xl, 70vh);--drawer-height-xxl:var(--snice-size-drawer-height-xxl, 80vh);--drawer-height-xxxl:var(--snice-size-drawer-height-xxxl, 90vh);--drawer-bg:var(--snice-color-background, white);--drawer-shadow:var(--snice-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));--drawer-backdrop:var(--snice-color-backdrop, rgba(0, 0, 0, 0.5));--drawer-transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(0.4, 0, 0.2, 1);--drawer-z-index:var(--snice-z-index-modal, 1050);display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;isolation:isolate;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);contain:layout style paint}:host([contained]){position:absolute;width:100%;height:100%}.drawer-backdrop{position:absolute;inset:0;background:var(--drawer-backdrop);opacity:0;transition:opacity .3s ease-in-out;z-index:var(--drawer-z-index);pointer-events:none;visibility:hidden}:host([open]){pointer-events:auto}:host([open]) .drawer-backdrop{opacity:1;pointer-events:auto;visibility:visible}:host([no-backdrop]) .drawer-backdrop{display:none}.drawer{position:absolute;background:var(--drawer-bg);box-shadow:var(--drawer-shadow);transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(.4, 0, .2, 1),opacity var(--snice-transition-medium, 250ms) cubic-bezier(.2, 0, .8, 1);z-index:calc(var(--drawer-z-index) + 1);display:flex;flex-direction:column;outline:0;overflow:hidden;opacity:0;pointer-events:auto}:host([open]) .drawer{opacity:1}:host(:not([position])) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host(:not([position])[open]) .drawer{transform:translateX(0)}:host([position=left]) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host([position=left][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=left][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=left][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=left][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=left][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=left][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=left][size=full]) .drawer{width:100%}:host([position=left][open]) .drawer{transform:translateX(0)}:host([position=right]) .drawer{top:0;right:0;height:100%;width:var(--drawer-width-medium);transform:translateX(100%)}:host([position=right][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=right][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=right][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=right][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=right][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=right][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=right][size=full]) .drawer{width:100%}:host([position=right][open]) .drawer{transform:translateX(0)}:host([position=top]) .drawer{top:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(-100%)}:host([position=top][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=top][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=top][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=top][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=top][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=top][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=top][size=full]) .drawer{height:100%}:host([position=top][open]) .drawer{transform:translateY(0)}:host([position=bottom]) .drawer{bottom:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(100%)}:host([position=bottom][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=bottom][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=bottom][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=bottom][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=bottom][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=bottom][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=bottom][size=full]) .drawer{height:100%}:host([position=bottom][open]) .drawer{transform:translateY(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-bottom:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-header:has(.drawer-title:empty):not(:has(.drawer-close)){display:none}.drawer-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0;color:var(--snice-color-text,rgb(17 24 39));line-height:var(--snice-line-height-tight, 1.25)}.drawer-close{display:flex;align-items:center;justify-content:center;width:var(--snice-size-control-md,2rem);height:var(--snice-size-control-md,2rem);border:none;background:0 0;border-radius:var(--snice-border-radius-md,6px);cursor:pointer;color:var(--snice-color-text-secondary,rgb(107 114 128));transition:all var(--snice-transition-fast, 150ms) ease}.drawer-close:hover{background:var(--snice-color-background-hover,rgb(243 244 246));color:var(--snice-color-text,rgb(17 24 39))}.drawer-close:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246));outline-offset:var(--snice-focus-ring-offset,2px)}.drawer-body{flex:1;padding:var(--snice-spacing-lg,1.25rem);overflow-y:auto;overflow-x:hidden;color:var(--snice-color-text,rgb(17 24 39))}.drawer-footer{padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-top:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-footer:empty{display:none}@media (prefers-reduced-motion:reduce){.drawer,.drawer-backdrop{transition:none}}@media (max-width:640px){:host([position=left][size=large]) .drawer,:host([position=left][size=medium]) .drawer,:host([position=left][size=xl]) .drawer,:host([position=left][size=xxl]) .drawer,:host([position=left][size=xxxl]) .drawer,:host([position=right][size=large]) .drawer,:host([position=right][size=medium]) .drawer,:host([position=right][size=xl]) .drawer,:host([position=right][size=xxl]) .drawer,:host([position=right][size=xxxl]) .drawer{width:calc(100% - 2.5rem)}}.focus-trap-end,.focus-trap-start{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host([push-content]){--drawer-push-amount:0px}:host([push-content][position=left][open][size=small]){--drawer-push-amount:var(--drawer-width-small)}:host([push-content][position=left][open][size=medium]){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=left][open][size=large]){--drawer-push-amount:var(--drawer-width-large)}:host([push-content][position=left][open][size=xl]){--drawer-push-amount:var(--drawer-width-xl)}:host([push-content][position=left][open][size=xxl]){--drawer-push-amount:var(--drawer-width-xxl)}:host([push-content][position=left][open][size=xxxl]){--drawer-push-amount:var(--drawer-width-xxxl)}:host([push-content][position=left][open][size=full]){--drawer-push-amount:100vw}:host([push-content][position=left][open]:not([size])){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=right][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-width-small))}:host([push-content][position=right][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=right][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-width-large))}:host([push-content][position=right][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xl))}:host([push-content][position=right][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxl))}:host([push-content][position=right][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxxl))}:host([push-content][position=right][open][size=full]){--drawer-push-amount:-100vw}:host([push-content][position=right][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=top][open][size=small]){--drawer-push-amount:var(--drawer-height-small)}:host([push-content][position=top][open][size=medium]){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=top][open][size=large]){--drawer-push-amount:var(--drawer-height-large)}:host([push-content][position=top][open][size=xl]){--drawer-push-amount:var(--drawer-height-xl)}:host([push-content][position=top][open][size=xxl]){--drawer-push-amount:var(--drawer-height-xxl)}:host([push-content][position=top][open][size=xxxl]){--drawer-push-amount:var(--drawer-height-xxxl)}:host([push-content][position=top][open][size=full]){--drawer-push-amount:100vh}:host([push-content][position=top][open]:not([size])){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=bottom][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-height-small))}:host([push-content][position=bottom][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}:host([push-content][position=bottom][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-height-large))}:host([push-content][position=bottom][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xl))}:host([push-content][position=bottom][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxl))}:host([push-content][position=bottom][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxxl))}:host([push-content][position=bottom][open][size=full]){--drawer-push-amount:-100vh}:host([push-content][position=bottom][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}\";\n\nlet SniceDrawer = (() => {\n let _classDecorators = [element('snice-drawer')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _open_decorators;\n let _open_initializers = [];\n let _open_extraInitializers = [];\n let _position_decorators;\n let _position_initializers = [];\n let _position_extraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _noBackdrop_decorators;\n let _noBackdrop_initializers = [];\n let _noBackdrop_extraInitializers = [];\n let _noBackdropDismiss_decorators;\n let _noBackdropDismiss_initializers = [];\n let _noBackdropDismiss_extraInitializers = [];\n let _noEscapeDismiss_decorators;\n let _noEscapeDismiss_initializers = [];\n let _noEscapeDismiss_extraInitializers = [];\n let _noFocusTrap_decorators;\n let _noFocusTrap_initializers = [];\n let _noFocusTrap_extraInitializers = [];\n let _persistent_decorators;\n let _persistent_initializers = [];\n let _persistent_extraInitializers = [];\n let _pushContent_decorators;\n let _pushContent_initializers = [];\n let _pushContent_extraInitializers = [];\n let _contained_decorators;\n let _contained_initializers = [];\n let _contained_extraInitializers = [];\n let _drawerElement_decorators;\n let _drawerElement_initializers = [];\n let _drawerElement_extraInitializers = [];\n let _backdropElement_decorators;\n let _backdropElement_initializers = [];\n let _backdropElement_extraInitializers = [];\n let _closeButton_decorators;\n let _closeButton_initializers = [];\n let _closeButton_extraInitializers = [];\n let _focusTrapStart_decorators;\n let _focusTrapStart_initializers = [];\n let _focusTrapStart_extraInitializers = [];\n let _focusTrapEnd_decorators;\n let _focusTrapEnd_initializers = [];\n let _focusTrapEnd_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n let _init_decorators;\n let _handleOpenChange_decorators;\n let _handleBackdropClick_decorators;\n let _handleCloseClick_decorators;\n let _handleFocusTrapStart_decorators;\n let _handleFocusTrapEnd_decorators;\n let _cleanup_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n constructor() {\n super(...arguments);\n this.open = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _open_initializers, false));\n this.position = (__runInitializers(this, _open_extraInitializers), __runInitializers(this, _position_initializers, 'left'));\n this.size = (__runInitializers(this, _position_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.noBackdrop = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _noBackdrop_initializers, false));\n this.noBackdropDismiss = (__runInitializers(this, _noBackdrop_extraInitializers), __runInitializers(this, _noBackdropDismiss_initializers, false));\n this.noEscapeDismiss = (__runInitializers(this, _noBackdropDismiss_extraInitializers), __runInitializers(this, _noEscapeDismiss_initializers, false));\n this.noFocusTrap = (__runInitializers(this, _noEscapeDismiss_extraInitializers), __runInitializers(this, _noFocusTrap_initializers, false));\n this.persistent = (__runInitializers(this, _noFocusTrap_extraInitializers), __runInitializers(this, _persistent_initializers, false));\n this.pushContent = (__runInitializers(this, _persistent_extraInitializers), __runInitializers(this, _pushContent_initializers, false));\n this.contained = (__runInitializers(this, _pushContent_extraInitializers), __runInitializers(this, _contained_initializers, false));\n this.drawerElement = (__runInitializers(this, _contained_extraInitializers), __runInitializers(this, _drawerElement_initializers, void 0));\n this.backdropElement = (__runInitializers(this, _drawerElement_extraInitializers), __runInitializers(this, _backdropElement_initializers, void 0));\n this.closeButton = (__runInitializers(this, _backdropElement_extraInitializers), __runInitializers(this, _closeButton_initializers, void 0));\n this.focusTrapStart = (__runInitializers(this, _closeButton_extraInitializers), __runInitializers(this, _focusTrapStart_initializers, void 0));\n this.focusTrapEnd = (__runInitializers(this, _focusTrapStart_extraInitializers), __runInitializers(this, _focusTrapEnd_initializers, void 0));\n this.previousFocus = __runInitializers(this, _focusTrapEnd_extraInitializers);\n this._isHandlingOpenChange = false;\n this._lastEventType = null;\n this._lastEventTime = 0;\n }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _open_decorators = [property({ type: Boolean, })];\n _position_decorators = [property({})];\n _size_decorators = [property({})];\n _noBackdrop_decorators = [property({ type: Boolean, attribute: 'no-backdrop', })];\n _noBackdropDismiss_decorators = [property({ type: Boolean, attribute: 'no-backdrop-dismiss', })];\n _noEscapeDismiss_decorators = [property({ type: Boolean, attribute: 'no-escape-dismiss', })];\n _noFocusTrap_decorators = [property({ type: Boolean, attribute: 'no-focus-trap', })];\n _persistent_decorators = [property({ type: Boolean, })];\n _pushContent_decorators = [property({ type: Boolean, attribute: 'push-content', })];\n _contained_decorators = [property({ type: Boolean, })];\n _drawerElement_decorators = [query('.drawer')];\n _backdropElement_decorators = [query('.drawer-backdrop')];\n _closeButton_decorators = [query('.drawer-close')];\n _focusTrapStart_decorators = [query('.focus-trap-start')];\n _focusTrapEnd_decorators = [query('.focus-trap-end')];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n _init_decorators = [ready()];\n _handleOpenChange_decorators = [watch('open')];\n _handleBackdropClick_decorators = [on('click', { target: '.drawer-backdrop' })];\n _handleCloseClick_decorators = [on('click', { target: '.drawer-close' })];\n _handleFocusTrapStart_decorators = [on('focus', { target: '.focus-trap-start' })];\n _handleFocusTrapEnd_decorators = [on('focus', { target: '.focus-trap-end' })];\n _cleanup_decorators = [dispose()];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _init_decorators, { kind: \"method\", name: \"init\", static: false, private: false, access: { has: obj => \"init\" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleOpenChange_decorators, { kind: \"method\", name: \"handleOpenChange\", static: false, private: false, access: { has: obj => \"handleOpenChange\" in obj, get: obj => obj.handleOpenChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleBackdropClick_decorators, { kind: \"method\", name: \"handleBackdropClick\", static: false, private: false, access: { has: obj => \"handleBackdropClick\" in obj, get: obj => obj.handleBackdropClick }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleCloseClick_decorators, { kind: \"method\", name: \"handleCloseClick\", static: false, private: false, access: { has: obj => \"handleCloseClick\" in obj, get: obj => obj.handleCloseClick }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleFocusTrapStart_decorators, { kind: \"method\", name: \"handleFocusTrapStart\", static: false, private: false, access: { has: obj => \"handleFocusTrapStart\" in obj, get: obj => obj.handleFocusTrapStart }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleFocusTrapEnd_decorators, { kind: \"method\", name: \"handleFocusTrapEnd\", static: false, private: false, access: { has: obj => \"handleFocusTrapEnd\" in obj, get: obj => obj.handleFocusTrapEnd }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _cleanup_decorators, { kind: \"method\", name: \"cleanup\", static: false, private: false, access: { has: obj => \"cleanup\" in obj, get: obj => obj.cleanup }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _open_decorators, { kind: \"field\", name: \"open\", static: false, private: false, access: { has: obj => \"open\" in obj, get: obj => obj.open, set: (obj, value) => { obj.open = value; } }, metadata: _metadata }, _open_initializers, _open_extraInitializers);\n __esDecorate(null, null, _position_decorators, { kind: \"field\", name: \"position\", static: false, private: false, access: { has: obj => \"position\" in obj, get: obj => obj.position, set: (obj, value) => { obj.position = value; } }, metadata: _metadata }, _position_initializers, _position_extraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _noBackdrop_decorators, { kind: \"field\", name: \"noBackdrop\", static: false, private: false, access: { has: obj => \"noBackdrop\" in obj, get: obj => obj.noBackdrop, set: (obj, value) => { obj.noBackdrop = value; } }, metadata: _metadata }, _noBackdrop_initializers, _noBackdrop_extraInitializers);\n __esDecorate(null, null, _noBackdropDismiss_decorators, { kind: \"field\", name: \"noBackdropDismiss\", static: false, private: false, access: { has: obj => \"noBackdropDismiss\" in obj, get: obj => obj.noBackdropDismiss, set: (obj, value) => { obj.noBackdropDismiss = value; } }, metadata: _metadata }, _noBackdropDismiss_initializers, _noBackdropDismiss_extraInitializers);\n __esDecorate(null, null, _noEscapeDismiss_decorators, { kind: \"field\", name: \"noEscapeDismiss\", static: false, private: false, access: { has: obj => \"noEscapeDismiss\" in obj, get: obj => obj.noEscapeDismiss, set: (obj, value) => { obj.noEscapeDismiss = value; } }, metadata: _metadata }, _noEscapeDismiss_initializers, _noEscapeDismiss_extraInitializers);\n __esDecorate(null, null, _noFocusTrap_decorators, { kind: \"field\", name: \"noFocusTrap\", static: false, private: false, access: { has: obj => \"noFocusTrap\" in obj, get: obj => obj.noFocusTrap, set: (obj, value) => { obj.noFocusTrap = value; } }, metadata: _metadata }, _noFocusTrap_initializers, _noFocusTrap_extraInitializers);\n __esDecorate(null, null, _persistent_decorators, { kind: \"field\", name: \"persistent\", static: false, private: false, access: { has: obj => \"persistent\" in obj, get: obj => obj.persistent, set: (obj, value) => { obj.persistent = value; } }, metadata: _metadata }, _persistent_initializers, _persistent_extraInitializers);\n __esDecorate(null, null, _pushContent_decorators, { kind: \"field\", name: \"pushContent\", static: false, private: false, access: { has: obj => \"pushContent\" in obj, get: obj => obj.pushContent, set: (obj, value) => { obj.pushContent = value; } }, metadata: _metadata }, _pushContent_initializers, _pushContent_extraInitializers);\n __esDecorate(null, null, _contained_decorators, { kind: \"field\", name: \"contained\", static: false, private: false, access: { has: obj => \"contained\" in obj, get: obj => obj.contained, set: (obj, value) => { obj.contained = value; } }, metadata: _metadata }, _contained_initializers, _contained_extraInitializers);\n __esDecorate(null, null, _drawerElement_decorators, { kind: \"field\", name: \"drawerElement\", static: false, private: false, access: { has: obj => \"drawerElement\" in obj, get: obj => obj.drawerElement, set: (obj, value) => { obj.drawerElement = value; } }, metadata: _metadata }, _drawerElement_initializers, _drawerElement_extraInitializers);\n __esDecorate(null, null, _backdropElement_decorators, { kind: \"field\", name: \"backdropElement\", static: false, private: false, access: { has: obj => \"backdropElement\" in obj, get: obj => obj.backdropElement, set: (obj, value) => { obj.backdropElement = value; } }, metadata: _metadata }, _backdropElement_initializers, _backdropElement_extraInitializers);\n __esDecorate(null, null, _closeButton_decorators, { kind: \"field\", name: \"closeButton\", static: false, private: false, access: { has: obj => \"closeButton\" in obj, get: obj => obj.closeButton, set: (obj, value) => { obj.closeButton = value; } }, metadata: _metadata }, _closeButton_initializers, _closeButton_extraInitializers);\n __esDecorate(null, null, _focusTrapStart_decorators, { kind: \"field\", name: \"focusTrapStart\", static: false, private: false, access: { has: obj => \"focusTrapStart\" in obj, get: obj => obj.focusTrapStart, set: (obj, value) => { obj.focusTrapStart = value; } }, metadata: _metadata }, _focusTrapStart_initializers, _focusTrapStart_extraInitializers);\n __esDecorate(null, null, _focusTrapEnd_decorators, { kind: \"field\", name: \"focusTrapEnd\", static: false, private: false, access: { has: obj => \"focusTrapEnd\" in obj, get: obj => obj.focusTrapEnd, set: (obj, value) => { obj.focusTrapEnd = value; } }, metadata: _metadata }, _focusTrapEnd_initializers, _focusTrapEnd_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n render() {\n return html /*html*/ `\n <div class=\"drawer-backdrop\" part=\"backdrop\"></div>\n\n <div class=\"drawer\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\" part=\"base\">\n <span class=\"focus-trap-start\" tabindex=\"0\"></span>\n\n <div class=\"drawer-header\" part=\"header\">\n <h2 class=\"drawer-title\" part=\"title\">\n <slot name=\"title\"></slot>\n </h2>\n <if ${!this.persistent}>\n <button class=\"drawer-close\" type=\"button\" aria-label=\"Close\" part=\"close\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M18 6L6 18M6 6l12 12\"/>\n </svg>\n </button>\n </if>\n </div>\n\n <div class=\"drawer-body\" part=\"body\">\n <slot></slot>\n </div>\n\n <div class=\"drawer-footer\" part=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n\n <span class=\"focus-trap-end\" tabindex=\"0\"></span>\n </div>\n `;\n }\n styles() {\n return css `${cssContent}`;\n }\n init() {\n // Ensure default attributes are set\n if (!this.hasAttribute('position')) {\n this.setAttribute('position', this.position);\n }\n if (!this.hasAttribute('size')) {\n this.setAttribute('size', this.size);\n }\n this.setAttribute('role', 'complementary');\n this.setAttribute('aria-hidden', String(!this.open));\n // Pre-set transition for push content mode to avoid jump on first use\n if (this.pushContent) {\n const mainContent = document.querySelector('main') || document.body;\n if (mainContent && mainContent !== document.body) {\n mainContent.style.transition = 'margin 0.3s cubic-bezier(0.4, 0, 0.2, 1)';\n }\n }\n if (this.open) {\n this.handleOpen();\n }\n }\n handleOpenChange() {\n // Prevent duplicate handling\n if (this._isHandlingOpenChange)\n return;\n this._isHandlingOpenChange = true;\n try {\n this.setAttribute('aria-hidden', String(!this.open));\n if (this.open) {\n this.handleOpen();\n }\n else {\n this.handleClose();\n }\n }\n finally {\n this._isHandlingOpenChange = false;\n }\n }\n handleBackdropClick(e) {\n if (!this.noBackdropDismiss && !this.persistent) {\n e.stopPropagation();\n this.hide();\n }\n }\n handleCloseClick(e) {\n e.stopPropagation();\n this.hide();\n }\n handleFocusTrapStart(e) {\n if (!this.noFocusTrap) {\n // Focus the last focusable element in the drawer\n const focusableElements = this.getFocusableElements();\n if (focusableElements.length > 0) {\n focusableElements[focusableElements.length - 1].focus();\n }\n }\n }\n handleFocusTrapEnd(e) {\n if (!this.noFocusTrap) {\n // Focus the first focusable element in the drawer\n const focusableElements = this.getFocusableElements();\n if (focusableElements.length > 0) {\n focusableElements[0].focus();\n }\n }\n }\n handleOpen() {\n // Store current focus\n this.previousFocus = document.activeElement;\n // Add escape key handler\n if (!this.noEscapeDismiss && !this.persistent) {\n this.boundHandleEscape = (e) => {\n if (e.key === 'Escape') {\n e.preventDefault();\n this.hide();\n }\n };\n document.addEventListener('keydown', this.boundHandleEscape);\n }\n // REMOVED: No longer manipulating document.body.style.overflow\n // The drawer is now contained and doesn't need to prevent body scroll\n // Focus management\n if (!this.noFocusTrap) {\n requestAnimationFrame(() => {\n if (this.drawerElement) {\n this.drawerElement.focus({ preventScroll: true });\n }\n });\n }\n // Push content if enabled (still supported for those who need it)\n if (this.pushContent) {\n this.updatePushContent();\n }\n this.dispatchOpenEvent();\n }\n handleClose() {\n // Remove escape key handler\n if (this.boundHandleEscape) {\n document.removeEventListener('keydown', this.boundHandleEscape);\n this.boundHandleEscape = undefined;\n }\n // REMOVED: No longer manipulating document.body.style.overflow\n // Restore focus\n if (this.previousFocus && this.previousFocus.focus) {\n this.previousFocus.focus();\n this.previousFocus = undefined;\n }\n // Reset push content\n if (this.pushContent) {\n this.updatePushContent();\n }\n this.dispatchCloseEvent();\n }\n updatePushContent() {\n if (!this.pushContent)\n return;\n // Apply to body or main content container\n const mainContent = document.querySelector('main') || document.body;\n if (mainContent && mainContent !== document.body) {\n // Set transition first if not already set\n if (!mainContent.style.transition) {\n mainContent.style.transition = 'margin 0.3s cubic-bezier(0.4, 0, 0.2, 1)';\n }\n if (this.open) {\n // Use CSS custom property that's calculated in CSS based on size/position\n const amount = getComputedStyle(this).getPropertyValue('--drawer-push-amount');\n const property = this.position === 'left' || this.position === 'right'\n ? 'marginLeft'\n : 'marginTop';\n mainContent.style[property] = amount || '0px';\n }\n else {\n // Reset margins\n mainContent.style.marginLeft = '';\n mainContent.style.marginTop = '';\n }\n }\n }\n getFocusableElements() {\n if (!this.drawerElement)\n return document.querySelectorAll('none');\n return this.drawerElement.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), ' +\n 'input:not([disabled]), select:not([disabled]), ' +\n '[tabindex]:not([tabindex=\"-1\"])');\n }\n dispatchOpenEvent() {\n // Prevent duplicate events within 100ms\n const now = Date.now();\n if (this._lastEventType === 'open' && (now - this._lastEventTime) < 100) {\n return;\n }\n this._lastEventType = 'open';\n this._lastEventTime = now;\n // Manually dispatch event\n this.dispatchEvent(new CustomEvent('drawer-open', {\n bubbles: true,\n composed: true,\n detail: { drawer: this }\n }));\n }\n dispatchCloseEvent() {\n // Prevent duplicate events within 100ms\n const now = Date.now();\n if (this._lastEventType === 'close' && (now - this._lastEventTime) < 100) {\n return;\n }\n this._lastEventType = 'close';\n this._lastEventTime = now;\n // Manually dispatch event\n this.dispatchEvent(new CustomEvent('drawer-close', {\n bubbles: true,\n composed: true,\n detail: { drawer: this }\n }));\n }\n cleanup() {\n if (this.boundHandleEscape) {\n document.removeEventListener('keydown', this.boundHandleEscape);\n }\n // REMOVED: No longer manipulating document.body.style.overflow\n }\n // Public API\n show() {\n this.open = true;\n }\n hide() {\n this.open = false;\n }\n toggle() {\n this.open = !this.open;\n }\n });\n return _classThis;\n})();\n\nexport { SniceDrawer };\n//# sourceMappingURL=snice-drawer.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","SniceDrawer","_classDescriptor","_classThis","_open_decorators","_position_decorators","_size_decorators","_noBackdrop_decorators","_noBackdropDismiss_decorators","_noEscapeDismiss_decorators","_noFocusTrap_decorators","_persistent_decorators","_pushContent_decorators","_contained_decorators","_drawerElement_decorators","_backdropElement_decorators","_closeButton_decorators","_focusTrapStart_decorators","_focusTrapEnd_decorators","_render_decorators","_styles_decorators","_init_decorators","_handleOpenChange_decorators","_handleBackdropClick_decorators","_handleCloseClick_decorators","_handleFocusTrapStart_decorators","_handleFocusTrapEnd_decorators","_cleanup_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_open_initializers","_open_extraInitializers","_position_initializers","_position_extraInitializers","_size_initializers","_size_extraInitializers","_noBackdrop_initializers","_noBackdrop_extraInitializers","_noBackdropDismiss_initializers","_noBackdropDismiss_extraInitializers","_noEscapeDismiss_initializers","_noEscapeDismiss_extraInitializers","_noFocusTrap_initializers","_noFocusTrap_extraInitializers","_persistent_initializers","_persistent_extraInitializers","_pushContent_initializers","_pushContent_extraInitializers","_contained_initializers","_contained_extraInitializers","_drawerElement_initializers","_drawerElement_extraInitializers","_backdropElement_initializers","_backdropElement_extraInitializers","_closeButton_initializers","_closeButton_extraInitializers","_focusTrapStart_initializers","_focusTrapStart_extraInitializers","_focusTrapEnd_initializers","_focusTrapEnd_extraInitializers","this","constructor","super","open","position","size","noBackdrop","noBackdropDismiss","noEscapeDismiss","noFocusTrap","persistent","pushContent","contained","drawerElement","backdropElement","closeButton","focusTrapStart","focusTrapEnd","previousFocus","_isHandlingOpenChange","_lastEventType","_lastEventTime","_metadata","Symbol","metadata","create","property","type","Boolean","attribute","query","render","styles","ready","watch","on","dispose","static","private","has","obj","handleOpenChange","handleBackdropClick","handleCloseClick","handleFocusTrapStart","handleFocusTrapEnd","cleanup","enumerable","configurable","writable","html","css","hasAttribute","setAttribute","String","mainContent","document","querySelector","body","style","transition","handleOpen","handleClose","e","stopPropagation","hide","focusableElements","getFocusableElements","focus","activeElement","boundHandleEscape","preventDefault","addEventListener","requestAnimationFrame","preventScroll","updatePushContent","dispatchOpenEvent","removeEventListener","undefined","dispatchCloseEvent","amount","getComputedStyle","getPropertyValue","marginLeft","marginTop","querySelectorAll","now","Date","dispatchEvent","CustomEvent","bubbles","composed","detail","drawer","show","toggle"],"mappings":";;;;;;6JAiEO,SAASA,EAAaC,EAAMC,EAAcC,EAAYC,EAAWC,EAAcC,GACpF,SAASC,EAAOC,GAAK,QAAU,IAANA,GAA6B,mBAANA,EAAkB,MAAM,IAAIC,UAAU,qBAAsB,OAAOD,CAAG,CAKtH,IAJA,IAGIE,EAHAC,EAAOP,EAAUO,KAAMC,EAAe,WAATD,EAAoB,MAAiB,WAATA,EAAoB,MAAQ,QACrFE,GAAUX,GAAgBD,EAAOG,EAAkB,OAAIH,EAAOA,EAAKa,UAAY,KAC/EC,EAAab,IAAiBW,EAASG,OAAOC,yBAAyBJ,EAAQT,EAAUc,MAAQ,IAC9FC,GAAO,EACLC,EAAIjB,EAAWkB,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC7C,IAAIE,EAAU,CAAA,EACd,IAAK,IAAIC,KAAKnB,EAAWkB,EAAQC,GAAW,WAANA,EAAiB,CAAA,EAAKnB,EAAUmB,GACtE,IAAK,IAAIA,KAAKnB,EAAUoB,OAAQF,EAAQE,OAAOD,GAAKnB,EAAUoB,OAAOD,GACrED,EAAQG,eAAiB,SAAUjB,GAAK,GAAIW,EAAM,MAAM,IAAIV,UAAU,0DAA2DH,EAAkBoB,KAAKnB,EAAOC,GAAK,MAAQ,EAC5K,IAAImB,GAAS,EAAIxB,EAAWiB,IAAa,aAATT,EAAsB,CAAEiB,IAAKb,EAAWa,IAAKC,IAAKd,EAAWc,KAAQd,EAAWH,GAAMU,GACtH,GAAa,aAATX,EAAqB,CACrB,QAAe,IAAXgB,EAAmB,SACvB,GAAe,OAAXA,GAAqC,iBAAXA,EAAqB,MAAM,I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B,gBAA8BkE,EAAMtF,KAAKqB,eAAkB,MAGpErB,KAAKoB,eAAiB,OACtBpB,KAAKqB,eAAiBiE,EAEtBtF,KAAKwF,cAAc,IAAIC,YAAY,cAAe,CAC9CC,SAAS,EACTC,UAAU,EACVC,OAAQ,CAAEC,OAAQ7F,SAE1B,CACA,kBAAA+E,GAEI,MAAMO,EAAMC,KAAKD,MACW,UAAxBtF,KAAKoB,gBAA+BkE,EAAMtF,KAAKqB,eAAkB,MAGrErB,KAAKoB,eAAiB,QACtBpB,KAAKqB,eAAiBiE,EAEtBtF,KAAKwF,cAAc,IAAIC,YAAY,eAAgB,CAC/CC,SAAS,EACTC,UAAU,EACVC,OAAQ,CAAEC,OAAQ7F,SAE1B,CACA,OAAA8C,GACQ9C,KAAKsE,mBACLd,SAASqB,oBAAoB,UAAW7E,KAAKsE,kBAGrD,CAEA,IAAAwB,GACI9F,KAAKG,MAAO,CAChB,CACA,IAAA8D,GACIjE,KAAKG,MAAO,CAChB,CACA,MAAA4F,GACI/F,KAAKG,MAAQH,KAAKG,IACtB,GAEGhE,CACV,EAjXiB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"snice-drawer.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/drawer/snice-drawer.js"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","import { __runInitializers, __esDecorate } from 'tslib';\nimport { element, property, query, render, styles, ready, watch, on, dispose, html, css } from 'snice';\n\nvar cssContent = \":host{--drawer-width-small:var(--snice-size-drawer-small, 15rem);--drawer-width-medium:var(--snice-size-drawer-medium, 20rem);--drawer-width-large:var(--snice-size-drawer-large, 30rem);--drawer-width-xl:var(--snice-size-drawer-xl, 40rem);--drawer-width-xxl:var(--snice-size-drawer-xxl, 50rem);--drawer-width-xxxl:var(--snice-size-drawer-xxxl, 60rem);--drawer-height-small:var(--snice-size-drawer-height-small, 12.5rem);--drawer-height-medium:var(--snice-size-drawer-height-medium, 25rem);--drawer-height-large:var(--snice-size-drawer-height-large, 37.5rem);--drawer-height-xl:var(--snice-size-drawer-height-xl, 70vh);--drawer-height-xxl:var(--snice-size-drawer-height-xxl, 80vh);--drawer-height-xxxl:var(--snice-size-drawer-height-xxxl, 90vh);--drawer-bg:var(--snice-color-background, white);--drawer-shadow:var(--snice-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));--drawer-backdrop:var(--snice-color-backdrop, rgba(0, 0, 0, 0.5));--drawer-transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(0.4, 0, 0.2, 1);--drawer-z-index:var(--snice-z-index-modal, 1050);display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;isolation:isolate;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);contain:layout style paint}:host([contained]){position:absolute;width:100%;height:100%}.drawer-backdrop{position:absolute;inset:0;background:var(--drawer-backdrop);opacity:0;transition:opacity .3s ease-in-out;z-index:var(--drawer-z-index);pointer-events:none;visibility:hidden}:host([open]){pointer-events:auto}:host([open]) .drawer-backdrop{opacity:1;pointer-events:auto;visibility:visible}:host([no-backdrop]) .drawer-backdrop{display:none}.drawer{position:absolute;background:var(--drawer-bg);box-shadow:var(--drawer-shadow);transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(.4, 0, .2, 1),opacity var(--snice-transition-medium, 250ms) cubic-bezier(.2, 0, .8, 1);z-index:calc(var(--drawer-z-index) + 1);display:flex;flex-direction:column;outline:0;overflow:hidden;opacity:0;pointer-events:auto}:host([open]) .drawer{opacity:1}:host(:not([position])) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host(:not([position])[open]) .drawer{transform:translateX(0)}:host([position=left]) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host([position=left][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=left][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=left][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=left][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=left][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=left][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=left][size=full]) .drawer{width:100%}:host([position=left][open]) .drawer{transform:translateX(0)}:host([position=right]) .drawer{top:0;right:0;height:100%;width:var(--drawer-width-medium);transform:translateX(100%)}:host([position=right][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=right][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=right][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=right][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=right][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=right][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=right][size=full]) .drawer{width:100%}:host([position=right][open]) .drawer{transform:translateX(0)}:host([position=top]) .drawer{top:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(-100%)}:host([position=top][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=top][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=top][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=top][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=top][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=top][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=top][size=full]) .drawer{height:100%}:host([position=top][open]) .drawer{transform:translateY(0)}:host([position=bottom]) .drawer{bottom:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(100%)}:host([position=bottom][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=bottom][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=bottom][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=bottom][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=bottom][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=bottom][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=bottom][size=full]) .drawer{height:100%}:host([position=bottom][open]) .drawer{transform:translateY(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-bottom:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-header:has(.drawer-title:empty):not(:has(.drawer-close)){display:none}.drawer-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0;color:var(--snice-color-text,rgb(17 24 39));line-height:var(--snice-line-height-tight, 1.25)}.drawer-close{display:flex;align-items:center;justify-content:center;width:var(--snice-size-control-md,2rem);height:var(--snice-size-control-md,2rem);border:none;background:0 0;border-radius:var(--snice-border-radius-md,6px);cursor:pointer;color:var(--snice-color-text-secondary,rgb(107 114 128));transition:all var(--snice-transition-fast, 150ms) ease}.drawer-close:hover{background:var(--snice-color-background-hover,rgb(243 244 246));color:var(--snice-color-text,rgb(17 24 39))}.drawer-close:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246));outline-offset:var(--snice-focus-ring-offset,2px)}.drawer-body{flex:1;padding:var(--snice-spacing-lg,1.25rem);overflow-y:auto;overflow-x:hidden;color:var(--snice-color-text,rgb(17 24 39))}.drawer-footer{padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-top:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-footer:empty{display:none}@media (prefers-reduced-motion:reduce){.drawer,.drawer-backdrop{transition:none}}@media (max-width:640px){:host([position=left][size=large]) .drawer,:host([position=left][size=medium]) .drawer,:host([position=left][size=xl]) .drawer,:host([position=left][size=xxl]) .drawer,:host([position=left][size=xxxl]) .drawer,:host([position=right][size=large]) .drawer,:host([position=right][size=medium]) .drawer,:host([position=right][size=xl]) .drawer,:host([position=right][size=xxl]) .drawer,:host([position=right][size=xxxl]) .drawer{width:calc(100% - 2.5rem)}}.focus-trap-end,.focus-trap-start{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host([push-content]){--drawer-push-amount:0px}:host([push-content][position=left][open][size=small]){--drawer-push-amount:var(--drawer-width-small)}:host([push-content][position=left][open][size=medium]){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=left][open][size=large]){--drawer-push-amount:var(--drawer-width-large)}:host([push-content][position=left][open][size=xl]){--drawer-push-amount:var(--drawer-width-xl)}:host([push-content][position=left][open][size=xxl]){--drawer-push-amount:var(--drawer-width-xxl)}:host([push-content][position=left][open][size=xxxl]){--drawer-push-amount:var(--drawer-width-xxxl)}:host([push-content][position=left][open][size=full]){--drawer-push-amount:100vw}:host([push-content][position=left][open]:not([size])){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=right][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-width-small))}:host([push-content][position=right][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=right][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-width-large))}:host([push-content][position=right][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xl))}:host([push-content][position=right][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxl))}:host([push-content][position=right][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxxl))}:host([push-content][position=right][open][size=full]){--drawer-push-amount:-100vw}:host([push-content][position=right][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=top][open][size=small]){--drawer-push-amount:var(--drawer-height-small)}:host([push-content][position=top][open][size=medium]){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=top][open][size=large]){--drawer-push-amount:var(--drawer-height-large)}:host([push-content][position=top][open][size=xl]){--drawer-push-amount:var(--drawer-height-xl)}:host([push-content][position=top][open][size=xxl]){--drawer-push-amount:var(--drawer-height-xxl)}:host([push-content][position=top][open][size=xxxl]){--drawer-push-amount:var(--drawer-height-xxxl)}:host([push-content][position=top][open][size=full]){--drawer-push-amount:100vh}:host([push-content][position=top][open]:not([size])){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=bottom][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-height-small))}:host([push-content][position=bottom][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}:host([push-content][position=bottom][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-height-large))}:host([push-content][position=bottom][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xl))}:host([push-content][position=bottom][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxl))}:host([push-content][position=bottom][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxxl))}:host([push-content][position=bottom][open][size=full]){--drawer-push-amount:-100vh}:host([push-content][position=bottom][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}:host([inline]){position:static;width:auto;height:auto;pointer-events:auto;contain:layout style}:host([inline]) .drawer-backdrop{display:none}:host([inline]) .drawer{position:static;transform:none;opacity:1;box-shadow:none;z-index:auto;transition:none;border-right:1px solid var(--snice-color-border,rgb(229 231 235))}:host([inline]) .drawer,:host([inline][position=left]) .drawer{width:var(--drawer-width-medium);height:100%}:host([inline]:not([position])[size=small]) .drawer,:host([inline][position=left][size=small]) .drawer{width:var(--drawer-width-small)}:host([inline]:not([position])[size=large]) .drawer,:host([inline][position=left][size=large]) .drawer{width:var(--drawer-width-large)}:host([inline]:not([position])[size=xl]) .drawer,:host([inline][position=left][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([inline]:not([position])[size=xxl]) .drawer,:host([inline][position=left][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([inline]:not([position])[size=xxxl]) .drawer,:host([inline][position=left][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([inline]:not([position])[size=full]) .drawer,:host([inline][position=left][size=full]) .drawer{width:100%}:host([inline][position=right]) .drawer{border-right:none;border-left:1px solid var(--snice-color-border,rgb(229 231 235));width:var(--drawer-width-medium);height:100%}:host([inline][position=right][size=small]) .drawer{width:var(--drawer-width-small)}:host([inline][position=right][size=large]) .drawer{width:var(--drawer-width-large)}:host([inline][position=right][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([inline][position=right][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([inline][position=right][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([inline][position=right][size=full]) .drawer{width:100%}:host([inline][position=top]) .drawer{border-right:none;border-bottom:1px solid var(--snice-color-border,rgb(229 231 235));width:100%;height:var(--drawer-height-medium)}:host([inline][position=top][size=small]) .drawer{height:var(--drawer-height-small)}:host([inline][position=top][size=large]) .drawer{height:var(--drawer-height-large)}:host([inline][position=top][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([inline][position=top][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([inline][position=top][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([inline][position=top][size=full]) .drawer{height:100%}:host([inline][position=bottom]) .drawer{border-right:none;border-top:1px solid var(--snice-color-border,rgb(229 231 235));width:100%;height:var(--drawer-height-medium)}:host([inline][position=bottom][size=small]) .drawer{height:var(--drawer-height-small)}:host([inline][position=bottom][size=large]) .drawer{height:var(--drawer-height-large)}:host([inline][position=bottom][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([inline][position=bottom][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([inline][position=bottom][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([inline][position=bottom][size=full]) .drawer{height:100%}:host([inline]) .focus-trap-end,:host([inline]) .focus-trap-start{display:none}\";\n\nlet SniceDrawer = (() => {\n let _classDecorators = [element('snice-drawer')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _open_decorators;\n let _open_initializers = [];\n let _open_extraInitializers = [];\n let _position_decorators;\n let _position_initializers = [];\n let _position_extraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _inline_decorators;\n let _inline_initializers = [];\n let _inline_extraInitializers = [];\n let _breakpoint_decorators;\n let _breakpoint_initializers = [];\n let _breakpoint_extraInitializers = [];\n let _noBackdrop_decorators;\n let _noBackdrop_initializers = [];\n let _noBackdrop_extraInitializers = [];\n let _noBackdropDismiss_decorators;\n let _noBackdropDismiss_initializers = [];\n let _noBackdropDismiss_extraInitializers = [];\n let _noEscapeDismiss_decorators;\n let _noEscapeDismiss_initializers = [];\n let _noEscapeDismiss_extraInitializers = [];\n let _noFocusTrap_decorators;\n let _noFocusTrap_initializers = [];\n let _noFocusTrap_extraInitializers = [];\n let _persistent_decorators;\n let _persistent_initializers = [];\n let _persistent_extraInitializers = [];\n let _pushContent_decorators;\n let _pushContent_initializers = [];\n let _pushContent_extraInitializers = [];\n let _contained_decorators;\n let _contained_initializers = [];\n let _contained_extraInitializers = [];\n let _noHeader_decorators;\n let _noHeader_initializers = [];\n let _noHeader_extraInitializers = [];\n let _noFooter_decorators;\n let _noFooter_initializers = [];\n let _noFooter_extraInitializers = [];\n let _drawerElement_decorators;\n let _drawerElement_initializers = [];\n let _drawerElement_extraInitializers = [];\n let _backdropElement_decorators;\n let _backdropElement_initializers = [];\n let _backdropElement_extraInitializers = [];\n let _closeButton_decorators;\n let _closeButton_initializers = [];\n let _closeButton_extraInitializers = [];\n let _focusTrapStart_decorators;\n let _focusTrapStart_initializers = [];\n let _focusTrapStart_extraInitializers = [];\n let _focusTrapEnd_decorators;\n let _focusTrapEnd_initializers = [];\n let _focusTrapEnd_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n let _init_decorators;\n let _handleBreakpointPropChange_decorators;\n let _handleOpenChange_decorators;\n let _handleBackdropClick_decorators;\n let _handleCloseClick_decorators;\n let _handleFocusTrapStart_decorators;\n let _handleFocusTrapEnd_decorators;\n let _cleanup_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n constructor() {\n super(...arguments);\n this.open = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _open_initializers, false));\n this.position = (__runInitializers(this, _open_extraInitializers), __runInitializers(this, _position_initializers, 'left'));\n this.size = (__runInitializers(this, _position_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.inline = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _inline_initializers, false));\n this.breakpoint = (__runInitializers(this, _inline_extraInitializers), __runInitializers(this, _breakpoint_initializers, 0));\n this.noBackdrop = (__runInitializers(this, _breakpoint_extraInitializers), __runInitializers(this, _noBackdrop_initializers, false));\n this.noBackdropDismiss = (__runInitializers(this, _noBackdrop_extraInitializers), __runInitializers(this, _noBackdropDismiss_initializers, false));\n this.noEscapeDismiss = (__runInitializers(this, _noBackdropDismiss_extraInitializers), __runInitializers(this, _noEscapeDismiss_initializers, false));\n this.noFocusTrap = (__runInitializers(this, _noEscapeDismiss_extraInitializers), __runInitializers(this, _noFocusTrap_initializers, false));\n this.persistent = (__runInitializers(this, _noFocusTrap_extraInitializers), __runInitializers(this, _persistent_initializers, false));\n this.pushContent = (__runInitializers(this, _persistent_extraInitializers), __runInitializers(this, _pushContent_initializers, false));\n this.contained = (__runInitializers(this, _pushContent_extraInitializers), __runInitializers(this, _contained_initializers, false));\n this.noHeader = (__runInitializers(this, _contained_extraInitializers), __runInitializers(this, _noHeader_initializers, false));\n this.noFooter = (__runInitializers(this, _noHeader_extraInitializers), __runInitializers(this, _noFooter_initializers, false));\n this.drawerElement = (__runInitializers(this, _noFooter_extraInitializers), __runInitializers(this, _drawerElement_initializers, void 0));\n this.backdropElement = (__runInitializers(this, _drawerElement_extraInitializers), __runInitializers(this, _backdropElement_initializers, void 0));\n this.closeButton = (__runInitializers(this, _backdropElement_extraInitializers), __runInitializers(this, _closeButton_initializers, void 0));\n this.focusTrapStart = (__runInitializers(this, _closeButton_extraInitializers), __runInitializers(this, _focusTrapStart_initializers, void 0));\n this.focusTrapEnd = (__runInitializers(this, _focusTrapStart_extraInitializers), __runInitializers(this, _focusTrapEnd_initializers, void 0));\n this.previousFocus = __runInitializers(this, _focusTrapEnd_extraInitializers);\n this._isHandlingOpenChange = false;\n this._lastEventType = null;\n this._lastEventTime = 0;\n }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _open_decorators = [property({ type: Boolean, })];\n _position_decorators = [property({})];\n _size_decorators = [property({})];\n _inline_decorators = [property({ type: Boolean, })];\n _breakpoint_decorators = [property({ type: Number })];\n _noBackdrop_decorators = [property({ type: Boolean, attribute: 'no-backdrop', })];\n _noBackdropDismiss_decorators = [property({ type: Boolean, attribute: 'no-backdrop-dismiss', })];\n _noEscapeDismiss_decorators = [property({ type: Boolean, attribute: 'no-escape-dismiss', })];\n _noFocusTrap_decorators = [property({ type: Boolean, attribute: 'no-focus-trap', })];\n _persistent_decorators = [property({ type: Boolean, })];\n _pushContent_decorators = [property({ type: Boolean, attribute: 'push-content', })];\n _contained_decorators = [property({ type: Boolean, })];\n _noHeader_decorators = [property({ type: Boolean, attribute: 'no-header' })];\n _noFooter_decorators = [property({ type: Boolean, attribute: 'no-footer' })];\n _drawerElement_decorators = [query('.drawer')];\n _backdropElement_decorators = [query('.drawer-backdrop')];\n _closeButton_decorators = [query('.drawer-close')];\n _focusTrapStart_decorators = [query('.focus-trap-start')];\n _focusTrapEnd_decorators = [query('.focus-trap-end')];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n _init_decorators = [ready()];\n _handleBreakpointPropChange_decorators = [watch('breakpoint')];\n _handleOpenChange_decorators = [watch('open')];\n _handleBackdropClick_decorators = [on('click', { target: '.drawer-backdrop' })];\n _handleCloseClick_decorators = [on('click', { target: '.drawer-close' })];\n _handleFocusTrapStart_decorators = [on('focus', { target: '.focus-trap-start' })];\n _handleFocusTrapEnd_decorators = [on('focus', { target: '.focus-trap-end' })];\n _cleanup_decorators = [dispose()];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _init_decorators, { kind: \"method\", name: \"init\", static: false, private: false, access: { has: obj => \"init\" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleBreakpointPropChange_decorators, { kind: \"method\", name: \"handleBreakpointPropChange\", static: false, private: false, access: { has: obj => \"handleBreakpointPropChange\" in obj, get: obj => obj.handleBreakpointPropChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleOpenChange_decorators, { kind: \"method\", name: \"handleOpenChange\", static: false, private: false, access: { has: obj => \"handleOpenChange\" in obj, get: obj => obj.handleOpenChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleBackdropClick_decorators, { kind: \"method\", name: \"handleBackdropClick\", static: false, private: false, access: { has: obj => \"handleBackdropClick\" in obj, get: obj => obj.handleBackdropClick }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleCloseClick_decorators, { kind: \"method\", name: \"handleCloseClick\", static: false, private: false, access: { has: obj => \"handleCloseClick\" in obj, get: obj => obj.handleCloseClick }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleFocusTrapStart_decorators, { kind: \"method\", name: \"handleFocusTrapStart\", static: false, private: false, access: { has: obj => \"handleFocusTrapStart\" in obj, get: obj => obj.handleFocusTrapStart }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleFocusTrapEnd_decorators, { kind: \"method\", name: \"handleFocusTrapEnd\", static: false, private: false, access: { has: obj => \"handleFocusTrapEnd\" in obj, get: obj => obj.handleFocusTrapEnd }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _cleanup_decorators, { kind: \"method\", name: \"cleanup\", static: false, private: false, access: { has: obj => \"cleanup\" in obj, get: obj => obj.cleanup }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _open_decorators, { kind: \"field\", name: \"open\", static: false, private: false, access: { has: obj => \"open\" in obj, get: obj => obj.open, set: (obj, value) => { obj.open = value; } }, metadata: _metadata }, _open_initializers, _open_extraInitializers);\n __esDecorate(null, null, _position_decorators, { kind: \"field\", name: \"position\", static: false, private: false, access: { has: obj => \"position\" in obj, get: obj => obj.position, set: (obj, value) => { obj.position = value; } }, metadata: _metadata }, _position_initializers, _position_extraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _inline_decorators, { kind: \"field\", name: \"inline\", static: false, private: false, access: { has: obj => \"inline\" in obj, get: obj => obj.inline, set: (obj, value) => { obj.inline = value; } }, metadata: _metadata }, _inline_initializers, _inline_extraInitializers);\n __esDecorate(null, null, _breakpoint_decorators, { kind: \"field\", name: \"breakpoint\", static: false, private: false, access: { has: obj => \"breakpoint\" in obj, get: obj => obj.breakpoint, set: (obj, value) => { obj.breakpoint = value; } }, metadata: _metadata }, _breakpoint_initializers, _breakpoint_extraInitializers);\n __esDecorate(null, null, _noBackdrop_decorators, { kind: \"field\", name: \"noBackdrop\", static: false, private: false, access: { has: obj => \"noBackdrop\" in obj, get: obj => obj.noBackdrop, set: (obj, value) => { obj.noBackdrop = value; } }, metadata: _metadata }, _noBackdrop_initializers, _noBackdrop_extraInitializers);\n __esDecorate(null, null, _noBackdropDismiss_decorators, { kind: \"field\", name: \"noBackdropDismiss\", static: false, private: false, access: { has: obj => \"noBackdropDismiss\" in obj, get: obj => obj.noBackdropDismiss, set: (obj, value) => { obj.noBackdropDismiss = value; } }, metadata: _metadata }, _noBackdropDismiss_initializers, _noBackdropDismiss_extraInitializers);\n __esDecorate(null, null, _noEscapeDismiss_decorators, { kind: \"field\", name: \"noEscapeDismiss\", static: false, private: false, access: { has: obj => \"noEscapeDismiss\" in obj, get: obj => obj.noEscapeDismiss, set: (obj, value) => { obj.noEscapeDismiss = value; } }, metadata: _metadata }, _noEscapeDismiss_initializers, _noEscapeDismiss_extraInitializers);\n __esDecorate(null, null, _noFocusTrap_decorators, { kind: \"field\", name: \"noFocusTrap\", static: false, private: false, access: { has: obj => \"noFocusTrap\" in obj, get: obj => obj.noFocusTrap, set: (obj, value) => { obj.noFocusTrap = value; } }, metadata: _metadata }, _noFocusTrap_initializers, _noFocusTrap_extraInitializers);\n __esDecorate(null, null, _persistent_decorators, { kind: \"field\", name: \"persistent\", static: false, private: false, access: { has: obj => \"persistent\" in obj, get: obj => obj.persistent, set: (obj, value) => { obj.persistent = value; } }, metadata: _metadata }, _persistent_initializers, _persistent_extraInitializers);\n __esDecorate(null, null, _pushContent_decorators, { kind: \"field\", name: \"pushContent\", static: false, private: false, access: { has: obj => \"pushContent\" in obj, get: obj => obj.pushContent, set: (obj, value) => { obj.pushContent = value; } }, metadata: _metadata }, _pushContent_initializers, _pushContent_extraInitializers);\n __esDecorate(null, null, _contained_decorators, { kind: \"field\", name: \"contained\", static: false, private: false, access: { has: obj => \"contained\" in obj, get: obj => obj.contained, set: (obj, value) => { obj.contained = value; } }, metadata: _metadata }, _contained_initializers, _contained_extraInitializers);\n __esDecorate(null, null, _noHeader_decorators, { kind: \"field\", name: \"noHeader\", static: false, private: false, access: { has: obj => \"noHeader\" in obj, get: obj => obj.noHeader, set: (obj, value) => { obj.noHeader = value; } }, metadata: _metadata }, _noHeader_initializers, _noHeader_extraInitializers);\n __esDecorate(null, null, _noFooter_decorators, { kind: \"field\", name: \"noFooter\", static: false, private: false, access: { has: obj => \"noFooter\" in obj, get: obj => obj.noFooter, set: (obj, value) => { obj.noFooter = value; } }, metadata: _metadata }, _noFooter_initializers, _noFooter_extraInitializers);\n __esDecorate(null, null, _drawerElement_decorators, { kind: \"field\", name: \"drawerElement\", static: false, private: false, access: { has: obj => \"drawerElement\" in obj, get: obj => obj.drawerElement, set: (obj, value) => { obj.drawerElement = value; } }, metadata: _metadata }, _drawerElement_initializers, _drawerElement_extraInitializers);\n __esDecorate(null, null, _backdropElement_decorators, { kind: \"field\", name: \"backdropElement\", static: false, private: false, access: { has: obj => \"backdropElement\" in obj, get: obj => obj.backdropElement, set: (obj, value) => { obj.backdropElement = value; } }, metadata: _metadata }, _backdropElement_initializers, _backdropElement_extraInitializers);\n __esDecorate(null, null, _closeButton_decorators, { kind: \"field\", name: \"closeButton\", static: false, private: false, access: { has: obj => \"closeButton\" in obj, get: obj => obj.closeButton, set: (obj, value) => { obj.closeButton = value; } }, metadata: _metadata }, _closeButton_initializers, _closeButton_extraInitializers);\n __esDecorate(null, null, _focusTrapStart_decorators, { kind: \"field\", name: \"focusTrapStart\", static: false, private: false, access: { has: obj => \"focusTrapStart\" in obj, get: obj => obj.focusTrapStart, set: (obj, value) => { obj.focusTrapStart = value; } }, metadata: _metadata }, _focusTrapStart_initializers, _focusTrapStart_extraInitializers);\n __esDecorate(null, null, _focusTrapEnd_decorators, { kind: \"field\", name: \"focusTrapEnd\", static: false, private: false, access: { has: obj => \"focusTrapEnd\" in obj, get: obj => obj.focusTrapEnd, set: (obj, value) => { obj.focusTrapEnd = value; } }, metadata: _metadata }, _focusTrapEnd_initializers, _focusTrapEnd_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n render() {\n return html /*html*/ `\n <div class=\"drawer-backdrop\" part=\"backdrop\"></div>\n\n <div class=\"drawer\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\" part=\"base\">\n <span class=\"focus-trap-start\" tabindex=\"0\"></span>\n\n <if ${!this.noHeader}>\n <div class=\"drawer-header\" part=\"header\">\n <h2 class=\"drawer-title\" part=\"title\">\n <slot name=\"title\"></slot>\n </h2>\n <if ${!this.persistent}>\n <button class=\"drawer-close\" type=\"button\" aria-label=\"Close\" part=\"close\">\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\n <path d=\"M18 6L6 18M6 6l12 12\"/>\n </svg>\n </button>\n </if>\n </div>\n </if>\n\n <div class=\"drawer-body\" part=\"body\">\n <slot></slot>\n </div>\n\n <if ${!this.noFooter}>\n <div class=\"drawer-footer\" part=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n </if>\n\n <span class=\"focus-trap-end\" tabindex=\"0\"></span>\n </div>\n `;\n }\n styles() {\n return css `${cssContent}`;\n }\n init() {\n // Ensure default attributes are set\n if (!this.hasAttribute('position')) {\n this.setAttribute('position', this.position);\n }\n if (!this.hasAttribute('size')) {\n this.setAttribute('size', this.size);\n }\n this.setAttribute('role', 'complementary');\n this.setAttribute('aria-hidden', String(!this.open));\n // Set up breakpoint listener if specified\n if (this.breakpoint > 0) {\n this.setupBreakpointListener();\n }\n // Pre-set transition for push content mode to avoid jump on first use\n if (this.pushContent && !this.isInlineActive()) {\n const mainContent = document.querySelector('main') || document.body;\n if (mainContent && mainContent !== document.body) {\n mainContent.style.transition = 'margin 0.3s cubic-bezier(0.4, 0, 0.2, 1)';\n }\n }\n if (this.open && !this.isInlineActive()) {\n this.handleOpen();\n }\n }\n /** Returns true if the drawer is currently in inline mode (either via `inline` prop or active breakpoint). */\n isInlineActive() {\n return this.inline || this.hasAttribute('inline');\n }\n setupBreakpointListener() {\n // Tear down existing listener\n this.teardownBreakpointListener();\n if (this.breakpoint <= 0)\n return;\n this.breakpointQuery = window.matchMedia(`(min-width: ${this.breakpoint}px)`);\n this.boundBreakpointHandler = (e) => this.handleBreakpointChange(e.matches);\n // Apply initial state\n this.handleBreakpointChange(this.breakpointQuery.matches);\n this.breakpointQuery.addEventListener('change', this.boundBreakpointHandler);\n }\n teardownBreakpointListener() {\n if (this.breakpointQuery && this.boundBreakpointHandler) {\n this.breakpointQuery.removeEventListener('change', this.boundBreakpointHandler);\n this.breakpointQuery = undefined;\n this.boundBreakpointHandler = undefined;\n }\n }\n handleBreakpointChange(matches) {\n const wasInline = this.isInlineActive();\n if (matches) {\n // Above breakpoint → inline mode\n this.setAttribute('inline', '');\n // If was overlay and open, tear down overlay behaviors\n if (!wasInline && this.open) {\n this.teardownOverlayBehaviors();\n }\n }\n else {\n // Below breakpoint → overlay mode\n this.removeAttribute('inline');\n // If was inline and now overlay, re-apply overlay behaviors if open\n if (wasInline && this.open) {\n this.handleOpen();\n }\n }\n }\n teardownOverlayBehaviors() {\n // Remove escape handler\n if (this.boundHandleEscape) {\n document.removeEventListener('keydown', this.boundHandleEscape);\n this.boundHandleEscape = undefined;\n }\n // Reset push content\n if (this.pushContent) {\n const mainContent = document.querySelector('main') || document.body;\n if (mainContent && mainContent !== document.body) {\n mainContent.style.marginLeft = '';\n mainContent.style.marginTop = '';\n }\n }\n }\n handleBreakpointPropChange() {\n if (this.breakpoint > 0) {\n this.setupBreakpointListener();\n }\n else {\n this.teardownBreakpointListener();\n // If breakpoint removed, also remove inline if it was set by breakpoint\n // (user's explicit `inline` prop is separate)\n if (!this.inline) {\n this.removeAttribute('inline');\n }\n }\n }\n handleOpenChange() {\n // Prevent duplicate handling\n if (this._isHandlingOpenChange)\n return;\n this._isHandlingOpenChange = true;\n try {\n this.setAttribute('aria-hidden', String(!this.open));\n // In inline mode, skip overlay behaviors entirely\n if (this.isInlineActive())\n return;\n if (this.open) {\n this.handleOpen();\n }\n else {\n this.handleClose();\n }\n }\n finally {\n this._isHandlingOpenChange = false;\n }\n }\n handleBackdropClick(e) {\n if (!this.noBackdropDismiss && !this.persistent) {\n e.stopPropagation();\n this.hide();\n }\n }\n handleCloseClick(e) {\n e.stopPropagation();\n this.hide();\n }\n handleFocusTrapStart(e) {\n if (!this.noFocusTrap) {\n // Focus the last focusable element in the drawer\n const focusableElements = this.getFocusableElements();\n if (focusableElements.length > 0) {\n focusableElements[focusableElements.length - 1].focus();\n }\n }\n }\n handleFocusTrapEnd(e) {\n if (!this.noFocusTrap) {\n // Focus the first focusable element in the drawer\n const focusableElements = this.getFocusableElements();\n if (focusableElements.length > 0) {\n focusableElements[0].focus();\n }\n }\n }\n handleOpen() {\n // Store current focus\n this.previousFocus = document.activeElement;\n // Add escape key handler\n if (!this.noEscapeDismiss && !this.persistent) {\n this.boundHandleEscape = (e) => {\n if (e.key === 'Escape') {\n e.preventDefault();\n this.hide();\n }\n };\n document.addEventListener('keydown', this.boundHandleEscape);\n }\n // REMOVED: No longer manipulating document.body.style.overflow\n // The drawer is now contained and doesn't need to prevent body scroll\n // Focus management\n if (!this.noFocusTrap) {\n requestAnimationFrame(() => {\n if (this.drawerElement) {\n this.drawerElement.focus({ preventScroll: true });\n }\n });\n }\n // Push content if enabled (still supported for those who need it)\n if (this.pushContent) {\n this.updatePushContent();\n }\n this.dispatchOpenEvent();\n }\n handleClose() {\n // Remove escape key handler\n if (this.boundHandleEscape) {\n document.removeEventListener('keydown', this.boundHandleEscape);\n this.boundHandleEscape = undefined;\n }\n // REMOVED: No longer manipulating document.body.style.overflow\n // Restore focus\n if (this.previousFocus && this.previousFocus.focus) {\n this.previousFocus.focus();\n this.previousFocus = undefined;\n }\n // Reset push content\n if (this.pushContent) {\n this.updatePushContent();\n }\n this.dispatchCloseEvent();\n }\n updatePushContent() {\n if (!this.pushContent)\n return;\n // Apply to body or main content container\n const mainContent = document.querySelector('main') || document.body;\n if (mainContent && mainContent !== document.body) {\n // Set transition first if not already set\n if (!mainContent.style.transition) {\n mainContent.style.transition = 'margin 0.3s cubic-bezier(0.4, 0, 0.2, 1)';\n }\n if (this.open) {\n // Use CSS custom property that's calculated in CSS based on size/position\n const amount = getComputedStyle(this).getPropertyValue('--drawer-push-amount');\n const property = this.position === 'left' || this.position === 'right'\n ? 'marginLeft'\n : 'marginTop';\n mainContent.style[property] = amount || '0px';\n }\n else {\n // Reset margins\n mainContent.style.marginLeft = '';\n mainContent.style.marginTop = '';\n }\n }\n }\n getFocusableElements() {\n if (!this.drawerElement)\n return document.querySelectorAll('none');\n return this.drawerElement.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), ' +\n 'input:not([disabled]), select:not([disabled]), ' +\n '[tabindex]:not([tabindex=\"-1\"])');\n }\n dispatchOpenEvent() {\n // Prevent duplicate events within 100ms\n const now = Date.now();\n if (this._lastEventType === 'open' && (now - this._lastEventTime) < 100) {\n return;\n }\n this._lastEventType = 'open';\n this._lastEventTime = now;\n // Manually dispatch event\n this.dispatchEvent(new CustomEvent('drawer-open', {\n bubbles: true,\n composed: true,\n detail: { drawer: this }\n }));\n }\n dispatchCloseEvent() {\n // Prevent duplicate events within 100ms\n const now = Date.now();\n if (this._lastEventType === 'close' && (now - this._lastEventTime) < 100) {\n return;\n }\n this._lastEventType = 'close';\n this._lastEventTime = now;\n // Manually dispatch event\n this.dispatchEvent(new CustomEvent('drawer-close', {\n bubbles: true,\n composed: true,\n detail: { drawer: this }\n }));\n }\n cleanup() {\n if (this.boundHandleEscape) {\n document.removeEventListener('keydown', this.boundHandleEscape);\n }\n this.teardownBreakpointListener();\n }\n // Public API\n show() {\n this.open = true;\n }\n hide() {\n this.open = false;\n }\n toggle() {\n this.open = !this.open;\n }\n });\n return _classThis;\n})();\n\nexport { SniceDrawer };\n//# sourceMappingURL=snice-drawer.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","SniceDrawer","_classDescriptor","_classThis","_open_decorators","_position_decorators","_size_decorators","_inline_decorators","_breakpoint_decorators","_noBackdrop_decorators","_noBackdropDismiss_decorators","_noEscapeDismiss_decorators","_noFocusTrap_decorators","_persistent_decorators","_pushContent_decorators","_contained_decorators","_noHeader_decorators","_noFooter_decorators","_drawerElement_decorators","_backdropElement_decorators","_closeButton_decorators","_focusTrapStart_decorators","_focusTrapEnd_decorators","_render_decorators","_styles_decorators","_init_decorators","_handleBreakpointPropChange_decorators","_handleOpenChange_decorators","_handleBackdropClick_decorators","_handleCloseClick_decorators","_handleFocusTrapStart_decorators","_handleFocusTrapEnd_decorators","_cleanup_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_open_initializers","_open_extraInitializers","_position_initializers","_position_extraInitializers","_size_initializers","_size_extraInitializers","_inline_initializers","_inline_extraInitializers","_breakpoint_initializers","_breakpoint_extraInitializers","_noBackdrop_initializers","_noBackdrop_extraInitializers","_noBackdropDismiss_initializers","_noBackdropDismiss_extraInitializers","_noEscapeDismiss_initializers","_noEscapeDismiss_extraInitializers","_noFocusTrap_initializers","_noFocusTrap_extraInitializers","_persistent_initializers","_persistent_extraInitializers","_pushContent_initializers","_pushContent_extraInitializers","_contained_initializers","_contained_extraInitializers","_noHeader_initializers","_noHeader_extraInitializers","_noFooter_initializers","_noFooter_extraInitializers","_drawerElement_initializers","_drawerElement_extraInitializers","_backdropElement_initializers","_backdropElement_extraInitializers","_closeButton_initializers","_closeButton_extraInitializers","_focusTrapStart_initializers","_focusTrapStart_extraInitializers","_focusTrapEnd_initializers","_focusTrapEnd_extraInitializers","this","constructor","super","open","position","size","inline","breakpoint","noBackdrop","noBackdropDismiss","noEscapeDismiss","noFocusTrap","persistent","pushContent","contained","noHeader","noFooter","drawerElement","backdropElement","closeButton","focusTrapStart","focusTrapEnd","previousFocus","_isHandlingOpenChange","_lastEventType","_lastEventTime","_metadata","Symbol","metadata","create","property","type","Boolean","Number","attribute","query","render","styles","ready","watch","on","dispose","static","private","has","obj","handleBreakpointPropChange","handleOpenChange","handleBackdropClick","handleCloseClick","handleFocusTrapStart","handleFocusTrapEnd","cleanup","enumerable","configurable","writable","html","css","hasAttribute","setAttribute","String","setupBreakpointListener","isInlineActive","mainContent","document","querySelector","body","style","transition","handleOpen","teardownBreakpointListener","breakpointQuery","window","matchMedia","boundBreakpointHandler","e","handleBreakpointChange","matches","addEventListener","removeEventListener","undefined","wasInline","teardownOverlayBehaviors","removeAttribute","boundHandleEscape","marginLeft","marginTop","handleClose","stopPropagation","hide","focusableElements","getFocusableElements","focus","activeElement","preventDefault","requestAnimationFrame","preventScroll","updatePushContent","dispatchOpenEvent","dispatchCloseEvent","amount","getComputedStyle","getPropertyValue","querySelectorAll","now","Date","dispatchEvent","CustomEvent","bubbles","composed","detail","drawer","show","toggle"],"mappings":";;;;;;6JAiEO,SAASA,EAAaC,EAAMC,EAAcC,EAAYC,EAAWC,EAAcC,GACpF,SAASC,EAAOC,GAAK,QAAU,IAANA,GAA6B,mBAANA,EAAkB,MAAM,IAAIC,UAAU,qBAAsB,OAAOD,CAAG,CAKtH,IAJA,IAGIE,EAHAC,EAAOP,EAAUO,KAAMC,EAAe,WAATD,EAAoB,MAAiB,WAATA,EAAoB,MAAQ,QACrFE,GAAUX,GAAgBD,EAAOG,EAAkB,OAAIH,EAAOA,EAAKa,UAAY,KAC/EC,EAAab,IAAiBW,EAASG,OAAOC,yBAAyBJ,EAAQT,EAAUc,MAAQ,IAC9FC,GAAO,EACLC,EAAIjB,EAAWkB,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC7C,IAAIE,EAAU,CAAA,EACd,IAAK,IAAIC,KAAKnB,EAAWkB,EAAQC,GAAW,WAANA,EAAiB,CAAA,EAAKnB,EAAUmB,GACtE,IAAK,IAAIA,KAAKnB,EAAUoB,OAAQF,EAAQE,OAAOD,GAAKnB,EAAUoB,OAAOD,GACrED,EAAQG,eAAiB,SAAUjB,GAAK,GAAIW,EAAM,MAAM,IAAIV,UAAU,0DAA2DH,EAAkBoB,KAAKnB,EAAOC,GAA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AxBxG,KAAKwB,gBAA+BgF,EAAMxG,KAAKyB,eAAkB,MAGrEzB,KAAKwB,eAAiB,QACtBxB,KAAKyB,eAAiB+E,EAEtBxG,KAAK0G,cAAc,IAAIC,YAAY,eAAgB,CAC/CC,SAAS,EACTC,UAAU,EACVC,OAAQ,CAAEC,OAAQ/G,SAE1B,CACA,OAAAoD,GACQpD,KAAKoF,mBACLpB,SAASe,oBAAoB,UAAW/E,KAAKoF,mBAEjDpF,KAAKsE,4BACT,CAEA,IAAA0C,GACIhH,KAAKG,MAAO,CAChB,CACA,IAAAsF,GACIzF,KAAKG,MAAO,CAChB,CACA,MAAA8G,GACIjH,KAAKG,MAAQH,KAAKG,IACtB,GAEG7E,CACV,EA5diB","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.20.1
2
+ * snice v4.21.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.20.1
2
+ * snice v4.21.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * snice v4.20.1
2
+ * snice v4.21.0
3
3
  * Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
4
4
  * (c) 2024
5
5
  * Released under the MIT License.