canvasxpress-cli 74.3.0 → 74.5.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/package.json +1 -1
- package/src/canvasXpress.css +68 -5
- package/src/canvasXpress.js +3 -3
package/package.json
CHANGED
package/src/canvasXpress.css
CHANGED
|
@@ -6560,7 +6560,10 @@ span.cX-Customizer-SearchCurrent:after {
|
|
|
6560
6560
|
overflow: hidden;
|
|
6561
6561
|
padding: 1px 12px;
|
|
6562
6562
|
width: 200px;
|
|
6563
|
-
|
|
6563
|
+
/* Tall enough for the set variant (Password + Re-enter + Update) once the
|
|
6564
|
+
fields are lowered (.cX-Password-Container top:30px) to clear the close icon;
|
|
6565
|
+
the shorter unlock variant overrides this inline in showPaswrdDiv. */
|
|
6566
|
+
height: 205px;
|
|
6564
6567
|
white-space: nowrap;
|
|
6565
6568
|
position: relative;
|
|
6566
6569
|
text-align: left;
|
|
@@ -6579,14 +6582,17 @@ span.cX-Customizer-SearchCurrent:after {
|
|
|
6579
6582
|
.cX-Password-Container {
|
|
6580
6583
|
box-sizing: border-box;
|
|
6581
6584
|
background-color: var(--cx-background-widgets-color, var(--cx-ui-surface));
|
|
6582
|
-
border:
|
|
6583
|
-
|
|
6585
|
+
/* No inner border: the dialog (.cX-Password-Dialog) already frames the widget;
|
|
6586
|
+
a second border here double-framed it. */
|
|
6587
|
+
border: none;
|
|
6584
6588
|
color: var(--cx-font-color, var(--cx-ui-text));
|
|
6585
6589
|
display: block;
|
|
6586
6590
|
left: 0px;
|
|
6587
6591
|
line-height: 100%;
|
|
6588
6592
|
position: relative;
|
|
6589
|
-
|
|
6593
|
+
/* Start the fields below the floated close icon (24px + 5px margin) so the
|
|
6594
|
+
container's background never overlaps/clips the icon's circle. */
|
|
6595
|
+
top: 30px;
|
|
6590
6596
|
margin-top: 5px;
|
|
6591
6597
|
}
|
|
6592
6598
|
|
|
@@ -6599,12 +6605,24 @@ span.cX-Customizer-SearchCurrent:after {
|
|
|
6599
6605
|
.cX-Password-Input {
|
|
6600
6606
|
float: left;
|
|
6601
6607
|
margin-bottom: 5px;
|
|
6608
|
+
margin-left: 5px;
|
|
6602
6609
|
padding: 5px;
|
|
6603
6610
|
border-radius: var(--cx-border-radius);
|
|
6604
6611
|
border: 1px solid var(--cx-datatable-border-color, var(--cx-ui-border-accent));
|
|
6605
6612
|
background-color: var(--cx-background-widgets-color, var(--cx-ui-surface));
|
|
6606
6613
|
color: var(--cx-font-color, var(--cx-ui-text));
|
|
6607
|
-
width:
|
|
6614
|
+
width: 150px;
|
|
6615
|
+
/* The field is type=search (for the native clear × button); mask the text so
|
|
6616
|
+
it still reads as a password. WebKit/Chromium — the same engines that render
|
|
6617
|
+
the ::-webkit-search-cancel-button clear control below. */
|
|
6618
|
+
-webkit-text-security: disc;
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6621
|
+
/* The native clear (×) control — appears when the field has text; clicking it
|
|
6622
|
+
empties just that field (pure CSS, no JS). */
|
|
6623
|
+
.cX-Password-Input::-webkit-search-cancel-button {
|
|
6624
|
+
-webkit-appearance: searchfield-cancel-button;
|
|
6625
|
+
cursor: pointer;
|
|
6608
6626
|
}
|
|
6609
6627
|
|
|
6610
6628
|
/*
|
|
@@ -9666,6 +9684,51 @@ body.has-fullscreen {
|
|
|
9666
9684
|
height: var(--base-h);
|
|
9667
9685
|
}
|
|
9668
9686
|
|
|
9687
|
+
/* Accessibility: honour prefers-reduced-motion. The HTML chrome reveals and resizes via CSS
|
|
9688
|
+
transitions (the 0.5s toolbar-edge reveal, the container resize on a view/menu change, the
|
|
9689
|
+
wrapper resize, etc.). For a viewer whose OS asks for reduced motion, snap these to their
|
|
9690
|
+
final state instead of animating — no slide / fade / resize. Scoped to the CanvasXpress root
|
|
9691
|
+
so the host page is untouched, and only active when reduced-motion is ON (default users are
|
|
9692
|
+
unaffected). It also makes the widget-chrome regression gate deterministic (that gate runs
|
|
9693
|
+
reducedMotion:'reduce'): with nothing animating, a capture can never land mid-transition.
|
|
9694
|
+
The engine has honoured reduced-motion for CANVAS transitions since 74.0; this extends the
|
|
9695
|
+
same courtesy to the surrounding HTML widgets, which it had missed. */
|
|
9696
|
+
/* Motion suppression has TWO triggers that must behave identically:
|
|
9697
|
+
(a) the OS asking for reduced motion — the @media block below;
|
|
9698
|
+
(b) the config switch disableAnimations:true — the engine adds .cX-No-Motion to the cX-DOM
|
|
9699
|
+
root (canvasXpress.viewport.js), handled by the .cX-No-Motion rules below.
|
|
9700
|
+
Each selector is prefixed with .cX-DOM / .cX-No-Motion so it outranks the base rule it cancels
|
|
9701
|
+
by specificity (0,2,0 vs 0,1,0) — no !important, so the UI-consistency ratchet stays flat.
|
|
9702
|
+
Surface 1 = CSS transitions on the HTML chrome; surface 2 = CSS keyframe animations (the
|
|
9703
|
+
magic-effects .magictime carrier: holeIn/holeOut/slideLeft/slideUp). The loading spinner
|
|
9704
|
+
(02-svg.css) is intentionally left running — it is a status indicator, not chrome motion. */
|
|
9705
|
+
@media (prefers-reduced-motion: reduce) {
|
|
9706
|
+
.cX-DOM .cX-Toolbar-Edge,
|
|
9707
|
+
.cX-DOM .cX-Wrapper,
|
|
9708
|
+
.cX-DOM .cX-Container,
|
|
9709
|
+
.cX-DOM .cX-Container-Cell,
|
|
9710
|
+
.cX-DOM .CanvasXpress,
|
|
9711
|
+
.cX-DOM .cX-Version-Info-Container {
|
|
9712
|
+
transition: none;
|
|
9713
|
+
}
|
|
9714
|
+
.cX-DOM .magictime {
|
|
9715
|
+
animation: none;
|
|
9716
|
+
}
|
|
9717
|
+
}
|
|
9718
|
+
|
|
9719
|
+
.cX-No-Motion .cX-Toolbar-Edge,
|
|
9720
|
+
.cX-No-Motion .cX-Wrapper,
|
|
9721
|
+
.cX-No-Motion .cX-Container,
|
|
9722
|
+
.cX-No-Motion .cX-Container-Cell,
|
|
9723
|
+
.cX-No-Motion .CanvasXpress,
|
|
9724
|
+
.cX-No-Motion .cX-Version-Info-Container {
|
|
9725
|
+
transition: none;
|
|
9726
|
+
}
|
|
9727
|
+
|
|
9728
|
+
.cX-No-Motion .magictime {
|
|
9729
|
+
animation: none;
|
|
9730
|
+
}
|
|
9731
|
+
|
|
9669
9732
|
.cX-DOM:fullscreen {
|
|
9670
9733
|
width: 100vw;
|
|
9671
9734
|
height: 100vh;
|