@orangelogic/design-system 2.160.0 → 2.161.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.
@@ -0,0 +1,39 @@
1
+ function d(r, t = []) {
2
+ return r.querySelectorAll("iframe").forEach((n) => t.push(n)), r.querySelectorAll("*").forEach((n) => {
3
+ n.shadowRoot && d(n.shadowRoot, t);
4
+ }), t;
5
+ }
6
+ function p(r, t) {
7
+ function n(e, o) {
8
+ const l = r.getBoundingClientRect(), i = r.ownerDocument.defaultView, v = l.left + i.scrollX, m = l.top + i.scrollY;
9
+ let a = e.pageX - v, f = e.pageY - m;
10
+ if (o) {
11
+ const c = o.getBoundingClientRect();
12
+ a += c.left + i.scrollX, f += c.top + i.scrollY;
13
+ }
14
+ if (e._parentEvent) {
15
+ const c = e.target;
16
+ c instanceof HTMLElement && (a += c.getBoundingClientRect().left + c.ownerDocument.defaultView.scrollX, f += c.getBoundingClientRect().top + c.ownerDocument.defaultView.scrollY);
17
+ }
18
+ t?.onMove && t.onMove(a, f, e);
19
+ }
20
+ function u() {
21
+ document.removeEventListener("pointermove", n), document.removeEventListener("pointerup", u), s.forEach((e, o) => {
22
+ o.contentDocument?.removeEventListener("pointermove", e), o.contentDocument?.removeEventListener("pointerup", u);
23
+ }), s.clear(), t?.onStop && t.onStop();
24
+ }
25
+ const s = /* @__PURE__ */ new Map();
26
+ d(r.ownerDocument).forEach((e) => {
27
+ try {
28
+ const o = e.contentDocument;
29
+ if (!o)
30
+ return;
31
+ const l = (i) => n(i, e);
32
+ s.set(e, l), o.addEventListener("pointermove", l, { passive: !0 }), o.addEventListener("pointerup", u);
33
+ } catch {
34
+ }
35
+ }), document.addEventListener("pointermove", n, { passive: !0 }), document.addEventListener("pointerup", u), t?.initialEvent instanceof PointerEvent && n(t.initialEvent);
36
+ }
37
+ export {
38
+ p as d
39
+ };
@@ -3,7 +3,7 @@ import { c as E } from "../chunks/component.styles.CRO4Odto.js";
3
3
  import { c as I } from "../chunks/custom-element.L4WJXn1j.js";
4
4
  import { d as S } from "../chunks/debounce.DaHuiSGU.js";
5
5
  import { d as H } from "../chunks/default-value.COZopaet.js";
6
- import { d as w } from "../chunks/drag.DXEXVXPv.js";
6
+ import { d as w } from "../chunks/drag.DenOh3AE.js";
7
7
  import { F as M } from "../chunks/form.CP9KLGjF.js";
8
8
  import { L as O } from "../chunks/i18n.Bchq8v1d.js";
9
9
  import { c as u } from "../chunks/math.DuKzLacZ.js";
@@ -1,7 +1,7 @@
1
1
  import { n as h, C as f } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
2
  import { c as g } from "../chunks/component.styles.CRO4Odto.js";
3
3
  import { c as u } from "../chunks/custom-element.L4WJXn1j.js";
4
- import { d as v } from "../chunks/drag.DXEXVXPv.js";
4
+ import { d as v } from "../chunks/drag.DenOh3AE.js";
5
5
  import { L as _ } from "../chunks/i18n.Bchq8v1d.js";
6
6
  import { c as m } from "../chunks/math.DuKzLacZ.js";
7
7
  import { w } from "../chunks/watch.DOt4Mabe.js";
@@ -5,7 +5,7 @@ import { f as F } from "../chunks/form-control.styles.CaGWmeAS.js";
5
5
  import { c as U } from "../chunks/custom-element.L4WJXn1j.js";
6
6
  import { d as $ } from "../chunks/debounce.DaHuiSGU.js";
7
7
  import { d as O } from "../chunks/default-value.COZopaet.js";
8
- import { d as w } from "../chunks/drag.DXEXVXPv.js";
8
+ import { d as w } from "../chunks/drag.DenOh3AE.js";
9
9
  import { F as N } from "../chunks/form.CP9KLGjF.js";
10
10
  import { L as S } from "../chunks/i18n.Bchq8v1d.js";
11
11
  import { c as d } from "../chunks/math.DuKzLacZ.js";
@@ -5,7 +5,7 @@ import _ from "./resize-observer.js";
5
5
  import { n as d, C as m } from "../chunks/lib-cortex-element.CVMmyPMC.js";
6
6
  import { c as f } from "../chunks/component.styles.CRO4Odto.js";
7
7
  import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
8
- import { d as y } from "../chunks/drag.DXEXVXPv.js";
8
+ import { d as y } from "../chunks/drag.DenOh3AE.js";
9
9
  import { H as C } from "../chunks/slot.j5oheLJC.js";
10
10
  import { w as g } from "../chunks/watch.DOt4Mabe.js";
11
11
  import { i as z, E as p, x as l } from "../chunks/lit-element.jLBm65_O.js";
@@ -1,7 +1,7 @@
1
1
  import { n as l, C as v } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
2
  import { c as m } from "../chunks/component.styles.CRO4Odto.js";
3
3
  import { c as u } from "../chunks/custom-element.L4WJXn1j.js";
4
- import { d as g } from "../chunks/drag.DXEXVXPv.js";
4
+ import { d as g } from "../chunks/drag.DenOh3AE.js";
5
5
  import { L as f } from "../chunks/i18n.Bchq8v1d.js";
6
6
  import { c as p } from "../chunks/math.DuKzLacZ.js";
7
7
  import { w as c } from "../chunks/watch.DOt4Mabe.js";