snice 4.24.0 → 4.25.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.
- package/README.md +4 -39
- package/bin/mcp-server.js +32 -0
- package/dist/cdn/accordion/snice-accordion.js +2 -2
- package/dist/cdn/accordion/snice-accordion.min.js +2 -2
- package/dist/cdn/activity-feed/snice-activity-feed.js +3 -3
- package/dist/cdn/activity-feed/snice-activity-feed.js.map +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.min.js +3 -3
- package/dist/cdn/activity-feed/snice-activity-feed.min.js.map +1 -1
- package/dist/cdn/alert/snice-alert.js +8 -4
- package/dist/cdn/alert/snice-alert.js.map +1 -1
- package/dist/cdn/alert/snice-alert.min.js +2 -2
- package/dist/cdn/alert/snice-alert.min.js.map +1 -1
- package/dist/cdn/app-tiles/snice-app-tiles.js +2 -2
- package/dist/cdn/app-tiles/snice-app-tiles.min.js +2 -2
- package/dist/cdn/approval-flow/snice-approval-flow.js +3 -3
- package/dist/cdn/approval-flow/snice-approval-flow.js.map +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.min.js +3 -3
- package/dist/cdn/approval-flow/snice-approval-flow.min.js.map +1 -1
- package/dist/cdn/audio-recorder/README.md +1 -1
- package/dist/cdn/audio-recorder/snice-audio-recorder.js +2 -2
- package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +2 -2
- package/dist/cdn/availability/snice-availability.js +2 -2
- package/dist/cdn/availability/snice-availability.min.js +2 -2
- package/dist/cdn/avatar/snice-avatar.js +2 -2
- package/dist/cdn/avatar/snice-avatar.min.js +2 -2
- package/dist/cdn/avatar-group/snice-avatar-group.js +3 -3
- package/dist/cdn/avatar-group/snice-avatar-group.js.map +1 -1
- package/dist/cdn/avatar-group/snice-avatar-group.min.js +16 -16
- package/dist/cdn/avatar-group/snice-avatar-group.min.js.map +1 -1
- package/dist/cdn/badge/snice-badge.js +2 -2
- package/dist/cdn/badge/snice-badge.min.js +2 -2
- package/dist/cdn/banner/snice-banner.js +9 -5
- package/dist/cdn/banner/snice-banner.js.map +1 -1
- package/dist/cdn/banner/snice-banner.min.js +3 -3
- package/dist/cdn/banner/snice-banner.min.js.map +1 -1
- package/dist/cdn/book/snice-book.js +2 -2
- package/dist/cdn/book/snice-book.min.js +2 -2
- package/dist/cdn/booking/snice-booking.js +2 -2
- package/dist/cdn/booking/snice-booking.min.js +2 -2
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +8 -4
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js.map +1 -1
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +2 -2
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js.map +1 -1
- package/dist/cdn/button/snice-button.js +8 -4
- package/dist/cdn/button/snice-button.js.map +1 -1
- package/dist/cdn/button/snice-button.min.js +2 -2
- package/dist/cdn/button/snice-button.min.js.map +1 -1
- package/dist/cdn/calendar/snice-calendar.js +2 -2
- package/dist/cdn/calendar/snice-calendar.min.js +2 -2
- package/dist/cdn/camera/snice-camera.js +2 -2
- package/dist/cdn/camera/snice-camera.min.js +2 -2
- package/dist/cdn/camera-annotate/snice-camera-annotate.js +2 -2
- package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +2 -2
- package/dist/cdn/candlestick/snice-candlestick.js +2 -2
- package/dist/cdn/candlestick/snice-candlestick.min.js +2 -2
- package/dist/cdn/card/README.md +1 -1
- package/dist/cdn/card/snice-card.js +2 -2
- package/dist/cdn/card/snice-card.min.js +2 -2
- package/dist/cdn/carousel/snice-carousel.js +2 -2
- package/dist/cdn/carousel/snice-carousel.min.js +2 -2
- package/dist/cdn/cart/snice-cart.js +3 -3
- package/dist/cdn/cart/snice-cart.js.map +1 -1
- package/dist/cdn/cart/snice-cart.min.js +3 -3
- package/dist/cdn/cart/snice-cart.min.js.map +1 -1
- package/dist/cdn/chart/snice-chart.js +2 -2
- package/dist/cdn/chart/snice-chart.min.js +2 -2
- package/dist/cdn/chat/snice-chat.js +9 -5
- package/dist/cdn/chat/snice-chat.js.map +1 -1
- package/dist/cdn/chat/snice-chat.min.js +3 -3
- package/dist/cdn/chat/snice-chat.min.js.map +1 -1
- package/dist/cdn/checkbox/snice-checkbox.js +2 -2
- package/dist/cdn/checkbox/snice-checkbox.min.js +2 -2
- package/dist/cdn/chip/README.md +1 -1
- package/dist/cdn/chip/snice-chip.js +8 -4
- package/dist/cdn/chip/snice-chip.js.map +1 -1
- package/dist/cdn/chip/snice-chip.min.js +2 -2
- package/dist/cdn/chip/snice-chip.min.js.map +1 -1
- package/dist/cdn/code-block/snice-code-block.js +2 -2
- package/dist/cdn/code-block/snice-code-block.min.js +2 -2
- package/dist/cdn/color-display/snice-color-display.js +3 -3
- package/dist/cdn/color-display/snice-color-display.js.map +1 -1
- package/dist/cdn/color-display/snice-color-display.min.js +4 -4
- package/dist/cdn/color-display/snice-color-display.min.js.map +1 -1
- package/dist/cdn/color-picker/snice-color-picker.js +2 -2
- package/dist/cdn/color-picker/snice-color-picker.min.js +2 -2
- package/dist/cdn/command-palette/README.md +1 -1
- package/dist/cdn/command-palette/snice-command-palette.js +2 -2
- package/dist/cdn/command-palette/snice-command-palette.min.js +2 -2
- package/dist/cdn/comments/snice-comments.js +3 -3
- package/dist/cdn/comments/snice-comments.js.map +1 -1
- package/dist/cdn/comments/snice-comments.min.js +3 -3
- package/dist/cdn/comments/snice-comments.min.js.map +1 -1
- package/dist/cdn/countdown/README.md +1 -1
- package/dist/cdn/countdown/snice-countdown.js +2 -2
- package/dist/cdn/countdown/snice-countdown.min.js +2 -2
- package/dist/cdn/cropper/snice-cropper.js +2 -2
- package/dist/cdn/cropper/snice-cropper.min.js +2 -2
- package/dist/cdn/data-card/snice-data-card.js +3 -3
- package/dist/cdn/data-card/snice-data-card.js.map +1 -1
- package/dist/cdn/data-card/snice-data-card.min.js +3 -3
- package/dist/cdn/data-card/snice-data-card.min.js.map +1 -1
- package/dist/cdn/date-picker/snice-date-picker.js +2 -2
- package/dist/cdn/date-picker/snice-date-picker.min.js +2 -2
- package/dist/cdn/date-time-picker/README.md +2 -2
- package/dist/cdn/date-time-picker/snice-date-time-picker.js +2 -2
- package/dist/cdn/date-time-picker/snice-date-time-picker.min.js +2 -2
- package/dist/cdn/diff/snice-diff.js +2 -2
- package/dist/cdn/diff/snice-diff.min.js +2 -2
- package/dist/cdn/divider/snice-divider.js +2 -2
- package/dist/cdn/divider/snice-divider.min.js +2 -2
- package/dist/cdn/doc/snice-doc.js +2 -2
- package/dist/cdn/doc/snice-doc.min.js +2 -2
- package/dist/cdn/draw/snice-draw.js +2 -2
- package/dist/cdn/draw/snice-draw.min.js +2 -2
- package/dist/cdn/drawer/README.md +1 -1
- package/dist/cdn/drawer/snice-drawer.js +12 -6
- package/dist/cdn/drawer/snice-drawer.js.map +1 -1
- package/dist/cdn/drawer/snice-drawer.min.js +4 -4
- package/dist/cdn/drawer/snice-drawer.min.js.map +1 -1
- package/dist/cdn/empty-state/snice-empty-state.js +9 -5
- package/dist/cdn/empty-state/snice-empty-state.js.map +1 -1
- package/dist/cdn/empty-state/snice-empty-state.min.js +3 -3
- package/dist/cdn/empty-state/snice-empty-state.min.js.map +1 -1
- package/dist/cdn/estimate/snice-estimate.js +3 -3
- package/dist/cdn/estimate/snice-estimate.js.map +1 -1
- package/dist/cdn/estimate/snice-estimate.min.js +3 -3
- package/dist/cdn/estimate/snice-estimate.min.js.map +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.js +2 -2
- package/dist/cdn/file-gallery/snice-file-gallery.min.js +2 -2
- package/dist/cdn/file-upload/snice-file-upload.js +3 -3
- package/dist/cdn/file-upload/snice-file-upload.js.map +1 -1
- package/dist/cdn/file-upload/snice-file-upload.min.js +3 -3
- package/dist/cdn/file-upload/snice-file-upload.min.js.map +1 -1
- package/dist/cdn/flip-card/snice-flip-card.js +2 -2
- package/dist/cdn/flip-card/snice-flip-card.min.js +2 -2
- package/dist/cdn/flow/README.md +1 -1
- package/dist/cdn/flow/snice-flow.js +2 -2
- package/dist/cdn/flow/snice-flow.min.js +2 -2
- package/dist/cdn/form-layout/snice-form-layout.js +3 -3
- package/dist/cdn/form-layout/snice-form-layout.js.map +1 -1
- package/dist/cdn/form-layout/snice-form-layout.min.js +3 -3
- package/dist/cdn/form-layout/snice-form-layout.min.js.map +1 -1
- package/dist/cdn/funnel/README.md +2 -2
- package/dist/cdn/funnel/snice-funnel.js +2 -2
- package/dist/cdn/funnel/snice-funnel.min.js +2 -2
- package/dist/cdn/gantt/README.md +1 -1
- package/dist/cdn/gantt/snice-gantt.js +2 -2
- package/dist/cdn/gantt/snice-gantt.min.js +2 -2
- package/dist/cdn/gauge/snice-gauge.js +2 -2
- package/dist/cdn/gauge/snice-gauge.min.js +2 -2
- package/dist/cdn/heatmap/README.md +1 -1
- package/dist/cdn/heatmap/snice-heatmap.js +2 -2
- package/dist/cdn/heatmap/snice-heatmap.min.js +2 -2
- package/dist/cdn/image/snice-image.js +3 -3
- package/dist/cdn/image/snice-image.js.map +1 -1
- package/dist/cdn/image/snice-image.min.js +3 -3
- package/dist/cdn/image/snice-image.min.js.map +1 -1
- package/dist/cdn/input/README.md +1 -1
- package/dist/cdn/input/snice-input.js +9 -5
- package/dist/cdn/input/snice-input.js.map +1 -1
- package/dist/cdn/input/snice-input.min.js +3 -3
- package/dist/cdn/input/snice-input.min.js.map +1 -1
- package/dist/cdn/invoice/snice-invoice.js +3 -3
- package/dist/cdn/invoice/snice-invoice.js.map +1 -1
- package/dist/cdn/invoice/snice-invoice.min.js +4 -4
- package/dist/cdn/invoice/snice-invoice.min.js.map +1 -1
- package/dist/cdn/kanban/snice-kanban.js +2 -2
- package/dist/cdn/kanban/snice-kanban.min.js +2 -2
- package/dist/cdn/key-value/snice-key-value.js +3 -3
- package/dist/cdn/key-value/snice-key-value.js.map +1 -1
- package/dist/cdn/key-value/snice-key-value.min.js +3 -3
- package/dist/cdn/key-value/snice-key-value.min.js.map +1 -1
- package/dist/cdn/kpi/snice-kpi.js +3 -3
- package/dist/cdn/kpi/snice-kpi.js.map +1 -1
- package/dist/cdn/kpi/snice-kpi.min.js +3 -3
- package/dist/cdn/kpi/snice-kpi.min.js.map +1 -1
- package/dist/cdn/layout/snice-layout.js +3 -3
- package/dist/cdn/layout/snice-layout.js.map +1 -1
- package/dist/cdn/layout/snice-layout.min.js +3 -3
- package/dist/cdn/layout/snice-layout.min.js.map +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.js +3 -3
- package/dist/cdn/leaderboard/snice-leaderboard.js.map +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.min.js +3 -3
- package/dist/cdn/leaderboard/snice-leaderboard.min.js.map +1 -1
- package/dist/cdn/link/snice-link.js +3 -3
- package/dist/cdn/link/snice-link.js.map +1 -1
- package/dist/cdn/link/snice-link.min.js +3 -3
- package/dist/cdn/link/snice-link.min.js.map +1 -1
- package/dist/cdn/link-preview/snice-link-preview.js +3 -3
- package/dist/cdn/link-preview/snice-link-preview.js.map +1 -1
- package/dist/cdn/link-preview/snice-link-preview.min.js +3 -3
- package/dist/cdn/link-preview/snice-link-preview.min.js.map +1 -1
- package/dist/cdn/list/snice-list.js +10 -6
- package/dist/cdn/list/snice-list.js.map +1 -1
- package/dist/cdn/list/snice-list.min.js +4 -4
- package/dist/cdn/list/snice-list.min.js.map +1 -1
- package/dist/cdn/location/snice-location.js +8 -4
- package/dist/cdn/location/snice-location.js.map +1 -1
- package/dist/cdn/location/snice-location.min.js +2 -2
- package/dist/cdn/location/snice-location.min.js.map +1 -1
- package/dist/cdn/login/snice-login.js +8 -4
- package/dist/cdn/login/snice-login.js.map +1 -1
- package/dist/cdn/login/snice-login.min.js +2 -2
- package/dist/cdn/login/snice-login.min.js.map +1 -1
- package/dist/cdn/map/README.md +1 -1
- package/dist/cdn/map/snice-map.js +2 -2
- package/dist/cdn/map/snice-map.min.js +2 -2
- package/dist/cdn/markdown/snice-markdown.js +2 -2
- package/dist/cdn/markdown/snice-markdown.min.js +2 -2
- package/dist/cdn/masonry/snice-masonry.js +2 -2
- package/dist/cdn/masonry/snice-masonry.min.js +2 -2
- package/dist/cdn/menu/snice-menu.js +2 -2
- package/dist/cdn/menu/snice-menu.min.js +2 -2
- package/dist/cdn/message-strip/snice-message-strip.js +8 -4
- package/dist/cdn/message-strip/snice-message-strip.js.map +1 -1
- package/dist/cdn/message-strip/snice-message-strip.min.js +2 -2
- package/dist/cdn/message-strip/snice-message-strip.min.js.map +1 -1
- package/dist/cdn/metric-table/snice-metric-table.js +3 -3
- package/dist/cdn/metric-table/snice-metric-table.js.map +1 -1
- package/dist/cdn/metric-table/snice-metric-table.min.js +8 -8
- package/dist/cdn/metric-table/snice-metric-table.min.js.map +1 -1
- package/dist/cdn/modal/README.md +1 -1
- package/dist/cdn/modal/snice-modal.js +2 -2
- package/dist/cdn/modal/snice-modal.min.js +2 -2
- package/dist/cdn/music-player/snice-music-player.js +2 -2
- package/dist/cdn/music-player/snice-music-player.min.js +2 -2
- package/dist/cdn/nav/snice-nav.js +3 -3
- package/dist/cdn/nav/snice-nav.js.map +1 -1
- package/dist/cdn/nav/snice-nav.min.js +3 -3
- package/dist/cdn/nav/snice-nav.min.js.map +1 -1
- package/dist/cdn/network-graph/snice-network-graph.js +2 -2
- package/dist/cdn/network-graph/snice-network-graph.min.js +2 -2
- package/dist/cdn/notification-center/snice-notification-center.js +9 -5
- package/dist/cdn/notification-center/snice-notification-center.js.map +1 -1
- package/dist/cdn/notification-center/snice-notification-center.min.js +3 -3
- package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.js +3 -3
- package/dist/cdn/order-tracker/snice-order-tracker.js.map +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.min.js +3 -3
- package/dist/cdn/order-tracker/snice-order-tracker.min.js.map +1 -1
- package/dist/cdn/org-chart/README.md +1 -1
- package/dist/cdn/org-chart/snice-org-chart.js +2 -2
- package/dist/cdn/org-chart/snice-org-chart.min.js +2 -2
- package/dist/cdn/pagination/snice-pagination.js +2 -2
- package/dist/cdn/pagination/snice-pagination.min.js +2 -2
- package/dist/cdn/paint/snice-paint.js +2 -2
- package/dist/cdn/paint/snice-paint.min.js +2 -2
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +2 -2
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +2 -2
- package/dist/cdn/permission-matrix/snice-permission-matrix.js +3 -3
- package/dist/cdn/permission-matrix/snice-permission-matrix.js.map +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.min.js +12 -12
- package/dist/cdn/permission-matrix/snice-permission-matrix.min.js.map +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.js +2 -2
- package/dist/cdn/podcast-player/snice-podcast-player.min.js +2 -2
- package/dist/cdn/pricing-table/README.md +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.js +3 -3
- package/dist/cdn/pricing-table/snice-pricing-table.js.map +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.min.js +3 -3
- package/dist/cdn/pricing-table/snice-pricing-table.min.js.map +1 -1
- package/dist/cdn/product-card/snice-product-card.js +3 -3
- package/dist/cdn/product-card/snice-product-card.js.map +1 -1
- package/dist/cdn/product-card/snice-product-card.min.js +3 -3
- package/dist/cdn/product-card/snice-product-card.min.js.map +1 -1
- package/dist/cdn/progress/README.md +1 -1
- package/dist/cdn/progress/snice-progress.js +2 -2
- package/dist/cdn/progress/snice-progress.min.js +2 -2
- package/dist/cdn/progress-ring/snice-progress-ring.js +2 -2
- package/dist/cdn/progress-ring/snice-progress-ring.min.js +2 -2
- package/dist/cdn/qr-code/snice-qr-code.js +2 -2
- package/dist/cdn/qr-code/snice-qr-code.min.js +2 -2
- package/dist/cdn/qr-reader/README.md +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.js +2 -2
- package/dist/cdn/qr-reader/snice-qr-reader.min.js +2 -2
- package/dist/cdn/radio/snice-radio.js +3 -3
- package/dist/cdn/radio/snice-radio.js.map +1 -1
- package/dist/cdn/radio/snice-radio.min.js +3 -3
- package/dist/cdn/radio/snice-radio.min.js.map +1 -1
- package/dist/cdn/range-slider/snice-range-slider.js +2 -2
- package/dist/cdn/range-slider/snice-range-slider.min.js +2 -2
- package/dist/cdn/rating/snice-rating.js +2 -2
- package/dist/cdn/rating/snice-rating.min.js +2 -2
- package/dist/cdn/receipt/snice-receipt.js +3 -3
- package/dist/cdn/receipt/snice-receipt.js.map +1 -1
- package/dist/cdn/receipt/snice-receipt.min.js +7 -7
- package/dist/cdn/receipt/snice-receipt.min.js.map +1 -1
- package/dist/cdn/recipe/snice-recipe.js +3 -3
- package/dist/cdn/recipe/snice-recipe.js.map +1 -1
- package/dist/cdn/recipe/snice-recipe.min.js +3 -3
- package/dist/cdn/recipe/snice-recipe.min.js.map +1 -1
- package/dist/cdn/runtime/README.md +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.js +8 -8
- package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.min.js +8 -8
- package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.js +8 -8
- package/dist/cdn/runtime/snice-runtime.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.min.js +8 -8
- package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
- package/dist/cdn/sankey/README.md +1 -1
- package/dist/cdn/sankey/snice-sankey.js +2 -2
- package/dist/cdn/sankey/snice-sankey.min.js +2 -2
- package/dist/cdn/segmented-control/snice-segmented-control.js +2 -2
- package/dist/cdn/segmented-control/snice-segmented-control.min.js +2 -2
- package/dist/cdn/select/snice-select.js +2 -2
- package/dist/cdn/select/snice-select.min.js +2 -2
- package/dist/cdn/skeleton/snice-skeleton.js +2 -2
- package/dist/cdn/skeleton/snice-skeleton.min.js +2 -2
- package/dist/cdn/slider/README.md +1 -1
- package/dist/cdn/slider/snice-slider.js +2 -2
- package/dist/cdn/slider/snice-slider.min.js +2 -2
- package/dist/cdn/sortable/README.md +1 -1
- package/dist/cdn/sortable/snice-sortable.js +2 -2
- package/dist/cdn/sortable/snice-sortable.min.js +2 -2
- package/dist/cdn/sparkline/README.md +1 -1
- package/dist/cdn/sparkline/snice-sparkline.js +2 -2
- package/dist/cdn/sparkline/snice-sparkline.min.js +2 -2
- package/dist/cdn/spinner/README.md +2 -2
- package/dist/cdn/spinner/snice-spinner.js +2 -2
- package/dist/cdn/spinner/snice-spinner.min.js +2 -2
- package/dist/cdn/split-button/snice-split-button.js +2 -2
- package/dist/cdn/split-button/snice-split-button.min.js +2 -2
- package/dist/cdn/split-pane/snice-split-pane.js +2 -2
- package/dist/cdn/split-pane/snice-split-pane.min.js +2 -2
- package/dist/cdn/spotlight/snice-spotlight.js +2 -2
- package/dist/cdn/spotlight/snice-spotlight.min.js +2 -2
- package/dist/cdn/spreadsheet/README.md +2 -2
- package/dist/cdn/spreadsheet/snice-spreadsheet.js +2 -2
- package/dist/cdn/spreadsheet/snice-spreadsheet.min.js +2 -2
- package/dist/cdn/stat-group/snice-stat-group.js +3 -3
- package/dist/cdn/stat-group/snice-stat-group.js.map +1 -1
- package/dist/cdn/stat-group/snice-stat-group.min.js +4 -4
- package/dist/cdn/stat-group/snice-stat-group.min.js.map +1 -1
- package/dist/cdn/step-input/snice-step-input.js +3 -3
- package/dist/cdn/step-input/snice-step-input.js.map +1 -1
- package/dist/cdn/step-input/snice-step-input.min.js +3 -3
- package/dist/cdn/step-input/snice-step-input.min.js.map +1 -1
- package/dist/cdn/stepper/README.md +1 -1
- package/dist/cdn/stepper/snice-stepper.js +3 -3
- package/dist/cdn/stepper/snice-stepper.js.map +1 -1
- package/dist/cdn/stepper/snice-stepper.min.js +4 -4
- package/dist/cdn/stepper/snice-stepper.min.js.map +1 -1
- package/dist/cdn/switch/snice-switch.js +2 -2
- package/dist/cdn/switch/snice-switch.min.js +2 -2
- package/dist/cdn/table/README.md +1 -1
- package/dist/cdn/table/snice-table.js +9 -5
- package/dist/cdn/table/snice-table.js.map +1 -1
- package/dist/cdn/table/snice-table.min.js +3 -3
- package/dist/cdn/table/snice-table.min.js.map +1 -1
- package/dist/cdn/tabs/README.md +1 -1
- package/dist/cdn/tabs/snice-tabs.js +2 -2
- package/dist/cdn/tabs/snice-tabs.min.js +2 -2
- package/dist/cdn/tag/snice-tag.js +2 -2
- package/dist/cdn/tag/snice-tag.min.js +2 -2
- package/dist/cdn/tag-input/snice-tag-input.js +3 -3
- package/dist/cdn/tag-input/snice-tag-input.js.map +1 -1
- package/dist/cdn/tag-input/snice-tag-input.min.js +11 -11
- package/dist/cdn/tag-input/snice-tag-input.min.js.map +1 -1
- package/dist/cdn/terminal/snice-terminal.js +2 -2
- package/dist/cdn/terminal/snice-terminal.min.js +2 -2
- package/dist/cdn/testimonial/snice-testimonial.js +2 -2
- package/dist/cdn/testimonial/snice-testimonial.min.js +2 -2
- package/dist/cdn/textarea/README.md +1 -1
- package/dist/cdn/textarea/snice-textarea.js +2 -2
- package/dist/cdn/textarea/snice-textarea.min.js +2 -2
- package/dist/cdn/time-picker/snice-time-picker.js +2 -2
- package/dist/cdn/time-picker/snice-time-picker.min.js +2 -2
- package/dist/cdn/time-range-picker/snice-time-range-picker.js +3 -3
- package/dist/cdn/time-range-picker/snice-time-range-picker.js.map +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +3 -3
- package/dist/cdn/time-range-picker/snice-time-range-picker.min.js.map +1 -1
- package/dist/cdn/timeline/snice-timeline.js +3 -3
- package/dist/cdn/timeline/snice-timeline.js.map +1 -1
- package/dist/cdn/timeline/snice-timeline.min.js +4 -4
- package/dist/cdn/timeline/snice-timeline.min.js.map +1 -1
- package/dist/cdn/timer/snice-timer.js +3 -3
- package/dist/cdn/timer/snice-timer.js.map +1 -1
- package/dist/cdn/timer/snice-timer.min.js +3 -3
- package/dist/cdn/timer/snice-timer.min.js.map +1 -1
- package/dist/cdn/toast/snice-toast.js +2 -2
- package/dist/cdn/toast/snice-toast.min.js +2 -2
- package/dist/cdn/tooltip/snice-tooltip.js +2 -2
- package/dist/cdn/tooltip/snice-tooltip.min.js +2 -2
- package/dist/cdn/tree/README.md +2 -2
- package/dist/cdn/tree/snice-tree.js +2 -2
- package/dist/cdn/tree/snice-tree.min.js +2 -2
- package/dist/cdn/treemap/snice-treemap.js +2 -2
- package/dist/cdn/treemap/snice-treemap.min.js +2 -2
- package/dist/cdn/user-card/snice-user-card.js +3 -3
- package/dist/cdn/user-card/snice-user-card.js.map +1 -1
- package/dist/cdn/user-card/snice-user-card.min.js +7 -7
- package/dist/cdn/user-card/snice-user-card.min.js.map +1 -1
- package/dist/cdn/video-player/snice-video-player.js +2 -2
- package/dist/cdn/video-player/snice-video-player.min.js +2 -2
- package/dist/cdn/virtual-scroller/README.md +1 -1
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +2 -2
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +2 -2
- package/dist/cdn/waterfall/README.md +1 -1
- package/dist/cdn/waterfall/snice-waterfall.js +2 -2
- package/dist/cdn/waterfall/snice-waterfall.min.js +2 -2
- package/dist/cdn/weather/snice-weather.js +2 -2
- package/dist/cdn/weather/snice-weather.min.js +2 -2
- package/dist/cdn/work-order/snice-work-order.js +3 -3
- package/dist/cdn/work-order/snice-work-order.js.map +1 -1
- package/dist/cdn/work-order/snice-work-order.min.js +3 -3
- package/dist/cdn/work-order/snice-work-order.min.js.map +1 -1
- package/dist/components/activity-feed/snice-activity-feed.js +1 -1
- package/dist/components/activity-feed/snice-activity-feed.js.map +1 -1
- package/dist/components/approval-flow/snice-approval-flow.js +1 -1
- package/dist/components/approval-flow/snice-approval-flow.js.map +1 -1
- package/dist/components/avatar-group/snice-avatar-group.js +1 -1
- package/dist/components/avatar-group/snice-avatar-group.js.map +1 -1
- package/dist/components/banner/snice-banner.js +1 -1
- package/dist/components/banner/snice-banner.js.map +1 -1
- package/dist/components/cart/snice-cart.js +1 -1
- package/dist/components/cart/snice-cart.js.map +1 -1
- package/dist/components/color-display/snice-color-display.js +1 -1
- package/dist/components/color-display/snice-color-display.js.map +1 -1
- package/dist/components/comments/snice-comments.js +1 -1
- package/dist/components/comments/snice-comments.js.map +1 -1
- package/dist/components/data-card/snice-data-card.js +1 -1
- package/dist/components/data-card/snice-data-card.js.map +1 -1
- package/dist/components/drawer/snice-drawer.js +10 -4
- package/dist/components/drawer/snice-drawer.js.map +1 -1
- package/dist/components/empty-state/snice-empty-state.js +1 -1
- package/dist/components/empty-state/snice-empty-state.js.map +1 -1
- package/dist/components/estimate/snice-estimate.js +1 -1
- package/dist/components/estimate/snice-estimate.js.map +1 -1
- package/dist/components/file-upload/snice-file-upload.js +1 -1
- package/dist/components/file-upload/snice-file-upload.js.map +1 -1
- package/dist/components/form-layout/snice-form-layout.js +1 -1
- package/dist/components/form-layout/snice-form-layout.js.map +1 -1
- package/dist/components/image/snice-image.js +1 -1
- package/dist/components/image/snice-image.js.map +1 -1
- package/dist/components/input/snice-input.js +1 -1
- package/dist/components/input/snice-input.js.map +1 -1
- package/dist/components/invoice/snice-invoice.js +1 -1
- package/dist/components/invoice/snice-invoice.js.map +1 -1
- package/dist/components/key-value/snice-key-value.js +1 -1
- package/dist/components/key-value/snice-key-value.js.map +1 -1
- package/dist/components/kpi/snice-kpi.js +1 -1
- package/dist/components/kpi/snice-kpi.js.map +1 -1
- package/dist/components/leaderboard/snice-leaderboard.js +1 -1
- package/dist/components/leaderboard/snice-leaderboard.js.map +1 -1
- package/dist/components/link/snice-link.js +1 -1
- package/dist/components/link/snice-link.js.map +1 -1
- package/dist/components/link-preview/snice-link-preview.js +1 -1
- package/dist/components/link-preview/snice-link-preview.js.map +1 -1
- package/dist/components/list/snice-list-item.js +1 -1
- package/dist/components/list/snice-list-item.js.map +1 -1
- package/dist/components/metric-table/snice-metric-table.js +1 -1
- package/dist/components/metric-table/snice-metric-table.js.map +1 -1
- package/dist/components/nav/snice-nav.js +1 -1
- package/dist/components/nav/snice-nav.js.map +1 -1
- package/dist/components/order-tracker/snice-order-tracker.js +1 -1
- package/dist/components/order-tracker/snice-order-tracker.js.map +1 -1
- package/dist/components/permission-matrix/snice-permission-matrix.js +1 -1
- package/dist/components/permission-matrix/snice-permission-matrix.js.map +1 -1
- package/dist/components/pricing-table/snice-pricing-table.js +1 -1
- package/dist/components/pricing-table/snice-pricing-table.js.map +1 -1
- package/dist/components/product-card/snice-product-card.js +1 -1
- package/dist/components/product-card/snice-product-card.js.map +1 -1
- package/dist/components/radio/snice-radio.js +1 -1
- package/dist/components/radio/snice-radio.js.map +1 -1
- package/dist/components/receipt/snice-receipt.js +1 -1
- package/dist/components/receipt/snice-receipt.js.map +1 -1
- package/dist/components/recipe/snice-recipe.js +1 -1
- package/dist/components/recipe/snice-recipe.js.map +1 -1
- package/dist/components/stat-group/snice-stat-group.js +1 -1
- package/dist/components/stat-group/snice-stat-group.js.map +1 -1
- package/dist/components/step-input/snice-step-input.js +1 -1
- package/dist/components/step-input/snice-step-input.js.map +1 -1
- package/dist/components/stepper/snice-stepper.js +1 -1
- package/dist/components/stepper/snice-stepper.js.map +1 -1
- package/dist/components/tag-input/snice-tag-input.js +1 -1
- package/dist/components/tag-input/snice-tag-input.js.map +1 -1
- package/dist/components/time-range-picker/snice-time-range-picker.js +1 -1
- package/dist/components/time-range-picker/snice-time-range-picker.js.map +1 -1
- package/dist/components/timeline/snice-timeline.js +1 -1
- package/dist/components/timeline/snice-timeline.js.map +1 -1
- package/dist/components/timer/snice-timer.js +1 -1
- package/dist/components/timer/snice-timer.js.map +1 -1
- package/dist/components/user-card/snice-user-card.js +1 -1
- package/dist/components/user-card/snice-user-card.js.map +1 -1
- package/dist/components/utils.d.ts +6 -2
- package/dist/components/utils.js +6 -2
- package/dist/components/utils.js.map +1 -1
- package/dist/components/work-order/snice-work-order.js +1 -1
- package/dist/components/work-order/snice-work-order.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.iife.js +2 -2
- package/dist/symbols.cjs +2 -2
- package/dist/symbols.esm.js +2 -2
- package/dist/transitions.cjs +2 -2
- package/dist/transitions.esm.js +2 -2
- package/docs/ai/components/alert.md +10 -9
- package/docs/ai/components/banner.md +8 -7
- package/docs/ai/components/breadcrumbs.md +4 -3
- package/docs/ai/components/button.md +20 -16
- package/docs/ai/components/chip.md +9 -8
- package/docs/ai/components/empty-state.md +9 -11
- package/docs/ai/components/input.md +16 -18
- package/docs/ai/components/location.md +1 -1
- package/docs/components/alert.md +8 -6
- package/docs/components/breadcrumbs.md +2 -2
- package/docs/components/button.md +58 -33
- package/docs/components/chip.md +8 -6
- package/docs/components/empty-state.md +1 -1
- package/docs/components/input.md +24 -10
- package/docs/components/location.md +1 -1
- package/package.json +4 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v4.
|
|
3
|
-
*
|
|
2
|
+
* snice v4.25.0
|
|
3
|
+
* A decorator-driven web component library with differential rendering, routing, controllers, and 130+ ready-made UI components. Use as much or as little as you want. Zero dependencies, works anywhere.
|
|
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,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
|
|
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,L,D=[t.element("snice-drawer")],_=[],P=HTMLElement,q=[],j=[],I=[],Q=[],X=[],M=[],$=[],Y=[],R=[],N=[],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,R),r(this,N,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"})],L=[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,L,{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,R),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},N,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},D,{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">
|
|
@@ -37,5 +37,5 @@ void 0===globalThis.Snice&&console.warn("[snice] snice-runtime.min.js must be lo
|
|
|
37
37
|
|
|
38
38
|
<span class="focus-trap-end" tabindex="0"></span>
|
|
39
39
|
</div>
|
|
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);
|
|
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;z-index:var(--drawer-z-index);isolation:isolate;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif)}: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}: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:"marginLeft",right:"marginRight",top:"marginTop",bottom:"marginBottom"}[this.position]||"marginLeft";e.style[i]=t||"0px"}else e.style.marginLeft="",e.style.marginRight="",e.style.marginTop="",e.style.marginBottom=""}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);
|
|
41
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))}: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,I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AAxBxG,KAAKwB,gBAA8BgF,EAAMxG,KAAKyB,eAAkB,MAGpEzB,KAAKwB,eAAiB,OACtBxB,KAAKyB,eAAiB+E,EAEtBxG,KAAK0G,cAAc,IAAIC,YAAY,cAAe,CAC9CC,SAAS,EACTC,UAAU,EACVC,OAAQ,CAAEC,OAAQ/G,SAE1B,CACA,kBAAAmG,GAEI,MAAMK,EAAMC,KAAKD,MACW,UAAxBxG,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
|
+
{"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;z-index:var(--drawer-z-index);isolation:isolate;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif)}: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}: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 propertyMap = {\n left: 'marginLeft',\n right: 'marginRight',\n top: 'marginTop',\n bottom: 'marginBottom'\n };\n const property = propertyMap[this.position] || 'marginLeft';\n mainContent.style[property] = amount || '0px';\n }\n else {\n // Reset margins\n mainContent.style.marginLeft = '';\n mainContent.style.marginRight = '';\n mainContent.style.marginTop = '';\n mainContent.style.marginBottom = '';\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","left","right","top","bottom","marginRight","marginBottom","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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