@oddsmith/ui 0.0.0 → 1.0.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/LICENSE +1 -1
- package/README.md +4 -115
- package/dist/components/os-leaderboard-casino/assets/fallback/catalog.json +9 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/catalog.json.js +13 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/catalog.json.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/config.json +8 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/defaults/glam-sections.json +564 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/fonts.json +3 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/labels.json +5 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/labels.json.js +12 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/labels.json.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/manifest.json +6 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/presets.json +38 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/presets.json.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/presets.json.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json +601 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json.js +8 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/themes.json +69 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/themes.json.js +73 -0
- package/dist/components/os-leaderboard-casino/assets/fallback/themes.json.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.casino-credits.svg +7 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.casino-credits.svg.js +12 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.casino-credits.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.default.svg +7 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.default.svg.js +12 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.default.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.elite-bonus.svg +5 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.elite-bonus.svg.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.elite-bonus.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.free-spins.svg +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.free-spins.svg.js +15 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.free-spins.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.grand-jackpot.svg +5 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.grand-jackpot.svg.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.grand-jackpot.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.high-roller.svg +5 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.high-roller.svg.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.high-roller.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.mystery-bonus.svg +8 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.mystery-bonus.svg.js +13 -0
- package/dist/components/os-leaderboard-casino/assets/icons/prize.mystery-bonus.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/stat.clock.svg +4 -0
- package/dist/components/os-leaderboard-casino/assets/icons/stat.clock.svg.js +9 -0
- package/dist/components/os-leaderboard-casino/assets/icons/stat.clock.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/stat.gift.svg +5 -0
- package/dist/components/os-leaderboard-casino/assets/icons/stat.gift.svg.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/stat.gift.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/stat.users.svg +5 -0
- package/dist/components/os-leaderboard-casino/assets/icons/stat.users.svg.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/stat.users.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-down.svg +4 -0
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-down.svg.js +9 -0
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-down.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-neutral.svg +4 -0
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-neutral.svg.js +9 -0
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-neutral.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-up.svg +4 -0
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-up.svg.js +9 -0
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-up.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/vip.crown.svg +7 -0
- package/dist/components/os-leaderboard-casino/assets/icons/vip.crown.svg.js +12 -0
- package/dist/components/os-leaderboard-casino/assets/icons/vip.crown.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.bag.svg +5 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.bag.svg.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.bag.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.bolt.svg +4 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.bolt.svg.js +9 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.bolt.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.coin.svg +5 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.coin.svg.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.coin.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.fire.svg +4 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.fire.svg.js +9 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.fire.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.gem.svg +5 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.gem.svg.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.gem.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.trophy.svg +5 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.trophy.svg.js +10 -0
- package/dist/components/os-leaderboard-casino/assets/icons/win.trophy.svg.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/cards.png +0 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/cards.png.js +5 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/cards.png.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/chips.png +0 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/chips.png.js +5 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/chips.png.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/dice.png +0 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/dice.png.js +5 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/dice.png.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/gates-of-olympus.png +0 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/gates-of-olympus.png.js +5 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/gates-of-olympus.png.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/roulette.png +0 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/roulette.png.js +5 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/roulette.png.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/slot-machine.png +0 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/slot-machine.png.js +5 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/slot-machine.png.js.map +1 -0
- package/dist/components/os-leaderboard-casino/assets/images/logo.png +0 -0
- package/dist/components/os-leaderboard-casino/constants/defaults.js +9 -0
- package/dist/components/os-leaderboard-casino/constants/defaults.js.map +1 -0
- package/dist/components/os-leaderboard-casino/constants/tags.js +15 -0
- package/dist/components/os-leaderboard-casino/constants/tags.js.map +1 -0
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.html.js +20 -0
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.js +152 -0
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.js.map +1 -0
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/index.js +39 -0
- package/dist/components/os-leaderboard-casino/index.js.map +1 -0
- package/dist/components/os-leaderboard-casino/integration/assemble-assets.js +48 -0
- package/dist/components/os-leaderboard-casino/integration/assemble-assets.js.map +1 -0
- package/dist/components/os-leaderboard-casino/integration/assets-context.js +64 -0
- package/dist/components/os-leaderboard-casino/integration/assets-context.js.map +1 -0
- package/dist/components/os-leaderboard-casino/integration/load-assets.js +22 -0
- package/dist/components/os-leaderboard-casino/integration/load-assets.js.map +1 -0
- package/dist/components/os-leaderboard-casino/integration/resolve-input.js +99 -0
- package/dist/components/os-leaderboard-casino/integration/resolve-input.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.html.js +46 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.js +74 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/components/event-icons.js +116 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/components/event-icons.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.js +89 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.html.js +18 -0
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.js +38 -0
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.html.js +15 -0
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.js +86 -0
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.html.js +34 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.js +159 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.html.js +33 -0
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.js +73 -0
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/components/win-icons.js +8 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/components/win-icons.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-item.js +57 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-item.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.html.js +17 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.js +287 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-variants.js +16 -0
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-variants.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.html.js +18 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.js +134 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.html.js +34 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.js +67 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.html.js +38 -0
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.html.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.js +182 -0
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.js.map +1 -0
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.scss.js +5 -0
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.scss.js.map +1 -0
- package/dist/components/os-leaderboard-casino/services/adapter.service.js +49 -0
- package/dist/components/os-leaderboard-casino/services/adapter.service.js.map +1 -0
- package/dist/components/os-leaderboard-casino/services/icon.service.js +192 -0
- package/dist/components/os-leaderboard-casino/services/icon.service.js.map +1 -0
- package/dist/components/os-leaderboard-casino/theme/prize-resolve.js +11 -0
- package/dist/components/os-leaderboard-casino/theme/prize-resolve.js.map +1 -0
- package/dist/components/os-leaderboard-casino/theme/styles.js +179 -0
- package/dist/components/os-leaderboard-casino/theme/styles.js.map +1 -0
- package/dist/components/os-leaderboard-casino/theme/vip-icons.js +6 -0
- package/dist/components/os-leaderboard-casino/theme/vip-icons.js.map +1 -0
- package/dist/components/os-leaderboard-casino/theme/vip-mark.js +20 -0
- package/dist/components/os-leaderboard-casino/theme/vip-mark.js.map +1 -0
- package/dist/components/os-leaderboard-casino/types/data.js +7 -0
- package/dist/components/os-leaderboard-casino/types/data.js.map +1 -0
- package/dist/components/os-leaderboard-casino/types/events.js +8 -0
- package/dist/components/os-leaderboard-casino/types/events.js.map +1 -0
- package/dist/components/os-leaderboard-casino/types/state.js +12 -0
- package/dist/components/os-leaderboard-casino/types/state.js.map +1 -0
- package/dist/index.d.ts +734 -0
- package/dist/shared/lib/lit/component.js +8 -0
- package/dist/shared/lib/lit/component.js.map +1 -0
- package/dist/shared/lib/lit/safe-custom-element.js +7 -0
- package/dist/shared/lib/lit/safe-custom-element.js.map +1 -0
- package/dist/shared/lib/lit/scss.js +8 -0
- package/dist/shared/lib/lit/scss.js.map +1 -0
- package/dist/shared/vendor/keen-slider-keen-slider.es.js +538 -0
- package/dist/shared/vendor/keen-slider-keen-slider.es.js.map +1 -0
- package/package.json +36 -39
- package/.eleventy.cjs +0 -14
- package/custom-elements.json +0 -1539
- package/docs/_README/index.html +0 -4
- package/docs/api/index.html +0 -2100
- package/docs/components.bundle.js +0 -1669
- package/docs/components.bundle.js.map +0 -1
- package/docs/docs.css +0 -162
- package/docs/examples/index.html +0 -56
- package/docs/index.html +0 -53
- package/docs/install/index.html +0 -45
- package/docs/prism-okaidia.css +0 -123
- package/docs-src/.nojekyll +0 -0
- package/docs-src/_README.md +0 -7
- package/docs-src/_data/api.11tydata.js +0 -8
- package/docs-src/_includes/example.11ty.js +0 -35
- package/docs-src/_includes/footer.11ty.js +0 -6
- package/docs-src/_includes/header.11ty.js +0 -7
- package/docs-src/_includes/nav.11ty.js +0 -11
- package/docs-src/_includes/page.11ty.js +0 -32
- package/docs-src/_includes/relative-path.cjs +0 -9
- package/docs-src/api.11ty.js +0 -85
- package/docs-src/bundle.ts +0 -9
- package/docs-src/docs.css +0 -162
- package/docs-src/examples/index.md +0 -15
- package/docs-src/index.md +0 -39
- package/docs-src/install.md +0 -28
- package/docs-src/package.json +0 -3
- package/index.html +0 -19
- package/karma.conf.cjs +0 -24
- package/main.css +0 -210
- package/main.ts +0 -124
- package/previews/casino.ts +0 -12
- package/previews/catalog.ts +0 -94
- package/previews/leaderboard-v1.ts +0 -12
- package/previews/leaderboard-v2.ts +0 -17
- package/previews/sample-data.ts +0 -101
- package/previews/sf-leaderboard.ts +0 -100
- package/previews/sf-live-feed.ts +0 -15
- package/previews/streaks.ts +0 -40
- package/previews/types.ts +0 -18
- package/src/components/README.md +0 -16
- package/src/components/casino-leaderboard/casino-leaderboard.html +0 -80
- package/src/components/casino-leaderboard/casino-leaderboard.scss +0 -585
- package/src/components/casino-leaderboard/casino-leaderboard.ts +0 -136
- package/src/components/casino-leaderboard/data.ts +0 -111
- package/src/components/casino-leaderboard/index.ts +0 -5
- package/src/components/casino-leaderboard/todo.txt +0 -2
- package/src/components/casino-leaderboard/types.ts +0 -19
- package/src/components/leaderboard/components/leaderboard.ts +0 -373
- package/src/components/leaderboard/components/player-card.ts +0 -342
- package/src/components/leaderboard/components/ui.ts +0 -452
- package/src/components/leaderboard/data.ts +0 -152
- package/src/components/leaderboard/index.ts +0 -2
- package/src/components/leaderboard/main.ts +0 -42
- package/src/components/leaderboard/styles.ts +0 -67
- package/src/components/leaderboard/types.ts +0 -28
- package/src/components/leaderboard-v2/components/sf-leaderboard-player.ts +0 -451
- package/src/components/leaderboard-v2/components/sf-leaderboard-ui.ts +0 -512
- package/src/components/leaderboard-v2/components/sf-leaderboard.ts +0 -205
- package/src/components/leaderboard-v2/constants.ts +0 -16
- package/src/components/leaderboard-v2/demo/sample-data.ts +0 -152
- package/src/components/leaderboard-v2/events.ts +0 -13
- package/src/components/leaderboard-v2/icons.ts +0 -22
- package/src/components/leaderboard-v2/index.ts +0 -23
- package/src/components/leaderboard-v2/sf-leaderboard.html +0 -1
- package/src/components/leaderboard-v2/sf-leaderboard.scss +0 -382
- package/src/components/leaderboard-v2/tokens.ts +0 -35
- package/src/components/leaderboard-v2/types.ts +0 -30
- package/src/components/sf-leaderboard/index.ts +0 -77
- package/src/components/sf-leaderboard/sections/footer-section/footer-section.host.ts +0 -3
- package/src/components/sf-leaderboard/sections/footer-section/footer-section.html +0 -3
- package/src/components/sf-leaderboard/sections/footer-section/footer-section.scss +0 -18
- package/src/components/sf-leaderboard/sections/footer-section/footer-section.ts +0 -22
- package/src/components/sf-leaderboard/sections/header-section/header-section.host.ts +0 -14
- package/src/components/sf-leaderboard/sections/header-section/header-section.html +0 -27
- package/src/components/sf-leaderboard/sections/header-section/header-section.scss +0 -189
- package/src/components/sf-leaderboard/sections/header-section/header-section.ts +0 -70
- package/src/components/sf-leaderboard/sections/ranking-section/ranking-section.host.ts +0 -22
- package/src/components/sf-leaderboard/sections/ranking-section/ranking-section.html +0 -38
- package/src/components/sf-leaderboard/sections/ranking-section/ranking-section.scss +0 -99
- package/src/components/sf-leaderboard/sections/ranking-section/ranking-section.ts +0 -121
- package/src/components/sf-leaderboard/sections/stats-section/stats-section.host.ts +0 -8
- package/src/components/sf-leaderboard/sections/stats-section/stats-section.html +0 -6
- package/src/components/sf-leaderboard/sections/stats-section/stats-section.scss +0 -44
- package/src/components/sf-leaderboard/sections/stats-section/stats-section.ts +0 -41
- package/src/components/sf-leaderboard/sections/table-section/table-section.host.ts +0 -17
- package/src/components/sf-leaderboard/sections/table-section/table-section.html +0 -19
- package/src/components/sf-leaderboard/sections/table-section/table-section.scss +0 -37
- package/src/components/sf-leaderboard/sections/table-section/table-section.ts +0 -108
- package/src/components/sf-leaderboard/services/index.ts +0 -22
- package/src/components/sf-leaderboard/services/sf-leaderboard-data.service.ts +0 -54
- package/src/components/sf-leaderboard/services/sf-leaderboard.state.ts +0 -160
- package/src/components/sf-leaderboard/shared/components/activity-feed/activity-feed.host.ts +0 -7
- package/src/components/sf-leaderboard/shared/components/activity-feed/activity-feed.html +0 -10
- package/src/components/sf-leaderboard/shared/components/activity-feed/activity-feed.scss +0 -180
- package/src/components/sf-leaderboard/shared/components/activity-feed/activity-feed.ts +0 -88
- package/src/components/sf-leaderboard/shared/components/filters/filters.host.ts +0 -12
- package/src/components/sf-leaderboard/shared/components/filters/filters.html +0 -22
- package/src/components/sf-leaderboard/shared/components/filters/filters.scss +0 -122
- package/src/components/sf-leaderboard/shared/components/filters/filters.ts +0 -75
- package/src/components/sf-leaderboard/shared/components/player-avatar/player-avatar.host.ts +0 -9
- package/src/components/sf-leaderboard/shared/components/player-avatar/player-avatar.html +0 -5
- package/src/components/sf-leaderboard/shared/components/player-avatar/player-avatar.scss +0 -81
- package/src/components/sf-leaderboard/shared/components/player-avatar/player-avatar.ts +0 -34
- package/src/components/sf-leaderboard/shared/components/podium/map-players.ts +0 -24
- package/src/components/sf-leaderboard/shared/components/podium/podium.host.ts +0 -10
- package/src/components/sf-leaderboard/shared/components/podium/podium.html +0 -53
- package/src/components/sf-leaderboard/shared/components/podium/podium.scss +0 -580
- package/src/components/sf-leaderboard/shared/components/podium/podium.ts +0 -49
- package/src/components/sf-leaderboard/shared/components/podium/podium.types.ts +0 -9
- package/src/components/sf-leaderboard/shared/components/rank-badge/rank-badge.host.ts +0 -11
- package/src/components/sf-leaderboard/shared/components/rank-badge/rank-badge.html +0 -9
- package/src/components/sf-leaderboard/shared/components/rank-badge/rank-badge.scss +0 -98
- package/src/components/sf-leaderboard/shared/components/rank-badge/rank-badge.ts +0 -63
- package/src/components/sf-leaderboard/shared/components/stat-card/stat-card.host.ts +0 -9
- package/src/components/sf-leaderboard/shared/components/stat-card/stat-card.html +0 -15
- package/src/components/sf-leaderboard/shared/components/stat-card/stat-card.scss +0 -210
- package/src/components/sf-leaderboard/shared/components/stat-card/stat-card.ts +0 -36
- package/src/components/sf-leaderboard/shared/components/table/table.host.ts +0 -5
- package/src/components/sf-leaderboard/shared/components/table/table.html +0 -11
- package/src/components/sf-leaderboard/shared/components/table/table.scss +0 -212
- package/src/components/sf-leaderboard/shared/components/table/table.ts +0 -111
- package/src/components/sf-leaderboard/shared/constants/defaults.ts +0 -7
- package/src/components/sf-leaderboard/shared/constants/filters.ts +0 -16
- package/src/components/sf-leaderboard/shared/constants/index.ts +0 -5
- package/src/components/sf-leaderboard/shared/constants/player-stats.ts +0 -3
- package/src/components/sf-leaderboard/shared/constants/stats-overview.ts +0 -38
- package/src/components/sf-leaderboard/shared/constants/tags.ts +0 -16
- package/src/components/sf-leaderboard/shared/styles/_section.scss +0 -35
- package/src/components/sf-leaderboard/shared/types/data.ts +0 -29
- package/src/components/sf-leaderboard/shared/types/events.ts +0 -30
- package/src/components/sf-leaderboard/shared/types/player-stats.ts +0 -3
- package/src/components/sf-leaderboard/shared/types/sections.ts +0 -100
- package/src/components/sf-leaderboard/shared/utils/utils.ts +0 -17
- package/src/components/sf-leaderboard/theme/THEMING.md +0 -54
- package/src/components/sf-leaderboard/theme/context.ts +0 -16
- package/src/components/sf-leaderboard/theme/default-theme.ts +0 -4
- package/src/components/sf-leaderboard/theme/hex-to-rgb.ts +0 -25
- package/src/components/sf-leaderboard/theme/index.ts +0 -18
- package/src/components/sf-leaderboard/theme/inject-theme.ts +0 -39
- package/src/components/sf-leaderboard/theme/load-theme.ts +0 -26
- package/src/components/sf-leaderboard/theme/merge-theme.ts +0 -59
- package/src/components/sf-leaderboard/theme/scss/_colors.scss +0 -101
- package/src/components/sf-leaderboard/theme/scss/shared.scss +0 -123
- package/src/components/sf-leaderboard/theme/styles.ts +0 -6
- package/src/components/sf-leaderboard/theme/theme-to-css-vars.ts +0 -99
- package/src/components/sf-leaderboard/theme/themes/fallback.json +0 -62
- package/src/components/sf-leaderboard/theme/themes/red.json +0 -62
- package/src/components/sf-leaderboard/theme/types.ts +0 -71
- package/src/components/sf-live-feed/components/avatar/avatar.host.ts +0 -5
- package/src/components/sf-live-feed/components/avatar/avatar.html +0 -3
- package/src/components/sf-live-feed/components/avatar/avatar.scss +0 -24
- package/src/components/sf-live-feed/components/avatar/avatar.ts +0 -27
- package/src/components/sf-live-feed/components/sf-live-feed/sf-live-feed.host.ts +0 -8
- package/src/components/sf-live-feed/components/sf-live-feed/sf-live-feed.html +0 -10
- package/src/components/sf-live-feed/components/sf-live-feed/sf-live-feed.scss +0 -177
- package/src/components/sf-live-feed/components/sf-live-feed/sf-live-feed.ts +0 -65
- package/src/components/sf-live-feed/constants.ts +0 -4
- package/src/components/sf-live-feed/demo/sample-data.ts +0 -34
- package/src/components/sf-live-feed/index.ts +0 -19
- package/src/components/sf-live-feed/styles/theme.scss +0 -19
- package/src/components/sf-live-feed/styles/theme.ts +0 -5
- package/src/components/sf-live-feed/types.ts +0 -19
- package/src/components/sf-live-feed/utils.ts +0 -17
- package/src/components/streaks/constants.ts +0 -17
- package/src/components/streaks/demo/sample-steps.ts +0 -10
- package/src/components/streaks/events.ts +0 -8
- package/src/components/streaks/index.ts +0 -16
- package/src/components/streaks/sf-streaks.html +0 -26
- package/src/components/streaks/sf-streaks.scss +0 -351
- package/src/components/streaks/sf-streaks.ts +0 -235
- package/src/components/streaks/types.ts +0 -7
- package/src/lib/lit/component.ts +0 -10
- package/src/lib/lit/safe-custom-element.ts +0 -12
- package/src/lib/lit/scss.ts +0 -6
- package/src/vite-env.d.ts +0 -18
- package/styles/global.css +0 -125
- package/todo.txt +0 -54
- package/tsconfig.json +0 -31
- package/vite.config.ts +0 -56
- package/vite.docs.config.ts +0 -33
- package/vite.lit-html-plugin.ts +0 -43
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../../../src/shared/lib/lit/component.ts"],"sourcesContent":["import { customElement } from './safe-custom-element.js';\n\nexport interface ComponentOptions {\n selector: string;\n}\n\n/** Angular-style `@Component` — registers a Lit class as a custom element. */\nexport function Component(options: ComponentOptions) {\n return customElement(options.selector);\n}\n"],"names":["Component","options","customElement"],"mappings":";AAOO,SAASA,EAAUC,GAA2B;AACnD,SAAOC,EAAcD,EAAQ,QAAQ;AACvC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-custom-element.js","sources":["../../../../src/shared/lib/lit/safe-custom-element.ts"],"sourcesContent":["/**\n * Registers a custom element only if the tag is not already in the registry.\n * Use instead of Lit's `@customElement` when HMR or duplicate bundles are possible.\n */\nexport function customElement(tag: string) {\n return <T extends CustomElementConstructor>(cls: T): T => {\n if (!customElements.get(tag)) {\n customElements.define(tag, cls);\n }\n return cls;\n };\n}\n"],"names":["customElement","tag","cls"],"mappings":"AAIO,SAASA,EAAcC,GAAa;AACzC,SAAO,CAAqCC,OACrC,eAAe,IAAID,CAAG,KACzB,eAAe,OAAOA,GAAKC,CAAG,GAEzBA;AAEX;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scss.js","sources":["../../../../src/shared/lib/lit/scss.ts"],"sourcesContent":["import { unsafeCSS, type CSSResult } from '@lit/reactive-element/css-tag.js';\n\n/** Compiled SCSS string → adoptable shadow-root stylesheet. */\nexport function scss(stylesheet: string): CSSResult {\n return unsafeCSS(stylesheet);\n}\n"],"names":["scss","stylesheet","unsafeCSS"],"mappings":";AAGO,SAASA,EAAKC,GAA+B;AAClD,SAAOC,EAAUD,CAAU;AAC7B;"}
|
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
var j = function() {
|
|
2
|
+
return j = Object.assign || function(t) {
|
|
3
|
+
for (var e, i = 1, f = arguments.length; i < f; i++) for (var p in e = arguments[i]) Object.prototype.hasOwnProperty.call(e, p) && (t[p] = e[p]);
|
|
4
|
+
return t;
|
|
5
|
+
}, j.apply(this, arguments);
|
|
6
|
+
};
|
|
7
|
+
function ut(t, e, i) {
|
|
8
|
+
for (var f, p = 0, a = e.length; p < a; p++) !f && p in e || (f || (f = Array.prototype.slice.call(e, 0, p)), f[p] = e[p]);
|
|
9
|
+
return t.concat(f || Array.prototype.slice.call(e));
|
|
10
|
+
}
|
|
11
|
+
function rt(t) {
|
|
12
|
+
return Array.prototype.slice.call(t);
|
|
13
|
+
}
|
|
14
|
+
function nt(t, e) {
|
|
15
|
+
var i = Math.floor(t);
|
|
16
|
+
return i === e || i + 1 === e ? t : e;
|
|
17
|
+
}
|
|
18
|
+
function at() {
|
|
19
|
+
return Date.now();
|
|
20
|
+
}
|
|
21
|
+
function Z(t, e, i) {
|
|
22
|
+
if (e = "data-keen-slider-" + e, i === null) return t.removeAttribute(e);
|
|
23
|
+
t.setAttribute(e, i || "");
|
|
24
|
+
}
|
|
25
|
+
function U(t, e) {
|
|
26
|
+
return e = e || document, typeof t == "function" && (t = t(e)), Array.isArray(t) ? t : typeof t == "string" ? rt(e.querySelectorAll(t)) : t instanceof HTMLElement ? [t] : t instanceof NodeList ? rt(t) : [];
|
|
27
|
+
}
|
|
28
|
+
function G(t) {
|
|
29
|
+
t.raw && (t = t.raw), t.cancelable && !t.defaultPrevented && t.preventDefault();
|
|
30
|
+
}
|
|
31
|
+
function J(t) {
|
|
32
|
+
t.raw && (t = t.raw), t.stopPropagation && t.stopPropagation();
|
|
33
|
+
}
|
|
34
|
+
function st() {
|
|
35
|
+
var t = [];
|
|
36
|
+
return { add: function(e, i, f, p) {
|
|
37
|
+
e.addListener ? e.addListener(f) : e.addEventListener(i, f, p), t.push([e, i, f, p]);
|
|
38
|
+
}, input: function(e, i, f, p) {
|
|
39
|
+
this.add(e, i, /* @__PURE__ */ (function(a) {
|
|
40
|
+
return function(n) {
|
|
41
|
+
n.nativeEvent && (n = n.nativeEvent);
|
|
42
|
+
var y = n.changedTouches || [], x = n.targetTouches || [], c = n.detail && n.detail.x ? n.detail : null;
|
|
43
|
+
return a({ id: c ? c.identifier ? c.identifier : "i" : x[0] ? x[0] ? x[0].identifier : "e" : "d", idChanged: c ? c.identifier ? c.identifier : "i" : y[0] ? y[0] ? y[0].identifier : "e" : "d", raw: n, x: c && c.x ? c.x : x[0] ? x[0].screenX : c ? c.x : n.pageX, y: c && c.y ? c.y : x[0] ? x[0].screenY : c ? c.y : n.pageY });
|
|
44
|
+
};
|
|
45
|
+
})(f), p);
|
|
46
|
+
}, purge: function() {
|
|
47
|
+
t.forEach((function(e) {
|
|
48
|
+
e[0].removeListener ? e[0].removeListener(e[2]) : e[0].removeEventListener(e[1], e[2], e[3]);
|
|
49
|
+
})), t = [];
|
|
50
|
+
} };
|
|
51
|
+
}
|
|
52
|
+
function $(t, e, i) {
|
|
53
|
+
return Math.min(Math.max(t, e), i);
|
|
54
|
+
}
|
|
55
|
+
function V(t) {
|
|
56
|
+
return (t > 0 ? 1 : 0) - (t < 0 ? 1 : 0) || +t;
|
|
57
|
+
}
|
|
58
|
+
function ot(t) {
|
|
59
|
+
var e = t.getBoundingClientRect();
|
|
60
|
+
return { height: nt(e.height, t.offsetHeight), width: nt(e.width, t.offsetWidth) };
|
|
61
|
+
}
|
|
62
|
+
function F(t, e, i, f) {
|
|
63
|
+
var p = t && t[e];
|
|
64
|
+
return p == null ? i : f && typeof p == "function" ? p() : p;
|
|
65
|
+
}
|
|
66
|
+
function R(t) {
|
|
67
|
+
return Math.round(1e6 * t) / 1e6;
|
|
68
|
+
}
|
|
69
|
+
function lt(t) {
|
|
70
|
+
var e, i, f, p, a, n;
|
|
71
|
+
function y(M) {
|
|
72
|
+
n || (n = M), x(!0);
|
|
73
|
+
var E = M - n;
|
|
74
|
+
E > f && (E = f);
|
|
75
|
+
var v = p[i];
|
|
76
|
+
if (v[3] < E) return i++, y(M);
|
|
77
|
+
var T = v[2], z = v[4], m = v[0], h = v[1] * (0, v[5])(z === 0 ? 1 : (E - T) / z);
|
|
78
|
+
if (h && t.track.to(m + h), E < f) return C();
|
|
79
|
+
n = null, x(!1), c(null), t.emit("animationEnded");
|
|
80
|
+
}
|
|
81
|
+
function x(M) {
|
|
82
|
+
e.active = M;
|
|
83
|
+
}
|
|
84
|
+
function c(M) {
|
|
85
|
+
e.targetIdx = M;
|
|
86
|
+
}
|
|
87
|
+
function C() {
|
|
88
|
+
var M;
|
|
89
|
+
M = y, a = window.requestAnimationFrame(M);
|
|
90
|
+
}
|
|
91
|
+
function S() {
|
|
92
|
+
var M;
|
|
93
|
+
M = a, window.cancelAnimationFrame(M), x(!1), c(null), n && t.emit("animationStopped"), n = null;
|
|
94
|
+
}
|
|
95
|
+
return e = { active: !1, start: function(M) {
|
|
96
|
+
if (S(), t.track.details) {
|
|
97
|
+
var E = 0, v = t.track.details.position;
|
|
98
|
+
i = 0, f = 0, p = M.map((function(T) {
|
|
99
|
+
var z, m = Number(v), h = (z = T.earlyExit) !== null && z !== void 0 ? z : T.duration, l = T.easing, _ = T.distance * l(h / T.duration) || 0;
|
|
100
|
+
v += _;
|
|
101
|
+
var A = f;
|
|
102
|
+
return f += h, E += _, [m, T.distance, A, f, T.duration, l];
|
|
103
|
+
})), c(t.track.distToIdx(E)), C(), t.emit("animationStarted");
|
|
104
|
+
}
|
|
105
|
+
}, stop: S, targetIdx: null };
|
|
106
|
+
}
|
|
107
|
+
function ft(t) {
|
|
108
|
+
var e, i, f, p, a, n, y, x, c, C, S, M, E, v, T = 1 / 0, z = [], m = null, h = 0;
|
|
109
|
+
function l(d) {
|
|
110
|
+
q(h + d);
|
|
111
|
+
}
|
|
112
|
+
function _(d) {
|
|
113
|
+
var u = A(h + d).abs;
|
|
114
|
+
return w(u) ? u : null;
|
|
115
|
+
}
|
|
116
|
+
function A(d) {
|
|
117
|
+
var u = Math.floor(Math.abs(R(d / i))), r = R((d % i + i) % i);
|
|
118
|
+
r === i && (r = 0);
|
|
119
|
+
var b = V(d), s = y.indexOf(ut([], y).reduce((function(I, D) {
|
|
120
|
+
return Math.abs(D - r) < Math.abs(I - r) ? D : I;
|
|
121
|
+
}))), k = s;
|
|
122
|
+
return b < 0 && u++, s === n && (k = 0, u += b > 0 ? 1 : -1), { abs: k + u * n * b, origin: s, rel: k };
|
|
123
|
+
}
|
|
124
|
+
function L(d, u, r) {
|
|
125
|
+
var b;
|
|
126
|
+
if (u || !N()) return o(d, r);
|
|
127
|
+
if (!w(d)) return null;
|
|
128
|
+
var s = A(r ?? h), k = s.abs, I = d - s.rel, D = k + I;
|
|
129
|
+
b = o(D);
|
|
130
|
+
var H = o(D - n * V(I));
|
|
131
|
+
return (H !== null && Math.abs(H) < Math.abs(b) || b === null) && (b = H), R(b);
|
|
132
|
+
}
|
|
133
|
+
function o(d, u) {
|
|
134
|
+
if (u == null && (u = R(h)), !w(d) || d === null) return null;
|
|
135
|
+
d = Math.round(d);
|
|
136
|
+
var r = A(u), b = r.abs, s = r.rel, k = r.origin, I = W(d), D = (u % i + i) % i, H = y[k], X = Math.floor((d - (b - s)) / n) * i;
|
|
137
|
+
return R(H - D - H + y[I] + X + (k === n ? i : 0));
|
|
138
|
+
}
|
|
139
|
+
function w(d) {
|
|
140
|
+
return O(d) === d;
|
|
141
|
+
}
|
|
142
|
+
function O(d) {
|
|
143
|
+
return $(d, c, C);
|
|
144
|
+
}
|
|
145
|
+
function N() {
|
|
146
|
+
return p.loop;
|
|
147
|
+
}
|
|
148
|
+
function W(d) {
|
|
149
|
+
return (d % n + n) % n;
|
|
150
|
+
}
|
|
151
|
+
function q(d) {
|
|
152
|
+
var u;
|
|
153
|
+
u = d - h, z.push({ distance: u, timestamp: at() }), z.length > 6 && (z = z.slice(-6)), h = R(d);
|
|
154
|
+
var r = g().abs;
|
|
155
|
+
if (r !== m) {
|
|
156
|
+
var b = m !== null;
|
|
157
|
+
m = r, b && t.emit("slideChanged");
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function g(d) {
|
|
161
|
+
var u = d ? null : (function() {
|
|
162
|
+
if (n) {
|
|
163
|
+
var r = N(), b = r ? (h % i + i) % i : h, s = (r ? h % i : h) - a[0][2], k = 0 - (s < 0 && r ? i - Math.abs(s) : s), I = 0, D = A(h), H = D.abs, X = D.rel, K = a[X][2], Q = a.map((function(Y, ct) {
|
|
164
|
+
var P = k + I;
|
|
165
|
+
(P < 0 - Y[0] || P > 1) && (P += (Math.abs(P) > i - 1 && r ? i : 0) * V(-P));
|
|
166
|
+
var tt = ct - X, it = V(tt), B = tt + H;
|
|
167
|
+
r && (it === -1 && P > K && (B += n), it === 1 && P < K && (B -= n), S !== null && B < S && (P += i), M !== null && B > M && (P -= i));
|
|
168
|
+
var et = P + Y[0] + Y[1], dt = Math.max(P >= 0 && et <= 1 ? 1 : et < 0 || P > 1 ? 0 : P < 0 ? Math.min(1, (Y[0] + P) / Y[0]) : (1 - P) / Y[0], 0);
|
|
169
|
+
return I += Y[0] + Y[1], { abs: B, distance: p.rtl ? -1 * P + 1 - Y[0] : P, portion: dt, size: Y[0] };
|
|
170
|
+
}));
|
|
171
|
+
return H = O(H), X = W(H), { abs: O(H), length: f, max: v, maxIdx: C, min: E, minIdx: c, position: h, progress: r ? b / i : h / f, rel: X, slides: Q, slidesLength: i };
|
|
172
|
+
}
|
|
173
|
+
})();
|
|
174
|
+
return e.details = u, t.emit("detailsChanged"), u;
|
|
175
|
+
}
|
|
176
|
+
return e = { absToRel: W, add: l, details: null, distToIdx: _, idxToDist: L, init: function(d) {
|
|
177
|
+
if ((function() {
|
|
178
|
+
if (p = t.options, a = (p.trackConfig || []).map((function(s) {
|
|
179
|
+
return [F(s, "size", 1), F(s, "spacing", 0), F(s, "origin", 0)];
|
|
180
|
+
})), n = a.length) {
|
|
181
|
+
i = R(a.reduce((function(s, k) {
|
|
182
|
+
return s + k[0] + k[1];
|
|
183
|
+
}), 0));
|
|
184
|
+
var r, b = n - 1;
|
|
185
|
+
f = R(i + a[0][2] - a[b][0] - a[b][2] - a[b][1]), y = a.reduce((function(s, k) {
|
|
186
|
+
if (!s) return [0];
|
|
187
|
+
var I = a[s.length - 1], D = s[s.length - 1] + (I[0] + I[2]) + I[1];
|
|
188
|
+
return D -= k[2], s[s.length - 1] > D && (D = s[s.length - 1]), D = R(D), s.push(D), (!r || r < D) && (x = s.length - 1), r = D, s;
|
|
189
|
+
}), null), f === 0 && (x = 0), y.push(R(i));
|
|
190
|
+
}
|
|
191
|
+
})(), !n) return g(!0);
|
|
192
|
+
var u;
|
|
193
|
+
(function() {
|
|
194
|
+
var r = t.options.range, b = t.options.loop;
|
|
195
|
+
S = c = b ? F(b, "min", -1 / 0) : 0, M = C = b ? F(b, "max", T) : x;
|
|
196
|
+
var s = F(r, "min", null), k = F(r, "max", null);
|
|
197
|
+
s !== null && (c = s), k !== null && (C = k), E = c === -1 / 0 ? c : t.track.idxToDist(c || 0, !0, 0), v = C === T ? C : L(C, !0, 0), k === null && (M = C), F(r, "align", !1) && C !== T && a[W(C)][2] === 0 && (v -= 1 - a[W(C)][0], C = _(v - h)), E = R(E), v = R(v);
|
|
198
|
+
})(), u = d, Number(u) === u ? l(o(O(d))) : g();
|
|
199
|
+
}, to: q, velocity: function() {
|
|
200
|
+
var d = at(), u = z.reduce((function(r, b) {
|
|
201
|
+
var s = b.distance, k = b.timestamp;
|
|
202
|
+
return d - k > 200 || (V(s) !== V(r.distance) && r.distance && (r = { distance: 0, lastTimestamp: 0, time: 0 }), r.time && (r.distance += s), r.lastTimestamp && (r.time += k - r.lastTimestamp), r.lastTimestamp = k), r;
|
|
203
|
+
}), { distance: 0, lastTimestamp: 0, time: 0 });
|
|
204
|
+
return u.distance / u.time || 0;
|
|
205
|
+
} };
|
|
206
|
+
}
|
|
207
|
+
function pt(t) {
|
|
208
|
+
var e, i, f, p, a, n, y, x;
|
|
209
|
+
function c(m) {
|
|
210
|
+
return 2 * m;
|
|
211
|
+
}
|
|
212
|
+
function C(m) {
|
|
213
|
+
return $(m, y, x);
|
|
214
|
+
}
|
|
215
|
+
function S(m) {
|
|
216
|
+
return 1 - Math.pow(1 - m, 3);
|
|
217
|
+
}
|
|
218
|
+
function M() {
|
|
219
|
+
return f ? t.track.velocity() : 0;
|
|
220
|
+
}
|
|
221
|
+
function E() {
|
|
222
|
+
z();
|
|
223
|
+
var m = t.options.mode === "free-snap", h = t.track, l = M();
|
|
224
|
+
p = V(l);
|
|
225
|
+
var _ = t.track.details, A = [];
|
|
226
|
+
if (l || !m) {
|
|
227
|
+
var L = v(l), o = L.dist, w = L.dur;
|
|
228
|
+
if (w = c(w), o *= p, m) {
|
|
229
|
+
var O = h.idxToDist(h.distToIdx(o), !0);
|
|
230
|
+
O && (o = O);
|
|
231
|
+
}
|
|
232
|
+
A.push({ distance: o, duration: w, easing: S });
|
|
233
|
+
var N = _.position, W = N + o;
|
|
234
|
+
if (W < a || W > n) {
|
|
235
|
+
var q = W < a ? a - N : n - N, g = 0, d = l;
|
|
236
|
+
if (V(q) === p) {
|
|
237
|
+
var u = Math.min(Math.abs(q) / Math.abs(o), 1), r = (function(k) {
|
|
238
|
+
return 1 - Math.pow(1 - k, 1 / 3);
|
|
239
|
+
})(u) * w;
|
|
240
|
+
A[0].earlyExit = r, d = l * (1 - u);
|
|
241
|
+
} else A[0].earlyExit = 0, g += q;
|
|
242
|
+
var b = v(d, 100), s = b.dist * p;
|
|
243
|
+
t.options.rubberband && (A.push({ distance: s, duration: c(b.dur), easing: S }), A.push({ distance: -s + g, duration: 500, easing: S }));
|
|
244
|
+
}
|
|
245
|
+
t.animator.start(A);
|
|
246
|
+
} else t.moveToIdx(C(_.abs), !0, { duration: 500, easing: function(k) {
|
|
247
|
+
return 1 + --k * k * k * k * k;
|
|
248
|
+
} });
|
|
249
|
+
}
|
|
250
|
+
function v(m, h) {
|
|
251
|
+
h === void 0 && (h = 1e3);
|
|
252
|
+
var l = 147e-9 + (m = Math.abs(m)) / h;
|
|
253
|
+
return { dist: Math.pow(m, 2) / l, dur: m / l };
|
|
254
|
+
}
|
|
255
|
+
function T() {
|
|
256
|
+
var m = t.track.details;
|
|
257
|
+
m && (a = m.min, n = m.max, y = m.minIdx, x = m.maxIdx);
|
|
258
|
+
}
|
|
259
|
+
function z() {
|
|
260
|
+
t.animator.stop();
|
|
261
|
+
}
|
|
262
|
+
t.on("updated", T), t.on("optionsChanged", T), t.on("created", T), t.on("dragStarted", (function() {
|
|
263
|
+
f = !1, z(), e = i = t.track.details.abs;
|
|
264
|
+
})), t.on("dragChecked", (function() {
|
|
265
|
+
f = !0;
|
|
266
|
+
})), t.on("dragEnded", (function() {
|
|
267
|
+
var m = t.options.mode;
|
|
268
|
+
m === "snap" && (function() {
|
|
269
|
+
var h = t.track, l = t.track.details, _ = l.position, A = V(M());
|
|
270
|
+
(_ > n || _ < a) && (A = 0);
|
|
271
|
+
var L = e + A;
|
|
272
|
+
l.slides[h.absToRel(L)].portion === 0 && (L -= A), e !== i && (L = i), V(h.idxToDist(L, !0)) !== A && (L += A), L = C(L);
|
|
273
|
+
var o = h.idxToDist(L, !0);
|
|
274
|
+
t.animator.start([{ distance: o, duration: 500, easing: function(w) {
|
|
275
|
+
return 1 + --w * w * w * w * w;
|
|
276
|
+
} }]);
|
|
277
|
+
})(), m !== "free" && m !== "free-snap" || E();
|
|
278
|
+
})), t.on("dragged", (function() {
|
|
279
|
+
i = t.track.details.abs;
|
|
280
|
+
}));
|
|
281
|
+
}
|
|
282
|
+
function vt(t) {
|
|
283
|
+
var e, i, f, p, a, n, y, x, c, C, S, M, E, v, T, z, m, h, l = st();
|
|
284
|
+
function _(g) {
|
|
285
|
+
if (n && x === g.id) {
|
|
286
|
+
var d = w(g);
|
|
287
|
+
if (c) {
|
|
288
|
+
if (!o(g)) return L(g);
|
|
289
|
+
C = d, c = !1, t.emit("dragChecked");
|
|
290
|
+
}
|
|
291
|
+
if (z) return C = d;
|
|
292
|
+
G(g);
|
|
293
|
+
var u = (function(b) {
|
|
294
|
+
if (m === -1 / 0 && h === 1 / 0) return b;
|
|
295
|
+
var s = t.track.details, k = s.length, I = s.position, D = $(b, m - I, h - I);
|
|
296
|
+
if (k === 0) return 0;
|
|
297
|
+
if (!t.options.rubberband) return D;
|
|
298
|
+
if (I <= h && I >= m || I < m && i > 0 || I > h && i < 0) return b;
|
|
299
|
+
var H = (I < m ? I - m : I - h) / k, X = p * k, K = Math.abs(H * X), Q = Math.max(0, 1 - K / a * 2);
|
|
300
|
+
return Q * Q * b;
|
|
301
|
+
})(y(C - d) / p * f);
|
|
302
|
+
i = V(u);
|
|
303
|
+
var r = t.track.details.position;
|
|
304
|
+
(r > m && r < h || r === m && i > 0 || r === h && i < 0) && J(g), S += u, !M && Math.abs(S * p) > 5 && (M = !0), t.track.add(u), C = d, t.emit("dragged");
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
function A(g) {
|
|
308
|
+
!n && t.track.details && t.track.details.length && (S = 0, n = !0, M = !1, c = !0, x = g.id, o(g), C = w(g), t.emit("dragStarted"));
|
|
309
|
+
}
|
|
310
|
+
function L(g) {
|
|
311
|
+
n && x === g.idChanged && (n = !1, t.emit("dragEnded"));
|
|
312
|
+
}
|
|
313
|
+
function o(g) {
|
|
314
|
+
var d = O(), u = d ? g.y : g.x, r = d ? g.x : g.y, b = E !== void 0 && v !== void 0 && Math.abs(v - r) <= Math.abs(E - u);
|
|
315
|
+
return E = u, v = r, b;
|
|
316
|
+
}
|
|
317
|
+
function w(g) {
|
|
318
|
+
return O() ? g.y : g.x;
|
|
319
|
+
}
|
|
320
|
+
function O() {
|
|
321
|
+
return t.options.vertical;
|
|
322
|
+
}
|
|
323
|
+
function N() {
|
|
324
|
+
p = t.size, a = O() ? window.innerHeight : window.innerWidth;
|
|
325
|
+
var g = t.track.details;
|
|
326
|
+
g && (m = g.min, h = g.max);
|
|
327
|
+
}
|
|
328
|
+
function W(g) {
|
|
329
|
+
M && (J(g), G(g));
|
|
330
|
+
}
|
|
331
|
+
function q() {
|
|
332
|
+
if (l.purge(), t.options.drag && !t.options.disabled) {
|
|
333
|
+
var g;
|
|
334
|
+
g = t.options.dragSpeed || 1, y = typeof g == "function" ? g : function(u) {
|
|
335
|
+
return u * g;
|
|
336
|
+
}, f = t.options.rtl ? -1 : 1, N(), e = t.container, (function() {
|
|
337
|
+
var u = "data-keen-slider-clickable";
|
|
338
|
+
U("[".concat(u, "]:not([").concat(u, "=false])"), e).map((function(r) {
|
|
339
|
+
l.add(r, "dragstart", J), l.add(r, "mousedown", J), l.add(r, "touchstart", J);
|
|
340
|
+
}));
|
|
341
|
+
})(), l.add(e, "dragstart", (function(u) {
|
|
342
|
+
G(u);
|
|
343
|
+
})), l.add(e, "click", W, { capture: !0 }), l.input(e, "ksDragStart", A), l.input(e, "ksDrag", _), l.input(e, "ksDragEnd", L), l.input(e, "mousedown", A), l.input(e, "mousemove", _), l.input(e, "mouseleave", L), l.input(e, "mouseup", L), l.input(e, "touchstart", A, { passive: !0 }), l.input(e, "touchmove", _, { passive: !1 }), l.input(e, "touchend", L), l.input(e, "touchcancel", L), l.add(window, "wheel", (function(u) {
|
|
344
|
+
n && G(u);
|
|
345
|
+
}));
|
|
346
|
+
var d = "data-keen-slider-scrollable";
|
|
347
|
+
U("[".concat(d, "]:not([").concat(d, "=false])"), t.container).map((function(u) {
|
|
348
|
+
return (function(r) {
|
|
349
|
+
var b;
|
|
350
|
+
l.input(r, "touchstart", (function(s) {
|
|
351
|
+
b = w(s), z = !0, T = !0;
|
|
352
|
+
}), { passive: !0 }), l.input(r, "touchmove", (function(s) {
|
|
353
|
+
var k = O(), I = k ? r.scrollHeight - r.clientHeight : r.scrollWidth - r.clientWidth, D = b - w(s), H = k ? r.scrollTop : r.scrollLeft, X = k && r.style.overflowY === "scroll" || !k && r.style.overflowX === "scroll";
|
|
354
|
+
if (b = w(s), (D < 0 && H > 0 || D > 0 && H < I) && T && X) return z = !0;
|
|
355
|
+
T = !1, G(s), z = !1;
|
|
356
|
+
})), l.input(r, "touchend", (function() {
|
|
357
|
+
z = !1;
|
|
358
|
+
}));
|
|
359
|
+
})(u);
|
|
360
|
+
}));
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
t.on("updated", N), t.on("optionsChanged", q), t.on("created", q), t.on("destroyed", l.purge);
|
|
364
|
+
}
|
|
365
|
+
function mt(t) {
|
|
366
|
+
var e, i, f = null;
|
|
367
|
+
function p(E, v, T) {
|
|
368
|
+
t.animator.active ? n(E, v, T) : requestAnimationFrame((function() {
|
|
369
|
+
return n(E, v, T);
|
|
370
|
+
}));
|
|
371
|
+
}
|
|
372
|
+
function a() {
|
|
373
|
+
p(!1, !1, i);
|
|
374
|
+
}
|
|
375
|
+
function n(E, v, T) {
|
|
376
|
+
var z = 0, m = t.size, h = t.track.details;
|
|
377
|
+
if (h && e) {
|
|
378
|
+
var l = h.slides;
|
|
379
|
+
e.forEach((function(_, A) {
|
|
380
|
+
if (E) !f && v && x(_, null, T), c(_, null, T);
|
|
381
|
+
else {
|
|
382
|
+
if (!l[A]) return;
|
|
383
|
+
var L = l[A].size * m;
|
|
384
|
+
!f && v && x(_, L, T), c(_, l[A].distance * m - z, T), z += L;
|
|
385
|
+
}
|
|
386
|
+
}));
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function y(E) {
|
|
390
|
+
return t.options.renderMode === "performance" ? Math.round(E) : E;
|
|
391
|
+
}
|
|
392
|
+
function x(E, v, T) {
|
|
393
|
+
var z = T ? "height" : "width";
|
|
394
|
+
v !== null && (v = y(v) + "px"), E.style["min-" + z] = v, E.style["max-" + z] = v;
|
|
395
|
+
}
|
|
396
|
+
function c(E, v, T) {
|
|
397
|
+
if (v !== null) {
|
|
398
|
+
v = y(v);
|
|
399
|
+
var z = T ? v : 0;
|
|
400
|
+
v = "translate3d(".concat(T ? 0 : v, "px, ").concat(z, "px, 0)");
|
|
401
|
+
}
|
|
402
|
+
E.style.transform = v, E.style["-webkit-transform"] = v;
|
|
403
|
+
}
|
|
404
|
+
function C() {
|
|
405
|
+
e && (n(!0, !0, i), e = null), t.on("detailsChanged", a, !0);
|
|
406
|
+
}
|
|
407
|
+
function S() {
|
|
408
|
+
p(!1, !0, i);
|
|
409
|
+
}
|
|
410
|
+
function M() {
|
|
411
|
+
C(), i = t.options.vertical, t.options.disabled || t.options.renderMode === "custom" || (f = F(t.options.slides, "perView", null) === "auto", t.on("detailsChanged", a), (e = t.slides).length && S());
|
|
412
|
+
}
|
|
413
|
+
t.on("created", M), t.on("optionsChanged", M), t.on("beforeOptionsChanged", (function() {
|
|
414
|
+
C();
|
|
415
|
+
})), t.on("updated", S), t.on("destroyed", C);
|
|
416
|
+
}
|
|
417
|
+
function ht(t, e) {
|
|
418
|
+
return function(i) {
|
|
419
|
+
var f, p, a, n, y, x = st();
|
|
420
|
+
function c(o) {
|
|
421
|
+
var w;
|
|
422
|
+
Z(i.container, "reverse", (w = i.container, window.getComputedStyle(w, null).getPropertyValue("direction") !== "rtl" || o ? null : "")), Z(i.container, "v", i.options.vertical && !o ? "" : null), Z(i.container, "disabled", i.options.disabled && !o ? "" : null);
|
|
423
|
+
}
|
|
424
|
+
function C() {
|
|
425
|
+
S() && z();
|
|
426
|
+
}
|
|
427
|
+
function S() {
|
|
428
|
+
var o = null;
|
|
429
|
+
if (n.forEach((function(O) {
|
|
430
|
+
O.matches && (o = O.__media);
|
|
431
|
+
})), o === f) return !1;
|
|
432
|
+
f || i.emit("beforeOptionsChanged"), f = o;
|
|
433
|
+
var w = o ? a.breakpoints[o] : a;
|
|
434
|
+
return i.options = j(j({}, a), w), c(), A(), L(), h(), !0;
|
|
435
|
+
}
|
|
436
|
+
function M(o) {
|
|
437
|
+
var w = ot(o);
|
|
438
|
+
return (i.options.vertical ? w.height : w.width) / i.size || 1;
|
|
439
|
+
}
|
|
440
|
+
function E() {
|
|
441
|
+
return i.options.trackConfig.length;
|
|
442
|
+
}
|
|
443
|
+
function v(o) {
|
|
444
|
+
for (var w in f = !1, a = j(j({}, e), o), x.purge(), p = i.size, n = [], a.breakpoints || []) {
|
|
445
|
+
var O = window.matchMedia(w);
|
|
446
|
+
O.__media = w, n.push(O), x.add(O, "change", C);
|
|
447
|
+
}
|
|
448
|
+
x.add(window, "orientationchange", _), x.add(window, "resize", l), S();
|
|
449
|
+
}
|
|
450
|
+
function T(o) {
|
|
451
|
+
i.animator.stop();
|
|
452
|
+
var w = i.track.details;
|
|
453
|
+
i.track.init(o ?? (w ? w.abs : 0));
|
|
454
|
+
}
|
|
455
|
+
function z(o) {
|
|
456
|
+
T(o), i.emit("optionsChanged");
|
|
457
|
+
}
|
|
458
|
+
function m(o, w) {
|
|
459
|
+
if (o) return v(o), void z(w);
|
|
460
|
+
A(), L();
|
|
461
|
+
var O = E();
|
|
462
|
+
h(), E() !== O ? z(w) : T(w), i.emit("updated");
|
|
463
|
+
}
|
|
464
|
+
function h() {
|
|
465
|
+
var o = i.options.slides;
|
|
466
|
+
if (typeof o == "function") return i.options.trackConfig = o(i.size, i.slides);
|
|
467
|
+
for (var w = i.slides, O = w.length, N = typeof o == "number" ? o : F(o, "number", O, !0), W = [], q = F(o, "perView", 1, !0), g = F(o, "spacing", 0, !0) / i.size || 0, d = q === "auto" ? g : g / q, u = F(o, "origin", "auto"), r = 0, b = 0; b < N; b++) {
|
|
468
|
+
var s = q === "auto" ? M(w[b]) : 1 / q - g + d, k = u === "center" ? 0.5 - s / 2 : u === "auto" ? 0 : u;
|
|
469
|
+
W.push({ origin: k, size: s, spacing: g }), r += s;
|
|
470
|
+
}
|
|
471
|
+
if (r += g * (N - 1), u === "auto" && !i.options.loop && q !== 1) {
|
|
472
|
+
var I = 0;
|
|
473
|
+
W.map((function(D) {
|
|
474
|
+
var H = r - I;
|
|
475
|
+
return I += D.size + g, H >= 1 || (D.origin = 1 - H - (r > 1 ? 0 : 1 - r)), D;
|
|
476
|
+
}));
|
|
477
|
+
}
|
|
478
|
+
i.options.trackConfig = W;
|
|
479
|
+
}
|
|
480
|
+
function l() {
|
|
481
|
+
A();
|
|
482
|
+
var o = i.size;
|
|
483
|
+
i.options.disabled || o === p || (p = o, m());
|
|
484
|
+
}
|
|
485
|
+
function _() {
|
|
486
|
+
l(), setTimeout(l, 500), setTimeout(l, 2e3);
|
|
487
|
+
}
|
|
488
|
+
function A() {
|
|
489
|
+
var o = ot(i.container);
|
|
490
|
+
i.size = (i.options.vertical ? o.height : o.width) || 1;
|
|
491
|
+
}
|
|
492
|
+
function L() {
|
|
493
|
+
i.slides = U(i.options.selector, i.container);
|
|
494
|
+
}
|
|
495
|
+
i.container = (y = U(t, document)).length ? y[0] : null, i.destroy = function() {
|
|
496
|
+
x.purge(), i.emit("destroyed"), c(!0);
|
|
497
|
+
}, i.prev = function() {
|
|
498
|
+
i.moveToIdx(i.track.details.abs - 1, !0);
|
|
499
|
+
}, i.next = function() {
|
|
500
|
+
i.moveToIdx(i.track.details.abs + 1, !0);
|
|
501
|
+
}, i.update = m, v(i.options);
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
var gt = function(t, e, i) {
|
|
505
|
+
try {
|
|
506
|
+
return (function(f, p) {
|
|
507
|
+
var a, n = {};
|
|
508
|
+
return a = { emit: function(y) {
|
|
509
|
+
n[y] && n[y].forEach((function(c) {
|
|
510
|
+
c(a);
|
|
511
|
+
}));
|
|
512
|
+
var x = a.options && a.options[y];
|
|
513
|
+
x && x(a);
|
|
514
|
+
}, moveToIdx: function(y, x, c) {
|
|
515
|
+
var C = a.track.idxToDist(y, x);
|
|
516
|
+
if (C) {
|
|
517
|
+
var S = a.options.defaultAnimation;
|
|
518
|
+
a.animator.start([{ distance: C, duration: F(c || S, "duration", 500), easing: F(c || S, "easing", (function(M) {
|
|
519
|
+
return 1 + --M * M * M * M * M;
|
|
520
|
+
})) }]);
|
|
521
|
+
}
|
|
522
|
+
}, on: function(y, x, c) {
|
|
523
|
+
c === void 0 && (c = !1), n[y] || (n[y] = []);
|
|
524
|
+
var C = n[y].indexOf(x);
|
|
525
|
+
C > -1 ? c && delete n[y][C] : c || n[y].push(x);
|
|
526
|
+
}, options: f }, (function() {
|
|
527
|
+
if (a.track = ft(a), a.animator = lt(a), p) for (var y = 0, x = p; y < x.length; y++) (0, x[y])(a);
|
|
528
|
+
a.track.init(a.options.initial || 0), a.emit("created");
|
|
529
|
+
})(), a;
|
|
530
|
+
})(e, ut([ht(t, { drag: !0, mode: "snap", renderMode: "precision", rubberband: !0, selector: ".keen-slider__slide" }), mt, vt, pt], i || [], !0));
|
|
531
|
+
} catch (f) {
|
|
532
|
+
console.error(f);
|
|
533
|
+
}
|
|
534
|
+
};
|
|
535
|
+
export {
|
|
536
|
+
gt as default
|
|
537
|
+
};
|
|
538
|
+
//# sourceMappingURL=keen-slider-keen-slider.es.js.map
|