snice 4.9.0 → 4.10.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/adapters/react/app-tiles.d.ts +28 -0
- package/adapters/react/app-tiles.d.ts.map +1 -0
- package/adapters/react/app-tiles.js +24 -0
- package/adapters/react/app-tiles.js.map +1 -0
- package/adapters/react/app-tiles.tsx +36 -0
- package/adapters/react/book.d.ts +28 -0
- package/adapters/react/book.d.ts.map +1 -0
- package/adapters/react/book.js +24 -0
- package/adapters/react/book.js.map +1 -0
- package/adapters/react/book.tsx +36 -0
- package/adapters/react/comments.d.ts +29 -0
- package/adapters/react/comments.d.ts.map +1 -0
- package/adapters/react/comments.js +24 -0
- package/adapters/react/comments.js.map +1 -0
- package/adapters/react/comments.tsx +37 -0
- package/adapters/react/components.d.ts +52 -0
- package/adapters/react/components.d.ts.map +1 -1
- package/adapters/react/components.js +26 -0
- package/adapters/react/components.js.map +1 -1
- package/adapters/react/components.ts +52 -0
- package/adapters/react/countdown.d.ts +31 -0
- package/adapters/react/countdown.d.ts.map +1 -0
- package/adapters/react/countdown.js +24 -0
- package/adapters/react/countdown.js.map +1 -0
- package/adapters/react/countdown.tsx +39 -0
- package/adapters/react/cropper.d.ts +29 -0
- package/adapters/react/cropper.d.ts.map +1 -0
- package/adapters/react/cropper.js +24 -0
- package/adapters/react/cropper.js.map +1 -0
- package/adapters/react/cropper.tsx +37 -0
- package/adapters/react/diff.d.ts +31 -0
- package/adapters/react/diff.d.ts.map +1 -0
- package/adapters/react/diff.js +24 -0
- package/adapters/react/diff.js.map +1 -0
- package/adapters/react/diff.tsx +39 -0
- package/adapters/react/flip-card.d.ts +28 -0
- package/adapters/react/flip-card.d.ts.map +1 -0
- package/adapters/react/flip-card.js +24 -0
- package/adapters/react/flip-card.js.map +1 -0
- package/adapters/react/flip-card.tsx +36 -0
- package/adapters/react/flow.d.ts +32 -0
- package/adapters/react/flow.d.ts.map +1 -0
- package/adapters/react/flow.js +24 -0
- package/adapters/react/flow.js.map +1 -0
- package/adapters/react/flow.tsx +40 -0
- package/adapters/react/gantt.d.ts +27 -0
- package/adapters/react/gantt.d.ts.map +1 -0
- package/adapters/react/gantt.js +24 -0
- package/adapters/react/gantt.js.map +1 -0
- package/adapters/react/gantt.tsx +35 -0
- package/adapters/react/map.d.ts +30 -0
- package/adapters/react/map.d.ts.map +1 -0
- package/adapters/react/map.js +24 -0
- package/adapters/react/map.js.map +1 -0
- package/adapters/react/map.tsx +38 -0
- package/adapters/react/markdown.d.ts +26 -0
- package/adapters/react/markdown.d.ts.map +1 -0
- package/adapters/react/markdown.js +24 -0
- package/adapters/react/markdown.js.map +1 -0
- package/adapters/react/markdown.tsx +34 -0
- package/adapters/react/notification-center.d.ts +26 -0
- package/adapters/react/notification-center.d.ts.map +1 -0
- package/adapters/react/notification-center.js +24 -0
- package/adapters/react/notification-center.js.map +1 -0
- package/adapters/react/notification-center.tsx +34 -0
- package/adapters/react/org-chart.d.ts +28 -0
- package/adapters/react/org-chart.d.ts.map +1 -0
- package/adapters/react/org-chart.js +24 -0
- package/adapters/react/org-chart.js.map +1 -0
- package/adapters/react/org-chart.tsx +36 -0
- package/adapters/react/pdf-viewer.d.ts +28 -0
- package/adapters/react/pdf-viewer.d.ts.map +1 -0
- package/adapters/react/pdf-viewer.js +24 -0
- package/adapters/react/pdf-viewer.js.map +1 -0
- package/adapters/react/pdf-viewer.tsx +36 -0
- package/adapters/react/podcast-player.d.ts +40 -0
- package/adapters/react/podcast-player.d.ts.map +1 -0
- package/adapters/react/podcast-player.js +24 -0
- package/adapters/react/podcast-player.js.map +1 -0
- package/adapters/react/podcast-player.tsx +48 -0
- package/adapters/react/pricing-table.d.ts +27 -0
- package/adapters/react/pricing-table.d.ts.map +1 -0
- package/adapters/react/pricing-table.js +24 -0
- package/adapters/react/pricing-table.js.map +1 -0
- package/adapters/react/pricing-table.tsx +35 -0
- package/adapters/react/rating.d.ts +30 -0
- package/adapters/react/rating.d.ts.map +1 -0
- package/adapters/react/rating.js +24 -0
- package/adapters/react/rating.js.map +1 -0
- package/adapters/react/rating.tsx +38 -0
- package/adapters/react/recipe.d.ts +43 -0
- package/adapters/react/recipe.d.ts.map +1 -0
- package/adapters/react/recipe.js +24 -0
- package/adapters/react/recipe.js.map +1 -0
- package/adapters/react/recipe.tsx +51 -0
- package/adapters/react/sortable.d.ts +28 -0
- package/adapters/react/sortable.d.ts.map +1 -0
- package/adapters/react/sortable.js +24 -0
- package/adapters/react/sortable.js.map +1 -0
- package/adapters/react/sortable.tsx +36 -0
- package/adapters/react/spotlight.d.ts +27 -0
- package/adapters/react/spotlight.d.ts.map +1 -0
- package/adapters/react/spotlight.js +24 -0
- package/adapters/react/spotlight.js.map +1 -0
- package/adapters/react/spotlight.tsx +35 -0
- package/adapters/react/spreadsheet.d.ts +27 -0
- package/adapters/react/spreadsheet.d.ts.map +1 -0
- package/adapters/react/spreadsheet.js +24 -0
- package/adapters/react/spreadsheet.js.map +1 -0
- package/adapters/react/spreadsheet.tsx +35 -0
- package/adapters/react/tag-input.d.ts +33 -0
- package/adapters/react/tag-input.d.ts.map +1 -0
- package/adapters/react/tag-input.js +24 -0
- package/adapters/react/tag-input.js.map +1 -0
- package/adapters/react/tag-input.tsx +41 -0
- package/adapters/react/testimonial.d.ts +31 -0
- package/adapters/react/testimonial.d.ts.map +1 -0
- package/adapters/react/testimonial.js +24 -0
- package/adapters/react/testimonial.js.map +1 -0
- package/adapters/react/testimonial.tsx +39 -0
- package/adapters/react/video-player.d.ts +34 -0
- package/adapters/react/video-player.d.ts.map +1 -0
- package/adapters/react/video-player.js +24 -0
- package/adapters/react/video-player.js.map +1 -0
- package/adapters/react/video-player.tsx +42 -0
- package/adapters/react/waterfall.d.ts +29 -0
- package/adapters/react/waterfall.d.ts.map +1 -0
- package/adapters/react/waterfall.js +24 -0
- package/adapters/react/waterfall.js.map +1 -0
- package/adapters/react/waterfall.tsx +37 -0
- package/adapters/react/weather.d.ts +27 -0
- package/adapters/react/weather.d.ts.map +1 -0
- package/adapters/react/weather.js +24 -0
- package/adapters/react/weather.js.map +1 -0
- package/adapters/react/weather.tsx +35 -0
- package/dist/cdn/accordion/snice-accordion.js +1 -1
- package/dist/cdn/accordion/snice-accordion.min.js +1 -1
- package/dist/cdn/alert/snice-alert.js +1 -1
- package/dist/cdn/alert/snice-alert.min.js +1 -1
- package/dist/cdn/app-tiles/README.md +27 -0
- package/dist/cdn/app-tiles/snice-app-tiles.js +333 -0
- package/dist/cdn/app-tiles/snice-app-tiles.js.map +1 -0
- package/dist/cdn/app-tiles/snice-app-tiles.min.js +11 -0
- package/dist/cdn/app-tiles/snice-app-tiles.min.js.map +1 -0
- package/dist/cdn/audio-recorder/snice-audio-recorder.js +1 -1
- package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +1 -1
- package/dist/cdn/avatar/snice-avatar.js +1 -1
- package/dist/cdn/avatar/snice-avatar.min.js +1 -1
- package/dist/cdn/badge/snice-badge.js +1 -1
- package/dist/cdn/badge/snice-badge.min.js +1 -1
- package/dist/cdn/banner/snice-banner.js +1 -1
- package/dist/cdn/banner/snice-banner.min.js +1 -1
- package/dist/cdn/book/README.md +27 -0
- package/dist/cdn/book/snice-book.js +353 -0
- package/dist/cdn/book/snice-book.js.map +1 -0
- package/dist/cdn/book/snice-book.min.js +13 -0
- package/dist/cdn/book/snice-book.min.js.map +1 -0
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +1 -1
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +1 -1
- package/dist/cdn/button/snice-button.js +1 -1
- package/dist/cdn/button/snice-button.min.js +1 -1
- package/dist/cdn/calendar/snice-calendar.js +1 -1
- package/dist/cdn/calendar/snice-calendar.min.js +1 -1
- package/dist/cdn/camera/snice-camera.js +1 -1
- package/dist/cdn/camera/snice-camera.min.js +1 -1
- package/dist/cdn/camera-annotate/snice-camera-annotate.js +1 -1
- package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +1 -1
- package/dist/cdn/candlestick/snice-candlestick.js +1 -1
- package/dist/cdn/candlestick/snice-candlestick.min.js +1 -1
- package/dist/cdn/card/snice-card.js +1 -1
- package/dist/cdn/card/snice-card.min.js +1 -1
- package/dist/cdn/carousel/snice-carousel.js +1 -1
- package/dist/cdn/carousel/snice-carousel.min.js +1 -1
- package/dist/cdn/chart/snice-chart.js +1 -1
- package/dist/cdn/chart/snice-chart.min.js +1 -1
- package/dist/cdn/chat/snice-chat.js +1 -1
- package/dist/cdn/chat/snice-chat.min.js +1 -1
- package/dist/cdn/checkbox/snice-checkbox.js +1 -1
- package/dist/cdn/checkbox/snice-checkbox.min.js +1 -1
- package/dist/cdn/chip/snice-chip.js +1 -1
- package/dist/cdn/chip/snice-chip.min.js +1 -1
- package/dist/cdn/code-block/snice-code-block.js +1 -1
- package/dist/cdn/code-block/snice-code-block.min.js +1 -1
- package/dist/cdn/color-display/snice-color-display.js +1 -1
- package/dist/cdn/color-display/snice-color-display.min.js +1 -1
- package/dist/cdn/color-picker/snice-color-picker.js +1 -1
- package/dist/cdn/color-picker/snice-color-picker.min.js +1 -1
- package/dist/cdn/command-palette/snice-command-palette.js +1 -1
- package/dist/cdn/command-palette/snice-command-palette.min.js +1 -1
- package/dist/cdn/comments/README.md +27 -0
- package/dist/cdn/comments/snice-comments.js +544 -0
- package/dist/cdn/comments/snice-comments.js.map +1 -0
- package/dist/cdn/comments/snice-comments.min.js +100 -0
- package/dist/cdn/comments/snice-comments.min.js.map +1 -0
- package/dist/cdn/countdown/README.md +27 -0
- package/dist/cdn/countdown/snice-countdown.js +235 -0
- package/dist/cdn/countdown/snice-countdown.js.map +1 -0
- package/dist/cdn/countdown/snice-countdown.min.js +14 -0
- package/dist/cdn/countdown/snice-countdown.min.js.map +1 -0
- package/dist/cdn/cropper/README.md +27 -0
- package/dist/cdn/cropper/snice-cropper.js +352 -0
- package/dist/cdn/cropper/snice-cropper.js.map +1 -0
- package/dist/cdn/cropper/snice-cropper.min.js +25 -0
- package/dist/cdn/cropper/snice-cropper.min.js.map +1 -0
- package/dist/cdn/date-picker/snice-date-picker.js +1 -1
- package/dist/cdn/date-picker/snice-date-picker.min.js +1 -1
- package/dist/cdn/diff/README.md +27 -0
- package/dist/cdn/diff/snice-diff.js +441 -0
- package/dist/cdn/diff/snice-diff.js.map +1 -0
- package/dist/cdn/diff/snice-diff.min.js +54 -0
- package/dist/cdn/diff/snice-diff.min.js.map +1 -0
- package/dist/cdn/divider/snice-divider.js +1 -1
- package/dist/cdn/divider/snice-divider.min.js +1 -1
- package/dist/cdn/doc/snice-doc.js +1 -1
- package/dist/cdn/doc/snice-doc.min.js +1 -1
- package/dist/cdn/draw/snice-draw.js +1 -1
- package/dist/cdn/draw/snice-draw.min.js +1 -1
- package/dist/cdn/drawer/snice-drawer.js +1 -1
- package/dist/cdn/drawer/snice-drawer.min.js +1 -1
- package/dist/cdn/empty-state/snice-empty-state.js +1 -1
- package/dist/cdn/empty-state/snice-empty-state.min.js +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.js +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.min.js +1 -1
- package/dist/cdn/file-upload/snice-file-upload.js +1 -1
- package/dist/cdn/file-upload/snice-file-upload.min.js +1 -1
- package/dist/cdn/flip-card/README.md +27 -0
- package/dist/cdn/flip-card/snice-flip-card.js +183 -0
- package/dist/cdn/flip-card/snice-flip-card.js.map +1 -0
- package/dist/cdn/flip-card/snice-flip-card.min.js +22 -0
- package/dist/cdn/flip-card/snice-flip-card.min.js.map +1 -0
- package/dist/cdn/flow/README.md +27 -0
- package/dist/cdn/flow/snice-flow.js +822 -0
- package/dist/cdn/flow/snice-flow.js.map +1 -0
- package/dist/cdn/flow/snice-flow.min.js +17 -0
- package/dist/cdn/flow/snice-flow.min.js.map +1 -0
- package/dist/cdn/funnel/snice-funnel.js +1 -1
- package/dist/cdn/funnel/snice-funnel.min.js +1 -1
- package/dist/cdn/gantt/README.md +27 -0
- package/dist/cdn/gantt/snice-gantt.js +436 -0
- package/dist/cdn/gantt/snice-gantt.js.map +1 -0
- package/dist/cdn/gantt/snice-gantt.min.js +60 -0
- package/dist/cdn/gantt/snice-gantt.min.js.map +1 -0
- package/dist/cdn/gauge/snice-gauge.js +1 -1
- package/dist/cdn/gauge/snice-gauge.min.js +1 -1
- package/dist/cdn/heatmap/snice-heatmap.js +1 -1
- package/dist/cdn/heatmap/snice-heatmap.min.js +1 -1
- package/dist/cdn/image/snice-image.js +1 -1
- package/dist/cdn/image/snice-image.min.js +1 -1
- package/dist/cdn/input/snice-input.js +1 -1
- package/dist/cdn/input/snice-input.min.js +1 -1
- package/dist/cdn/kanban/snice-kanban.js +1 -1
- package/dist/cdn/kanban/snice-kanban.min.js +1 -1
- package/dist/cdn/kpi/snice-kpi.js +1 -1
- package/dist/cdn/kpi/snice-kpi.min.js +1 -1
- package/dist/cdn/layout/snice-layout.js +1 -1
- package/dist/cdn/layout/snice-layout.min.js +1 -1
- package/dist/cdn/link/snice-link.js +1 -1
- package/dist/cdn/link/snice-link.min.js +1 -1
- package/dist/cdn/link-preview/snice-link-preview.js +1 -1
- package/dist/cdn/link-preview/snice-link-preview.min.js +1 -1
- package/dist/cdn/list/snice-list.js +1 -1
- package/dist/cdn/list/snice-list.min.js +1 -1
- package/dist/cdn/location/snice-location.js +1 -1
- package/dist/cdn/location/snice-location.min.js +1 -1
- package/dist/cdn/login/snice-login.js +1 -1
- package/dist/cdn/login/snice-login.min.js +1 -1
- package/dist/cdn/map/README.md +27 -0
- package/dist/cdn/map/snice-map.js +415 -0
- package/dist/cdn/map/snice-map.js.map +1 -0
- package/dist/cdn/map/snice-map.min.js +52 -0
- package/dist/cdn/map/snice-map.min.js.map +1 -0
- package/dist/cdn/markdown/README.md +27 -0
- package/dist/cdn/markdown/snice-markdown.js +317 -0
- package/dist/cdn/markdown/snice-markdown.js.map +1 -0
- package/dist/cdn/markdown/snice-markdown.min.js +11 -0
- package/dist/cdn/markdown/snice-markdown.min.js.map +1 -0
- package/dist/cdn/masonry/snice-masonry.js +1 -1
- package/dist/cdn/masonry/snice-masonry.min.js +1 -1
- package/dist/cdn/menu/snice-menu.js +1 -1
- package/dist/cdn/menu/snice-menu.min.js +1 -1
- package/dist/cdn/modal/snice-modal.js +1 -1
- package/dist/cdn/modal/snice-modal.min.js +1 -1
- package/dist/cdn/music-player/snice-music-player.js +1 -1
- package/dist/cdn/music-player/snice-music-player.min.js +1 -1
- package/dist/cdn/nav/snice-nav.js +1 -1
- package/dist/cdn/nav/snice-nav.min.js +1 -1
- package/dist/cdn/network-graph/snice-network-graph.js +1 -1
- package/dist/cdn/network-graph/snice-network-graph.min.js +1 -1
- package/dist/cdn/notification-center/README.md +27 -0
- package/dist/cdn/notification-center/snice-notification-center.js +204 -0
- package/dist/cdn/notification-center/snice-notification-center.js.map +1 -0
- package/dist/cdn/notification-center/snice-notification-center.min.js +33 -0
- package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -0
- package/dist/cdn/org-chart/README.md +27 -0
- package/dist/cdn/org-chart/snice-org-chart.js +294 -0
- package/dist/cdn/org-chart/snice-org-chart.js.map +1 -0
- package/dist/cdn/org-chart/snice-org-chart.min.js +32 -0
- package/dist/cdn/org-chart/snice-org-chart.min.js.map +1 -0
- package/dist/cdn/pagination/snice-pagination.js +1 -1
- package/dist/cdn/pagination/snice-pagination.min.js +1 -1
- package/dist/cdn/paint/snice-paint.js +1 -1
- package/dist/cdn/paint/snice-paint.min.js +1 -1
- package/dist/cdn/pdf-viewer/README.md +27 -0
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +594 -0
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.js.map +1 -0
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +88 -0
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js.map +1 -0
- package/dist/cdn/podcast-player/README.md +27 -0
- package/dist/cdn/podcast-player/snice-podcast-player.js +835 -0
- package/dist/cdn/podcast-player/snice-podcast-player.js.map +1 -0
- package/dist/cdn/podcast-player/snice-podcast-player.min.js +209 -0
- package/dist/cdn/podcast-player/snice-podcast-player.min.js.map +1 -0
- package/dist/cdn/pricing-table/README.md +27 -0
- package/dist/cdn/pricing-table/snice-pricing-table.js +491 -0
- package/dist/cdn/pricing-table/snice-pricing-table.js.map +1 -0
- package/dist/cdn/pricing-table/snice-pricing-table.min.js +141 -0
- package/dist/cdn/pricing-table/snice-pricing-table.min.js.map +1 -0
- package/dist/cdn/progress/snice-progress.js +1 -1
- package/dist/cdn/progress/snice-progress.min.js +1 -1
- package/dist/cdn/qr-code/snice-qr-code.js +1 -1
- package/dist/cdn/qr-code/snice-qr-code.min.js +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.js +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.min.js +1 -1
- package/dist/cdn/radio/snice-radio.js +1 -1
- package/dist/cdn/radio/snice-radio.min.js +1 -1
- package/dist/cdn/rating/README.md +27 -0
- package/dist/cdn/rating/snice-rating.js +210 -0
- package/dist/cdn/rating/snice-rating.js.map +1 -0
- package/dist/cdn/rating/snice-rating.min.js +25 -0
- package/dist/cdn/rating/snice-rating.min.js.map +1 -0
- package/dist/cdn/recipe/README.md +27 -0
- package/dist/cdn/recipe/snice-recipe.js +619 -0
- package/dist/cdn/recipe/snice-recipe.js.map +1 -0
- package/dist/cdn/recipe/snice-recipe.min.js +185 -0
- package/dist/cdn/recipe/snice-recipe.min.js.map +1 -0
- package/dist/cdn/runtime/snice-runtime.esm.js +3 -3
- package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.min.js +3 -3
- package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.js +3 -3
- package/dist/cdn/runtime/snice-runtime.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.min.js +3 -3
- package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
- package/dist/cdn/sankey/snice-sankey.js +1 -1
- package/dist/cdn/sankey/snice-sankey.min.js +1 -1
- package/dist/cdn/select/snice-select.js +1 -1
- package/dist/cdn/select/snice-select.min.js +1 -1
- package/dist/cdn/skeleton/snice-skeleton.js +1 -1
- package/dist/cdn/skeleton/snice-skeleton.min.js +1 -1
- package/dist/cdn/slider/snice-slider.js +1 -1
- package/dist/cdn/slider/snice-slider.min.js +1 -1
- package/dist/cdn/sortable/README.md +27 -0
- package/dist/cdn/sortable/snice-sortable.js +254 -0
- package/dist/cdn/sortable/snice-sortable.js.map +1 -0
- package/dist/cdn/sortable/snice-sortable.min.js +12 -0
- package/dist/cdn/sortable/snice-sortable.min.js.map +1 -0
- package/dist/cdn/sparkline/snice-sparkline.js +1 -1
- package/dist/cdn/sparkline/snice-sparkline.min.js +1 -1
- package/dist/cdn/spinner/snice-spinner.js +1 -1
- package/dist/cdn/spinner/snice-spinner.min.js +1 -1
- package/dist/cdn/split-pane/snice-split-pane.js +1 -1
- package/dist/cdn/split-pane/snice-split-pane.min.js +1 -1
- package/dist/cdn/spotlight/README.md +27 -0
- package/dist/cdn/spotlight/snice-spotlight.js +397 -0
- package/dist/cdn/spotlight/snice-spotlight.js.map +1 -0
- package/dist/cdn/spotlight/snice-spotlight.min.js +8 -0
- package/dist/cdn/spotlight/snice-spotlight.min.js.map +1 -0
- package/dist/cdn/spreadsheet/README.md +27 -0
- package/dist/cdn/spreadsheet/snice-spreadsheet.js +1171 -0
- package/dist/cdn/spreadsheet/snice-spreadsheet.js.map +1 -0
- package/dist/cdn/spreadsheet/snice-spreadsheet.min.js +30 -0
- package/dist/cdn/spreadsheet/snice-spreadsheet.min.js.map +1 -0
- package/dist/cdn/stepper/snice-stepper.js +1 -1
- package/dist/cdn/stepper/snice-stepper.min.js +1 -1
- package/dist/cdn/switch/snice-switch.js +1 -1
- package/dist/cdn/switch/snice-switch.min.js +1 -1
- package/dist/cdn/table/snice-table.js +1 -1
- package/dist/cdn/table/snice-table.min.js +1 -1
- package/dist/cdn/tabs/snice-tabs.js +1 -1
- package/dist/cdn/tabs/snice-tabs.min.js +1 -1
- package/dist/cdn/tag-input/README.md +27 -0
- package/dist/cdn/tag-input/snice-tag-input.js +387 -0
- package/dist/cdn/tag-input/snice-tag-input.js.map +1 -0
- package/dist/cdn/tag-input/snice-tag-input.min.js +65 -0
- package/dist/cdn/tag-input/snice-tag-input.min.js.map +1 -0
- package/dist/cdn/terminal/snice-terminal.js +1 -1
- package/dist/cdn/terminal/snice-terminal.min.js +1 -1
- package/dist/cdn/testimonial/README.md +27 -0
- package/dist/cdn/testimonial/snice-testimonial.js +187 -0
- package/dist/cdn/testimonial/snice-testimonial.js.map +1 -0
- package/dist/cdn/testimonial/snice-testimonial.min.js +21 -0
- package/dist/cdn/testimonial/snice-testimonial.min.js.map +1 -0
- package/dist/cdn/textarea/snice-textarea.js +1 -1
- package/dist/cdn/textarea/snice-textarea.min.js +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.js +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +1 -1
- package/dist/cdn/timeline/snice-timeline.js +1 -1
- package/dist/cdn/timeline/snice-timeline.min.js +1 -1
- package/dist/cdn/timer/snice-timer.js +1 -1
- package/dist/cdn/timer/snice-timer.min.js +1 -1
- package/dist/cdn/toast/snice-toast.js +1 -1
- package/dist/cdn/toast/snice-toast.min.js +1 -1
- package/dist/cdn/tooltip/snice-tooltip.js +1 -1
- package/dist/cdn/tooltip/snice-tooltip.min.js +1 -1
- package/dist/cdn/tree/snice-tree.js +1 -1
- package/dist/cdn/tree/snice-tree.min.js +1 -1
- package/dist/cdn/treemap/snice-treemap.js +1 -1
- package/dist/cdn/treemap/snice-treemap.min.js +1 -1
- package/dist/cdn/video-player/README.md +27 -0
- package/dist/cdn/video-player/snice-video-player.js +721 -0
- package/dist/cdn/video-player/snice-video-player.js.map +1 -0
- package/dist/cdn/video-player/snice-video-player.min.js +153 -0
- package/dist/cdn/video-player/snice-video-player.min.js.map +1 -0
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +1 -1
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +1 -1
- package/dist/cdn/waterfall/README.md +27 -0
- package/dist/cdn/waterfall/snice-waterfall.js +292 -0
- package/dist/cdn/waterfall/snice-waterfall.js.map +1 -0
- package/dist/cdn/waterfall/snice-waterfall.min.js +12 -0
- package/dist/cdn/waterfall/snice-waterfall.min.js.map +1 -0
- package/dist/cdn/weather/README.md +27 -0
- package/dist/cdn/weather/snice-weather.js +194 -0
- package/dist/cdn/weather/snice-weather.js.map +1 -0
- package/dist/cdn/weather/snice-weather.min.js +42 -0
- package/dist/cdn/weather/snice-weather.min.js.map +1 -0
- package/dist/components/app-tiles/snice-app-tiles.d.ts +36 -0
- package/dist/components/app-tiles/snice-app-tiles.js +265 -0
- package/dist/components/app-tiles/snice-app-tiles.js.map +1 -0
- package/dist/components/app-tiles/snice-app-tiles.types.d.ts +22 -0
- package/dist/components/book/snice-book.d.ts +46 -0
- package/dist/components/book/snice-book.js +285 -0
- package/dist/components/book/snice-book.js.map +1 -0
- package/dist/components/book/snice-book.types.d.ts +21 -0
- package/dist/components/comments/snice-comments.d.ts +62 -0
- package/dist/components/comments/snice-comments.js +476 -0
- package/dist/components/comments/snice-comments.js.map +1 -0
- package/dist/components/comments/snice-comments.types.d.ts +64 -0
- package/dist/components/countdown/snice-countdown.d.ts +21 -0
- package/dist/components/countdown/snice-countdown.js +168 -0
- package/dist/components/countdown/snice-countdown.js.map +1 -0
- package/dist/components/countdown/snice-countdown.types.d.ts +18 -0
- package/dist/components/cropper/snice-cropper.d.ts +32 -0
- package/dist/components/cropper/snice-cropper.js +285 -0
- package/dist/components/cropper/snice-cropper.js.map +1 -0
- package/dist/components/cropper/snice-cropper.types.d.ts +26 -0
- package/dist/components/diff/snice-diff.d.ts +32 -0
- package/dist/components/diff/snice-diff.js +374 -0
- package/dist/components/diff/snice-diff.js.map +1 -0
- package/dist/components/diff/snice-diff.types.d.ts +26 -0
- package/dist/components/flip-card/snice-flip-card.d.ts +15 -0
- package/dist/components/flip-card/snice-flip-card.js +116 -0
- package/dist/components/flip-card/snice-flip-card.js.map +1 -0
- package/dist/components/flip-card/snice-flip-card.types.d.ts +16 -0
- package/dist/components/flow/snice-flow.d.ts +91 -0
- package/dist/components/flow/snice-flow.js +755 -0
- package/dist/components/flow/snice-flow.js.map +1 -0
- package/dist/components/flow/snice-flow.types.d.ts +64 -0
- package/dist/components/gantt/snice-gantt.d.ts +34 -0
- package/dist/components/gantt/snice-gantt.js +369 -0
- package/dist/components/gantt/snice-gantt.js.map +1 -0
- package/dist/components/gantt/snice-gantt.types.d.ts +37 -0
- package/dist/components/map/snice-map.d.ts +44 -0
- package/dist/components/map/snice-map.js +348 -0
- package/dist/components/map/snice-map.js.map +1 -0
- package/dist/components/map/snice-map.types.d.ts +41 -0
- package/dist/components/markdown/snice-markdown.d.ts +24 -0
- package/dist/components/markdown/snice-markdown.js +250 -0
- package/dist/components/markdown/snice-markdown.js.map +1 -0
- package/dist/components/markdown/snice-markdown.types.d.ts +16 -0
- package/dist/components/notification-center/snice-notification-center.d.ts +18 -0
- package/dist/components/notification-center/snice-notification-center.js +137 -0
- package/dist/components/notification-center/snice-notification-center.js.map +1 -0
- package/dist/components/notification-center/snice-notification-center.types.d.ts +24 -0
- package/dist/components/org-chart/snice-org-chart.d.ts +28 -0
- package/dist/components/org-chart/snice-org-chart.js +227 -0
- package/dist/components/org-chart/snice-org-chart.js.map +1 -0
- package/dist/components/org-chart/snice-org-chart.types.d.ts +28 -0
- package/dist/components/pdf-viewer/pdf.min.mjs +21 -0
- package/dist/components/pdf-viewer/pdf.worker.min.mjs +21 -0
- package/dist/components/pdf-viewer/snice-pdf-viewer.d.ts +59 -0
- package/dist/components/pdf-viewer/snice-pdf-viewer.js +527 -0
- package/dist/components/pdf-viewer/snice-pdf-viewer.js.map +1 -0
- package/dist/components/pdf-viewer/snice-pdf-viewer.types.d.ts +25 -0
- package/dist/components/podcast-player/snice-podcast-player.d.ts +72 -0
- package/dist/components/podcast-player/snice-podcast-player.js +768 -0
- package/dist/components/podcast-player/snice-podcast-player.js.map +1 -0
- package/dist/components/podcast-player/snice-podcast-player.types.d.ts +79 -0
- package/dist/components/pricing-table/snice-pricing-table.d.ts +51 -0
- package/dist/components/pricing-table/snice-pricing-table.js +422 -0
- package/dist/components/pricing-table/snice-pricing-table.js.map +1 -0
- package/dist/components/pricing-table/snice-pricing-table.types.d.ts +49 -0
- package/dist/components/rating/snice-rating.d.ts +15 -0
- package/dist/components/rating/snice-rating.js +143 -0
- package/dist/components/rating/snice-rating.js.map +1 -0
- package/dist/components/rating/snice-rating.types.d.ts +15 -0
- package/dist/components/recipe/snice-recipe.d.ts +53 -0
- package/dist/components/recipe/snice-recipe.js +552 -0
- package/dist/components/recipe/snice-recipe.js.map +1 -0
- package/dist/components/recipe/snice-recipe.types.d.ts +56 -0
- package/dist/components/sortable/snice-sortable.d.ts +24 -0
- package/dist/components/sortable/snice-sortable.js +187 -0
- package/dist/components/sortable/snice-sortable.js.map +1 -0
- package/dist/components/sortable/snice-sortable.types.d.ts +20 -0
- package/dist/components/spotlight/snice-spotlight.d.ts +42 -0
- package/dist/components/spotlight/snice-spotlight.js +330 -0
- package/dist/components/spotlight/snice-spotlight.js.map +1 -0
- package/dist/components/spotlight/snice-spotlight.types.d.ts +26 -0
- package/dist/components/spreadsheet/snice-spreadsheet.d.ts +102 -0
- package/dist/components/spreadsheet/snice-spreadsheet.js +1104 -0
- package/dist/components/spreadsheet/snice-spreadsheet.js.map +1 -0
- package/dist/components/spreadsheet/snice-spreadsheet.types.d.ts +54 -0
- package/dist/components/tag-input/snice-tag-input.d.ts +40 -0
- package/dist/components/tag-input/snice-tag-input.js +320 -0
- package/dist/components/tag-input/snice-tag-input.js.map +1 -0
- package/dist/components/tag-input/snice-tag-input.types.d.ts +29 -0
- package/dist/components/testimonial/snice-testimonial.d.ts +15 -0
- package/dist/components/testimonial/snice-testimonial.js +120 -0
- package/dist/components/testimonial/snice-testimonial.js.map +1 -0
- package/dist/components/testimonial/snice-testimonial.types.d.ts +10 -0
- package/dist/components/video-player/snice-video-player.d.ts +78 -0
- package/dist/components/video-player/snice-video-player.js +654 -0
- package/dist/components/video-player/snice-video-player.js.map +1 -0
- package/dist/components/video-player/snice-video-player.types.d.ts +47 -0
- package/dist/components/waterfall/snice-waterfall.d.ts +30 -0
- package/dist/components/waterfall/snice-waterfall.js +225 -0
- package/dist/components/waterfall/snice-waterfall.js.map +1 -0
- package/dist/components/waterfall/snice-waterfall.types.d.ts +23 -0
- package/dist/components/weather/snice-weather.d.ts +10 -0
- package/dist/components/weather/snice-weather.js +127 -0
- package/dist/components/weather/snice-weather.js.map +1 -0
- package/dist/components/weather/snice-weather.types.d.ts +22 -0
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/symbols.cjs +1 -1
- package/dist/symbols.esm.js +1 -1
- package/dist/transitions.cjs +1 -1
- package/dist/transitions.esm.js +1 -1
- package/docs/ai/DEVELOPMENT.md +1 -1
- package/docs/ai/api.md +6 -3
- package/docs/ai/components/accordion.md +0 -34
- package/docs/ai/components/app-tiles.md +77 -0
- package/docs/ai/components/audio-recorder.md +2 -0
- package/docs/ai/components/badge.md +7 -0
- package/docs/ai/components/book.md +78 -0
- package/docs/ai/components/button.md +5 -0
- package/docs/ai/components/chart.md +0 -24
- package/docs/ai/components/chat.md +7 -95
- package/docs/ai/components/code-block.md +3 -82
- package/docs/ai/components/color-display.md +3 -3
- package/docs/ai/components/color-picker.md +4 -4
- package/docs/ai/components/comments.md +75 -0
- package/docs/ai/components/countdown.md +54 -0
- package/docs/ai/components/cropper.md +57 -0
- package/docs/ai/components/date-picker.md +15 -9
- package/docs/ai/components/diff.md +66 -0
- package/docs/ai/components/divider.md +1 -1
- package/docs/ai/components/draw.md +5 -5
- package/docs/ai/components/drawer.md +5 -5
- package/docs/ai/components/empty-state.md +2 -2
- package/docs/ai/components/file-gallery.md +16 -87
- package/docs/ai/components/file-upload.md +6 -6
- package/docs/ai/components/flip-card.md +52 -0
- package/docs/ai/components/flow.md +104 -0
- package/docs/ai/components/funnel.md +3 -3
- package/docs/ai/components/gantt.md +63 -0
- package/docs/ai/components/gauge.md +1 -1
- package/docs/ai/components/heatmap.md +5 -5
- package/docs/ai/components/input.md +20 -18
- package/docs/ai/components/kanban.md +2 -2
- package/docs/ai/components/kpi.md +4 -53
- package/docs/ai/components/layout.md +10 -235
- package/docs/ai/components/link-preview.md +20 -29
- package/docs/ai/components/link.md +27 -47
- package/docs/ai/components/list.md +51 -31
- package/docs/ai/components/location.md +15 -27
- package/docs/ai/components/login.md +43 -94
- package/docs/ai/components/map.md +72 -0
- package/docs/ai/components/markdown.md +63 -0
- package/docs/ai/components/masonry.md +10 -6
- package/docs/ai/components/menu.md +40 -72
- package/docs/ai/components/modal.md +25 -42
- package/docs/ai/components/music-player.md +37 -89
- package/docs/ai/components/nav.md +25 -39
- package/docs/ai/components/network-graph.md +39 -43
- package/docs/ai/components/notification-center.md +79 -0
- package/docs/ai/components/org-chart.md +62 -0
- package/docs/ai/components/pagination.md +16 -18
- package/docs/ai/components/pdf-viewer.md +57 -0
- package/docs/ai/components/podcast-player.md +94 -0
- package/docs/ai/components/pricing-table.md +87 -0
- package/docs/ai/components/progress.md +23 -39
- package/docs/ai/components/qr-code.md +37 -84
- package/docs/ai/components/qr-reader.md +51 -61
- package/docs/ai/components/radio.md +27 -39
- package/docs/ai/components/rating.md +56 -0
- package/docs/ai/components/recipe.md +90 -0
- package/docs/ai/components/skeleton.md +0 -8
- package/docs/ai/components/slider.md +10 -50
- package/docs/ai/components/sortable.md +57 -0
- package/docs/ai/components/sparkline.md +26 -152
- package/docs/ai/components/spinner.md +0 -21
- package/docs/ai/components/split-pane.md +16 -38
- package/docs/ai/components/spotlight.md +61 -0
- package/docs/ai/components/spreadsheet.md +138 -0
- package/docs/ai/components/stepper.md +37 -183
- package/docs/ai/components/switch.md +28 -35
- package/docs/ai/components/table.md +43 -172
- package/docs/ai/components/tabs.md +31 -52
- package/docs/ai/components/tag-input.md +70 -0
- package/docs/ai/components/terminal.md +34 -116
- package/docs/ai/components/testimonial.md +56 -0
- package/docs/ai/components/textarea.md +11 -43
- package/docs/ai/components/theme.md +120 -0
- package/docs/ai/components/time-range-picker.md +17 -49
- package/docs/ai/components/timeline.md +7 -46
- package/docs/ai/components/timer.md +41 -37
- package/docs/ai/components/toast.md +19 -90
- package/docs/ai/components/tooltip.md +17 -104
- package/docs/ai/components/tree.md +38 -162
- package/docs/ai/components/treemap.md +23 -44
- package/docs/ai/components/video-player.md +91 -0
- package/docs/ai/components/virtual-scroller.md +23 -46
- package/docs/ai/components/waterfall.md +56 -0
- package/docs/ai/components/weather.md +78 -0
- package/docs/ai/decorators.md +25 -3
- package/docs/ai/patterns.md +17 -1
- package/docs/components/accordion.md +8 -6
- package/docs/components/alert.md +2 -0
- package/docs/components/app-tiles.md +162 -0
- package/docs/components/audio-recorder.md +6 -0
- package/docs/components/avatar.md +225 -0
- package/docs/components/badge.md +2 -0
- package/docs/components/banner.md +2 -0
- package/docs/components/book.md +184 -0
- package/docs/components/breadcrumbs.md +2 -0
- package/docs/components/button.md +15 -0
- package/docs/components/calendar.md +2 -0
- package/docs/components/camera-annotate.md +2 -0
- package/docs/components/camera.md +2 -0
- package/docs/components/candlestick.md +2 -0
- package/docs/components/card.md +2 -0
- package/docs/components/carousel.md +205 -36
- package/docs/components/chart.md +2 -0
- package/docs/components/chat.md +2 -0
- package/docs/components/checkbox.md +2 -0
- package/docs/components/chip.md +2 -0
- package/docs/components/code-block.md +2 -0
- package/docs/components/color-display.md +2 -0
- package/docs/components/color-picker.md +6 -4
- package/docs/components/command-palette.md +2 -0
- package/docs/components/comments.md +235 -0
- package/docs/components/countdown.md +121 -0
- package/docs/components/cropper.md +152 -0
- package/docs/components/date-picker.md +201 -0
- package/docs/components/diff.md +177 -0
- package/docs/components/divider.md +132 -0
- package/docs/components/doc.md +2 -0
- package/docs/components/draw.md +2 -0
- package/docs/components/drawer.md +2 -0
- package/docs/components/empty-state.md +2 -0
- package/docs/components/file-gallery.md +2 -0
- package/docs/components/file-upload.md +2 -0
- package/docs/components/flip-card.md +169 -0
- package/docs/components/flow.md +208 -0
- package/docs/components/funnel.md +2 -0
- package/docs/components/gantt.md +187 -0
- package/docs/components/gauge.md +2 -0
- package/docs/components/heatmap.md +2 -0
- package/docs/components/image.md +2 -0
- package/docs/components/input.md +242 -0
- package/docs/components/kanban.md +2 -0
- package/docs/components/kpi.md +2 -0
- package/docs/components/layout.md +84 -0
- package/docs/components/link-preview.md +66 -92
- package/docs/components/link.md +73 -157
- package/docs/components/list.md +140 -44
- package/docs/components/location.md +96 -283
- package/docs/components/login.md +131 -498
- package/docs/components/map.md +203 -0
- package/docs/components/markdown.md +220 -0
- package/docs/components/masonry.md +57 -102
- package/docs/components/menu.md +87 -494
- package/docs/components/modal.md +83 -436
- package/docs/components/music-player.md +116 -221
- package/docs/components/nav.md +107 -170
- package/docs/components/network-graph.md +83 -111
- package/docs/components/notification-center.md +256 -0
- package/docs/components/org-chart.md +275 -0
- package/docs/components/pagination.md +75 -218
- package/docs/components/paint.md +108 -73
- package/docs/components/pdf-viewer.md +204 -0
- package/docs/components/podcast-player.md +277 -0
- package/docs/components/pricing-table.md +249 -0
- package/docs/components/progress.md +169 -0
- package/docs/components/qr-code.md +95 -378
- package/docs/components/qr-reader.md +83 -258
- package/docs/components/radio.md +151 -0
- package/docs/components/rating.md +154 -0
- package/docs/components/recipe.md +323 -0
- package/docs/components/sankey.md +84 -107
- package/docs/components/select.md +114 -485
- package/docs/components/skeleton.md +96 -0
- package/docs/components/slider.md +92 -235
- package/docs/components/sortable.md +267 -0
- package/docs/components/sparkline.md +76 -222
- package/docs/components/spinner.md +37 -18
- package/docs/components/split-pane.md +62 -226
- package/docs/components/spotlight.md +240 -0
- package/docs/components/spreadsheet.md +405 -0
- package/docs/components/stepper.md +72 -306
- package/docs/components/switch.md +69 -293
- package/docs/components/table.md +250 -0
- package/docs/components/tabs.md +92 -471
- package/docs/components/tag-input.md +257 -0
- package/docs/components/terminal.md +87 -391
- package/docs/components/testimonial.md +185 -0
- package/docs/components/textarea.md +96 -181
- package/docs/components/theme.md +216 -0
- package/docs/components/time-range-picker.md +99 -151
- package/docs/components/timeline.md +67 -115
- package/docs/components/timer.md +44 -86
- package/docs/components/toast.md +93 -432
- package/docs/components/tooltip.md +75 -419
- package/docs/components/tree.md +110 -436
- package/docs/components/treemap.md +86 -129
- package/docs/components/video-player.md +336 -0
- package/docs/components/virtual-scroller.md +86 -226
- package/docs/components/waterfall.md +217 -0
- package/docs/components/weather.md +239 -0
- package/package.json +1 -1
- package/docs/ai/components/popover.md +0 -70
- package/docs/components/popover.md +0 -333
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
import { __runInitializers, __esDecorate } from 'tslib';
|
|
2
|
+
import { element, property, watch, dispatch, styles, render, css, html } from 'snice';
|
|
3
|
+
|
|
4
|
+
var cssContent = ":host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);color:var(--snice-color-text,rgb(23 23 23));contain:layout style paint;width:100%;--recipe-bg:var(--snice-color-background-element, rgb(252 251 249));--recipe-border:var(--snice-color-border, rgb(226 226 226));--recipe-text:var(--snice-color-text, rgb(23 23 23));--recipe-text-secondary:var(--snice-color-text-secondary, rgb(82 82 82));--recipe-text-tertiary:var(--snice-color-text-tertiary, rgb(115 115 115));--recipe-primary:var(--snice-color-primary, rgb(37 99 235));--recipe-success:var(--snice-color-success, rgb(22 163 74));--recipe-danger:var(--snice-color-danger, rgb(220 38 38));--recipe-radius:var(--snice-border-radius-lg, 0.5rem);--recipe-shadow:var(--snice-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))}.recipe{background:var(--recipe-bg);border-radius:var(--recipe-radius);box-shadow:var(--recipe-shadow);overflow:hidden}.recipe__hero{position:relative;width:100%;overflow:hidden}.recipe__hero img{width:100%;height:auto;display:block;object-fit:cover;max-height:25rem}.recipe__header{padding:var(--snice-spacing-lg,1.5rem)}.recipe__title{margin:0 0 var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-2xl, 1.5rem);font-weight:var(--snice-font-weight-bold,700);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__description{margin:0 0 var(--snice-spacing-sm,.75rem);font-size:var(--snice-font-size-md, 1rem);color:var(--recipe-text-secondary);line-height:var(--snice-line-height-normal, 1.5)}.recipe__author{font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-tertiary)}.recipe__tags{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__tag{display:inline-flex;align-items:center;padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-xs, .75rem);border-radius:9999px;background:var(--snice-color-background,rgb(255 255 255));border:1px solid var(--recipe-border);color:var(--recipe-text-secondary)}.recipe__meta{display:flex;flex-wrap:wrap;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border);border-bottom:1px solid var(--recipe-border);background:var(--snice-color-background,rgb(255 255 255))}.recipe__meta-item{display:flex;flex-direction:column;align-items:center;gap:var(--snice-spacing-3xs,.125rem);min-width:4rem}.recipe__meta-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);text-transform:uppercase;letter-spacing:.05em}.recipe__meta-value{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__difficulty--easy{color:var(--recipe-success)}.recipe__difficulty--medium{color:var(--snice-color-warning,rgb(234 179 8))}.recipe__difficulty--hard{color:var(--recipe-danger)}.recipe__content{display:grid;grid-template-columns:1fr 2fr;gap:var(--snice-spacing-lg,1.5rem);padding:var(--snice-spacing-lg,1.5rem)}@media (max-width:768px){.recipe__content{grid-template-columns:1fr}}.recipe__servings-adjuster{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);margin-bottom:var(--snice-spacing-md,1rem)}.recipe__servings-adjuster span{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-text)}.recipe__servings-btn{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--recipe-border);border-radius:50%;background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-lg, 1.125rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms);padding:0;line-height:1}.recipe__servings-btn:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__servings-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__servings-count{min-width:2rem;text-align:center;font-weight:var(--snice-font-weight-bold,700);font-size:var(--snice-font-size-lg, 1.125rem)}.recipe__ingredients-section{position:relative}.recipe__section-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0 0 var(--snice-spacing-sm,.75rem);color:var(--recipe-text)}.recipe__ingredient-group-title{font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-medium,500);color:var(--recipe-text-secondary);margin:var(--snice-spacing-sm,.75rem) 0 var(--snice-spacing-2xs,.25rem)}.recipe__ingredients-list{list-style:none;padding:0;margin:0}.recipe__ingredient{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) 0;border-bottom:1px solid var(--recipe-border);cursor:pointer;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__ingredient:last-child{border-bottom:none}.recipe__ingredient--checked{opacity:.5}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:line-through}.recipe__ingredient-checkbox{appearance:none;width:1.125rem;height:1.125rem;border:2px solid var(--recipe-border);border-radius:3px;cursor:pointer;flex-shrink:0;position:relative;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__ingredient-checkbox:checked{background:var(--recipe-primary);border-color:var(--recipe-primary)}.recipe__ingredient-checkbox:checked::after{content:'';position:absolute;left:3px;top:0;width:.375rem;height:.625rem;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.recipe__ingredient-checkbox:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__ingredient-amount{font-weight:var(--snice-font-weight-semibold,600);white-space:nowrap;color:var(--recipe-text)}.recipe__ingredient-text{color:var(--recipe-text-secondary)}.recipe__steps-section{position:relative}.recipe__steps-list{list-style:none;padding:0;margin:0;counter-reset:step-counter}.recipe__step{display:flex;gap:var(--snice-spacing-md,1rem);padding:var(--snice-spacing-md,1rem) 0;border-bottom:1px solid var(--recipe-border);counter-increment:step-counter;transition:opacity var(--snice-transition-fast, 150ms)}.recipe__step:last-child{border-bottom:none}.recipe__step--completed{opacity:.5}.recipe__step--active{background:var(--snice-color-primary-subtle,rgb(239 246 255));margin:0 calc(-1 * var(--snice-spacing-sm,.75rem));padding-left:var(--snice-spacing-sm,.75rem);padding-right:var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-number{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;background:var(--recipe-primary);color:var(--snice-color-text-inverse,rgb(250 250 250));font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-bold,700);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step--completed .recipe__step-number{background:var(--recipe-success)}.recipe__step-number:hover{opacity:.8}.recipe__step-body{flex:1;min-width:0}.recipe__step-text{font-size:var(--snice-font-size-md, 1rem);line-height:var(--snice-line-height-normal, 1.5);color:var(--recipe-text)}.recipe__step-tip{margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-sm,.75rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-left:3px solid var(--recipe-primary);border-radius:0 var(--snice-border-radius-md,.25rem) var(--snice-border-radius-md,.25rem) 0;font-size:var(--snice-font-size-sm, .875rem);color:var(--recipe-text-secondary)}.recipe__step-image{margin-top:var(--snice-spacing-xs,.5rem);width:100%;max-width:20rem;border-radius:var(--snice-border-radius-md,.25rem)}.recipe__step-timer-btn{display:inline-flex;align-items:center;gap:var(--snice-spacing-3xs,.125rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-xs,.5rem);border:1px solid var(--recipe-primary);border-radius:var(--snice-border-radius-md,.25rem);background:0 0;color:var(--recipe-primary);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms)}.recipe__step-timer-btn:hover{background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-timer-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__step-timer-btn svg{width:.875rem;height:.875rem}.recipe__active-timer{display:inline-flex;align-items:center;gap:var(--snice-spacing-2xs,.25rem);margin-top:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-2xs,.25rem) var(--snice-spacing-xs,.5rem);background:var(--snice-color-primary-subtle,rgb(239 246 255));border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--recipe-primary)}.recipe__active-timer--done{background:var(--snice-color-success-subtle,rgb(220 252 231));color:var(--recipe-success)}.recipe__timer-cancel{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;border:none;border-radius:50%;background:0 0;color:inherit;cursor:pointer;padding:0;font-size:.75rem}.recipe__timer-cancel:hover{background:rgb(0 0 0 / .1)}.recipe__nutrition{padding:var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__nutrition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));gap:var(--snice-spacing-md,1rem);margin-top:var(--snice-spacing-sm,.75rem)}.recipe__nutrition-item{text-align:center;padding:var(--snice-spacing-sm,.75rem);background:var(--snice-color-background,rgb(255 255 255));border-radius:var(--snice-border-radius-md,.25rem);border:1px solid var(--recipe-border)}.recipe__nutrition-value{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-bold,700);color:var(--recipe-text)}.recipe__nutrition-label{font-size:var(--snice-font-size-xs, .75rem);color:var(--recipe-text-tertiary);margin-top:var(--snice-spacing-3xs,.125rem)}.recipe__step-controls{display:flex;gap:var(--snice-spacing-xs,.5rem);padding:var(--snice-spacing-sm,.75rem) var(--snice-spacing-lg,1.5rem);border-top:1px solid var(--recipe-border)}.recipe__step-controls button{padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-md,1rem);border:1px solid var(--recipe-border);border-radius:var(--snice-border-radius-md,.25rem);background:var(--snice-color-background,rgb(255 255 255));color:var(--recipe-text);font-size:var(--snice-font-size-sm, .875rem);cursor:pointer;transition:background var(--snice-transition-fast, 150ms),border-color var(--snice-transition-fast, 150ms)}.recipe__step-controls button:hover{border-color:var(--recipe-primary);background:var(--snice-color-primary-subtle,rgb(239 246 255))}.recipe__step-controls button:disabled{opacity:.4;cursor:not-allowed}.recipe__step-controls button:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.recipe__print-btn{margin-left:auto}:host([variant=card]) .recipe__content{grid-template-columns:1fr;padding:var(--snice-spacing-md,1rem)}:host([variant=card]) .recipe__hero img{max-height:15rem}:host([variant=card]) .recipe__header{padding:var(--snice-spacing-md,1rem)}@media print{.recipe{box-shadow:none;border:1px solid #ccc}.recipe__active-timer,.recipe__servings-btn,.recipe__step-controls,.recipe__step-timer-btn,.recipe__timer-cancel{display:none!important}.recipe__ingredient--checked,.recipe__step--completed{opacity:1}.recipe__ingredient--checked .recipe__ingredient-text{text-decoration:none}}[hidden]{display:none!important}";
|
|
5
|
+
|
|
6
|
+
let SniceRecipe = (() => {
|
|
7
|
+
let _classDecorators = [element('snice-recipe')];
|
|
8
|
+
let _classDescriptor;
|
|
9
|
+
let _classExtraInitializers = [];
|
|
10
|
+
let _classThis;
|
|
11
|
+
let _classSuper = HTMLElement;
|
|
12
|
+
let _instanceExtraInitializers = [];
|
|
13
|
+
let _title_decorators;
|
|
14
|
+
let _title_initializers = [];
|
|
15
|
+
let _title_extraInitializers = [];
|
|
16
|
+
let _description_decorators;
|
|
17
|
+
let _description_initializers = [];
|
|
18
|
+
let _description_extraInitializers = [];
|
|
19
|
+
let _image_decorators;
|
|
20
|
+
let _image_initializers = [];
|
|
21
|
+
let _image_extraInitializers = [];
|
|
22
|
+
let _author_decorators;
|
|
23
|
+
let _author_initializers = [];
|
|
24
|
+
let _author_extraInitializers = [];
|
|
25
|
+
let _prepTime_decorators;
|
|
26
|
+
let _prepTime_initializers = [];
|
|
27
|
+
let _prepTime_extraInitializers = [];
|
|
28
|
+
let _cookTime_decorators;
|
|
29
|
+
let _cookTime_initializers = [];
|
|
30
|
+
let _cookTime_extraInitializers = [];
|
|
31
|
+
let _servings_decorators;
|
|
32
|
+
let _servings_initializers = [];
|
|
33
|
+
let _servings_extraInitializers = [];
|
|
34
|
+
let _difficulty_decorators;
|
|
35
|
+
let _difficulty_initializers = [];
|
|
36
|
+
let _difficulty_extraInitializers = [];
|
|
37
|
+
let _cuisine_decorators;
|
|
38
|
+
let _cuisine_initializers = [];
|
|
39
|
+
let _cuisine_extraInitializers = [];
|
|
40
|
+
let _variant_decorators;
|
|
41
|
+
let _variant_initializers = [];
|
|
42
|
+
let _variant_extraInitializers = [];
|
|
43
|
+
let _ingredients_decorators;
|
|
44
|
+
let _ingredients_initializers = [];
|
|
45
|
+
let _ingredients_extraInitializers = [];
|
|
46
|
+
let _steps_decorators;
|
|
47
|
+
let _steps_initializers = [];
|
|
48
|
+
let _steps_extraInitializers = [];
|
|
49
|
+
let _nutrition_decorators;
|
|
50
|
+
let _nutrition_initializers = [];
|
|
51
|
+
let _nutrition_extraInitializers = [];
|
|
52
|
+
let _tags_decorators;
|
|
53
|
+
let _tags_initializers = [];
|
|
54
|
+
let _tags_extraInitializers = [];
|
|
55
|
+
let _currentServings_decorators;
|
|
56
|
+
let _currentServings_initializers = [];
|
|
57
|
+
let _currentServings_extraInitializers = [];
|
|
58
|
+
let _checkedIngredients_decorators;
|
|
59
|
+
let _checkedIngredients_initializers = [];
|
|
60
|
+
let _checkedIngredients_extraInitializers = [];
|
|
61
|
+
let _completedSteps_decorators;
|
|
62
|
+
let _completedSteps_initializers = [];
|
|
63
|
+
let _completedSteps_extraInitializers = [];
|
|
64
|
+
let _activeStep_decorators;
|
|
65
|
+
let _activeStep_initializers = [];
|
|
66
|
+
let _activeStep_extraInitializers = [];
|
|
67
|
+
let _timerVersion_decorators;
|
|
68
|
+
let _timerVersion_initializers = [];
|
|
69
|
+
let _timerVersion_extraInitializers = [];
|
|
70
|
+
let _onServingsChange_decorators;
|
|
71
|
+
let _onIngredientsChange_decorators;
|
|
72
|
+
let _onStepsChange_decorators;
|
|
73
|
+
let _emitServingChange_decorators;
|
|
74
|
+
let _emitStepComplete_decorators;
|
|
75
|
+
let _emitIngredientCheck_decorators;
|
|
76
|
+
let _styles_decorators;
|
|
77
|
+
let _template_decorators;
|
|
78
|
+
(class extends _classSuper {
|
|
79
|
+
static { _classThis = this; }
|
|
80
|
+
constructor() {
|
|
81
|
+
super(...arguments);
|
|
82
|
+
this.title = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _title_initializers, ''));
|
|
83
|
+
this.description = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _description_initializers, ''));
|
|
84
|
+
this.image = (__runInitializers(this, _description_extraInitializers), __runInitializers(this, _image_initializers, ''));
|
|
85
|
+
this.author = (__runInitializers(this, _image_extraInitializers), __runInitializers(this, _author_initializers, ''));
|
|
86
|
+
this.prepTime = (__runInitializers(this, _author_extraInitializers), __runInitializers(this, _prepTime_initializers, 0));
|
|
87
|
+
this.cookTime = (__runInitializers(this, _prepTime_extraInitializers), __runInitializers(this, _cookTime_initializers, 0));
|
|
88
|
+
this.servings = (__runInitializers(this, _cookTime_extraInitializers), __runInitializers(this, _servings_initializers, 4));
|
|
89
|
+
this.difficulty = (__runInitializers(this, _servings_extraInitializers), __runInitializers(this, _difficulty_initializers, 'medium'));
|
|
90
|
+
this.cuisine = (__runInitializers(this, _difficulty_extraInitializers), __runInitializers(this, _cuisine_initializers, ''));
|
|
91
|
+
this.variant = (__runInitializers(this, _cuisine_extraInitializers), __runInitializers(this, _variant_initializers, 'full'));
|
|
92
|
+
this.ingredients = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _ingredients_initializers, []));
|
|
93
|
+
this.steps = (__runInitializers(this, _ingredients_extraInitializers), __runInitializers(this, _steps_initializers, []));
|
|
94
|
+
this.nutrition = (__runInitializers(this, _steps_extraInitializers), __runInitializers(this, _nutrition_initializers, null));
|
|
95
|
+
this.tags = (__runInitializers(this, _nutrition_extraInitializers), __runInitializers(this, _tags_initializers, []));
|
|
96
|
+
// Internal state
|
|
97
|
+
this.currentServings = (__runInitializers(this, _tags_extraInitializers), __runInitializers(this, _currentServings_initializers, 0));
|
|
98
|
+
this.checkedIngredients = (__runInitializers(this, _currentServings_extraInitializers), __runInitializers(this, _checkedIngredients_initializers, []));
|
|
99
|
+
this.completedSteps = (__runInitializers(this, _checkedIngredients_extraInitializers), __runInitializers(this, _completedSteps_initializers, []));
|
|
100
|
+
this.activeStep = (__runInitializers(this, _completedSteps_extraInitializers), __runInitializers(this, _activeStep_initializers, -1));
|
|
101
|
+
this.timerVersion = (__runInitializers(this, _activeStep_extraInitializers), __runInitializers(this, _timerVersion_initializers, 0));
|
|
102
|
+
this.activeTimers = (__runInitializers(this, _timerVersion_extraInitializers), new Map());
|
|
103
|
+
this.baseServings = 0;
|
|
104
|
+
}
|
|
105
|
+
static {
|
|
106
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
107
|
+
_title_decorators = [property()];
|
|
108
|
+
_description_decorators = [property()];
|
|
109
|
+
_image_decorators = [property()];
|
|
110
|
+
_author_decorators = [property()];
|
|
111
|
+
_prepTime_decorators = [property({ type: Number, attribute: 'prep-time' })];
|
|
112
|
+
_cookTime_decorators = [property({ type: Number, attribute: 'cook-time' })];
|
|
113
|
+
_servings_decorators = [property({ type: Number })];
|
|
114
|
+
_difficulty_decorators = [property()];
|
|
115
|
+
_cuisine_decorators = [property()];
|
|
116
|
+
_variant_decorators = [property()];
|
|
117
|
+
_ingredients_decorators = [property({ type: Array })];
|
|
118
|
+
_steps_decorators = [property({ type: Array })];
|
|
119
|
+
_nutrition_decorators = [property({ type: Object })];
|
|
120
|
+
_tags_decorators = [property({ type: Array })];
|
|
121
|
+
_currentServings_decorators = [property({ type: Number })];
|
|
122
|
+
_checkedIngredients_decorators = [property({ type: Array })];
|
|
123
|
+
_completedSteps_decorators = [property({ type: Array })];
|
|
124
|
+
_activeStep_decorators = [property({ type: Number })];
|
|
125
|
+
_timerVersion_decorators = [property({ type: Number })];
|
|
126
|
+
_onServingsChange_decorators = [watch('servings')];
|
|
127
|
+
_onIngredientsChange_decorators = [watch('ingredients')];
|
|
128
|
+
_onStepsChange_decorators = [watch('steps')];
|
|
129
|
+
_emitServingChange_decorators = [dispatch('recipe-serving-change', { bubbles: true, composed: true })];
|
|
130
|
+
_emitStepComplete_decorators = [dispatch('recipe-step-complete', { bubbles: true, composed: true })];
|
|
131
|
+
_emitIngredientCheck_decorators = [dispatch('recipe-ingredient-check', { bubbles: true, composed: true })];
|
|
132
|
+
_styles_decorators = [styles()];
|
|
133
|
+
_template_decorators = [render()];
|
|
134
|
+
__esDecorate(this, null, _onServingsChange_decorators, { kind: "method", name: "onServingsChange", static: false, private: false, access: { has: obj => "onServingsChange" in obj, get: obj => obj.onServingsChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
135
|
+
__esDecorate(this, null, _onIngredientsChange_decorators, { kind: "method", name: "onIngredientsChange", static: false, private: false, access: { has: obj => "onIngredientsChange" in obj, get: obj => obj.onIngredientsChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
136
|
+
__esDecorate(this, null, _onStepsChange_decorators, { kind: "method", name: "onStepsChange", static: false, private: false, access: { has: obj => "onStepsChange" in obj, get: obj => obj.onStepsChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
137
|
+
__esDecorate(this, null, _emitServingChange_decorators, { kind: "method", name: "emitServingChange", static: false, private: false, access: { has: obj => "emitServingChange" in obj, get: obj => obj.emitServingChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
138
|
+
__esDecorate(this, null, _emitStepComplete_decorators, { kind: "method", name: "emitStepComplete", static: false, private: false, access: { has: obj => "emitStepComplete" in obj, get: obj => obj.emitStepComplete }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
139
|
+
__esDecorate(this, null, _emitIngredientCheck_decorators, { kind: "method", name: "emitIngredientCheck", static: false, private: false, access: { has: obj => "emitIngredientCheck" in obj, get: obj => obj.emitIngredientCheck }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
140
|
+
__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);
|
|
141
|
+
__esDecorate(this, null, _template_decorators, { kind: "method", name: "template", static: false, private: false, access: { has: obj => "template" in obj, get: obj => obj.template }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
142
|
+
__esDecorate(null, null, _title_decorators, { kind: "field", name: "title", static: false, private: false, access: { has: obj => "title" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);
|
|
143
|
+
__esDecorate(null, null, _description_decorators, { kind: "field", name: "description", static: false, private: false, access: { has: obj => "description" in obj, get: obj => obj.description, set: (obj, value) => { obj.description = value; } }, metadata: _metadata }, _description_initializers, _description_extraInitializers);
|
|
144
|
+
__esDecorate(null, null, _image_decorators, { kind: "field", name: "image", static: false, private: false, access: { has: obj => "image" in obj, get: obj => obj.image, set: (obj, value) => { obj.image = value; } }, metadata: _metadata }, _image_initializers, _image_extraInitializers);
|
|
145
|
+
__esDecorate(null, null, _author_decorators, { kind: "field", name: "author", static: false, private: false, access: { has: obj => "author" in obj, get: obj => obj.author, set: (obj, value) => { obj.author = value; } }, metadata: _metadata }, _author_initializers, _author_extraInitializers);
|
|
146
|
+
__esDecorate(null, null, _prepTime_decorators, { kind: "field", name: "prepTime", static: false, private: false, access: { has: obj => "prepTime" in obj, get: obj => obj.prepTime, set: (obj, value) => { obj.prepTime = value; } }, metadata: _metadata }, _prepTime_initializers, _prepTime_extraInitializers);
|
|
147
|
+
__esDecorate(null, null, _cookTime_decorators, { kind: "field", name: "cookTime", static: false, private: false, access: { has: obj => "cookTime" in obj, get: obj => obj.cookTime, set: (obj, value) => { obj.cookTime = value; } }, metadata: _metadata }, _cookTime_initializers, _cookTime_extraInitializers);
|
|
148
|
+
__esDecorate(null, null, _servings_decorators, { kind: "field", name: "servings", static: false, private: false, access: { has: obj => "servings" in obj, get: obj => obj.servings, set: (obj, value) => { obj.servings = value; } }, metadata: _metadata }, _servings_initializers, _servings_extraInitializers);
|
|
149
|
+
__esDecorate(null, null, _difficulty_decorators, { kind: "field", name: "difficulty", static: false, private: false, access: { has: obj => "difficulty" in obj, get: obj => obj.difficulty, set: (obj, value) => { obj.difficulty = value; } }, metadata: _metadata }, _difficulty_initializers, _difficulty_extraInitializers);
|
|
150
|
+
__esDecorate(null, null, _cuisine_decorators, { kind: "field", name: "cuisine", static: false, private: false, access: { has: obj => "cuisine" in obj, get: obj => obj.cuisine, set: (obj, value) => { obj.cuisine = value; } }, metadata: _metadata }, _cuisine_initializers, _cuisine_extraInitializers);
|
|
151
|
+
__esDecorate(null, null, _variant_decorators, { kind: "field", name: "variant", static: false, private: false, access: { has: obj => "variant" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);
|
|
152
|
+
__esDecorate(null, null, _ingredients_decorators, { kind: "field", name: "ingredients", static: false, private: false, access: { has: obj => "ingredients" in obj, get: obj => obj.ingredients, set: (obj, value) => { obj.ingredients = value; } }, metadata: _metadata }, _ingredients_initializers, _ingredients_extraInitializers);
|
|
153
|
+
__esDecorate(null, null, _steps_decorators, { kind: "field", name: "steps", static: false, private: false, access: { has: obj => "steps" in obj, get: obj => obj.steps, set: (obj, value) => { obj.steps = value; } }, metadata: _metadata }, _steps_initializers, _steps_extraInitializers);
|
|
154
|
+
__esDecorate(null, null, _nutrition_decorators, { kind: "field", name: "nutrition", static: false, private: false, access: { has: obj => "nutrition" in obj, get: obj => obj.nutrition, set: (obj, value) => { obj.nutrition = value; } }, metadata: _metadata }, _nutrition_initializers, _nutrition_extraInitializers);
|
|
155
|
+
__esDecorate(null, null, _tags_decorators, { kind: "field", name: "tags", static: false, private: false, access: { has: obj => "tags" in obj, get: obj => obj.tags, set: (obj, value) => { obj.tags = value; } }, metadata: _metadata }, _tags_initializers, _tags_extraInitializers);
|
|
156
|
+
__esDecorate(null, null, _currentServings_decorators, { kind: "field", name: "currentServings", static: false, private: false, access: { has: obj => "currentServings" in obj, get: obj => obj.currentServings, set: (obj, value) => { obj.currentServings = value; } }, metadata: _metadata }, _currentServings_initializers, _currentServings_extraInitializers);
|
|
157
|
+
__esDecorate(null, null, _checkedIngredients_decorators, { kind: "field", name: "checkedIngredients", static: false, private: false, access: { has: obj => "checkedIngredients" in obj, get: obj => obj.checkedIngredients, set: (obj, value) => { obj.checkedIngredients = value; } }, metadata: _metadata }, _checkedIngredients_initializers, _checkedIngredients_extraInitializers);
|
|
158
|
+
__esDecorate(null, null, _completedSteps_decorators, { kind: "field", name: "completedSteps", static: false, private: false, access: { has: obj => "completedSteps" in obj, get: obj => obj.completedSteps, set: (obj, value) => { obj.completedSteps = value; } }, metadata: _metadata }, _completedSteps_initializers, _completedSteps_extraInitializers);
|
|
159
|
+
__esDecorate(null, null, _activeStep_decorators, { kind: "field", name: "activeStep", static: false, private: false, access: { has: obj => "activeStep" in obj, get: obj => obj.activeStep, set: (obj, value) => { obj.activeStep = value; } }, metadata: _metadata }, _activeStep_initializers, _activeStep_extraInitializers);
|
|
160
|
+
__esDecorate(null, null, _timerVersion_decorators, { kind: "field", name: "timerVersion", static: false, private: false, access: { has: obj => "timerVersion" in obj, get: obj => obj.timerVersion, set: (obj, value) => { obj.timerVersion = value; } }, metadata: _metadata }, _timerVersion_initializers, _timerVersion_extraInitializers);
|
|
161
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
162
|
+
_classThis = _classDescriptor.value;
|
|
163
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
164
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
165
|
+
}
|
|
166
|
+
onServingsChange() {
|
|
167
|
+
if (this.baseServings === 0) {
|
|
168
|
+
this.baseServings = this.servings;
|
|
169
|
+
this.currentServings = this.servings;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
onIngredientsChange() {
|
|
173
|
+
this.checkedIngredients = new Array(this.ingredients.length).fill(false);
|
|
174
|
+
}
|
|
175
|
+
onStepsChange() {
|
|
176
|
+
this.completedSteps = new Array(this.steps.length).fill(false);
|
|
177
|
+
this.activeStep = -1;
|
|
178
|
+
}
|
|
179
|
+
setServings(count) {
|
|
180
|
+
if (count < 1)
|
|
181
|
+
return;
|
|
182
|
+
const previous = this.currentServings;
|
|
183
|
+
this.currentServings = count;
|
|
184
|
+
this.emitServingChange(previous);
|
|
185
|
+
}
|
|
186
|
+
print() {
|
|
187
|
+
window.print();
|
|
188
|
+
}
|
|
189
|
+
reset() {
|
|
190
|
+
this.checkedIngredients = new Array(this.ingredients.length).fill(false);
|
|
191
|
+
this.completedSteps = new Array(this.steps.length).fill(false);
|
|
192
|
+
this.activeStep = -1;
|
|
193
|
+
this.currentServings = this.baseServings || this.servings;
|
|
194
|
+
// Clear all active timers
|
|
195
|
+
for (const [, timer] of this.activeTimers.entries()) {
|
|
196
|
+
clearInterval(timer.intervalId);
|
|
197
|
+
}
|
|
198
|
+
this.activeTimers.clear();
|
|
199
|
+
this.timerVersion++;
|
|
200
|
+
}
|
|
201
|
+
scaleAmount(amount) {
|
|
202
|
+
const base = this.baseServings || this.servings;
|
|
203
|
+
if (base === 0)
|
|
204
|
+
return amount;
|
|
205
|
+
const scaled = (amount * this.currentServings) / base;
|
|
206
|
+
return Math.round(scaled * 100) / 100;
|
|
207
|
+
}
|
|
208
|
+
formatAmount(amount) {
|
|
209
|
+
const scaled = this.scaleAmount(amount);
|
|
210
|
+
if (scaled === Math.floor(scaled))
|
|
211
|
+
return scaled.toString();
|
|
212
|
+
// Common fractions
|
|
213
|
+
const frac = scaled - Math.floor(scaled);
|
|
214
|
+
const whole = Math.floor(scaled);
|
|
215
|
+
const fractionMap = [
|
|
216
|
+
[0.25, '\u00BC'], [0.33, '\u2153'], [0.5, '\u00BD'],
|
|
217
|
+
[0.67, '\u2154'], [0.75, '\u00BE'],
|
|
218
|
+
];
|
|
219
|
+
for (const [val, sym] of fractionMap) {
|
|
220
|
+
if (Math.abs(frac - val) < 0.05) {
|
|
221
|
+
return whole > 0 ? `${whole}${sym}` : sym;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return scaled.toFixed(1);
|
|
225
|
+
}
|
|
226
|
+
toggleIngredient(index) {
|
|
227
|
+
const updated = [...this.checkedIngredients];
|
|
228
|
+
updated[index] = !updated[index];
|
|
229
|
+
this.checkedIngredients = updated;
|
|
230
|
+
this.emitIngredientCheck(index, updated[index]);
|
|
231
|
+
}
|
|
232
|
+
toggleStepComplete(index) {
|
|
233
|
+
const updated = [...this.completedSteps];
|
|
234
|
+
updated[index] = !updated[index];
|
|
235
|
+
this.completedSteps = updated;
|
|
236
|
+
this.emitStepComplete(index, updated[index]);
|
|
237
|
+
}
|
|
238
|
+
decrementServings() {
|
|
239
|
+
if (this.currentServings > 1) {
|
|
240
|
+
this.setServings(this.currentServings - 1);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
incrementServings() {
|
|
244
|
+
this.setServings(this.currentServings + 1);
|
|
245
|
+
}
|
|
246
|
+
goToPrevStep() {
|
|
247
|
+
if (this.activeStep > 0) {
|
|
248
|
+
this.activeStep = this.activeStep - 1;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
goToNextStep() {
|
|
252
|
+
if (this.activeStep < this.steps.length - 1) {
|
|
253
|
+
this.activeStep = this.activeStep + 1;
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
this.activeStep = -1;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
startStepByStep() {
|
|
260
|
+
this.activeStep = 0;
|
|
261
|
+
}
|
|
262
|
+
startTimer(stepIndex, minutes) {
|
|
263
|
+
if (this.activeTimers.has(stepIndex))
|
|
264
|
+
return;
|
|
265
|
+
const remaining = minutes * 60;
|
|
266
|
+
const intervalId = window.setInterval(() => {
|
|
267
|
+
const timer = this.activeTimers.get(stepIndex);
|
|
268
|
+
if (!timer)
|
|
269
|
+
return;
|
|
270
|
+
if (timer.remaining <= 1) {
|
|
271
|
+
clearInterval(timer.intervalId);
|
|
272
|
+
this.activeTimers.set(stepIndex, { ...timer, remaining: 0, done: true });
|
|
273
|
+
this.timerVersion++;
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
this.activeTimers.set(stepIndex, { ...timer, remaining: timer.remaining - 1 });
|
|
277
|
+
this.timerVersion++;
|
|
278
|
+
}, 1000);
|
|
279
|
+
this.activeTimers.set(stepIndex, { remaining, intervalId, done: false });
|
|
280
|
+
this.timerVersion++;
|
|
281
|
+
}
|
|
282
|
+
cancelTimer(stepIndex) {
|
|
283
|
+
const timer = this.activeTimers.get(stepIndex);
|
|
284
|
+
if (timer) {
|
|
285
|
+
clearInterval(timer.intervalId);
|
|
286
|
+
this.activeTimers.delete(stepIndex);
|
|
287
|
+
this.timerVersion++;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
formatTimer(seconds) {
|
|
291
|
+
const m = Math.floor(seconds / 60);
|
|
292
|
+
const s = seconds % 60;
|
|
293
|
+
return `${m}:${s.toString().padStart(2, '0')}`;
|
|
294
|
+
}
|
|
295
|
+
formatMinutes(minutes) {
|
|
296
|
+
if (minutes < 60)
|
|
297
|
+
return `${minutes} min`;
|
|
298
|
+
const hrs = Math.floor(minutes / 60);
|
|
299
|
+
const mins = minutes % 60;
|
|
300
|
+
return mins > 0 ? `${hrs}h ${mins}m` : `${hrs}h`;
|
|
301
|
+
}
|
|
302
|
+
emitServingChange(previousServings) {
|
|
303
|
+
return { servings: this.currentServings, previousServings };
|
|
304
|
+
}
|
|
305
|
+
emitStepComplete(stepIndex, completed) {
|
|
306
|
+
return { stepIndex, completed };
|
|
307
|
+
}
|
|
308
|
+
emitIngredientCheck(ingredientIndex, checked) {
|
|
309
|
+
return { ingredientIndex, checked, ingredient: this.ingredients[ingredientIndex] };
|
|
310
|
+
}
|
|
311
|
+
styles() {
|
|
312
|
+
return css /*css*/ `${cssContent}`;
|
|
313
|
+
}
|
|
314
|
+
template() {
|
|
315
|
+
// Initialize base servings on first render
|
|
316
|
+
if (this.baseServings === 0 && this.servings > 0) {
|
|
317
|
+
this.baseServings = this.servings;
|
|
318
|
+
this.currentServings = this.servings;
|
|
319
|
+
}
|
|
320
|
+
const totalTime = this.prepTime + this.cookTime;
|
|
321
|
+
// Group ingredients
|
|
322
|
+
const groups = new Map();
|
|
323
|
+
this.ingredients.forEach((ing, i) => {
|
|
324
|
+
const group = ing.group || '';
|
|
325
|
+
if (!groups.has(group))
|
|
326
|
+
groups.set(group, []);
|
|
327
|
+
groups.get(group).push({ ingredient: ing, index: i });
|
|
328
|
+
});
|
|
329
|
+
const hasStepByStep = this.activeStep >= 0;
|
|
330
|
+
const hasTags = this.tags.length > 0 || this.cuisine.length > 0;
|
|
331
|
+
const hasCuisine = this.cuisine.length > 0;
|
|
332
|
+
const hasIngredients = this.ingredients.length > 0;
|
|
333
|
+
const hasSteps = this.steps.length > 0;
|
|
334
|
+
const hasContent = hasIngredients || hasSteps;
|
|
335
|
+
const hasMeta = this.prepTime > 0 || this.cookTime > 0 || this.servings > 0 || this.difficulty.length > 0;
|
|
336
|
+
// Pre-compute nutrition values to avoid null access in template
|
|
337
|
+
const hasNutrition = this.nutrition !== null;
|
|
338
|
+
const nutritionCalories = hasNutrition ? this.nutrition.calories : 0;
|
|
339
|
+
const nutritionProtein = hasNutrition ? this.nutrition.protein : 0;
|
|
340
|
+
const nutritionCarbs = hasNutrition ? this.nutrition.carbs : 0;
|
|
341
|
+
const nutritionFat = hasNutrition ? this.nutrition.fat : 0;
|
|
342
|
+
const nutritionFiber = hasNutrition ? this.nutrition.fiber : 0;
|
|
343
|
+
const nutritionSodium = hasNutrition ? this.nutrition.sodium : 0;
|
|
344
|
+
const hasFiber = hasNutrition && this.nutrition.fiber !== undefined;
|
|
345
|
+
const hasSodium = hasNutrition && this.nutrition.sodium !== undefined;
|
|
346
|
+
// Pre-build ingredient items to avoid nested template issues
|
|
347
|
+
const ingredientItems = [];
|
|
348
|
+
for (const [groupName, items] of groups.entries()) {
|
|
349
|
+
if (groupName) {
|
|
350
|
+
ingredientItems.push(html `<li class="recipe__ingredient-group-title">${groupName}</li>`);
|
|
351
|
+
}
|
|
352
|
+
for (const { ingredient, index } of items) {
|
|
353
|
+
const isChecked = this.checkedIngredients[index] || false;
|
|
354
|
+
const checkedClass = isChecked ? 'recipe__ingredient--checked' : '';
|
|
355
|
+
ingredientItems.push(html `
|
|
356
|
+
<li class="recipe__ingredient ${checkedClass}" @click=${() => this.toggleIngredient(index)}>
|
|
357
|
+
<input type="checkbox" class="recipe__ingredient-checkbox" ?checked=${isChecked} @click=${(e) => e.stopPropagation()} @change=${() => this.toggleIngredient(index)} />
|
|
358
|
+
<span class="recipe__ingredient-amount">${this.formatAmount(ingredient.amount)} ${ingredient.unit}</span>
|
|
359
|
+
<span class="recipe__ingredient-text">${ingredient.name}</span>
|
|
360
|
+
</li>
|
|
361
|
+
`);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return html /*html*/ `
|
|
365
|
+
<div class="recipe" part="container">
|
|
366
|
+
<if ${this.image}>
|
|
367
|
+
<div class="recipe__hero" part="hero">
|
|
368
|
+
<img src="${this.image}" alt="${this.title}" loading="lazy" />
|
|
369
|
+
</div>
|
|
370
|
+
</if>
|
|
371
|
+
|
|
372
|
+
<div class="recipe__header" part="header">
|
|
373
|
+
<h2 class="recipe__title">${this.title}</h2>
|
|
374
|
+
<if ${this.description}>
|
|
375
|
+
<p class="recipe__description">${this.description}</p>
|
|
376
|
+
</if>
|
|
377
|
+
<if ${this.author}>
|
|
378
|
+
<span class="recipe__author">By ${this.author}</span>
|
|
379
|
+
</if>
|
|
380
|
+
<if ${hasTags}>
|
|
381
|
+
<div class="recipe__tags">
|
|
382
|
+
<if ${hasCuisine}>
|
|
383
|
+
<span class="recipe__tag">${this.cuisine}</span>
|
|
384
|
+
</if>
|
|
385
|
+
${this.tags.map(tag => html `<span class="recipe__tag">${tag}</span>`)}
|
|
386
|
+
</div>
|
|
387
|
+
</if>
|
|
388
|
+
</div>
|
|
389
|
+
|
|
390
|
+
<if ${hasMeta}>
|
|
391
|
+
<div class="recipe__meta" part="meta">
|
|
392
|
+
<if ${this.prepTime > 0}>
|
|
393
|
+
<div class="recipe__meta-item">
|
|
394
|
+
<span class="recipe__meta-label">Prep</span>
|
|
395
|
+
<span class="recipe__meta-value">${this.formatMinutes(this.prepTime)}</span>
|
|
396
|
+
</div>
|
|
397
|
+
</if>
|
|
398
|
+
<if ${this.cookTime > 0}>
|
|
399
|
+
<div class="recipe__meta-item">
|
|
400
|
+
<span class="recipe__meta-label">Cook</span>
|
|
401
|
+
<span class="recipe__meta-value">${this.formatMinutes(this.cookTime)}</span>
|
|
402
|
+
</div>
|
|
403
|
+
</if>
|
|
404
|
+
<if ${totalTime > 0}>
|
|
405
|
+
<div class="recipe__meta-item">
|
|
406
|
+
<span class="recipe__meta-label">Total</span>
|
|
407
|
+
<span class="recipe__meta-value">${this.formatMinutes(totalTime)}</span>
|
|
408
|
+
</div>
|
|
409
|
+
</if>
|
|
410
|
+
<if ${this.currentServings > 0}>
|
|
411
|
+
<div class="recipe__meta-item">
|
|
412
|
+
<span class="recipe__meta-label">Servings</span>
|
|
413
|
+
<span class="recipe__meta-value">${this.currentServings}</span>
|
|
414
|
+
</div>
|
|
415
|
+
</if>
|
|
416
|
+
<if ${this.difficulty}>
|
|
417
|
+
<div class="recipe__meta-item">
|
|
418
|
+
<span class="recipe__meta-label">Difficulty</span>
|
|
419
|
+
<span class="recipe__meta-value recipe__difficulty--${this.difficulty}">${this.difficulty}</span>
|
|
420
|
+
</div>
|
|
421
|
+
</if>
|
|
422
|
+
</div>
|
|
423
|
+
</if>
|
|
424
|
+
|
|
425
|
+
<if ${hasContent}>
|
|
426
|
+
<div class="recipe__content" part="content">
|
|
427
|
+
<if ${hasIngredients}>
|
|
428
|
+
<div class="recipe__ingredients-section" part="ingredients">
|
|
429
|
+
<h3 class="recipe__section-title">Ingredients</h3>
|
|
430
|
+
<div class="recipe__servings-adjuster">
|
|
431
|
+
<button class="recipe__servings-btn" @click=${() => this.decrementServings()} aria-label="Decrease servings">-</button>
|
|
432
|
+
<span class="recipe__servings-count">${this.currentServings}</span>
|
|
433
|
+
<button class="recipe__servings-btn" @click=${() => this.incrementServings()} aria-label="Increase servings">+</button>
|
|
434
|
+
<span>servings</span>
|
|
435
|
+
</div>
|
|
436
|
+
<ul class="recipe__ingredients-list">
|
|
437
|
+
${ingredientItems}
|
|
438
|
+
</ul>
|
|
439
|
+
</div>
|
|
440
|
+
</if>
|
|
441
|
+
|
|
442
|
+
<if ${hasSteps}>
|
|
443
|
+
<div class="recipe__steps-section" part="steps">
|
|
444
|
+
<h3 class="recipe__section-title">Instructions</h3>
|
|
445
|
+
<ol class="recipe__steps-list">
|
|
446
|
+
${this.steps.map((step, i) => {
|
|
447
|
+
const isCompleted = this.completedSteps[i] || false;
|
|
448
|
+
const isActive = this.activeStep === i;
|
|
449
|
+
const timer = this.activeTimers.get(i);
|
|
450
|
+
const hasTimer = timer !== undefined;
|
|
451
|
+
const timerDone = hasTimer && timer.done;
|
|
452
|
+
const timerClass = timerDone ? 'recipe__active-timer--done' : '';
|
|
453
|
+
const timerText = hasTimer ? (timer.done ? 'Done!' : this.formatTimer(timer.remaining)) : '';
|
|
454
|
+
const showTimerBtn = step.time && !hasTimer;
|
|
455
|
+
return html `
|
|
456
|
+
<li class="recipe__step ${isCompleted ? 'recipe__step--completed' : ''} ${isActive ? 'recipe__step--active' : ''}">
|
|
457
|
+
<span class="recipe__step-number" @click=${() => this.toggleStepComplete(i)} title="${isCompleted ? 'Mark incomplete' : 'Mark complete'}">
|
|
458
|
+
${isCompleted ? '\u2713' : i + 1}
|
|
459
|
+
</span>
|
|
460
|
+
<div class="recipe__step-body">
|
|
461
|
+
<div class="recipe__step-text">${step.text}</div>
|
|
462
|
+
<if ${step.tip}>
|
|
463
|
+
<div class="recipe__step-tip">${step.tip}</div>
|
|
464
|
+
</if>
|
|
465
|
+
<if ${step.image}>
|
|
466
|
+
<img class="recipe__step-image" src="${step.image}" alt="Step ${i + 1}" loading="lazy" />
|
|
467
|
+
</if>
|
|
468
|
+
<if ${showTimerBtn}>
|
|
469
|
+
<button class="recipe__step-timer-btn" @click=${() => this.startTimer(i, step.time)}>
|
|
470
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
471
|
+
<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>
|
|
472
|
+
</svg>
|
|
473
|
+
${this.formatMinutes(step.time)}
|
|
474
|
+
</button>
|
|
475
|
+
</if>
|
|
476
|
+
<if ${hasTimer}>
|
|
477
|
+
<span class="recipe__active-timer ${timerClass}">
|
|
478
|
+
${timerText}
|
|
479
|
+
<button class="recipe__timer-cancel" @click=${() => this.cancelTimer(i)} title="Cancel timer">\u2715</button>
|
|
480
|
+
</span>
|
|
481
|
+
</if>
|
|
482
|
+
</div>
|
|
483
|
+
</li>
|
|
484
|
+
`;
|
|
485
|
+
})}
|
|
486
|
+
</ol>
|
|
487
|
+
</div>
|
|
488
|
+
</if>
|
|
489
|
+
</div>
|
|
490
|
+
</if>
|
|
491
|
+
|
|
492
|
+
<if ${hasNutrition}>
|
|
493
|
+
<div class="recipe__nutrition" part="nutrition">
|
|
494
|
+
<h3 class="recipe__section-title">Nutrition Facts</h3>
|
|
495
|
+
<span class="recipe__author">Per serving</span>
|
|
496
|
+
<div class="recipe__nutrition-grid">
|
|
497
|
+
<div class="recipe__nutrition-item">
|
|
498
|
+
<div class="recipe__nutrition-value">${nutritionCalories}</div>
|
|
499
|
+
<div class="recipe__nutrition-label">Calories</div>
|
|
500
|
+
</div>
|
|
501
|
+
<div class="recipe__nutrition-item">
|
|
502
|
+
<div class="recipe__nutrition-value">${nutritionProtein}g</div>
|
|
503
|
+
<div class="recipe__nutrition-label">Protein</div>
|
|
504
|
+
</div>
|
|
505
|
+
<div class="recipe__nutrition-item">
|
|
506
|
+
<div class="recipe__nutrition-value">${nutritionCarbs}g</div>
|
|
507
|
+
<div class="recipe__nutrition-label">Carbs</div>
|
|
508
|
+
</div>
|
|
509
|
+
<div class="recipe__nutrition-item">
|
|
510
|
+
<div class="recipe__nutrition-value">${nutritionFat}g</div>
|
|
511
|
+
<div class="recipe__nutrition-label">Fat</div>
|
|
512
|
+
</div>
|
|
513
|
+
<if ${hasFiber}>
|
|
514
|
+
<div class="recipe__nutrition-item">
|
|
515
|
+
<div class="recipe__nutrition-value">${nutritionFiber}g</div>
|
|
516
|
+
<div class="recipe__nutrition-label">Fiber</div>
|
|
517
|
+
</div>
|
|
518
|
+
</if>
|
|
519
|
+
<if ${hasSodium}>
|
|
520
|
+
<div class="recipe__nutrition-item">
|
|
521
|
+
<div class="recipe__nutrition-value">${nutritionSodium}mg</div>
|
|
522
|
+
<div class="recipe__nutrition-label">Sodium</div>
|
|
523
|
+
</div>
|
|
524
|
+
</if>
|
|
525
|
+
</div>
|
|
526
|
+
</div>
|
|
527
|
+
</if>
|
|
528
|
+
|
|
529
|
+
<if ${hasSteps}>
|
|
530
|
+
<div class="recipe__step-controls" part="controls">
|
|
531
|
+
<if ${!hasStepByStep}>
|
|
532
|
+
<button @click=${() => this.startStepByStep()}>Step-by-Step</button>
|
|
533
|
+
</if>
|
|
534
|
+
<if ${hasStepByStep}>
|
|
535
|
+
<button @click=${() => this.goToPrevStep()} ?disabled=${this.activeStep <= 0}>Previous</button>
|
|
536
|
+
<button @click=${() => this.goToNextStep()}>
|
|
537
|
+
${this.activeStep >= this.steps.length - 1 ? 'Finish' : 'Next'}
|
|
538
|
+
</button>
|
|
539
|
+
</if>
|
|
540
|
+
<button class="recipe__print-btn" @click=${() => this.print()}>Print</button>
|
|
541
|
+
<button @click=${() => this.reset()}>Reset</button>
|
|
542
|
+
</div>
|
|
543
|
+
</if>
|
|
544
|
+
</div>
|
|
545
|
+
`;
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
return _classThis;
|
|
549
|
+
})();
|
|
550
|
+
|
|
551
|
+
export { SniceRecipe };
|
|
552
|
+
//# sourceMappingURL=snice-recipe.js.map
|