@jsenv/navi 0.14.4 → 0.14.6
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_navi.js +44 -40
- package/dist/jsenv_navi.js.map +4 -4
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -7765,7 +7765,16 @@ const createRoute = (urlPatternInput) => {
|
|
|
7765
7765
|
};
|
|
7766
7766
|
|
|
7767
7767
|
route.matchesParams = (otherParams) => {
|
|
7768
|
-
|
|
7768
|
+
let params = route.params;
|
|
7769
|
+
if (params) {
|
|
7770
|
+
const paramsWithoutWildcards = {};
|
|
7771
|
+
for (const key of Object.keys(params)) {
|
|
7772
|
+
if (!Number.isInteger(Number(key))) {
|
|
7773
|
+
paramsWithoutWildcards[key] = params[key];
|
|
7774
|
+
}
|
|
7775
|
+
}
|
|
7776
|
+
params = paramsWithoutWildcards;
|
|
7777
|
+
}
|
|
7769
7778
|
const paramsIsFalsyOrEmpty = !params || Object.keys(params).length === 0;
|
|
7770
7779
|
const otherParamsFalsyOrEmpty =
|
|
7771
7780
|
!otherParams || Object.keys(otherParams).length === 0;
|
|
@@ -7775,13 +7784,7 @@ const createRoute = (urlPatternInput) => {
|
|
|
7775
7784
|
if (otherParamsFalsyOrEmpty) {
|
|
7776
7785
|
return false;
|
|
7777
7786
|
}
|
|
7778
|
-
|
|
7779
|
-
for (const key of Object.keys(params)) {
|
|
7780
|
-
if (!Number.isInteger(Number(key))) {
|
|
7781
|
-
paramsWithoutWildcards[key] = params[key];
|
|
7782
|
-
}
|
|
7783
|
-
}
|
|
7784
|
-
return compareTwoJsValues(paramsWithoutWildcards, otherParams);
|
|
7787
|
+
return compareTwoJsValues(params, otherParams);
|
|
7785
7788
|
};
|
|
7786
7789
|
|
|
7787
7790
|
/**
|
|
@@ -16823,7 +16826,8 @@ import.meta.css = /* css */`
|
|
|
16823
16826
|
display: flex;
|
|
16824
16827
|
width: 100%;
|
|
16825
16828
|
margin: 0;
|
|
16826
|
-
padding: 2px; /* space for
|
|
16829
|
+
padding-right: 2px; /* space for eventual outline overflow */
|
|
16830
|
+
padding-left: 2px; /* space for eventual outline overflow */
|
|
16827
16831
|
align-items: center;
|
|
16828
16832
|
gap: 0.5rem;
|
|
16829
16833
|
list-style: none;
|
|
@@ -16908,18 +16912,37 @@ import.meta.css = /* css */`
|
|
|
16908
16912
|
overflow-x: hidden;
|
|
16909
16913
|
overflow-y: auto;
|
|
16910
16914
|
|
|
16911
|
-
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
}
|
|
16915
|
+
> ul {
|
|
16916
|
+
padding-top: 2px; /* space for eventual outline overflow */
|
|
16917
|
+
padding-bottom: 2px; /* space for eventual outline overflow */
|
|
16918
|
+
flex-direction: column;
|
|
16919
|
+
align-items: start;
|
|
16917
16920
|
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
.
|
|
16922
|
-
|
|
16921
|
+
> li {
|
|
16922
|
+
width: 100%;
|
|
16923
|
+
|
|
16924
|
+
.navi_tab {
|
|
16925
|
+
flex-direction: row;
|
|
16926
|
+
text-align: left;
|
|
16927
|
+
|
|
16928
|
+
.navi_tab_indicator {
|
|
16929
|
+
width: var(--tab-indicator-size);
|
|
16930
|
+
height: 100%;
|
|
16931
|
+
}
|
|
16932
|
+
|
|
16933
|
+
> .navi_text,
|
|
16934
|
+
.navi_link,
|
|
16935
|
+
.navi_text_bold_foreground {
|
|
16936
|
+
justify-content: start;
|
|
16937
|
+
}
|
|
16938
|
+
|
|
16939
|
+
&[data-align-x="end"] {
|
|
16940
|
+
> .navi_text,
|
|
16941
|
+
.navi_link,
|
|
16942
|
+
.navi_text_bold_foreground {
|
|
16943
|
+
justify-content: end;
|
|
16944
|
+
}
|
|
16945
|
+
}
|
|
16923
16946
|
}
|
|
16924
16947
|
}
|
|
16925
16948
|
}
|
|
@@ -16947,25 +16970,6 @@ import.meta.css = /* css */`
|
|
|
16947
16970
|
}
|
|
16948
16971
|
}
|
|
16949
16972
|
}
|
|
16950
|
-
|
|
16951
|
-
> ul {
|
|
16952
|
-
flex-direction: column;
|
|
16953
|
-
align-items: start;
|
|
16954
|
-
|
|
16955
|
-
> li {
|
|
16956
|
-
width: 100%;
|
|
16957
|
-
|
|
16958
|
-
.navi_tab {
|
|
16959
|
-
flex-direction: row;
|
|
16960
|
-
text-align: left;
|
|
16961
|
-
|
|
16962
|
-
.navi_tab_indicator {
|
|
16963
|
-
width: var(--tab-indicator-size);
|
|
16964
|
-
height: 100%;
|
|
16965
|
-
}
|
|
16966
|
-
}
|
|
16967
|
-
}
|
|
16968
|
-
}
|
|
16969
16973
|
}
|
|
16970
16974
|
|
|
16971
16975
|
&[data-expand] {
|
|
@@ -17080,7 +17084,7 @@ const TabRoute = ({
|
|
|
17080
17084
|
const selected = active && paramsAreMatching;
|
|
17081
17085
|
return jsx(TabBasic, {
|
|
17082
17086
|
selected: selected,
|
|
17083
|
-
paddingX:
|
|
17087
|
+
paddingX: undefined,
|
|
17084
17088
|
alignX: alignX,
|
|
17085
17089
|
alignY: alignY,
|
|
17086
17090
|
...props,
|