snice 5.1.0 → 5.2.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/SniceProvider.js +1 -1
- package/adapters/react/SniceRouter.js +1 -1
- package/adapters/react/matchRoute.js +1 -1
- package/adapters/react/useRequestHandler.js +1 -1
- package/dist/cdn/accordion/snice-accordion.js +1 -1
- package/dist/cdn/accordion/snice-accordion.min.js +1 -1
- package/dist/cdn/action-bar/snice-action-bar.js +1 -1
- package/dist/cdn/action-bar/snice-action-bar.min.js +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.js +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.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/snice-app-tiles.js +1 -1
- package/dist/cdn/app-tiles/snice-app-tiles.min.js +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.js +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.min.js +1 -1
- 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/availability/snice-availability.js +1 -1
- package/dist/cdn/availability/snice-availability.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/avatar-group/snice-avatar-group.js +1 -1
- package/dist/cdn/avatar-group/snice-avatar-group.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/binpack/snice-binpack.js +1 -1
- package/dist/cdn/binpack/snice-binpack.min.js +1 -1
- package/dist/cdn/book/snice-book.js +1 -1
- package/dist/cdn/book/snice-book.min.js +1 -1
- package/dist/cdn/booking/snice-booking.js +1 -1
- package/dist/cdn/booking/snice-booking.min.js +1 -1
- 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/cart/snice-cart.js +1 -1
- package/dist/cdn/cart/snice-cart.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/snice-comments.js +1 -1
- package/dist/cdn/comments/snice-comments.min.js +1 -1
- package/dist/cdn/countdown/snice-countdown.js +1 -1
- package/dist/cdn/countdown/snice-countdown.min.js +1 -1
- package/dist/cdn/cropper/snice-cropper.js +1 -1
- package/dist/cdn/cropper/snice-cropper.min.js +1 -1
- package/dist/cdn/data-card/snice-data-card.js +1 -1
- package/dist/cdn/data-card/snice-data-card.min.js +1 -1
- 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/date-range-picker/snice-date-range-picker.js +1 -1
- package/dist/cdn/date-range-picker/snice-date-range-picker.min.js +1 -1
- package/dist/cdn/date-time-picker/snice-date-time-picker.js +1 -1
- package/dist/cdn/date-time-picker/snice-date-time-picker.min.js +1 -1
- package/dist/cdn/diff/snice-diff.js +1 -1
- package/dist/cdn/diff/snice-diff.min.js +1 -1
- 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/estimate/snice-estimate.js +1 -1
- package/dist/cdn/estimate/snice-estimate.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/snice-flip-card.js +1 -1
- package/dist/cdn/flip-card/snice-flip-card.min.js +1 -1
- package/dist/cdn/flow/snice-flow.js +1 -1
- package/dist/cdn/flow/snice-flow.min.js +1 -1
- package/dist/cdn/form-layout/snice-form-layout.js +1 -1
- package/dist/cdn/form-layout/snice-form-layout.min.js +1 -1
- package/dist/cdn/funnel/snice-funnel.js +1 -1
- package/dist/cdn/funnel/snice-funnel.min.js +1 -1
- package/dist/cdn/gantt/snice-gantt.js +1 -1
- package/dist/cdn/gantt/snice-gantt.min.js +1 -1
- package/dist/cdn/gauge/snice-gauge.js +1 -1
- package/dist/cdn/gauge/snice-gauge.min.js +1 -1
- package/dist/cdn/grid/snice-grid.js +1 -1
- package/dist/cdn/grid/snice-grid.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/invoice/snice-invoice.js +1 -1
- package/dist/cdn/invoice/snice-invoice.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/key-value/snice-key-value.js +1 -1
- package/dist/cdn/key-value/snice-key-value.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/leaderboard/snice-leaderboard.js +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.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/snice-map.js +1 -1
- package/dist/cdn/map/snice-map.min.js +1 -1
- package/dist/cdn/markdown/snice-markdown.js +1 -1
- package/dist/cdn/markdown/snice-markdown.min.js +1 -1
- 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/message-strip/snice-message-strip.js +1 -1
- package/dist/cdn/message-strip/snice-message-strip.min.js +1 -1
- package/dist/cdn/metric-table/snice-metric-table.js +1 -1
- package/dist/cdn/metric-table/snice-metric-table.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/snice-notification-center.js +1 -1
- package/dist/cdn/notification-center/snice-notification-center.min.js +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.js +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.min.js +1 -1
- package/dist/cdn/org-chart/snice-org-chart.js +1 -1
- package/dist/cdn/org-chart/snice-org-chart.min.js +1 -1
- 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/snice-pdf-viewer.js +1 -1
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.js +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.min.js +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.js +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.min.js +1 -1
- package/dist/cdn/popover/snice-popover.js +1 -1
- package/dist/cdn/popover/snice-popover.min.js +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.js +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.min.js +1 -1
- package/dist/cdn/product-card/snice-product-card.js +1 -1
- package/dist/cdn/product-card/snice-product-card.min.js +1 -1
- package/dist/cdn/progress/snice-progress.js +1 -1
- package/dist/cdn/progress/snice-progress.min.js +1 -1
- package/dist/cdn/progress-ring/snice-progress-ring.js +1 -1
- package/dist/cdn/progress-ring/snice-progress-ring.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/range-slider/snice-range-slider.js +1 -1
- package/dist/cdn/range-slider/snice-range-slider.min.js +1 -1
- package/dist/cdn/rating/snice-rating.js +1 -1
- package/dist/cdn/rating/snice-rating.min.js +1 -1
- package/dist/cdn/receipt/snice-receipt.js +1 -1
- package/dist/cdn/receipt/snice-receipt.min.js +1 -1
- package/dist/cdn/recipe/snice-recipe.js +1 -1
- package/dist/cdn/recipe/snice-recipe.min.js +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.js +220 -205
- 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 +220 -205
- 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/snice-sankey.js +1 -1
- package/dist/cdn/sankey/snice-sankey.min.js +1 -1
- package/dist/cdn/segmented-control/snice-segmented-control.js +1 -1
- package/dist/cdn/segmented-control/snice-segmented-control.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/snice-sortable.js +1 -1
- package/dist/cdn/sortable/snice-sortable.min.js +1 -1
- 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-button/snice-split-button.js +1 -1
- package/dist/cdn/split-button/snice-split-button.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/snice-spotlight.js +1 -1
- package/dist/cdn/spotlight/snice-spotlight.min.js +1 -1
- package/dist/cdn/stat-group/snice-stat-group.js +1 -1
- package/dist/cdn/stat-group/snice-stat-group.min.js +1 -1
- package/dist/cdn/step-input/snice-step-input.js +1 -1
- package/dist/cdn/step-input/snice-step-input.min.js +1 -1
- 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/snice-tag.js +1 -1
- package/dist/cdn/tag/snice-tag.min.js +1 -1
- package/dist/cdn/tag-input/snice-tag-input.js +1 -1
- package/dist/cdn/tag-input/snice-tag-input.min.js +1 -1
- package/dist/cdn/terminal/snice-terminal.js +1 -1
- package/dist/cdn/terminal/snice-terminal.min.js +1 -1
- package/dist/cdn/testimonial/snice-testimonial.js +1 -1
- package/dist/cdn/testimonial/snice-testimonial.min.js +1 -1
- package/dist/cdn/textarea/snice-textarea.js +1 -1
- package/dist/cdn/textarea/snice-textarea.min.js +1 -1
- package/dist/cdn/time-picker/snice-time-picker.js +1 -1
- package/dist/cdn/time-picker/snice-time-picker.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/user-card/snice-user-card.js +1 -1
- package/dist/cdn/user-card/snice-user-card.min.js +1 -1
- package/dist/cdn/video-player/snice-video-player.js +1 -1
- package/dist/cdn/video-player/snice-video-player.min.js +1 -1
- 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/snice-waterfall.js +1 -1
- package/dist/cdn/waterfall/snice-waterfall.min.js +1 -1
- package/dist/cdn/weather/snice-weather.js +1 -1
- package/dist/cdn/weather/snice-weather.min.js +1 -1
- package/dist/cdn/work-order/snice-work-order.js +1 -1
- package/dist/cdn/work-order/snice-work-order.min.js +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/index.cjs +217 -202
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +217 -202
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +217 -202
- package/dist/index.iife.js.map +1 -1
- package/dist/react/SniceProvider.js +1 -1
- package/dist/react/SniceRouter.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/matchRoute.js +1 -1
- package/dist/react/useRequestHandler.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/STORYBOOK.md +1 -1
- package/docs/ai/api.md +4 -5
- package/docs/ai/decorators.md +2 -2
- package/docs/components/drawer.md +1 -1
- package/docs/elements.md +1 -1
- package/docs/routing.md +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v5.
|
|
2
|
+
* snice v5.2.0
|
|
3
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.
|
|
@@ -8,7 +8,7 @@ var Snice = (function (exports) {
|
|
|
8
8
|
'use strict';
|
|
9
9
|
|
|
10
10
|
/*!
|
|
11
|
-
* snice v5.
|
|
11
|
+
* snice v5.1.0
|
|
12
12
|
* 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.
|
|
13
13
|
* (c) 2024
|
|
14
14
|
* Released under the MIT License.
|
|
@@ -2688,6 +2688,208 @@ var Snice = (function (exports) {
|
|
|
2688
2688
|
instance[CLEANUP].events = [];
|
|
2689
2689
|
}
|
|
2690
2690
|
|
|
2691
|
+
/**
|
|
2692
|
+
* @context decorator for receiving router context updates
|
|
2693
|
+
*/
|
|
2694
|
+
const CONTEXT_HANDLERS = getSymbol('context-handlers');
|
|
2695
|
+
/**
|
|
2696
|
+
* @context decorator for receiving router context updates
|
|
2697
|
+
*
|
|
2698
|
+
* Works on both methods and fields:
|
|
2699
|
+
*
|
|
2700
|
+
* - **Method form**: the method is invoked with the current Context on every
|
|
2701
|
+
* update (and once at register time so the first render sees the context).
|
|
2702
|
+
* - **Field form**: the field is overwritten with the current Context on
|
|
2703
|
+
* every update (and once at register time). Pair with `@property` if you
|
|
2704
|
+
* want assignment to also schedule a re-render.
|
|
2705
|
+
*
|
|
2706
|
+
* @example
|
|
2707
|
+
* ```typescript
|
|
2708
|
+
* @element('my-layout')
|
|
2709
|
+
* class MyLayout extends HTMLElement {
|
|
2710
|
+
* // Method form
|
|
2711
|
+
* @context()
|
|
2712
|
+
* handleContext(ctx: Context) {
|
|
2713
|
+
* this.renderNav(ctx.navigation.placards, ctx.navigation.route);
|
|
2714
|
+
* }
|
|
2715
|
+
*
|
|
2716
|
+
* // Field form — the field is populated before first render
|
|
2717
|
+
* @context() ctx!: Context;
|
|
2718
|
+
*
|
|
2719
|
+
* // Field + @property — assignment also triggers re-render
|
|
2720
|
+
* @property({ attribute: false }) @context() reactiveCtx!: Context;
|
|
2721
|
+
* }
|
|
2722
|
+
* ```
|
|
2723
|
+
*/
|
|
2724
|
+
function context$1(options = {}) {
|
|
2725
|
+
return function (value, decoratorContext) {
|
|
2726
|
+
const name = decoratorContext.name;
|
|
2727
|
+
const kind = decoratorContext.kind;
|
|
2728
|
+
const registerHandler = function () {
|
|
2729
|
+
const constructor = this.constructor;
|
|
2730
|
+
// De-dupe: methods identify by reference, fields identify by name.
|
|
2731
|
+
if (!Object.prototype.hasOwnProperty.call(constructor, CONTEXT_METHODS)) {
|
|
2732
|
+
constructor[CONTEXT_METHODS] = new Set();
|
|
2733
|
+
}
|
|
2734
|
+
const dedupeKey = kind === 'method' ? value : `field:${name}`;
|
|
2735
|
+
if (constructor[CONTEXT_METHODS].has(dedupeKey))
|
|
2736
|
+
return;
|
|
2737
|
+
constructor[CONTEXT_METHODS].add(dedupeKey);
|
|
2738
|
+
if (!Object.prototype.hasOwnProperty.call(constructor, CONTEXT_HANDLERS)) {
|
|
2739
|
+
const inherited = constructor[CONTEXT_HANDLERS];
|
|
2740
|
+
constructor[CONTEXT_HANDLERS] = inherited ? [...inherited] : [];
|
|
2741
|
+
}
|
|
2742
|
+
if (kind === 'method') {
|
|
2743
|
+
constructor[CONTEXT_HANDLERS].push({
|
|
2744
|
+
kind: 'method',
|
|
2745
|
+
methodName: name,
|
|
2746
|
+
method: value,
|
|
2747
|
+
options,
|
|
2748
|
+
});
|
|
2749
|
+
}
|
|
2750
|
+
else if (kind === 'field' || kind === 'accessor') {
|
|
2751
|
+
constructor[CONTEXT_HANDLERS].push({
|
|
2752
|
+
kind: 'field',
|
|
2753
|
+
fieldName: name,
|
|
2754
|
+
options,
|
|
2755
|
+
});
|
|
2756
|
+
}
|
|
2757
|
+
};
|
|
2758
|
+
if (kind === 'method') {
|
|
2759
|
+
decoratorContext.addInitializer(registerHandler);
|
|
2760
|
+
return value;
|
|
2761
|
+
}
|
|
2762
|
+
// Field decorators: do registration via the init function (fires per
|
|
2763
|
+
// instance during construction, with `this` bound). Returning the init
|
|
2764
|
+
// function is the canonical Stage 3 way for field decorators —
|
|
2765
|
+
// `addInitializer` for fields can be late or unreliable across runtimes.
|
|
2766
|
+
return function (initialValue) {
|
|
2767
|
+
registerHandler.call(this);
|
|
2768
|
+
return initialValue;
|
|
2769
|
+
};
|
|
2770
|
+
};
|
|
2771
|
+
}
|
|
2772
|
+
/**
|
|
2773
|
+
* Setup context handler for an element instance
|
|
2774
|
+
* Called automatically during element connection
|
|
2775
|
+
*/
|
|
2776
|
+
// Accepts an HTMLElement OR a controller instance — both are plain objects
|
|
2777
|
+
// that may carry CONTEXT_HANDLER and a constructor with CONTEXT_HANDLERS.
|
|
2778
|
+
function setupContextHandler(element) {
|
|
2779
|
+
const handlers = element.constructor[CONTEXT_HANDLERS];
|
|
2780
|
+
if (!handlers || !Array.isArray(handlers) || handlers.length === 0) {
|
|
2781
|
+
return;
|
|
2782
|
+
}
|
|
2783
|
+
// Get the Context instance from the router
|
|
2784
|
+
const ctx = element[CONTEXT_HANDLER];
|
|
2785
|
+
if (!ctx) {
|
|
2786
|
+
return;
|
|
2787
|
+
}
|
|
2788
|
+
// Store the Context instance for cleanup
|
|
2789
|
+
element[NAVIGATION_CONTEXT_INSTANCE] = ctx;
|
|
2790
|
+
// Per-element Map of handler-name → wrapped function. Symbol-keyed so it
|
|
2791
|
+
// doesn't pollute the element's public surface.
|
|
2792
|
+
let wrapped = element[WRAPPED_CONTEXT_HANDLERS];
|
|
2793
|
+
if (!wrapped) {
|
|
2794
|
+
wrapped = new Map();
|
|
2795
|
+
element[WRAPPED_CONTEXT_HANDLERS] = wrapped;
|
|
2796
|
+
}
|
|
2797
|
+
// Register each handler with the Context
|
|
2798
|
+
for (const handler of handlers) {
|
|
2799
|
+
const { kind, options } = handler;
|
|
2800
|
+
const handlerName = kind === 'field' ? handler.fieldName : handler.methodName;
|
|
2801
|
+
// Create wrapped method with timing controls
|
|
2802
|
+
const wrappedFn = function (context) {
|
|
2803
|
+
// Skip if already called once
|
|
2804
|
+
if (options.once && element[CONTEXT_CALLED]) {
|
|
2805
|
+
return;
|
|
2806
|
+
}
|
|
2807
|
+
const callMethod = () => {
|
|
2808
|
+
if (kind === 'field') {
|
|
2809
|
+
element[handler.fieldName] = context;
|
|
2810
|
+
}
|
|
2811
|
+
else {
|
|
2812
|
+
handler.method.call(element, context);
|
|
2813
|
+
}
|
|
2814
|
+
// Handle once option
|
|
2815
|
+
if (options.once) {
|
|
2816
|
+
element[CONTEXT_CALLED] = true;
|
|
2817
|
+
// Unregister after first call
|
|
2818
|
+
const ctx = element[NAVIGATION_CONTEXT_INSTANCE];
|
|
2819
|
+
if (ctx && typeof ctx[CONTEXT_UNREGISTER] === 'function') {
|
|
2820
|
+
ctx[CONTEXT_UNREGISTER](element);
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
};
|
|
2824
|
+
// Per-handler timer slot to avoid debounce/throttle handlers on the same
|
|
2825
|
+
// element overwriting each other's state.
|
|
2826
|
+
const timerSlot = element[CONTEXT_TIMER] ||
|
|
2827
|
+
(element[CONTEXT_TIMER] = {});
|
|
2828
|
+
const timerKey = handlerName;
|
|
2829
|
+
if (options.debounce) {
|
|
2830
|
+
clearTimeout(timerSlot[timerKey]?.timeout);
|
|
2831
|
+
timerSlot[timerKey] = {
|
|
2832
|
+
timeout: setTimeout(callMethod, options.debounce),
|
|
2833
|
+
};
|
|
2834
|
+
return;
|
|
2835
|
+
}
|
|
2836
|
+
if (options.throttle) {
|
|
2837
|
+
const now = Date.now();
|
|
2838
|
+
const lastCall = timerSlot[timerKey]?.lastCall || 0;
|
|
2839
|
+
if (now - lastCall >= options.throttle) {
|
|
2840
|
+
timerSlot[timerKey] = { lastCall: now };
|
|
2841
|
+
callMethod();
|
|
2842
|
+
}
|
|
2843
|
+
return;
|
|
2844
|
+
}
|
|
2845
|
+
callMethod();
|
|
2846
|
+
};
|
|
2847
|
+
wrapped.set(handlerName, wrappedFn);
|
|
2848
|
+
// Register with the Context using the handler name (lookup goes through
|
|
2849
|
+
// the WRAPPED_CONTEXT_HANDLERS Map on the element).
|
|
2850
|
+
if (typeof ctx[CONTEXT_REGISTER] === 'function') {
|
|
2851
|
+
ctx[CONTEXT_REGISTER](element, handlerName);
|
|
2852
|
+
}
|
|
2853
|
+
// Synchronously emit current context to the just-registered handler so
|
|
2854
|
+
// field/method values are populated BEFORE the first render microtask
|
|
2855
|
+
// flushes — eliminates the cold-render flicker where ctx is undefined.
|
|
2856
|
+
try {
|
|
2857
|
+
wrappedFn(ctx);
|
|
2858
|
+
}
|
|
2859
|
+
catch (error) {
|
|
2860
|
+
console.error(`Error invoking @context handler at registration:`, error);
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
/**
|
|
2865
|
+
* Cleanup context handler for an element instance
|
|
2866
|
+
* Called automatically during element disconnection
|
|
2867
|
+
*/
|
|
2868
|
+
function cleanupContextHandler(element) {
|
|
2869
|
+
const handlers = element.constructor[CONTEXT_HANDLERS];
|
|
2870
|
+
if (!handlers || !Array.isArray(handlers) || handlers.length === 0) {
|
|
2871
|
+
return;
|
|
2872
|
+
}
|
|
2873
|
+
// Clear any pending debounce timers (per-handler slots)
|
|
2874
|
+
const timerSlot = element[CONTEXT_TIMER];
|
|
2875
|
+
if (timerSlot && typeof timerSlot === 'object') {
|
|
2876
|
+
for (const key of Object.keys(timerSlot)) {
|
|
2877
|
+
if (timerSlot[key]?.timeout)
|
|
2878
|
+
clearTimeout(timerSlot[key].timeout);
|
|
2879
|
+
}
|
|
2880
|
+
delete element[CONTEXT_TIMER];
|
|
2881
|
+
}
|
|
2882
|
+
// Drop the per-element wrapped-handlers Map.
|
|
2883
|
+
delete element[WRAPPED_CONTEXT_HANDLERS];
|
|
2884
|
+
// Unregister from Context if available
|
|
2885
|
+
const ctx = element[NAVIGATION_CONTEXT_INSTANCE];
|
|
2886
|
+
if (ctx && typeof ctx[CONTEXT_UNREGISTER] === 'function') {
|
|
2887
|
+
ctx[CONTEXT_UNREGISTER](element);
|
|
2888
|
+
}
|
|
2889
|
+
delete element[NAVIGATION_CONTEXT_INSTANCE];
|
|
2890
|
+
delete element[CONTEXT_CALLED];
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2691
2893
|
// Controller-scoped cleanup registry
|
|
2692
2894
|
class ControllerScope {
|
|
2693
2895
|
constructor() {
|
|
@@ -2793,6 +2995,14 @@ var Snice = (function (exports) {
|
|
|
2793
2995
|
if (routerContext !== undefined) {
|
|
2794
2996
|
controllerInstance[ROUTER_CONTEXT] = routerContext;
|
|
2795
2997
|
}
|
|
2998
|
+
// Mirror the element's CONTEXT_HANDLER onto the controller so
|
|
2999
|
+
// setupContextHandler can wire @context() handlers declared on the
|
|
3000
|
+
// controller class. This makes @context() work identically on elements
|
|
3001
|
+
// and controllers.
|
|
3002
|
+
const ctxHandler = element[CONTEXT_HANDLER];
|
|
3003
|
+
if (ctxHandler !== undefined) {
|
|
3004
|
+
controllerInstance[CONTEXT_HANDLER] = ctxHandler;
|
|
3005
|
+
}
|
|
2796
3006
|
// Store references
|
|
2797
3007
|
element[CONTROLLER_KEY] = controllerInstance;
|
|
2798
3008
|
element[CONTROLLER_NAME_KEY] = controllerName;
|
|
@@ -2831,6 +3041,8 @@ var Snice = (function (exports) {
|
|
|
2831
3041
|
setupResponseHandlers(controllerInstance, element);
|
|
2832
3042
|
// Setup @on event handlers for controller
|
|
2833
3043
|
setupEventHandlers(controllerInstance, element);
|
|
3044
|
+
// Setup @context() handlers for controller (fires sync emit at register)
|
|
3045
|
+
setupContextHandler(controllerInstance);
|
|
2834
3046
|
element.dispatchEvent(new CustomEvent('controller-attached', {
|
|
2835
3047
|
detail: { name: controllerName, controller: controllerInstance }
|
|
2836
3048
|
}));
|
|
@@ -2867,12 +3079,15 @@ var Snice = (function (exports) {
|
|
|
2867
3079
|
cleanupResponseHandlers(controllerInstance);
|
|
2868
3080
|
// Cleanup @on event handlers for controller
|
|
2869
3081
|
cleanupEventHandlers(controllerInstance);
|
|
3082
|
+
// Cleanup @context() handlers for controller
|
|
3083
|
+
cleanupContextHandler(controllerInstance);
|
|
2870
3084
|
// Cleanup the controller scope
|
|
2871
3085
|
if (scope) {
|
|
2872
3086
|
await scope.cleanup();
|
|
2873
3087
|
}
|
|
2874
|
-
// Clean up router
|
|
3088
|
+
// Clean up router/context references
|
|
2875
3089
|
delete controllerInstance[ROUTER_CONTEXT];
|
|
3090
|
+
delete controllerInstance[CONTEXT_HANDLER];
|
|
2876
3091
|
delete element[CONTROLLER_KEY];
|
|
2877
3092
|
delete element[CONTROLLER_NAME_KEY];
|
|
2878
3093
|
delete element[CONTROLLER_OPERATIONS];
|
|
@@ -2967,206 +3182,6 @@ var Snice = (function (exports) {
|
|
|
2967
3182
|
globalThis.sniceNativeControllerObserver = observer;
|
|
2968
3183
|
}
|
|
2969
3184
|
|
|
2970
|
-
/**
|
|
2971
|
-
* @context decorator for receiving router context updates
|
|
2972
|
-
*/
|
|
2973
|
-
const CONTEXT_HANDLERS = getSymbol('context-handlers');
|
|
2974
|
-
/**
|
|
2975
|
-
* @context decorator for receiving router context updates
|
|
2976
|
-
*
|
|
2977
|
-
* Works on both methods and fields:
|
|
2978
|
-
*
|
|
2979
|
-
* - **Method form**: the method is invoked with the current Context on every
|
|
2980
|
-
* update (and once at register time so the first render sees the context).
|
|
2981
|
-
* - **Field form**: the field is overwritten with the current Context on
|
|
2982
|
-
* every update (and once at register time). Pair with `@property` if you
|
|
2983
|
-
* want assignment to also schedule a re-render.
|
|
2984
|
-
*
|
|
2985
|
-
* @example
|
|
2986
|
-
* ```typescript
|
|
2987
|
-
* @element('my-layout')
|
|
2988
|
-
* class MyLayout extends HTMLElement {
|
|
2989
|
-
* // Method form
|
|
2990
|
-
* @context()
|
|
2991
|
-
* handleContext(ctx: Context) {
|
|
2992
|
-
* this.renderNav(ctx.navigation.placards, ctx.navigation.route);
|
|
2993
|
-
* }
|
|
2994
|
-
*
|
|
2995
|
-
* // Field form — the field is populated before first render
|
|
2996
|
-
* @context() ctx!: Context;
|
|
2997
|
-
*
|
|
2998
|
-
* // Field + @property — assignment also triggers re-render
|
|
2999
|
-
* @property({ attribute: false }) @context() reactiveCtx!: Context;
|
|
3000
|
-
* }
|
|
3001
|
-
* ```
|
|
3002
|
-
*/
|
|
3003
|
-
function context$1(options = {}) {
|
|
3004
|
-
return function (value, decoratorContext) {
|
|
3005
|
-
const name = decoratorContext.name;
|
|
3006
|
-
const kind = decoratorContext.kind;
|
|
3007
|
-
const registerHandler = function () {
|
|
3008
|
-
const constructor = this.constructor;
|
|
3009
|
-
// De-dupe: methods identify by reference, fields identify by name.
|
|
3010
|
-
if (!Object.prototype.hasOwnProperty.call(constructor, CONTEXT_METHODS)) {
|
|
3011
|
-
constructor[CONTEXT_METHODS] = new Set();
|
|
3012
|
-
}
|
|
3013
|
-
const dedupeKey = kind === 'method' ? value : `field:${name}`;
|
|
3014
|
-
if (constructor[CONTEXT_METHODS].has(dedupeKey))
|
|
3015
|
-
return;
|
|
3016
|
-
constructor[CONTEXT_METHODS].add(dedupeKey);
|
|
3017
|
-
if (!Object.prototype.hasOwnProperty.call(constructor, CONTEXT_HANDLERS)) {
|
|
3018
|
-
const inherited = constructor[CONTEXT_HANDLERS];
|
|
3019
|
-
constructor[CONTEXT_HANDLERS] = inherited ? [...inherited] : [];
|
|
3020
|
-
}
|
|
3021
|
-
if (kind === 'method') {
|
|
3022
|
-
constructor[CONTEXT_HANDLERS].push({
|
|
3023
|
-
kind: 'method',
|
|
3024
|
-
methodName: name,
|
|
3025
|
-
method: value,
|
|
3026
|
-
options,
|
|
3027
|
-
});
|
|
3028
|
-
}
|
|
3029
|
-
else if (kind === 'field' || kind === 'accessor') {
|
|
3030
|
-
constructor[CONTEXT_HANDLERS].push({
|
|
3031
|
-
kind: 'field',
|
|
3032
|
-
fieldName: name,
|
|
3033
|
-
options,
|
|
3034
|
-
});
|
|
3035
|
-
}
|
|
3036
|
-
};
|
|
3037
|
-
if (kind === 'method') {
|
|
3038
|
-
decoratorContext.addInitializer(registerHandler);
|
|
3039
|
-
return value;
|
|
3040
|
-
}
|
|
3041
|
-
// Field decorators: do registration via the init function (fires per
|
|
3042
|
-
// instance during construction, with `this` bound). Returning the init
|
|
3043
|
-
// function is the canonical Stage 3 way for field decorators —
|
|
3044
|
-
// `addInitializer` for fields can be late or unreliable across runtimes.
|
|
3045
|
-
return function (initialValue) {
|
|
3046
|
-
registerHandler.call(this);
|
|
3047
|
-
return initialValue;
|
|
3048
|
-
};
|
|
3049
|
-
};
|
|
3050
|
-
}
|
|
3051
|
-
/**
|
|
3052
|
-
* Setup context handler for an element instance
|
|
3053
|
-
* Called automatically during element connection
|
|
3054
|
-
*/
|
|
3055
|
-
function setupContextHandler(element) {
|
|
3056
|
-
const handlers = element.constructor[CONTEXT_HANDLERS];
|
|
3057
|
-
if (!handlers || !Array.isArray(handlers) || handlers.length === 0) {
|
|
3058
|
-
return;
|
|
3059
|
-
}
|
|
3060
|
-
// Get the Context instance from the router
|
|
3061
|
-
const ctx = element[CONTEXT_HANDLER];
|
|
3062
|
-
if (!ctx) {
|
|
3063
|
-
return;
|
|
3064
|
-
}
|
|
3065
|
-
// Store the Context instance for cleanup
|
|
3066
|
-
element[NAVIGATION_CONTEXT_INSTANCE] = ctx;
|
|
3067
|
-
// Per-element Map of handler-name → wrapped function. Symbol-keyed so it
|
|
3068
|
-
// doesn't pollute the element's public surface.
|
|
3069
|
-
let wrapped = element[WRAPPED_CONTEXT_HANDLERS];
|
|
3070
|
-
if (!wrapped) {
|
|
3071
|
-
wrapped = new Map();
|
|
3072
|
-
element[WRAPPED_CONTEXT_HANDLERS] = wrapped;
|
|
3073
|
-
}
|
|
3074
|
-
// Register each handler with the Context
|
|
3075
|
-
for (const handler of handlers) {
|
|
3076
|
-
const { kind, options } = handler;
|
|
3077
|
-
const handlerName = kind === 'field' ? handler.fieldName : handler.methodName;
|
|
3078
|
-
// Create wrapped method with timing controls
|
|
3079
|
-
const wrappedFn = function (context) {
|
|
3080
|
-
// Skip if already called once
|
|
3081
|
-
if (options.once && element[CONTEXT_CALLED]) {
|
|
3082
|
-
return;
|
|
3083
|
-
}
|
|
3084
|
-
const callMethod = () => {
|
|
3085
|
-
if (kind === 'field') {
|
|
3086
|
-
element[handler.fieldName] = context;
|
|
3087
|
-
}
|
|
3088
|
-
else {
|
|
3089
|
-
handler.method.call(element, context);
|
|
3090
|
-
}
|
|
3091
|
-
// Handle once option
|
|
3092
|
-
if (options.once) {
|
|
3093
|
-
element[CONTEXT_CALLED] = true;
|
|
3094
|
-
// Unregister after first call
|
|
3095
|
-
const ctx = element[NAVIGATION_CONTEXT_INSTANCE];
|
|
3096
|
-
if (ctx && typeof ctx[CONTEXT_UNREGISTER] === 'function') {
|
|
3097
|
-
ctx[CONTEXT_UNREGISTER](element);
|
|
3098
|
-
}
|
|
3099
|
-
}
|
|
3100
|
-
};
|
|
3101
|
-
// Per-handler timer slot to avoid debounce/throttle handlers on the same
|
|
3102
|
-
// element overwriting each other's state.
|
|
3103
|
-
const timerSlot = element[CONTEXT_TIMER] ||
|
|
3104
|
-
(element[CONTEXT_TIMER] = {});
|
|
3105
|
-
const timerKey = handlerName;
|
|
3106
|
-
if (options.debounce) {
|
|
3107
|
-
clearTimeout(timerSlot[timerKey]?.timeout);
|
|
3108
|
-
timerSlot[timerKey] = {
|
|
3109
|
-
timeout: setTimeout(callMethod, options.debounce),
|
|
3110
|
-
};
|
|
3111
|
-
return;
|
|
3112
|
-
}
|
|
3113
|
-
if (options.throttle) {
|
|
3114
|
-
const now = Date.now();
|
|
3115
|
-
const lastCall = timerSlot[timerKey]?.lastCall || 0;
|
|
3116
|
-
if (now - lastCall >= options.throttle) {
|
|
3117
|
-
timerSlot[timerKey] = { lastCall: now };
|
|
3118
|
-
callMethod();
|
|
3119
|
-
}
|
|
3120
|
-
return;
|
|
3121
|
-
}
|
|
3122
|
-
callMethod();
|
|
3123
|
-
};
|
|
3124
|
-
wrapped.set(handlerName, wrappedFn);
|
|
3125
|
-
// Register with the Context using the handler name (lookup goes through
|
|
3126
|
-
// the WRAPPED_CONTEXT_HANDLERS Map on the element).
|
|
3127
|
-
if (typeof ctx[CONTEXT_REGISTER] === 'function') {
|
|
3128
|
-
ctx[CONTEXT_REGISTER](element, handlerName);
|
|
3129
|
-
}
|
|
3130
|
-
// Synchronously emit current context to the just-registered handler so
|
|
3131
|
-
// field/method values are populated BEFORE the first render microtask
|
|
3132
|
-
// flushes — eliminates the cold-render flicker where ctx is undefined.
|
|
3133
|
-
try {
|
|
3134
|
-
wrappedFn(ctx);
|
|
3135
|
-
}
|
|
3136
|
-
catch (error) {
|
|
3137
|
-
console.error(`Error invoking @context handler at registration:`, error);
|
|
3138
|
-
}
|
|
3139
|
-
}
|
|
3140
|
-
}
|
|
3141
|
-
/**
|
|
3142
|
-
* Cleanup context handler for an element instance
|
|
3143
|
-
* Called automatically during element disconnection
|
|
3144
|
-
*/
|
|
3145
|
-
function cleanupContextHandler(element) {
|
|
3146
|
-
const handlers = element.constructor[CONTEXT_HANDLERS];
|
|
3147
|
-
if (!handlers || !Array.isArray(handlers) || handlers.length === 0) {
|
|
3148
|
-
return;
|
|
3149
|
-
}
|
|
3150
|
-
// Clear any pending debounce timers (per-handler slots)
|
|
3151
|
-
const timerSlot = element[CONTEXT_TIMER];
|
|
3152
|
-
if (timerSlot && typeof timerSlot === 'object') {
|
|
3153
|
-
for (const key of Object.keys(timerSlot)) {
|
|
3154
|
-
if (timerSlot[key]?.timeout)
|
|
3155
|
-
clearTimeout(timerSlot[key].timeout);
|
|
3156
|
-
}
|
|
3157
|
-
delete element[CONTEXT_TIMER];
|
|
3158
|
-
}
|
|
3159
|
-
// Drop the per-element wrapped-handlers Map.
|
|
3160
|
-
delete element[WRAPPED_CONTEXT_HANDLERS];
|
|
3161
|
-
// Unregister from Context if available
|
|
3162
|
-
const ctx = element[NAVIGATION_CONTEXT_INSTANCE];
|
|
3163
|
-
if (ctx && typeof ctx[CONTEXT_UNREGISTER] === 'function') {
|
|
3164
|
-
ctx[CONTEXT_UNREGISTER](element);
|
|
3165
|
-
}
|
|
3166
|
-
delete element[NAVIGATION_CONTEXT_INSTANCE];
|
|
3167
|
-
delete element[CONTEXT_CALLED];
|
|
3168
|
-
}
|
|
3169
|
-
|
|
3170
3185
|
/**
|
|
3171
3186
|
* @render and @styles decorators for Snice v3.0.0
|
|
3172
3187
|
* Provides automatic differential rendering on property changes
|
|
@@ -6164,7 +6179,7 @@ var Snice = (function (exports) {
|
|
|
6164
6179
|
}
|
|
6165
6180
|
|
|
6166
6181
|
/*!
|
|
6167
|
-
* snice v5.
|
|
6182
|
+
* snice v5.1.0
|
|
6168
6183
|
* 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.
|
|
6169
6184
|
* (c) 2024
|
|
6170
6185
|
* Released under the MIT License.
|
|
@@ -6183,7 +6198,7 @@ var Snice = (function (exports) {
|
|
|
6183
6198
|
}
|
|
6184
6199
|
|
|
6185
6200
|
/*!
|
|
6186
|
-
* snice v5.
|
|
6201
|
+
* snice v5.1.0
|
|
6187
6202
|
* 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.
|
|
6188
6203
|
* (c) 2024
|
|
6189
6204
|
* Released under the MIT License.
|