beca-ui 2.1.0-beta.54 → 2.1.0-beta.56
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/beca-ui.js +28 -23
- package/package.json +1 -1
package/dist/beca-ui.js
CHANGED
|
@@ -98271,6 +98271,7 @@ const Hrt = 52, Frt = 68, Brt = (e) => {
|
|
|
98271
98271
|
/* @__PURE__ */ z(ni.Item, { label: s("Sort app menu items"), layout: "vertical", children: /* @__PURE__ */ z(
|
|
98272
98272
|
Urt,
|
|
98273
98273
|
{
|
|
98274
|
+
lang: l,
|
|
98274
98275
|
items: f,
|
|
98275
98276
|
onChange: O
|
|
98276
98277
|
}
|
|
@@ -98280,8 +98281,8 @@ const Hrt = 52, Frt = 68, Brt = (e) => {
|
|
|
98280
98281
|
)
|
|
98281
98282
|
] });
|
|
98282
98283
|
}, Vrt = jrt(
|
|
98283
|
-
({ value: e, isDragging: t }) => {
|
|
98284
|
-
const
|
|
98284
|
+
({ value: e, isDragging: t, lang: n }) => {
|
|
98285
|
+
const r = e.image2 ?? e.image;
|
|
98285
98286
|
return /* @__PURE__ */ z(
|
|
98286
98287
|
"li",
|
|
98287
98288
|
{
|
|
@@ -98289,44 +98290,46 @@ const Hrt = 52, Frt = 68, Brt = (e) => {
|
|
|
98289
98290
|
"sortable-list-item--dragging": t
|
|
98290
98291
|
}),
|
|
98291
98292
|
children: /* @__PURE__ */ Yt("div", { className: "sortable-list-item-content", children: [
|
|
98292
|
-
/* @__PURE__ */ z("div", { className: "sortable-list-item-icon", children: typeof
|
|
98293
|
-
/* @__PURE__ */ z("span", { className: "sortable-list-item-text", children: e.name })
|
|
98293
|
+
/* @__PURE__ */ z("div", { className: "sortable-list-item-icon", children: typeof r == "string" ? /* @__PURE__ */ z("img", { src: r, alt: e.name, draggable: !1 }) : r }),
|
|
98294
|
+
/* @__PURE__ */ z("span", { className: "sortable-list-item-text", children: n === "en" && e.nameEng ? e.nameEng : e.name })
|
|
98294
98295
|
] })
|
|
98295
98296
|
}
|
|
98296
98297
|
);
|
|
98297
98298
|
}
|
|
98298
98299
|
), Wrt = Art(
|
|
98299
|
-
({ items: e = [], sortingIndex: t }) => /* @__PURE__ */ z("ul", { className: "sortable-list", children: e.map((
|
|
98300
|
+
({ items: e = [], sortingIndex: t, lang: n }) => /* @__PURE__ */ z("ul", { className: "sortable-list", children: e.map((r, o) => /* @__PURE__ */ z(
|
|
98300
98301
|
Vrt,
|
|
98301
98302
|
{
|
|
98302
|
-
index:
|
|
98303
|
-
value:
|
|
98304
|
-
|
|
98303
|
+
index: o,
|
|
98304
|
+
value: r,
|
|
98305
|
+
lang: n,
|
|
98306
|
+
isDragging: t === o
|
|
98305
98307
|
},
|
|
98306
|
-
`item-${
|
|
98308
|
+
`item-${r.id}`
|
|
98307
98309
|
)) })
|
|
98308
98310
|
);
|
|
98309
|
-
function Urt({ items: e, onChange: t }) {
|
|
98310
|
-
const [
|
|
98311
|
+
function Urt({ items: e, onChange: t, lang: n }) {
|
|
98312
|
+
const [r, o] = ht(e), [i, a] = ht(null);
|
|
98311
98313
|
return Zt(() => {
|
|
98312
|
-
|
|
98314
|
+
o(e);
|
|
98313
98315
|
}, [e]), /* @__PURE__ */ z(
|
|
98314
98316
|
Wrt,
|
|
98315
98317
|
{
|
|
98316
|
-
|
|
98318
|
+
lang: n,
|
|
98319
|
+
items: r,
|
|
98317
98320
|
onSortEnd: ({
|
|
98318
|
-
oldIndex:
|
|
98319
|
-
newIndex:
|
|
98321
|
+
oldIndex: c,
|
|
98322
|
+
newIndex: u
|
|
98320
98323
|
}) => {
|
|
98321
|
-
const
|
|
98322
|
-
|
|
98324
|
+
const f = wrt(r, c, u);
|
|
98325
|
+
a(null), o(f), t && t(f);
|
|
98323
98326
|
},
|
|
98324
|
-
onSortStart: ({ index:
|
|
98325
|
-
|
|
98327
|
+
onSortStart: ({ index: c }) => {
|
|
98328
|
+
a(c);
|
|
98326
98329
|
},
|
|
98327
98330
|
helperClass: "sortable-helper",
|
|
98328
98331
|
hideSortableGhost: !1,
|
|
98329
|
-
sortingIndex:
|
|
98332
|
+
sortingIndex: i
|
|
98330
98333
|
}
|
|
98331
98334
|
);
|
|
98332
98335
|
}
|
|
@@ -128861,7 +128864,9 @@ const w0t = (e) => {
|
|
|
128861
128864
|
}, []);
|
|
128862
128865
|
const f = Fi(
|
|
128863
128866
|
(g) => {
|
|
128864
|
-
if (
|
|
128867
|
+
if (e.onOpenChange)
|
|
128868
|
+
e.onOpenChange(g);
|
|
128869
|
+
else if (c)
|
|
128865
128870
|
if (g) {
|
|
128866
128871
|
const v = document.querySelector(".select-backdrop");
|
|
128867
128872
|
if (v)
|
|
@@ -128914,7 +128919,7 @@ const w0t = (e) => {
|
|
|
128914
128919
|
}
|
|
128915
128920
|
),
|
|
128916
128921
|
suffixIcon: a ?? /* @__PURE__ */ z(I1e, { size: 18, color: "var(--picker-suffix-icon-color)" }),
|
|
128917
|
-
getPopupContainer: l ?? s === "relative" ? (g) => g.parentNode : void 0,
|
|
128922
|
+
getPopupContainer: l ?? (s === "relative" ? (g) => g.parentNode : void 0),
|
|
128918
128923
|
allowClear: t === !0 ? {
|
|
128919
128924
|
clearIcon: /* @__PURE__ */ z(
|
|
128920
128925
|
f7,
|
|
@@ -128924,7 +128929,7 @@ const w0t = (e) => {
|
|
|
128924
128929
|
}
|
|
128925
128930
|
)
|
|
128926
128931
|
} : !1,
|
|
128927
|
-
inputReadOnly: c
|
|
128932
|
+
inputReadOnly: e.inputReadOnly !== void 0 ? e.inputReadOnly : c
|
|
128928
128933
|
}
|
|
128929
128934
|
);
|
|
128930
128935
|
}, M0t = (e) => {
|