@sentinel-nvr/web 0.18.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -7
- package/dist/ui/index.d.ts +6 -2
- package/dist/ui/index.js +21 -7
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/ui.css +199 -13
- package/package.json +1 -1
package/dist/ui/ui.css
CHANGED
|
@@ -98,6 +98,12 @@
|
|
|
98
98
|
flex-direction: column;
|
|
99
99
|
gap: 0.625rem;
|
|
100
100
|
}
|
|
101
|
+
/* an optional symbol in front of a section title (EventsStrip / CameraGrid `icon`, 0.19.0) */
|
|
102
|
+
.nvr-section__icon {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
margin-right: 0.4rem;
|
|
105
|
+
vertical-align: -0.15em;
|
|
106
|
+
}
|
|
101
107
|
.nvr-muted {
|
|
102
108
|
font-size: 0.875rem;
|
|
103
109
|
color: var(--text-faint);
|
|
@@ -1632,6 +1638,22 @@
|
|
|
1632
1638
|
.nvr-clipbar__close {
|
|
1633
1639
|
margin-left: auto;
|
|
1634
1640
|
}
|
|
1641
|
+
/* the first row never wraps: a time too wide for its chip (12-hour clock, a time zone) puts the time under the key,
|
|
1642
|
+
and one still too wide breaks at its spaces, instead of pushing the close button into a line of its own (0.19.0) */
|
|
1643
|
+
.nvr-clipbar__row:first-child {
|
|
1644
|
+
flex-wrap: nowrap;
|
|
1645
|
+
}
|
|
1646
|
+
.nvr-clipbar__row:first-child > .nvr-clipchip {
|
|
1647
|
+
flex: 0 1 auto;
|
|
1648
|
+
flex-wrap: wrap;
|
|
1649
|
+
justify-content: center;
|
|
1650
|
+
row-gap: 0;
|
|
1651
|
+
min-width: 0;
|
|
1652
|
+
}
|
|
1653
|
+
.nvr-clipbar__row:first-child > .nvr-clipchip > .nvr-clipchip__v {
|
|
1654
|
+
white-space: normal;
|
|
1655
|
+
text-align: center;
|
|
1656
|
+
}
|
|
1635
1657
|
/* clip mode hides the date chip: the live pill moves down to its place (else it covers the LIVE chip / a marker) */
|
|
1636
1658
|
.nvr-cam__right--clip .nvr-vtl .livejump {
|
|
1637
1659
|
bottom: 10px;
|
|
@@ -2111,7 +2133,7 @@
|
|
|
2111
2133
|
}
|
|
2112
2134
|
/* the 1-px rim of a floating capsule (a gradient, masked to the edge) */
|
|
2113
2135
|
.nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-pill-ctl, .nvr-mute)::before,
|
|
2114
|
-
.nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-datechip, .nvr-vtl .tool)::before {
|
|
2136
|
+
.nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-datechip, .nvr-vtl .tool, .nvr-clipbar)::before {
|
|
2115
2137
|
content: '';
|
|
2116
2138
|
position: absolute;
|
|
2117
2139
|
inset: 0;
|
|
@@ -2125,7 +2147,7 @@
|
|
|
2125
2147
|
-webkit-mask-composite: xor;
|
|
2126
2148
|
mask-composite: exclude;
|
|
2127
2149
|
}
|
|
2128
|
-
.nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-datechip, .nvr-vtl .tool)::before {
|
|
2150
|
+
.nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-datechip, .nvr-vtl .tool, .nvr-clipbar)::before {
|
|
2129
2151
|
background: var(--nvr-float-rim, transparent);
|
|
2130
2152
|
}
|
|
2131
2153
|
|
|
@@ -2395,6 +2417,146 @@
|
|
|
2395
2417
|
border-radius: 12px;
|
|
2396
2418
|
}
|
|
2397
2419
|
|
|
2420
|
+
/* ---- clip bar: a floating card under the timeline (0.19.0) — the edges a segment (the key over the time, the lens
|
|
2421
|
+
under the edge that follows the line), the close button a round button, the length and hints a caption line, the
|
|
2422
|
+
buttons capsules ---- */
|
|
2423
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar {
|
|
2424
|
+
position: relative;
|
|
2425
|
+
gap: 8px;
|
|
2426
|
+
margin: 0 8px 8px;
|
|
2427
|
+
padding: 10px;
|
|
2428
|
+
border-top: 0;
|
|
2429
|
+
border-radius: 26px;
|
|
2430
|
+
background: var(--nvr-float-bg, var(--bg-card));
|
|
2431
|
+
-webkit-backdrop-filter: var(--nvr-float-filter, none);
|
|
2432
|
+
backdrop-filter: var(--nvr-float-filter, none);
|
|
2433
|
+
box-shadow: var(--nvr-float-shadow, var(--shadow-elevated));
|
|
2434
|
+
}
|
|
2435
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__row {
|
|
2436
|
+
flex-wrap: nowrap;
|
|
2437
|
+
gap: 8px;
|
|
2438
|
+
}
|
|
2439
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges {
|
|
2440
|
+
position: relative;
|
|
2441
|
+
display: flex;
|
|
2442
|
+
flex: 1 1 auto;
|
|
2443
|
+
min-width: 0;
|
|
2444
|
+
padding: 3px;
|
|
2445
|
+
border-radius: 24px;
|
|
2446
|
+
background: var(--nvr-seg-track, var(--bg-subtle));
|
|
2447
|
+
}
|
|
2448
|
+
/* the lens under the active edge: it slides from one edge to the other (`data-was` = the edge before) and appears
|
|
2449
|
+
and goes where it is (no edge before: it fades in at its edge; no edge after: it fades out there, then waits under
|
|
2450
|
+
"From") */
|
|
2451
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges::before {
|
|
2452
|
+
content: '';
|
|
2453
|
+
position: absolute;
|
|
2454
|
+
top: 3px;
|
|
2455
|
+
bottom: 3px;
|
|
2456
|
+
left: 3px;
|
|
2457
|
+
box-sizing: border-box;
|
|
2458
|
+
width: calc(50% - 3px);
|
|
2459
|
+
border-radius: 21px;
|
|
2460
|
+
background: var(--nvr-seg-lens, var(--bg-card));
|
|
2461
|
+
box-shadow: var(--nvr-seg-shadow, var(--shadow-card));
|
|
2462
|
+
opacity: 0;
|
|
2463
|
+
transition:
|
|
2464
|
+
opacity 200ms ease,
|
|
2465
|
+
translate 0s 200ms;
|
|
2466
|
+
pointer-events: none;
|
|
2467
|
+
}
|
|
2468
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges[data-edge]::before {
|
|
2469
|
+
opacity: 1;
|
|
2470
|
+
transition: opacity 200ms ease;
|
|
2471
|
+
}
|
|
2472
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges[data-edge][data-was]::before {
|
|
2473
|
+
transition:
|
|
2474
|
+
translate var(--nvr-dur, 250ms) var(--nvr-ease, ease-out),
|
|
2475
|
+
opacity 200ms ease;
|
|
2476
|
+
}
|
|
2477
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges[data-edge='to']::before {
|
|
2478
|
+
translate: 100% 0;
|
|
2479
|
+
}
|
|
2480
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges .nvr-clipchip {
|
|
2481
|
+
position: relative;
|
|
2482
|
+
z-index: 1;
|
|
2483
|
+
flex: 1 1 0;
|
|
2484
|
+
flex-direction: column;
|
|
2485
|
+
justify-content: center;
|
|
2486
|
+
gap: 0;
|
|
2487
|
+
min-width: 0;
|
|
2488
|
+
min-height: 48px;
|
|
2489
|
+
padding: 4px 8px;
|
|
2490
|
+
border: 0;
|
|
2491
|
+
border-radius: 21px;
|
|
2492
|
+
background: transparent;
|
|
2493
|
+
box-shadow: none;
|
|
2494
|
+
color: var(--text);
|
|
2495
|
+
font-size: 15px;
|
|
2496
|
+
font-weight: 600;
|
|
2497
|
+
line-height: 20px;
|
|
2498
|
+
}
|
|
2499
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges .nvr-clipchip__k {
|
|
2500
|
+
color: var(--text-dim);
|
|
2501
|
+
font-size: 12px;
|
|
2502
|
+
font-weight: 400;
|
|
2503
|
+
line-height: 16px;
|
|
2504
|
+
}
|
|
2505
|
+
/* a time too wide for its half breaks at its spaces ("PM", the zone during the repeated hour on a line of its own) */
|
|
2506
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges .nvr-clipchip__v {
|
|
2507
|
+
max-width: 100%;
|
|
2508
|
+
white-space: normal;
|
|
2509
|
+
text-align: center;
|
|
2510
|
+
}
|
|
2511
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges .nvr-clipchip--bad,
|
|
2512
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges .nvr-clipchip--bad .nvr-clipchip__k {
|
|
2513
|
+
color: var(--danger);
|
|
2514
|
+
}
|
|
2515
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges .nvr-clipchip:focus-visible {
|
|
2516
|
+
outline: 2px solid var(--accent);
|
|
2517
|
+
outline-offset: -2px;
|
|
2518
|
+
}
|
|
2519
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__close {
|
|
2520
|
+
width: 44px;
|
|
2521
|
+
height: 44px;
|
|
2522
|
+
min-width: 44px;
|
|
2523
|
+
margin-left: 0;
|
|
2524
|
+
border-radius: 22px;
|
|
2525
|
+
background: var(--nvr-seg-track, var(--bg-subtle));
|
|
2526
|
+
color: var(--text-dim);
|
|
2527
|
+
}
|
|
2528
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__note {
|
|
2529
|
+
padding: 0 6px;
|
|
2530
|
+
color: var(--text-dim);
|
|
2531
|
+
font-size: 13px;
|
|
2532
|
+
line-height: 18px;
|
|
2533
|
+
}
|
|
2534
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__prog {
|
|
2535
|
+
margin: 0 6px;
|
|
2536
|
+
background: var(--nvr-seg-track, var(--bg-subtle));
|
|
2537
|
+
}
|
|
2538
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__actions .nvr-btn {
|
|
2539
|
+
gap: 8px;
|
|
2540
|
+
height: 50px;
|
|
2541
|
+
min-height: 50px;
|
|
2542
|
+
padding: 0 16px;
|
|
2543
|
+
border: 0;
|
|
2544
|
+
border-radius: 25px;
|
|
2545
|
+
font-size: 17px;
|
|
2546
|
+
font-weight: 600;
|
|
2547
|
+
}
|
|
2548
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__actions .nvr-btn--ghost {
|
|
2549
|
+
background: var(--nvr-seg-track, var(--bg-subtle));
|
|
2550
|
+
color: var(--text);
|
|
2551
|
+
}
|
|
2552
|
+
@media (hover: hover) {
|
|
2553
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__close:hover {
|
|
2554
|
+
background:
|
|
2555
|
+
linear-gradient(color-mix(in srgb, currentColor 12%, transparent) 0 0), var(--nvr-seg-track, var(--bg-subtle));
|
|
2556
|
+
color: var(--text);
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2398
2560
|
/* ---- phones: picture edge to edge, header over it, no cards ---- */
|
|
2399
2561
|
@media (max-width: 899px) {
|
|
2400
2562
|
.nvr-cam[data-nvr-appearance='immersive'] {
|
|
@@ -2482,8 +2644,9 @@
|
|
|
2482
2644
|
background: linear-gradient(var(--nvr-shade-top, color-mix(in srgb, black 70%, transparent)), transparent);
|
|
2483
2645
|
}
|
|
2484
2646
|
/* the page owns the screen (the host hides its bars): the body is the viewport; on a short screen the picture
|
|
2485
|
-
yields first (down to 12rem), so its bar, the tabs, the filters and the timeline keep ~15rem
|
|
2486
|
-
default's
|
|
2647
|
+
yields first (down to 12rem), so its bar, the tabs, the filters and the timeline keep ~15rem — in clip mode the
|
|
2648
|
+
clip bar and the timeline ~22rem, the picture yields down to the default's 28vh (it stays edge to edge on a phone,
|
|
2649
|
+
the sound button where it always is) */
|
|
2487
2650
|
.nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__body {
|
|
2488
2651
|
gap: 0;
|
|
2489
2652
|
height: 100dvh;
|
|
@@ -2492,7 +2655,20 @@
|
|
|
2492
2655
|
.nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__body:not(.nvr-cam__body--clip) {
|
|
2493
2656
|
--stage-maxh: max(12rem, min(46vh, 100dvh - 15rem));
|
|
2494
2657
|
}
|
|
2658
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__body.nvr-cam__body--clip {
|
|
2659
|
+
--stage-maxh: max(28vh, min(46vh, 100dvh - 22rem));
|
|
2660
|
+
}
|
|
2661
|
+
/* the picture's card is sticky. It cannot move (it is its column's only child, the column is as tall as the card),
|
|
2662
|
+
so the layout stays as it is. WebKit (iOS 26, from its source) takes a fixed or sticky box at the top edge of the
|
|
2663
|
+
viewport for the page's top bar: a home-screen app then shows its status bar on the background it finds there
|
|
2664
|
+
(here the stage's) instead of laying its soft blur over what starts below the status bar, the top of the picture
|
|
2665
|
+
with the header row. WebKit hit-tests only fixed and sticky boxes (and what is inside them) at the middle of the
|
|
2666
|
+
top edge, takes the topmost one and walks up from it to the first fixed or sticky box at least 90 % as wide as
|
|
2667
|
+
the viewport; it never looks further down. So on this page the host keeps that point free of its own fixed boxes,
|
|
2668
|
+
and a picture narrower than that (a square or upright camera on a small phone) keeps the blur. */
|
|
2495
2669
|
.nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-card {
|
|
2670
|
+
position: sticky;
|
|
2671
|
+
top: 0;
|
|
2496
2672
|
border: 0;
|
|
2497
2673
|
border-radius: 0;
|
|
2498
2674
|
box-shadow: none;
|
|
@@ -2519,8 +2695,15 @@
|
|
|
2519
2695
|
.nvr-cam[data-nvr-appearance='immersive'] .nvr-evlist {
|
|
2520
2696
|
padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
|
|
2521
2697
|
}
|
|
2698
|
+
/* the clip bar floats above the bottom inset; the times larger on the full width (the desktop column keeps 15 px,
|
|
2699
|
+
so "05:23:45 PM" fits a half) */
|
|
2522
2700
|
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar {
|
|
2523
|
-
|
|
2701
|
+
margin: 0 calc(8px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px))
|
|
2702
|
+
calc(8px + env(safe-area-inset-left, 0px));
|
|
2703
|
+
}
|
|
2704
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges .nvr-clipchip {
|
|
2705
|
+
font-size: 17px;
|
|
2706
|
+
line-height: 22px;
|
|
2524
2707
|
}
|
|
2525
2708
|
.nvr-cam[data-nvr-appearance='immersive'] .nvr-pipnote {
|
|
2526
2709
|
margin: 0 12px 8px;
|
|
@@ -2561,18 +2744,19 @@
|
|
|
2561
2744
|
}
|
|
2562
2745
|
}
|
|
2563
2746
|
|
|
2564
|
-
/* reduced motion: no sliding lens — the chosen tab's own fill fades over in 200 ms */
|
|
2747
|
+
/* reduced motion: no sliding lens — the chosen tab's (the active edge's) own fill fades over in 200 ms */
|
|
2565
2748
|
@media (prefers-reduced-motion: reduce) {
|
|
2566
|
-
.nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs::before {
|
|
2749
|
+
.nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-tabs, .nvr-clipbar__edges)::before {
|
|
2567
2750
|
display: none;
|
|
2568
2751
|
}
|
|
2569
|
-
.nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button {
|
|
2752
|
+
.nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-tabs button, .nvr-clipbar__edges .nvr-clipchip) {
|
|
2570
2753
|
transition:
|
|
2571
2754
|
background-color 200ms ease,
|
|
2572
2755
|
box-shadow 200ms ease,
|
|
2573
2756
|
color 200ms ease;
|
|
2574
2757
|
}
|
|
2575
|
-
.nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button.nvr-tabs__tab--active
|
|
2758
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button.nvr-tabs__tab--active,
|
|
2759
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges .nvr-clipchip--active {
|
|
2576
2760
|
background-color: var(--nvr-seg-lens, var(--bg-card));
|
|
2577
2761
|
box-shadow: var(--nvr-seg-shadow, var(--shadow-card));
|
|
2578
2762
|
}
|
|
@@ -2580,13 +2764,14 @@
|
|
|
2580
2764
|
/* forced colours: the floating surfaces and the lens keep an edge (their fills are dropped) */
|
|
2581
2765
|
@media (forced-colors: active) {
|
|
2582
2766
|
.nvr-cam[data-nvr-appearance='immersive']
|
|
2583
|
-
:is(.nvr-pill-ctl, .nvr-mute, .nvr-datechip, .nvr-vtl .tool, .nvr-vtl .livejump) {
|
|
2767
|
+
:is(.nvr-pill-ctl, .nvr-mute, .nvr-datechip, .nvr-vtl .tool, .nvr-vtl .livejump, .nvr-clipbar) {
|
|
2584
2768
|
border: 1px solid CanvasText;
|
|
2585
2769
|
}
|
|
2586
|
-
.nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs
|
|
2770
|
+
.nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-tabs, .nvr-clipbar__edges, .nvr-clipbar__close),
|
|
2771
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__actions .nvr-btn {
|
|
2587
2772
|
border: 1px solid CanvasText;
|
|
2588
2773
|
}
|
|
2589
|
-
.nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs::before {
|
|
2774
|
+
.nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-tabs, .nvr-clipbar__edges)::before {
|
|
2590
2775
|
border: 2px solid Highlight;
|
|
2591
2776
|
}
|
|
2592
2777
|
}
|
|
@@ -2596,7 +2781,8 @@
|
|
|
2596
2781
|
}
|
|
2597
2782
|
}
|
|
2598
2783
|
@media (forced-colors: active) and (prefers-reduced-motion: reduce) {
|
|
2599
|
-
.nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button.nvr-tabs__tab--active
|
|
2784
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button.nvr-tabs__tab--active,
|
|
2785
|
+
.nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar__edges .nvr-clipchip--active {
|
|
2600
2786
|
outline: 2px solid Highlight;
|
|
2601
2787
|
outline-offset: -2px;
|
|
2602
2788
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentinel-nvr/web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"description": "Shared browser code for the Sentinel NVR plugin for Scrypted: API model + client (/api), player (/player) and React UI with i18n + themes (/ui). Consumed by the plugin's own web UI and the HAPulse dashboard.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Muggedadscher",
|