@schukai/monster 3.73.3 → 3.73.4
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 -6
- package/package.json +1 -1
- package/source/components/datatable/dataset.mjs +23 -16
- package/source/components/datatable/filter.mjs +1 -0
- package/source/components/form/context-error.mjs +0 -1
- package/source/components/form/form.mjs +160 -314
- package/source/dom/customelement.mjs +9 -0
- package/source/dom/updater.mjs +10 -5
- 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 +1989 -1799
package/source/dom/updater.mjs
CHANGED
|
@@ -156,7 +156,6 @@ class Updater extends Base {
|
|
|
156
156
|
|
|
157
157
|
for (const type of this[internalSymbol].eventTypes) {
|
|
158
158
|
// @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
|
|
159
|
-
|
|
160
159
|
this[internalSymbol].element.addEventListener(
|
|
161
160
|
type,
|
|
162
161
|
getControlEventHandler.call(this),
|
|
@@ -745,9 +744,7 @@ function runUpdateContent(container, parts, subject) {
|
|
|
745
744
|
|
|
746
745
|
/**
|
|
747
746
|
* @private
|
|
748
|
-
* @license AGPLv3
|
|
749
747
|
* @since 1.8.0
|
|
750
|
-
* @param {string} path
|
|
751
748
|
* @param {object} change
|
|
752
749
|
* @return {void}
|
|
753
750
|
*/
|
|
@@ -900,6 +897,10 @@ function handleInputControlAttributeUpdate(element, name, value) {
|
|
|
900
897
|
* @param {NodeList|HTMLElement|Set<HTMLElement>} elements
|
|
901
898
|
* @param {Symbol} symbol
|
|
902
899
|
* @param {object} object
|
|
900
|
+
* @param {object} config
|
|
901
|
+
*
|
|
902
|
+
* Config: enableEventProcessing {boolean} - default: false - enables the event processing
|
|
903
|
+
*
|
|
903
904
|
* @return {Promise[]}
|
|
904
905
|
* @license AGPLv3
|
|
905
906
|
* @since 1.23.0
|
|
@@ -908,7 +909,7 @@ function handleInputControlAttributeUpdate(element, name, value) {
|
|
|
908
909
|
* @throws {TypeError} the context of the function is not an instance of HTMLElement
|
|
909
910
|
* @throws {TypeError} symbol must be an instance of Symbol
|
|
910
911
|
*/
|
|
911
|
-
function addObjectWithUpdaterToElement(elements, symbol, object) {
|
|
912
|
+
function addObjectWithUpdaterToElement(elements, symbol, object, config = {}) {
|
|
912
913
|
if (!(this instanceof HTMLElement)) {
|
|
913
914
|
throw new TypeError(
|
|
914
915
|
"the context of this function must be an instance of HTMLElement",
|
|
@@ -974,7 +975,11 @@ function addObjectWithUpdaterToElement(elements, symbol, object) {
|
|
|
974
975
|
|
|
975
976
|
result.push(
|
|
976
977
|
u.run().then(() => {
|
|
977
|
-
|
|
978
|
+
if (config.eventProcessing === true) {
|
|
979
|
+
u.enableEventProcessing();
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
return u;
|
|
978
983
|
}),
|
|
979
984
|
);
|
|
980
985
|
});
|
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 Di
|
|
12
|
+
<h1 style='margin-bottom: 0.1em;'>Monster 3.73.2</h1>
|
|
13
|
+
<div id="lastupdate" style='font-size:0.7em'>last update Di 2. Jul 20:16:21 CEST 2024</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>
|