rayyy-vue-table-components 1.3.2 → 1.3.4
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/index.es.js +73 -75
- package/dist/index.umd.js +7 -7
- package/dist/rayyy-vue-table-components.css +1 -1
- package/package.json +1 -1
- package/src/assets/styles/_components.scss +13 -46
- package/src/components/form/BaseInput.vue +3 -1
- package/src/components/tables/SortTable.vue +1 -1
- package/src/components/transfer/TransferDialog.vue +19 -24
package/dist/index.es.js
CHANGED
|
@@ -12358,7 +12358,7 @@ const BP = ["onClick"], FP = { key: 2 }, pl = /* @__PURE__ */ J({
|
|
|
12358
12358
|
for (const [l, i] of n)
|
|
12359
12359
|
r[l] = i;
|
|
12360
12360
|
return r;
|
|
12361
|
-
}, Vn = /* @__PURE__ */ rs(DP, [["__scopeId", "data-v-561c15dc"]]), ta = /* @__PURE__ */ J({
|
|
12361
|
+
}, Vn = /* @__PURE__ */ rs(DP, [["__scopeId", "data-v-561c15dc"]]), zP = { class: "text-text-border w-full h-full flex items-center justify-center text-lg" }, ta = /* @__PURE__ */ J({
|
|
12362
12362
|
__name: "BaseInput",
|
|
12363
12363
|
props: {
|
|
12364
12364
|
modelValue: {},
|
|
@@ -12397,12 +12397,14 @@ const BP = ["onClick"], FP = { key: 2 }, pl = /* @__PURE__ */ J({
|
|
|
12397
12397
|
onClear: u
|
|
12398
12398
|
}), {
|
|
12399
12399
|
prefix: le(() => [
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
|
|
12400
|
+
re("div", zP, [
|
|
12401
|
+
me(f, null, {
|
|
12402
|
+
default: le(() => [
|
|
12403
|
+
me(_(uO))
|
|
12404
|
+
]),
|
|
12405
|
+
_: 1
|
|
12406
|
+
})
|
|
12407
|
+
])
|
|
12406
12408
|
]),
|
|
12407
12409
|
_: 1
|
|
12408
12410
|
}, 16, ["modelValue", "placeholder", "type", "class", "show-password", "disabled", "readonly", "maxlength", "autocomplete"]);
|
|
@@ -12415,35 +12417,35 @@ function pm(e) {
|
|
|
12415
12417
|
function ef(e) {
|
|
12416
12418
|
return typeof e == "function" ? e() : _(e);
|
|
12417
12419
|
}
|
|
12418
|
-
const
|
|
12420
|
+
const WP = typeof window < "u" && typeof document < "u";
|
|
12419
12421
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12420
|
-
const
|
|
12422
|
+
const HP = Object.prototype.toString, VP = (e) => HP.call(e) === "[object Object]", UP = () => {
|
|
12421
12423
|
};
|
|
12422
|
-
function
|
|
12424
|
+
function KP(e) {
|
|
12423
12425
|
return Ge();
|
|
12424
12426
|
}
|
|
12425
|
-
function
|
|
12426
|
-
|
|
12427
|
+
function GP(e, n = !0, r) {
|
|
12428
|
+
KP() ? yt(e, r) : n ? e() : rt(e);
|
|
12427
12429
|
}
|
|
12428
|
-
const tf =
|
|
12429
|
-
function
|
|
12430
|
+
const tf = WP ? window : void 0;
|
|
12431
|
+
function qP(e) {
|
|
12430
12432
|
var n;
|
|
12431
12433
|
const r = ef(e);
|
|
12432
12434
|
return (n = r == null ? void 0 : r.$el) != null ? n : r;
|
|
12433
12435
|
}
|
|
12434
|
-
function
|
|
12436
|
+
function jP(...e) {
|
|
12435
12437
|
let n, r, l, i;
|
|
12436
12438
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, l, i] = e, n = tf) : [n, r, l, i] = e, !n)
|
|
12437
|
-
return
|
|
12439
|
+
return UP;
|
|
12438
12440
|
Array.isArray(r) || (r = [r]), Array.isArray(l) || (l = [l]);
|
|
12439
12441
|
const s = [], u = () => {
|
|
12440
12442
|
s.forEach((v) => v()), s.length = 0;
|
|
12441
12443
|
}, c = (v, h, w, m) => (v.addEventListener(h, w, m), () => v.removeEventListener(h, w, m)), p = ve(
|
|
12442
|
-
() => [
|
|
12444
|
+
() => [qP(n), ef(i)],
|
|
12443
12445
|
([v, h]) => {
|
|
12444
12446
|
if (u(), !v)
|
|
12445
12447
|
return;
|
|
12446
|
-
const w =
|
|
12448
|
+
const w = VP(h) ? { ...h } : h;
|
|
12447
12449
|
s.push(
|
|
12448
12450
|
...r.flatMap((m) => l.map((g) => c(v, m, g, w)))
|
|
12449
12451
|
);
|
|
@@ -12454,18 +12456,18 @@ function qP(...e) {
|
|
|
12454
12456
|
};
|
|
12455
12457
|
return pm(f), f;
|
|
12456
12458
|
}
|
|
12457
|
-
function
|
|
12459
|
+
function YP() {
|
|
12458
12460
|
const e = D(!1), n = Ge();
|
|
12459
12461
|
return n && yt(() => {
|
|
12460
12462
|
e.value = !0;
|
|
12461
12463
|
}, n), e;
|
|
12462
12464
|
}
|
|
12463
|
-
function
|
|
12464
|
-
const n =
|
|
12465
|
+
function XP(e) {
|
|
12466
|
+
const n = YP();
|
|
12465
12467
|
return $(() => (n.value, !!e()));
|
|
12466
12468
|
}
|
|
12467
|
-
function
|
|
12468
|
-
const { window: r = tf } = n, l =
|
|
12469
|
+
function ZP(e, n = {}) {
|
|
12470
|
+
const { window: r = tf } = n, l = XP(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
|
|
12469
12471
|
let i;
|
|
12470
12472
|
const s = D(!1), u = (f) => {
|
|
12471
12473
|
s.value = f.matches;
|
|
@@ -12478,7 +12480,7 @@ function XP(e, n = {}) {
|
|
|
12478
12480
|
p(), c(), i = void 0;
|
|
12479
12481
|
}), s;
|
|
12480
12482
|
}
|
|
12481
|
-
function
|
|
12483
|
+
function JP(e = {}) {
|
|
12482
12484
|
const {
|
|
12483
12485
|
window: n = tf,
|
|
12484
12486
|
initialWidth: r = Number.POSITIVE_INFINITY,
|
|
@@ -12489,13 +12491,13 @@ function ZP(e = {}) {
|
|
|
12489
12491
|
} = e, c = D(r), p = D(l), f = () => {
|
|
12490
12492
|
n && (u === "outer" ? (c.value = n.outerWidth, p.value = n.outerHeight) : s ? (c.value = n.innerWidth, p.value = n.innerHeight) : (c.value = n.document.documentElement.clientWidth, p.value = n.document.documentElement.clientHeight));
|
|
12491
12493
|
};
|
|
12492
|
-
if (f(),
|
|
12493
|
-
const v =
|
|
12494
|
+
if (f(), GP(f), jP("resize", f, { passive: !0 }), i) {
|
|
12495
|
+
const v = ZP("(orientation: portrait)");
|
|
12494
12496
|
ve(v, () => f());
|
|
12495
12497
|
}
|
|
12496
12498
|
return { width: c, height: p };
|
|
12497
12499
|
}
|
|
12498
|
-
const
|
|
12500
|
+
const QP = ["id"], eI = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
12499
12501
|
__name: "BaseDialog",
|
|
12500
12502
|
props: {
|
|
12501
12503
|
modelValue: { type: Boolean },
|
|
@@ -12510,7 +12512,7 @@ const JP = ["id"], QP = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
|
12510
12512
|
},
|
|
12511
12513
|
emits: ["update:modelValue", "click:submit"],
|
|
12512
12514
|
setup(e, { emit: n }) {
|
|
12513
|
-
const r = e, { width: l } =
|
|
12515
|
+
const r = e, { width: l } = JP(), i = n, s = $({
|
|
12514
12516
|
get: () => r.modelValue,
|
|
12515
12517
|
set: (f) => i("update:modelValue", f)
|
|
12516
12518
|
}), u = $(() => l.value < 1e3 ? "80%" : r.customWidth ? r.customWidth : "50%"), c = () => {
|
|
@@ -12537,7 +12539,7 @@ const JP = ["id"], QP = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
|
12537
12539
|
re("p", {
|
|
12538
12540
|
id: m,
|
|
12539
12541
|
class: q(["base-dialog-title", g])
|
|
12540
|
-
}, ze(r.title), 11,
|
|
12542
|
+
}, ze(r.title), 11, QP)
|
|
12541
12543
|
])
|
|
12542
12544
|
]),
|
|
12543
12545
|
footer: le(() => [
|
|
@@ -12559,7 +12561,7 @@ const JP = ["id"], QP = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
|
12559
12561
|
])
|
|
12560
12562
|
]),
|
|
12561
12563
|
default: le(() => [
|
|
12562
|
-
Tt((M(), j("div",
|
|
12564
|
+
Tt((M(), j("div", eI, [
|
|
12563
12565
|
re("div", {
|
|
12564
12566
|
class: q(["sub-title", {
|
|
12565
12567
|
"border-b mb-4": typeof f.subTitle == "string"
|
|
@@ -12574,7 +12576,7 @@ const JP = ["id"], QP = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
|
12574
12576
|
}, 8, ["modelValue", "title", "width", "before-close", "class"]);
|
|
12575
12577
|
};
|
|
12576
12578
|
}
|
|
12577
|
-
}),
|
|
12579
|
+
}), tI = /* @__PURE__ */ J({
|
|
12578
12580
|
__name: "BaseMultipleInput",
|
|
12579
12581
|
props: {
|
|
12580
12582
|
modelValue: {},
|
|
@@ -12638,10 +12640,10 @@ const JP = ["id"], QP = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
|
12638
12640
|
], 16);
|
|
12639
12641
|
};
|
|
12640
12642
|
}
|
|
12641
|
-
}), $I = /* @__PURE__ */ rs(
|
|
12643
|
+
}), $I = /* @__PURE__ */ rs(tI, [["__scopeId", "data-v-e5cc39cb"]]), nI = { class: "w-full mb-4" }, rI = {
|
|
12642
12644
|
key: 0,
|
|
12643
12645
|
class: "flex items-center h-12 bg-gray-200 px-1.5 rounded-t justify-between"
|
|
12644
|
-
},
|
|
12646
|
+
}, oI = { class: "font-bold text-20" }, lI = { class: "flex items-center" }, aI = { class: "flex items-center" }, Ti = /* @__PURE__ */ J({
|
|
12645
12647
|
__name: "TitleTable",
|
|
12646
12648
|
props: {
|
|
12647
12649
|
data: {},
|
|
@@ -12666,12 +12668,12 @@ const JP = ["id"], QP = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
|
12666
12668
|
};
|
|
12667
12669
|
return (c, p) => {
|
|
12668
12670
|
const f = Ol;
|
|
12669
|
-
return M(), j("div",
|
|
12670
|
-
c.tableTitle ? (M(), j("div",
|
|
12671
|
-
re("p",
|
|
12672
|
-
re("div",
|
|
12671
|
+
return M(), j("div", nI, [
|
|
12672
|
+
c.tableTitle ? (M(), j("div", rI, [
|
|
12673
|
+
re("p", oI, ze(c.tableTitle), 1),
|
|
12674
|
+
re("div", lI, [
|
|
12673
12675
|
se(c.$slots, "tableSearch"),
|
|
12674
|
-
re("div",
|
|
12676
|
+
re("div", aI, [
|
|
12675
12677
|
me(_(Vn), {
|
|
12676
12678
|
text: "新增",
|
|
12677
12679
|
type: "primary",
|
|
@@ -12701,10 +12703,10 @@ const JP = ["id"], QP = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
|
12701
12703
|
]);
|
|
12702
12704
|
};
|
|
12703
12705
|
}
|
|
12704
|
-
}),
|
|
12706
|
+
}), iI = { class: "search-bar-left" }, sI = { class: "flex items-center justify-end" }, uI = {
|
|
12705
12707
|
key: 0,
|
|
12706
12708
|
class: "search-input"
|
|
12707
|
-
},
|
|
12709
|
+
}, cI = /* @__PURE__ */ J({
|
|
12708
12710
|
__name: "SearchBar",
|
|
12709
12711
|
props: {
|
|
12710
12712
|
showSearch: { type: Boolean }
|
|
@@ -12717,11 +12719,11 @@ const JP = ["id"], QP = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
|
12717
12719
|
r("update:clear");
|
|
12718
12720
|
};
|
|
12719
12721
|
return (c, p) => (M(), j("div", Zt(_(l), { class: "search-bar" }), [
|
|
12720
|
-
re("div",
|
|
12722
|
+
re("div", iI, [
|
|
12721
12723
|
se(c.$slots, "button", {}, void 0, !0)
|
|
12722
12724
|
]),
|
|
12723
|
-
re("div",
|
|
12724
|
-
c.showSearch ? (M(), j("div",
|
|
12725
|
+
re("div", sI, [
|
|
12726
|
+
c.showSearch ? (M(), j("div", uI, [
|
|
12725
12727
|
me(ta, {
|
|
12726
12728
|
modelValue: i.value,
|
|
12727
12729
|
"onUpdate:modelValue": p[0] || (p[0] = (f) => i.value = f),
|
|
@@ -12735,7 +12737,7 @@ const JP = ["id"], QP = { class: "p-2" }, na = /* @__PURE__ */ J({
|
|
|
12735
12737
|
])
|
|
12736
12738
|
], 16));
|
|
12737
12739
|
}
|
|
12738
|
-
}), vl = /* @__PURE__ */ rs(
|
|
12740
|
+
}), vl = /* @__PURE__ */ rs(cI, [["__scopeId", "data-v-84dc3e10"]]);
|
|
12739
12741
|
var Yl = { exports: {} };
|
|
12740
12742
|
/**
|
|
12741
12743
|
* @license
|
|
@@ -12745,8 +12747,8 @@ var Yl = { exports: {} };
|
|
|
12745
12747
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
12746
12748
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
12747
12749
|
*/
|
|
12748
|
-
var
|
|
12749
|
-
function
|
|
12750
|
+
var fI = Yl.exports, ah;
|
|
12751
|
+
function dI() {
|
|
12750
12752
|
return ah || (ah = 1, (function(e, n) {
|
|
12751
12753
|
(function() {
|
|
12752
12754
|
var r, l = "4.17.21", i = 200, s = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", c = "Invalid `variable` option passed into `_.template`", p = "__lodash_hash_undefined__", f = 500, v = "__lodash_placeholder__", h = 1, w = 2, m = 4, g = 1, y = 2, T = 1, x = 2, I = 4, O = 8, S = 16, A = 32, L = 64, R = 128, N = 256, z = 512, Y = 30, U = "...", H = 800, oe = 16, ge = 1, Me = 2, he = 3, Q = 1 / 0, K = 9007199254740991, ee = 17976931348623157e292, be = NaN, ie = 4294967295, ye = ie - 1, Fe = ie >>> 1, Ue = [
|
|
@@ -16406,11 +16408,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
16406
16408
|
}], je.prototype.clone = N0, je.prototype.reverse = B0, je.prototype.value = F0, C.prototype.at = p1, C.prototype.chain = v1, C.prototype.commit = h1, C.prototype.next = g1, C.prototype.plant = b1, C.prototype.reverse = y1, C.prototype.toJSON = C.prototype.valueOf = C.prototype.value = w1, C.prototype.first = C.prototype.head, Il && (C.prototype[Il] = m1), C;
|
|
16407
16409
|
}), Xo = h0();
|
|
16408
16410
|
go ? ((go.exports = Xo)._ = Xo, _s._ = Xo) : zt._ = Xo;
|
|
16409
|
-
}).call(
|
|
16411
|
+
}).call(fI);
|
|
16410
16412
|
})(Yl, Yl.exports)), Yl.exports;
|
|
16411
16413
|
}
|
|
16412
|
-
var
|
|
16413
|
-
const bi = /* @__PURE__ */ IA(
|
|
16414
|
+
var pI = dI();
|
|
16415
|
+
const bi = /* @__PURE__ */ IA(pI), vI = /* @__PURE__ */ J({
|
|
16414
16416
|
__name: "transferItem",
|
|
16415
16417
|
props: {
|
|
16416
16418
|
dialogModalVisible: { type: Boolean },
|
|
@@ -16506,7 +16508,7 @@ const bi = /* @__PURE__ */ IA(dI), pI = /* @__PURE__ */ J({
|
|
|
16506
16508
|
], 34);
|
|
16507
16509
|
};
|
|
16508
16510
|
}
|
|
16509
|
-
}),
|
|
16511
|
+
}), hI = { class: "search-bar" }, gI = { class: "transfer-sort-wrapper" }, kI = /* @__PURE__ */ J({
|
|
16510
16512
|
__name: "TransferDialog",
|
|
16511
16513
|
props: {
|
|
16512
16514
|
modelValue: { type: Boolean },
|
|
@@ -16555,7 +16557,7 @@ const bi = /* @__PURE__ */ IA(dI), pI = /* @__PURE__ */ J({
|
|
|
16555
16557
|
}
|
|
16556
16558
|
);
|
|
16557
16559
|
const p = () => {
|
|
16558
|
-
|
|
16560
|
+
l("update:submit", s.localColumns);
|
|
16559
16561
|
}, f = (y) => {
|
|
16560
16562
|
const T = r.columnsValue.map((x) => x.prop);
|
|
16561
16563
|
s.checkList = y ? T : [], v(s.checkList);
|
|
@@ -16588,16 +16590,14 @@ const bi = /* @__PURE__ */ IA(dI), pI = /* @__PURE__ */ J({
|
|
|
16588
16590
|
"onClick:submit": p
|
|
16589
16591
|
}, {
|
|
16590
16592
|
default: le(() => [
|
|
16591
|
-
re("div",
|
|
16593
|
+
re("div", hI, [
|
|
16592
16594
|
me(vl, {
|
|
16593
|
-
"show-filter": !1,
|
|
16594
16595
|
"show-search": !0,
|
|
16595
|
-
"full-input": !0,
|
|
16596
16596
|
"onUpdate:clear": m,
|
|
16597
16597
|
"onKeydown:enter": g
|
|
16598
16598
|
})
|
|
16599
16599
|
]),
|
|
16600
|
-
re("div",
|
|
16600
|
+
re("div", gI, [
|
|
16601
16601
|
me(x, {
|
|
16602
16602
|
modelValue: w.value,
|
|
16603
16603
|
"onUpdate:modelValue": T[0] || (T[0] = (O) => w.value = O),
|
|
@@ -16621,24 +16621,22 @@ const bi = /* @__PURE__ */ IA(dI), pI = /* @__PURE__ */ J({
|
|
|
16621
16621
|
handleItemEvents: u,
|
|
16622
16622
|
handleMousedown: (O) => s.clickItemProp = O
|
|
16623
16623
|
}, () => [
|
|
16624
|
-
|
|
16625
|
-
|
|
16626
|
-
|
|
16627
|
-
|
|
16628
|
-
|
|
16629
|
-
|
|
16630
|
-
|
|
16631
|
-
|
|
16632
|
-
|
|
16633
|
-
|
|
16634
|
-
|
|
16635
|
-
|
|
16636
|
-
|
|
16637
|
-
|
|
16638
|
-
|
|
16639
|
-
|
|
16640
|
-
}, null, 8, ["dialog-modal-visible", "columns-value", "columns-index", "columns-len", "class", "onMousedown", "onUpdate:toTop", "onUpdate:toBottom", "onUpdate:toPre", "onUpdate:toNext"]))), 128))
|
|
16641
|
-
])
|
|
16624
|
+
(M(!0), j(Et, null, tr(s.localColumns, (O, S) => (M(), ce(vI, {
|
|
16625
|
+
key: O.prop,
|
|
16626
|
+
"dialog-modal-visible": i.value,
|
|
16627
|
+
"columns-value": O,
|
|
16628
|
+
"columns-index": S,
|
|
16629
|
+
"columns-len": s.localColumns.length,
|
|
16630
|
+
class: q({
|
|
16631
|
+
"transfer-active-bg": O.checkActive,
|
|
16632
|
+
"transfer-active-border": s.clickItemProp == O.prop
|
|
16633
|
+
}),
|
|
16634
|
+
onMousedown: (A) => s.clickItemProp = O.prop || "",
|
|
16635
|
+
"onUpdate:toTop": (A) => u.toTop(S),
|
|
16636
|
+
"onUpdate:toBottom": (A) => u.toBottom(S),
|
|
16637
|
+
"onUpdate:toPre": (A) => u.toPre(S),
|
|
16638
|
+
"onUpdate:toNext": (A) => u.toNext(S)
|
|
16639
|
+
}, null, 8, ["dialog-modal-visible", "columns-value", "columns-index", "columns-len", "class", "onMousedown", "onUpdate:toTop", "onUpdate:toBottom", "onUpdate:toPre", "onUpdate:toNext"]))), 128))
|
|
16642
16640
|
])
|
|
16643
16641
|
]),
|
|
16644
16642
|
_: 3
|
|
@@ -16848,7 +16846,7 @@ const bi = /* @__PURE__ */ IA(dI), pI = /* @__PURE__ */ J({
|
|
|
16848
16846
|
re("div", LI, [
|
|
16849
16847
|
re("div", PI, [
|
|
16850
16848
|
re("div", {
|
|
16851
|
-
class: "cursor-pointer text-
|
|
16849
|
+
class: "cursor-pointer text-text text-xl flex items-center justify-center hover:text-blue-600",
|
|
16852
16850
|
onClick: l
|
|
16853
16851
|
}, [
|
|
16854
16852
|
me(f, null, {
|
|
@@ -16937,7 +16935,7 @@ export {
|
|
|
16937
16935
|
xi as SortTable,
|
|
16938
16936
|
Ti as TitleTable,
|
|
16939
16937
|
kI as TransferDialog,
|
|
16940
|
-
|
|
16938
|
+
vI as TransferItem,
|
|
16941
16939
|
BI as default,
|
|
16942
16940
|
II as install,
|
|
16943
16941
|
NI as setActiveColumn
|