vue3-beak-ui-framework 1.2.65 → 1.2.67

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-Pgp0fR5P.js";
1
+ import { g as rt } from "./index-CxqA86n3.js";
2
2
  var Q = { exports: {} }, it = Q.exports, et;
3
3
  function st() {
4
4
  return et || (et = 1, function(j, V) {
@@ -99459,8 +99459,8 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99459
99459
  },
99460
99460
  emits: ["update:modelValue"],
99461
99461
  setup(ps, { emit: Ig }) {
99462
- var Qg, Kg;
99463
- const Zg = ps, Gg = Ig, Bg = ref$1(Zg.modelValue ?? Zg.selected ?? ((Kg = (Qg = Zg.tabs) == null ? void 0 : Qg[0]) == null ? void 0 : Kg.value)), Wg = computed(() => {
99462
+ var Kg, _g;
99463
+ 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(() => {
99464
99464
  if (Zg.slider) {
99465
99465
  if (Zg.type === "rounded") {
99466
99466
  if (Zg.tabs.length === 3)
@@ -99478,41 +99478,41 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99478
99478
  }), Ng = ref$1(null), Yg = ref$1(0);
99479
99479
  let Xg = null;
99480
99480
  const Vg = computed(() => !Zg.mobileBreakpoint || Yg.value === 0 ? !1 : Yg.value < Zg.mobileBreakpoint), Fg = computed(() => Vg.value || !Zg.compactBreakpoint || Yg.value === 0 ? !1 : Yg.value < Zg.compactBreakpoint), Tg = computed(
99481
- () => Zg.tabs.map((_g) => ({
99482
- value: _g.value,
99483
- label: `${_g.label}${_g.suffix ? ` (${_g.suffix})` : ""}`
99481
+ () => Zg.tabs.map((il) => ({
99482
+ value: il.value,
99483
+ label: `${il.label}${il.suffix ? ` (${il.suffix})` : ""}`
99484
99484
  }))
99485
- ), Lg = async (_g) => {
99486
- _g && (Zg.isvalidationrequired && await Dg(() => Zg.isvalid), (Zg.isvalid === 1 || !Zg.isvalidationrequired) && (Bg.value = _g));
99487
- }, Dg = (_g) => new Promise((il) => {
99488
- const Hg = setInterval(() => {
99489
- (_g() === 1 || _g() === 0) && (clearInterval(Hg), il());
99485
+ ), Lg = (il) => Bg.value === il.value ? il.color ?? Zg.color ?? "primary" : il.color, Dg = async (il) => {
99486
+ il && (Zg.isvalidationrequired && await Jg(() => Zg.isvalid), (Zg.isvalid === 1 || !Zg.isvalidationrequired) && (Bg.value = il));
99487
+ }, Jg = (il) => new Promise((Hg) => {
99488
+ const eI = setInterval(() => {
99489
+ (il() === 1 || il() === 0) && (clearInterval(eI), Hg());
99490
99490
  }, 50);
99491
- }), Jg = async (_g) => {
99492
- Zg.isvalidationrequired && await Dg(() => Zg.isvalid), Zg.isvalid === 1 || !Zg.isvalidationrequired ? Bg.value = _g.value : console.log("Error on Validation !");
99491
+ }), $g = async (il) => {
99492
+ Zg.isvalidationrequired && await Jg(() => Zg.isvalid), Zg.isvalid === 1 || !Zg.isvalidationrequired ? Bg.value = il.value : console.log("Error on Validation !");
99493
99493
  };
99494
- function $g(_g) {
99495
- Zg.disabled || (Bg.value = _g);
99494
+ function Qg(il) {
99495
+ Zg.disabled || (Bg.value = il);
99496
99496
  }
99497
99497
  return onMounted(() => {
99498
- 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((_g) => {
99499
- const il = _g[_g.length - 1];
99500
- il && (Yg.value = il.contentRect.width);
99498
+ 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) => {
99499
+ const Hg = il[il.length - 1];
99500
+ Hg && (Yg.value = Hg.contentRect.width);
99501
99501
  }), Xg.observe(Ng.value)));
99502
99502
  }), onBeforeUnmount(() => {
99503
99503
  Xg == null || Xg.disconnect(), Xg = null;
99504
99504
  }), watch(
99505
99505
  () => Bg.value,
99506
- (_g, il) => {
99507
- console.log("ActiveValue.value has changed:", _g, il), Gg("update:modelValue", Bg.value);
99506
+ (il, Hg) => {
99507
+ console.log("ActiveValue.value has changed:", il, Hg), Gg("update:modelValue", Bg.value);
99508
99508
  }
99509
99509
  ), watch(
99510
99510
  () => Zg.selected,
99511
- (_g, il) => {
99512
- console.log("props.selected has changed:", _g, il), Bg.value = Zg.selected;
99511
+ (il, Hg) => {
99512
+ console.log("props.selected has changed:", il, Hg), Bg.value = Zg.selected;
99513
99513
  }
99514
- ), (_g, il) => {
99515
- const Hg = resolveComponent("Multiselect"), eI = BWIcon, iI = _sfc_main$26, tI = BWLoader;
99514
+ ), (il, Hg) => {
99515
+ const eI = resolveComponent("Multiselect"), iI = BWIcon, tI = _sfc_main$26, nI = BWLoader;
99516
99516
  return openBlock(), createElementBlock("div", {
99517
99517
  ref_key: "rootEl",
99518
99518
  ref: Ng,
@@ -99523,7 +99523,7 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99523
99523
  }, [
99524
99524
  createElementVNode("div", _hoisted_1$15, [
99525
99525
  Vg.value ? (openBlock(), createElementBlock("div", _hoisted_2$Z, [
99526
- createVNode(Hg, {
99526
+ createVNode(eI, {
99527
99527
  class: "bw-tab-select",
99528
99528
  "model-value": Bg.value,
99529
99529
  options: Tg.value,
@@ -99534,7 +99534,7 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99534
99534
  searchable: !1,
99535
99535
  caret: !0,
99536
99536
  "can-clear": !1,
99537
- onChange: Lg
99537
+ onChange: Dg
99538
99538
  }, null, 8, ["model-value", "options", "disabled"])
99539
99539
  ])) : (openBlock(), createElementBlock("div", {
99540
99540
  key: 1,
@@ -99549,31 +99549,31 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99549
99549
  ]])
99550
99550
  }, [
99551
99551
  createElementVNode("ul", null, [
99552
- (openBlock(!0), createElementBlock(Fragment, null, renderList(ps.tabs, (nI, oI) => (openBlock(), createElementBlock("li", {
99553
- key: oI,
99554
- class: normalizeClass([Bg.value === nI.value && "is-active"])
99552
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(ps.tabs, (oI, gI) => (openBlock(), createElementBlock("li", {
99553
+ key: gI,
99554
+ class: normalizeClass([Bg.value === oI.value && "is-active"])
99555
99555
  }, [
99556
99556
  ps.disabled ? (openBlock(), createElementBlock("a", {
99557
99557
  key: 1,
99558
- class: normalizeClass([Bg.value !== nI.value && "is-disabled"])
99558
+ class: normalizeClass([Bg.value !== oI.value && "is-disabled"])
99559
99559
  }, [
99560
- nI.icon ? (openBlock(), createBlock(eI, {
99560
+ oI.icon ? (openBlock(), createBlock(iI, {
99561
99561
  key: 0,
99562
- icon: nI.icon,
99562
+ icon: oI.icon,
99563
99563
  size: ps.iconSize
99564
99564
  }, null, 8, ["icon", "size"])) : createCommentVNode("", !0),
99565
99565
  createElementVNode("span", _hoisted_6$n, [
99566
- renderSlot(_g.$slots, "tab-link-label", mergeProps({ ref_for: !0 }, {
99566
+ renderSlot(il.$slots, "tab-link-label", mergeProps({ ref_for: !0 }, {
99567
99567
  activeValue: Bg.value,
99568
- tab: nI,
99569
- key: oI,
99570
- toggle: $g
99568
+ tab: oI,
99569
+ key: gI,
99570
+ toggle: Qg
99571
99571
  }), () => [
99572
- createTextVNode(toDisplayString$1(nI.label), 1)
99572
+ createTextVNode(toDisplayString$1(oI.label), 1)
99573
99573
  ])
99574
99574
  ]),
99575
99575
  createElementVNode("span", _hoisted_7$l, [
99576
- createVNode(tI, {
99576
+ createVNode(nI, {
99577
99577
  active: Zg.loading,
99578
99578
  type: "spinner-letter",
99579
99579
  size: "small",
@@ -99581,10 +99581,10 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99581
99581
  width: "100%"
99582
99582
  }, {
99583
99583
  "waited-content": withCtx(() => [
99584
- nI.suffix && Wg.value === "" ? (openBlock(), createBlock(iI, {
99584
+ oI.suffix && Wg.value === "" ? (openBlock(), createBlock(tI, {
99585
99585
  key: 0,
99586
99586
  color: "solid",
99587
- label: nI.suffix
99587
+ label: oI.suffix
99588
99588
  }, null, 8, ["label"])) : createCommentVNode("", !0)
99589
99589
  ]),
99590
99590
  _: 2
@@ -99592,27 +99592,27 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99592
99592
  ])
99593
99593
  ], 2)) : (openBlock(), createElementBlock("a", {
99594
99594
  key: 0,
99595
- onClick: (gI) => Jg(nI),
99595
+ onClick: (hI) => $g(oI),
99596
99596
  class: normalizeClass([Zg.color && `is-${ps.color}`])
99597
99597
  }, [
99598
- nI.icon ? (openBlock(), createBlock(eI, {
99598
+ oI.icon ? (openBlock(), createBlock(iI, {
99599
99599
  key: 0,
99600
- icon: nI.icon,
99600
+ icon: oI.icon,
99601
99601
  size: ps.iconSize,
99602
- color: nI.color
99602
+ color: Lg(oI)
99603
99603
  }, null, 8, ["icon", "size", "color"])) : createCommentVNode("", !0),
99604
99604
  createElementVNode("span", _hoisted_4$E, [
99605
- renderSlot(_g.$slots, "tab-link-label", mergeProps({ ref_for: !0 }, {
99605
+ renderSlot(il.$slots, "tab-link-label", mergeProps({ ref_for: !0 }, {
99606
99606
  activeValue: Bg.value,
99607
- tab: nI,
99608
- key: oI,
99609
- toggle: $g
99607
+ tab: oI,
99608
+ key: gI,
99609
+ toggle: Qg
99610
99610
  }), () => [
99611
- createTextVNode(toDisplayString$1(nI.label), 1)
99611
+ createTextVNode(toDisplayString$1(oI.label), 1)
99612
99612
  ])
99613
99613
  ]),
99614
99614
  createElementVNode("span", _hoisted_5$w, [
99615
- createVNode(tI, {
99615
+ createVNode(nI, {
99616
99616
  active: Zg.loading,
99617
99617
  type: "spinner-letter",
99618
99618
  size: "small",
@@ -99620,10 +99620,10 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99620
99620
  width: "100%"
99621
99621
  }, {
99622
99622
  "waited-content": withCtx(() => [
99623
- nI.suffix && Wg.value === "" ? (openBlock(), createBlock(iI, {
99623
+ oI.suffix && Wg.value === "" ? (openBlock(), createBlock(tI, {
99624
99624
  key: 0,
99625
- color: Bg.value === nI.value ? "primary" : "solid",
99626
- label: nI.suffix
99625
+ color: Bg.value === oI.value ? "primary" : "solid",
99626
+ label: oI.suffix
99627
99627
  }, null, 8, ["color", "label"])) : createCommentVNode("", !0)
99628
99628
  ]),
99629
99629
  _: 2
@@ -99636,14 +99636,14 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99636
99636
  ], 2))
99637
99637
  ]),
99638
99638
  createElementVNode("div", _hoisted_9$g, [
99639
- ps.renderAllTabs ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(ps.tabs, (nI) => (openBlock(), createElementBlock("div", {
99640
- key: nI.value,
99641
- class: normalizeClass(["tab-content", { "is-active": Bg.value === nI.value, "is-hidden": Bg.value !== nI.value }])
99639
+ ps.renderAllTabs ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(ps.tabs, (oI) => (openBlock(), createElementBlock("div", {
99640
+ key: oI.value,
99641
+ class: normalizeClass(["tab-content", { "is-active": Bg.value === oI.value, "is-hidden": Bg.value !== oI.value }])
99642
99642
  }, [
99643
- renderSlot(_g.$slots, "tab", {
99644
- activeValue: nI.value,
99645
- tabValue: nI.value,
99646
- isActive: Bg.value === nI.value
99643
+ renderSlot(il.$slots, "tab", {
99644
+ activeValue: oI.value,
99645
+ tabValue: oI.value,
99646
+ isActive: Bg.value === oI.value
99647
99647
  })
99648
99648
  ], 2))), 128)) : (openBlock(), createElementBlock("div", _hoisted_10$d, [
99649
99649
  createVNode(Transition$1, {
@@ -99651,7 +99651,7 @@ const _withScopeId$9 = (ps) => (pushScopeId("data-v-826bf78f"), ps = ps(), popSc
99651
99651
  mode: "out-in"
99652
99652
  }, {
99653
99653
  default: withCtx(() => [
99654
- renderSlot(_g.$slots, "tab", { activeValue: Bg.value })
99654
+ renderSlot(il.$slots, "tab", { activeValue: Bg.value })
99655
99655
  ]),
99656
99656
  _: 3
99657
99657
  }, 8, ["name"])
@@ -123121,7 +123121,7 @@ class Columns {
123121
123121
  const Tg = Bg.headings[Ig], Lg = [];
123122
123122
  if (Tg.getAttribute("data-type") === "date") {
123123
123123
  let Dg = !1;
123124
- Tg.hasAttribute("data-format") && (Dg = Tg.getAttribute("data-format")), Lg.push(import("./date-GOij691p.js").then(({ parseDate: $g }) => (Qg) => $g(Qg, Dg)));
123124
+ Tg.hasAttribute("data-format") && (Dg = Tg.getAttribute("data-format")), Lg.push(import("./date-C0ipXik-.js").then(({ parseDate: $g }) => (Qg) => $g(Qg, Dg)));
123125
123125
  }
123126
123126
  Promise.all(Lg).then((Dg) => {
123127
123127
  const Jg = Dg[0];
@@ -124658,7 +124658,7 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
124658
124658
  Qg.value = !0, _g.value = null;
124659
124659
  let MI;
124660
124660
  try {
124661
- ({ Previewer: MI } = await import("./index-BvQLiMFz.js"));
124661
+ ({ Previewer: MI } = await import("./index-DnmPPrM8.js"));
124662
124662
  } catch (OI) {
124663
124663
  _g.value = "pagedjs is not installed. Run: npm i pagedjs", Qg.value = !1, Bg("render-error", OI);
124664
124664
  return;
@@ -124769,7 +124769,7 @@ const _hoisted_1$M = ["id", "data-uid", "disabled"], _sfc_main$S = /* @__PURE__
124769
124769
  }
124770
124770
  const [_I, cC] = await Promise.all([
124771
124771
  import("./html2canvas.esm-DgdJBc_o.js"),
124772
- import("./jspdf.es.min-oFl18shi.js").then((dC) => dC.j)
124772
+ import("./jspdf.es.min-CdT9solw.js").then((dC) => dC.j)
124773
124773
  ]), 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({
124774
124774
  orientation: uC,
124775
124775
  unit: "mm",
@@ -1,4 +1,4 @@
1
- import { g as Ua } from "./index-Pgp0fR5P.js";
1
+ import { g as Ua } from "./index-CxqA86n3.js";
2
2
  function Le(o) {
3
3
  if (!o)
4
4
  return;
@@ -1,5 +1,5 @@
1
- import { c as Va, g as al } from "./index-Pgp0fR5P.js";
2
- import { _ as ka } from "./jspdf.es.min-oFl18shi.js";
1
+ import { c as Va, g as al } from "./index-CxqA86n3.js";
2
+ import { _ as ka } from "./jspdf.es.min-CdT9solw.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-DsCPB-u7.js")).catch(function(k) {
9249
+ return (Kt.canvg ? Promise.resolve(Kt.canvg) : import("./index.es-oaR1E833.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;