@quoreadmin/ui 1.4.4 → 1.4.5

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 (164) hide show
  1. package/dist/index165.js +3 -3
  2. package/dist/index168.js +4 -4
  3. package/dist/index175.js +10 -10
  4. package/dist/index177.js +10 -10
  5. package/dist/index181.js +17 -17
  6. package/dist/index184.js +9 -9
  7. package/dist/index185.js +1 -1
  8. package/dist/index186.js +1 -1
  9. package/dist/index187.js +1 -1
  10. package/dist/index195.js +4 -4
  11. package/dist/index199.js +2 -2
  12. package/dist/index200.js +1 -1
  13. package/dist/index201.js +1 -1
  14. package/dist/index202.js +1 -1
  15. package/dist/index203.js +1 -1
  16. package/dist/index204.js +4 -4
  17. package/dist/index206.js +4 -4
  18. package/dist/index209.js +1 -1
  19. package/dist/index210.js +83 -156
  20. package/dist/index211.js +407 -20
  21. package/dist/index212.js +22 -20
  22. package/dist/index213.js +126 -21
  23. package/dist/index214.js +22 -183
  24. package/dist/index215.js +79 -69
  25. package/dist/index216.js +19 -87
  26. package/dist/index217.js +20 -407
  27. package/dist/index218.js +20 -34
  28. package/dist/index219.js +19 -39
  29. package/dist/index220.js +19 -160
  30. package/dist/index221.js +157 -224
  31. package/dist/index222.js +222 -31
  32. package/dist/index223.js +37 -10
  33. package/dist/index224.js +10 -22
  34. package/dist/index225.js +155 -121
  35. package/dist/index226.js +19 -37
  36. package/dist/index227.js +22 -80
  37. package/dist/index228.js +198 -19
  38. package/dist/index229.js +68 -18
  39. package/dist/index230.js +34 -20
  40. package/dist/index231.js +39 -19
  41. package/dist/index232.js +1 -1
  42. package/dist/index233.js +1 -1
  43. package/dist/index234.js +1 -1
  44. package/dist/index235.js +8 -8
  45. package/dist/index236.js +2 -2
  46. package/dist/index237.js +1 -1
  47. package/dist/index238.js +1 -1
  48. package/dist/index239.js +1 -1
  49. package/dist/index240.js +1 -1
  50. package/dist/index242.js +2 -2
  51. package/dist/index243.js +2 -2
  52. package/dist/index244.js +8 -8
  53. package/dist/index245.js +1 -1
  54. package/dist/index246.js +1 -1
  55. package/dist/index247.js +1 -1
  56. package/dist/index248.js +1 -1
  57. package/dist/index249.js +1 -1
  58. package/dist/index250.js +1 -1
  59. package/dist/index253.js +6 -6
  60. package/dist/index254.js +1 -1
  61. package/dist/index255.js +1 -1
  62. package/dist/index268.js +2 -2
  63. package/dist/index269.js +249 -50
  64. package/dist/index270.js +8 -79
  65. package/dist/index271.js +138 -26
  66. package/dist/index272.js +83 -22
  67. package/dist/index273.js +3 -22
  68. package/dist/index274.js +27 -16
  69. package/dist/index275.js +2 -17
  70. package/dist/index276.js +58 -232
  71. package/dist/index277.js +235 -8
  72. package/dist/index278.js +5 -137
  73. package/dist/index279.js +128 -77
  74. package/dist/index280.js +67 -22
  75. package/dist/index281.js +87 -2
  76. package/dist/index282.js +29 -3
  77. package/dist/index283.js +8 -26
  78. package/dist/index284.js +69 -229
  79. package/dist/index285.js +3 -5
  80. package/dist/index286.js +2 -134
  81. package/dist/index287.js +79 -64
  82. package/dist/index288.js +51 -84
  83. package/dist/index289.js +5 -28
  84. package/dist/index290.js +4 -8
  85. package/dist/index291.js +173 -69
  86. package/dist/index292.js +62 -3
  87. package/dist/index293.js +75 -2
  88. package/dist/index294.js +49 -78
  89. package/dist/index295.js +25 -53
  90. package/dist/index296.js +21 -5
  91. package/dist/index297.js +21 -4
  92. package/dist/index298.js +15 -178
  93. package/dist/index299.js +16 -62
  94. package/dist/index300.js +22 -74
  95. package/dist/index301.js +1518 -79
  96. package/dist/index302.js +386 -22
  97. package/dist/index303.js +2698 -902
  98. package/dist/index304.js +85 -21
  99. package/dist/index305.js +3770 -20
  100. package/dist/index306.js +59 -19
  101. package/dist/index307.js +15 -69
  102. package/dist/index308.js +84 -19
  103. package/dist/index309.js +201 -18
  104. package/dist/index310.js +246 -22
  105. package/dist/index311.js +78 -21
  106. package/dist/index312.js +22 -63
  107. package/dist/index313.js +909 -1492
  108. package/dist/index314.js +22 -386
  109. package/dist/index315.js +20 -2731
  110. package/dist/index316.js +19 -85
  111. package/dist/index317.js +58 -3759
  112. package/dist/index318.js +19 -60
  113. package/dist/index319.js +19 -15
  114. package/dist/index320.js +21 -83
  115. package/dist/index321.js +22 -202
  116. package/dist/index322.js +63 -246
  117. package/dist/index323.js +8 -36
  118. package/dist/index324.js +12 -8
  119. package/dist/index325.js +54 -12
  120. package/dist/index326.js +9 -52
  121. package/dist/index327.js +13 -11
  122. package/dist/index328.js +53 -9
  123. package/dist/index329.js +49 -55
  124. package/dist/index330.js +28 -49
  125. package/dist/index331.js +2 -31
  126. package/dist/index332.js +5 -2
  127. package/dist/index333.js +2 -5
  128. package/dist/index334.js +23 -2
  129. package/dist/index335.js +39 -21
  130. package/dist/index336.js +2 -41
  131. package/dist/index337.js +11 -2
  132. package/dist/index338.js +20 -11
  133. package/dist/index339.js +15 -18
  134. package/dist/index340.js +9 -16
  135. package/dist/index341.js +9 -9
  136. package/dist/index342.js +2 -10
  137. package/dist/index343.js +9 -2
  138. package/dist/index344.js +10 -9
  139. package/dist/index345.js +14 -10
  140. package/dist/index346.js +37 -14
  141. package/dist/index347.js +1 -1
  142. package/dist/index348.js +1 -1
  143. package/dist/index349.js +5 -5
  144. package/dist/index351.js +2 -2
  145. package/dist/index353.js +2 -2
  146. package/dist/index355.js +1 -1
  147. package/dist/index357.js +4 -4
  148. package/dist/index358.js +3 -3
  149. package/dist/index359.js +1 -1
  150. package/dist/index360.js +1 -1
  151. package/dist/index361.js +2 -2
  152. package/dist/index362.js +1 -1
  153. package/dist/index363.js +1 -1
  154. package/dist/index364.js +3 -3
  155. package/dist/index369.js +1 -1
  156. package/dist/index371.js +1 -1
  157. package/dist/index372.js +3 -3
  158. package/dist/index373.js +3 -3
  159. package/dist/index375.js +100 -16
  160. package/dist/index376.js +90 -100
  161. package/dist/index377.js +98 -91
  162. package/dist/index378.js +16 -97
  163. package/dist/index385.js +1 -1
  164. package/package.json +3 -3
package/dist/index165.js CHANGED
@@ -1,7 +1,7 @@
1
- import g from "./index216.js";
1
+ import g from "./index210.js";
2
2
  import { DomHandler as f, ObjectUtils as d } from "./index162.js";
3
- import v from "./index217.js";
4
- import S from "./index224.js";
3
+ import v from "./index211.js";
4
+ import S from "./index212.js";
5
5
  import { resolveDirective as A, createElementBlock as h, openBlock as p, mergeProps as b, Fragment as E, renderList as O, withDirectives as w, renderSlot as x, normalizeClass as K, createElementVNode as I, toDisplayString as D } from "vue";
6
6
  var V = {
7
7
  name: "BaseSelectButton",
package/dist/index168.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { createVNode as s, ref as k, watchEffect as Y, onMounted as me, watch as nt, computed as A, toRef as at, inject as ge, shallowRef as lt, defineComponent as ot, provide as ye, onUnmounted as rt, isVNode as st, Teleport as it, Transition as ut, createElementBlock as be, openBlock as we, createElementVNode as Z, h as Ye } from "vue";
2
- import { format as Ce } from "./index220.js";
3
- import { parse as ct } from "./index221.js";
4
- import { getWeek as Ie } from "./index222.js";
5
- import dt from "./index223.js";
2
+ import { format as Ce } from "./index221.js";
3
+ import { parse as ct } from "./index222.js";
4
+ import { getWeek as Ie } from "./index223.js";
5
+ import dt from "./index224.js";
6
6
  var ft = Object.defineProperty, pt = Object.defineProperties, vt = Object.getOwnPropertyDescriptors, le = Object.getOwnPropertySymbols, Ue = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable, Se = (t, e, n) => e in t ? ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, M = (t, e) => {
7
7
  for (var n in e || (e = {}))
8
8
  Ue.call(e, n) && Se(t, n, e[n]);
package/dist/index175.js CHANGED
@@ -1,14 +1,14 @@
1
- import A from "./index210.js";
2
- import O from "./index211.js";
3
- import V from "./index212.js";
4
- import R from "./index213.js";
5
- import j from "./index214.js";
6
- import K from "./index215.js";
7
- import H from "./index216.js";
1
+ import A from "./index225.js";
2
+ import O from "./index226.js";
3
+ import V from "./index216.js";
4
+ import R from "./index227.js";
5
+ import j from "./index228.js";
6
+ import K from "./index229.js";
7
+ import H from "./index210.js";
8
8
  import { DomHandler as w } from "./index162.js";
9
- import W from "./index217.js";
10
- import G from "./index218.js";
11
- import Y from "./index219.js";
9
+ import W from "./index211.js";
10
+ import G from "./index230.js";
11
+ import Y from "./index231.js";
12
12
  import { resolveComponent as y, createElementBlock as f, openBlock as o, Fragment as U, renderList as E, mergeProps as r, createElementVNode as h, createVNode as L, toDisplayString as F, normalizeClass as B, withCtx as C, createBlock as m, resolveDynamicComponent as b, resolveDirective as Z, createCommentVNode as v, renderSlot as g, withDirectives as M, withKeys as T, createTextVNode as z } from "vue";
13
13
  var q = {
14
14
  name: "BaseFileUpload",
package/dist/index177.js CHANGED
@@ -1,15 +1,15 @@
1
- import q from "./index225.js";
2
- import X from "./index226.js";
1
+ import q from "./index213.js";
2
+ import X from "./index214.js";
3
3
  import { ZIndexUtils as T, DomHandler as c, UniqueComponentId as k, ObjectUtils as $ } from "./index162.js";
4
- import O from "./index217.js";
5
- import Y from "./index227.js";
6
- import J from "./index212.js";
7
- import L from "./index216.js";
8
- import H from "./index228.js";
9
- import M from "./index229.js";
4
+ import O from "./index211.js";
5
+ import Y from "./index215.js";
6
+ import J from "./index216.js";
7
+ import L from "./index210.js";
8
+ import H from "./index217.js";
9
+ import M from "./index218.js";
10
10
  import { resolveDirective as C, createElementBlock as d, openBlock as s, mergeProps as l, createElementVNode as b, createCommentVNode as h, withDirectives as y, createBlock as f, resolveDynamicComponent as p, Fragment as U, renderList as G, resolveComponent as A, createVNode as z, withCtx as D, Transition as Q } from "vue";
11
- import ee from "./index230.js";
12
- import te from "./index231.js";
11
+ import ee from "./index219.js";
12
+ import te from "./index220.js";
13
13
  var ie = {
14
14
  name: "BaseGalleria",
15
15
  extends: O,
package/dist/index181.js CHANGED
@@ -1,20 +1,20 @@
1
- import a from "./index284.js";
2
- import p from "./index285.js";
3
- import m from "./index286.js";
4
- import i from "./index287.js";
5
- import f from "./index288.js";
6
- import l from "./index289.js";
7
- import c from "./index290.js";
8
- import d from "./index291.js";
9
- import u from "./index292.js";
10
- import { VERSION as x } from "./index293.js";
11
- import C from "./index294.js";
12
- import A from "./index295.js";
13
- import E from "./index296.js";
14
- import O from "./index297.js";
15
- import S from "./index298.js";
16
- import H from "./index299.js";
17
- import T from "./index300.js";
1
+ import a from "./index277.js";
2
+ import p from "./index278.js";
3
+ import m from "./index279.js";
4
+ import i from "./index280.js";
5
+ import f from "./index281.js";
6
+ import l from "./index282.js";
7
+ import c from "./index283.js";
8
+ import d from "./index284.js";
9
+ import u from "./index285.js";
10
+ import { VERSION as x } from "./index286.js";
11
+ import C from "./index287.js";
12
+ import A from "./index288.js";
13
+ import E from "./index289.js";
14
+ import O from "./index290.js";
15
+ import S from "./index291.js";
16
+ import H from "./index292.js";
17
+ import T from "./index293.js";
18
18
  function n(o) {
19
19
  const t = new m(o), e = p(m.prototype.request, t);
20
20
  return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
package/dist/index184.js CHANGED
@@ -5,27 +5,27 @@ import at from "./index234.js";
5
5
  import ut from "./index235.js";
6
6
  import { ObjectUtils as b, UniqueComponentId as X, DomHandler as m, HelperSet as W, ConnectedOverlayScrollHandler as st, ZIndexUtils as ce } from "./index162.js";
7
7
  import dt from "./index236.js";
8
- import F from "./index217.js";
8
+ import F from "./index211.js";
9
9
  import ct from "./index237.js";
10
- import We from "./index230.js";
11
- import Ue from "./index229.js";
10
+ import We from "./index219.js";
11
+ import Ue from "./index218.js";
12
12
  import { mergeProps as f, resolveComponent as R, createBlock as w, openBlock as u, withCtx as k, createCommentVNode as v, resolveDynamicComponent as C, normalizeClass as S, resolveDirective as qe, createElementBlock as p, withDirectives as q, toDisplayString as H, Fragment as P, createTextVNode as Xe, createElementVNode as T, withModifiers as Je, renderList as B, createVNode as z, normalizeProps as ue, guardReactiveProps as fe, Transition as ft, withKeys as me, renderSlot as O, createSlots as Ce } from "vue";
13
13
  import mt from "./index238.js";
14
14
  import pe from "./index239.js";
15
15
  import ht from "./index240.js";
16
- import pt from "./index212.js";
16
+ import pt from "./index216.js";
17
17
  import K from "./index241.js";
18
- import gt from "./index216.js";
18
+ import gt from "./index210.js";
19
19
  import Ze from "./index242.js";
20
20
  import yt from "./index243.js";
21
- import wt from "./index210.js";
21
+ import wt from "./index225.js";
22
22
  import vt from "./index244.js";
23
- import bt from "./index225.js";
23
+ import bt from "./index213.js";
24
24
  import Ct from "./index245.js";
25
25
  import Rt from "./index246.js";
26
- import St from "./index211.js";
26
+ import St from "./index226.js";
27
27
  import Pt from "./index247.js";
28
- import Et from "./index226.js";
28
+ import Et from "./index214.js";
29
29
  import Re from "./index248.js";
30
30
  import Se from "./index249.js";
31
31
  import Pe from "./index250.js";
package/dist/index185.js CHANGED
@@ -1,4 +1,4 @@
1
- import l from "./index217.js";
1
+ import l from "./index211.js";
2
2
  import n from "./index251.js";
3
3
  var u = {
4
4
  name: "BaseColumn",
package/dist/index186.js CHANGED
@@ -1,4 +1,4 @@
1
- import r from "./index217.js";
1
+ import r from "./index211.js";
2
2
  import e from "./index252.js";
3
3
  var o = {
4
4
  name: "BaseColumnGroup",
package/dist/index187.js CHANGED
@@ -1,4 +1,4 @@
1
- import r from "./index217.js";
1
+ import r from "./index211.js";
2
2
  var o = {
3
3
  name: "Row",
4
4
  extends: r,
package/dist/index195.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Extension as u, isNodeEmpty as w, callOrReturn as v, getExtensionField as S, isNodeSelection as P } from "./index253.js";
2
2
  import { Plugin as p, PluginKey as m } from "./index268.js";
3
- import { dropCursor as z } from "./index320.js";
4
- import { Decoration as g, DecorationSet as f } from "./index317.js";
5
- import { gapCursor as N } from "./index321.js";
6
- import { history as E, redo as M, undo as O } from "./index322.js";
3
+ import { dropCursor as z } from "./index308.js";
4
+ import { Decoration as g, DecorationSet as f } from "./index305.js";
5
+ import { gapCursor as N } from "./index309.js";
6
+ import { history as E, redo as M, undo as O } from "./index310.js";
7
7
  u.create({
8
8
  name: "characterCount",
9
9
  addOptions() {
package/dist/index199.js CHANGED
@@ -1,5 +1,5 @@
1
- import { onNextFrame as p, defaultTimestep as i } from "./index282.js";
2
- import { createRenderStep as x } from "./index283.js";
1
+ import { onNextFrame as p, defaultTimestep as i } from "./index273.js";
2
+ import { createRenderStep as x } from "./index274.js";
3
3
  const h = 40;
4
4
  let o = !0, s = !1, c = !1;
5
5
  const r = {
package/dist/index200.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { color as m } from "./index204.js";
2
2
  import { number as b } from "./index201.js";
3
- import { isString as g, floatRegex as c, colorRegex as l, sanitize as k } from "./index345.js";
3
+ import { isString as g, floatRegex as c, colorRegex as l, sanitize as k } from "./index344.js";
4
4
  const i = "${c}", p = "${n}";
5
5
  function x(e) {
6
6
  var o, n, r, t;
package/dist/index201.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as a } from "./index345.js";
1
+ import { clamp as a } from "./index344.js";
2
2
  const t = {
3
3
  test: (s) => typeof s == "number",
4
4
  parse: parseFloat,
package/dist/index202.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { complex as s } from "./index200.js";
2
- import { floatRegex as i } from "./index345.js";
2
+ import { floatRegex as i } from "./index344.js";
3
3
  const c = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
4
4
  function l(t) {
5
5
  let [e, n] = t.slice(0, -1).split("(");
package/dist/index203.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isString as n } from "./index345.js";
1
+ import { isString as n } from "./index344.js";
2
2
  const r = (e) => ({
3
3
  test: (s) => n(s) && s.endsWith(e) && s.split(" ").length === 1,
4
4
  parse: parseFloat,
package/dist/index204.js CHANGED
@@ -1,7 +1,7 @@
1
- import { isString as o } from "./index345.js";
2
- import { hex as s } from "./index340.js";
3
- import { hsla as t } from "./index342.js";
4
- import { rgba as e } from "./index341.js";
1
+ import { isString as o } from "./index344.js";
2
+ import { hex as s } from "./index339.js";
3
+ import { hsla as t } from "./index341.js";
4
+ import { rgba as e } from "./index340.js";
5
5
  const f = {
6
6
  test: (r) => e.test(r) || s.test(r) || t.test(r),
7
7
  parse: (r) => e.test(r) ? e.parse(r) : t.test(r) ? t.parse(r) : s.parse(r),
package/dist/index206.js CHANGED
@@ -1,8 +1,8 @@
1
- import { __rest as M } from "./index324.js";
2
- import { detectAnimationFromOptions as U } from "./index325.js";
1
+ import { __rest as M } from "./index323.js";
2
+ import { detectAnimationFromOptions as U } from "./index324.js";
3
3
  import k, { cancelSync as w } from "./index199.js";
4
- import { interpolate as A } from "./index326.js";
5
- import { hasRepeatDelayElapsed as I, reverseElapsed as N, loopElapsed as q } from "./index327.js";
4
+ import { interpolate as A } from "./index325.js";
5
+ import { hasRepeatDelayElapsed as I, reverseElapsed as N, loopElapsed as q } from "./index326.js";
6
6
  const z = (n) => {
7
7
  const o = ({ delta: a }) => n(a);
8
8
  return {
package/dist/index209.js CHANGED
@@ -1,4 +1,4 @@
1
- import { reverseEasing as n, createAnticipate as O, mirrorEasing as s, createBackIn as i, createExpoIn as u } from "./index344.js";
1
+ import { reverseEasing as n, createAnticipate as O, mirrorEasing as s, createBackIn as i, createExpoIn as u } from "./index343.js";
2
2
  const e = 1.525, E = 4 / 11, I = 8 / 11, H = 9 / 10, N = (c) => c, a = u(2), k = n(a), B = s(a), T = (c) => 1 - Math.sin(Math.acos(c)), _ = n(T), C = s(_), r = i(e), L = n(r), U = s(r), m = O(e), b = 4356 / 361, R = 35442 / 1805, S = 16061 / 1805, o = (c) => {
3
3
  if (c === 1 || c === 0)
4
4
  return c;
package/dist/index210.js CHANGED
@@ -1,163 +1,90 @@
1
- import y from "./index219.js";
2
- import m from "./index234.js";
3
- import b from "./index216.js";
4
- import v from "./index217.js";
5
- import h from "./index269.js";
6
- import { resolveComponent as r, resolveDirective as S, withDirectives as B, createElementBlock as i, openBlock as n, mergeProps as t, renderSlot as o, createElementVNode as I, createBlock as d, createCommentVNode as p, normalizeClass as u, toDisplayString as $ } from "vue";
7
- var k = {
8
- name: "BaseButton",
9
- extends: v,
10
- props: {
11
- label: {
12
- type: String,
13
- default: null
14
- },
15
- icon: {
16
- type: String,
17
- default: null
18
- },
19
- iconPos: {
20
- type: String,
21
- default: "left"
22
- },
23
- iconClass: {
24
- type: String,
25
- default: null
26
- },
27
- badge: {
28
- type: String,
29
- default: null
30
- },
31
- badgeClass: {
32
- type: String,
33
- default: null
34
- },
35
- badgeSeverity: {
36
- type: String,
37
- default: null
38
- },
39
- loading: {
40
- type: Boolean,
41
- default: !1
42
- },
43
- loadingIcon: {
44
- type: String,
45
- default: void 0
46
- },
47
- link: {
48
- type: Boolean,
49
- default: !1
50
- },
51
- severity: {
52
- type: String,
53
- default: null
54
- },
55
- raised: {
56
- type: Boolean,
57
- default: !1
58
- },
59
- rounded: {
60
- type: Boolean,
61
- default: !1
62
- },
63
- text: {
64
- type: Boolean,
65
- default: !1
66
- },
67
- outlined: {
68
- type: Boolean,
69
- default: !1
70
- },
71
- size: {
72
- type: String,
73
- default: null
74
- },
75
- plain: {
76
- type: Boolean,
77
- default: !1
78
- }
79
- },
80
- style: h,
81
- provide: function() {
82
- return {
83
- $parentInstance: this
84
- };
1
+ import { DomHandler as r } from "./index162.js";
2
+ import p from "./index269.js";
3
+ import c from "./index270.js";
4
+ var f = p.extend({
5
+ style: c
6
+ });
7
+ function m(e) {
8
+ return b(e) || y(e) || v(e) || h();
9
+ }
10
+ function h() {
11
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
13
+ }
14
+ function v(e, t) {
15
+ if (e) {
16
+ if (typeof e == "string") return a(e, t);
17
+ var n = Object.prototype.toString.call(e).slice(8, -1);
18
+ if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
19
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return a(e, t);
85
20
  }
86
- }, C = {
87
- name: "Button",
88
- extends: k,
89
- inheritAttrs: !1,
21
+ }
22
+ function y(e) {
23
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
24
+ }
25
+ function b(e) {
26
+ if (Array.isArray(e)) return a(e);
27
+ }
28
+ function a(e, t) {
29
+ (t == null || t > e.length) && (t = e.length);
30
+ for (var n = 0, o = new Array(t); n < t; n++) o[n] = e[n];
31
+ return o;
32
+ }
33
+ var E = f.extend("ripple", {
34
+ mounted: function(t) {
35
+ var n, o = t == null || (n = t.$instance) === null || n === void 0 ? void 0 : n.$primevueConfig;
36
+ o && o.ripple && (this.create(t), this.bindEvents(t), t.setAttribute("data-pd-ripple", !0));
37
+ },
38
+ unmounted: function(t) {
39
+ this.remove(t);
40
+ },
41
+ timeout: void 0,
90
42
  methods: {
91
- getPTOptions: function(l) {
92
- var s = l === "root" ? this.ptmi : this.ptm;
93
- return s(l, {
94
- context: {
95
- disabled: this.disabled
96
- }
43
+ bindEvents: function(t) {
44
+ t.addEventListener("mousedown", this.onMouseDown.bind(this));
45
+ },
46
+ unbindEvents: function(t) {
47
+ t.removeEventListener("mousedown", this.onMouseDown.bind(this));
48
+ },
49
+ create: function(t) {
50
+ var n = r.createElement("span", {
51
+ role: "presentation",
52
+ "aria-hidden": !0,
53
+ "data-p-ink": !0,
54
+ "data-p-ink-active": !1,
55
+ class: !this.isUnstyled() && this.cx("root"),
56
+ onAnimationEnd: this.onAnimationEnd.bind(this),
57
+ "p-bind": this.ptm("root")
97
58
  });
59
+ t.appendChild(n), this.$el = n;
60
+ },
61
+ remove: function(t) {
62
+ var n = this.getInk(t);
63
+ n && (this.unbindEvents(t), n.removeEventListener("animationend", this.onAnimationEnd), n.remove());
64
+ },
65
+ onMouseDown: function(t) {
66
+ var n = this, o = t.currentTarget, i = this.getInk(o);
67
+ if (!(!i || getComputedStyle(i, null).display === "none")) {
68
+ if (!this.isUnstyled() && r.removeClass(i, "p-ink-active"), i.setAttribute("data-p-ink-active", "false"), !r.getHeight(i) && !r.getWidth(i)) {
69
+ var s = Math.max(r.getOuterWidth(o), r.getOuterHeight(o));
70
+ i.style.height = s + "px", i.style.width = s + "px";
71
+ }
72
+ var u = r.getOffset(o), d = t.pageX - u.left + document.body.scrollTop - r.getWidth(i) / 2, l = t.pageY - u.top + document.body.scrollLeft - r.getHeight(i) / 2;
73
+ i.style.top = l + "px", i.style.left = d + "px", !this.isUnstyled() && r.addClass(i, "p-ink-active"), i.setAttribute("data-p-ink-active", "true"), this.timeout = setTimeout(function() {
74
+ i && (!n.isUnstyled() && r.removeClass(i, "p-ink-active"), i.setAttribute("data-p-ink-active", "false"));
75
+ }, 401);
76
+ }
77
+ },
78
+ onAnimationEnd: function(t) {
79
+ this.timeout && clearTimeout(this.timeout), !this.isUnstyled() && r.removeClass(t.currentTarget, "p-ink-active"), t.currentTarget.setAttribute("data-p-ink-active", "false");
80
+ },
81
+ getInk: function(t) {
82
+ return t && t.children ? m(t.children).find(function(n) {
83
+ return r.getAttribute(n, "data-pc-name") === "ripple";
84
+ }) : void 0;
98
85
  }
99
- },
100
- computed: {
101
- disabled: function() {
102
- return this.$attrs.disabled || this.$attrs.disabled === "" || this.loading;
103
- },
104
- defaultAriaLabel: function() {
105
- return this.label ? this.label + (this.badge ? " " + this.badge : "") : this.$attrs.ariaLabel;
106
- },
107
- hasIcon: function() {
108
- return this.icon || this.$slots.icon;
109
- }
110
- },
111
- components: {
112
- SpinnerIcon: m,
113
- Badge: y
114
- },
115
- directives: {
116
- ripple: b
117
86
  }
118
- }, P = ["aria-label", "disabled", "data-p-severity"];
119
- function A(e, l, s, L, D, a) {
120
- var c = r("SpinnerIcon"), f = r("Badge"), g = S("ripple");
121
- return B((n(), i("button", t({
122
- class: e.cx("root"),
123
- type: "button",
124
- "aria-label": a.defaultAriaLabel,
125
- disabled: a.disabled
126
- }, a.getPTOptions("root"), {
127
- "data-p-severity": e.severity
128
- }), [o(e.$slots, "default", {}, function() {
129
- return [e.loading ? o(e.$slots, "loadingicon", {
130
- key: 0,
131
- class: u([e.cx("loadingIcon"), e.cx("icon")])
132
- }, function() {
133
- return [e.loadingIcon ? (n(), i("span", t({
134
- key: 0,
135
- class: [e.cx("loadingIcon"), e.cx("icon"), e.loadingIcon]
136
- }, e.ptm("loadingIcon")), null, 16)) : (n(), d(c, t({
137
- key: 1,
138
- class: [e.cx("loadingIcon"), e.cx("icon")],
139
- spin: ""
140
- }, e.ptm("loadingIcon")), null, 16, ["class"]))];
141
- }) : o(e.$slots, "icon", {
142
- key: 1,
143
- class: u([e.cx("icon")])
144
- }, function() {
145
- return [e.icon ? (n(), i("span", t({
146
- key: 0,
147
- class: [e.cx("icon"), e.icon, e.iconClass]
148
- }, e.ptm("icon")), null, 16)) : p("", !0)];
149
- }), I("span", t({
150
- class: e.cx("label")
151
- }, e.ptm("label")), $(e.label || " "), 17), e.badge ? (n(), d(f, t({
152
- key: 2,
153
- value: e.badge,
154
- class: e.badgeClass,
155
- severity: e.badgeSeverity,
156
- unstyled: e.unstyled
157
- }, e.ptm("badge")), null, 16, ["value", "class", "severity", "unstyled"])) : p("", !0)];
158
- })], 16, P)), [[g]]);
159
- }
160
- C.render = A;
87
+ });
161
88
  export {
162
- C as default
89
+ E as default
163
90
  };