@pantograph/vue 0.15.0 → 0.15.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 (173) hide show
  1. package/dist/ActionButton/index.js +1 -1
  2. package/dist/ActionButton/index.umd.cjs +1 -1
  3. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-4bWnl8i0.js → ActionButton.vue_vue_type_script_setup_true_lang-DgyV4xRm.js} +1 -1
  4. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-C_7SZxPE.js → ActionButton.vue_vue_type_script_setup_true_lang-UVa0o0Ij.js} +2 -2
  5. package/dist/Alert/index.js +1 -1
  6. package/dist/Alert/index.umd.cjs +1 -1
  7. package/dist/{Alert.vue_vue_type_style_index_0_lang-BSPB5uP9.js → Alert.vue_vue_type_style_index_0_lang-DxbZ0Dgp.js} +3 -3
  8. package/dist/{Alert.vue_vue_type_style_index_0_lang-De8BdiEm.js → Alert.vue_vue_type_style_index_0_lang-tp9Yuyhx.js} +1 -1
  9. package/dist/Avatar/index.js +1 -1
  10. package/dist/Avatar/index.umd.cjs +1 -1
  11. package/dist/{Avatar.vue_vue_type_style_index_0_lang-DeTUyD13.js → Avatar.vue_vue_type_style_index_0_lang-B_L_lRri.js} +2 -2
  12. package/dist/{Avatar.vue_vue_type_style_index_0_lang-CrIwlgJN.js → Avatar.vue_vue_type_style_index_0_lang-C6nX1g5s.js} +1 -1
  13. package/dist/AvatarGroup/index.js +1 -1
  14. package/dist/AvatarGroup/index.umd.cjs +1 -1
  15. package/dist/Badge/index.js +1 -1
  16. package/dist/Badge/index.umd.cjs +1 -1
  17. package/dist/{Badge.vue_vue_type_script_setup_true_lang-CvnE7Srj.js → Badge.vue_vue_type_script_setup_true_lang-C9YYaZPq.js} +1 -1
  18. package/dist/{Badge.vue_vue_type_script_setup_true_lang-DYPVS-yf.js → Badge.vue_vue_type_script_setup_true_lang-D_Kb6YYk.js} +1 -1
  19. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-eeWTMdbl.js → BaseButton.vue_vue_type_style_index_0_lang-CDwjubhE.js} +1 -1
  20. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-CgMukDgL.js → BaseButton.vue_vue_type_style_index_0_lang-HfsOA9_2.js} +1 -1
  21. package/dist/Button/index.js +1 -1
  22. package/dist/Button/index.umd.cjs +1 -1
  23. package/dist/{Button.vue_vue_type_script_setup_true_lang-B6PUOUfI.js → Button.vue_vue_type_script_setup_true_lang-BNTreTjC.js} +2 -2
  24. package/dist/{Button.vue_vue_type_script_setup_true_lang-DjzpN9q5.js → Button.vue_vue_type_script_setup_true_lang-CvISLevL.js} +1 -1
  25. package/dist/Checkbox/index.js +1 -1
  26. package/dist/Checkbox/index.umd.cjs +1 -1
  27. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-CP6XeMyz.js → Checkbox.vue_vue_type_style_index_0_lang-D-oXRs9j.js} +1 -1
  28. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-BoCylzCv.js → Checkbox.vue_vue_type_style_index_0_lang-DmYIG1dJ.js} +1 -1
  29. package/dist/CheckboxGroup/index.js +1 -1
  30. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  31. package/dist/Chip/index.js +2 -2
  32. package/dist/Chip/index.umd.cjs +1 -1
  33. package/dist/{Chip.vue_vue_type_style_index_0_lang-DkdkKJvb.js → Chip.vue_vue_type_style_index_0_lang-D9b9CzL-.js} +1 -1
  34. package/dist/{Chip.vue_vue_type_style_index_0_lang-B8_9Fuov.js → Chip.vue_vue_type_style_index_0_lang-QPy9oUi2.js} +1 -1
  35. package/dist/ChipGroup/index.js +1 -1
  36. package/dist/ChipGroup/index.umd.cjs +1 -1
  37. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Cn0SS405.js → ChipGroup.vue_vue_type_style_index_0_lang-CHpFQGo2.js} +1 -1
  38. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-DXgB3D2F.js → ChipGroup.vue_vue_type_style_index_0_lang-uLOZBssn.js} +1 -1
  39. package/dist/ColorPicker/index.js +1 -1
  40. package/dist/ColorPicker/index.umd.cjs +1 -1
  41. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-OlYb1GsW.js → ColorPicker.vue_vue_type_style_index_0_lang-BFy2WG4I.js} +2 -2
  42. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BJqIuqb1.js → ColorPicker.vue_vue_type_style_index_0_lang-DiLY5TEe.js} +1 -1
  43. package/dist/ColorSwatch/index.js +1 -1
  44. package/dist/ColorSwatch/index.umd.cjs +1 -1
  45. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DmhhCVv7.js → ColorSwatch.vue_vue_type_style_index_0_lang-CUk1dzLL.js} +1 -1
  46. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-B35b1BsJ.js → ColorSwatch.vue_vue_type_style_index_0_lang-ena7zgve.js} +3 -3
  47. package/dist/ColorSwatchGroup/index.js +1 -1
  48. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  49. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CUBuxVaq.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-BFapju8t.js} +5 -5
  50. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CYLmaqeI.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-qPcgpY1d.js} +1 -1
  51. package/dist/ColorTrigger/index.js +1 -1
  52. package/dist/ColorTrigger/index.umd.cjs +1 -1
  53. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-DNZxq-yR.js → ColorTrigger.vue_vue_type_style_index_0_lang-BLaALuwC.js} +2 -2
  54. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-YWVLXFVc.js → ColorTrigger.vue_vue_type_style_index_0_lang-DCR5hP83.js} +1 -1
  55. package/dist/DataTable/DataTable.model.d.ts +4 -1
  56. package/dist/DataTable/index.d.ts +2 -1
  57. package/dist/DataTable/index.js +1 -1
  58. package/dist/DataTable/index.umd.cjs +1 -1
  59. package/dist/DataTable/types.d.ts +69 -0
  60. package/dist/DataTable/{useColumn.d.ts → useCell.d.ts} +1 -2
  61. package/dist/DataTable/useCol.d.ts +11 -0
  62. package/dist/DataTable/useColumnWrap.d.ts +1 -1
  63. package/dist/DataTable/useSelection.d.ts +28 -0
  64. package/dist/DataTable/useSort.d.ts +21 -0
  65. package/dist/DataTable.vue_vue_type_style_index_0_lang-ATKG2Cmd.js +1 -0
  66. package/dist/DataTable.vue_vue_type_style_index_0_lang-DrlPDQwn.js +972 -0
  67. package/dist/DropZone/DropZone.d.ts +53 -0
  68. package/dist/DropZone/index.d.ts +2 -1
  69. package/dist/DropZone/index.js +7 -1
  70. package/dist/DropZone/index.umd.cjs +1 -1
  71. package/dist/DropZone.vue_vue_type_style_index_0_lang-CVlC2HPc.js +1 -0
  72. package/dist/DropZone.vue_vue_type_style_index_0_lang-DswnAgcQ.js +121 -0
  73. package/dist/FloatButton/index.js +1 -1
  74. package/dist/FloatButton/index.umd.cjs +1 -1
  75. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BxvHC70e.js → FloatButton.vue_vue_type_script_setup_true_lang-B0H9wD6k.js} +2 -2
  76. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-COenBFvO.js → FloatButton.vue_vue_type_script_setup_true_lang-Bbt9lIzt.js} +1 -1
  77. package/dist/GraphicalObject/index.js +1 -1
  78. package/dist/GraphicalObject/index.umd.cjs +1 -1
  79. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-Bc5zh_wp.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BJxJMvEW.js} +1 -1
  80. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CwxMftZ5.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DiOcyHlU.js} +1 -1
  81. package/dist/IconButton/index.js +1 -1
  82. package/dist/IconButton/index.umd.cjs +1 -1
  83. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-Bi_qwuVm.js → IconButton.vue_vue_type_script_setup_true_lang-jsgZCtDw.js} +2 -2
  84. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-efWR_OuR.js → IconButton.vue_vue_type_script_setup_true_lang-qMI8hvaP.js} +1 -1
  85. package/dist/IndentLevel/index.js +1 -1
  86. package/dist/IndentLevel/index.umd.cjs +1 -1
  87. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-ChiSKb-J.js → IndentLevel.vue_vue_type_style_index_0_lang-Ce8LV7Lh.js} +1 -1
  88. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-C_b-LVE0.js → IndentLevel.vue_vue_type_style_index_0_lang-Cko7CNe8.js} +1 -1
  89. package/dist/Indicator/index.js +1 -1
  90. package/dist/Indicator/index.umd.cjs +1 -1
  91. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-DjRN5aRj.js → Indicator.vue_vue_type_script_setup_true_lang-B8kmhRfQ.js} +1 -1
  92. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-RPFjQEzE.js → Indicator.vue_vue_type_script_setup_true_lang-BzfzbSZa.js} +1 -1
  93. package/dist/Input/Input.model.d.ts +1 -1
  94. package/dist/Input/index.js +1 -1
  95. package/dist/Input/index.umd.cjs +1 -1
  96. package/dist/Input.vue_vue_type_style_index_0_lang-DCCIX52B.js +1 -0
  97. package/dist/Input.vue_vue_type_style_index_0_lang-DhUwuI6B.js +199 -0
  98. package/dist/Menu/index.js +1 -1
  99. package/dist/Menu/index.umd.cjs +1 -1
  100. package/dist/{Menu.vue_vue_type_style_index_0_lang-DacaUajM.js → Menu.vue_vue_type_style_index_0_lang-DIMEa_Ht.js} +1 -1
  101. package/dist/{Menu.vue_vue_type_style_index_0_lang-BVNhKBcu.js → Menu.vue_vue_type_style_index_0_lang-DRWb6YFs.js} +3 -3
  102. package/dist/MenuItem/index.js +1 -1
  103. package/dist/MenuItem/index.umd.cjs +1 -1
  104. package/dist/Popover/index.js +1 -1
  105. package/dist/Popover/index.umd.cjs +1 -1
  106. package/dist/Popover.vue_vue_type_style_index_0_lang-CFAYIAUF.js +153 -0
  107. package/dist/Popover.vue_vue_type_style_index_0_lang-CuBS3grq.js +1 -0
  108. package/dist/RadioGroup/index.js +1 -1
  109. package/dist/RadioGroup/index.umd.cjs +1 -1
  110. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-BsA4i2NS.js → RadioGroup.vue_vue_type_script_setup_true_lang-cFRkXOQf.js} +1 -1
  111. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-B9tmAIEG.js → RadioGroup.vue_vue_type_script_setup_true_lang-lWkHiWdf.js} +1 -1
  112. package/dist/ScrollContainer/ScrollContainer.d.ts +247 -1
  113. package/dist/ScrollContainer/index.js +5 -4
  114. package/dist/ScrollContainer/index.umd.cjs +1 -1
  115. package/dist/ScrollContainer.model-DPWJjLfW.js +4 -0
  116. package/dist/ScrollContainer.model-Tt-6E8TA.js +1 -0
  117. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-C22K1mpy.js +1 -0
  118. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DcxqgHqY.js +173 -0
  119. package/dist/Switch/index.js +1 -1
  120. package/dist/Switch/index.umd.cjs +1 -1
  121. package/dist/{Switch.vue_vue_type_style_index_0_lang-mkO4UH9N.js → Switch.vue_vue_type_style_index_0_lang-6gVnb9xl.js} +1 -1
  122. package/dist/{Switch.vue_vue_type_style_index_0_lang-D03EmiSs.js → Switch.vue_vue_type_style_index_0_lang-Q8bdnZwm.js} +1 -1
  123. package/dist/THead.vue_vue_type_style_index_0_lang-CjNYs1Lo.js +1 -0
  124. package/dist/THead.vue_vue_type_style_index_0_lang-CzOa1Qzl.js +190 -0
  125. package/dist/Table/Tr.d.ts +5 -0
  126. package/dist/Table/index.js +1 -1
  127. package/dist/Table/index.umd.cjs +1 -1
  128. package/dist/Tooltip/Tooltip.d.ts +33 -0
  129. package/dist/Tooltip/index.d.ts +2 -0
  130. package/dist/Tooltip/index.js +7 -0
  131. package/dist/Tooltip/index.umd.cjs +1 -0
  132. package/dist/Tooltip/register.d.ts +3 -0
  133. package/dist/Tooltip.vue_vue_type_script_setup_true_lang-DWMPc3HZ.js +1 -0
  134. package/dist/Tooltip.vue_vue_type_script_setup_true_lang-DX19Sbqt.js +88 -0
  135. package/dist/Tree/Tree.d.ts +2 -1
  136. package/dist/Tree/index.js +1 -1
  137. package/dist/Tree/index.umd.cjs +1 -1
  138. package/dist/Tree.vue_vue_type_style_index_0_lang-C88TjWts.js +504 -0
  139. package/dist/Tree.vue_vue_type_style_index_0_lang-DHQevJVn.js +1 -0
  140. package/dist/_baseIteratee-BBuodSH6.js +215 -0
  141. package/dist/_baseIteratee-CDuwB1bO.js +1 -0
  142. package/dist/_flatRest-DfF7R94v.js +1 -0
  143. package/dist/{_flatRest-Bw7fWA39.js → _flatRest-TqrGvOlu.js} +16 -12
  144. package/dist/{cloneDeep-unwWx7xF.js → cloneDeep-BJojf7NO.js} +1 -1
  145. package/dist/cloneDeep-DaX9li9z.js +1 -0
  146. package/dist/{get-w4jLplqh.js → get-CDLMdUvE.js} +1 -1
  147. package/dist/{get-FzuQyzCL.js → get-CukCUUmn.js} +1 -1
  148. package/dist/index.js +126 -121
  149. package/dist/index.umd.cjs +1 -1
  150. package/dist/{omit-6FeILhm3.js → omit-BTWlW6dc.js} +1 -1
  151. package/dist/{omit-DB3u1XL5.js → omit-BYRdzoed.js} +15 -15
  152. package/dist/{pick-DUYr5oPc.js → pick-CbcKnkja.js} +1 -1
  153. package/dist/{pick-BEnuz3iO.js → pick-CyXixg42.js} +1 -1
  154. package/dist/style/index.css +1 -1
  155. package/dist/{uniq-BoseFDe4.js → uniq-BkI6s4BR.js} +1 -1
  156. package/dist/{uniq-Yl5OObL1.js → uniq-FpLq1Xk8.js} +1 -1
  157. package/package.json +8 -3
  158. package/dist/DataTable.vue_vue_type_style_index_0_lang-BP5c0rda.js +0 -1
  159. package/dist/DataTable.vue_vue_type_style_index_0_lang-C-7s05L-.js +0 -786
  160. package/dist/Input.vue_vue_type_style_index_0_lang-CCKpwRTa.js +0 -270
  161. package/dist/Input.vue_vue_type_style_index_0_lang-Ct9RhrT6.js +0 -1
  162. package/dist/Popover.vue_vue_type_style_index_0_lang-B695YDJE.js +0 -1
  163. package/dist/Popover.vue_vue_type_style_index_0_lang-ByhaxoQo.js +0 -153
  164. package/dist/ScrollContainer.model-BzodTc4p.js +0 -147
  165. package/dist/ScrollContainer.model-VXisa1jV.js +0 -1
  166. package/dist/THead.vue_vue_type_style_index_0_lang-B4yro5EP.js +0 -180
  167. package/dist/THead.vue_vue_type_style_index_0_lang-C1I8ZLa2.js +0 -1
  168. package/dist/Tree.vue_vue_type_style_index_0_lang-DKtLWacR.js +0 -501
  169. package/dist/Tree.vue_vue_type_style_index_0_lang-DnnW2v03.js +0 -1
  170. package/dist/_baseIsEqual-B1yr67CO.js +0 -145
  171. package/dist/_baseIsEqual-DysaakgW.js +0 -1
  172. package/dist/_flatRest-B2xTunyg.js +0 -1
  173. package/dist/cloneDeep-CNkGIW_B.js +0 -1
@@ -1,270 +0,0 @@
1
- import { defineComponent as T, useSlots as G, computed as h, useAttrs as q, ref as K, createElementBlock as b, openBlock as m, mergeProps as z, unref as a, createCommentVNode as R, withDirectives as X, normalizeClass as B, renderSlot as S, createTextVNode as A, toDisplayString as k, createElementVNode as x, isRef as H, vModelDynamic as J, Fragment as Q, createVNode as W, createBlock as Y, withCtx as Z } from "vue";
2
- import { useVModel as j } from "@vueuse/core";
3
- import { getBemBlock as ee, generateVariantClassList as E, getBemElement as p } from "@pantograph/utils";
4
- import { cva as ne } from "class-variance-authority";
5
- import { h as te, b as re, p as se } from "./pick-BEnuz3iO.js";
6
- import { S as ie, k as le, d as O, t as P, b as ae, h as oe, j as ue, l as ce } from "./_flatRest-Bw7fWA39.js";
7
- import { b as D } from "./_baseIsEqual-B1yr67CO.js";
8
- import { f as fe } from "./_getTag-z7QaQ5uZ.js";
9
- import { g as de } from "./get-FzuQyzCL.js";
10
- import { a as me } from "./isArray-CdbPONHA.js";
11
- import { _ as pe } from "./Icon.vue_vue_type_style_index_0_lang-D2A2tkHI.js";
12
- import { _ as ge } from "./Divider.vue_vue_type_style_index_0_lang-DapqjSGc.js";
13
- import { g as ve } from "./options-JBqnVZUl.js";
14
- import { U as ye } from "./useInputDataStates-CZbdWpyp.js";
15
- function Ce(e) {
16
- return e === void 0;
17
- }
18
- var he = 1, be = 2;
19
- function Re(e, n, s, r) {
20
- var l = s.length, c = l;
21
- if (e == null)
22
- return !c;
23
- for (e = Object(e); l--; ) {
24
- var i = s[l];
25
- if (i[2] ? i[1] !== e[i[0]] : !(i[0] in e))
26
- return !1;
27
- }
28
- for (; ++l < c; ) {
29
- i = s[l];
30
- var o = i[0], g = e[o], d = i[1];
31
- if (i[2]) {
32
- if (g === void 0 && !(o in e))
33
- return !1;
34
- } else {
35
- var I = new ie(), v;
36
- if (!(v === void 0 ? D(d, g, he | be, r, I) : v))
37
- return !1;
38
- }
39
- }
40
- return !0;
41
- }
42
- function V(e) {
43
- return e === e && !fe(e);
44
- }
45
- function Be(e) {
46
- for (var n = le(e), s = n.length; s--; ) {
47
- var r = n[s], l = e[r];
48
- n[s] = [r, l, V(l)];
49
- }
50
- return n;
51
- }
52
- function _(e, n) {
53
- return function(s) {
54
- return s == null ? !1 : s[e] === n && (n !== void 0 || e in Object(s));
55
- };
56
- }
57
- function Ie(e) {
58
- var n = Be(e);
59
- return n.length == 1 && n[0][2] ? _(n[0][0], n[0][1]) : function(s) {
60
- return s === e || Re(s, e, n);
61
- };
62
- }
63
- var Se = 1, Ee = 2;
64
- function we(e, n) {
65
- return O(e) && V(n) ? _(P(e), n) : function(s) {
66
- var r = de(s, e);
67
- return r === void 0 && r === n ? te(s, e) : D(n, r, Se | Ee);
68
- };
69
- }
70
- function ze(e) {
71
- return function(n) {
72
- return n == null ? void 0 : n[e];
73
- };
74
- }
75
- function Ae(e) {
76
- return function(n) {
77
- return ae(n, e);
78
- };
79
- }
80
- function ke(e) {
81
- return O(e) ? ze(P(e)) : Ae(e);
82
- }
83
- function L(e) {
84
- return typeof e == "function" ? e : e == null ? oe : typeof e == "object" ? me(e) ? we(e[0], e[1]) : Ie(e) : ke(e);
85
- }
86
- var Me = "Expected a function";
87
- function Oe(e) {
88
- if (typeof e != "function")
89
- throw new TypeError(Me);
90
- return function() {
91
- var n = arguments;
92
- switch (n.length) {
93
- case 0:
94
- return !e.call(this);
95
- case 1:
96
- return !e.call(this, n[0]);
97
- case 2:
98
- return !e.call(this, n[0], n[1]);
99
- case 3:
100
- return !e.call(this, n[0], n[1], n[2]);
101
- }
102
- return !e.apply(this, n);
103
- };
104
- }
105
- function Pe(e, n) {
106
- if (e == null)
107
- return {};
108
- var s = ue(ce(e), function(r) {
109
- return [r];
110
- });
111
- return n = L(n), re(e, s, function(r, l) {
112
- return n(r, l[0]);
113
- });
114
- }
115
- function De(e, n) {
116
- return Pe(e, Oe(L(n)));
117
- }
118
- const M = ["sm", "md", "lg"], Ve = ["error", "warning"], je = /* @__PURE__ */ T({
119
- ...ve("Input", !1),
120
- __name: "Input",
121
- props: {
122
- id: {},
123
- maxlength: {},
124
- type: {},
125
- placeholder: {},
126
- disabled: { type: Boolean, default: void 0 },
127
- required: { type: Boolean },
128
- modelValue: {},
129
- defaultValue: {},
130
- leading: {},
131
- trailing: {},
132
- clearIcon: { default: "tabler:circle-x" },
133
- trailingCls: {},
134
- clearIconCls: {},
135
- dividerCls: {},
136
- leadingCls: {},
137
- class: {},
138
- allowClear: { type: Boolean },
139
- bordered: { type: Boolean, default: !0 },
140
- size: {},
141
- status: {}
142
- },
143
- emits: ["update:modelValue", "clear", "blur", "focus"],
144
- setup(e, { expose: n, emit: s }) {
145
- const r = e, l = G(), c = s, i = j(r, "modelValue", c, {
146
- defaultValue: r.defaultValue,
147
- passive: r.modelValue === void 0
148
- }), o = ee("input"), g = ne(o, {
149
- variants: {
150
- size: E(M, o),
151
- status: E(Ve, o),
152
- bordered: E("bordered", o)
153
- }
154
- }), d = h(() => r.size && M.includes(r.size) ? r.size : "md"), I = q(), { rootBindings: v, inputBindings: N } = ye({
155
- getDisabled: () => r.disabled,
156
- emit: c,
157
- blurCallBack: (t) => {
158
- const u = t.target;
159
- u != null && u.value && (u.value = i.value);
160
- }
161
- }), U = h(
162
- () => De(
163
- {
164
- ...se(r, "id", "maxlength", "type", "disabled", "required", "placeholder"),
165
- ...I,
166
- ...N.value
167
- },
168
- Ce
169
- )
170
- ), $ = h(() => {
171
- switch (d.value) {
172
- case "sm":
173
- return "2xsm";
174
- default:
175
- return "xsm";
176
- }
177
- }), w = h(() => {
178
- switch (d.value) {
179
- case "sm":
180
- return "2xsm";
181
- case "md":
182
- return "xsm";
183
- default:
184
- return "sm";
185
- }
186
- }), F = () => {
187
- i.value = "", c("clear");
188
- }, f = K();
189
- return n({
190
- input: f,
191
- focus: (t) => {
192
- var u;
193
- return (u = f.value) == null ? void 0 : u.focus(t);
194
- },
195
- blur: () => {
196
- var t;
197
- return (t = f.value) == null ? void 0 : t.blur();
198
- },
199
- select: () => {
200
- var t;
201
- return (t = f.value.input) == null ? void 0 : t.select();
202
- },
203
- setSelectionRange: (t, u, y) => {
204
- var C;
205
- return (C = f.value.input) == null ? void 0 : C.setSelectionRange(t, u, y);
206
- }
207
- }), (t, u) => {
208
- var y;
209
- return m(), b("div", z({
210
- class: [
211
- a(g)({
212
- size: d.value,
213
- status: t.status,
214
- bordered: t.bordered
215
- }),
216
- r.class
217
- ]
218
- }, a(v)), [
219
- l.leading || r.leading ? (m(), b("div", {
220
- key: 0,
221
- class: B([a(p)(a(o), "leading"), t.leadingCls])
222
- }, [
223
- S(t.$slots, "leading", { iconSize: w.value }, () => [
224
- A(k(t.leading), 1)
225
- ])
226
- ], 2)) : R("", !0),
227
- X(x("input", z({
228
- ref_key: "inputRef",
229
- ref: f,
230
- "onUpdate:modelValue": u[0] || (u[0] = (C) => H(i) ? i.value = C : null)
231
- }, U.value, {
232
- class: [a(p)(a(o), "input")]
233
- }), null, 16), [
234
- [J, a(i)]
235
- ]),
236
- l.trailing || r.trailing || t.allowClear ? (m(), b("div", {
237
- key: 1,
238
- class: B([a(p)(a(o), "trailing"), t.trailingCls])
239
- }, [
240
- !t.disabled && t.allowClear && ((y = a(i)) != null && y.length) ? (m(), b(Q, { key: 0 }, [
241
- W(pe, {
242
- icon: t.clearIcon,
243
- size: $.value,
244
- onClick: F,
245
- class: B([a(p)(a(o), "clear_icon"), t.clearIconCls])
246
- }, {
247
- default: Z(() => [
248
- S(t.$slots, "clearIcon")
249
- ]),
250
- _: 3
251
- }, 8, ["icon", "size", "class"]),
252
- l.trailing || r.trailing ? (m(), Y(ge, {
253
- key: 0,
254
- type: "vertical",
255
- class: B([a(p)(a(o), "divider"), t.dividerCls])
256
- }, null, 8, ["class"])) : R("", !0)
257
- ], 64)) : R("", !0),
258
- S(t.$slots, "trailing", { iconSize: w.value }, () => [
259
- A(k(t.trailing), 1)
260
- ])
261
- ], 2)) : R("", !0)
262
- ], 16);
263
- };
264
- }
265
- });
266
- export {
267
- M as I,
268
- je as _,
269
- Ve as a
270
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("vue"),w=require("@vueuse/core"),f=require("@pantograph/utils"),D=require("class-variance-authority"),h=require("./pick-DUYr5oPc.js"),c=require("./_flatRest-B2xTunyg.js"),I=require("./_baseIsEqual-DysaakgW.js"),P=require("./_getTag-DaDHQQf0.js"),M=require("./get-w4jLplqh.js"),N=require("./isArray-3RTyNB5p.js"),O=require("./Icon.vue_vue_type_style_index_0_lang-BrV8amSh.js"),L=require("./Divider.vue_vue_type_style_index_0_lang-DuAAwNmp.js"),T=require("./options-B4iSAKol.js"),F=require("./useInputDataStates-CbRgNQqU.js");function U(e){return e===void 0}var G=1,K=2;function $(e,t,i,s){var u=i.length,d=u;if(e==null)return!d;for(e=Object(e);u--;){var l=i[u];if(l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++u<d;){l=i[u];var a=l[0],g=e[a],p=l[1];if(l[2]){if(g===void 0&&!(a in e))return!1}else{var B=new c.Stack,v;if(!(v===void 0?I.baseIsEqual(p,g,G|K,s,B):v))return!1}}return!0}function S(e){return e===e&&!P.isObject(e)}function x(e){for(var t=c.keys(e),i=t.length;i--;){var s=t[i],u=e[s];t[i]=[s,u,S(u)]}return t}function k(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==void 0||e in Object(i))}}function X(e){var t=x(e);return t.length==1&&t[0][2]?k(t[0][0],t[0][1]):function(i){return i===e||$(i,e,t)}}var H=1,J=2;function Q(e,t){return c.isKey(e)&&S(t)?k(c.toKey(e),t):function(i){var s=M.get(i,e);return s===void 0&&s===t?h.hasIn(i,e):I.baseIsEqual(t,s,H|J)}}function W(e){return function(t){return t==null?void 0:t[e]}}function Y(e){return function(t){return c.baseGet(t,e)}}function Z(e){return c.isKey(e)?W(c.toKey(e)):Y(e)}function R(e){return typeof e=="function"?e:e==null?c.identity:typeof e=="object"?N.isArray(e)?Q(e[0],e[1]):X(e):Z(e)}var j="Expected a function";function ee(e){if(typeof e!="function")throw new TypeError(j);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ne(e,t){if(e==null)return{};var i=c.arrayMap(c.getAllKeysIn(e),function(s){return[s]});return t=R(t),h.basePickBy(e,i,function(s,u){return t(s,u[0])})}function te(e,t){return ne(e,ee(R(t)))}const _=["sm","md","lg"],b=["error","warning"],re=n.defineComponent({...T.getComponentOptions("Input",!1),__name:"Input",props:{id:{},maxlength:{},type:{},placeholder:{},disabled:{type:Boolean,default:void 0},required:{type:Boolean},modelValue:{},defaultValue:{},leading:{},trailing:{},clearIcon:{default:"tabler:circle-x"},trailingCls:{},clearIconCls:{},dividerCls:{},leadingCls:{},class:{},allowClear:{type:Boolean},bordered:{type:Boolean,default:!0},size:{},status:{}},emits:["update:modelValue","clear","blur","focus"],setup(e,{expose:t,emit:i}){const s=e,u=n.useSlots(),d=i,l=w.useVModel(s,"modelValue",d,{defaultValue:s.defaultValue,passive:s.modelValue===void 0}),a=f.getBemBlock("input"),g=D.cva(a,{variants:{size:f.generateVariantClassList(_,a),status:f.generateVariantClassList(b,a),bordered:f.generateVariantClassList("bordered",a)}}),p=n.computed(()=>s.size&&_.includes(s.size)?s.size:"md"),B=n.useAttrs(),{rootBindings:v,inputBindings:q}=F.UseInputDataStates({getDisabled:()=>s.disabled,emit:d,blurCallBack:r=>{const o=r.target;o!=null&&o.value&&(o.value=l.value)}}),z=n.computed(()=>te({...h.pick(s,"id","maxlength","type","disabled","required","placeholder"),...B,...q.value},U)),A=n.computed(()=>{switch(p.value){case"sm":return"2xsm";default:return"xsm"}}),E=n.computed(()=>{switch(p.value){case"sm":return"2xsm";case"md":return"xsm";default:return"sm"}}),V=()=>{l.value="",d("clear")},m=n.ref();return t({input:m,focus:r=>{var o;return(o=m.value)==null?void 0:o.focus(r)},blur:()=>{var r;return(r=m.value)==null?void 0:r.blur()},select:()=>{var r;return(r=m.value.input)==null?void 0:r.select()},setSelectionRange:(r,o,y)=>{var C;return(C=m.value.input)==null?void 0:C.setSelectionRange(r,o,y)}}),(r,o)=>{var y;return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:[n.unref(g)({size:p.value,status:r.status,bordered:r.bordered}),s.class]},n.unref(v)),[u.leading||s.leading?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass([n.unref(f.getBemElement)(n.unref(a),"leading"),r.leadingCls])},[n.renderSlot(r.$slots,"leading",{iconSize:E.value},()=>[n.createTextVNode(n.toDisplayString(r.leading),1)])],2)):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("input",n.mergeProps({ref_key:"inputRef",ref:m,"onUpdate:modelValue":o[0]||(o[0]=C=>n.isRef(l)?l.value=C:null)},z.value,{class:[n.unref(f.getBemElement)(n.unref(a),"input")]}),null,16),[[n.vModelDynamic,n.unref(l)]]),u.trailing||s.trailing||r.allowClear?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([n.unref(f.getBemElement)(n.unref(a),"trailing"),r.trailingCls])},[!r.disabled&&r.allowClear&&((y=n.unref(l))!=null&&y.length)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(O._sfc_main,{icon:r.clearIcon,size:A.value,onClick:V,class:n.normalizeClass([n.unref(f.getBemElement)(n.unref(a),"clear_icon"),r.clearIconCls])},{default:n.withCtx(()=>[n.renderSlot(r.$slots,"clearIcon")]),_:3},8,["icon","size","class"]),u.trailing||s.trailing?(n.openBlock(),n.createBlock(L._sfc_main,{key:0,type:"vertical",class:n.normalizeClass([n.unref(f.getBemElement)(n.unref(a),"divider"),r.dividerCls])},null,8,["class"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),n.renderSlot(r.$slots,"trailing",{iconSize:E.value},()=>[n.createTextVNode(n.toDisplayString(r.trailing),1)])],2)):n.createCommentVNode("",!0)],16)}}});exports.InputSizes=_;exports.InputStatuses=b;exports._sfc_main=re;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),g=require("@pantograph/utils"),T=require("class-variance-authority"),n=require("radix-vue"),y=require("./element-BURaVF00.js"),x=require("./options-B4iSAKol.js"),L=require("./index-BfpYQmzU.js"),O=require("./omit-6FeILhm3.js"),F=require("./pick-DUYr5oPc.js"),z=["sm","md","lg"],M=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],U=e.defineComponent({...x.getComponentOptions("Popover",!1),__name:"Popover",props:{class:{},containerCls:{},containerProps:{},trigger:{default:"hover"},size:{default:"md"},placement:{default:"bottom"},to:{},reversePlacementOnDir:{},autoFocusInside:{type:Boolean},zIndex:{},defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},openDelay:{},closeDelay:{},disabled:{type:Boolean},forceMount:{type:Boolean},sticky:{default:"always"},prioritizePosition:{type:Boolean,default:!0},sideOffset:{},alignOffset:{},collisionBoundary:{}},emits:["update:open","escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(w,{emit:A}){const P=A,h=n.useEmitAsProps(P),o=w,D=g.getBemBlock("popover"),b=g.getBemElement(D,"trigger"),B=g.getBemElement(D,"content"),q=T.cva(B,{variants:{size:g.generateVariantClassList(z,B)}}),C=e.useSlots(),k=e.computed(()=>{var r;const t=y.filterEmpty((r=C.default)==null?void 0:r.call(C))??null,s=t.length===1?t[0]:t;return s?y.isValidElement(s)&&!y.isFragment(s):!0}),S=e.computed(()=>({...F.pick(o,"open","defaultOpen"),...F.pick(h,"onUpdate:open")})),c=e.ref(),$=e.computed(()=>{var p,i,d,m,f;const{to:t,disabled:s,forceMount:r}=o;let u=((p=e.unref(t))==null?void 0:p.$el)??e.unref(t);if(t instanceof Function){const v=((d=(i=c.value)==null?void 0:i.$el)==null?void 0:d.nodeName)!=="#text"?(m=c.value)==null?void 0:m.$el:(f=c.value)==null?void 0:f.$el.nextSibling;u=t(v)}return{to:u,disabled:s,forceMount:r}}),I=e.computed(()=>o.trigger==="hover"?n.HoverCardRoot:n.PopoverRoot),E=e.computed(()=>o.trigger==="hover"?n.HoverCardTrigger:n.PopoverTrigger),R=e.computed(()=>o.trigger==="hover"?n.HoverCardPortal:n.PopoverPortal),_=e.computed(()=>o.trigger==="hover"?n.HoverCardContent:n.PopoverContent),a=L.injectConfigContext(),H=e.computed(()=>{var v;const{sticky:t,prioritizePosition:s,placement:r,sideOffset:u,alignOffset:p}=o;let[i="bottom",d="center"]=((v=r==null?void 0:r.split)==null?void 0:v.call(r,"-"))||["bottom","center"];o.reversePlacementOnDir&&(a!=null&&a.dir.value)&&(a==null?void 0:a.dir.value)===o.reversePlacementOnDir&&(i={right:"left",left:"right"}[i]??i);const m=l=>{o.autoFocusInside||l.preventDefault(),P("closeAutoFocus",l)},f=l=>{o.autoFocusInside||l.preventDefault(),P("openAutoFocus",l)};return{...O.omit(h,"onUpdate:open","closeAutoFocus","openAutoFocus"),...O.omit(o.containerProps,"class"),onCloseAutoFocus:m,onOpenAutoFocus:f,sticky:t,prioritizePosition:s,side:i,align:d,sideOffset:u,alignOffset:p}}),V=t=>{o.trigger==="hover"&&t.stopPropagation()};return(t,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I.value),e.mergeProps({key:k.value},S.value,{openDelay:t.openDelay,closeDelay:t.closeDelay}),{default:e.withCtx(({open:r})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.value),e.mergeProps({asChild:k.value,as:"span",class:[e.unref(b),o.class],onPointerdown:V},t.$attrs,{ref_key:"triggerRef",ref:c}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["asChild","class"])),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R.value),e.normalizeProps(e.guardReactiveProps($.value)),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value),e.mergeProps({style:{zIndex:t.zIndex}},H.value,{class:[e.unref(q)({size:t.size}),t.$attrs.containerClass,t.containerCls]}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:2},1040,["style","class"])),[[e.vShow,r]])]),_:2},1040))]),_:3},16,["openDelay","closeDelay"]))}});exports.PopoverPlacements=M;exports.PopoverSizes=z;exports._sfc_main=U;
@@ -1,153 +0,0 @@
1
- import { defineComponent as K, useSlots as N, computed as s, ref as q, unref as g, createBlock as v, openBlock as P, resolveDynamicComponent as y, mergeProps as O, withCtx as C, renderSlot as b, normalizeProps as G, guardReactiveProps as J, withDirectives as Q, vShow as W } from "vue";
2
- import { getBemBlock as X, getBemElement as k, generateVariantClassList as Y } from "@pantograph/utils";
3
- import { cva as Z } from "class-variance-authority";
4
- import { useEmitAsProps as x, HoverCardRoot as ee, PopoverRoot as oe, HoverCardTrigger as te, PopoverTrigger as re, HoverCardPortal as se, PopoverPortal as ne, HoverCardContent as ae, PopoverContent as ie } from "radix-vue";
5
- import { f as le, a as pe, i as ce } from "./element-CayrDxFe.js";
6
- import { g as ue } from "./options-JBqnVZUl.js";
7
- import { a as fe } from "./index-CKvTY2M1.js";
8
- import { o as w } from "./omit-DB3u1XL5.js";
9
- import { p as $ } from "./pick-BEnuz3iO.js";
10
- const de = ["sm", "md", "lg"], Fe = [
11
- "top",
12
- "top-start",
13
- "top-end",
14
- "bottom",
15
- "bottom-start",
16
- "bottom-end",
17
- "right",
18
- "right-start",
19
- "right-end",
20
- "left",
21
- "left-start",
22
- "left-end"
23
- ], Be = /* @__PURE__ */ K({
24
- ...ue("Popover", !1),
25
- __name: "Popover",
26
- props: {
27
- class: {},
28
- containerCls: {},
29
- containerProps: {},
30
- trigger: { default: "hover" },
31
- size: { default: "md" },
32
- placement: { default: "bottom" },
33
- to: {},
34
- reversePlacementOnDir: {},
35
- autoFocusInside: { type: Boolean },
36
- zIndex: {},
37
- defaultOpen: { type: Boolean },
38
- open: { type: Boolean, default: void 0 },
39
- openDelay: {},
40
- closeDelay: {},
41
- disabled: { type: Boolean },
42
- forceMount: { type: Boolean },
43
- sticky: { default: "always" },
44
- prioritizePosition: { type: Boolean, default: !0 },
45
- sideOffset: {},
46
- alignOffset: {},
47
- collisionBoundary: {}
48
- },
49
- emits: ["update:open", "escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
50
- setup(S, { emit: I }) {
51
- const h = I, F = x(h), o = S, B = X("popover"), R = k(B, "trigger"), z = k(B, "content"), E = Z(z, {
52
- variants: {
53
- size: Y(de, z)
54
- }
55
- }), D = N(), A = s(() => {
56
- var t;
57
- const e = le((t = D.default) == null ? void 0 : t.call(D)) ?? null, r = e.length === 1 ? e[0] : e;
58
- return r ? pe(r) && !ce(r) : !0;
59
- }), H = s(() => ({
60
- ...$(o, "open", "defaultOpen"),
61
- ...$(F, "onUpdate:open")
62
- })), l = q(), _ = s(() => {
63
- var c, n, u, f, d;
64
- const { to: e, disabled: r, forceMount: t } = o;
65
- let p = ((c = g(e)) == null ? void 0 : c.$el) ?? g(e);
66
- if (e instanceof Function) {
67
- const m = ((u = (n = l.value) == null ? void 0 : n.$el) == null ? void 0 : u.nodeName) !== "#text" ? (f = l.value) == null ? void 0 : f.$el : (d = l.value) == null ? void 0 : d.$el.nextSibling;
68
- p = e(m);
69
- }
70
- return {
71
- to: p,
72
- disabled: r,
73
- forceMount: t
74
- };
75
- }), T = s(() => o.trigger === "hover" ? ee : oe), L = s(() => o.trigger === "hover" ? te : re), M = s(() => o.trigger === "hover" ? se : ne), U = s(() => o.trigger === "hover" ? ae : ie), a = fe(), V = s(() => {
76
- var m;
77
- const { sticky: e, prioritizePosition: r, placement: t, sideOffset: p, alignOffset: c } = o;
78
- let [
79
- n = "bottom",
80
- u = "center"
81
- ] = ((m = t == null ? void 0 : t.split) == null ? void 0 : m.call(t, "-")) || ["bottom", "center"];
82
- o.reversePlacementOnDir && (a != null && a.dir.value) && (a == null ? void 0 : a.dir.value) === o.reversePlacementOnDir && (n = {
83
- right: "left",
84
- left: "right"
85
- }[n] ?? n);
86
- const f = (i) => {
87
- o.autoFocusInside || i.preventDefault(), h("closeAutoFocus", i);
88
- }, d = (i) => {
89
- o.autoFocusInside || i.preventDefault(), h("openAutoFocus", i);
90
- };
91
- return {
92
- ...w(F, "onUpdate:open", "closeAutoFocus", "openAutoFocus"),
93
- ...w(o.containerProps, "class"),
94
- onCloseAutoFocus: f,
95
- onOpenAutoFocus: d,
96
- sticky: e,
97
- prioritizePosition: r,
98
- side: n,
99
- align: u,
100
- sideOffset: p,
101
- alignOffset: c
102
- };
103
- }), j = (e) => {
104
- o.trigger === "hover" && e.stopPropagation();
105
- };
106
- return (e, r) => (P(), v(y(T.value), O({
107
- key: A.value
108
- }, H.value, {
109
- openDelay: e.openDelay,
110
- closeDelay: e.closeDelay
111
- }), {
112
- default: C(({ open: t }) => [
113
- (P(), v(y(L.value), O({
114
- asChild: A.value,
115
- as: "span",
116
- class: [g(R), o.class],
117
- onPointerdown: j
118
- }, e.$attrs, {
119
- ref_key: "triggerRef",
120
- ref: l
121
- }), {
122
- default: C(() => [
123
- b(e.$slots, "default")
124
- ]),
125
- _: 3
126
- }, 16, ["asChild", "class"])),
127
- (P(), v(y(M.value), G(J(_.value)), {
128
- default: C(() => [
129
- Q((P(), v(y(U.value), O({
130
- style: { zIndex: e.zIndex }
131
- }, V.value, {
132
- class: [g(E)({ size: e.size }), e.$attrs.containerClass, e.containerCls]
133
- }), {
134
- default: C(() => [
135
- b(e.$slots, "content")
136
- ]),
137
- _: 2
138
- }, 1040, ["style", "class"])), [
139
- [W, t]
140
- ])
141
- ]),
142
- _: 2
143
- }, 1040))
144
- ]),
145
- _: 3
146
- }, 16, ["openDelay", "closeDelay"]));
147
- }
148
- });
149
- export {
150
- de as P,
151
- Be as _,
152
- Fe as a
153
- };
@@ -1,147 +0,0 @@
1
- import { defineComponent as D, createElementBlock as j, openBlock as x, normalizeClass as t, unref as e, createElementVNode as r, ref as S, computed as I, useTemplateRef as d, shallowRef as L, onBeforeUnmount as O, createBlock as U, mergeProps as w, withCtx as b, createVNode as a, renderSlot as q } from "vue";
2
- import { ScrollAreaRoot as F, ScrollAreaViewport as G, ScrollAreaScrollbar as g, ScrollAreaThumb as A, ScrollAreaCorner as J } from "radix-vue";
3
- import { cva as E } from "class-variance-authority";
4
- import { getBemBlock as K, getBemElement as s, generateVariantClassList as c } from "@pantograph/utils";
5
- import { useElementVisibility as _, useIntersectionObserver as Q } from "@vueuse/core";
6
- import { a as W } from "./index-CKvTY2M1.js";
7
- const l = K("scroll_container"), X = /* @__PURE__ */ D({
8
- __name: "Mask",
9
- props: {
10
- topVisible: { type: Boolean },
11
- bottomVisible: { type: Boolean },
12
- endVisible: { type: Boolean },
13
- startVisible: { type: Boolean }
14
- },
15
- setup(m) {
16
- const u = m, o = s(l, "mask"), p = E(o, {
17
- variants: {
18
- topVisible: c("top-visible", o),
19
- bottomVisible: c("bottom-visible", o),
20
- endVisible: c("start-visible", o),
21
- startVisible: c("end-visible", o)
22
- }
23
- });
24
- return (f, n) => (x(), j("div", {
25
- class: t(e(p)(u))
26
- }, [
27
- r("div", {
28
- class: t(e(s)(e(o), "top"))
29
- }, null, 2),
30
- r("div", {
31
- class: t(e(s)(e(o), "bottom"))
32
- }, null, 2),
33
- r("div", {
34
- class: t(e(s)(e(o), "start"))
35
- }, null, 2),
36
- r("div", {
37
- class: t(e(s)(e(o), "end"))
38
- }, null, 2)
39
- ], 2));
40
- }
41
- }), re = /* @__PURE__ */ D({
42
- inheritAttrs: !1,
43
- __name: "ScrollContainer",
44
- props: {
45
- scrollDistance: { default: 10 },
46
- scrollHideDelay: { default: 200 },
47
- dir: {},
48
- type: { default: "hover" },
49
- rootProps: {},
50
- overlay: { type: Boolean, default: !0 }
51
- },
52
- emits: ["loadMore"],
53
- setup(m, { expose: u, emit: o }) {
54
- const p = S(), f = S(), n = m, H = o, P = E(l, {
55
- variants: {
56
- overlay: c("overlay", l)
57
- }
58
- }), v = s(l, "scroll_bar"), V = s(v, "thumb"), M = W(), R = I(() => n.dir ? n.dir : M.dir.value), C = d("top"), T = _(C), h = d("end"), $ = _(h), k = d("start"), z = _(k), B = d("bottom"), y = L(!1), { stop: N } = Q(B, ([{ isIntersecting: i }]) => {
59
- i ? (H("loadMore"), y.value = !0) : y.value = !1;
60
- });
61
- return O(N), u({
62
- container: f,
63
- root: p
64
- }), (i, Y) => (x(), U(e(F), w({
65
- class: [e(P)({ overlay: i.overlay })],
66
- scrollHideDelay: n.scrollHideDelay,
67
- dir: R.value,
68
- type: n.type
69
- }, i.rootProps, {
70
- ref_key: "root",
71
- ref: p
72
- }), {
73
- default: b(() => [
74
- a(e(G), w({
75
- class: e(s)(e(l), "area")
76
- }, i.$attrs, {
77
- ref_key: "wrap",
78
- ref: f,
79
- "as-child": ""
80
- }), {
81
- default: b(() => [
82
- r("div", {
83
- class: t(e(s)(e(l), "area__wrap"))
84
- }, [
85
- q(i.$slots, "default"),
86
- r("div", {
87
- ref_key: "top",
88
- ref: C,
89
- class: t(e(s)(e(l), "top_observer"))
90
- }, null, 2),
91
- r("div", {
92
- ref_key: "end",
93
- ref: h,
94
- class: t(e(s)(e(l), "end_observer"))
95
- }, null, 2),
96
- r("div", {
97
- ref_key: "start",
98
- ref: k,
99
- class: t(e(s)(e(l), "start_observer"))
100
- }, null, 2),
101
- r("div", {
102
- ref_key: "bottom",
103
- ref: B,
104
- class: t(e(s)(e(l), "bottom_observer"))
105
- }, null, 2)
106
- ], 2)
107
- ]),
108
- _: 3
109
- }, 16, ["class"]),
110
- a(X, {
111
- topVisible: e(T),
112
- bottomVisible: y.value,
113
- endVisible: e($),
114
- startVisible: e(z)
115
- }, null, 8, ["topVisible", "bottomVisible", "endVisible", "startVisible"]),
116
- a(e(g), {
117
- class: t(e(v)),
118
- orientation: "vertical"
119
- }, {
120
- default: b(() => [
121
- a(e(A), {
122
- class: t(e(V))
123
- }, null, 8, ["class"])
124
- ]),
125
- _: 1
126
- }, 8, ["class"]),
127
- a(e(g), {
128
- class: t(e(v)),
129
- orientation: "horizontal"
130
- }, {
131
- default: b(() => [
132
- a(e(A), {
133
- class: t(e(V))
134
- }, null, 8, ["class"])
135
- ]),
136
- _: 1
137
- }, 8, ["class"]),
138
- a(e(J))
139
- ]),
140
- _: 3
141
- }, 16, ["class", "scrollHideDelay", "dir", "type"]));
142
- }
143
- }), ae = ["auto", "always", "scroll", "hover"];
144
- export {
145
- ae as S,
146
- re as _
147
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),s=require("radix-vue"),y=require("class-variance-authority"),t=require("@pantograph/utils"),i=require("@vueuse/core"),S=require("./index-BfpYQmzU.js"),l=t.getBemBlock("scroll_container"),w=e.defineComponent({__name:"Mask",props:{topVisible:{type:Boolean},bottomVisible:{type:Boolean},endVisible:{type:Boolean},startVisible:{type:Boolean}},setup(c){const u=c,r=t.getBemElement(l,"mask"),a=y.cva(r,{variants:{topVisible:t.generateVariantClassList("top-visible",r),bottomVisible:t.generateVariantClassList("bottom-visible",r),endVisible:t.generateVariantClassList("start-visible",r),startVisible:t.generateVariantClassList("end-visible",r)}});return(m,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a)(u))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(r),"top"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(r),"bottom"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(r),"start"))},null,2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(r),"end"))},null,2)],2))}}),A=e.defineComponent({inheritAttrs:!1,__name:"ScrollContainer",props:{scrollDistance:{default:10},scrollHideDelay:{default:200},dir:{},type:{default:"hover"},rootProps:{},overlay:{type:Boolean,default:!0}},emits:["loadMore"],setup(c,{expose:u,emit:r}){const a=e.ref(),m=e.ref(),n=c,_=r,E=y.cva(l,{variants:{overlay:t.generateVariantClassList("overlay",l)}}),f=t.getBemElement(l,"scroll_bar"),p=t.getBemElement(f,"thumb"),B=S.injectConfigContext(),g=e.computed(()=>n.dir?n.dir:B.dir.value),b=e.useTemplateRef("top"),h=i.useElementVisibility(b),V=e.useTemplateRef("end"),N=i.useElementVisibility(V),v=e.useTemplateRef("start"),z=i.useElementVisibility(v),C=e.useTemplateRef("bottom"),d=e.shallowRef(!1),{stop:k}=i.useIntersectionObserver(C,([{isIntersecting:o}])=>{o?(_("loadMore"),d.value=!0):d.value=!1});return e.onBeforeUnmount(k),u({container:m,root:a}),(o,x)=>(e.openBlock(),e.createBlock(e.unref(s.ScrollAreaRoot),e.mergeProps({class:[e.unref(E)({overlay:o.overlay})],scrollHideDelay:n.scrollHideDelay,dir:g.value,type:n.type},o.rootProps,{ref_key:"root",ref:a}),{default:e.withCtx(()=>[e.createVNode(e.unref(s.ScrollAreaViewport),e.mergeProps({class:e.unref(t.getBemElement)(e.unref(l),"area")},o.$attrs,{ref_key:"wrap",ref:m,"as-child":""}),{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(l),"area__wrap"))},[e.renderSlot(o.$slots,"default"),e.createElementVNode("div",{ref_key:"top",ref:b,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(l),"top_observer"))},null,2),e.createElementVNode("div",{ref_key:"end",ref:V,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(l),"end_observer"))},null,2),e.createElementVNode("div",{ref_key:"start",ref:v,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(l),"start_observer"))},null,2),e.createElementVNode("div",{ref_key:"bottom",ref:C,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(l),"bottom_observer"))},null,2)],2)]),_:3},16,["class"]),e.createVNode(w,{topVisible:e.unref(h),bottomVisible:d.value,endVisible:e.unref(N),startVisible:e.unref(z)},null,8,["topVisible","bottomVisible","endVisible","startVisible"]),e.createVNode(e.unref(s.ScrollAreaScrollbar),{class:e.normalizeClass(e.unref(f)),orientation:"vertical"},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ScrollAreaThumb),{class:e.normalizeClass(e.unref(p))},null,8,["class"])]),_:1},8,["class"]),e.createVNode(e.unref(s.ScrollAreaScrollbar),{class:e.normalizeClass(e.unref(f)),orientation:"horizontal"},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ScrollAreaThumb),{class:e.normalizeClass(e.unref(p))},null,8,["class"])]),_:1},8,["class"]),e.createVNode(e.unref(s.ScrollAreaCorner))]),_:3},16,["class","scrollHideDelay","dir","type"]))}}),T=["auto","always","scroll","hover"];exports.ScrollContainerTypes=T;exports._sfc_main=A;