@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.
- package/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-4bWnl8i0.js → ActionButton.vue_vue_type_script_setup_true_lang-DgyV4xRm.js} +1 -1
- 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
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-BSPB5uP9.js → Alert.vue_vue_type_style_index_0_lang-DxbZ0Dgp.js} +3 -3
- package/dist/{Alert.vue_vue_type_style_index_0_lang-De8BdiEm.js → Alert.vue_vue_type_style_index_0_lang-tp9Yuyhx.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- 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
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-CrIwlgJN.js → Avatar.vue_vue_type_style_index_0_lang-C6nX1g5s.js} +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-CvnE7Srj.js → Badge.vue_vue_type_script_setup_true_lang-C9YYaZPq.js} +1 -1
- 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
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-eeWTMdbl.js → BaseButton.vue_vue_type_style_index_0_lang-CDwjubhE.js} +1 -1
- 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
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-B6PUOUfI.js → Button.vue_vue_type_script_setup_true_lang-BNTreTjC.js} +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DjzpN9q5.js → Button.vue_vue_type_script_setup_true_lang-CvISLevL.js} +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- 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
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-BoCylzCv.js → Checkbox.vue_vue_type_style_index_0_lang-DmYIG1dJ.js} +1 -1
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-DkdkKJvb.js → Chip.vue_vue_type_style_index_0_lang-D9b9CzL-.js} +1 -1
- 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
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-Cn0SS405.js → ChipGroup.vue_vue_type_style_index_0_lang-CHpFQGo2.js} +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-DXgB3D2F.js → ChipGroup.vue_vue_type_style_index_0_lang-uLOZBssn.js} +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-OlYb1GsW.js → ColorPicker.vue_vue_type_style_index_0_lang-BFy2WG4I.js} +2 -2
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-BJqIuqb1.js → ColorPicker.vue_vue_type_style_index_0_lang-DiLY5TEe.js} +1 -1
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DmhhCVv7.js → ColorSwatch.vue_vue_type_style_index_0_lang-CUk1dzLL.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-B35b1BsJ.js → ColorSwatch.vue_vue_type_style_index_0_lang-ena7zgve.js} +3 -3
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CUBuxVaq.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-BFapju8t.js} +5 -5
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-CYLmaqeI.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-qPcgpY1d.js} +1 -1
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- 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
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-YWVLXFVc.js → ColorTrigger.vue_vue_type_style_index_0_lang-DCR5hP83.js} +1 -1
- package/dist/DataTable/DataTable.model.d.ts +4 -1
- package/dist/DataTable/index.d.ts +2 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/DataTable/types.d.ts +69 -0
- package/dist/DataTable/{useColumn.d.ts → useCell.d.ts} +1 -2
- package/dist/DataTable/useCol.d.ts +11 -0
- package/dist/DataTable/useColumnWrap.d.ts +1 -1
- package/dist/DataTable/useSelection.d.ts +28 -0
- package/dist/DataTable/useSort.d.ts +21 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-ATKG2Cmd.js +1 -0
- package/dist/DataTable.vue_vue_type_style_index_0_lang-DrlPDQwn.js +972 -0
- package/dist/DropZone/DropZone.d.ts +53 -0
- package/dist/DropZone/index.d.ts +2 -1
- package/dist/DropZone/index.js +7 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/DropZone.vue_vue_type_style_index_0_lang-CVlC2HPc.js +1 -0
- package/dist/DropZone.vue_vue_type_style_index_0_lang-DswnAgcQ.js +121 -0
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-BxvHC70e.js → FloatButton.vue_vue_type_script_setup_true_lang-B0H9wD6k.js} +2 -2
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-COenBFvO.js → FloatButton.vue_vue_type_script_setup_true_lang-Bbt9lIzt.js} +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- 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
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CwxMftZ5.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DiOcyHlU.js} +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- 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
- 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
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- 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
- 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
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-DjRN5aRj.js → Indicator.vue_vue_type_script_setup_true_lang-B8kmhRfQ.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-RPFjQEzE.js → Indicator.vue_vue_type_script_setup_true_lang-BzfzbSZa.js} +1 -1
- package/dist/Input/Input.model.d.ts +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/Input.vue_vue_type_style_index_0_lang-DCCIX52B.js +1 -0
- package/dist/Input.vue_vue_type_style_index_0_lang-DhUwuI6B.js +199 -0
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- 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
- package/dist/{Menu.vue_vue_type_style_index_0_lang-BVNhKBcu.js → Menu.vue_vue_type_style_index_0_lang-DRWb6YFs.js} +3 -3
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-CFAYIAUF.js +153 -0
- package/dist/Popover.vue_vue_type_style_index_0_lang-CuBS3grq.js +1 -0
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-BsA4i2NS.js → RadioGroup.vue_vue_type_script_setup_true_lang-cFRkXOQf.js} +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-B9tmAIEG.js → RadioGroup.vue_vue_type_script_setup_true_lang-lWkHiWdf.js} +1 -1
- package/dist/ScrollContainer/ScrollContainer.d.ts +247 -1
- package/dist/ScrollContainer/index.js +5 -4
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/ScrollContainer.model-DPWJjLfW.js +4 -0
- package/dist/ScrollContainer.model-Tt-6E8TA.js +1 -0
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-C22K1mpy.js +1 -0
- package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DcxqgHqY.js +173 -0
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-mkO4UH9N.js → Switch.vue_vue_type_style_index_0_lang-6gVnb9xl.js} +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-D03EmiSs.js → Switch.vue_vue_type_style_index_0_lang-Q8bdnZwm.js} +1 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-CjNYs1Lo.js +1 -0
- package/dist/THead.vue_vue_type_style_index_0_lang-CzOa1Qzl.js +190 -0
- package/dist/Table/Tr.d.ts +5 -0
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tooltip/Tooltip.d.ts +33 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/Tooltip/index.js +7 -0
- package/dist/Tooltip/index.umd.cjs +1 -0
- package/dist/Tooltip/register.d.ts +3 -0
- package/dist/Tooltip.vue_vue_type_script_setup_true_lang-DWMPc3HZ.js +1 -0
- package/dist/Tooltip.vue_vue_type_script_setup_true_lang-DX19Sbqt.js +88 -0
- package/dist/Tree/Tree.d.ts +2 -1
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-C88TjWts.js +504 -0
- package/dist/Tree.vue_vue_type_style_index_0_lang-DHQevJVn.js +1 -0
- package/dist/_baseIteratee-BBuodSH6.js +215 -0
- package/dist/_baseIteratee-CDuwB1bO.js +1 -0
- package/dist/_flatRest-DfF7R94v.js +1 -0
- package/dist/{_flatRest-Bw7fWA39.js → _flatRest-TqrGvOlu.js} +16 -12
- package/dist/{cloneDeep-unwWx7xF.js → cloneDeep-BJojf7NO.js} +1 -1
- package/dist/cloneDeep-DaX9li9z.js +1 -0
- package/dist/{get-w4jLplqh.js → get-CDLMdUvE.js} +1 -1
- package/dist/{get-FzuQyzCL.js → get-CukCUUmn.js} +1 -1
- package/dist/index.js +126 -121
- package/dist/index.umd.cjs +1 -1
- package/dist/{omit-6FeILhm3.js → omit-BTWlW6dc.js} +1 -1
- package/dist/{omit-DB3u1XL5.js → omit-BYRdzoed.js} +15 -15
- package/dist/{pick-DUYr5oPc.js → pick-CbcKnkja.js} +1 -1
- package/dist/{pick-BEnuz3iO.js → pick-CyXixg42.js} +1 -1
- package/dist/style/index.css +1 -1
- package/dist/{uniq-BoseFDe4.js → uniq-BkI6s4BR.js} +1 -1
- package/dist/{uniq-Yl5OObL1.js → uniq-FpLq1Xk8.js} +1 -1
- package/package.json +8 -3
- package/dist/DataTable.vue_vue_type_style_index_0_lang-BP5c0rda.js +0 -1
- package/dist/DataTable.vue_vue_type_style_index_0_lang-C-7s05L-.js +0 -786
- package/dist/Input.vue_vue_type_style_index_0_lang-CCKpwRTa.js +0 -270
- package/dist/Input.vue_vue_type_style_index_0_lang-Ct9RhrT6.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-B695YDJE.js +0 -1
- package/dist/Popover.vue_vue_type_style_index_0_lang-ByhaxoQo.js +0 -153
- package/dist/ScrollContainer.model-BzodTc4p.js +0 -147
- package/dist/ScrollContainer.model-VXisa1jV.js +0 -1
- package/dist/THead.vue_vue_type_style_index_0_lang-B4yro5EP.js +0 -180
- package/dist/THead.vue_vue_type_style_index_0_lang-C1I8ZLa2.js +0 -1
- package/dist/Tree.vue_vue_type_style_index_0_lang-DKtLWacR.js +0 -501
- package/dist/Tree.vue_vue_type_style_index_0_lang-DnnW2v03.js +0 -1
- package/dist/_baseIsEqual-B1yr67CO.js +0 -145
- package/dist/_baseIsEqual-DysaakgW.js +0 -1
- package/dist/_flatRest-B2xTunyg.js +0 -1
- package/dist/cloneDeep-CNkGIW_B.js +0 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { defineComponent as $, createElementBlock as F, openBlock as p, normalizeClass as l, unref as e, createElementVNode as a, computed as G, useTemplateRef as f, shallowRef as h, onBeforeUnmount as J, ref as _, onMounted as K, createBlock as R, mergeProps as E, withCtx as v, createVNode as u, createCommentVNode as P, renderSlot as Q, Fragment as Z } from "vue";
|
|
2
|
+
import { ScrollAreaRoot as x, ScrollAreaViewport as ee, ScrollAreaScrollbar as N, ScrollAreaThumb as X, ScrollAreaCorner as se } from "radix-vue";
|
|
3
|
+
import { cva as T } from "class-variance-authority";
|
|
4
|
+
import { getBemBlock as le, getBemElement as o, generateVariantClassList as n } from "@pantograph/utils";
|
|
5
|
+
import { useElementVisibility as w, useIntersectionObserver as oe, useDebounceFn as re, useResizeObserver as Y } from "@vueuse/core";
|
|
6
|
+
import { u as te } from "./index-CKvTY2M1.js";
|
|
7
|
+
const r = le("scroll_container"), ae = /* @__PURE__ */ $({
|
|
8
|
+
__name: "Mask",
|
|
9
|
+
props: {
|
|
10
|
+
topVisible: { type: Boolean },
|
|
11
|
+
bottomVisible: { type: Boolean },
|
|
12
|
+
endVisible: { type: Boolean },
|
|
13
|
+
startVisible: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(d) {
|
|
16
|
+
const b = d, t = o(r, "mask"), c = T(t, {
|
|
17
|
+
variants: {
|
|
18
|
+
topVisible: n("top-visible", t),
|
|
19
|
+
bottomVisible: n("bottom-visible", t),
|
|
20
|
+
startVisible: n("start-visible", t),
|
|
21
|
+
endVisible: n("end-visible", t)
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return (C, k) => (p(), F("div", {
|
|
25
|
+
class: l(e(c)(b))
|
|
26
|
+
}, [
|
|
27
|
+
a("div", {
|
|
28
|
+
class: l(e(o)(e(t), "top"))
|
|
29
|
+
}, null, 2),
|
|
30
|
+
a("div", {
|
|
31
|
+
class: l(e(o)(e(t), "bottom"))
|
|
32
|
+
}, null, 2),
|
|
33
|
+
a("div", {
|
|
34
|
+
class: l(e(o)(e(t), "start"))
|
|
35
|
+
}, null, 2),
|
|
36
|
+
a("div", {
|
|
37
|
+
class: l(e(o)(e(t), "end"))
|
|
38
|
+
}, null, 2)
|
|
39
|
+
], 2));
|
|
40
|
+
}
|
|
41
|
+
}), de = /* @__PURE__ */ $({
|
|
42
|
+
inheritAttrs: !1,
|
|
43
|
+
__name: "ScrollContainer",
|
|
44
|
+
props: {
|
|
45
|
+
scrollDistance: { default: 10 },
|
|
46
|
+
scrollHideDelay: { default: 200 },
|
|
47
|
+
dir: {},
|
|
48
|
+
type: { default: "hover" },
|
|
49
|
+
hasMask: { type: Boolean },
|
|
50
|
+
scrollbarCls: {},
|
|
51
|
+
thumbCls: {},
|
|
52
|
+
cornerCls: {},
|
|
53
|
+
rootProps: {},
|
|
54
|
+
overlay: { type: Boolean, default: !0 }
|
|
55
|
+
},
|
|
56
|
+
emits: ["loadMore"],
|
|
57
|
+
setup(d, { expose: b, emit: t }) {
|
|
58
|
+
const c = d, C = t, k = T(r, {
|
|
59
|
+
variants: {
|
|
60
|
+
overlay: n("overlay", r),
|
|
61
|
+
isOverflowX: n("overflowed-x", r),
|
|
62
|
+
isOverflowY: n("overflowed-y", r)
|
|
63
|
+
}
|
|
64
|
+
}), m = o(r, "scroll_bar"), B = o(m, "thumb"), { config: W } = te(), I = G(() => c.dir ? c.dir : W.dir.value), g = f("top"), L = w(g), O = f("end"), U = w(O), S = f("start"), j = w(S), M = f("bottom"), y = h(!1), { stop: q } = oe(M, ([{ isIntersecting: s }]) => {
|
|
65
|
+
s ? (C("loadMore"), y.value = !0) : y.value = !1;
|
|
66
|
+
});
|
|
67
|
+
J(q);
|
|
68
|
+
const i = _(), A = _(), D = _(), H = h(!1), z = h(!1), V = re(() => {
|
|
69
|
+
var s;
|
|
70
|
+
e((s = i.value) == null ? void 0 : s.viewport) && (H.value = e(i.value.viewport).offsetWidth < e(i.value.viewport).scrollWidth, z.value = e(i.value.viewport).offsetHeight < e(i.value.viewport).scrollHeight);
|
|
71
|
+
}, 10);
|
|
72
|
+
return K(() => V()), Y(i, V), Y(D, V), b({
|
|
73
|
+
container: A,
|
|
74
|
+
root: i
|
|
75
|
+
}), (s, ie) => (p(), R(e(x), E({
|
|
76
|
+
class: [
|
|
77
|
+
e(k)({
|
|
78
|
+
overlay: s.overlay,
|
|
79
|
+
isOverflowX: H.value,
|
|
80
|
+
isOverflowY: z.value
|
|
81
|
+
})
|
|
82
|
+
],
|
|
83
|
+
scrollHideDelay: c.scrollHideDelay,
|
|
84
|
+
dir: I.value,
|
|
85
|
+
type: c.type
|
|
86
|
+
}, s.rootProps, {
|
|
87
|
+
ref_key: "root",
|
|
88
|
+
ref: i
|
|
89
|
+
}), {
|
|
90
|
+
default: v(() => [
|
|
91
|
+
u(e(ee), E({
|
|
92
|
+
class: e(o)(e(r), "area")
|
|
93
|
+
}, s.$attrs, {
|
|
94
|
+
ref_key: "container",
|
|
95
|
+
ref: A,
|
|
96
|
+
"as-child": ""
|
|
97
|
+
}), {
|
|
98
|
+
default: v(() => [
|
|
99
|
+
a("div", {
|
|
100
|
+
class: l(e(o)(e(r), "area__wrap")),
|
|
101
|
+
ref_key: "wrap",
|
|
102
|
+
ref: D
|
|
103
|
+
}, [
|
|
104
|
+
Q(s.$slots, "default"),
|
|
105
|
+
s.hasMask ? (p(), F(Z, { key: 0 }, [
|
|
106
|
+
a("div", {
|
|
107
|
+
ref_key: "top",
|
|
108
|
+
ref: g,
|
|
109
|
+
class: l(e(o)(e(r), "top_observer"))
|
|
110
|
+
}, null, 2),
|
|
111
|
+
a("div", {
|
|
112
|
+
ref_key: "end",
|
|
113
|
+
ref: O,
|
|
114
|
+
class: l(e(o)(e(r), "end_observer"))
|
|
115
|
+
}, null, 2),
|
|
116
|
+
a("div", {
|
|
117
|
+
ref_key: "start",
|
|
118
|
+
ref: S,
|
|
119
|
+
class: l(e(o)(e(r), "start_observer"))
|
|
120
|
+
}, null, 2),
|
|
121
|
+
a("div", {
|
|
122
|
+
ref_key: "bottom",
|
|
123
|
+
ref: M,
|
|
124
|
+
class: l(e(o)(e(r), "bottom_observer"))
|
|
125
|
+
}, null, 2)
|
|
126
|
+
], 64)) : P("", !0)
|
|
127
|
+
], 2)
|
|
128
|
+
]),
|
|
129
|
+
_: 3
|
|
130
|
+
}, 16, ["class"]),
|
|
131
|
+
s.hasMask ? (p(), R(ae, {
|
|
132
|
+
key: 0,
|
|
133
|
+
topVisible: e(L),
|
|
134
|
+
bottomVisible: y.value,
|
|
135
|
+
endVisible: e(U),
|
|
136
|
+
startVisible: e(j)
|
|
137
|
+
}, null, 8, ["topVisible", "bottomVisible", "endVisible", "startVisible"])) : P("", !0),
|
|
138
|
+
u(e(N), {
|
|
139
|
+
class: l([e(m), s.scrollbarCls]),
|
|
140
|
+
orientation: "vertical",
|
|
141
|
+
ref: "vertical"
|
|
142
|
+
}, {
|
|
143
|
+
default: v(() => [
|
|
144
|
+
u(e(X), {
|
|
145
|
+
class: l([e(B), s.thumbCls])
|
|
146
|
+
}, null, 8, ["class"])
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}, 8, ["class"]),
|
|
150
|
+
u(e(N), {
|
|
151
|
+
class: l([e(m), s.scrollbarCls]),
|
|
152
|
+
orientation: "horizontal",
|
|
153
|
+
ref: "horizontal"
|
|
154
|
+
}, {
|
|
155
|
+
default: v(() => [
|
|
156
|
+
u(e(X), {
|
|
157
|
+
class: l([e(B), s.thumbCls])
|
|
158
|
+
}, null, 8, ["class"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["class"]),
|
|
162
|
+
u(e(se), {
|
|
163
|
+
ref: "corner",
|
|
164
|
+
class: l(s.cornerCls)
|
|
165
|
+
}, null, 8, ["class"])
|
|
166
|
+
]),
|
|
167
|
+
_: 3
|
|
168
|
+
}, 16, ["class", "scrollHideDelay", "dir", "type"]));
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
export {
|
|
172
|
+
de as _
|
|
173
|
+
};
|
package/dist/Switch/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Switch.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Switch.vue_vue_type_style_index_0_lang-Q8bdnZwm.js");exports.Switch=e._sfc_main;exports.SwitchSizes=e.SwitchSizes;exports.default=e._sfc_main;
|
|
@@ -2,7 +2,7 @@ import { defineComponent as w, useSlots as $, computed as c, createElementBlock
|
|
|
2
2
|
import { getBemBlock as _, generateVariantClassList as u, usePCId as E, getBemElement as n } from "@pantograph/utils";
|
|
3
3
|
import { cva as N } from "class-variance-authority";
|
|
4
4
|
import { useEmitAsProps as D, SwitchRoot as A, SwitchThumb as L } from "radix-vue";
|
|
5
|
-
import { o as U } from "./omit-
|
|
5
|
+
import { o as U } from "./omit-BYRdzoed.js";
|
|
6
6
|
import { g as q } from "./options-JBqnVZUl.js";
|
|
7
7
|
import "@iconify/vue";
|
|
8
8
|
import "./Icon.vue_vue_type_style_index_0_lang-D2A2tkHI.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t=require("@pantograph/utils"),v=require("class-variance-authority"),a=require("radix-vue"),b=require("./omit-
|
|
1
|
+
"use strict";const e=require("vue"),t=require("@pantograph/utils"),v=require("class-variance-authority"),a=require("radix-vue"),b=require("./omit-BTWlW6dc.js"),S=require("./options-B4iSAKol.js");require("@iconify/vue");require("./Icon.vue_vue_type_style_index_0_lang-BrV8amSh.js");const g=require("./useInputDataStates-CbRgNQqU.js"),d=["2xsm","xsm","sm"],z=["for"],E=e.defineComponent({...S.getComponentOptions("Switch"),__name:"Switch",props:{size:{default:"xsm"},class:{},rootCls:{},labelCls:{},label:{},defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},required:{type:Boolean,default:void 0},name:{},id:{},value:{},as:{}},emits:["update:checked","blur","focus"],setup(m,{emit:f}){const o=m,i=f,p=a.useEmitAsProps(i),s=t.getBemBlock("switch"),h=v.cva(s,{variants:{size:t.generateVariantClassList(d,s),innerText:t.generateVariantClassList("inner-text",s),innerIcon:t.generateVariantClassList("inner-icon",s)}}),l=e.useSlots(),c=e.computed(()=>o.id??t.usePCId(s)),{rootBindings:k,inputBindings:B}=g.UseInputDataStates({getDisabled:()=>o.disabled,emit:i}),C=e.computed(()=>({...b.omit(o,"size","class","id","rootCls","labelCls","label"),...p,id:c.value,...B.value})),r=e.computed(()=>o.size==="xsm"?"2xsm":"xsm"),u=e.computed(()=>!!(l.label||o.label));return(n,V)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:u.value,class:[e.unref(t.getBemElement)(e.unref(s),"root"),o.rootCls]},e.unref(k)),[e.createVNode(e.unref(a.SwitchRoot),e.mergeProps({class:[e.unref(h)({size:n.size,innerText:!!(l.checkedText||l.uncheckedText),innerIcon:!!(l.checkedIcon||l.uncheckedIcon)}),o.class]},C.value),{default:e.withCtx(()=>[e.createVNode(e.unref(a.SwitchThumb),{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"thumb"))},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"thumb",{size:r.value})]),_:3},8,["class"]),["xsm","sm"].includes(n.size)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"inner"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"inner__checked"))},[e.renderSlot(n.$slots,"checkedText",{},()=>[e.renderSlot(n.$slots,"checkedIcon",{size:r.value})])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"inner__unchecked"))},[e.renderSlot(n.$slots,"uncheckedText",{},()=>[e.renderSlot(n.$slots,"uncheckedIcon",{size:r.value})])],2)],2)):e.createCommentVNode("",!0)]),_:3},16,["class"]),u.value?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass([e.unref(t.getBemElement)(e.unref(s),"label"),n.labelCls]),for:c.value},[e.renderSlot(n.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)])],10,z)):e.createCommentVNode("",!0)],16))}});exports.SwitchSizes=d;exports._sfc_main=E;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),t=require("@pantograph/utils"),p=require("class-variance-authority"),i=require("./options-B4iSAKol.js"),m=["lg","xlg"],c=t.getBemBlock("table"),u=e.defineComponent({...i.getComponentOptions("Table"),__name:"Table",props:{size:{default:"lg"},class:{}},setup(o){const l=o,s=p.cva(c,{variants:{size:t.generateVariantClassList(m,c)}});return(a,n)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass([e.unref(s)({size:a.size}),l.class])},[e.renderSlot(a.$slots,"default")],2))}}),d=e.defineComponent({...i.getComponentOptions("Th"),__name:"Th",props:{class:{},size:{},selection:{type:Boolean}},setup(o){const l=o,s=t.getBemElement(c,"th"),a=p.cva(s,{variants:{size:t.generateVariantClassList(m,s),selection:t.generateVariantClassList("selection",s)}});return(n,r)=>(e.openBlock(),e.createElementBlock("th",{class:e.normalizeClass([e.unref(a)({size:n.size,selection:n.selection}),l.class])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"content"))},[e.renderSlot(n.$slots,"default")],2)],2))}}),C=e.defineComponent({...i.getComponentOptions("Td"),__name:"Td",props:{class:{},size:{},empty:{type:Boolean},wrap:{type:Boolean},lazyLoadObserver:{type:Boolean}},setup(o){const l=o,s=t.getBemElement(c,"td"),a=p.cva(s,{variants:{size:t.generateVariantClassList(m,s),lazyLoadObserver:t.generateVariantClassList("lazy-load-observer",s),wrap:t.generateVariantClassList("wrap",s)}}),n=e.useSlots();return(r,z)=>(e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass([e.unref(a)({size:r.size,lazyLoadObserver:r.lazyLoadObserver,wrap:r.wrap}),{paragraph:r.wrap},l.class])},[r.empty?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"empty"))},[e.renderSlot(r.$slots,"default")],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(r.$slots,"default"),n.absoluteAction?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t.getBemElement)(e.unref(s),"absolute_action"))},[e.renderSlot(r.$slots,"absoluteAction")],2)):e.createCommentVNode("",!0)],64))],2))}}),y=["onClick","onDblclick","onContextmenu","onMouseenter","onMouseleave"],f=e.defineComponent({...i.getComponentOptions("Tr"),__name:"Tr",props:{class:{},zebra:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},lazyLoadObserver:{type:Boolean},onClick:{type:Function},onDblclick:{type:Function},onContextmenu:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function}},setup(o){const l=o,s=t.getBemElement(c,"tr"),a=p.cva(s,{variants:{zebra:t.generateVariantClassList("zebra",s),empty:t.generateVariantClassList("empty",s),checked:t.generateVariantClassList("checked",s),lazyLoadObserver:t.generateVariantClassList("lazy-load-observer",s)}});return(n,r)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass([e.unref(a)({zebra:n.zebra,empty:n.empty,checked:n.checked,lazyLoadObserver:n.lazyLoadObserver}),l.class]),onClick:n.onClick,onDblclick:n.onDblclick,onContextmenu:n.onContextmenu,onMouseenter:n.onMouseenter,onMouseleave:n.onMouseleave},[e.renderSlot(n.$slots,"default")],42,y))}}),k=e.defineComponent({...i.getComponentOptions("TBody"),__name:"TBody",props:{class:{}},setup(o){const l=o,s=t.getBemElement(c,"tbody");return(a,n)=>(e.openBlock(),e.createElementBlock("tbody",{class:e.normalizeClass([e.unref(s),l.class])},[e.renderSlot(a.$slots,"default")],2))}}),B=e.defineComponent({...i.getComponentOptions("THead"),__name:"THead",props:{class:{},sticky:{type:Boolean}},setup(o){const l=o,s=t.getBemElement(c,"thead"),a=p.cva(s,{variants:{sticky:t.generateVariantClassList("sticky",s)}});return(n,r)=>(e.openBlock(),e.createElementBlock("thead",{class:e.normalizeClass([e.unref(a)({sticky:n.sticky}),l.class])},[e.renderSlot(n.$slots,"default")],2))}});exports.TableSizes=m;exports._sfc_main=u;exports._sfc_main$1=d;exports._sfc_main$2=C;exports._sfc_main$3=f;exports._sfc_main$4=k;exports._sfc_main$5=B;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { defineComponent as m, createElementBlock as c, openBlock as i, normalizeClass as p, unref as a, renderSlot as u, createElementVNode as f, useSlots as k, Fragment as h, createCommentVNode as C } from "vue";
|
|
2
|
+
import { getBemBlock as B, generateVariantClassList as l, getBemElement as d } from "@pantograph/utils";
|
|
3
|
+
import { cva as z } from "class-variance-authority";
|
|
4
|
+
import { g as b } from "./options-JBqnVZUl.js";
|
|
5
|
+
const v = ["lg", "xlg"], y = B("table"), M = /* @__PURE__ */ m({
|
|
6
|
+
...b("Table"),
|
|
7
|
+
__name: "Table",
|
|
8
|
+
props: {
|
|
9
|
+
size: { default: "lg" },
|
|
10
|
+
class: {}
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
const n = t, e = z(y, {
|
|
14
|
+
variants: {
|
|
15
|
+
size: l(v, y)
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
return (o, s) => (i(), c("table", {
|
|
19
|
+
class: p([
|
|
20
|
+
a(e)({
|
|
21
|
+
size: o.size
|
|
22
|
+
}),
|
|
23
|
+
n.class
|
|
24
|
+
])
|
|
25
|
+
}, [
|
|
26
|
+
u(o.$slots, "default")
|
|
27
|
+
], 2));
|
|
28
|
+
}
|
|
29
|
+
}), w = /* @__PURE__ */ m({
|
|
30
|
+
...b("Th"),
|
|
31
|
+
__name: "Th",
|
|
32
|
+
props: {
|
|
33
|
+
class: {},
|
|
34
|
+
size: {},
|
|
35
|
+
selection: { type: Boolean }
|
|
36
|
+
},
|
|
37
|
+
setup(t) {
|
|
38
|
+
const n = t, e = d(y, "th"), o = z(e, {
|
|
39
|
+
variants: {
|
|
40
|
+
size: l(v, e),
|
|
41
|
+
selection: l("selection", e)
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return (s, r) => (i(), c("th", {
|
|
45
|
+
class: p([
|
|
46
|
+
a(o)({
|
|
47
|
+
size: s.size,
|
|
48
|
+
selection: s.selection
|
|
49
|
+
}),
|
|
50
|
+
n.class
|
|
51
|
+
])
|
|
52
|
+
}, [
|
|
53
|
+
f("div", {
|
|
54
|
+
class: p(a(d)(a(e), "content"))
|
|
55
|
+
}, [
|
|
56
|
+
u(s.$slots, "default")
|
|
57
|
+
], 2)
|
|
58
|
+
], 2));
|
|
59
|
+
}
|
|
60
|
+
}), F = /* @__PURE__ */ m({
|
|
61
|
+
...b("Td"),
|
|
62
|
+
__name: "Td",
|
|
63
|
+
props: {
|
|
64
|
+
class: {},
|
|
65
|
+
size: {},
|
|
66
|
+
empty: { type: Boolean },
|
|
67
|
+
wrap: { type: Boolean },
|
|
68
|
+
lazyLoadObserver: { type: Boolean }
|
|
69
|
+
},
|
|
70
|
+
setup(t) {
|
|
71
|
+
const n = t, e = d(y, "td"), o = z(e, {
|
|
72
|
+
variants: {
|
|
73
|
+
size: l(v, e),
|
|
74
|
+
lazyLoadObserver: l("lazy-load-observer", e),
|
|
75
|
+
wrap: l("wrap", e)
|
|
76
|
+
}
|
|
77
|
+
}), s = k();
|
|
78
|
+
return (r, _) => (i(), c("td", {
|
|
79
|
+
class: p([
|
|
80
|
+
a(o)({
|
|
81
|
+
size: r.size,
|
|
82
|
+
lazyLoadObserver: r.lazyLoadObserver,
|
|
83
|
+
wrap: r.wrap
|
|
84
|
+
}),
|
|
85
|
+
{ paragraph: r.wrap },
|
|
86
|
+
n.class
|
|
87
|
+
])
|
|
88
|
+
}, [
|
|
89
|
+
r.empty ? (i(), c("div", {
|
|
90
|
+
key: 0,
|
|
91
|
+
class: p(a(d)(a(e), "empty"))
|
|
92
|
+
}, [
|
|
93
|
+
u(r.$slots, "default")
|
|
94
|
+
], 2)) : (i(), c(h, { key: 1 }, [
|
|
95
|
+
u(r.$slots, "default"),
|
|
96
|
+
s.absoluteAction ? (i(), c("div", {
|
|
97
|
+
key: 0,
|
|
98
|
+
class: p(a(d)(a(e), "absolute_action"))
|
|
99
|
+
}, [
|
|
100
|
+
u(r.$slots, "absoluteAction")
|
|
101
|
+
], 2)) : C("", !0)
|
|
102
|
+
], 64))
|
|
103
|
+
], 2));
|
|
104
|
+
}
|
|
105
|
+
}), T = ["onClick", "onDblclick", "onContextmenu", "onMouseenter", "onMouseleave"], D = /* @__PURE__ */ m({
|
|
106
|
+
...b("Tr"),
|
|
107
|
+
__name: "Tr",
|
|
108
|
+
props: {
|
|
109
|
+
class: {},
|
|
110
|
+
zebra: { type: Boolean },
|
|
111
|
+
empty: { type: Boolean },
|
|
112
|
+
checked: { type: Boolean },
|
|
113
|
+
lazyLoadObserver: { type: Boolean },
|
|
114
|
+
onClick: { type: Function },
|
|
115
|
+
onDblclick: { type: Function },
|
|
116
|
+
onContextmenu: { type: Function },
|
|
117
|
+
onMouseenter: { type: Function },
|
|
118
|
+
onMouseleave: { type: Function }
|
|
119
|
+
},
|
|
120
|
+
setup(t) {
|
|
121
|
+
const n = t, e = d(y, "tr"), o = z(e, {
|
|
122
|
+
variants: {
|
|
123
|
+
zebra: l("zebra", e),
|
|
124
|
+
empty: l("empty", e),
|
|
125
|
+
checked: l("checked", e),
|
|
126
|
+
lazyLoadObserver: l("lazy-load-observer", e)
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
return (s, r) => (i(), c("tr", {
|
|
130
|
+
class: p([
|
|
131
|
+
a(o)({
|
|
132
|
+
zebra: s.zebra,
|
|
133
|
+
empty: s.empty,
|
|
134
|
+
checked: s.checked,
|
|
135
|
+
lazyLoadObserver: s.lazyLoadObserver
|
|
136
|
+
}),
|
|
137
|
+
n.class
|
|
138
|
+
]),
|
|
139
|
+
onClick: s.onClick,
|
|
140
|
+
onDblclick: s.onDblclick,
|
|
141
|
+
onContextmenu: s.onContextmenu,
|
|
142
|
+
onMouseenter: s.onMouseenter,
|
|
143
|
+
onMouseleave: s.onMouseleave
|
|
144
|
+
}, [
|
|
145
|
+
u(s.$slots, "default")
|
|
146
|
+
], 42, T));
|
|
147
|
+
}
|
|
148
|
+
}), E = /* @__PURE__ */ m({
|
|
149
|
+
...b("TBody"),
|
|
150
|
+
__name: "TBody",
|
|
151
|
+
props: {
|
|
152
|
+
class: {}
|
|
153
|
+
},
|
|
154
|
+
setup(t) {
|
|
155
|
+
const n = t, e = d(y, "tbody");
|
|
156
|
+
return (o, s) => (i(), c("tbody", {
|
|
157
|
+
class: p([a(e), n.class])
|
|
158
|
+
}, [
|
|
159
|
+
u(o.$slots, "default")
|
|
160
|
+
], 2));
|
|
161
|
+
}
|
|
162
|
+
}), S = /* @__PURE__ */ m({
|
|
163
|
+
...b("THead"),
|
|
164
|
+
__name: "THead",
|
|
165
|
+
props: {
|
|
166
|
+
class: {},
|
|
167
|
+
sticky: { type: Boolean }
|
|
168
|
+
},
|
|
169
|
+
setup(t) {
|
|
170
|
+
const n = t, e = d(y, "thead"), o = z(e, {
|
|
171
|
+
variants: {
|
|
172
|
+
sticky: l("sticky", e)
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
return (s, r) => (i(), c("thead", {
|
|
176
|
+
class: p([a(o)({ sticky: s.sticky }), n.class])
|
|
177
|
+
}, [
|
|
178
|
+
u(s.$slots, "default")
|
|
179
|
+
], 2));
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
export {
|
|
183
|
+
v as T,
|
|
184
|
+
M as _,
|
|
185
|
+
w as a,
|
|
186
|
+
F as b,
|
|
187
|
+
D as c,
|
|
188
|
+
E as d,
|
|
189
|
+
S as e
|
|
190
|
+
};
|
package/dist/Table/Tr.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export interface TrProps {
|
|
|
5
5
|
empty?: boolean;
|
|
6
6
|
checked?: boolean;
|
|
7
7
|
lazyLoadObserver?: boolean;
|
|
8
|
+
onClick?: (event: MouseEvent) => void;
|
|
9
|
+
onDblclick?: (event: MouseEvent) => void;
|
|
10
|
+
onContextmenu?: (event: MouseEvent) => void;
|
|
11
|
+
onMouseenter?: (event: MouseEvent) => void;
|
|
12
|
+
onMouseleave?: (event: MouseEvent) => void;
|
|
8
13
|
}
|
|
9
14
|
declare function __VLS_template(): {
|
|
10
15
|
slots: {
|
package/dist/Table/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as T, e, _ as d, T as b, b as o, a as r, c as l } from "../THead.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { d as T, e, _ as d, T as b, b as o, a as r, c as l } from "../THead.vue_vue_type_style_index_0_lang-CzOa1Qzl.js";
|
|
2
2
|
export {
|
|
3
3
|
T as TBody,
|
|
4
4
|
e as THead,
|
package/dist/Table/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../THead.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../THead.vue_vue_type_style_index_0_lang-CjNYs1Lo.js");exports.TBody=e._sfc_main$4;exports.THead=e._sfc_main$5;exports.Table=e._sfc_main;exports.TableSizes=e.TableSizes;exports.Td=e._sfc_main$2;exports.Th=e._sfc_main$1;exports.Tr=e._sfc_main$3;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TippyOptions } from 'vue-tippy';
|
|
2
|
+
export type TooltipProps = TippyOptions;
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
default: () => never;
|
|
6
|
+
content?: () => never;
|
|
7
|
+
}> & {
|
|
8
|
+
default: () => never;
|
|
9
|
+
content?: () => never;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<Partial<Omit<import('tippy.js').Props, "content" | "triggerTarget" | "getReferenceClientRect"> & {
|
|
16
|
+
content: import('vue-tippy').TippyContent;
|
|
17
|
+
triggerTarget: import('vue-tippy').TippyTarget;
|
|
18
|
+
getReferenceClientRect: null | (() => DOMRect & any);
|
|
19
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Partial<Omit<import('tippy.js').Props, "content" | "triggerTarget" | "getReferenceClientRect"> & {
|
|
20
|
+
content: import('vue-tippy').TippyContent;
|
|
21
|
+
triggerTarget: import('vue-tippy').TippyTarget;
|
|
22
|
+
getReferenceClientRect: null | (() => DOMRect & any);
|
|
23
|
+
}>> & Readonly<{}>, {
|
|
24
|
+
placement: import('tippy.js').Placement;
|
|
25
|
+
arrow: boolean | string | SVGElement | DocumentFragment;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Tooltip.vue_vue_type_script_setup_true_lang-DWMPc3HZ.js");exports.Tooltip=e._sfc_main;exports.default=e._sfc_main;exports.importTippyStyles=e.importTippyStyles;exports.registerTippy=e.registerTippy;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),r=require("vue-tippy"),o=()=>{Promise.resolve().then(()=>require("./scale-Dyvby5gX.js")),Promise.resolve().then(()=>require("./tippy-Dyvby5gX.js"))};function l(t){o(),t.use(r.plugin,{directive:"tippy",component:"tippy",animation:"scale",componentSingleton:"tippy-singleton",defaultProps:{placement:"auto-end",arrow:!1,allowHTML:!0}})}const s=e.defineComponent({__name:"Tooltip",props:{animateFill:{type:Boolean},appendTo:{},aria:{},delay:{},duration:{},followCursor:{type:[Boolean,String]},hideOnClick:{type:[Boolean,String]},ignoreAttributes:{type:Boolean},inlinePositioning:{type:Boolean},interactive:{type:Boolean},interactiveBorder:{},interactiveDebounce:{},moveTransition:{},offset:{},placement:{default:"auto-end"},plugins:{},popperOptions:{},render:{},showOnCreate:{type:Boolean},sticky:{type:[Boolean,String]},touch:{type:[Boolean,String,Array]},trigger:{},onAfterUpdate:{},onBeforeUpdate:{},onCreate:{},onDestroy:{},onHidden:{},onHide:{},onMount:{},onShow:{},onShown:{},onTrigger:{},onUntrigger:{},onClickOutside:{},allowHTML:{type:Boolean},animation:{type:[String,Boolean]},arrow:{type:[Boolean,String],default:!1},inertia:{type:Boolean},maxWidth:{},role:{},theme:{},zIndex:{},content:{},triggerTarget:{},getReferenceClientRect:{}},setup(t){const i=t,a=e.useSlots();return o(),(p,c)=>(e.openBlock(),e.createBlock(e.unref(r.Tippy),e.normalizeProps(e.guardReactiveProps(i)),e.createSlots({_:2},[e.renderList(Object.keys(a),n=>({name:n,fn:e.withCtx(()=>[e.renderSlot(p.$slots,n)])}))]),1040))}});exports._sfc_main=s;exports.importTippyStyles=o;exports.registerTippy=l;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as a, useSlots as p, createBlock as l, openBlock as s, unref as c, normalizeProps as y, guardReactiveProps as d, createSlots as g, renderList as u, withCtx as m, renderSlot as f } from "vue";
|
|
2
|
+
import { plugin as B, Tippy as S } from "vue-tippy";
|
|
3
|
+
const t = () => {
|
|
4
|
+
Promise.resolve({ }), Promise.resolve({ });
|
|
5
|
+
};
|
|
6
|
+
function C(e) {
|
|
7
|
+
t(), e.use(B, {
|
|
8
|
+
directive: "tippy",
|
|
9
|
+
// => v-tippy
|
|
10
|
+
component: "tippy",
|
|
11
|
+
// => <tippy/>
|
|
12
|
+
animation: "scale",
|
|
13
|
+
componentSingleton: "tippy-singleton",
|
|
14
|
+
// => <tippy-singleton/>,
|
|
15
|
+
defaultProps: {
|
|
16
|
+
placement: "auto-end",
|
|
17
|
+
arrow: !1,
|
|
18
|
+
allowHTML: !0
|
|
19
|
+
}
|
|
20
|
+
// => Global default options * see all props
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
const _ = /* @__PURE__ */ a({
|
|
24
|
+
__name: "Tooltip",
|
|
25
|
+
props: {
|
|
26
|
+
animateFill: { type: Boolean },
|
|
27
|
+
appendTo: {},
|
|
28
|
+
aria: {},
|
|
29
|
+
delay: {},
|
|
30
|
+
duration: {},
|
|
31
|
+
followCursor: { type: [Boolean, String] },
|
|
32
|
+
hideOnClick: { type: [Boolean, String] },
|
|
33
|
+
ignoreAttributes: { type: Boolean },
|
|
34
|
+
inlinePositioning: { type: Boolean },
|
|
35
|
+
interactive: { type: Boolean },
|
|
36
|
+
interactiveBorder: {},
|
|
37
|
+
interactiveDebounce: {},
|
|
38
|
+
moveTransition: {},
|
|
39
|
+
offset: {},
|
|
40
|
+
placement: { default: "auto-end" },
|
|
41
|
+
plugins: {},
|
|
42
|
+
popperOptions: {},
|
|
43
|
+
render: {},
|
|
44
|
+
showOnCreate: { type: Boolean },
|
|
45
|
+
sticky: { type: [Boolean, String] },
|
|
46
|
+
touch: { type: [Boolean, String, Array] },
|
|
47
|
+
trigger: {},
|
|
48
|
+
onAfterUpdate: {},
|
|
49
|
+
onBeforeUpdate: {},
|
|
50
|
+
onCreate: {},
|
|
51
|
+
onDestroy: {},
|
|
52
|
+
onHidden: {},
|
|
53
|
+
onHide: {},
|
|
54
|
+
onMount: {},
|
|
55
|
+
onShow: {},
|
|
56
|
+
onShown: {},
|
|
57
|
+
onTrigger: {},
|
|
58
|
+
onUntrigger: {},
|
|
59
|
+
onClickOutside: {},
|
|
60
|
+
allowHTML: { type: Boolean },
|
|
61
|
+
animation: { type: [String, Boolean] },
|
|
62
|
+
arrow: { type: [Boolean, String], default: !1 },
|
|
63
|
+
inertia: { type: Boolean },
|
|
64
|
+
maxWidth: {},
|
|
65
|
+
role: {},
|
|
66
|
+
theme: {},
|
|
67
|
+
zIndex: {},
|
|
68
|
+
content: {},
|
|
69
|
+
triggerTarget: {},
|
|
70
|
+
getReferenceClientRect: {}
|
|
71
|
+
},
|
|
72
|
+
setup(e) {
|
|
73
|
+
const n = e, r = p();
|
|
74
|
+
return t(), (i, T) => (s(), l(c(S), y(d(n)), g({ _: 2 }, [
|
|
75
|
+
u(Object.keys(r), (o) => ({
|
|
76
|
+
name: o,
|
|
77
|
+
fn: m(() => [
|
|
78
|
+
f(i.$slots, o)
|
|
79
|
+
])
|
|
80
|
+
}))
|
|
81
|
+
]), 1040));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
export {
|
|
85
|
+
_,
|
|
86
|
+
t as i,
|
|
87
|
+
C as r
|
|
88
|
+
};
|
package/dist/Tree/Tree.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SortableEvent } from 'sortablejs';
|
|
1
|
+
import { SortableEvent, SortableOptions } from 'sortablejs';
|
|
2
2
|
import { Class } from '../types';
|
|
3
3
|
import { TreeGap, TreeNode, TreeNodeKey, TreeSize } from './Tree.model';
|
|
4
4
|
import { TreeNodeSlots } from './TreeNode';
|
|
@@ -19,6 +19,7 @@ export interface TreeProps extends Partial<Pick<TreeNode, 'switcherIcon' | 'noRo
|
|
|
19
19
|
lazyLoad?: boolean;
|
|
20
20
|
fieldNames?: Record<keyof TreeNode, string>;
|
|
21
21
|
groupName?: string | ((node?: object) => string);
|
|
22
|
+
getSortableProps?: (node?: object) => SortableOptions;
|
|
22
23
|
}
|
|
23
24
|
export interface DragEndData extends SortableEvent {
|
|
24
25
|
node?: object;
|
package/dist/Tree/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as r, a as s, T as t, _ as T, i as o, p as i } from "../Tree.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as r, a as s, T as t, _ as T, i as o, p as i } from "../Tree.vue_vue_type_style_index_0_lang-C88TjWts.js";
|
|
2
2
|
export {
|
|
3
3
|
r as Tree,
|
|
4
4
|
s as TreeGaps,
|
package/dist/Tree/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Tree.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Tree.vue_vue_type_style_index_0_lang-DHQevJVn.js");exports.Tree=e._sfc_main;exports.TreeGaps=e.TreeGaps;exports.TreeSizes=e.TreeSizes;exports.default=e._sfc_main;exports.injectTreeContext=e.injectTreeContext;exports.provideTreeContext=e.provideTreeContext;
|