@schukai/monster 3.115.3 → 3.115.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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
 
4
4
 
5
+ ## [3.115.4] - 2025-04-07
6
+
7
+ ### Bug Fixes
8
+
9
+ - send an event after succesfully import
10
+
11
+
12
+
5
13
  ## [3.115.3] - 2025-04-02
6
14
 
7
15
  ### 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.115.3"}
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.115.4"}
@@ -25,10 +25,9 @@ import {
25
25
  assembleMethodSymbol,
26
26
  CustomElement,
27
27
  getSlottedElements,
28
- initMethodSymbol,
29
28
  registerCustomElement,
30
29
  } from "../../dom/customelement.mjs";
31
- import { findTargetElementFromEvent } from "../../dom/events.mjs";
30
+ import {findTargetElementFromEvent, fireEvent} from "../../dom/events.mjs";
32
31
  import { findElementWithSelectorUpwards } from "../../dom/util.mjs";
33
32
  import { Formatter } from "../../text/formatter.mjs";
34
33
  import { isFunction, isString } from "../../types/is.mjs";
@@ -81,7 +80,7 @@ const firstRunDoneSymbol = Symbol("firstRunDone");
81
80
  *
82
81
  * @since 1.0.0
83
82
  * @summary A TreeMenu control
84
- * @fires monster-fetched
83
+ * @fires entries-imported
85
84
  */
86
85
  class TreeMenu extends CustomElement {
87
86
  /**
@@ -120,13 +119,13 @@ class TreeMenu extends CustomElement {
120
119
  * @property {string} templates.main Main template
121
120
  * @property {Datasource} datasource data source
122
121
  * @property {Object} mapping
123
- * @property {String} mapping.selector=* Path to select the appropriate entries
124
- * @property {String} mapping.labelTemplate="" template with the label placeholders in the form ${name}, where name is the key
125
- * @property {String} mapping.keyTemplate="" template with the key placeholders in the form ${name}, where name is the key
126
- * @property {String} mapping.rootReferences=['0', undefined, null]
127
- * @property {String} mapping.idTemplate=id
128
- * @property {String} mapping.parentKey=parent
129
- * @property {String} mapping.selection
122
+ * @property {String} mapping.selector Path to select the appropriate entries
123
+ * @property {String} mapping.labelTemplate template with the label placeholders in the form ${name}, where name is the key
124
+ * @property {String} mapping.keyTemplate template with the key placeholders in the form ${name}, where name is the key
125
+ * @property {String} mapping.rootReferences the root references
126
+ * @property {String} mapping.idTemplate template with the id placeholders in the form ${name}, where name is the key
127
+ * @property {String} mapping.parentKey the parent key
128
+ * @property {String} mapping.selection the selection
130
129
  */
131
130
  get defaults() {
132
131
  return Object.assign({}, super.defaults, {
@@ -513,6 +512,7 @@ function importEntries() {
513
512
 
514
513
  queueMicrotask(() => {
515
514
  this.setOption("entries", options);
515
+ fireEvent(this, "entries-imported");
516
516
  });
517
517
 
518
518
  return this;