@quoreadmin/ui 1.7.6 → 1.7.8

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 (123) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index115.js +24 -18
  3. package/dist/index140.js +374 -352
  4. package/dist/index142.js +10 -5
  5. package/dist/index171.js +14 -14
  6. package/dist/index172.js +3 -3
  7. package/dist/index175.js +4 -4
  8. package/dist/index182.js +10 -10
  9. package/dist/index184.js +10 -10
  10. package/dist/index190.js +9 -9
  11. package/dist/index191.js +1 -1
  12. package/dist/index192.js +1 -1
  13. package/dist/index193.js +1 -1
  14. package/dist/index20.js +26 -19
  15. package/dist/index201.js +4 -4
  16. package/dist/index202.js +84 -29
  17. package/dist/index203.js +400 -109
  18. package/dist/index204.js +22 -36
  19. package/dist/index205.js +161 -26
  20. package/dist/index206.js +225 -33
  21. package/dist/index207.js +37 -9
  22. package/dist/index208.js +10 -19
  23. package/dist/index209.js +33 -10
  24. package/dist/index210.js +116 -10
  25. package/dist/index211.js +35 -50
  26. package/dist/index212.js +26 -43
  27. package/dist/index213.js +35 -3
  28. package/dist/index214.js +9 -39
  29. package/dist/index215.js +19 -21
  30. package/dist/index216.js +10 -88
  31. package/dist/index217.js +9 -406
  32. package/dist/index218.js +51 -22
  33. package/dist/index219.js +39 -157
  34. package/dist/index220.js +3 -19
  35. package/dist/index221.js +38 -19
  36. package/dist/index222.js +21 -22
  37. package/dist/index223.js +113 -185
  38. package/dist/index224.js +25 -57
  39. package/dist/index225.js +77 -31
  40. package/dist/index226.js +19 -39
  41. package/dist/index227.js +19 -126
  42. package/dist/index228.js +16 -34
  43. package/dist/index229.js +20 -80
  44. package/dist/index230.js +10 -10
  45. package/dist/index231.js +160 -19
  46. package/dist/index232.js +10 -10
  47. package/dist/index233.js +15 -13
  48. package/dist/index234.js +194 -156
  49. package/dist/index235.js +66 -224
  50. package/dist/index236.js +34 -37
  51. package/dist/index237.js +39 -9
  52. package/dist/index241.js +8 -8
  53. package/dist/index242.js +2 -2
  54. package/dist/index248.js +2 -2
  55. package/dist/index249.js +2 -2
  56. package/dist/index250.js +8 -8
  57. package/dist/index259.js +6 -6
  58. package/dist/index260.js +1 -1
  59. package/dist/index261.js +1 -1
  60. package/dist/index274.js +2 -2
  61. package/dist/index279.js +2 -54
  62. package/dist/index280.js +1 -1
  63. package/dist/index281.js +3 -26
  64. package/dist/index282.js +26 -21
  65. package/dist/index283.js +53 -21
  66. package/dist/index284.js +26 -16
  67. package/dist/index285.js +22 -17
  68. package/dist/index286.js +21 -22
  69. package/dist/index287.js +16 -2
  70. package/dist/index288.js +17 -3
  71. package/dist/index289.js +23 -27
  72. package/dist/index290.js +1518 -79
  73. package/dist/index291.js +386 -22
  74. package/dist/index292.js +2698 -902
  75. package/dist/index293.js +85 -21
  76. package/dist/index294.js +3770 -20
  77. package/dist/index295.js +59 -19
  78. package/dist/index296.js +15 -69
  79. package/dist/index297.js +84 -19
  80. package/dist/index298.js +201 -18
  81. package/dist/index299.js +246 -22
  82. package/dist/index300.js +78 -21
  83. package/dist/index301.js +22 -63
  84. package/dist/index302.js +909 -1492
  85. package/dist/index303.js +22 -386
  86. package/dist/index304.js +20 -2731
  87. package/dist/index305.js +19 -85
  88. package/dist/index306.js +58 -3759
  89. package/dist/index307.js +19 -60
  90. package/dist/index308.js +19 -15
  91. package/dist/index309.js +21 -83
  92. package/dist/index31.js +34 -27
  93. package/dist/index310.js +22 -202
  94. package/dist/index311.js +63 -246
  95. package/dist/index332.js +1 -1
  96. package/dist/index337.js +1 -1
  97. package/dist/index342.js +2 -2
  98. package/dist/index347.js +1 -1
  99. package/dist/index348.js +2 -2
  100. package/dist/index355.js +2 -2
  101. package/dist/index369.js +100 -16
  102. package/dist/index370.js +90 -100
  103. package/dist/index371.js +98 -91
  104. package/dist/index372.js +16 -97
  105. package/dist/index43.js +535 -501
  106. package/dist/index44.js +100 -84
  107. package/dist/index95.js +23 -15
  108. package/dist/src/components/data-filter/data-filter.d.ts +10 -0
  109. package/dist/src/components/data-list/data-list.d.ts +10 -0
  110. package/dist/src/components/date-picker/date-picker.d.ts +10 -0
  111. package/dist/src/components/date-picker/date-picker.stories.d.ts +20 -0
  112. package/dist/src/components/form-group/form-group.stories.d.ts +10 -0
  113. package/dist/src/components/grid/grid.stories.d.ts +28 -0
  114. package/dist/src/components/input/input.d.ts +10 -0
  115. package/dist/src/components/input/input.stories.d.ts +40 -0
  116. package/dist/src/components/list/list.stories.d.ts +9 -0
  117. package/dist/src/components/modal/modal.stories.d.ts +9 -0
  118. package/dist/src/components/room-details-popover/room-details-popover.d.ts +24 -7
  119. package/dist/src/components/select/select.d.ts +9 -0
  120. package/dist/src/components/select/select.stories.d.ts +27 -0
  121. package/dist/src/views/lists.vue.d.ts +20 -0
  122. package/dist/src/views/tables.vue.d.ts +10 -0
  123. package/package.json +1 -1
package/dist/index142.js CHANGED
@@ -3,7 +3,7 @@ import { Multiselect as x } from "./index188.js";
3
3
  import { useI18n as P } from "vue-i18n";
4
4
  /* empty css */
5
5
  import H from "./index6.js";
6
- const q = L({
6
+ const N = L({
7
7
  name: "QSelect",
8
8
  components: {
9
9
  QBadge: H,
@@ -182,6 +182,11 @@ const q = L({
182
182
  type: String,
183
183
  default: "bottom"
184
184
  },
185
+ // Shows "*Required" indicator next to placeholder with different styling
186
+ required: {
187
+ type: Boolean,
188
+ default: !1
189
+ },
185
190
  // Use this with taggable = false, multiple = false, showTags = false to allow for adding options without tags.
186
191
  useAddTagsOnly: {
187
192
  type: Boolean,
@@ -198,7 +203,7 @@ const q = L({
198
203
  },
199
204
  emits: ["update:model-value"],
200
205
  setup(l, { slots: v, emit: o }) {
201
- const { t: s } = P(), r = n(null), f = n(null), t = n(l.modelValue), p = n(""), d = n(!1), c = n([]), y = a(() => Array.isArray(l.options) ? l.options.length : 0), h = a(() => !!v.action), m = a(() => l.noResultMessage || s("HC_PRESS_ENTER_TO_CREATE_A_TAG")), S = a(() => l.tagPlaceholder || s("HC_PRESS_ENTER_TO_CREATE_A_TAG")), b = a(() => l.noOptionsMessage || s("HC_LIST_IS_EMPTY")), B = a(() => y.value === t.value.length ? s("HC_ALL") : t.value.length > 1 ? s("HC_MULTIPLE_SELECTED") : t.value[0].label || t.value[0].name || ""), _ = a(() => l.taggable || l.showTags), T = a(() => !!(l.groupValues && l.groupLabel && l.groupSelectable)), E = (e) => {
206
+ const { t: s } = P(), r = n(null), f = n(null), t = n(l.modelValue), p = n(""), d = n(!1), c = n([]), y = a(() => Array.isArray(l.options) ? l.options.length : 0), h = a(() => !!v.action), m = a(() => l.noResultMessage || s("HC_PRESS_ENTER_TO_CREATE_A_TAG")), S = a(() => l.tagPlaceholder || s("HC_PRESS_ENTER_TO_CREATE_A_TAG")), B = a(() => l.noOptionsMessage || s("HC_LIST_IS_EMPTY")), b = a(() => y.value === t.value.length ? s("HC_ALL") : t.value.length > 1 ? s("HC_MULTIPLE_SELECTED") : t.value[0].label || t.value[0].name || ""), _ = a(() => l.taggable || l.showTags), T = a(() => !!(l.groupValues && l.groupLabel && l.groupSelectable)), E = (e) => {
202
207
  o("update:model-value", e);
203
208
  }, A = (e) => {
204
209
  p.value = e;
@@ -255,10 +260,10 @@ const q = L({
255
260
  // computed
256
261
  hasAction: h,
257
262
  noResultsText: m,
258
- noOptionsText: b,
263
+ noOptionsText: B,
259
264
  noTagFound: S,
260
265
  selectedCount: y,
261
- selectedText: B,
266
+ selectedText: b,
262
267
  useTags: _,
263
268
  enableGroupSelect: T,
264
269
  addTag: O,
@@ -273,5 +278,5 @@ const q = L({
273
278
  }
274
279
  });
275
280
  export {
276
- q as default
281
+ N as default
277
282
  };
package/dist/index171.js CHANGED
@@ -1,18 +1,18 @@
1
- import st from "./index202.js";
1
+ import st from "./index209.js";
2
2
  import { reactive as V, watch as h, ref as g, defineComponent as Z, useSlots as H, h as K, Fragment as at, inject as ct, computed as A, toRaw as lt, unref as x } from "vue";
3
- import { unrefElement as ut, useIntersectionObserver as ft, useEventListener as m } from "./index203.js";
4
- import { tryOnUnmounted as pt, isObject as yt } from "./index204.js";
5
- import D, { getFrameData as dt } from "./index205.js";
6
- import { complex as $ } from "./index206.js";
7
- import { number as mt, alpha as C, scale as j } from "./index207.js";
8
- import { filter as P } from "./index208.js";
9
- import { px as c, progressPercentage as F, degrees as O } from "./index209.js";
10
- import { color as b } from "./index210.js";
11
- import { inertia as bt } from "./index211.js";
12
- import { animate as ht } from "./index212.js";
13
- import { velocityPerSecond as vt } from "./index213.js";
14
- import { cubicBezier as gt } from "./index214.js";
15
- import { bounceOut as Ot, bounceInOut as Tt, bounceIn as At, anticipate as xt, backOut as jt, backInOut as Vt, backIn as St, circOut as Ct, circInOut as Et, circIn as Nt, easeOut as Pt, easeInOut as _t, easeIn as wt, linear as Rt } from "./index215.js";
3
+ import { unrefElement as ut, useIntersectionObserver as ft, useEventListener as m } from "./index210.js";
4
+ import { tryOnUnmounted as pt, isObject as yt } from "./index211.js";
5
+ import D, { getFrameData as dt } from "./index212.js";
6
+ import { complex as $ } from "./index213.js";
7
+ import { number as mt, alpha as C, scale as j } from "./index214.js";
8
+ import { filter as P } from "./index215.js";
9
+ import { px as c, progressPercentage as F, degrees as O } from "./index216.js";
10
+ import { color as b } from "./index217.js";
11
+ import { inertia as bt } from "./index218.js";
12
+ import { animate as ht } from "./index219.js";
13
+ import { velocityPerSecond as vt } from "./index220.js";
14
+ import { cubicBezier as gt } from "./index221.js";
15
+ import { bounceOut as Ot, bounceInOut as Tt, bounceIn as At, anticipate as xt, backOut as jt, backInOut as Vt, backIn as St, circOut as Ct, circInOut as Et, circIn as Nt, easeOut as Pt, easeInOut as _t, easeIn as wt, linear as Rt } from "./index222.js";
16
16
  const R = {};
17
17
  class Mt {
18
18
  subscriptions = /* @__PURE__ */ new Set();
package/dist/index172.js CHANGED
@@ -1,7 +1,7 @@
1
- import g from "./index216.js";
1
+ import g from "./index202.js";
2
2
  import { DomHandler as f, ObjectUtils as d } from "./index169.js";
3
- import v from "./index217.js";
4
- import S from "./index218.js";
3
+ import v from "./index203.js";
4
+ import S from "./index204.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/index175.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 "./index234.js";
3
- import { parse as ct } from "./index235.js";
4
- import { getWeek as Ie } from "./index236.js";
5
- import dt from "./index237.js";
2
+ import { format as Ce } from "./index205.js";
3
+ import { parse as ct } from "./index206.js";
4
+ import { getWeek as Ie } from "./index207.js";
5
+ import dt from "./index208.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/index182.js CHANGED
@@ -1,14 +1,14 @@
1
- import A from "./index219.js";
2
- import O from "./index220.js";
3
- import V from "./index221.js";
4
- import R from "./index222.js";
5
- import j from "./index223.js";
6
- import K from "./index224.js";
7
- import H from "./index216.js";
1
+ import A from "./index231.js";
2
+ import O from "./index232.js";
3
+ import V from "./index226.js";
4
+ import R from "./index233.js";
5
+ import j from "./index234.js";
6
+ import K from "./index235.js";
7
+ import H from "./index202.js";
8
8
  import { DomHandler as w } from "./index169.js";
9
- import W from "./index217.js";
10
- import G from "./index225.js";
11
- import Y from "./index226.js";
9
+ import W from "./index203.js";
10
+ import G from "./index236.js";
11
+ import Y from "./index237.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/index184.js CHANGED
@@ -1,15 +1,15 @@
1
- import q from "./index227.js";
2
- import X from "./index228.js";
1
+ import q from "./index223.js";
2
+ import X from "./index224.js";
3
3
  import { ZIndexUtils as T, DomHandler as c, UniqueComponentId as k, ObjectUtils as $ } from "./index169.js";
4
- import O from "./index217.js";
5
- import Y from "./index229.js";
6
- import J from "./index221.js";
7
- import L from "./index216.js";
8
- import H from "./index230.js";
9
- import M from "./index231.js";
4
+ import O from "./index203.js";
5
+ import Y from "./index225.js";
6
+ import J from "./index226.js";
7
+ import L from "./index202.js";
8
+ import H from "./index227.js";
9
+ import M from "./index228.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 "./index232.js";
12
- import te from "./index233.js";
11
+ import ee from "./index229.js";
12
+ import te from "./index230.js";
13
13
  var ie = {
14
14
  name: "BaseGalleria",
15
15
  extends: O,
package/dist/index190.js CHANGED
@@ -5,27 +5,27 @@ import at from "./index240.js";
5
5
  import ut from "./index241.js";
6
6
  import { ObjectUtils as b, UniqueComponentId as X, DomHandler as m, HelperSet as W, ConnectedOverlayScrollHandler as st, ZIndexUtils as ce } from "./index169.js";
7
7
  import dt from "./index242.js";
8
- import F from "./index217.js";
8
+ import F from "./index203.js";
9
9
  import ct from "./index243.js";
10
- import We from "./index232.js";
11
- import Ue from "./index231.js";
10
+ import We from "./index229.js";
11
+ import Ue from "./index228.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 "./index244.js";
14
14
  import pe from "./index245.js";
15
15
  import ht from "./index246.js";
16
- import pt from "./index221.js";
16
+ import pt from "./index226.js";
17
17
  import K from "./index247.js";
18
- import gt from "./index216.js";
18
+ import gt from "./index202.js";
19
19
  import Ze from "./index248.js";
20
20
  import yt from "./index249.js";
21
- import wt from "./index219.js";
21
+ import wt from "./index231.js";
22
22
  import vt from "./index250.js";
23
- import bt from "./index227.js";
23
+ import bt from "./index223.js";
24
24
  import Ct from "./index251.js";
25
25
  import Rt from "./index252.js";
26
- import St from "./index220.js";
26
+ import St from "./index232.js";
27
27
  import Pt from "./index253.js";
28
- import Et from "./index228.js";
28
+ import Et from "./index224.js";
29
29
  import Re from "./index254.js";
30
30
  import Se from "./index255.js";
31
31
  import Pe from "./index256.js";
package/dist/index191.js CHANGED
@@ -1,4 +1,4 @@
1
- import l from "./index217.js";
1
+ import l from "./index203.js";
2
2
  import n from "./index257.js";
3
3
  var u = {
4
4
  name: "BaseColumn",
package/dist/index192.js CHANGED
@@ -1,4 +1,4 @@
1
- import r from "./index217.js";
1
+ import r from "./index203.js";
2
2
  import e from "./index258.js";
3
3
  var o = {
4
4
  name: "BaseColumnGroup",
package/dist/index193.js CHANGED
@@ -1,4 +1,4 @@
1
- import r from "./index217.js";
1
+ import r from "./index203.js";
2
2
  var o = {
3
3
  name: "Row",
4
4
  extends: r,
package/dist/index20.js CHANGED
@@ -1,17 +1,20 @@
1
- import s from "./index95.js";
2
- import { resolveComponent as r, createElementBlock as t, openBlock as p, createVNode as l, normalizeClass as m, withCtx as d } from "vue";
1
+ import c from "./index95.js";
2
+ import { resolveComponent as n, createElementBlock as d, openBlock as i, createVNode as l, createCommentVNode as m, normalizeClass as u, withCtx as s, createTextVNode as f, createElementVNode as k, toDisplayString as t } from "vue";
3
3
  /* empty css */
4
- import c from "./index62.js";
5
- const f = { class: "q-date-picker" };
6
- function u(e, o, k, b, v, $) {
7
- const n = r("q-icon"), i = r("date-picker", !0);
8
- return p(), t("div", f, [
9
- l(i, {
4
+ import v from "./index62.js";
5
+ const $ = { class: "q-date-picker" }, b = {
6
+ key: 0,
7
+ class: "custom-placeholder"
8
+ }, C = { class: "required-indicator" };
9
+ function g(e, o, y, h, q, D) {
10
+ const r = n("q-icon"), p = n("date-picker", !0);
11
+ return i(), d("div", $, [
12
+ l(p, {
10
13
  id: e.id,
11
14
  value: e.value,
12
15
  "onUpdate:value": o[0] || (o[0] = (a) => e.value = a),
13
16
  "append-to-body": !1,
14
- class: m([
17
+ class: u([
15
18
  `date-picker-${e.size}`,
16
19
  `date-picker-on-${e.calendarPosition}`,
17
20
  { open: e.isOpen }
@@ -21,7 +24,7 @@ function u(e, o, k, b, v, $) {
21
24
  "disabled-date": e.disabledDates,
22
25
  format: e.format,
23
26
  lang: e.locale,
24
- placeholder: e.placeholder,
27
+ placeholder: e.required ? "" : e.placeholder,
25
28
  range: e.range,
26
29
  type: e.type,
27
30
  ref: "datePicker",
@@ -29,25 +32,29 @@ function u(e, o, k, b, v, $) {
29
32
  onClose: o[2] || (o[2] = (a) => e.isOpen = !1),
30
33
  onOpen: o[3] || (o[3] = (a) => e.isOpen = !0)
31
34
  }, {
32
- "icon-clear": d(() => [
33
- l(n, {
35
+ "icon-clear": s(() => [
36
+ l(r, {
34
37
  icon: "close",
35
38
  type: "",
36
- color: "inkwell-0",
39
+ color: "inkwell-10",
37
40
  size: "sm"
38
41
  })
39
42
  ]),
40
- "icon-calendar": d(() => [
41
- l(n, {
43
+ "icon-calendar": s(() => [
44
+ l(r, {
42
45
  icon: "calendar",
43
- color: "inkwell-0"
46
+ color: "inkwell-10"
44
47
  })
45
48
  ]),
46
49
  _: 1
47
- }, 8, ["id", "value", "class", "clearable", "disabled", "disabled-date", "format", "lang", "placeholder", "range", "type"])
50
+ }, 8, ["id", "value", "class", "clearable", "disabled", "disabled-date", "format", "lang", "placeholder", "range", "type"]),
51
+ e.showCustomPlaceholder ? (i(), d("div", b, [
52
+ f(t(e.placeholder), 1),
53
+ k("span", C, " *" + t(e.$t("HC_REQUIRED")), 1)
54
+ ])) : m("", !0)
48
55
  ]);
49
56
  }
50
- const P = /* @__PURE__ */ c(s, [["render", u], ["__scopeId", "data-v-194cb0dc"]]);
57
+ const N = /* @__PURE__ */ v(c, [["render", g], ["__scopeId", "data-v-3742f0c0"]]);
51
58
  export {
52
- P as default
59
+ N as default
53
60
  };
package/dist/index201.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 "./index259.js";
2
2
  import { Plugin as p, PluginKey as m } from "./index274.js";
3
- import { dropCursor as z } from "./index309.js";
4
- import { Decoration as g, DecorationSet as f } from "./index306.js";
5
- import { gapCursor as N } from "./index310.js";
6
- import { history as E, redo as M, undo as O } from "./index311.js";
3
+ import { dropCursor as z } from "./index297.js";
4
+ import { Decoration as g, DecorationSet as f } from "./index294.js";
5
+ import { gapCursor as N } from "./index298.js";
6
+ import { history as E, redo as M, undo as O } from "./index299.js";
7
7
  u.create({
8
8
  name: "characterCount",
9
9
  addOptions() {
package/dist/index202.js CHANGED
@@ -1,35 +1,90 @@
1
- function u(t) {
2
- if (t === null || typeof t != "object")
3
- return !1;
4
- const n = Object.getPrototypeOf(t);
5
- return n !== null && n !== Object.prototype && Object.getPrototypeOf(n) !== null || Symbol.iterator in t ? !1 : Symbol.toStringTag in t ? Object.prototype.toString.call(t) === "[object Module]" : !0;
1
+ import { DomHandler as r } from "./index169.js";
2
+ import p from "./index275.js";
3
+ import c from "./index276.js";
4
+ var f = p.extend({
5
+ style: c
6
+ });
7
+ function m(e) {
8
+ return b(e) || y(e) || v(e) || h();
6
9
  }
7
- function c(t, n, e = ".", f) {
8
- if (!u(n))
9
- return c(t, {}, e, f);
10
- const r = Object.assign({}, n);
11
- for (const o in t) {
12
- if (o === "__proto__" || o === "constructor")
13
- continue;
14
- const i = t[o];
15
- i != null && (f && f(r, o, i, e) || (Array.isArray(i) && Array.isArray(r[o]) ? r[o] = [...i, ...r[o]] : u(i) && u(r[o]) ? r[o] = c(
16
- i,
17
- r[o],
18
- (e ? `${e}.` : "") + o.toString(),
19
- f
20
- ) : r[o] = i));
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);
21
20
  }
22
- return r;
23
21
  }
24
- function l(t) {
25
- return (...n) => (
26
- // eslint-disable-next-line unicorn/no-array-reduce
27
- n.reduce((e, f) => c(e, f, "", t), {})
28
- );
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);
29
27
  }
30
- const y = l();
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,
42
+ methods: {
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")
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;
85
+ }
86
+ }
87
+ });
31
88
  export {
32
- l as createDefu,
33
- y as default,
34
- y as defu
89
+ E as default
35
90
  };