@schukai/monster 3.117.1 → 3.117.2
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/CHANGELOG.md +11 -0
- package/package.json +1 -1
- package/source/components/form/select.mjs +8 -3
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/test.html +2 -2
- package/test/web/tests.js +193 -186
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
## [3.117.2] - 2025-04-28
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
- introduce showPopper flag for lookup [#306](https://gitlab.schukai.com/oss/libraries/javascript/monster/issues/306)
|
10
|
+
### Changes
|
11
|
+
|
12
|
+
- update packages
|
13
|
+
|
14
|
+
|
15
|
+
|
5
16
|
## [3.117.1] - 2025-04-23
|
6
17
|
|
7
18
|
### Bug Fixes
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.117.
|
1
|
+
{"author":"schukai GmbH","dependencies":{"@floating-ui/dom":"^1.6.13","@popperjs/core":"^2.11.8","buffer":"^6.0.3"},"description":"Monster is a simple library for creating fast, robust and lightweight websites.","homepage":"https://monsterjs.org/","keywords":["framework","web","dom","css","sass","mobile-first","app","front-end","templates","schukai","core","shopcloud","alvine","monster","buildmap","stack","observer","observable","uuid","node","nodelist","css-in-js","logger","log","theme"],"license":"AGPL 3.0","main":"source/monster.mjs","module":"source/monster.mjs","name":"@schukai/monster","repository":{"type":"git","url":"https://gitlab.schukai.com/oss/libraries/javascript/monster.git"},"type":"module","version":"3.117.2"}
|
@@ -1774,12 +1774,14 @@ function filterFromRemote() {
|
|
1774
1774
|
}
|
1775
1775
|
|
1776
1776
|
let filterValue;
|
1777
|
+
let showFlag = false;
|
1777
1778
|
|
1778
1779
|
switch (this.getOption("filter.position")) {
|
1779
1780
|
case FILTER_POSITION_INLINE:
|
1780
1781
|
if (this[inlineFilterElementSymbol] instanceof HTMLElement) {
|
1781
1782
|
filterValue = this[inlineFilterElementSymbol].value.toLowerCase();
|
1782
1783
|
}
|
1784
|
+
showFlag = true;
|
1783
1785
|
|
1784
1786
|
break;
|
1785
1787
|
case FILTER_POSITION_POPPER:
|
@@ -1789,7 +1791,7 @@ function filterFromRemote() {
|
|
1789
1791
|
}
|
1790
1792
|
}
|
1791
1793
|
|
1792
|
-
return filterFromRemoteByValue.call(this, url, filterValue);
|
1794
|
+
return filterFromRemoteByValue.call(this, url, filterValue, showFlag);
|
1793
1795
|
}
|
1794
1796
|
|
1795
1797
|
function formatURL(url, value) {
|
@@ -1818,9 +1820,10 @@ function formatURL(url, value) {
|
|
1818
1820
|
* @private
|
1819
1821
|
* @param optionUrl
|
1820
1822
|
* @param value
|
1823
|
+
* @param openPopper
|
1821
1824
|
* @returns {Promise<unknown>}
|
1822
1825
|
*/
|
1823
|
-
function filterFromRemoteByValue(optionUrl, value) {
|
1826
|
+
function filterFromRemoteByValue(optionUrl, value, openPopper) {
|
1824
1827
|
return new Processing(() => {
|
1825
1828
|
let url = formatURL.call(this, optionUrl, value);
|
1826
1829
|
if (url.indexOf(disabledRequestMarker.toString()) !== -1) {
|
@@ -1833,7 +1836,9 @@ function filterFromRemoteByValue(optionUrl, value) {
|
|
1833
1836
|
})
|
1834
1837
|
.then(() => {
|
1835
1838
|
checkOptionState.call(this);
|
1836
|
-
|
1839
|
+
if(openPopper===true) {
|
1840
|
+
show.call(this);
|
1841
|
+
}
|
1837
1842
|
})
|
1838
1843
|
.catch((e) => {
|
1839
1844
|
throw e;
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED
package/test/web/test.html
CHANGED
@@ -9,8 +9,8 @@
|
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
<div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;">
|
12
|
-
<h1 style='margin-bottom: 0.1em;'>Monster 3.
|
13
|
-
<div id="lastupdate" style='font-size:0.7em'>last update
|
12
|
+
<h1 style='margin-bottom: 0.1em;'>Monster 3.117.1</h1>
|
13
|
+
<div id="lastupdate" style='font-size:0.7em'>last update Do 24. Apr 17:38:55 CEST 2025</div>
|
14
14
|
</div>
|
15
15
|
<div id="mocha-errors"
|
16
16
|
style="color: red;font-weight: bold;display: flex;align-items: center;justify-content: center;flex-direction: column;margin:20px;"></div>
|