bitboss-ui 2.1.106 → 2.1.107

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.
Files changed (289) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.js +153 -150
  4. package/dist/index109.js +9 -9
  5. package/dist/index11.js +1 -1
  6. package/dist/index110.js +502 -163
  7. package/dist/index112.js +130 -55
  8. package/dist/index114.js +106 -48
  9. package/dist/index116.js +52 -34
  10. package/dist/index118.js +33 -93
  11. package/dist/index12.js +2 -2
  12. package/dist/index120.js +56 -92
  13. package/dist/index122.js +120 -352
  14. package/dist/index124.js +344 -531
  15. package/dist/index126.js +535 -104
  16. package/dist/index128.js +52 -46
  17. package/dist/index13.js +6 -6
  18. package/dist/index130.js +36 -41
  19. package/dist/index132.js +117 -22
  20. package/dist/index134.js +23 -160
  21. package/dist/index136.js +158 -115
  22. package/dist/index138.js +115 -64
  23. package/dist/index14.js +2 -2
  24. package/dist/index140.js +68 -12
  25. package/dist/index142.js +13 -2
  26. package/dist/index143.js +11 -419
  27. package/dist/index144.js +2 -9
  28. package/dist/index145.js +419 -9
  29. package/dist/index146.js +9 -25
  30. package/dist/index147.js +9 -2
  31. package/dist/index148.js +25 -5
  32. package/dist/index149.js +2 -6
  33. package/dist/index150.js +5 -5
  34. package/dist/index151.js +6 -3
  35. package/dist/index152.js +5 -3
  36. package/dist/index153.js +1 -1
  37. package/dist/index154.js +1 -1
  38. package/dist/index155.js +1 -1
  39. package/dist/index156.js +1 -1
  40. package/dist/index157.js +1 -1
  41. package/dist/index158.js +1 -1
  42. package/dist/index159.js +1 -1
  43. package/dist/index16.js +6 -6
  44. package/dist/index160.js +1 -1
  45. package/dist/index161.js +1 -1
  46. package/dist/index162.js +1 -1
  47. package/dist/index163.js +1 -1
  48. package/dist/index164.js +1 -1
  49. package/dist/index165.js +1 -1
  50. package/dist/index166.js +1 -1
  51. package/dist/index167.js +1 -1
  52. package/dist/index168.js +1 -1
  53. package/dist/index169.js +1 -1
  54. package/dist/index170.js +1 -1
  55. package/dist/index171.js +1 -1
  56. package/dist/index172.js +1 -1
  57. package/dist/index173.js +1 -1
  58. package/dist/index174.js +1 -1
  59. package/dist/index175.js +1 -1
  60. package/dist/index176.js +1 -1
  61. package/dist/index177.js +1 -1
  62. package/dist/index178.js +1 -1
  63. package/dist/index179.js +1 -1
  64. package/dist/index18.js +3 -3
  65. package/dist/index180.js +1 -1
  66. package/dist/index181.js +3 -2
  67. package/dist/index182.js +1 -1
  68. package/dist/index183.js +1 -1
  69. package/dist/index184.js +1 -1
  70. package/dist/index185.js +2 -3
  71. package/dist/index186.js +1 -1
  72. package/dist/index187.js +1 -1
  73. package/dist/index188.js +1 -1
  74. package/dist/index189.js +1 -1
  75. package/dist/index190.js +3 -2
  76. package/dist/index191.js +1 -1
  77. package/dist/index192.js +2 -3
  78. package/dist/index193.js +1 -1
  79. package/dist/index194.js +1 -1
  80. package/dist/index195.js +2 -2
  81. package/dist/index196.js +2 -2
  82. package/dist/index197.js +1 -1
  83. package/dist/index198.js +1 -1
  84. package/dist/index199.js +1 -1
  85. package/dist/index20.js +8 -8
  86. package/dist/index200.js +3 -2
  87. package/dist/index201.js +1 -1
  88. package/dist/index202.js +2 -3
  89. package/dist/index203.js +1 -1
  90. package/dist/index204.js +1 -1
  91. package/dist/index205.js +1 -1
  92. package/dist/index206.js +1 -1
  93. package/dist/index207.js +1 -1
  94. package/dist/index208.js +1 -1
  95. package/dist/index209.js +1 -1
  96. package/dist/index210.js +1 -1
  97. package/dist/index211.js +1 -1
  98. package/dist/index212.js +1 -1
  99. package/dist/index213.js +1 -1
  100. package/dist/index214.js +1 -1
  101. package/dist/index215.js +1 -1
  102. package/dist/index216.js +5 -0
  103. package/dist/index217.js +3 -7
  104. package/dist/index218.js +3 -2
  105. package/dist/index22.js +14 -14
  106. package/dist/index220.js +7 -2
  107. package/dist/index221.js +137 -4
  108. package/dist/index222.js +2 -8
  109. package/dist/index223.js +2 -33
  110. package/dist/index224.js +5 -28
  111. package/dist/index225.js +10 -0
  112. package/dist/index226.js +9 -5
  113. package/dist/index227.js +2 -5
  114. package/dist/index228.js +21 -5
  115. package/dist/index229.js +3 -5
  116. package/dist/index230.js +30 -3
  117. package/dist/index231.js +18 -2
  118. package/dist/index232.js +17 -6
  119. package/dist/index233.js +51 -8
  120. package/dist/index234.js +12 -268
  121. package/dist/index235.js +4 -52
  122. package/dist/index236.js +12 -51
  123. package/dist/index237.js +18 -30
  124. package/dist/index238.js +3 -60
  125. package/dist/index239.js +25 -13
  126. package/dist/index24.js +12 -12
  127. package/dist/index240.js +3 -86
  128. package/dist/index241.js +11 -0
  129. package/dist/index242.js +4 -30
  130. package/dist/index243.js +51 -15
  131. package/dist/index244.js +8 -51
  132. package/dist/index245.js +2 -18
  133. package/dist/index246.js +11 -10
  134. package/dist/index247.js +135 -18
  135. package/dist/index249.js +4 -13
  136. package/dist/index250.js +23 -3
  137. package/dist/index251.js +3 -4
  138. package/dist/index252.js +2 -20
  139. package/dist/index253.js +18 -2
  140. package/dist/index254.js +12 -2
  141. package/dist/index255.js +18 -2
  142. package/dist/index256.js +106 -3
  143. package/dist/index258.js +102 -0
  144. package/dist/index26.js +4 -4
  145. package/dist/index260.js +106 -22
  146. package/dist/index261.js +11 -4
  147. package/dist/index262.js +5 -3
  148. package/dist/index263.js +5 -18
  149. package/dist/index264.js +5 -12
  150. package/dist/index265.js +5 -106
  151. package/dist/index266.js +8 -0
  152. package/dist/index267.js +263 -95
  153. package/dist/index268.js +54 -0
  154. package/dist/index269.js +48 -103
  155. package/dist/index270.js +32 -2
  156. package/dist/index271.js +60 -11
  157. package/dist/index272.js +86 -7
  158. package/dist/index274.js +32 -15
  159. package/dist/index275.js +2 -3
  160. package/dist/index276.js +7 -9
  161. package/dist/index277.js +7 -53
  162. package/dist/index278.js +6 -9
  163. package/dist/index279.js +34 -3
  164. package/dist/index28.js +2 -2
  165. package/dist/index280.js +59 -365
  166. package/dist/index281.js +190 -0
  167. package/dist/index282.js +3 -9
  168. package/dist/index283.js +33 -23
  169. package/dist/index284.js +6 -5
  170. package/dist/index285.js +10 -67
  171. package/dist/index286.js +3 -5
  172. package/dist/index287.js +3 -5
  173. package/dist/index288.js +373 -5
  174. package/dist/index290.js +12 -6
  175. package/dist/index291.js +28 -7
  176. package/dist/index293.js +2 -188
  177. package/dist/index294.js +2 -3
  178. package/dist/index295.js +5 -34
  179. package/dist/index296.js +6 -21
  180. package/dist/index297.js +15 -32
  181. package/dist/index298.js +5 -9
  182. package/dist/index299.js +7 -0
  183. package/dist/index30.js +6 -6
  184. package/dist/index300.js +5 -3
  185. package/dist/index301.js +9 -280
  186. package/dist/index302.js +23 -2
  187. package/dist/index303.js +5 -16
  188. package/dist/index305.js +3 -16
  189. package/dist/index306.js +28 -2
  190. package/dist/index307.js +17 -27
  191. package/dist/index308.js +7 -2
  192. package/dist/index309.js +5 -2
  193. package/dist/index310.js +4 -2
  194. package/dist/index311.js +3 -2
  195. package/dist/index312.js +3 -2
  196. package/dist/index313.js +3 -28
  197. package/dist/index314.js +1 -1
  198. package/dist/index315.js +280 -7
  199. package/dist/index316.js +2 -3
  200. package/dist/index317.js +16 -17
  201. package/dist/index318.js +2 -4
  202. package/dist/index319.js +16 -5
  203. package/dist/index32.js +2 -2
  204. package/dist/index320.js +2 -3
  205. package/dist/index321.js +27 -5
  206. package/dist/index322.js +2 -3
  207. package/dist/index323.js +2 -3
  208. package/dist/index324.js +1 -1
  209. package/dist/index325.js +2 -719
  210. package/dist/index326.js +2 -366
  211. package/dist/index327.js +2 -57
  212. package/dist/index328.js +1 -1
  213. package/dist/index329.js +4 -2
  214. package/dist/index330.js +2 -125
  215. package/dist/index331.js +2 -2
  216. package/dist/index332.js +5 -14
  217. package/dist/index333.js +3 -2
  218. package/dist/index334.js +719 -19
  219. package/dist/index335.js +366 -2
  220. package/dist/index336.js +56 -5
  221. package/dist/index337.js +227 -3
  222. package/dist/index338.js +125 -2
  223. package/dist/index339.js +2 -5
  224. package/dist/index34.js +8 -8
  225. package/dist/index340.js +14 -6
  226. package/dist/index341.js +2 -19
  227. package/dist/index342.js +18 -8
  228. package/dist/index343.js +2 -15
  229. package/dist/index344.js +6 -92
  230. package/dist/index345.js +5 -7
  231. package/dist/index346.js +198 -65
  232. package/dist/index347.js +257 -65
  233. package/dist/index349.js +129 -6
  234. package/dist/index350.js +382 -113
  235. package/dist/index351.js +6 -397
  236. package/dist/index352.js +17 -198
  237. package/dist/index353.js +9 -259
  238. package/dist/index354.js +12 -225
  239. package/dist/index355.js +66 -21
  240. package/dist/index356.js +69 -0
  241. package/dist/index357.js +93 -2
  242. package/dist/index358.js +21 -1
  243. package/dist/index36.js +5 -5
  244. package/dist/index360.js +2 -441
  245. package/dist/index361.js +2 -128
  246. package/dist/index362.js +131 -44
  247. package/dist/index363.js +44 -67
  248. package/dist/index364.js +66 -516
  249. package/dist/index365.js +435 -44
  250. package/dist/index366.js +130 -0
  251. package/dist/index367.js +522 -0
  252. package/dist/index368.js +52 -0
  253. package/dist/index38.js +25 -25
  254. package/dist/index40.js +8 -8
  255. package/dist/index42.js +2 -2
  256. package/dist/index44.js +8 -8
  257. package/dist/index46.js +9 -9
  258. package/dist/index48.js +4 -4
  259. package/dist/index50.js +4 -4
  260. package/dist/index54.js +1 -1
  261. package/dist/index56.js +2 -2
  262. package/dist/index58.js +2 -2
  263. package/dist/index60.js +3 -3
  264. package/dist/index62.js +7 -7
  265. package/dist/index68.js +1 -1
  266. package/dist/index7.js +2 -2
  267. package/dist/index74.js +4 -4
  268. package/dist/index75.js +1 -1
  269. package/dist/index82.js +8 -8
  270. package/dist/index84.js +2 -2
  271. package/dist/index86.js +3 -3
  272. package/dist/index88.js +3 -3
  273. package/dist/index9.js +1 -1
  274. package/dist/index90.js +1 -1
  275. package/dist/index93.js +4 -4
  276. package/dist/index95.js +3 -3
  277. package/dist/index97.js +6 -6
  278. package/dist/index99.js +2 -2
  279. package/package.json +2 -2
  280. package/dist/index141.js +0 -13
  281. package/dist/index219.js +0 -140
  282. package/dist/index248.js +0 -15
  283. package/dist/index257.js +0 -137
  284. package/dist/index259.js +0 -6
  285. package/dist/index273.js +0 -8
  286. package/dist/index289.js +0 -4
  287. package/dist/index292.js +0 -27
  288. package/dist/index304.js +0 -4
  289. package/dist/index359.js +0 -136
package/dist/index257.js DELETED
@@ -1,137 +0,0 @@
1
- import { defineComponent as V, mergeModels as L, useModel as T, ref as c, computed as a, watch as F, onMounted as S, createBlock as N, openBlock as w, resolveDynamicComponent as U, mergeProps as g, unref as y, withModifiers as h, withCtx as X, createElementVNode as j, createElementBlock as q, createCommentVNode as z, renderSlot as I, nextTick as O } from "vue";
2
- import { useCancelableFunction as R } from "./index348.js";
3
- import { useUntil as G } from "./index249.js";
4
- import { extractDomContainer as x } from "./index259.js";
5
- import { waitFor as H } from "./index349.js";
6
- import { arrow as J, useFloating as K } from "./index350.js";
7
- import { flip as Q, offset as W, shift as Y, hide as Z, autoUpdate as ee } from "./index351.js";
8
- const oe = {
9
- key: 0,
10
- class: "bb-common-popover__bubble"
11
- }, ue = /* @__PURE__ */ V({
12
- __name: "CommonPopover",
13
- props: /* @__PURE__ */ L({
14
- arrowPadding: {},
15
- eager: { type: Boolean },
16
- offset: {},
17
- padding: { default: 0 },
18
- placement: {},
19
- transitionDuration: { default: 250 },
20
- anchor: {},
21
- boundary: {},
22
- dialog: { type: Boolean },
23
- hideArrow: { type: Boolean },
24
- tag: { default: "span" },
25
- flip: { type: Boolean, default: !0 }
26
- }, {
27
- modelValue: { type: Boolean, default: !1 },
28
- modelModifiers: {}
29
- }),
30
- emits: ["update:modelValue"],
31
- setup(m) {
32
- const o = m, r = T(m, "modelValue"), u = c(r.value), C = a(() => o.dialog ? "dialog" : "span"), t = c(), f = c(), _ = a(() => {
33
- const e = o.anchor;
34
- return e && typeof e == "object" && "getBoundingClientRect" in e && !(e instanceof Element) ? e : x(e);
35
- }), B = G(r, { initialValue: o.eager }), P = a(() => {
36
- if (o.boundary)
37
- return typeof o.boundary == "string" ? document.querySelector(o.boundary) ?? void 0 : x(o.boundary) ?? void 0;
38
- }), k = a(() => {
39
- const e = P.value;
40
- return [
41
- ...o.flip ? [Q(e ? { boundary: e } : void 0)] : [],
42
- W(o.offset),
43
- Y({ padding: o.padding, ...e ? { boundary: e } : {} }),
44
- Z(),
45
- ...o.hideArrow ? [] : [
46
- J({
47
- element: f,
48
- padding: o.arrowPadding
49
- })
50
- ]
51
- ];
52
- }), { floatingStyles: E, placement: M, middlewareData: d, update: v } = K(
53
- _,
54
- t,
55
- {
56
- placement: o.placement,
57
- whileElementsMounted: ee,
58
- middleware: k,
59
- strategy: "fixed"
60
- }
61
- ), { execute: b } = R(
62
- ({ signal: e }, n) => new Promise((i) => {
63
- let l;
64
- const s = () => {
65
- l && clearTimeout(l);
66
- };
67
- e.addEventListener("abort", s), n ? (A(), v(), H(() => !!t.value).then(() => {
68
- u.value = !0, e.removeEventListener("abort", s), i(void 0);
69
- })) : (u.value = !1, l = setTimeout(() => {
70
- O(() => {
71
- t.value && (o.dialog ? t.value.close() : t.value.hidePopover()), e.removeEventListener("abort", s), v(), i(void 0);
72
- });
73
- }, o.transitionDuration));
74
- })
75
- ), A = () => {
76
- if (!t.value) return;
77
- if (!o.dialog) return t.value.showPopover();
78
- t.value.showModal();
79
- };
80
- F(r, b), S(() => {
81
- r.value && b(r.value);
82
- });
83
- const $ = a(() => {
84
- const e = r.value ? void 0 : -1, n = d.value.arrow?.x, i = o.hideArrow || n == null ? "50%" : `${Math.round(n)}px`, l = o.dialog ? void 0 : "manual";
85
- return {
86
- style: {
87
- ...E.value,
88
- "--transition-duration": `${o.transitionDuration}ms`,
89
- "--page-padding": `${o.padding}px`,
90
- "--arrow-offset-x": i
91
- },
92
- popover: l,
93
- tabindex: e
94
- };
95
- }), D = a(() => {
96
- if (d.value.arrow) {
97
- const { x: e, y: n } = d.value.arrow;
98
- return {
99
- style: {
100
- left: `${e}px`,
101
- top: `${n}px`
102
- }
103
- };
104
- }
105
- }), p = () => {
106
- r.value = !1;
107
- };
108
- return (e, n) => (w(), N(U(C.value), g({
109
- ref_key: "wrapper",
110
- ref: t,
111
- class: ["bb-common-popover", {
112
- "bb-common-popover--open": u.value,
113
- "bb-common-popover--no-arrow": e.hideArrow,
114
- [`bb-common-popover--${y(M)}`]: !0
115
- }]
116
- }, $.value, {
117
- onClick: h(p, ["self", "stop"]),
118
- onContextmenu: h(p, ["self", "stop", "prevent"]),
119
- onClose: p
120
- }), {
121
- default: X(() => [
122
- j("span", g({
123
- ref_key: "bubblearrow",
124
- ref: f,
125
- class: "bb-common-popover__arrow"
126
- }, D.value), null, 16),
127
- y(B) ? (w(), q("span", oe, [
128
- I(e.$slots, "default")
129
- ])) : z("", !0)
130
- ]),
131
- _: 3
132
- }, 16, ["class"]));
133
- }
134
- });
135
- export {
136
- ue as default
137
- };
package/dist/index259.js DELETED
@@ -1,6 +0,0 @@
1
- function e(n) {
2
- return n ? n instanceof HTMLElement ? n : typeof n == "object" && "$el" in n && n.$el instanceof HTMLElement ? n.$el : typeof n == "object" && "el" in n && n.el instanceof HTMLElement ? n.el : null : null;
3
- }
4
- export {
5
- e as extractDomContainer
6
- };
package/dist/index273.js DELETED
@@ -1,8 +0,0 @@
1
- import e from "./index325.js";
2
- import o from "./index326.js";
3
- import r from "./index327.js";
4
- const f = new r(o, e)._freeze();
5
- export {
6
- r as Mime,
7
- f as default
8
- };
package/dist/index289.js DELETED
@@ -1,4 +0,0 @@
1
- const o = (e) => e[0];
2
- export {
3
- o as head
4
- };
package/dist/index292.js DELETED
@@ -1,27 +0,0 @@
1
- const a = new RegExp("\\p{Lu}", "u"), f = new RegExp("\\p{Ll}", "u"), R = new RegExp("\\p{N}", "u"), c = /\s/u, d = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u, A = new RegExp("\\p{Extended_Pictographic}", "u"), W = /* @__PURE__ */ new Set([
2
- ".",
3
- ",",
4
- ":",
5
- ";",
6
- "!",
7
- "|",
8
- "'",
9
- "`",
10
- '"',
11
- "(",
12
- ")",
13
- "[",
14
- "]",
15
- "{",
16
- "}"
17
- ]), _ = /* @__PURE__ */ new Set(["-", "_", "/", "\\", "+", "="]), m = /* @__PURE__ */ new Set(["i", "l", "I", "j", "t", "f", "r"]), p = /* @__PURE__ */ new Set(["W", "M", "w", "m", "@", "%", "&", "#"]), I = (t) => c.test(t) ? 0.42 : A.test(t) ? 1.95 : d.test(t) ? 1.8 : W.has(t) ? 0.48 : _.has(t) ? 0.66 : m.has(t) ? 0.72 : p.has(t) ? 1.28 : R.test(t) ? 0.92 : a.test(t) ? 1.08 : f.test(t) ? 0.9 : 1, C = (t, n) => {
18
- const e = t, i = n.fontWidth * 2, s = n.fontWidth * 0.6, r = n.estimationBias ?? 1, E = Array.from(e).reduce((u, o) => u + I(o) * n.fontWidth, 0);
19
- return Math.max(
20
- i,
21
- (E + s) * r
22
- );
23
- }, T = (t) => Math.max(10, t * 1.2);
24
- export {
25
- C as estimateBreadcrumbItemWidth,
26
- T as estimateEllipsisWidth
27
- };
package/dist/index304.js DELETED
@@ -1,4 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
package/dist/index359.js DELETED
@@ -1,136 +0,0 @@
1
- function c() {
2
- return typeof window < "u";
3
- }
4
- function u(t) {
5
- return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
6
- }
7
- function i(t) {
8
- var e;
9
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
10
- }
11
- function N(t) {
12
- var e;
13
- return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
14
- }
15
- function p(t) {
16
- return c() ? t instanceof Node || t instanceof i(t).Node : !1;
17
- }
18
- function m(t) {
19
- return c() ? t instanceof Element || t instanceof i(t).Element : !1;
20
- }
21
- function w(t) {
22
- return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
23
- }
24
- function f(t) {
25
- return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
26
- }
27
- const E = /* @__PURE__ */ new Set(["inline", "contents"]);
28
- function y(t) {
29
- const {
30
- overflow: e,
31
- overflowX: n,
32
- overflowY: o,
33
- display: r
34
- } = S(t);
35
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
36
- }
37
- const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
38
- function A(t) {
39
- return T.has(u(t));
40
- }
41
- const v = [":popover-open", ":modal"];
42
- function L(t) {
43
- return v.some((e) => {
44
- try {
45
- return t.matches(e);
46
- } catch {
47
- return !1;
48
- }
49
- });
50
- }
51
- const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
52
- function V(t) {
53
- const e = O(), n = m(t) ? S(t) : t;
54
- return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
55
- }
56
- function B(t) {
57
- let e = s(t);
58
- for (; w(e) && !h(e); ) {
59
- if (V(e))
60
- return e;
61
- if (L(e))
62
- return null;
63
- e = s(e);
64
- }
65
- return null;
66
- }
67
- function O() {
68
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
69
- }
70
- const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
71
- function h(t) {
72
- return R.has(u(t));
73
- }
74
- function S(t) {
75
- return i(t).getComputedStyle(t);
76
- }
77
- function F(t) {
78
- return m(t) ? {
79
- scrollLeft: t.scrollLeft,
80
- scrollTop: t.scrollTop
81
- } : {
82
- scrollLeft: t.scrollX,
83
- scrollTop: t.scrollY
84
- };
85
- }
86
- function s(t) {
87
- if (u(t) === "html")
88
- return t;
89
- const e = (
90
- // Step into the shadow DOM of the parent of a slotted node.
91
- t.assignedSlot || // DOM Element detected.
92
- t.parentNode || // ShadowRoot detected.
93
- f(t) && t.host || // Fallback.
94
- N(t)
95
- );
96
- return f(e) ? e.host : e;
97
- }
98
- function b(t) {
99
- const e = s(t);
100
- return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
101
- }
102
- function d(t, e, n) {
103
- var o;
104
- e === void 0 && (e = []), n === void 0 && (n = !0);
105
- const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
106
- if (g) {
107
- const a = _(l);
108
- return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
109
- }
110
- return e.concat(r, d(r, [], n));
111
- }
112
- function _(t) {
113
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
114
- }
115
- export {
116
- S as getComputedStyle,
117
- B as getContainingBlock,
118
- N as getDocumentElement,
119
- _ as getFrameElement,
120
- b as getNearestOverflowAncestor,
121
- u as getNodeName,
122
- F as getNodeScroll,
123
- d as getOverflowAncestors,
124
- s as getParentNode,
125
- i as getWindow,
126
- V as isContainingBlock,
127
- m as isElement,
128
- w as isHTMLElement,
129
- h as isLastTraversableNode,
130
- p as isNode,
131
- y as isOverflowElement,
132
- f as isShadowRoot,
133
- A as isTableElement,
134
- L as isTopLayer,
135
- O as isWebKit
136
- };