@jsenv/navi 0.14.5 → 0.14.7
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 +31 -12
- 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,8 +16826,7 @@ import.meta.css = /* css */`
|
|
|
16823
16826
|
display: flex;
|
|
16824
16827
|
width: 100%;
|
|
16825
16828
|
margin: 0;
|
|
16826
|
-
padding
|
|
16827
|
-
padding-left: 2px; /* space for eventual outline overflow */
|
|
16829
|
+
padding: 0;
|
|
16828
16830
|
align-items: center;
|
|
16829
16831
|
gap: 0.5rem;
|
|
16830
16832
|
list-style: none;
|
|
@@ -16834,6 +16836,15 @@ import.meta.css = /* css */`
|
|
|
16834
16836
|
> li {
|
|
16835
16837
|
position: relative;
|
|
16836
16838
|
display: inline-flex;
|
|
16839
|
+
/* Space for eventual outline inside the tab (link) */
|
|
16840
|
+
padding-top: 2px;
|
|
16841
|
+
padding-bottom: 2px;
|
|
16842
|
+
&:first-child {
|
|
16843
|
+
padding-left: 2px;
|
|
16844
|
+
}
|
|
16845
|
+
&:last-child {
|
|
16846
|
+
padding-right: 2px;
|
|
16847
|
+
}
|
|
16837
16848
|
|
|
16838
16849
|
.navi_tab {
|
|
16839
16850
|
--x-tab-background: var(--tab-background);
|
|
@@ -16910,13 +16921,21 @@ import.meta.css = /* css */`
|
|
|
16910
16921
|
overflow-y: auto;
|
|
16911
16922
|
|
|
16912
16923
|
> ul {
|
|
16913
|
-
padding-top: 2px; /* space for eventual outline overflow */
|
|
16914
|
-
padding-bottom: 2px; /* space for eventual outline overflow */
|
|
16915
16924
|
flex-direction: column;
|
|
16916
16925
|
align-items: start;
|
|
16917
16926
|
|
|
16918
16927
|
> li {
|
|
16919
16928
|
width: 100%;
|
|
16929
|
+
padding-top: 0;
|
|
16930
|
+
padding-right: 2px;
|
|
16931
|
+
padding-bottom: 0;
|
|
16932
|
+
padding-left: 2px;
|
|
16933
|
+
&:first-child {
|
|
16934
|
+
padding-top: 2px;
|
|
16935
|
+
}
|
|
16936
|
+
&:last-child {
|
|
16937
|
+
padding-bottom: 2px;
|
|
16938
|
+
}
|
|
16920
16939
|
|
|
16921
16940
|
.navi_tab {
|
|
16922
16941
|
flex-direction: row;
|