@telia-ace/widget-utilities 1.1.2-rc.1 → 1.1.2-rc.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/index.d.ts +1 -1
- package/index.mjs +28 -25
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { default as appendClassNames } from './append-class-names';
|
|
|
2
2
|
export { default as createBatch } from './batch';
|
|
3
3
|
export type { Batch, BatchFunction } from './batch';
|
|
4
4
|
export { default as camilize } from './camilize';
|
|
5
|
-
export { buildCategoryTrail, categoryTrail, getCategoryTrailAsObjects } from './category-trail';
|
|
5
|
+
export { buildCategoryTrail, categoryTrail, getCategoryTrailAsObjects, } from './category-trail';
|
|
6
6
|
export { default as createParams } from './create-params';
|
|
7
7
|
export type { Params, ParamValue } from './create-params';
|
|
8
8
|
export { default as dataURItoBlob } from './data-uri-to-blob';
|
package/index.mjs
CHANGED
|
@@ -393,32 +393,35 @@ const k = (e) => !!e && typeof e == "object" && !Array.isArray(e), H = (e, ...t)
|
|
|
393
393
|
});
|
|
394
394
|
}, G = (e, t) => {
|
|
395
395
|
e.get("$widget").container.getAsync("components").then((r) => {
|
|
396
|
-
r.events.subscribeOnce(
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
396
|
+
r.events.subscribeOnce(
|
|
397
|
+
"components:component-model-initialized",
|
|
398
|
+
() => {
|
|
399
|
+
let i = r.nodes.visible.reduce(
|
|
400
|
+
(f, a) => (!a.name || !a.type || a.type === "view" || a.type === "root" || a.attributes.layout.size === "none" || t.querySelector(`[data-name="${a.name}"]`) || f.push(a.name), f),
|
|
401
|
+
[]
|
|
402
|
+
), n = !1;
|
|
403
|
+
new MutationObserver((f, a) => {
|
|
404
|
+
f.forEach((g) => {
|
|
405
|
+
if (g.addedNodes) {
|
|
406
|
+
const m = Array.from(
|
|
407
|
+
g.addedNodes
|
|
408
|
+
).reduce((u, l) => {
|
|
409
|
+
const d = l.getAttribute && l.getAttribute("data-name");
|
|
410
|
+
return d && i.indexOf(d) > -1 && u.push(d), u;
|
|
411
|
+
}, []);
|
|
412
|
+
i = i.filter((u) => m.indexOf(u) === -1), !n && i.length === 0 && (n = !0, I(e, t), a.disconnect());
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
}).observe(t, {
|
|
416
|
+
attributes: !1,
|
|
417
|
+
characterData: !1,
|
|
418
|
+
childList: !0,
|
|
419
|
+
subtree: !0,
|
|
420
|
+
attributeOldValue: !1,
|
|
421
|
+
characterDataOldValue: !1
|
|
412
422
|
});
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
characterData: !1,
|
|
416
|
-
childList: !0,
|
|
417
|
-
subtree: !0,
|
|
418
|
-
attributeOldValue: !1,
|
|
419
|
-
characterDataOldValue: !1
|
|
420
|
-
});
|
|
421
|
-
});
|
|
423
|
+
}
|
|
424
|
+
);
|
|
422
425
|
});
|
|
423
426
|
}, R = (e = {}) => (Object.keys(e).forEach((t) => {
|
|
424
427
|
(e[t] === null || typeof e[t] > "u") && delete e[t];
|