vue3-beak-ui-framework 1.2.76 → 1.2.78
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/{date-7CQhfHJh.js → date-B7g6i7Vq.js} +1 -1
- package/dist/{index-C7DriJZy.js → index-Bcp8OCsz.js} +1 -1
- package/dist/{index-TmVyNe98.js → index-BwGuvach.js} +68 -53
- package/dist/{index.es-BM3tyIdK.js → index.es-BHE-pSwU.js} +2 -2
- package/dist/{jspdf.es.min-BfUzPJy2.js → jspdf.es.min--0AlWovE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/vue3-beak-ui-framework-lib.es.js +1 -1
- package/dist/vue3-beak-ui-framework-lib.umd.js +2 -2
- package/package.json +1 -1
|
@@ -515,82 +515,82 @@ const _hoisted_1$1T = /* @__PURE__ */ createElementVNode("i", {
|
|
|
515
515
|
},
|
|
516
516
|
emits: ["basicfunction"],
|
|
517
517
|
setup(ps, { emit: Ig }) {
|
|
518
|
-
const { dropdownElement: Zg, isOpen: Gg, toggle: Bg } = useDropdown$1(),
|
|
519
|
-
const
|
|
520
|
-
if (
|
|
521
|
-
const
|
|
522
|
-
|
|
518
|
+
const { dropdownElement: Zg, isOpen: Gg, toggle: Bg, close: Wg } = useDropdown$1(), Ng = ref$1(null), Vg = ref$1({}), Xg = ps, Yg = Ig, Fg = () => {
|
|
519
|
+
const Qg = Ng.value;
|
|
520
|
+
if (!Qg) return;
|
|
521
|
+
const Kg = Qg.getBoundingClientRect(), _g = 6;
|
|
522
|
+
Vg.value = {
|
|
523
523
|
position: "fixed",
|
|
524
|
-
top: `${
|
|
524
|
+
top: `${Kg.bottom + _g}px`,
|
|
525
525
|
right: "auto",
|
|
526
526
|
bottom: "auto",
|
|
527
|
-
left: `${
|
|
527
|
+
left: `${Kg.right}px`,
|
|
528
528
|
transform: "none",
|
|
529
529
|
marginTop: "0",
|
|
530
530
|
zIndex: "9999"
|
|
531
531
|
};
|
|
532
|
-
},
|
|
533
|
-
Bg(), Gg.value && (await nextTick(),
|
|
532
|
+
}, Tg = async () => {
|
|
533
|
+
Bg(), Gg.value && (await nextTick(), Fg());
|
|
534
534
|
};
|
|
535
|
-
watch(Gg, (
|
|
536
|
-
|
|
535
|
+
watch(Gg, (Qg) => {
|
|
536
|
+
Qg ? (nextTick(Fg), window.addEventListener("scroll", Fg, !0), window.addEventListener("resize", Fg)) : (window.removeEventListener("scroll", Fg, !0), window.removeEventListener("resize", Fg));
|
|
537
537
|
}), onBeforeUnmount(() => {
|
|
538
|
-
window.removeEventListener("scroll",
|
|
538
|
+
window.removeEventListener("scroll", Fg, !0), window.removeEventListener("resize", Fg);
|
|
539
539
|
});
|
|
540
|
-
const
|
|
541
|
-
|
|
542
|
-
},
|
|
543
|
-
var
|
|
544
|
-
let
|
|
545
|
-
return (
|
|
546
|
-
|
|
547
|
-
}),
|
|
548
|
-
}),
|
|
549
|
-
var
|
|
550
|
-
let
|
|
551
|
-
return (
|
|
552
|
-
|
|
553
|
-
}),
|
|
554
|
-
}),
|
|
555
|
-
return (
|
|
556
|
-
const
|
|
540
|
+
const Lg = (Qg) => {
|
|
541
|
+
Yg("basicfunction", { data: Qg }), Wg();
|
|
542
|
+
}, Dg = computed(() => (Qg) => {
|
|
543
|
+
var _g;
|
|
544
|
+
let Kg = !1;
|
|
545
|
+
return (_g = Xg.isdisabled) == null || _g.forEach((il) => {
|
|
546
|
+
il.function === Qg && (Kg = !0);
|
|
547
|
+
}), Kg;
|
|
548
|
+
}), Jg = computed(() => (Qg) => {
|
|
549
|
+
var _g;
|
|
550
|
+
let Kg = !1;
|
|
551
|
+
return (_g = Xg.ishidden) == null || _g.forEach((il) => {
|
|
552
|
+
il.function === Qg && (Kg = !0);
|
|
553
|
+
}), Kg;
|
|
554
|
+
}), $g = computed(() => Xg.actionData.every((Qg) => Jg.value(Qg.emit)));
|
|
555
|
+
return (Qg, Kg) => {
|
|
556
|
+
const _g = BWIconWrap, il = _sfc_main$2g;
|
|
557
557
|
return ps.actionType === "dropdown" ? (openBlock(), createElementBlock("div", {
|
|
558
558
|
key: 0,
|
|
559
559
|
ref_key: "dropdownElement",
|
|
560
560
|
ref: Zg,
|
|
561
|
-
class: normalizeClass([[unref(Gg) && "is-active",
|
|
561
|
+
class: normalizeClass([[unref(Gg) && "is-active", $g.value && "is-disabled"], "dropdown is-spaced is-dots is-right dropdown-trigger is-pushed-mobile"])
|
|
562
562
|
}, [
|
|
563
563
|
createElementVNode("div", {
|
|
564
564
|
ref_key: "triggerElement",
|
|
565
|
-
ref:
|
|
565
|
+
ref: Ng,
|
|
566
566
|
class: "is-trigger",
|
|
567
567
|
"aria-haspopup": "true",
|
|
568
|
-
onClick:
|
|
568
|
+
onClick: Tg
|
|
569
569
|
}, _hoisted_2$1B, 512),
|
|
570
570
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
571
571
|
unref(Gg) ? (openBlock(), createElementBlock("div", {
|
|
572
572
|
key: 0,
|
|
573
573
|
class: "dropdown is-spaced is-dots is-right bw-data-actions-portal",
|
|
574
|
-
style: normalizeStyle(
|
|
575
|
-
onClick:
|
|
574
|
+
style: normalizeStyle(Vg.value),
|
|
575
|
+
onClick: Kg[0] || (Kg[0] = withModifiers(() => {
|
|
576
576
|
}, ["stop"]))
|
|
577
577
|
}, [
|
|
578
578
|
createElementVNode("div", _hoisted_3$1l, [
|
|
579
579
|
createElementVNode("div", _hoisted_4$15, [
|
|
580
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(ps.actionData, (
|
|
580
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(ps.actionData, (Hg, eI) => (openBlock(), createElementBlock("div", { key: eI }, [
|
|
581
581
|
createElementVNode("a", {
|
|
582
582
|
to: {},
|
|
583
|
-
class: normalizeClass(["dropdown-item is-media", [
|
|
584
|
-
onClick: (
|
|
583
|
+
class: normalizeClass(["dropdown-item is-media", [Hg.disabled || Dg.value(Hg.emit) ? "is-disabled" : "", Jg.value(Hg.emit) ? "is-hidden" : ""]]),
|
|
584
|
+
onClick: (iI) => Lg(Hg.emit)
|
|
585
585
|
}, [
|
|
586
586
|
createElementVNode("div", _hoisted_6$K, [
|
|
587
587
|
createElementVNode("i", {
|
|
588
|
-
class: normalizeClass(
|
|
588
|
+
class: normalizeClass(Hg.icon)
|
|
589
589
|
}, null, 2)
|
|
590
590
|
]),
|
|
591
591
|
createElementVNode("div", _hoisted_7$H, [
|
|
592
|
-
createElementVNode("span", null, toDisplayString$1(
|
|
593
|
-
createElementVNode("span", null, toDisplayString$1(
|
|
592
|
+
createElementVNode("span", null, toDisplayString$1(Hg.title[ps.locale]), 1),
|
|
593
|
+
createElementVNode("span", null, toDisplayString$1(Hg.subtitle[ps.locale]), 1)
|
|
594
594
|
])
|
|
595
595
|
], 10, _hoisted_5$W)
|
|
596
596
|
]))), 128))
|
|
@@ -598,19 +598,19 @@ const _hoisted_1$1T = /* @__PURE__ */ createElementVNode("i", {
|
|
|
598
598
|
])
|
|
599
599
|
], 4)) : createCommentVNode("", !0)
|
|
600
600
|
]))
|
|
601
|
-
], 2)) : (openBlock(), createBlock(
|
|
601
|
+
], 2)) : (openBlock(), createBlock(il, {
|
|
602
602
|
key: 1,
|
|
603
603
|
columnGap: "10px"
|
|
604
604
|
}, {
|
|
605
605
|
content: withCtx(() => [
|
|
606
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(ps.actionData, (
|
|
607
|
-
key:
|
|
608
|
-
icon:
|
|
606
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(ps.actionData, (Hg, eI) => (openBlock(), createBlock(_g, {
|
|
607
|
+
key: eI,
|
|
608
|
+
icon: Hg.icon,
|
|
609
609
|
color: "primary",
|
|
610
610
|
"rectangle-border": "",
|
|
611
|
-
vtippy:
|
|
612
|
-
class: normalizeClass([
|
|
613
|
-
onClick: (
|
|
611
|
+
vtippy: Hg.title[ps.locale],
|
|
612
|
+
class: normalizeClass([Hg.disabled || Dg.value(Hg.emit) ? "is-disabled" : "", Jg.value(Hg.emit) ? "is-hidden" : ""]),
|
|
613
|
+
onClick: (iI) => Lg(Hg.emit)
|
|
614
614
|
}, null, 8, ["icon", "vtippy", "class", "onClick"]))), 128))
|
|
615
615
|
]),
|
|
616
616
|
_: 1
|
|
@@ -7299,7 +7299,8 @@ const _hoisted_1$1O = { class: "table-filters" }, _hoisted_2$1x = {
|
|
|
7299
7299
|
*/
|
|
7300
7300
|
/**
|
|
7301
7301
|
* Typeface for the table. Accepts either a curated preset key
|
|
7302
|
-
* (`system | inter | manrope | outfit | jakarta | space-grotesk | aptos
|
|
7302
|
+
* (`system | inter | manrope | outfit | jakarta | space-grotesk | aptos |
|
|
7303
|
+
* univers | fira`)
|
|
7303
7304
|
* or any raw CSS `font-family` value (e.g. `'"Roboto", sans-serif'`). When
|
|
7304
7305
|
* undefined, the table inherits the surrounding font (the `<th>` falls
|
|
7305
7306
|
* back to its historical Arial, body cells inherit from the document).
|
|
@@ -7392,7 +7393,7 @@ const _hoisted_1$1O = { class: "table-filters" }, _hoisted_2$1x = {
|
|
|
7392
7393
|
default: "glacier",
|
|
7393
7394
|
validator: (ps) => {
|
|
7394
7395
|
if (!ps) return !0;
|
|
7395
|
-
const Ig = ["classic", "matutable", "lavender", "glacier", "compact", "striped", "dark"];
|
|
7396
|
+
const Ig = ["classic", "matutable", "lavender", "glacier", "compact", "striped", "dark", "hsbc", "citadel"];
|
|
7396
7397
|
return Ig.indexOf(ps) === -1 ? (console.warn(`V-BeakDataTable: invalid "${ps}" preset. Should be one of ${Ig.join(", ")}`), !1) : !0;
|
|
7397
7398
|
}
|
|
7398
7399
|
}
|
|
@@ -7501,7 +7502,21 @@ const _hoisted_1$1O = { class: "table-filters" }, _hoisted_2$1x = {
|
|
|
7501
7502
|
// Microsoft Office / Microsoft 365 installed. The fallback chain lands on
|
|
7502
7503
|
// Inter → system-ui so anyone else sees a sensible modern face instead of
|
|
7503
7504
|
// Times New Roman.
|
|
7504
|
-
aptos: '"Aptos", "Inter", system-ui, -apple-system, sans-serif'
|
|
7505
|
+
aptos: '"Aptos", "Inter", system-ui, -apple-system, sans-serif',
|
|
7506
|
+
// HSBC's corporate typeface is "Univers Next for HSBC", a licensed cut of
|
|
7507
|
+
// Univers commissioned for the bank. It is not distributed publicly, so it
|
|
7508
|
+
// renders only where the brand font is installed / self-hosted by the
|
|
7509
|
+
// consumer. The fallback chain lands on Univers → Helvetica Neue → Arial —
|
|
7510
|
+
// the grotesque family HSBC's brand guidelines nominate as the substitute
|
|
7511
|
+
// when the licensed face is unavailable — so anyone else sees an on-brand
|
|
7512
|
+
// neutral sans instead of a serif default.
|
|
7513
|
+
univers: '"Univers Next for HSBC", "Univers", "Helvetica Neue", Helvetica, Arial, sans-serif',
|
|
7514
|
+
// Fira Sans is Citadel Insurance's brand typeface. Unlike Univers / Aptos
|
|
7515
|
+
// it IS publicly distributed on Google Fonts, so the consumer only needs the
|
|
7516
|
+
// standard <link> (or @import) — no licensed / local install required. The
|
|
7517
|
+
// fallback chain still lands on system-ui so an unloaded face degrades to a
|
|
7518
|
+
// sensible neutral sans rather than a serif default.
|
|
7519
|
+
fira: '"Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif'
|
|
7505
7520
|
}, eC = computed(() => Dg.font ? { "--bw-dt-font-family": UI[Dg.font] ?? Dg.font } : {}), DI = computed(() => Dg.beakrows ? Dg.beakrows.sort((SC, lA) => {
|
|
7506
7521
|
let IA = 1;
|
|
7507
7522
|
if (Qg.value === "desc" && (IA = -1), SC[$g.value] === null || lA[$g.value] === null)
|
|
@@ -123149,7 +123164,7 @@ class Columns {
|
|
|
123149
123164
|
const Tg = Bg.headings[Ig], Lg = [];
|
|
123150
123165
|
if (Tg.getAttribute("data-type") === "date") {
|
|
123151
123166
|
let Dg = !1;
|
|
123152
|
-
Tg.hasAttribute("data-format") && (Dg = Tg.getAttribute("data-format")), Lg.push(import("./date-
|
|
123167
|
+
Tg.hasAttribute("data-format") && (Dg = Tg.getAttribute("data-format")), Lg.push(import("./date-B7g6i7Vq.js").then(({ parseDate: $g }) => (Qg) => $g(Qg, Dg)));
|
|
123153
123168
|
}
|
|
123154
123169
|
Promise.all(Lg).then((Dg) => {
|
|
123155
123170
|
const Jg = Dg[0];
|
|
@@ -124686,7 +124701,7 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
|
|
|
124686
124701
|
Qg.value = !0, _g.value = null;
|
|
124687
124702
|
let MI;
|
|
124688
124703
|
try {
|
|
124689
|
-
({ Previewer: MI } = await import("./index-
|
|
124704
|
+
({ Previewer: MI } = await import("./index-Bcp8OCsz.js"));
|
|
124690
124705
|
} catch (OI) {
|
|
124691
124706
|
_g.value = "pagedjs is not installed. Run: npm i pagedjs", Qg.value = !1, Bg("render-error", OI);
|
|
124692
124707
|
return;
|
|
@@ -124797,7 +124812,7 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
|
|
|
124797
124812
|
}
|
|
124798
124813
|
const [_I, cC] = await Promise.all([
|
|
124799
124814
|
import("./html2canvas.esm-DgdJBc_o.js"),
|
|
124800
|
-
import("./jspdf.es.min
|
|
124815
|
+
import("./jspdf.es.min--0AlWovE.js").then((dC) => dC.j)
|
|
124801
124816
|
]), rC = _I.default || _I, IC = cC.jsPDF || cC.default, [AC, NC] = wI[Gg.pageSize], uC = Gg.pageLayout === "landscape" ? "landscape" : "portrait", CC = uC === "landscape" ? NC : AC, nC = uC === "landscape" ? AC : NC, oC = new IC({
|
|
124802
124817
|
orientation: uC,
|
|
124803
124818
|
unit: "mm",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as Va, g as al } from "./index-
|
|
2
|
-
import { _ as ka } from "./jspdf.es.min
|
|
1
|
+
import { c as Va, g as al } from "./index-BwGuvach.js";
|
|
2
|
+
import { _ as ka } from "./jspdf.es.min--0AlWovE.js";
|
|
3
3
|
var cn = {}, vn = {}, Cr, gn;
|
|
4
4
|
function ae() {
|
|
5
5
|
if (gn) return Cr;
|
|
@@ -9246,7 +9246,7 @@ function(n) {
|
|
|
9246
9246
|
var d = h.getContext("2d");
|
|
9247
9247
|
d.fillStyle = "#fff", d.fillRect(0, 0, h.width, h.height);
|
|
9248
9248
|
var m = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, _ = this;
|
|
9249
|
-
return (Kt.canvg ? Promise.resolve(Kt.canvg) : import("./index.es-
|
|
9249
|
+
return (Kt.canvg ? Promise.resolve(Kt.canvg) : import("./index.es-BHE-pSwU.js")).catch(function(k) {
|
|
9250
9250
|
return Promise.reject(new Error("Could not load canvg: " + k));
|
|
9251
9251
|
}).then(function(k) {
|
|
9252
9252
|
return k.default ? k.default : k;
|