@jsenv/dom 0.8.7 → 0.8.8
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/dist/jsenv_dom.js +35 -33
- package/package.json +9 -4
package/dist/jsenv_dom.js
CHANGED
|
@@ -7078,12 +7078,12 @@ const createConstraintFeedbackLine = () => {
|
|
|
7078
7078
|
import.meta.css = /* css */ `
|
|
7079
7079
|
.navi_constraint_feedback_line {
|
|
7080
7080
|
position: fixed;
|
|
7081
|
-
pointer-events: none;
|
|
7082
7081
|
z-index: 9998;
|
|
7082
|
+
border-top: 2px dotted rgba(59, 130, 246, 0.7);
|
|
7083
7083
|
visibility: hidden;
|
|
7084
|
-
transition: opacity 0.15s ease;
|
|
7085
7084
|
transform-origin: left center;
|
|
7086
|
-
|
|
7085
|
+
transition: opacity 0.15s ease;
|
|
7086
|
+
pointer-events: none;
|
|
7087
7087
|
}
|
|
7088
7088
|
|
|
7089
7089
|
.navi_constraint_feedback_line[data-visible] {
|
|
@@ -7524,11 +7524,11 @@ import.meta.css = /* css */ `
|
|
|
7524
7524
|
position: fixed;
|
|
7525
7525
|
top: 0;
|
|
7526
7526
|
left: 0;
|
|
7527
|
+
z-index: 999998;
|
|
7527
7528
|
width: 100vw;
|
|
7528
7529
|
height: 100vh;
|
|
7529
|
-
overflow: hidden;
|
|
7530
7530
|
pointer-events: none;
|
|
7531
|
-
|
|
7531
|
+
overflow: hidden;
|
|
7532
7532
|
--marker-size: ${MARKER_SIZE}px;
|
|
7533
7533
|
}
|
|
7534
7534
|
|
|
@@ -7593,33 +7593,33 @@ import.meta.css = /* css */ `
|
|
|
7593
7593
|
|
|
7594
7594
|
.navi_debug_marker_label {
|
|
7595
7595
|
position: absolute;
|
|
7596
|
-
|
|
7596
|
+
padding: 2px 6px;
|
|
7597
|
+
color: rgb(from var(--marker-color) r g b / 1);
|
|
7597
7598
|
font-weight: bold;
|
|
7599
|
+
font-size: 12px;
|
|
7600
|
+
white-space: nowrap;
|
|
7598
7601
|
background: rgba(255, 255, 255, 0.9);
|
|
7599
|
-
padding: 2px 6px;
|
|
7600
|
-
border-radius: 3px;
|
|
7601
7602
|
border: 1px solid;
|
|
7602
|
-
white-space: nowrap;
|
|
7603
|
-
pointer-events: none;
|
|
7604
|
-
color: rgb(from var(--marker-color) r g b / 1);
|
|
7605
7603
|
border-color: rgb(from var(--marker-color) r g b / 1);
|
|
7604
|
+
border-radius: 3px;
|
|
7605
|
+
pointer-events: none;
|
|
7606
7606
|
}
|
|
7607
7607
|
|
|
7608
7608
|
/* Label positioning based on side data attributes */
|
|
7609
7609
|
|
|
7610
7610
|
/* Left side markers - vertical with 90° rotation */
|
|
7611
7611
|
.navi_debug_marker[data-left] .navi_debug_marker_label {
|
|
7612
|
-
left: 10px;
|
|
7613
7612
|
top: 20px;
|
|
7613
|
+
left: 10px;
|
|
7614
7614
|
transform: rotate(90deg);
|
|
7615
7615
|
transform-origin: left center;
|
|
7616
7616
|
}
|
|
7617
7617
|
|
|
7618
7618
|
/* Right side markers - vertical with -90° rotation */
|
|
7619
7619
|
.navi_debug_marker[data-right] .navi_debug_marker_label {
|
|
7620
|
+
top: 20px;
|
|
7620
7621
|
right: 10px;
|
|
7621
7622
|
left: auto;
|
|
7622
|
-
top: 20px;
|
|
7623
7623
|
transform: rotate(-90deg);
|
|
7624
7624
|
transform-origin: right center;
|
|
7625
7625
|
}
|
|
@@ -7632,16 +7632,16 @@ import.meta.css = /* css */ `
|
|
|
7632
7632
|
|
|
7633
7633
|
/* Bottom side markers - horizontal, label on the line */
|
|
7634
7634
|
.navi_debug_marker[data-bottom] .navi_debug_marker_label {
|
|
7635
|
-
bottom: 0px;
|
|
7636
7635
|
top: auto;
|
|
7636
|
+
bottom: 0px;
|
|
7637
7637
|
left: 20px;
|
|
7638
7638
|
}
|
|
7639
7639
|
|
|
7640
7640
|
.navi_obstacle_marker {
|
|
7641
7641
|
position: absolute;
|
|
7642
|
+
z-index: 9999;
|
|
7642
7643
|
background-color: orange;
|
|
7643
7644
|
opacity: 0.6;
|
|
7644
|
-
z-index: 9999;
|
|
7645
7645
|
pointer-events: none;
|
|
7646
7646
|
}
|
|
7647
7647
|
|
|
@@ -7649,20 +7649,20 @@ import.meta.css = /* css */ `
|
|
|
7649
7649
|
position: absolute;
|
|
7650
7650
|
top: 50%;
|
|
7651
7651
|
left: 50%;
|
|
7652
|
-
transform: translate(-50%, -50%);
|
|
7653
|
-
font-size: 12px;
|
|
7654
|
-
font-weight: bold;
|
|
7655
7652
|
color: white;
|
|
7653
|
+
font-weight: bold;
|
|
7654
|
+
font-size: 12px;
|
|
7656
7655
|
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
|
|
7656
|
+
transform: translate(-50%, -50%);
|
|
7657
7657
|
pointer-events: none;
|
|
7658
7658
|
}
|
|
7659
7659
|
|
|
7660
7660
|
.navi_element_marker {
|
|
7661
7661
|
position: absolute;
|
|
7662
|
+
z-index: 9997;
|
|
7662
7663
|
background-color: var(--element-color-alpha, rgba(255, 0, 150, 0.3));
|
|
7663
7664
|
border: 2px solid var(--element-color, rgb(255, 0, 150));
|
|
7664
7665
|
opacity: 0.9;
|
|
7665
|
-
z-index: 9997;
|
|
7666
7666
|
pointer-events: none;
|
|
7667
7667
|
}
|
|
7668
7668
|
|
|
@@ -7670,23 +7670,23 @@ import.meta.css = /* css */ `
|
|
|
7670
7670
|
position: absolute;
|
|
7671
7671
|
top: -25px;
|
|
7672
7672
|
right: 0;
|
|
7673
|
-
|
|
7674
|
-
font-weight: bold;
|
|
7673
|
+
padding: 2px 6px;
|
|
7675
7674
|
color: var(--element-color, rgb(255, 0, 150));
|
|
7675
|
+
font-weight: bold;
|
|
7676
|
+
font-size: 11px;
|
|
7677
|
+
white-space: nowrap;
|
|
7676
7678
|
background: rgba(255, 255, 255, 0.9);
|
|
7677
|
-
padding: 2px 6px;
|
|
7678
|
-
border-radius: 3px;
|
|
7679
7679
|
border: 1px solid var(--element-color, rgb(255, 0, 150));
|
|
7680
|
-
|
|
7680
|
+
border-radius: 3px;
|
|
7681
7681
|
pointer-events: none;
|
|
7682
7682
|
}
|
|
7683
7683
|
|
|
7684
7684
|
.navi_reference_element_marker {
|
|
7685
7685
|
position: absolute;
|
|
7686
|
+
z-index: 9998;
|
|
7686
7687
|
background-color: rgba(0, 150, 255, 0.3);
|
|
7687
7688
|
border: 2px dashed rgba(0, 150, 255, 0.7);
|
|
7688
7689
|
opacity: 0.8;
|
|
7689
|
-
z-index: 9998;
|
|
7690
7690
|
pointer-events: none;
|
|
7691
7691
|
}
|
|
7692
7692
|
|
|
@@ -7694,14 +7694,14 @@ import.meta.css = /* css */ `
|
|
|
7694
7694
|
position: absolute;
|
|
7695
7695
|
top: -25px;
|
|
7696
7696
|
left: 0;
|
|
7697
|
-
|
|
7698
|
-
font-weight: bold;
|
|
7697
|
+
padding: 2px 6px;
|
|
7699
7698
|
color: rgba(0, 150, 255, 1);
|
|
7699
|
+
font-weight: bold;
|
|
7700
|
+
font-size: 11px;
|
|
7701
|
+
white-space: nowrap;
|
|
7700
7702
|
background: rgba(255, 255, 255, 0.9);
|
|
7701
|
-
padding: 2px 6px;
|
|
7702
|
-
border-radius: 3px;
|
|
7703
7703
|
border: 1px solid rgba(0, 150, 255, 0.7);
|
|
7704
|
-
|
|
7704
|
+
border-radius: 3px;
|
|
7705
7705
|
pointer-events: none;
|
|
7706
7706
|
}
|
|
7707
7707
|
`;
|
|
@@ -8359,7 +8359,7 @@ const createDragToMoveGestureController = ({
|
|
|
8359
8359
|
{ element, referenceElement, elementToMove, convertScrollablePosition },
|
|
8360
8360
|
) => {
|
|
8361
8361
|
const direction = dragGesture.gestureInfo.direction;
|
|
8362
|
-
dragGesture.gestureInfo.name;
|
|
8362
|
+
// const dragGestureName = dragGesture.gestureInfo.name;
|
|
8363
8363
|
const scrollContainer = dragGesture.gestureInfo.scrollContainer;
|
|
8364
8364
|
const elementImpacted = elementToMove || element;
|
|
8365
8365
|
const translateXAtGrab = dragStyleController.getUnderlyingValue(
|
|
@@ -8416,7 +8416,9 @@ const createDragToMoveGestureController = ({
|
|
|
8416
8416
|
autoScrollArea,
|
|
8417
8417
|
{
|
|
8418
8418
|
scrollContainer,
|
|
8419
|
-
direction
|
|
8419
|
+
direction,
|
|
8420
|
+
// dragGestureName,
|
|
8421
|
+
},
|
|
8420
8422
|
);
|
|
8421
8423
|
}
|
|
8422
8424
|
if (autoScrollAreaPadding > 0) {
|
|
@@ -8869,10 +8871,10 @@ const getWidth = (element) => {
|
|
|
8869
8871
|
installImportMetaCss(import.meta);
|
|
8870
8872
|
import.meta.css = /* css */ `
|
|
8871
8873
|
[data-position-sticky-placeholder] {
|
|
8872
|
-
opacity: 0 !important;
|
|
8873
8874
|
position: static !important;
|
|
8874
8875
|
width: auto !important;
|
|
8875
8876
|
height: auto !important;
|
|
8877
|
+
opacity: 0 !important;
|
|
8876
8878
|
}
|
|
8877
8879
|
`;
|
|
8878
8880
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/dom",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"description": "DOM utilities for writing frontend code",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,8 +18,13 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
|
-
"
|
|
22
|
-
|
|
21
|
+
"node": {
|
|
22
|
+
"default": "./index_node.js"
|
|
23
|
+
},
|
|
24
|
+
"browser": {
|
|
25
|
+
"dev:jsenv": "./index.js",
|
|
26
|
+
"default": "./dist/jsenv_dom.js"
|
|
27
|
+
}
|
|
23
28
|
},
|
|
24
29
|
"./details_content_full_height": "./src/size/details_content_full_height.js",
|
|
25
30
|
"./details_toggle_animation": "./src/details_toggle_animation.js",
|
|
@@ -37,7 +42,7 @@
|
|
|
37
42
|
"@jsenv/core": "../../../",
|
|
38
43
|
"@jsenv/navi": "../navi",
|
|
39
44
|
"@jsenv/snapshot": "../../tooling/snapshot",
|
|
40
|
-
"@preact/signals": "2.5.
|
|
45
|
+
"@preact/signals": "2.5.1",
|
|
41
46
|
"preact": "11.0.0-beta.0"
|
|
42
47
|
},
|
|
43
48
|
"publishConfig": {
|