@schukai/monster 3.57.0 → 3.58.0
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 +15 -1
- package/package.json +1 -1
- package/source/components/datatable/change-button.mjs +8 -4
- package/source/components/datatable/dataset.mjs +1 -1
- package/source/components/datatable/filter.mjs +0 -1
- package/source/components/form/select.mjs +1781 -1769
- package/source/components/form/style/button-bar.pcss +2 -0
- package/source/components/form/style/button.pcss +2 -0
- package/source/components/form/stylesheet/button-bar.mjs +1 -1
- package/source/components/form/stylesheet/button.mjs +1 -1
- package/source/components/form/stylesheet/select.mjs +1 -1
- package/source/components/form/tabs.mjs +0 -1
- package/source/components/form/toggle-switch.mjs +280 -277
- package/source/data/transformer.mjs +4 -6
- package/source/dom/customelement.mjs +897 -904
- package/source/dom/events.mjs +3 -3
- package/source/dom/updater.mjs +754 -749
- package/source/dom/util/set-option-from-attribute.mjs +1 -2
- package/source/i18n/translations.mjs +1 -1
- package/source/monster.mjs +2 -0
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
- package/test/web/import.js +1 -0
- package/test/web/test.html +2 -2
- package/test/web/tests.js +990 -460
package/source/dom/events.mjs
CHANGED
|
@@ -14,7 +14,7 @@ export { fireEvent, fireCustomEvent, findTargetElementFromEvent };
|
|
|
14
14
|
/**
|
|
15
15
|
* The function sends an event
|
|
16
16
|
*
|
|
17
|
-
* @param {
|
|
17
|
+
* @param {Element | Node | HTMLCollection | NodeList} element
|
|
18
18
|
* @param {string} type
|
|
19
19
|
* @return {void}
|
|
20
20
|
* @license AGPLv3
|
|
@@ -55,8 +55,9 @@ function fireEvent(element, type) {
|
|
|
55
55
|
/**
|
|
56
56
|
* You can call the function via the monster namespace `new Monster.DOM.fireCustomEvent()`.
|
|
57
57
|
*
|
|
58
|
-
* @param {
|
|
58
|
+
* @param {Element | Node | HTMLCollection | NodeList} element
|
|
59
59
|
* @param {string} type
|
|
60
|
+
* @param {object} detail
|
|
60
61
|
* @return {void}
|
|
61
62
|
* @license AGPLv3
|
|
62
63
|
* @since 1.29.0
|
|
@@ -66,7 +67,6 @@ function fireEvent(element, type) {
|
|
|
66
67
|
* @summary Construct and send and event
|
|
67
68
|
*/
|
|
68
69
|
function fireCustomEvent(element, type, detail) {
|
|
69
|
-
const document = getDocument();
|
|
70
70
|
|
|
71
71
|
if (element instanceof HTMLElement) {
|
|
72
72
|
if (!isObject(detail)) {
|