@indielayer/ui 1.5.1 → 1.5.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.
Files changed (52) hide show
  1. package/docs/components/toolbar/Toolbar.vue +2 -9
  2. package/docs/pages/component/form/usage.vue +16 -19
  3. package/exports/nuxt.plugin.js +9 -2
  4. package/lib/components/accordion/AccordionItem.vue.js +25 -24
  5. package/lib/components/accordion/theme/AccordionItem.base.theme.js +7 -7
  6. package/lib/components/alert/Alert.vue2.js +4 -3
  7. package/lib/components/checkbox/theme/Checkbox.base.theme.js +35 -35
  8. package/lib/components/inputFooter/theme/InputFooter.base.theme.js +1 -1
  9. package/lib/components/label/theme/Label.base.theme.js +1 -1
  10. package/lib/components/notifications/Notifications.vue.js +1 -0
  11. package/lib/components/popover/Popover.vue.d.ts +7 -25
  12. package/lib/components/popover/Popover.vue.js +12 -12
  13. package/lib/components/radio/theme/Radio.base.theme.js +27 -27
  14. package/lib/components/scroll/Scroll.vue2.js +4 -4
  15. package/lib/components/stepper/Stepper.vue.js +35 -34
  16. package/lib/components/tab/Tab.vue.js +7 -6
  17. package/lib/components/table/Table.vue.js +16 -15
  18. package/lib/components/tooltip/Tooltip.vue.js +1 -1
  19. package/lib/create.d.ts +5 -1
  20. package/lib/create.js +18 -15
  21. package/lib/index.js +1 -1
  22. package/lib/index.umd.js +4 -3
  23. package/lib/node_modules/.pnpm/{floating-vue@5.2.0_vue@3.3.9 → floating-vue@5.2.2_vue@3.3.9}/node_modules/floating-vue/dist/floating-vue.js +208 -183
  24. package/lib/nuxt.plugin.js +9 -2
  25. package/lib/themes/base/index.js +2 -2
  26. package/lib/themes/base/styles.d.ts +2 -0
  27. package/{src/themes/base/styles.css → lib/themes/base/styles.js} +5 -1
  28. package/lib/themes/carbon/index.js +2 -2
  29. package/lib/themes/carbon/styles.d.ts +2 -0
  30. package/lib/themes/carbon/{styles.css.js → styles.js} +2 -1
  31. package/lib/version.d.ts +1 -1
  32. package/lib/version.js +1 -1
  33. package/package.json +2 -2
  34. package/src/components/accordion/AccordionItem.vue +1 -0
  35. package/src/components/accordion/theme/AccordionItem.base.theme.ts +2 -2
  36. package/src/components/alert/Alert.vue +1 -1
  37. package/src/components/checkbox/theme/Checkbox.base.theme.ts +5 -3
  38. package/src/components/inputFooter/theme/InputFooter.base.theme.ts +1 -1
  39. package/src/components/label/theme/Label.base.theme.ts +1 -1
  40. package/src/components/notifications/Notifications.vue +1 -0
  41. package/src/components/popover/Popover.vue +2 -2
  42. package/src/components/radio/theme/Radio.base.theme.ts +5 -3
  43. package/src/components/scroll/Scroll.vue +1 -1
  44. package/src/components/stepper/Stepper.vue +1 -0
  45. package/src/components/tab/Tab.vue +1 -0
  46. package/src/components/table/Table.vue +1 -1
  47. package/src/create.ts +11 -4
  48. package/src/themes/base/index.ts +2 -2
  49. package/{lib/themes/base/styles.css.js → src/themes/base/styles.ts} +2 -5
  50. package/src/themes/carbon/index.ts +2 -2
  51. package/src/themes/carbon/{styles.css → styles.ts} +2 -0
  52. package/src/version.ts +1 -1
@@ -1,6 +1,6 @@
1
- import { pushScopeId as he, popScopeId as le, defineComponent as b, nextTick as ue, openBlock as w, createBlock as E, createElementBlock as A, normalizeClass as Q, renderSlot as T, normalizeProps as ce, guardReactiveProps as fe, withScopeId as me, resolveComponent as B, normalizeStyle as C, withKeys as ge, createElementVNode as m, Fragment as we, createCommentVNode as I, mergeProps as ye, withCtx as R, createVNode as ve } from "vue";
2
- import { computePosition as $e, getOverflowAncestors as L } from "../../../../@floating-ui_dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.js";
3
- import { offset as _e, autoPlacement as Se, shift as Te, flip as be, arrow as Pe, size as ze } from "../../../../@floating-ui_core@1.5.3/node_modules/@floating-ui/core/dist/floating-ui.core.js";
1
+ import { pushScopeId as le, popScopeId as ue, defineComponent as b, nextTick as ce, openBlock as w, createBlock as E, createElementBlock as A, normalizeClass as Z, renderSlot as T, normalizeProps as fe, guardReactiveProps as me, withScopeId as ge, resolveComponent as H, normalizeStyle as z, withKeys as we, createElementVNode as m, Fragment as ye, createCommentVNode as L, mergeProps as ve, withCtx as I, createVNode as $e } from "vue";
2
+ import { computePosition as _e, getOverflowAncestors as R } from "../../../../@floating-ui_dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.js";
3
+ import { offset as Se, autoPlacement as Te, shift as be, flip as Pe, arrow as Ce, size as ze } from "../../../../@floating-ui_core@1.5.3/node_modules/@floating-ui/core/dist/floating-ui.core.js";
4
4
  const g = {
5
5
  // Disable popper components
6
6
  disabled: !1,
@@ -32,6 +32,10 @@ const g = {
32
32
  arrowPadding: 0,
33
33
  // Compute arrow overflow (useful to hide it)
34
34
  arrowOverflow: !0,
35
+ /**
36
+ * By default, compute autohide on 'click'.
37
+ */
38
+ autoHideOnMousedown: !1,
35
39
  // Themes
36
40
  themes: {
37
41
  tooltip: {
@@ -76,14 +80,14 @@ const g = {
76
80
  }
77
81
  }
78
82
  };
79
- function H(e, t) {
83
+ function B(e, t) {
80
84
  let i = g.themes[e] || {}, o;
81
85
  do
82
86
  o = i[t], typeof o > "u" ? i.$extend ? i = g.themes[i.$extend] || {} : (i = null, o = g[t]) : i = null;
83
87
  while (i);
84
88
  return o;
85
89
  }
86
- function Ce(e) {
90
+ function Ne(e) {
87
91
  const t = [e];
88
92
  let i = g.themes[e] || {};
89
93
  do
@@ -112,9 +116,9 @@ if (typeof window < "u") {
112
116
  } catch {
113
117
  }
114
118
  }
115
- let X = !1;
116
- typeof window < "u" && typeof navigator < "u" && (X = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
117
- const Ne = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
119
+ let Q = !1;
120
+ typeof window < "u" && typeof navigator < "u" && (Q = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
121
+ const xe = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
118
122
  t,
119
123
  `${t}-start`,
120
124
  `${t}-end`
@@ -140,7 +144,7 @@ function N() {
140
144
  requestAnimationFrame(e);
141
145
  }));
142
146
  }
143
- const l = [];
147
+ const d = [];
144
148
  let f = null;
145
149
  const G = {};
146
150
  function U(e) {
@@ -150,12 +154,12 @@ function U(e) {
150
154
  let O = function() {
151
155
  };
152
156
  typeof window < "u" && (O = window.Element);
153
- function r(e) {
157
+ function n(e) {
154
158
  return function(t) {
155
- return H(t.theme, e);
159
+ return B(t.theme, e);
156
160
  };
157
161
  }
158
- const x = "__floating-vue__popper", Y = () => b({
162
+ const x = "__floating-vue__popper", J = () => b({
159
163
  name: "VPopper",
160
164
  provide() {
161
165
  return {
@@ -198,147 +202,147 @@ const x = "__floating-vue__popper", Y = () => b({
198
202
  },
199
203
  disabled: {
200
204
  type: Boolean,
201
- default: r("disabled")
205
+ default: n("disabled")
202
206
  },
203
207
  positioningDisabled: {
204
208
  type: Boolean,
205
- default: r("positioningDisabled")
209
+ default: n("positioningDisabled")
206
210
  },
207
211
  placement: {
208
212
  type: String,
209
- default: r("placement"),
210
- validator: (e) => Ne.includes(e)
213
+ default: n("placement"),
214
+ validator: (e) => xe.includes(e)
211
215
  },
212
216
  delay: {
213
217
  type: [String, Number, Object],
214
- default: r("delay")
218
+ default: n("delay")
215
219
  },
216
220
  distance: {
217
221
  type: [Number, String],
218
- default: r("distance")
222
+ default: n("distance")
219
223
  },
220
224
  skidding: {
221
225
  type: [Number, String],
222
- default: r("skidding")
226
+ default: n("skidding")
223
227
  },
224
228
  triggers: {
225
229
  type: Array,
226
- default: r("triggers")
230
+ default: n("triggers")
227
231
  },
228
232
  showTriggers: {
229
233
  type: [Array, Function],
230
- default: r("showTriggers")
234
+ default: n("showTriggers")
231
235
  },
232
236
  hideTriggers: {
233
237
  type: [Array, Function],
234
- default: r("hideTriggers")
238
+ default: n("hideTriggers")
235
239
  },
236
240
  popperTriggers: {
237
241
  type: Array,
238
- default: r("popperTriggers")
242
+ default: n("popperTriggers")
239
243
  },
240
244
  popperShowTriggers: {
241
245
  type: [Array, Function],
242
- default: r("popperShowTriggers")
246
+ default: n("popperShowTriggers")
243
247
  },
244
248
  popperHideTriggers: {
245
249
  type: [Array, Function],
246
- default: r("popperHideTriggers")
250
+ default: n("popperHideTriggers")
247
251
  },
248
252
  container: {
249
253
  type: [String, Object, O, Boolean],
250
- default: r("container")
254
+ default: n("container")
251
255
  },
252
256
  boundary: {
253
257
  type: [String, O],
254
- default: r("boundary")
258
+ default: n("boundary")
255
259
  },
256
260
  strategy: {
257
261
  type: String,
258
262
  validator: (e) => ["absolute", "fixed"].includes(e),
259
- default: r("strategy")
263
+ default: n("strategy")
260
264
  },
261
265
  autoHide: {
262
266
  type: [Boolean, Function],
263
- default: r("autoHide")
267
+ default: n("autoHide")
264
268
  },
265
269
  handleResize: {
266
270
  type: Boolean,
267
- default: r("handleResize")
271
+ default: n("handleResize")
268
272
  },
269
273
  instantMove: {
270
274
  type: Boolean,
271
- default: r("instantMove")
275
+ default: n("instantMove")
272
276
  },
273
277
  eagerMount: {
274
278
  type: Boolean,
275
- default: r("eagerMount")
279
+ default: n("eagerMount")
276
280
  },
277
281
  popperClass: {
278
282
  type: [String, Array, Object],
279
- default: r("popperClass")
283
+ default: n("popperClass")
280
284
  },
281
285
  computeTransformOrigin: {
282
286
  type: Boolean,
283
- default: r("computeTransformOrigin")
287
+ default: n("computeTransformOrigin")
284
288
  },
285
289
  /**
286
290
  * @deprecated
287
291
  */
288
292
  autoMinSize: {
289
293
  type: Boolean,
290
- default: r("autoMinSize")
294
+ default: n("autoMinSize")
291
295
  },
292
296
  autoSize: {
293
297
  type: [Boolean, String],
294
- default: r("autoSize")
298
+ default: n("autoSize")
295
299
  },
296
300
  /**
297
301
  * @deprecated
298
302
  */
299
303
  autoMaxSize: {
300
304
  type: Boolean,
301
- default: r("autoMaxSize")
305
+ default: n("autoMaxSize")
302
306
  },
303
307
  autoBoundaryMaxSize: {
304
308
  type: Boolean,
305
- default: r("autoBoundaryMaxSize")
309
+ default: n("autoBoundaryMaxSize")
306
310
  },
307
311
  preventOverflow: {
308
312
  type: Boolean,
309
- default: r("preventOverflow")
313
+ default: n("preventOverflow")
310
314
  },
311
315
  overflowPadding: {
312
316
  type: [Number, String],
313
- default: r("overflowPadding")
317
+ default: n("overflowPadding")
314
318
  },
315
319
  arrowPadding: {
316
320
  type: [Number, String],
317
- default: r("arrowPadding")
321
+ default: n("arrowPadding")
318
322
  },
319
323
  arrowOverflow: {
320
324
  type: Boolean,
321
- default: r("arrowOverflow")
325
+ default: n("arrowOverflow")
322
326
  },
323
327
  flip: {
324
328
  type: Boolean,
325
- default: r("flip")
329
+ default: n("flip")
326
330
  },
327
331
  shift: {
328
332
  type: Boolean,
329
- default: r("shift")
333
+ default: n("shift")
330
334
  },
331
335
  shiftCrossAxis: {
332
336
  type: Boolean,
333
- default: r("shiftCrossAxis")
337
+ default: n("shiftCrossAxis")
334
338
  },
335
339
  noAutoFocus: {
336
340
  type: Boolean,
337
- default: r("noAutoFocus")
341
+ default: n("noAutoFocus")
338
342
  },
339
343
  disposeTimeout: {
340
344
  type: Number,
341
- default: r("disposeTimeout")
345
+ default: n("disposeTimeout")
342
346
  }
343
347
  },
344
348
  emits: {
@@ -380,7 +384,8 @@ const x = "__floating-vue__popper", Y = () => b({
380
384
  lastAutoHide: !0,
381
385
  pendingHide: !1,
382
386
  containsGlobalTarget: !1,
383
- isDisposed: !0
387
+ isDisposed: !0,
388
+ mouseDownContains: !1
384
389
  };
385
390
  },
386
391
  computed: {
@@ -426,10 +431,11 @@ const x = "__floating-vue__popper", Y = () => b({
426
431
  async container() {
427
432
  this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
428
433
  },
429
- ...[
430
- "triggers",
431
- "positioningDisabled"
432
- ].reduce((e, t) => (e[t] = "$_refreshListeners", e), {}),
434
+ triggers: {
435
+ handler: "$_refreshListeners",
436
+ deep: !0
437
+ },
438
+ positioningDisabled: "$_refreshListeners",
433
439
  ...[
434
440
  "placement",
435
441
  "distance",
@@ -499,28 +505,28 @@ const x = "__floating-vue__popper", Y = () => b({
499
505
  strategy: this.strategy,
500
506
  middleware: []
501
507
  };
502
- (this.distance || this.skidding) && e.middleware.push(_e({
508
+ (this.distance || this.skidding) && e.middleware.push(Se({
503
509
  mainAxis: this.distance,
504
510
  crossAxis: this.skidding
505
511
  }));
506
512
  const t = this.placement.startsWith("auto");
507
- if (t ? e.middleware.push(Se({
513
+ if (t ? e.middleware.push(Te({
508
514
  alignment: this.placement.split("-")[1] ?? ""
509
- })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Te({
515
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(be({
510
516
  padding: this.overflowPadding,
511
517
  boundary: this.boundary,
512
518
  crossAxis: this.shiftCrossAxis
513
- })), !t && this.flip && e.middleware.push(be({
519
+ })), !t && this.flip && e.middleware.push(Pe({
514
520
  padding: this.overflowPadding,
515
521
  boundary: this.boundary
516
- }))), e.middleware.push(Pe({
522
+ }))), e.middleware.push(Ce({
517
523
  element: this.$_arrowNode,
518
524
  padding: this.arrowPadding
519
525
  })), this.arrowOverflow && e.middleware.push({
520
526
  name: "arrowOverflow",
521
- fn: ({ placement: o, rects: s, middlewareData: n }) => {
527
+ fn: ({ placement: o, rects: s, middlewareData: r }) => {
522
528
  let a;
523
- const { centerOffset: p } = n.arrow;
529
+ const { centerOffset: p } = r.arrow;
524
530
  return o.startsWith("top") || o.startsWith("bottom") ? a = Math.abs(p) > s.reference.width / 2 : a = Math.abs(p) > s.reference.height / 2, {
525
531
  data: {
526
532
  overflow: a
@@ -531,12 +537,12 @@ const x = "__floating-vue__popper", Y = () => b({
531
537
  const o = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
532
538
  e.middleware.push({
533
539
  name: "autoSize",
534
- fn: ({ rects: s, placement: n, middlewareData: a }) => {
540
+ fn: ({ rects: s, placement: r, middlewareData: a }) => {
535
541
  var p;
536
542
  if ((p = a.autoSize) != null && p.skip)
537
543
  return {};
538
- let d, h;
539
- return n.startsWith("top") || n.startsWith("bottom") ? d = s.reference.width : h = s.reference.height, this.$_innerNode.style[o === "min" ? "minWidth" : o === "max" ? "maxWidth" : "width"] = d != null ? `${d}px` : null, this.$_innerNode.style[o === "min" ? "minHeight" : o === "max" ? "maxHeight" : "height"] = h != null ? `${h}px` : null, {
544
+ let h, l;
545
+ return r.startsWith("top") || r.startsWith("bottom") ? h = s.reference.width : l = s.reference.height, this.$_innerNode.style[o === "min" ? "minWidth" : o === "max" ? "maxWidth" : "width"] = h != null ? `${h}px` : null, this.$_innerNode.style[o === "min" ? "minHeight" : o === "max" ? "maxHeight" : "height"] = l != null ? `${l}px` : null, {
540
546
  data: {
541
547
  skip: !0
542
548
  },
@@ -554,7 +560,7 @@ const x = "__floating-vue__popper", Y = () => b({
554
560
  this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = s != null ? `${s}px` : null;
555
561
  }
556
562
  })));
557
- const i = await $e(this.$_referenceNode, this.$_popperNode, e);
563
+ const i = await _e(this.$_referenceNode, this.$_popperNode, e);
558
564
  Object.assign(this.result, {
559
565
  x: i.x,
560
566
  y: i.y,
@@ -586,8 +592,8 @@ const x = "__floating-vue__popper", Y = () => b({
586
592
  },
587
593
  async $_applyShow(e = !1) {
588
594
  clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await N(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
589
- ...L(this.$_referenceNode),
590
- ...L(this.$_popperNode)
595
+ ...R(this.$_referenceNode),
596
+ ...R(this.$_popperNode)
591
597
  ], "scroll", () => {
592
598
  this.$_computePosition();
593
599
  }));
@@ -596,8 +602,8 @@ const x = "__floating-vue__popper", Y = () => b({
596
602
  if (this.$_hideInProgress)
597
603
  return;
598
604
  if (this.computeTransformOrigin) {
599
- const t = this.$_referenceNode.getBoundingClientRect(), i = this.$_popperNode.querySelector(".v-popper__wrapper"), o = i.parentNode.getBoundingClientRect(), s = t.x + t.width / 2 - (o.left + i.offsetLeft), n = t.y + t.height / 2 - (o.top + i.offsetTop);
600
- this.result.transformOrigin = `${s}px ${n}px`;
605
+ const t = this.$_referenceNode.getBoundingClientRect(), i = this.$_popperNode.querySelector(".v-popper__wrapper"), o = i.parentNode.getBoundingClientRect(), s = t.x + t.width / 2 - (o.left + i.offsetLeft), r = t.y + t.height / 2 - (o.top + i.offsetTop);
606
+ this.result.transformOrigin = `${s}px ${r}px`;
601
607
  }
602
608
  this.isShown = !0, this.$_applyAttrsToTarget({
603
609
  "aria-describedby": this.popperId,
@@ -606,10 +612,10 @@ const x = "__floating-vue__popper", Y = () => b({
606
612
  const e = this.showGroup;
607
613
  if (e) {
608
614
  let t;
609
- for (let i = 0; i < l.length; i++)
610
- t = l[i], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
615
+ for (let i = 0; i < d.length; i++)
616
+ t = d[i], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
611
617
  }
612
- l.push(this), document.body.classList.add("v-popper--some-open");
618
+ d.push(this), document.body.classList.add("v-popper--some-open");
613
619
  for (const t of j(this.theme))
614
620
  U(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
615
621
  this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await N(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
@@ -621,7 +627,7 @@ const x = "__floating-vue__popper", Y = () => b({
621
627
  }
622
628
  if (clearTimeout(this.$_scheduleTimer), !this.isShown)
623
629
  return;
624
- this.skipTransition = e, q(l, this), l.length === 0 && document.body.classList.remove("v-popper--some-open");
630
+ this.skipTransition = e, q(d, this), d.length === 0 && document.body.classList.remove("v-popper--some-open");
625
631
  for (const i of j(this.theme)) {
626
632
  const o = U(i);
627
633
  q(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${i}`);
@@ -662,8 +668,8 @@ const x = "__floating-vue__popper", Y = () => b({
662
668
  } : void 0));
663
669
  },
664
670
  $_registerTriggerListeners(e, t, i, o, s) {
665
- let n = i;
666
- o != null && (n = typeof o == "function" ? o(n) : o), n.forEach((a) => {
671
+ let r = i;
672
+ o != null && (r = typeof o == "function" ? o(r) : o), r.forEach((a) => {
667
673
  const p = t[a];
668
674
  p && this.$_registerEventListeners(e, p, s);
669
675
  });
@@ -671,8 +677,8 @@ const x = "__floating-vue__popper", Y = () => b({
671
677
  $_removeEventListeners(e) {
672
678
  const t = [];
673
679
  this.$_events.forEach((i) => {
674
- const { targetNodes: o, eventType: s, handler: n } = i;
675
- !e || e === s ? o.forEach((a) => a.removeEventListener(s, n)) : t.push(i);
680
+ const { targetNodes: o, eventType: s, handler: r } = i;
681
+ !e || e === s ? o.forEach((a) => a.removeEventListener(s, r)) : t.push(i);
676
682
  }), this.$_events = t;
677
683
  },
678
684
  $_refreshListeners() {
@@ -707,11 +713,11 @@ const x = "__floating-vue__popper", Y = () => b({
707
713
  $_isAimingPopper() {
708
714
  const e = this.$_referenceNode.getBoundingClientRect();
709
715
  if (y >= e.left && y <= e.right && v >= e.top && v <= e.bottom) {
710
- const t = this.$_popperNode.getBoundingClientRect(), i = y - u, o = v - c, s = t.left + t.width / 2 - u + (t.top + t.height / 2) - c + t.width + t.height, n = u + i * s, a = c + o * s;
711
- return _(u, c, n, a, t.left, t.top, t.left, t.bottom) || // Left edge
712
- _(u, c, n, a, t.left, t.top, t.right, t.top) || // Top edge
713
- _(u, c, n, a, t.right, t.top, t.right, t.bottom) || // Right edge
714
- _(u, c, n, a, t.left, t.bottom, t.right, t.bottom);
716
+ const t = this.$_popperNode.getBoundingClientRect(), i = y - u, o = v - c, s = t.left + t.width / 2 - u + (t.top + t.height / 2) - c + t.width + t.height, r = u + i * s, a = c + o * s;
717
+ return _(u, c, r, a, t.left, t.top, t.left, t.bottom) || // Left edge
718
+ _(u, c, r, a, t.left, t.top, t.right, t.top) || // Top edge
719
+ _(u, c, r, a, t.right, t.top, t.right, t.bottom) || // Right edge
720
+ _(u, c, r, a, t.left, t.bottom, t.right, t.bottom);
715
721
  }
716
722
  return !1;
717
723
  }
@@ -720,26 +726,45 @@ const x = "__floating-vue__popper", Y = () => b({
720
726
  return this.$slots.default(this.slotData);
721
727
  }
722
728
  });
723
- typeof document < "u" && typeof window < "u" && (X ? document.addEventListener("touchstart", J, $ ? {
724
- passive: !0,
725
- capture: !0
726
- } : !0) : window.addEventListener("mousedown", J, !0), window.addEventListener("resize", Ae));
727
- function J(e, t = !1) {
729
+ if (typeof document < "u" && typeof window < "u") {
730
+ if (Q) {
731
+ const e = $ ? {
732
+ passive: !0,
733
+ capture: !0
734
+ } : !0;
735
+ document.addEventListener("touchstart", (t) => K(t), e), document.addEventListener("touchend", (t) => X(t, !0), e);
736
+ } else
737
+ window.addEventListener("mousedown", (e) => K(e), !0), window.addEventListener("click", (e) => X(e, !1), !0);
738
+ window.addEventListener("resize", Be);
739
+ }
740
+ function K(e, t) {
741
+ for (let i = 0; i < d.length; i++) {
742
+ const o = d[i];
743
+ try {
744
+ o.mouseDownContains = o.popperNode().contains(e.target);
745
+ } catch {
746
+ }
747
+ }
748
+ }
749
+ function X(e, t) {
750
+ Ae(e, t);
751
+ }
752
+ function Ae(e, t) {
728
753
  const i = {};
729
- for (let o = l.length - 1; o >= 0; o--) {
730
- const s = l[o];
754
+ for (let o = d.length - 1; o >= 0; o--) {
755
+ const s = d[o];
731
756
  try {
732
- const n = s.containsGlobalTarget = s.popperNode().contains(e.target);
757
+ const r = s.containsGlobalTarget = s.mouseDownContains || s.popperNode().contains(e.target);
733
758
  s.pendingHide = !1, requestAnimationFrame(() => {
734
- if (s.pendingHide = !1, !i[s.randomId] && K(s, n, e)) {
735
- if (s.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && n) {
759
+ if (s.pendingHide = !1, !i[s.randomId] && Y(s, r, e)) {
760
+ if (s.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && r) {
736
761
  let p = s.parentPopper;
737
762
  for (; p; )
738
763
  i[p.randomId] = !0, p = p.parentPopper;
739
764
  return;
740
765
  }
741
766
  let a = s.parentPopper;
742
- for (; a && K(a, a.containsGlobalTarget, e); )
767
+ for (; a && Y(a, a.containsGlobalTarget, e); )
743
768
  a.$_handleGlobalClose(e, t), a = a.parentPopper;
744
769
  }
745
770
  });
@@ -747,19 +772,19 @@ function J(e, t = !1) {
747
772
  }
748
773
  }
749
774
  }
750
- function K(e, t, i) {
751
- return i.closeAllPopover || i.closePopover && t || xe(e, i) && !t;
775
+ function Y(e, t, i) {
776
+ return i.closeAllPopover || i.closePopover && t || He(e, i) && !t;
752
777
  }
753
- function xe(e, t) {
778
+ function He(e, t) {
754
779
  if (typeof e.autoHide == "function") {
755
780
  const i = e.autoHide(t);
756
781
  return e.lastAutoHide = i, i;
757
782
  }
758
783
  return e.autoHide;
759
784
  }
760
- function Ae() {
761
- for (let e = 0; e < l.length; e++)
762
- l[e].$_computePosition();
785
+ function Be() {
786
+ for (let e = 0; e < d.length; e++)
787
+ d[e].$_computePosition();
763
788
  }
764
789
  let u = 0, c = 0, y = 0, v = 0;
765
790
  typeof window < "u" && window.addEventListener("mousemove", (e) => {
@@ -767,30 +792,30 @@ typeof window < "u" && window.addEventListener("mousemove", (e) => {
767
792
  }, $ ? {
768
793
  passive: !0
769
794
  } : void 0);
770
- function _(e, t, i, o, s, n, a, p) {
771
- const d = ((a - s) * (t - n) - (p - n) * (e - s)) / ((p - n) * (i - e) - (a - s) * (o - t)), h = ((i - e) * (t - n) - (o - t) * (e - s)) / ((p - n) * (i - e) - (a - s) * (o - t));
772
- return d >= 0 && d <= 1 && h >= 0 && h <= 1;
795
+ function _(e, t, i, o, s, r, a, p) {
796
+ const h = ((a - s) * (t - r) - (p - r) * (e - s)) / ((p - r) * (i - e) - (a - s) * (o - t)), l = ((i - e) * (t - r) - (o - t) * (e - s)) / ((p - r) * (i - e) - (a - s) * (o - t));
797
+ return h >= 0 && h <= 1 && l >= 0 && l <= 1;
773
798
  }
774
- const Be = {
775
- extends: Y()
799
+ const Oe = {
800
+ extends: J()
776
801
  }, D = (e, t) => {
777
802
  const i = e.__vccOpts || e;
778
803
  for (const [o, s] of t)
779
804
  i[o] = s;
780
805
  return i;
781
806
  };
782
- function He(e, t, i, o, s, n) {
807
+ function ke(e, t, i, o, s, r) {
783
808
  return w(), A("div", {
784
809
  ref: "reference",
785
- class: Q(["v-popper", {
810
+ class: Z(["v-popper", {
786
811
  "v-popper--shown": e.slotData.isShown
787
812
  }])
788
813
  }, [
789
- T(e.$slots, "default", ce(fe(e.slotData)))
814
+ T(e.$slots, "default", fe(me(e.slotData)))
790
815
  ], 2);
791
816
  }
792
- const Oe = /* @__PURE__ */ D(Be, [["render", He]]);
793
- function ke() {
817
+ const Me = /* @__PURE__ */ D(Oe, [["render", ke]]);
818
+ function Ee() {
794
819
  var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
795
820
  if (t > 0)
796
821
  return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
@@ -804,7 +829,7 @@ function ke() {
804
829
  }
805
830
  let S;
806
831
  function k() {
807
- k.init || (k.init = !0, S = ke() !== -1);
832
+ k.init || (k.init = !0, S = Ee() !== -1);
808
833
  }
809
834
  var P = {
810
835
  name: "ResizeObserver",
@@ -826,7 +851,7 @@ var P = {
826
851
  "notify"
827
852
  ],
828
853
  mounted() {
829
- k(), ue(() => {
854
+ k(), ce(() => {
830
855
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
831
856
  });
832
857
  const e = document.createElement("object");
@@ -853,30 +878,30 @@ var P = {
853
878
  }
854
879
  }
855
880
  };
856
- const Me = /* @__PURE__ */ me("data-v-b329ee4c");
857
- he("data-v-b329ee4c");
858
- const Ee = {
881
+ const De = /* @__PURE__ */ ge("data-v-b329ee4c");
882
+ le("data-v-b329ee4c");
883
+ const Fe = {
859
884
  class: "resize-observer",
860
885
  tabindex: "-1"
861
886
  };
862
- le();
863
- const De = /* @__PURE__ */ Me((e, t, i, o, s, n) => (w(), E("div", Ee)));
864
- P.render = De;
887
+ ue();
888
+ const Le = /* @__PURE__ */ De((e, t, i, o, s, r) => (w(), E("div", Fe)));
889
+ P.render = Le;
865
890
  P.__scopeId = "data-v-b329ee4c";
866
891
  P.__file = "src/components/ResizeObserver.vue";
867
- const Z = (e = "theme") => ({
892
+ const ee = (e = "theme") => ({
868
893
  computed: {
869
894
  themeClass() {
870
- return Ce(this[e]);
895
+ return Ne(this[e]);
871
896
  }
872
897
  }
873
- }), Fe = b({
898
+ }), Ie = b({
874
899
  name: "VPopperContent",
875
900
  components: {
876
901
  ResizeObserver: P
877
902
  },
878
903
  mixins: [
879
- Z()
904
+ ee()
880
905
  ],
881
906
  props: {
882
907
  popperId: String,
@@ -898,19 +923,19 @@ const Z = (e = "theme") => ({
898
923
  return e != null && !isNaN(e) ? `${e}px` : null;
899
924
  }
900
925
  }
901
- }), Ie = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Re = {
926
+ }), Re = ["id", "aria-hidden", "tabindex", "data-popper-placement"], je = {
902
927
  ref: "inner",
903
928
  class: "v-popper__inner"
904
- }, Le = /* @__PURE__ */ m("div", { class: "v-popper__arrow-outer" }, null, -1), je = /* @__PURE__ */ m("div", { class: "v-popper__arrow-inner" }, null, -1), We = [
905
- Le,
906
- je
929
+ }, We = /* @__PURE__ */ m("div", { class: "v-popper__arrow-outer" }, null, -1), Ve = /* @__PURE__ */ m("div", { class: "v-popper__arrow-inner" }, null, -1), qe = [
930
+ We,
931
+ Ve
907
932
  ];
908
- function Ve(e, t, i, o, s, n) {
909
- const a = B("ResizeObserver");
933
+ function Ge(e, t, i, o, s, r) {
934
+ const a = H("ResizeObserver");
910
935
  return w(), A("div", {
911
936
  id: e.popperId,
912
937
  ref: "popover",
913
- class: Q(["v-popper__popper", [
938
+ class: Z(["v-popper__popper", [
914
939
  e.themeClass,
915
940
  e.classes.popperClass,
916
941
  {
@@ -925,14 +950,14 @@ function Ve(e, t, i, o, s, n) {
925
950
  "v-popper__popper--no-positioning": !e.result
926
951
  }
927
952
  ]]),
928
- style: C(e.result ? {
953
+ style: z(e.result ? {
929
954
  position: e.result.strategy,
930
955
  transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
931
956
  } : void 0),
932
957
  "aria-hidden": e.shown ? "false" : "true",
933
958
  tabindex: e.autoHide ? 0 : void 0,
934
959
  "data-popper-placement": e.result ? e.result.placement : void 0,
935
- onKeyup: t[2] || (t[2] = ge((p) => e.autoHide && e.$emit("hide"), ["esc"]))
960
+ onKeyup: t[2] || (t[2] = we((p) => e.autoHide && e.$emit("hide"), ["esc"]))
936
961
  }, [
937
962
  m("div", {
938
963
  class: "v-popper__backdrop",
@@ -940,33 +965,33 @@ function Ve(e, t, i, o, s, n) {
940
965
  }),
941
966
  m("div", {
942
967
  class: "v-popper__wrapper",
943
- style: C(e.result ? {
968
+ style: z(e.result ? {
944
969
  transformOrigin: e.result.transformOrigin
945
970
  } : void 0)
946
971
  }, [
947
- m("div", Re, [
948
- e.mounted ? (w(), A(we, { key: 0 }, [
972
+ m("div", je, [
973
+ e.mounted ? (w(), A(ye, { key: 0 }, [
949
974
  m("div", null, [
950
975
  T(e.$slots, "default")
951
976
  ]),
952
977
  e.handleResize ? (w(), E(a, {
953
978
  key: 0,
954
979
  onNotify: t[1] || (t[1] = (p) => e.$emit("resize", p))
955
- })) : I("", !0)
956
- ], 64)) : I("", !0)
980
+ })) : L("", !0)
981
+ ], 64)) : L("", !0)
957
982
  ], 512),
958
983
  m("div", {
959
984
  ref: "arrow",
960
985
  class: "v-popper__arrow-container",
961
- style: C(e.result ? {
986
+ style: z(e.result ? {
962
987
  left: e.toPx(e.result.arrow.x),
963
988
  top: e.toPx(e.result.arrow.y)
964
989
  } : void 0)
965
- }, We, 4)
990
+ }, qe, 4)
966
991
  ], 4)
967
- ], 46, Ie);
992
+ ], 46, Re);
968
993
  }
969
- const ee = /* @__PURE__ */ D(Fe, [["render", Ve]]), te = {
994
+ const te = /* @__PURE__ */ D(Ie, [["render", Ge]]), ie = {
970
995
  methods: {
971
996
  show(...e) {
972
997
  return this.$refs.popper.show(...e);
@@ -985,15 +1010,15 @@ const ee = /* @__PURE__ */ D(Fe, [["render", Ve]]), te = {
985
1010
  let M = function() {
986
1011
  };
987
1012
  typeof window < "u" && (M = window.Element);
988
- const qe = b({
1013
+ const Ue = b({
989
1014
  name: "VPopperWrapper",
990
1015
  components: {
991
- Popper: Oe,
992
- PopperContent: ee
1016
+ Popper: Me,
1017
+ PopperContent: te
993
1018
  },
994
1019
  mixins: [
995
- te,
996
- Z("finalTheme")
1020
+ ie,
1021
+ ee("finalTheme")
997
1022
  ],
998
1023
  props: {
999
1024
  theme: {
@@ -1181,9 +1206,9 @@ const qe = b({
1181
1206
  }
1182
1207
  }
1183
1208
  });
1184
- function Ge(e, t, i, o, s, n) {
1185
- const a = B("PopperContent"), p = B("Popper");
1186
- return w(), E(p, ye({ ref: "popper" }, e.$props, {
1209
+ function Ke(e, t, i, o, s, r) {
1210
+ const a = H("PopperContent"), p = H("Popper");
1211
+ return w(), E(p, ve({ ref: "popper" }, e.$props, {
1187
1212
  theme: e.finalTheme,
1188
1213
  "target-nodes": e.getTargetNodes,
1189
1214
  "popper-node": () => e.$refs.popperContent.$el,
@@ -1192,7 +1217,7 @@ function Ge(e, t, i, o, s, n) {
1192
1217
  ],
1193
1218
  onShow: t[0] || (t[0] = () => e.$emit("show")),
1194
1219
  onHide: t[1] || (t[1] = () => e.$emit("hide")),
1195
- "onUpdate:shown": t[2] || (t[2] = (d) => e.$emit("update:shown", d)),
1220
+ "onUpdate:shown": t[2] || (t[2] = (h) => e.$emit("update:shown", h)),
1196
1221
  onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
1197
1222
  onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
1198
1223
  onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
@@ -1200,42 +1225,42 @@ function Ge(e, t, i, o, s, n) {
1200
1225
  onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
1201
1226
  onResize: t[8] || (t[8] = () => e.$emit("resize"))
1202
1227
  }), {
1203
- default: R(({
1204
- popperId: d,
1205
- isShown: h,
1206
- shouldMountContent: ie,
1207
- skipTransition: oe,
1208
- autoHide: se,
1228
+ default: I(({
1229
+ popperId: h,
1230
+ isShown: l,
1231
+ shouldMountContent: oe,
1232
+ skipTransition: se,
1233
+ autoHide: ne,
1209
1234
  show: re,
1210
- hide: z,
1211
- handleResize: ne,
1212
- onResize: ae,
1213
- classes: pe,
1214
- result: de
1235
+ hide: C,
1236
+ handleResize: ae,
1237
+ onResize: pe,
1238
+ classes: de,
1239
+ result: he
1215
1240
  }) => [
1216
1241
  T(e.$slots, "default", {
1217
- shown: h,
1242
+ shown: l,
1218
1243
  show: re,
1219
- hide: z
1244
+ hide: C
1220
1245
  }),
1221
- ve(a, {
1246
+ $e(a, {
1222
1247
  ref: "popperContent",
1223
- "popper-id": d,
1248
+ "popper-id": h,
1224
1249
  theme: e.finalTheme,
1225
- shown: h,
1226
- mounted: ie,
1227
- "skip-transition": oe,
1228
- "auto-hide": se,
1229
- "handle-resize": ne,
1230
- classes: pe,
1231
- result: de,
1232
- onHide: z,
1233
- onResize: ae
1250
+ shown: l,
1251
+ mounted: oe,
1252
+ "skip-transition": se,
1253
+ "auto-hide": ne,
1254
+ "handle-resize": ae,
1255
+ classes: de,
1256
+ result: he,
1257
+ onHide: C,
1258
+ onResize: pe
1234
1259
  }, {
1235
- default: R(() => [
1260
+ default: I(() => [
1236
1261
  T(e.$slots, "popper", {
1237
- shown: h,
1238
- hide: z
1262
+ shown: l,
1263
+ hide: C
1239
1264
  })
1240
1265
  ]),
1241
1266
  _: 2
@@ -1244,7 +1269,7 @@ function Ge(e, t, i, o, s, n) {
1244
1269
  _: 3
1245
1270
  }, 16, ["theme", "target-nodes", "popper-node", "class"]);
1246
1271
  }
1247
- const F = /* @__PURE__ */ D(qe, [["render", Ge]]), Ue = {
1272
+ const F = /* @__PURE__ */ D(Ue, [["render", Ke]]), Xe = {
1248
1273
  ...F,
1249
1274
  name: "VDropdown",
1250
1275
  vPopperTheme: "dropdown"
@@ -1258,11 +1283,11 @@ const F = /* @__PURE__ */ D(qe, [["render", Ge]]), Ue = {
1258
1283
  b({
1259
1284
  name: "VTooltipDirective",
1260
1285
  components: {
1261
- Popper: Y(),
1262
- PopperContent: ee
1286
+ Popper: J(),
1287
+ PopperContent: te
1263
1288
  },
1264
1289
  mixins: [
1265
- te
1290
+ ie
1266
1291
  ],
1267
1292
  inheritAttrs: !1,
1268
1293
  props: {
@@ -1272,7 +1297,7 @@ b({
1272
1297
  },
1273
1298
  html: {
1274
1299
  type: Boolean,
1275
- default: (e) => H(e.theme, "html")
1300
+ default: (e) => B(e.theme, "html")
1276
1301
  },
1277
1302
  content: {
1278
1303
  type: [String, Number, Function],
@@ -1280,7 +1305,7 @@ b({
1280
1305
  },
1281
1306
  loadingContent: {
1282
1307
  type: String,
1283
- default: (e) => H(e.theme, "loadingContent")
1308
+ default: (e) => B(e.theme, "loadingContent")
1284
1309
  },
1285
1310
  targetNodes: {
1286
1311
  type: Function,
@@ -1336,11 +1361,11 @@ b({
1336
1361
  }
1337
1362
  }
1338
1363
  });
1339
- const Xe = Ue;
1364
+ const Je = Xe;
1340
1365
  export {
1341
- Xe as Dropdown,
1366
+ Je as Dropdown,
1342
1367
  V as HIDE_EVENT_MAP,
1343
1368
  W as SHOW_EVENT_MAP,
1344
- Ne as placements,
1345
- Ae as recomputeAllPoppers
1369
+ xe as placements,
1370
+ Be as recomputeAllPoppers
1346
1371
  };