ez-vid-ang 21.2.10 → 21.2.12

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 CHANGED
@@ -4,4 +4,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
 
5
5
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
6
 
7
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -8,17 +8,21 @@ Highly configurable, performant and easy-to-use Angular component library for vi
8
8
  ⚡ **Zoneless** - Built for zoneless Angular applications by default<br/>
9
9
  🧩 **Standalone architecture** – No NgModules required; simpler imports, better tree-shaking, and improved DX<br/>
10
10
  🚀 **High performance** – Powered by RxJS; change detection runs only when needed (no zone pollution)<br/>
11
- 🎨 **Highly customizable** – 200+ CSS variables, custom icons, and fonts. Bring your own assets<br/>
11
+ 🎨 **Highly customizable** – 250+ CSS variables, custom icons, and fonts. Bring your own assets<br/>
12
12
  ♿ **ARIA compliant** – All components follow ARIA standards and support custom inputs<br/>
13
13
  🌍 **Multilanguage support** – Configurable text inputs for full localization<br/>
14
14
  ▶️ **Inspired by modern players** – Familiar UX similar to popular platforms<br/>
15
15
  📱 **Responsive design** - Works across all screen sizes and devices<br/>
16
16
  ⚙️ **Settings panel** – YouTube-style navigable settings menu with sub-menus<br/>
17
- ⌨️ **Keyboard shortcuts overlay** – Press `?` to show all shortcuts, auto-integrated<br/>
17
+ ⌨️ **Keyboard shortcuts** – Bind a key to any player action, plus a `?` cheat-sheet overlay that lists only the keys you've bound<br/>
18
18
  💾 **Configuration storage** – Persist user preferences (volume, speed, loop, cinema mode) to localStorage<br/>
19
+ 🌊 **Adaptive streaming** – HLS and DASH with automatic quality, audio track and subtitle selectors<br/>
20
+ 📑 **Chapters** – Chapter markers on the scrub bar, active chapter display and a chapter list panel<br/>
21
+ 👆 **Double-tap to seek** – Mobile-style double-tap gesture zones with a ripple effect<br/>
22
+ 💬 **Tooltips** – Hover tooltips on controls, with an automatic keyboard shortcut badge<br/>
19
23
  🎬 **Cinema mode** – Dim the page and focus on the video<br/>
20
24
  🖼️ **Thumbnail preview** – Hover the scrub bar to see video frame thumbnails via VTT sprite sheets<br/>
21
- 📺 **Remote playback** – Cast to ChromeCast or AirPlay with one click, auto-hides when no devices available<br/>
25
+ 📺 **Remote playback** – Cast to Chromecast or AirPlay with one click, auto-hides when no devices available<br/>
22
26
 
23
27
  ## Example project
24
28
 
@@ -26,14 +30,17 @@ Example project can be found on [Stackblitz](https://stackblitz.com/edit/stackbl
26
30
 
27
31
  ## Version compatibility
28
32
 
29
- EzVidAng updates and develops the library for the 2 latest versions.
33
+ EzVidAng updates and develops the library for the 2 latest Angular major versions.
30
34
 
31
- | EzVidAng | Angular | Node.js |
32
- | -------- | ------- | ----------------------------------------------------------------------------------------------- |
33
- | ^21.2.x | ^21.2.x | [According to Angular docs](https://angular.dev/reference/versions#actively-supported-versions) |
34
- | ^22.0.x | ^22.0.x | [According to Angular docs](https://angular.dev/reference/versions#actively-supported-versions) |
35
- | ^22.1.x | ^22.1.x | [According to Angular docs](https://angular.dev/reference/versions#actively-supported-versions) |
36
- | ^22.2.x | ^22.2.x | [According to Angular docs](https://angular.dev/reference/versions#actively-supported-versions) |
35
+ | EzVidAng | Angular | Install | Node.js |
36
+ | -------- | ---------------------- | ---------------------------- | ----------------------------------------------------------------------------------------------- |
37
+ | ^21.2.x | 21.2.x | `npm i ez-vid-ang@angular21` | [According to Angular docs](https://angular.dev/reference/versions#actively-supported-versions) |
38
+ | ^22.3.x | 22.3.x, 22.4.x, 22.5.x | `npm i ez-vid-ang` | [According to Angular docs](https://angular.dev/reference/versions#actively-supported-versions) |
39
+
40
+ Starting with v22, Angular ships a major version every 12 months with 4–6 minor versions in between ([release schedule](https://angular.dev/reference/releases#release-schedule)). EzVidAng 22.3.x supports Angular 22.3, 22.4 and 22.5 with a single release line.
41
+
42
+ > [!NOTE]
43
+ > EzVidAng 22.0.x, 22.1.x and 22.2.x (for Angular 22.0–22.2) stay on npm but no longer receive updates. To get new features and fixes, update your app to Angular 22.3 or newer and install the latest EzVidAng.
37
44
 
38
45
  ## Installing and preparation
39
46
 
@@ -63,6 +70,12 @@ Add the required styles to your angular.json:
63
70
  }
64
71
  ```
65
72
 
73
+ Alternatively, `@use` it from your global stylesheet:
74
+
75
+ ```scss
76
+ @use "ez-vid-ang/assets/eva-required-import";
77
+ ```
78
+
66
79
  Register the built-in icons once in your `main.ts` (or any bootstrapping code that runs before your components render):
67
80
 
68
81
  ```typescript
@@ -185,12 +198,48 @@ export class PlayerComponent {
185
198
 
186
199
  See [Simple Example](documentation/example-simple.md) and [Full-Featured Example](documentation/example-configuration.md) for complete usage.
187
200
 
201
+ ### Opt-in features: keyboard shortcuts and localStorage
202
+
203
+ Keyboard shortcuts and preference persistence are not built into `EvaPlayer`. Each one is a separate directive that you add to your component's `imports`, so players that don't use them don't ship their code. You still configure them through inputs on `<eva-player>`:
204
+
205
+ | Inputs on `<eva-player>` | Add to `imports` |
206
+ | ------------------------------------------------------------------------------ | ---------------------------------- |
207
+ | `evaKeyboardShortcutsEnabled`, `evaKeyboardShortcutsConfiguration` | `EvaKeyboardShortcuts` |
208
+ | `evaLocalStorageEnabled`, `evaLocalStorageKey`, `evaLocalStorageConfiguration` | `EvaConfigurationStorageDirective` |
209
+
210
+ ```typescript
211
+ import { EvaConfigurationStorageDirective, EvaKeyboardShortcuts, EvaPlayer } from "ez-vid-ang";
212
+
213
+ @Component({
214
+ imports: [EvaPlayer, EvaKeyboardShortcuts, EvaConfigurationStorageDirective /* , ...controls */],
215
+ template: `
216
+ <eva-player
217
+ id="player"
218
+ [evaVideoSources]="sources()"
219
+ [evaKeyboardShortcutsEnabled]="true"
220
+ [evaKeyboardShortcutsConfiguration]="{ playPause: 'Space', muteKey: 'M', fullscreen: 'F' }"
221
+ [evaLocalStorageEnabled]="true"
222
+ [evaLocalStorageConfiguration]="{ volume: true, playbackSpeed: true }"
223
+ />
224
+ `,
225
+ })
226
+ ```
227
+
228
+ No key is bound by default. A shortcut only works once you assign it a key in `evaKeyboardShortcutsConfiguration`. See [keyboard shortcuts](documentation/core/player.md#evakeyboardshortcutsconfiguration) and [configuration storage](documentation/core/configuration-storage.md).
229
+
230
+ > [!NOTE]
231
+ > **Upgrading to 22.3.0 / 21.2.12 or newer?** If you bind any of the inputs above, add the matching directive to your component's `imports`. Templates don't change. If the import is missing, the build fails with `Can't bind to '…' since it isn't a known property of 'eva-player'`. See the [changelog](CHANGELOG.md).
232
+
233
+ ## Using an AI coding assistant?
234
+
235
+ Copy [AI_INSTRUCTIONS.md](AI_INSTRUCTIONS.md) into your assistant's context (`CLAUDE.md`, `AGENTS.md`, `.cursorrules`, `.github/copilot-instructions.md`, …). It lists the real component names, inputs and setup steps, so the assistant doesn't have to guess them.
236
+
188
237
  ## Components
189
238
 
190
239
  Library has four groups of components. Click on the name to go to the documentation:
191
240
 
192
241
  - [**EvaCore**](documentation/core) – Main player component, icon registry, directives (keyboard shortcuts, configuration storage), and providers
193
- - [**EvaControls**](documentation/controls) – Video control components (play/pause, volume, scrub bar, fullscreen, playback speed, quality selector, track selector, loop, picture-in-picture, download, screenshot, context menu, settings panel, keyboard shortcuts overlay, cinema mode, error overlay, chapter list, and more)
242
+ - [**EvaControls**](documentation/controls) – Video control components (play/pause, volume, scrub bar, fullscreen, playback speed, quality selector, track selector, loop, picture-in-picture, download, screenshot, context menu, settings panel, keyboard shortcuts overlay, cinema mode, error overlay, chapter list, double-tap seek, and more)
194
243
  - [**EvaBuffering**](documentation/buffering) – Loading and buffering indicators
195
244
  - [**EvaStreaming**](documentation/streaming) – Directives for HLS and DASH live streaming support
196
245
 
@@ -200,14 +249,20 @@ Library has four groups of components. Click on the name to go to the documentat
200
249
 
201
250
  There are few functionalities I want to implement that are work in progress:
202
251
 
203
- - **Audio selection** - Select audio track for the video
204
252
  - **A/B loop** - Let users set loop start/end points on the scrub bar for segment replay. Useful for music/education.
205
- - **Double tap forward/backward** - Double-tap left/right halves of the video to seek backward/forward. Standard mobile UX (YouTube, Netflix).
206
253
 
207
254
  ---
208
255
 
209
256
  ## Development
210
257
 
258
+ ### Building and testing
259
+
260
+ ```bash
261
+ npm run build # Development build of the library into dist/ez-vid-ang
262
+ npm run buildProd # Production build
263
+ npm test # Unit tests (Vitest)
264
+ ```
265
+
211
266
  ### Linting
212
267
 
213
268
  The project uses a strict ESLint configuration with type-aware TypeScript rules and Angular-specific template rules. All available rule presets are enabled.
@@ -265,6 +265,14 @@
265
265
  --eva-shortcuts-overlay-key-border: 1px solid rgba(255, 255, 255, 0.15);
266
266
  --eva-shortcuts-overlay-key-font-size: 12px;
267
267
  --eva-shortcuts-overlay-key-color: rgba(255, 255, 255, 0.9);
268
+
269
+ --eva-double-tap-ripple-background: rgba(255, 255, 255, 0.25);
270
+ --eva-double-tap-ripple-duration: 0.6s;
271
+ --eva-double-tap-label-background: rgba(0, 0, 0, 0.6);
272
+ --eva-double-tap-label-color: white;
273
+ --eva-double-tap-label-font-size: 14px;
274
+ --eva-double-tap-label-padding: 14px 18px;
275
+ --eva-double-tap-label-icon-size: 28px;
268
276
  }
269
277
 
270
278
  .eva-tooltip-popup {
@@ -1,36 +1,14 @@
1
- /**
2
- * Tree-shakeable SVG icon constants for the Eva video player.
3
- *
4
- * Import only the icons you need and register them with `addEvaIcons`:
5
- *
6
- * @example
7
- * // Register specific icons (best for bundle size)
8
- * import { addEvaIcons } from 'ez-vid-ang';
9
- * import { evaPlayIcon, evaPauseIcon, evaFullscreenIcon } from 'ez-vid-ang/icons';
10
- * addEvaIcons({ evaPlayIcon, evaPauseIcon, evaFullscreenIcon });
11
- *
12
- * @example
13
- * // Register all default icons (convenience)
14
- * import { addEvaIcons } from 'ez-vid-ang';
15
- * import { evaAllIcons } from 'ez-vid-ang/icons';
16
- * addEvaIcons(evaAllIcons);
17
- */
18
- // ─── Playback ─────────────────────────────────────────────────────────────────
19
1
  const evaPlayIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg>`;
20
2
  const evaPauseIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>`;
21
- // ─── Seeking ──────────────────────────────────────────────────────────────────
22
3
  const evaForward10Icon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M18,13c0,3.31-2.69,6-6,6s-6-2.69-6-6s2.69-6,6-6v4l5-5l-5-5v4c-4.42,0-8,3.58-8,8c0,4.42,3.58,8,8,8s8-3.58,8-8H18z"/><polygon points="10.86,15.94 10.86,11.67 10.77,11.67 9,12.3 9,12.99 10.01,12.68 10.01,15.94"/><path d="M12.25,13.44v0.74c0,1.9,1.31,1.82,1.44,1.82c0.14,0,1.44,0.09,1.44-1.82v-0.74c0-1.9-1.31-1.82-1.44-1.82C13.55,11.62,12.25,11.53,12.25,13.44z M14.29,13.32v0.97c0,0.77-0.21,1.03-0.59,1.03c-0.38,0-0.6-0.26-0.6-1.03v-0.97c0-0.75,0.22-1.01,0.59-1.01C14.07,12.3,14.29,12.57,14.29,13.32z"/></svg>`;
23
4
  const evaForward30Icon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M18,13c0,3.31-2.69,6-6,6s-6-2.69-6-6s2.69-6,6-6v4l5-5l-5-5v4c-4.42,0-8,3.58-8,8c0,4.42,3.58,8,8,8s8-3.58,8-8H18z"/><path d="M10.06,15.38c-0.29,0-0.62-0.17-0.62-0.54H8.59c0,0.97,0.9,1.23,1.45,1.23c0.87,0,1.51-0.46,1.51-1.25c0-0.66-0.45-0.9-0.71-1c0.11-0.05,0.65-0.32,0.65-0.92c0-0.21-0.05-1.22-1.44-1.22c-0.62,0-1.4,0.35-1.4,1.16h0.85c0-0.34,0.31-0.48,0.57-0.48c0.59,0,0.58,0.5,0.58,0.54c0,0.52-0.41,0.59-0.63,0.59H9.56v0.66h0.45c0.65,0,0.7,0.42,0.7,0.64C10.71,15.11,10.5,15.38,10.06,15.38z"/><path d="M13.85,11.68c-0.14,0-1.44-0.08-1.44,1.82v0.74c0,1.9,1.31,1.82,1.44,1.82c0.14,0,1.44,0.09,1.44-1.82V13.5C15.3,11.59,13.99,11.68,13.85,11.68z M14.45,14.35c0,0.77-0.21,1.03-0.59,1.03c-0.38,0-0.6-0.26-0.6-1.03v-0.97c0-0.75,0.22-1.01,0.59-1.01c0.38,0,0.6,0.26,0.6,1.01V14.35z"/></svg>`;
24
5
  const evaBackward10Icon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M11.99,5V1l-5,5l5,5V7c3.31,0,6,2.69,6,6s-2.69,6-6,6s-6-2.69-6-6h-2c0,4.42,3.58,8,8,8s8-3.58,8-8S16.41,5,11.99,5z"/><path d="M10.89,16h-0.85v-3.26l-1.01,0.31v-0.69l1.77-0.63h0.09V16z"/><path d="M15.17,14.24c0,0.32-0.03,0.6-0.1,0.82s-0.17,0.42-0.29,0.57s-0.28,0.26-0.45,0.33s-0.37,0.1-0.59,0.1s-0.41-0.03-0.59-0.1s-0.33-0.18-0.46-0.33s-0.23-0.34-0.3-0.57s-0.11-0.5-0.11-0.82V13.5c0-0.32,0.03-0.6,0.1-0.82s0.17-0.42,0.29-0.57s0.28-0.26,0.45-0.33s0.37-0.1,0.59-0.1s0.41,0.03,0.59,0.1c0.18,0.07,0.33,0.18,0.46,0.33s0.23,0.34,0.3,0.57s0.11,0.5,0.11,0.82V14.24z M14.32,13.38c0-0.19-0.01-0.35-0.04-0.48s-0.07-0.23-0.12-0.31s-0.11-0.14-0.19-0.17s-0.16-0.05-0.25-0.05s-0.18,0.02-0.25,0.05s-0.14,0.09-0.19,0.17s-0.09,0.18-0.12,0.31s-0.04,0.29-0.04,0.48v0.97c0,0.19,0.01,0.35,0.04,0.48s0.07,0.24,0.12,0.32s0.11,0.14,0.19,0.17s0.16,0.05,0.25,0.05s0.18-0.02,0.25-0.05s0.14-0.09,0.19-0.17s0.09-0.19,0.11-0.32s0.04-0.29,0.04-0.48V13.38z"/></svg>`;
25
6
  const evaBackward30Icon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M12,5V1L7,6l5,5V7c3.31,0,6,2.69,6,6s-2.69,6-6,6s-6-2.69-6-6H4c0,4.42,3.58,8,8,8s8-3.58,8-8S16.42,5,12,5z"/><path d="M9.56,13.49h0.45c0.21,0,0.37-0.05,0.48-0.16s0.16-0.25,0.16-0.43c0-0.08-0.01-0.15-0.04-0.22s-0.06-0.12-0.11-0.17s-0.11-0.09-0.18-0.11s-0.16-0.04-0.25-0.04c-0.08,0-0.15,0.01-0.22,0.03s-0.13,0.05-0.18,0.1s-0.09,0.09-0.12,0.15s-0.05,0.13-0.05,0.2H8.65c0-0.18,0.04-0.34,0.11-0.48s0.17-0.27,0.3-0.37s0.27-0.18,0.44-0.23s0.35-0.08,0.54-0.08c0.21,0,0.41,0.03,0.59,0.08s0.33,0.13,0.46,0.23s0.23,0.23,0.3,0.38s0.11,0.33,0.11,0.53c0,0.09-0.01,0.18-0.04,0.27s-0.07,0.17-0.13,0.25s-0.12,0.15-0.2,0.22s-0.17,0.12-0.28,0.17c0.24,0.09,0.42,0.21,0.54,0.39s0.18,0.38,0.18,0.61c0,0.2-0.04,0.38-0.12,0.53s-0.18,0.29-0.32,0.39s-0.29,0.19-0.48,0.24s-0.38,0.08-0.6,0.08c-0.18,0-0.36-0.02-0.53-0.07s-0.33-0.12-0.46-0.23s-0.25-0.23-0.33-0.38s-0.12-0.34-0.12-0.55h0.85c0,0.08,0.02,0.15,0.05,0.22s0.07,0.12,0.13,0.17s0.12,0.09,0.2,0.11s0.16,0.04,0.25,0.04c0.1,0,0.19-0.01,0.27-0.04s0.15-0.07,0.2-0.12s0.1-0.11,0.13-0.18s0.04-0.15,0.04-0.24c0-0.11-0.02-0.21-0.05-0.29s-0.08-0.15-0.14-0.2s-0.13-0.09-0.22-0.11s-0.18-0.04-0.29-0.04H9.56V13.49z"/><path d="M15.3,14.24c0,0.32-0.03,0.6-0.1,0.82s-0.17,0.42-0.29,0.57s-0.28,0.26-0.45,0.33s-0.37,0.1-0.59,0.1s-0.41-0.03-0.59-0.1s-0.33-0.18-0.46-0.33s-0.23-0.34-0.3-0.57s-0.11-0.5-0.11-0.82V13.5c0-0.32,0.03-0.6,0.1-0.82s0.17-0.42,0.29-0.57s0.28-0.26,0.45-0.33s0.37-0.1,0.59-0.1s0.41,0.03,0.59,0.1s0.33,0.18,0.46,0.33s0.23,0.34,0.3,0.57s0.11,0.5,0.11,0.82V14.24z M14.45,13.38c0-0.19-0.01-0.35-0.04-0.48c-0.03-0.13-0.07-0.23-0.12-0.31s-0.11-0.14-0.19-0.17s-0.16-0.05-0.25-0.05s-0.18,0.02-0.25,0.05s-0.14,0.09-0.19,0.17s-0.09,0.18-0.12,0.31s-0.04,0.29-0.04,0.48v0.97c0,0.19,0.01,0.35,0.04,0.48s0.07,0.24,0.12,0.32s0.11,0.14,0.19,0.17s0.16,0.05,0.25,0.05s0.18-0.02,0.25-0.05s0.14-0.09,0.19-0.17s0.09-0.19,0.11-0.32c0.03-0.13,0.04-0.29,0.04-0.48V13.38z"/></svg>`;
26
- // ─── Volume ───────────────────────────────────────────────────────────────────
27
7
  const evaVolumeHighIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>`;
28
8
  const evaVolumeMediumIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"/></svg>`;
29
9
  const evaVolumeLowIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M7 9v6h4l5 5V4l-5 5H7z"/></svg>`;
30
10
  const evaVolumeMuteIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/></svg>`;
31
- // ─── UI Controls ──────────────────────────────────────────────────────────────
32
11
  const evaSettingsIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M19.14,12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94L14.4,2.81c-.04-.24-.24-.41-.48-.41H9.07c-.24,0-.43.17-.47.41L8.24,5.35C7.65,5.59 7.11,5.92 6.62,6.29L4.24,5.33c-.22-.08-.47,0-.59.22L1.73,8.87c-.12.22-.07.47.12.61l2.03,1.58C3.84,11.36 3.8,11.69 3.8,12c0,.31.02.64.07.94L1.84,14.52c-.18.14-.23.41-.12.61l1.92,3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36,2.54c.05.24.24.41.48.41h3.84c.24,0,.44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47,0,.59-.22l1.92-3.32c.12-.22.07-.47-.12-.61ZM12,15.6c-1.98,0-3.6-1.62-3.6-3.6s1.62-3.6,3.6-3.6 3.6,1.62,3.6,3.6-1.62,3.6-3.6,3.6z"/></svg>`;
33
- // ─── Display ──────────────────────────────────────────────────────────────────
34
12
  const evaFullscreenIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>`;
35
13
  const evaFullscreenExitIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>`;
36
14
  const evaCinemaModeIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20M4,6V18H20V6H4M6,8H18V16H6V8Z"/></svg>`;
@@ -39,36 +17,27 @@ const evaPictureInPictureIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox
39
17
  const evaRemotePlaybackIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M1,10V12A9,9 0 0,1 10,21H12C12,14.92 7.07,10 1,10M1,14V16A5,5 0 0,1 6,21H8A7,7 0 0,0 1,14M1,18V21H4A3,3 0 0,0 1,18M21,3H3C1.89,3 1,3.89 1,5V8H3V5H21V19H14V21H21A2,2 0 0,0 23,19V5C23,3.89 22.1,3 21,3Z"/></svg>`;
40
18
  const evaDownloadIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"/></svg>`;
41
19
  const evaScreenshotIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="currentColor"><path d="M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z"/></svg>`;
42
- // ─── Convenience barrel ───────────────────────────────────────────────────────
43
- /**
44
- * All default Eva icons in a single object.
45
- * Pass to `addEvaIcons` to register everything at once.
46
- */
47
20
  const evaAllIcons = {
48
- evaPlayIcon,
49
- evaPauseIcon,
50
- evaSettingsIcon,
51
- evaForward10Icon,
52
- evaForward30Icon,
53
- evaBackward10Icon,
54
- evaBackward30Icon,
55
- evaVolumeHighIcon,
56
- evaVolumeMediumIcon,
57
- evaVolumeLowIcon,
58
- evaVolumeMuteIcon,
59
- evaFullscreenIcon,
60
- evaFullscreenExitIcon,
61
- evaCinemaModeIcon,
62
- evaLoopIcon,
63
- evaPictureInPictureIcon,
64
- evaRemotePlaybackIcon,
65
- evaDownloadIcon,
66
- evaScreenshotIcon,
21
+ evaPlayIcon,
22
+ evaPauseIcon,
23
+ evaSettingsIcon,
24
+ evaForward10Icon,
25
+ evaForward30Icon,
26
+ evaBackward10Icon,
27
+ evaBackward30Icon,
28
+ evaVolumeHighIcon,
29
+ evaVolumeMediumIcon,
30
+ evaVolumeLowIcon,
31
+ evaVolumeMuteIcon,
32
+ evaFullscreenIcon,
33
+ evaFullscreenExitIcon,
34
+ evaCinemaModeIcon,
35
+ evaLoopIcon,
36
+ evaPictureInPictureIcon,
37
+ evaRemotePlaybackIcon,
38
+ evaDownloadIcon,
39
+ evaScreenshotIcon
67
40
  };
68
-
69
- /**
70
- * Generated bundle index. Do not edit.
71
- */
72
-
73
41
  export { evaAllIcons, evaBackward10Icon, evaBackward30Icon, evaCinemaModeIcon, evaDownloadIcon, evaForward10Icon, evaForward30Icon, evaFullscreenExitIcon, evaFullscreenIcon, evaLoopIcon, evaPauseIcon, evaPictureInPictureIcon, evaPlayIcon, evaRemotePlaybackIcon, evaScreenshotIcon, evaSettingsIcon, evaVolumeHighIcon, evaVolumeLowIcon, evaVolumeMediumIcon, evaVolumeMuteIcon };
74
- //# sourceMappingURL=ez-vid-ang-icons.mjs.map
42
+
43
+ //# sourceMappingURL=ez-vid-ang-icons.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ez-vid-ang-icons.mjs","sources":["../../../projects/ez-vid-ang/src/icons/index.ts","../../../projects/ez-vid-ang/src/icons/ez-vid-ang-icons.ts"],"sourcesContent":["/**\n * Tree-shakeable SVG icon constants for the Eva video player.\n *\n * Import only the icons you need and register them with `addEvaIcons`:\n *\n * @example\n * // Register specific icons (best for bundle size)\n * import { addEvaIcons } from 'ez-vid-ang';\n * import { evaPlayIcon, evaPauseIcon, evaFullscreenIcon } from 'ez-vid-ang/icons';\n * addEvaIcons({ evaPlayIcon, evaPauseIcon, evaFullscreenIcon });\n *\n * @example\n * // Register all default icons (convenience)\n * import { addEvaIcons } from 'ez-vid-ang';\n * import { evaAllIcons } from 'ez-vid-ang/icons';\n * addEvaIcons(evaAllIcons);\n */\n\n// ─── Playback ─────────────────────────────────────────────────────────────────\n\nexport const evaPlayIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M8 5v14l11-7z\"/></svg>`;\n\nexport const evaPauseIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"/></svg>`;\n\n// ─── Seeking ──────────────────────────────────────────────────────────────────\n\nexport const evaForward10Icon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M18,13c0,3.31-2.69,6-6,6s-6-2.69-6-6s2.69-6,6-6v4l5-5l-5-5v4c-4.42,0-8,3.58-8,8c0,4.42,3.58,8,8,8s8-3.58,8-8H18z\"/><polygon points=\"10.86,15.94 10.86,11.67 10.77,11.67 9,12.3 9,12.99 10.01,12.68 10.01,15.94\"/><path d=\"M12.25,13.44v0.74c0,1.9,1.31,1.82,1.44,1.82c0.14,0,1.44,0.09,1.44-1.82v-0.74c0-1.9-1.31-1.82-1.44-1.82C13.55,11.62,12.25,11.53,12.25,13.44z M14.29,13.32v0.97c0,0.77-0.21,1.03-0.59,1.03c-0.38,0-0.6-0.26-0.6-1.03v-0.97c0-0.75,0.22-1.01,0.59-1.01C14.07,12.3,14.29,12.57,14.29,13.32z\"/></svg>`;\n\nexport const evaForward30Icon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M18,13c0,3.31-2.69,6-6,6s-6-2.69-6-6s2.69-6,6-6v4l5-5l-5-5v4c-4.42,0-8,3.58-8,8c0,4.42,3.58,8,8,8s8-3.58,8-8H18z\"/><path d=\"M10.06,15.38c-0.29,0-0.62-0.17-0.62-0.54H8.59c0,0.97,0.9,1.23,1.45,1.23c0.87,0,1.51-0.46,1.51-1.25c0-0.66-0.45-0.9-0.71-1c0.11-0.05,0.65-0.32,0.65-0.92c0-0.21-0.05-1.22-1.44-1.22c-0.62,0-1.4,0.35-1.4,1.16h0.85c0-0.34,0.31-0.48,0.57-0.48c0.59,0,0.58,0.5,0.58,0.54c0,0.52-0.41,0.59-0.63,0.59H9.56v0.66h0.45c0.65,0,0.7,0.42,0.7,0.64C10.71,15.11,10.5,15.38,10.06,15.38z\"/><path d=\"M13.85,11.68c-0.14,0-1.44-0.08-1.44,1.82v0.74c0,1.9,1.31,1.82,1.44,1.82c0.14,0,1.44,0.09,1.44-1.82V13.5C15.3,11.59,13.99,11.68,13.85,11.68z M14.45,14.35c0,0.77-0.21,1.03-0.59,1.03c-0.38,0-0.6-0.26-0.6-1.03v-0.97c0-0.75,0.22-1.01,0.59-1.01c0.38,0,0.6,0.26,0.6,1.01V14.35z\"/></svg>`;\n\nexport const evaBackward10Icon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M11.99,5V1l-5,5l5,5V7c3.31,0,6,2.69,6,6s-2.69,6-6,6s-6-2.69-6-6h-2c0,4.42,3.58,8,8,8s8-3.58,8-8S16.41,5,11.99,5z\"/><path d=\"M10.89,16h-0.85v-3.26l-1.01,0.31v-0.69l1.77-0.63h0.09V16z\"/><path d=\"M15.17,14.24c0,0.32-0.03,0.6-0.1,0.82s-0.17,0.42-0.29,0.57s-0.28,0.26-0.45,0.33s-0.37,0.1-0.59,0.1s-0.41-0.03-0.59-0.1s-0.33-0.18-0.46-0.33s-0.23-0.34-0.3-0.57s-0.11-0.5-0.11-0.82V13.5c0-0.32,0.03-0.6,0.1-0.82s0.17-0.42,0.29-0.57s0.28-0.26,0.45-0.33s0.37-0.1,0.59-0.1s0.41,0.03,0.59,0.1c0.18,0.07,0.33,0.18,0.46,0.33s0.23,0.34,0.3,0.57s0.11,0.5,0.11,0.82V14.24z M14.32,13.38c0-0.19-0.01-0.35-0.04-0.48s-0.07-0.23-0.12-0.31s-0.11-0.14-0.19-0.17s-0.16-0.05-0.25-0.05s-0.18,0.02-0.25,0.05s-0.14,0.09-0.19,0.17s-0.09,0.18-0.12,0.31s-0.04,0.29-0.04,0.48v0.97c0,0.19,0.01,0.35,0.04,0.48s0.07,0.24,0.12,0.32s0.11,0.14,0.19,0.17s0.16,0.05,0.25,0.05s0.18-0.02,0.25-0.05s0.14-0.09,0.19-0.17s0.09-0.19,0.11-0.32s0.04-0.29,0.04-0.48V13.38z\"/></svg>`;\n\nexport const evaBackward30Icon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M12,5V1L7,6l5,5V7c3.31,0,6,2.69,6,6s-2.69,6-6,6s-6-2.69-6-6H4c0,4.42,3.58,8,8,8s8-3.58,8-8S16.42,5,12,5z\"/><path d=\"M9.56,13.49h0.45c0.21,0,0.37-0.05,0.48-0.16s0.16-0.25,0.16-0.43c0-0.08-0.01-0.15-0.04-0.22s-0.06-0.12-0.11-0.17s-0.11-0.09-0.18-0.11s-0.16-0.04-0.25-0.04c-0.08,0-0.15,0.01-0.22,0.03s-0.13,0.05-0.18,0.1s-0.09,0.09-0.12,0.15s-0.05,0.13-0.05,0.2H8.65c0-0.18,0.04-0.34,0.11-0.48s0.17-0.27,0.3-0.37s0.27-0.18,0.44-0.23s0.35-0.08,0.54-0.08c0.21,0,0.41,0.03,0.59,0.08s0.33,0.13,0.46,0.23s0.23,0.23,0.3,0.38s0.11,0.33,0.11,0.53c0,0.09-0.01,0.18-0.04,0.27s-0.07,0.17-0.13,0.25s-0.12,0.15-0.2,0.22s-0.17,0.12-0.28,0.17c0.24,0.09,0.42,0.21,0.54,0.39s0.18,0.38,0.18,0.61c0,0.2-0.04,0.38-0.12,0.53s-0.18,0.29-0.32,0.39s-0.29,0.19-0.48,0.24s-0.38,0.08-0.6,0.08c-0.18,0-0.36-0.02-0.53-0.07s-0.33-0.12-0.46-0.23s-0.25-0.23-0.33-0.38s-0.12-0.34-0.12-0.55h0.85c0,0.08,0.02,0.15,0.05,0.22s0.07,0.12,0.13,0.17s0.12,0.09,0.2,0.11s0.16,0.04,0.25,0.04c0.1,0,0.19-0.01,0.27-0.04s0.15-0.07,0.2-0.12s0.1-0.11,0.13-0.18s0.04-0.15,0.04-0.24c0-0.11-0.02-0.21-0.05-0.29s-0.08-0.15-0.14-0.2s-0.13-0.09-0.22-0.11s-0.18-0.04-0.29-0.04H9.56V13.49z\"/><path d=\"M15.3,14.24c0,0.32-0.03,0.6-0.1,0.82s-0.17,0.42-0.29,0.57s-0.28,0.26-0.45,0.33s-0.37,0.1-0.59,0.1s-0.41-0.03-0.59-0.1s-0.33-0.18-0.46-0.33s-0.23-0.34-0.3-0.57s-0.11-0.5-0.11-0.82V13.5c0-0.32,0.03-0.6,0.1-0.82s0.17-0.42,0.29-0.57s0.28-0.26,0.45-0.33s0.37-0.1,0.59-0.1s0.41,0.03,0.59,0.1s0.33,0.18,0.46,0.33s0.23,0.34,0.3,0.57s0.11,0.5,0.11,0.82V14.24z M14.45,13.38c0-0.19-0.01-0.35-0.04-0.48c-0.03-0.13-0.07-0.23-0.12-0.31s-0.11-0.14-0.19-0.17s-0.16-0.05-0.25-0.05s-0.18,0.02-0.25,0.05s-0.14,0.09-0.19,0.17s-0.09,0.18-0.12,0.31s-0.04,0.29-0.04,0.48v0.97c0,0.19,0.01,0.35,0.04,0.48s0.07,0.24,0.12,0.32s0.11,0.14,0.19,0.17s0.16,0.05,0.25,0.05s0.18-0.02,0.25-0.05s0.14-0.09,0.19-0.17s0.09-0.19,0.11-0.32c0.03-0.13,0.04-0.29,0.04-0.48V13.38z\"/></svg>`;\n\n// ─── Volume ───────────────────────────────────────────────────────────────────\n\nexport const evaVolumeHighIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z\"/></svg>`;\n\nexport const evaVolumeMediumIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z\"/></svg>`;\n\nexport const evaVolumeLowIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M7 9v6h4l5 5V4l-5 5H7z\"/></svg>`;\n\nexport const evaVolumeMuteIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z\"/></svg>`;\n\n// ─── UI Controls ──────────────────────────────────────────────────────────────\n\nexport const evaSettingsIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M19.14,12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94L14.4,2.81c-.04-.24-.24-.41-.48-.41H9.07c-.24,0-.43.17-.47.41L8.24,5.35C7.65,5.59 7.11,5.92 6.62,6.29L4.24,5.33c-.22-.08-.47,0-.59.22L1.73,8.87c-.12.22-.07.47.12.61l2.03,1.58C3.84,11.36 3.8,11.69 3.8,12c0,.31.02.64.07.94L1.84,14.52c-.18.14-.23.41-.12.61l1.92,3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36,2.54c.05.24.24.41.48.41h3.84c.24,0,.44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47,0,.59-.22l1.92-3.32c.12-.22.07-.47-.12-.61ZM12,15.6c-1.98,0-3.6-1.62-3.6-3.6s1.62-3.6,3.6-3.6 3.6,1.62,3.6,3.6-1.62,3.6-3.6,3.6z\"/></svg>`;\n\n// ─── Display ──────────────────────────────────────────────────────────────────\n\nexport const evaFullscreenIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z\"/></svg>`;\n\nexport const evaFullscreenExitIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z\"/></svg>`;\n\nexport const evaCinemaModeIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20M4,6V18H20V6H4M6,8H18V16H6V8Z\"/></svg>`;\n\nexport const evaLoopIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z\"/></svg>`;\n\nexport const evaPictureInPictureIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M19,11H11V17H19V11M23,19V5C23,3.88 22.1,3 21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19M21,19H3V4.97H21V19Z\"/></svg>`;\n\nexport const evaRemotePlaybackIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M1,10V12A9,9 0 0,1 10,21H12C12,14.92 7.07,10 1,10M1,14V16A5,5 0 0,1 6,21H8A7,7 0 0,0 1,14M1,18V21H4A3,3 0 0,0 1,18M21,3H3C1.89,3 1,3.89 1,5V8H3V5H21V19H14V21H21A2,2 0 0,0 23,19V5C23,3.89 22.1,3 21,3Z\"/></svg>`;\n\nexport const evaDownloadIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z\"/></svg>`;\n\nexport const evaScreenshotIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z\"/></svg>`;\n\n// ─── Convenience barrel ───────────────────────────────────────────────────────\n\n/**\n * All default Eva icons in a single object.\n * Pass to `addEvaIcons` to register everything at once.\n */\nexport const evaAllIcons: Record<string, string> = {\n evaPlayIcon,\n evaPauseIcon,\n evaSettingsIcon,\n evaForward10Icon,\n evaForward30Icon,\n evaBackward10Icon,\n evaBackward30Icon,\n evaVolumeHighIcon,\n evaVolumeMediumIcon,\n evaVolumeLowIcon,\n evaVolumeMuteIcon,\n evaFullscreenIcon,\n evaFullscreenExitIcon,\n evaCinemaModeIcon,\n evaLoopIcon,\n evaPictureInPictureIcon,\n evaRemotePlaybackIcon,\n evaDownloadIcon,\n evaScreenshotIcon,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;AAgBG;AAEH;AAEO,MAAM,WAAW,GAAG;AAEpB,MAAM,YAAY,GAAG;AAE5B;AAEO,MAAM,gBAAgB,GAAG;AAEzB,MAAM,gBAAgB,GAAG;AAEzB,MAAM,iBAAiB,GAAG;AAE1B,MAAM,iBAAiB,GAAG;AAEjC;AAEO,MAAM,iBAAiB,GAAG;AAE1B,MAAM,mBAAmB,GAAG;AAE5B,MAAM,gBAAgB,GAAG;AAEzB,MAAM,iBAAiB,GAAG;AAEjC;AAEO,MAAM,eAAe,GAAG;AAE/B;AAEO,MAAM,iBAAiB,GAAG;AAE1B,MAAM,qBAAqB,GAAG;AAE9B,MAAM,iBAAiB,GAAG;AAE1B,MAAM,WAAW,GAAG;AAEpB,MAAM,uBAAuB,GAAG;AAEhC,MAAM,qBAAqB,GAAG;AAE9B,MAAM,eAAe,GAAG;AAExB,MAAM,iBAAiB,GAAG;AAEjC;AAEA;;;AAGG;AACI,MAAM,WAAW,GAA2B;IACjD,WAAW;IACX,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,mBAAmB;IACnB,gBAAgB;IAChB,iBAAiB;IACjB,iBAAiB;IACjB,qBAAqB;IACrB,iBAAiB;IACjB,WAAW;IACX,uBAAuB;IACvB,qBAAqB;IACrB,eAAe;IACf,iBAAiB;;;AC3FnB;;AAEG;;"}
1
+ {"version":3,"file":"ez-vid-ang-icons.mjs","names":[],"sources":["../../../projects/ez-vid-ang/src/icons/index.ts"],"sourcesContent":["/**\n * Tree-shakeable SVG icon constants for the Eva video player.\n *\n * Import only the icons you need and register them with `addEvaIcons`:\n *\n * @example\n * // Register specific icons (best for bundle size)\n * import { addEvaIcons } from 'ez-vid-ang';\n * import { evaPlayIcon, evaPauseIcon, evaFullscreenIcon } from 'ez-vid-ang/icons';\n * addEvaIcons({ evaPlayIcon, evaPauseIcon, evaFullscreenIcon });\n *\n * @example\n * // Register all default icons (convenience)\n * import { addEvaIcons } from 'ez-vid-ang';\n * import { evaAllIcons } from 'ez-vid-ang/icons';\n * addEvaIcons(evaAllIcons);\n */\n\n// ─── Playback ─────────────────────────────────────────────────────────────────\n\nexport const evaPlayIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M8 5v14l11-7z\"/></svg>`;\n\nexport const evaPauseIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"/></svg>`;\n\n// ─── Seeking ──────────────────────────────────────────────────────────────────\n\nexport const evaForward10Icon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M18,13c0,3.31-2.69,6-6,6s-6-2.69-6-6s2.69-6,6-6v4l5-5l-5-5v4c-4.42,0-8,3.58-8,8c0,4.42,3.58,8,8,8s8-3.58,8-8H18z\"/><polygon points=\"10.86,15.94 10.86,11.67 10.77,11.67 9,12.3 9,12.99 10.01,12.68 10.01,15.94\"/><path d=\"M12.25,13.44v0.74c0,1.9,1.31,1.82,1.44,1.82c0.14,0,1.44,0.09,1.44-1.82v-0.74c0-1.9-1.31-1.82-1.44-1.82C13.55,11.62,12.25,11.53,12.25,13.44z M14.29,13.32v0.97c0,0.77-0.21,1.03-0.59,1.03c-0.38,0-0.6-0.26-0.6-1.03v-0.97c0-0.75,0.22-1.01,0.59-1.01C14.07,12.3,14.29,12.57,14.29,13.32z\"/></svg>`;\n\nexport const evaForward30Icon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M18,13c0,3.31-2.69,6-6,6s-6-2.69-6-6s2.69-6,6-6v4l5-5l-5-5v4c-4.42,0-8,3.58-8,8c0,4.42,3.58,8,8,8s8-3.58,8-8H18z\"/><path d=\"M10.06,15.38c-0.29,0-0.62-0.17-0.62-0.54H8.59c0,0.97,0.9,1.23,1.45,1.23c0.87,0,1.51-0.46,1.51-1.25c0-0.66-0.45-0.9-0.71-1c0.11-0.05,0.65-0.32,0.65-0.92c0-0.21-0.05-1.22-1.44-1.22c-0.62,0-1.4,0.35-1.4,1.16h0.85c0-0.34,0.31-0.48,0.57-0.48c0.59,0,0.58,0.5,0.58,0.54c0,0.52-0.41,0.59-0.63,0.59H9.56v0.66h0.45c0.65,0,0.7,0.42,0.7,0.64C10.71,15.11,10.5,15.38,10.06,15.38z\"/><path d=\"M13.85,11.68c-0.14,0-1.44-0.08-1.44,1.82v0.74c0,1.9,1.31,1.82,1.44,1.82c0.14,0,1.44,0.09,1.44-1.82V13.5C15.3,11.59,13.99,11.68,13.85,11.68z M14.45,14.35c0,0.77-0.21,1.03-0.59,1.03c-0.38,0-0.6-0.26-0.6-1.03v-0.97c0-0.75,0.22-1.01,0.59-1.01c0.38,0,0.6,0.26,0.6,1.01V14.35z\"/></svg>`;\n\nexport const evaBackward10Icon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M11.99,5V1l-5,5l5,5V7c3.31,0,6,2.69,6,6s-2.69,6-6,6s-6-2.69-6-6h-2c0,4.42,3.58,8,8,8s8-3.58,8-8S16.41,5,11.99,5z\"/><path d=\"M10.89,16h-0.85v-3.26l-1.01,0.31v-0.69l1.77-0.63h0.09V16z\"/><path d=\"M15.17,14.24c0,0.32-0.03,0.6-0.1,0.82s-0.17,0.42-0.29,0.57s-0.28,0.26-0.45,0.33s-0.37,0.1-0.59,0.1s-0.41-0.03-0.59-0.1s-0.33-0.18-0.46-0.33s-0.23-0.34-0.3-0.57s-0.11-0.5-0.11-0.82V13.5c0-0.32,0.03-0.6,0.1-0.82s0.17-0.42,0.29-0.57s0.28-0.26,0.45-0.33s0.37-0.1,0.59-0.1s0.41,0.03,0.59,0.1c0.18,0.07,0.33,0.18,0.46,0.33s0.23,0.34,0.3,0.57s0.11,0.5,0.11,0.82V14.24z M14.32,13.38c0-0.19-0.01-0.35-0.04-0.48s-0.07-0.23-0.12-0.31s-0.11-0.14-0.19-0.17s-0.16-0.05-0.25-0.05s-0.18,0.02-0.25,0.05s-0.14,0.09-0.19,0.17s-0.09,0.18-0.12,0.31s-0.04,0.29-0.04,0.48v0.97c0,0.19,0.01,0.35,0.04,0.48s0.07,0.24,0.12,0.32s0.11,0.14,0.19,0.17s0.16,0.05,0.25,0.05s0.18-0.02,0.25-0.05s0.14-0.09,0.19-0.17s0.09-0.19,0.11-0.32s0.04-0.29,0.04-0.48V13.38z\"/></svg>`;\n\nexport const evaBackward30Icon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M12,5V1L7,6l5,5V7c3.31,0,6,2.69,6,6s-2.69,6-6,6s-6-2.69-6-6H4c0,4.42,3.58,8,8,8s8-3.58,8-8S16.42,5,12,5z\"/><path d=\"M9.56,13.49h0.45c0.21,0,0.37-0.05,0.48-0.16s0.16-0.25,0.16-0.43c0-0.08-0.01-0.15-0.04-0.22s-0.06-0.12-0.11-0.17s-0.11-0.09-0.18-0.11s-0.16-0.04-0.25-0.04c-0.08,0-0.15,0.01-0.22,0.03s-0.13,0.05-0.18,0.1s-0.09,0.09-0.12,0.15s-0.05,0.13-0.05,0.2H8.65c0-0.18,0.04-0.34,0.11-0.48s0.17-0.27,0.3-0.37s0.27-0.18,0.44-0.23s0.35-0.08,0.54-0.08c0.21,0,0.41,0.03,0.59,0.08s0.33,0.13,0.46,0.23s0.23,0.23,0.3,0.38s0.11,0.33,0.11,0.53c0,0.09-0.01,0.18-0.04,0.27s-0.07,0.17-0.13,0.25s-0.12,0.15-0.2,0.22s-0.17,0.12-0.28,0.17c0.24,0.09,0.42,0.21,0.54,0.39s0.18,0.38,0.18,0.61c0,0.2-0.04,0.38-0.12,0.53s-0.18,0.29-0.32,0.39s-0.29,0.19-0.48,0.24s-0.38,0.08-0.6,0.08c-0.18,0-0.36-0.02-0.53-0.07s-0.33-0.12-0.46-0.23s-0.25-0.23-0.33-0.38s-0.12-0.34-0.12-0.55h0.85c0,0.08,0.02,0.15,0.05,0.22s0.07,0.12,0.13,0.17s0.12,0.09,0.2,0.11s0.16,0.04,0.25,0.04c0.1,0,0.19-0.01,0.27-0.04s0.15-0.07,0.2-0.12s0.1-0.11,0.13-0.18s0.04-0.15,0.04-0.24c0-0.11-0.02-0.21-0.05-0.29s-0.08-0.15-0.14-0.2s-0.13-0.09-0.22-0.11s-0.18-0.04-0.29-0.04H9.56V13.49z\"/><path d=\"M15.3,14.24c0,0.32-0.03,0.6-0.1,0.82s-0.17,0.42-0.29,0.57s-0.28,0.26-0.45,0.33s-0.37,0.1-0.59,0.1s-0.41-0.03-0.59-0.1s-0.33-0.18-0.46-0.33s-0.23-0.34-0.3-0.57s-0.11-0.5-0.11-0.82V13.5c0-0.32,0.03-0.6,0.1-0.82s0.17-0.42,0.29-0.57s0.28-0.26,0.45-0.33s0.37-0.1,0.59-0.1s0.41,0.03,0.59,0.1s0.33,0.18,0.46,0.33s0.23,0.34,0.3,0.57s0.11,0.5,0.11,0.82V14.24z M14.45,13.38c0-0.19-0.01-0.35-0.04-0.48c-0.03-0.13-0.07-0.23-0.12-0.31s-0.11-0.14-0.19-0.17s-0.16-0.05-0.25-0.05s-0.18,0.02-0.25,0.05s-0.14,0.09-0.19,0.17s-0.09,0.18-0.12,0.31s-0.04,0.29-0.04,0.48v0.97c0,0.19,0.01,0.35,0.04,0.48s0.07,0.24,0.12,0.32s0.11,0.14,0.19,0.17s0.16,0.05,0.25,0.05s0.18-0.02,0.25-0.05s0.14-0.09,0.19-0.17s0.09-0.19,0.11-0.32c0.03-0.13,0.04-0.29,0.04-0.48V13.38z\"/></svg>`;\n\n// ─── Volume ───────────────────────────────────────────────────────────────────\n\nexport const evaVolumeHighIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z\"/></svg>`;\n\nexport const evaVolumeMediumIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z\"/></svg>`;\n\nexport const evaVolumeLowIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M7 9v6h4l5 5V4l-5 5H7z\"/></svg>`;\n\nexport const evaVolumeMuteIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z\"/></svg>`;\n\n// ─── UI Controls ──────────────────────────────────────────────────────────────\n\nexport const evaSettingsIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M19.14,12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94L14.4,2.81c-.04-.24-.24-.41-.48-.41H9.07c-.24,0-.43.17-.47.41L8.24,5.35C7.65,5.59 7.11,5.92 6.62,6.29L4.24,5.33c-.22-.08-.47,0-.59.22L1.73,8.87c-.12.22-.07.47.12.61l2.03,1.58C3.84,11.36 3.8,11.69 3.8,12c0,.31.02.64.07.94L1.84,14.52c-.18.14-.23.41-.12.61l1.92,3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36,2.54c.05.24.24.41.48.41h3.84c.24,0,.44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47,0,.59-.22l1.92-3.32c.12-.22.07-.47-.12-.61ZM12,15.6c-1.98,0-3.6-1.62-3.6-3.6s1.62-3.6,3.6-3.6 3.6,1.62,3.6,3.6-1.62,3.6-3.6,3.6z\"/></svg>`;\n\n// ─── Display ──────────────────────────────────────────────────────────────────\n\nexport const evaFullscreenIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z\"/></svg>`;\n\nexport const evaFullscreenExitIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z\"/></svg>`;\n\nexport const evaCinemaModeIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20M4,6V18H20V6H4M6,8H18V16H6V8Z\"/></svg>`;\n\nexport const evaLoopIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z\"/></svg>`;\n\nexport const evaPictureInPictureIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M19,11H11V17H19V11M23,19V5C23,3.88 22.1,3 21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19M21,19H3V4.97H21V19Z\"/></svg>`;\n\nexport const evaRemotePlaybackIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M1,10V12A9,9 0 0,1 10,21H12C12,14.92 7.07,10 1,10M1,14V16A5,5 0 0,1 6,21H8A7,7 0 0,0 1,14M1,18V21H4A3,3 0 0,0 1,18M21,3H3C1.89,3 1,3.89 1,5V8H3V5H21V19H14V21H21A2,2 0 0,0 23,19V5C23,3.89 22.1,3 21,3Z\"/></svg>`;\n\nexport const evaDownloadIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z\"/></svg>`;\n\nexport const evaScreenshotIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"currentColor\"><path d=\"M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z\"/></svg>`;\n\n// ─── Convenience barrel ───────────────────────────────────────────────────────\n\n/**\n * All default Eva icons in a single object.\n * Pass to `addEvaIcons` to register everything at once.\n */\nexport const evaAllIcons: Record<string, string> = {\n evaPlayIcon,\n evaPauseIcon,\n evaSettingsIcon,\n evaForward10Icon,\n evaForward30Icon,\n evaBackward10Icon,\n evaBackward30Icon,\n evaVolumeHighIcon,\n evaVolumeMediumIcon,\n evaVolumeLowIcon,\n evaVolumeMuteIcon,\n evaFullscreenIcon,\n evaFullscreenExitIcon,\n evaCinemaModeIcon,\n evaLoopIcon,\n evaPictureInPictureIcon,\n evaRemotePlaybackIcon,\n evaDownloadIcon,\n evaScreenshotIcon,\n};\n"],"mappings":"AAoBA,MAAa,cAAc;AAE3B,MAAa,eAAe;AAI5B,MAAa,mBAAmB;AAEhC,MAAa,mBAAmB;AAEhC,MAAa,oBAAoB;AAEjC,MAAa,oBAAoB;AAIjC,MAAa,oBAAoB;AAEjC,MAAa,sBAAsB;AAEnC,MAAa,mBAAmB;AAEhC,MAAa,oBAAoB;AAIjC,MAAa,kBAAkB;AAI/B,MAAa,oBAAoB;AAEjC,MAAa,wBAAwB;AAErC,MAAa,oBAAoB;AAEjC,MAAa,cAAc;AAE3B,MAAa,0BAA0B;AAEvC,MAAa,wBAAwB;AAErC,MAAa,kBAAkB;AAE/B,MAAa,oBAAoB;AAQjC,MAAa,cAAsC;CACjD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD"}