vue3-beak-ui-framework 1.2.71 → 1.2.73

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.
@@ -1,4 +1,4 @@
1
- import { g as rt } from "./index-CN5N7CGr.js";
1
+ import { g as rt } from "./index-DEeDIwHG.js";
2
2
  var Q = { exports: {} }, it = Q.exports, et;
3
3
  function st() {
4
4
  return et || (et = 1, function(j, V) {
@@ -1,4 +1,4 @@
1
- import { g as Ua } from "./index-CN5N7CGr.js";
1
+ import { g as Ua } from "./index-DEeDIwHG.js";
2
2
  function Le(o) {
3
3
  if (!o)
4
4
  return;
@@ -99454,12 +99454,41 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99454
99454
  mobileBreakpoint: {
99455
99455
  type: Number,
99456
99456
  default: void 0
99457
+ },
99458
+ /**
99459
+ * Tab list orientation. `"horizontal"` (default) is the classic top tab
99460
+ * bar — fully backward-compatible, nothing about existing usages changes.
99461
+ * `"vertical"` renders the tab list as a left-hand side column with the
99462
+ * panel beside it (a settings-style layout).
99463
+ *
99464
+ * Vertical is **desktop-first**: below `verticalBreakpoint` (container
99465
+ * width, px) it falls back to the normal horizontal bar so it stays
99466
+ * usable on phones, where `compactBreakpoint` / `mobileBreakpoint` then
99467
+ * apply as usual. Vertical also opts out of slider/pill styling, which
99468
+ * is inherently a horizontal segmented control.
99469
+ */
99470
+ orientation: {
99471
+ type: String,
99472
+ default: "horizontal",
99473
+ validator: (ps) => ["horizontal", "vertical"].indexOf(ps) === -1 ? (console.warn(`BWTabs: invalid "${ps}" orientation. Should be horizontal or vertical`), !1) : !0
99474
+ },
99475
+ /**
99476
+ * Container width (px — same observer-based measurement as
99477
+ * `compactBreakpoint` / `mobileBreakpoint`) below which `orientation:
99478
+ * "vertical"` reverts to the horizontal bar. Only consulted when
99479
+ * `orientation === "vertical"`. Defaults to `768` to mirror the classic
99480
+ * tablet breakpoint; set lower to keep tabs vertical in narrower columns.
99481
+ */
99482
+ verticalBreakpoint: {
99483
+ type: Number,
99484
+ default: 768
99457
99485
  }
99458
99486
  },
99459
- emits: ["update:modelValue"],
99487
+ emits: ["update:modelValue", "select"],
99460
99488
  setup(ps, { emit: Ig }) {
99461
- var Kg, _g;
99462
- const Zg = ps, Gg = Ig, Bg = ref$1(Zg.modelValue ?? Zg.selected ?? ((_g = (Kg = Zg.tabs) == null ? void 0 : Kg[0]) == null ? void 0 : _g.value)), Wg = computed(() => {
99489
+ var _g, il;
99490
+ const Zg = ps, Gg = Ig, Bg = ref$1(Zg.modelValue ?? Zg.selected ?? ((il = (_g = Zg.tabs) == null ? void 0 : _g[0]) == null ? void 0 : il.value)), Wg = computed(() => {
99491
+ if (Zg.orientation === "vertical") return "";
99463
99492
  if (Zg.slider) {
99464
99493
  if (Zg.type === "rounded") {
99465
99494
  if (Zg.tabs.length === 3)
@@ -99476,56 +99505,56 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99476
99505
  return "";
99477
99506
  }), Ng = ref$1(null), Vg = ref$1(0);
99478
99507
  let Xg = null;
99479
- const Yg = computed(() => !Zg.mobileBreakpoint || Vg.value === 0 ? !1 : Vg.value < Zg.mobileBreakpoint), Fg = computed(() => Yg.value || !Zg.compactBreakpoint || Vg.value === 0 ? !1 : Vg.value < Zg.compactBreakpoint), Tg = computed(
99480
- () => Zg.tabs.map((il) => ({
99481
- value: il.value,
99482
- label: `${il.label}${il.suffix ? ` (${il.suffix})` : ""}`
99508
+ const Yg = computed(() => !Zg.mobileBreakpoint || Vg.value === 0 ? !1 : Vg.value < Zg.mobileBreakpoint), Fg = computed(() => Yg.value || !Zg.compactBreakpoint || Vg.value === 0 ? !1 : Vg.value < Zg.compactBreakpoint), Tg = computed(() => !(Zg.orientation !== "vertical" || Yg.value || Vg.value !== 0 && Vg.value < Zg.verticalBreakpoint)), Lg = computed(
99509
+ () => Zg.tabs.map((Hg) => ({
99510
+ value: Hg.value,
99511
+ label: `${Hg.label}${Hg.suffix ? ` (${Hg.suffix})` : ""}`
99483
99512
  }))
99484
- ), Lg = (il) => Bg.value === il.value ? il.color ?? Zg.color ?? "primary" : il.color, Dg = async (il) => {
99485
- il && (Zg.isvalidationrequired && await Jg(() => Zg.isvalid), (Zg.isvalid === 1 || !Zg.isvalidationrequired) && (Bg.value = il));
99486
- }, Jg = (il) => new Promise((Hg) => {
99487
- const eI = setInterval(() => {
99488
- (il() === 1 || il() === 0) && (clearInterval(eI), Hg());
99513
+ ), Dg = (Hg) => Bg.value === Hg.value ? Hg.color ?? Zg.color ?? "primary" : Hg.color, Jg = async (Hg) => {
99514
+ Hg && (Zg.isvalidationrequired && await $g(() => Zg.isvalid), (Zg.isvalid === 1 || !Zg.isvalidationrequired) && (Bg.value = Hg));
99515
+ }, $g = (Hg) => new Promise((eI) => {
99516
+ const iI = setInterval(() => {
99517
+ (Hg() === 1 || Hg() === 0) && (clearInterval(iI), eI());
99489
99518
  }, 50);
99490
- }), $g = async (il) => {
99491
- Zg.isvalidationrequired && await Jg(() => Zg.isvalid), Zg.isvalid === 1 || !Zg.isvalidationrequired ? Bg.value = il.value : console.log("Error on Validation !");
99519
+ }), Qg = async (Hg) => {
99520
+ Zg.isvalidationrequired && await $g(() => Zg.isvalid), Zg.isvalid === 1 || !Zg.isvalidationrequired ? Bg.value = Hg.value : console.log("Error on Validation !");
99492
99521
  };
99493
- function Qg(il) {
99494
- Zg.disabled || (Bg.value = il);
99522
+ function Kg(Hg) {
99523
+ Zg.disabled || (Bg.value = Hg);
99495
99524
  }
99496
99525
  return onMounted(() => {
99497
- console.log("|===>V-Tabs:", Zg), Zg.modelValue === void 0 && Zg.selected === void 0 && Bg.value !== void 0 && Gg("update:modelValue", Bg.value), !(typeof window > "u" || typeof ResizeObserver > "u") && (!Zg.compactBreakpoint && !Zg.mobileBreakpoint || Ng.value && (Xg = new ResizeObserver((il) => {
99498
- const Hg = il[il.length - 1];
99499
- Hg && (Vg.value = Hg.contentRect.width);
99526
+ console.log("|===>V-Tabs:", Zg), Zg.modelValue === void 0 && Zg.selected === void 0 && Bg.value !== void 0 && (Gg("update:modelValue", Bg.value), Gg("select", Bg.value)), !(typeof window > "u" || typeof ResizeObserver > "u") && (!Zg.compactBreakpoint && !Zg.mobileBreakpoint && Zg.orientation !== "vertical" || Ng.value && (Xg = new ResizeObserver((Hg) => {
99527
+ const eI = Hg[Hg.length - 1];
99528
+ eI && (Vg.value = eI.contentRect.width);
99500
99529
  }), Xg.observe(Ng.value)));
99501
99530
  }), onBeforeUnmount(() => {
99502
99531
  Xg == null || Xg.disconnect(), Xg = null;
99503
99532
  }), watch(
99504
99533
  () => Bg.value,
99505
- (il, Hg) => {
99506
- console.log("ActiveValue.value has changed:", il, Hg), Gg("update:modelValue", Bg.value);
99534
+ (Hg, eI) => {
99535
+ console.log("ActiveValue.value has changed:", Hg, eI), Gg("update:modelValue", Bg.value), Gg("select", Bg.value);
99507
99536
  }
99508
99537
  ), watch(
99509
99538
  () => Zg.selected,
99510
- (il, Hg) => {
99511
- console.log("props.selected has changed:", il, Hg), Bg.value = Zg.selected;
99539
+ (Hg, eI) => {
99540
+ console.log("props.selected has changed:", Hg, eI), Bg.value = Zg.selected;
99512
99541
  }
99513
- ), (il, Hg) => {
99514
- const eI = resolveComponent("Multiselect"), iI = BWIcon, tI = _sfc_main$26, nI = BWLoader;
99542
+ ), (Hg, eI) => {
99543
+ const iI = resolveComponent("Multiselect"), tI = BWIcon, nI = _sfc_main$26, oI = BWLoader;
99515
99544
  return openBlock(), createElementBlock("div", {
99516
99545
  ref_key: "rootEl",
99517
99546
  ref: Ng,
99518
99547
  class: "card-inner"
99519
99548
  }, [
99520
99549
  createElementVNode("div", {
99521
- class: normalizeClass(["tabs-wrapper", [Wg.value]])
99550
+ class: normalizeClass(["tabs-wrapper", [Wg.value, Tg.value && "is-vertical"]])
99522
99551
  }, [
99523
99552
  createElementVNode("div", _hoisted_1$15, [
99524
99553
  Yg.value ? (openBlock(), createElementBlock("div", _hoisted_2$Z, [
99525
- createVNode(eI, {
99554
+ createVNode(iI, {
99526
99555
  class: "bw-tab-select",
99527
99556
  "model-value": Bg.value,
99528
- options: Tg.value,
99557
+ options: Lg.value,
99529
99558
  "value-prop": "value",
99530
99559
  label: "label",
99531
99560
  "track-by": "label",
@@ -99533,7 +99562,7 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99533
99562
  searchable: !1,
99534
99563
  caret: !0,
99535
99564
  "can-clear": !1,
99536
- onChange: Dg
99565
+ onChange: Jg
99537
99566
  }, null, 8, ["model-value", "options", "disabled"])
99538
99567
  ])) : (openBlock(), createElementBlock("div", {
99539
99568
  key: 1,
@@ -99548,31 +99577,31 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99548
99577
  ]])
99549
99578
  }, [
99550
99579
  createElementVNode("ul", null, [
99551
- (openBlock(!0), createElementBlock(Fragment, null, renderList(ps.tabs, (oI, gI) => (openBlock(), createElementBlock("li", {
99552
- key: gI,
99553
- class: normalizeClass([Bg.value === oI.value && "is-active"])
99580
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(ps.tabs, (gI, hI) => (openBlock(), createElementBlock("li", {
99581
+ key: hI,
99582
+ class: normalizeClass([Bg.value === gI.value && "is-active"])
99554
99583
  }, [
99555
99584
  ps.disabled ? (openBlock(), createElementBlock("a", {
99556
99585
  key: 1,
99557
- class: normalizeClass([Bg.value !== oI.value && "is-disabled"])
99586
+ class: normalizeClass([Bg.value !== gI.value && "is-disabled"])
99558
99587
  }, [
99559
- oI.icon ? (openBlock(), createBlock(iI, {
99588
+ gI.icon ? (openBlock(), createBlock(tI, {
99560
99589
  key: 0,
99561
- icon: oI.icon,
99590
+ icon: gI.icon,
99562
99591
  size: ps.iconSize
99563
99592
  }, null, 8, ["icon", "size"])) : createCommentVNode("", !0),
99564
99593
  createElementVNode("span", _hoisted_6$n, [
99565
- renderSlot(il.$slots, "tab-link-label", mergeProps({ ref_for: !0 }, {
99594
+ renderSlot(Hg.$slots, "tab-link-label", mergeProps({ ref_for: !0 }, {
99566
99595
  activeValue: Bg.value,
99567
- tab: oI,
99568
- key: gI,
99569
- toggle: Qg
99596
+ tab: gI,
99597
+ key: hI,
99598
+ toggle: Kg
99570
99599
  }), () => [
99571
- createTextVNode(toDisplayString$1(oI.label), 1)
99600
+ createTextVNode(toDisplayString$1(gI.label), 1)
99572
99601
  ])
99573
99602
  ]),
99574
99603
  createElementVNode("span", _hoisted_7$l, [
99575
- createVNode(nI, {
99604
+ createVNode(oI, {
99576
99605
  active: Zg.loading,
99577
99606
  type: "spinner-letter",
99578
99607
  size: "small",
@@ -99580,10 +99609,10 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99580
99609
  width: "100%"
99581
99610
  }, {
99582
99611
  "waited-content": withCtx(() => [
99583
- oI.suffix && Wg.value === "" ? (openBlock(), createBlock(tI, {
99612
+ gI.suffix && Wg.value === "" ? (openBlock(), createBlock(nI, {
99584
99613
  key: 0,
99585
99614
  color: "solid",
99586
- label: oI.suffix
99615
+ label: gI.suffix
99587
99616
  }, null, 8, ["label"])) : createCommentVNode("", !0)
99588
99617
  ]),
99589
99618
  _: 2
@@ -99591,27 +99620,27 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99591
99620
  ])
99592
99621
  ], 2)) : (openBlock(), createElementBlock("a", {
99593
99622
  key: 0,
99594
- onClick: (hI) => $g(oI),
99623
+ onClick: (wI) => Qg(gI),
99595
99624
  class: normalizeClass([Zg.color && `is-${ps.color}`])
99596
99625
  }, [
99597
- oI.icon ? (openBlock(), createBlock(iI, {
99626
+ gI.icon ? (openBlock(), createBlock(tI, {
99598
99627
  key: 0,
99599
- icon: oI.icon,
99628
+ icon: gI.icon,
99600
99629
  size: ps.iconSize,
99601
- color: Lg(oI)
99630
+ color: Dg(gI)
99602
99631
  }, null, 8, ["icon", "size", "color"])) : createCommentVNode("", !0),
99603
99632
  createElementVNode("span", _hoisted_4$E, [
99604
- renderSlot(il.$slots, "tab-link-label", mergeProps({ ref_for: !0 }, {
99633
+ renderSlot(Hg.$slots, "tab-link-label", mergeProps({ ref_for: !0 }, {
99605
99634
  activeValue: Bg.value,
99606
- tab: oI,
99607
- key: gI,
99608
- toggle: Qg
99635
+ tab: gI,
99636
+ key: hI,
99637
+ toggle: Kg
99609
99638
  }), () => [
99610
- createTextVNode(toDisplayString$1(oI.label), 1)
99639
+ createTextVNode(toDisplayString$1(gI.label), 1)
99611
99640
  ])
99612
99641
  ]),
99613
99642
  createElementVNode("span", _hoisted_5$w, [
99614
- createVNode(nI, {
99643
+ createVNode(oI, {
99615
99644
  active: Zg.loading,
99616
99645
  type: "spinner-letter",
99617
99646
  size: "small",
@@ -99619,10 +99648,10 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99619
99648
  width: "100%"
99620
99649
  }, {
99621
99650
  "waited-content": withCtx(() => [
99622
- oI.suffix && Wg.value === "" ? (openBlock(), createBlock(tI, {
99651
+ gI.suffix && Wg.value === "" ? (openBlock(), createBlock(nI, {
99623
99652
  key: 0,
99624
- color: Bg.value === oI.value ? "primary" : "solid",
99625
- label: oI.suffix
99653
+ color: Bg.value === gI.value ? "primary" : "solid",
99654
+ label: gI.suffix
99626
99655
  }, null, 8, ["color", "label"])) : createCommentVNode("", !0)
99627
99656
  ]),
99628
99657
  _: 2
@@ -99635,14 +99664,14 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99635
99664
  ], 2))
99636
99665
  ]),
99637
99666
  createElementVNode("div", _hoisted_9$g, [
99638
- ps.renderAllTabs ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(ps.tabs, (oI) => (openBlock(), createElementBlock("div", {
99639
- key: oI.value,
99640
- class: normalizeClass(["tab-content", { "is-active": Bg.value === oI.value, "is-hidden": Bg.value !== oI.value }])
99667
+ ps.renderAllTabs ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(ps.tabs, (gI) => (openBlock(), createElementBlock("div", {
99668
+ key: gI.value,
99669
+ class: normalizeClass(["tab-content", { "is-active": Bg.value === gI.value, "is-hidden": Bg.value !== gI.value }])
99641
99670
  }, [
99642
- renderSlot(il.$slots, "tab", {
99643
- activeValue: oI.value,
99644
- tabValue: oI.value,
99645
- isActive: Bg.value === oI.value
99671
+ renderSlot(Hg.$slots, "tab", {
99672
+ activeValue: gI.value,
99673
+ tabValue: gI.value,
99674
+ isActive: Bg.value === gI.value
99646
99675
  })
99647
99676
  ], 2))), 128)) : (openBlock(), createElementBlock("div", _hoisted_10$d, [
99648
99677
  createVNode(Transition$1, {
@@ -99650,7 +99679,7 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99650
99679
  mode: "out-in"
99651
99680
  }, {
99652
99681
  default: withCtx(() => [
99653
- renderSlot(il.$slots, "tab", { activeValue: Bg.value })
99682
+ renderSlot(Hg.$slots, "tab", { activeValue: Bg.value })
99654
99683
  ]),
99655
99684
  _: 3
99656
99685
  }, 8, ["name"])
@@ -123120,7 +123149,7 @@ class Columns {
123120
123149
  const Tg = Bg.headings[Ig], Lg = [];
123121
123150
  if (Tg.getAttribute("data-type") === "date") {
123122
123151
  let Dg = !1;
123123
- Tg.hasAttribute("data-format") && (Dg = Tg.getAttribute("data-format")), Lg.push(import("./date-DBWA5uw4.js").then(({ parseDate: $g }) => (Qg) => $g(Qg, Dg)));
123152
+ Tg.hasAttribute("data-format") && (Dg = Tg.getAttribute("data-format")), Lg.push(import("./date-DjWkhaEo.js").then(({ parseDate: $g }) => (Qg) => $g(Qg, Dg)));
123124
123153
  }
123125
123154
  Promise.all(Lg).then((Dg) => {
123126
123155
  const Jg = Dg[0];
@@ -124657,7 +124686,7 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
124657
124686
  Qg.value = !0, _g.value = null;
124658
124687
  let MI;
124659
124688
  try {
124660
- ({ Previewer: MI } = await import("./index-GvzuBJ9R.js"));
124689
+ ({ Previewer: MI } = await import("./index-8Q__0uMv.js"));
124661
124690
  } catch (OI) {
124662
124691
  _g.value = "pagedjs is not installed. Run: npm i pagedjs", Qg.value = !1, Bg("render-error", OI);
124663
124692
  return;
@@ -124768,7 +124797,7 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
124768
124797
  }
124769
124798
  const [_I, cC] = await Promise.all([
124770
124799
  import("./html2canvas.esm-DgdJBc_o.js"),
124771
- import("./jspdf.es.min-DB6aqQnM.js").then((dC) => dC.j)
124800
+ import("./jspdf.es.min-BA1grGKI.js").then((dC) => dC.j)
124772
124801
  ]), 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({
124773
124802
  orientation: uC,
124774
124803
  unit: "mm",
@@ -1,5 +1,5 @@
1
- import { c as Va, g as al } from "./index-CN5N7CGr.js";
2
- import { _ as ka } from "./jspdf.es.min-DB6aqQnM.js";
1
+ import { c as Va, g as al } from "./index-DEeDIwHG.js";
2
+ import { _ as ka } from "./jspdf.es.min-BA1grGKI.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-C9LZGIV6.js")).catch(function(k) {
9249
+ return (Kt.canvg ? Promise.resolve(Kt.canvg) : import("./index.es-DvRf3wqp.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;