@yuuvis/client-core 2.4.3 → 2.5.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.
@@ -1880,7 +1880,10 @@ class SystemService {
1880
1880
  getClassifications(classifications) {
1881
1881
  const res = new Map();
1882
1882
  if (classifications) {
1883
- classifications.forEach((c) => {
1883
+ classifications
1884
+ .map((c) => c.replace(/\s+/g, ''))
1885
+ .filter((c) => c.length > 0)
1886
+ .forEach((c) => {
1884
1887
  const matches = c.match(/^([^\[]*)(\[(.*)\])?$/);
1885
1888
  if (matches && matches.length) {
1886
1889
  res.set(matches[1], {
@@ -2280,8 +2283,8 @@ class EventService {
2280
2283
  * @param type Type/key of the event
2281
2284
  * @param data Data to be send along with the event
2282
2285
  */
2283
- trigger(type, data) {
2284
- this.#eventSource.next({ type, data });
2286
+ trigger(type, ...args) {
2287
+ this.#eventSource.next({ type: type, data: args[0] });
2285
2288
  }
2286
2289
  /**
2287
2290
  * Listen on a triggered event