@factoringplus/pl-components-pack-v3 1.8.22-pre-02-test-version → 1.8.22-pre-03-test-version

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.
@@ -32640,7 +32640,7 @@ const Tg = /* @__PURE__ */ Xn(pj), vj = { key: 0 }, hj = {
32640
32640
  ],
32641
32641
  setup(e, { expose: t, emit: n }) {
32642
32642
  Jr((z) => ({
32643
- "04d03c69": s.value
32643
+ "02f43780": s.value
32644
32644
  }));
32645
32645
  const r = n, o = e, s = D(() => fp(o.bodyHeight)), { width: l } = Qn(), { rows: u } = Ut(o), c = ur(), d = M({}), v = M(), p = D(() => o.isLoading), b = M(!0), y = M(1), m = M(20), g = M(), _ = D(() => {
32646
32646
  var z;
@@ -32735,186 +32735,183 @@ const Tg = /* @__PURE__ */ Xn(pj), vj = { key: 0 }, hj = {
32735
32735
  Z();
32736
32736
  }), t({ resetSelectedRows: J, selectAllRows: Y }), (z, ie) => {
32737
32737
  const ve = Ma, Oe = Cb, Te = zt("tap"), we = zt("pl-infinite-scroll");
32738
- return S(), O(et, null, [
32739
- We(ce(_.value) + " ", 1),
32740
- R("div", {
32741
- id: "lk-table",
32742
- ref_key: "wrapper",
32743
- ref: v,
32744
- "data-testid": "table-main",
32745
- role: "table"
32746
- }, [
32747
- f(l) >= 1024 ? (S(), O("div", vj, [
32748
- b.value ? (S(), O("div", hj, [
32749
- ae(Eg, {
32750
- "is-selectable": !!z.isSelectable,
32751
- headers: j.value,
32752
- "table-style": te.value
32753
- }, null, 8, ["is-selectable", "headers", "table-style"])
32754
- ])) : (S(), O("div", mj, [
32755
- ae(ve, {
32756
- ref_key: "tableHeaderScroll",
32757
- ref: $,
32758
- "view-class": "d-grid gap-1 pl-table-plus-scrollbar-view__inherit-max-width",
32759
- "hide-scroll-thumb": "",
32760
- onScroll: w
32761
- }, {
32762
- default: X(() => [
32763
- R("div", gj, [
32764
- R("div", {
32765
- class: "d-grid flex-grow-1",
32766
- style: je(te.value),
32767
- role: "row"
32738
+ return S(), O("div", {
32739
+ id: "lk-table",
32740
+ ref_key: "wrapper",
32741
+ ref: v,
32742
+ "data-testid": "table-main",
32743
+ role: "table"
32744
+ }, [
32745
+ f(l) >= 1024 ? (S(), O("div", vj, [
32746
+ b.value ? (S(), O("div", hj, [
32747
+ ae(Eg, {
32748
+ "is-selectable": !!z.isSelectable,
32749
+ headers: j.value,
32750
+ "table-style": te.value
32751
+ }, null, 8, ["is-selectable", "headers", "table-style"])
32752
+ ])) : (S(), O("div", mj, [
32753
+ ae(ve, {
32754
+ ref_key: "tableHeaderScroll",
32755
+ ref: $,
32756
+ "view-class": "d-grid gap-1 pl-table-plus-scrollbar-view__inherit-max-width",
32757
+ "hide-scroll-thumb": "",
32758
+ onScroll: w
32759
+ }, {
32760
+ default: X(() => [
32761
+ R("div", gj, [
32762
+ R("div", {
32763
+ class: "d-grid flex-grow-1",
32764
+ style: je(te.value),
32765
+ role: "row"
32766
+ }, [
32767
+ z.isSelectable ? (S(), O("div", yj, [
32768
+ ae(li, {
32769
+ modelValue: I.value,
32770
+ "onUpdate:modelValue": ie[0] || (ie[0] = (Ce) => I.value = Ce),
32771
+ disabled: p.value || !F.value.length,
32772
+ "is-indeterminate": !!G.value,
32773
+ size: "small",
32774
+ onMousedown: Q
32775
+ }, null, 8, ["modelValue", "disabled", "is-indeterminate"])
32776
+ ])) : q("", !0),
32777
+ (S(!0), O(et, null, pt(j.value, (Ce, Ee) => (S(), O("div", {
32778
+ key: Ee + "headerCell",
32779
+ class: V(["table-cell", [{ "table-cell_align-right": Ce.alignRight || o.alignRight }]]),
32780
+ role: "columnheader"
32768
32781
  }, [
32769
- z.isSelectable ? (S(), O("div", yj, [
32770
- ae(li, {
32771
- modelValue: I.value,
32772
- "onUpdate:modelValue": ie[0] || (ie[0] = (Ce) => I.value = Ce),
32773
- disabled: p.value || !F.value.length,
32774
- "is-indeterminate": !!G.value,
32775
- size: "small",
32776
- onMousedown: Q
32777
- }, null, 8, ["modelValue", "disabled", "is-indeterminate"])
32778
- ])) : q("", !0),
32779
- (S(!0), O(et, null, pt(j.value, (Ce, Ee) => (S(), O("div", {
32780
- key: Ee + "headerCell",
32781
- class: V(["table-cell", [{ "table-cell_align-right": Ce.alignRight || o.alignRight }]]),
32782
- role: "columnheader"
32783
- }, [
32784
- ae(ir, { class: "tertiary-text-color" }, {
32785
- default: X(() => [
32786
- We(ce(Ce.label), 1)
32787
- ]),
32788
- _: 2
32789
- }, 1024)
32790
- ], 2))), 128))
32791
- ], 4)
32792
- ])
32793
- ]),
32794
- _: 1
32795
- }, 512)
32796
- ])),
32797
- bj
32798
- ])) : q("", !0),
32799
- qe(R("div", {
32800
- class: V(["table-body rows-skeleton", [{ "table-body__fixed": s.value !== "100%" }]])
32782
+ ae(ir, { class: "tertiary-text-color" }, {
32783
+ default: X(() => [
32784
+ We(ce(Ce.label), 1)
32785
+ ]),
32786
+ _: 2
32787
+ }, 1024)
32788
+ ], 2))), 128))
32789
+ ], 4)
32790
+ ])
32791
+ ]),
32792
+ _: 1
32793
+ }, 512)
32794
+ ])),
32795
+ bj
32796
+ ])) : q("", !0),
32797
+ qe(R("div", {
32798
+ class: V(["table-body rows-skeleton", [{ "table-body__fixed": s.value !== "100%" }]])
32799
+ }, [
32800
+ (S(!0), O(et, null, pt(f(u).length || 5, (Ce, Ee) => (S(), O("div", {
32801
+ key: Ce + "skeletonRow"
32801
32802
  }, [
32802
- (S(!0), O(et, null, pt(f(u).length || 5, (Ce, Ee) => (S(), O("div", {
32803
- key: Ce + "skeletonRow"
32803
+ ae(Eg, {
32804
+ "is-selectable": !!z.isSelectable,
32805
+ headers: j.value,
32806
+ "table-style": te.value,
32807
+ "mobile-bottom": f(c).mobileBottom,
32808
+ "mobile-top": f(c).mobileTop
32809
+ }, null, 8, ["is-selectable", "headers", "table-style", "mobile-bottom", "mobile-top"]),
32810
+ f(l) < 1024 && Ee < (f(u).length || 5) - 1 ? (S(), O("div", _j, Cj)) : q("", !0)
32811
+ ]))), 128))
32812
+ ], 2), [
32813
+ [mn, p.value]
32814
+ ]),
32815
+ qe(R("div", Sj, [
32816
+ Pe(z.$slots, "noDataContainer")
32817
+ ], 512), [
32818
+ [mn, !p.value && f(c).noDataContainer && !f(u).length]
32819
+ ]),
32820
+ qe((S(), oe(ve, {
32821
+ ref_key: "tableBodyScroll",
32822
+ ref: g,
32823
+ "data-testid": "table-body",
32824
+ class: "table-body mt-md-table-0",
32825
+ role: "rowgroup",
32826
+ height: z.bodyHeight,
32827
+ "wrap-class": `pt-1 pt-md-table-0 ${_.value ? "pb-3" : ""}`,
32828
+ "view-class": "d-grid gap-1 pl-table-plus-scrollbar-view__inherit-max-width",
32829
+ "always-show-x-thumb": "",
32830
+ onScroll: T
32831
+ }, {
32832
+ default: X(() => [
32833
+ (S(!0), O(et, null, pt(f(u), (Ce, Ee) => qe((S(), O("div", {
32834
+ key: (Ce == null ? void 0 : Ce[z.uniqKey]) || Ee + "tableRow",
32835
+ class: V([[
32836
+ { "with-hover": z.withHover && f(l) >= 1024 && !z.border },
32837
+ { "with-border": z.border && f(l) >= 1024 }
32838
+ ], "table-row"]),
32839
+ "data-testid": "table-row",
32840
+ role: "row"
32804
32841
  }, [
32805
- ae(Eg, {
32806
- "is-selectable": !!z.isSelectable,
32807
- headers: j.value,
32808
- "table-style": te.value,
32809
- "mobile-bottom": f(c).mobileBottom,
32810
- "mobile-top": f(c).mobileTop
32811
- }, null, 8, ["is-selectable", "headers", "table-style", "mobile-bottom", "mobile-top"]),
32812
- f(l) < 1024 && Ee < (f(u).length || 5) - 1 ? (S(), O("div", _j, Cj)) : q("", !0)
32813
- ]))), 128))
32814
- ], 2), [
32815
- [mn, p.value]
32816
- ]),
32817
- qe(R("div", Sj, [
32818
- Pe(z.$slots, "noDataContainer")
32819
- ], 512), [
32820
- [mn, !p.value && f(c).noDataContainer && !f(u).length]
32821
- ]),
32822
- qe((S(), oe(ve, {
32823
- ref_key: "tableBodyScroll",
32824
- ref: g,
32825
- "data-testid": "table-body",
32826
- class: "table-body mt-md-table-0",
32827
- role: "rowgroup",
32828
- height: z.bodyHeight,
32829
- "wrap-class": `pt-1 pt-md-table-0 ${_.value ? "pb-3" : ""}`,
32830
- "view-class": "d-grid gap-1 pl-table-plus-scrollbar-view__inherit-max-width",
32831
- "always-show-x-thumb": "",
32832
- onScroll: T
32833
- }, {
32834
- default: X(() => [
32835
- (S(!0), O(et, null, pt(f(u), (Ce, Ee) => qe((S(), O("div", {
32836
- key: (Ce == null ? void 0 : Ce[z.uniqKey]) || Ee + "tableRow",
32837
- class: V([[
32838
- { "with-hover": z.withHover && f(l) >= 1024 && !z.border },
32839
- { "with-border": z.border && f(l) >= 1024 }
32840
- ], "table-row"]),
32841
- "data-testid": "table-row",
32842
- role: "row"
32843
- }, [
32844
- R("div", kj, [
32845
- f(l) < 1024 && f(c).mobileTop ? (S(), O("div", xj, [
32846
- z.isSelectable ? (S(), oe(li, {
32847
- key: 0,
32842
+ R("div", kj, [
32843
+ f(l) < 1024 && f(c).mobileTop ? (S(), O("div", xj, [
32844
+ z.isSelectable ? (S(), oe(li, {
32845
+ key: 0,
32846
+ modelValue: d.value[(Ce == null ? void 0 : Ce[z.uniqKey]) || Ee],
32847
+ "onUpdate:modelValue": (Ue) => d.value[(Ce == null ? void 0 : Ce[z.uniqKey]) || Ee] = Ue,
32848
+ disabled: Ce == null ? void 0 : Ce.isDisabledSelect,
32849
+ size: "small"
32850
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : q("", !0),
32851
+ Pe(z.$slots, "mobileTop", { row: Ce })
32852
+ ])) : q("", !0),
32853
+ j.value.length ? (S(), O("div", {
32854
+ key: 1,
32855
+ class: "d-grid gap-md-table-1 row-gap-md-table-1",
32856
+ style: je(te.value)
32857
+ }, [
32858
+ z.isSelectable && f(l) >= 1024 ? (S(), O("div", $j, [
32859
+ ae(li, {
32848
32860
  modelValue: d.value[(Ce == null ? void 0 : Ce[z.uniqKey]) || Ee],
32849
32861
  "onUpdate:modelValue": (Ue) => d.value[(Ce == null ? void 0 : Ce[z.uniqKey]) || Ee] = Ue,
32850
32862
  disabled: Ce == null ? void 0 : Ce.isDisabledSelect,
32851
32863
  size: "small"
32852
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : q("", !0),
32853
- Pe(z.$slots, "mobileTop", { row: Ce })
32864
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
32854
32865
  ])) : q("", !0),
32855
- j.value.length ? (S(), O("div", {
32856
- key: 1,
32857
- class: "d-grid gap-md-table-1 row-gap-md-table-1",
32858
- style: je(te.value)
32866
+ (S(!0), O(et, null, pt(j.value, (Ue, Ke) => (S(), O("div", {
32867
+ key: Ke + "tableCell",
32868
+ "data-testid": "table-cell",
32869
+ class: V(["table-cell", [{ "table-cell_align-right": Ue.alignRight || o.alignRight }]]),
32870
+ role: "cell"
32859
32871
  }, [
32860
- z.isSelectable && f(l) >= 1024 ? (S(), O("div", $j, [
32861
- ae(li, {
32862
- modelValue: d.value[(Ce == null ? void 0 : Ce[z.uniqKey]) || Ee],
32863
- "onUpdate:modelValue": (Ue) => d.value[(Ce == null ? void 0 : Ce[z.uniqKey]) || Ee] = Ue,
32864
- disabled: Ce == null ? void 0 : Ce.isDisabledSelect,
32865
- size: "small"
32866
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
32867
- ])) : q("", !0),
32868
- (S(!0), O(et, null, pt(j.value, (Ue, Ke) => (S(), O("div", {
32869
- key: Ke + "tableCell",
32870
- "data-testid": "table-cell",
32871
- class: V(["table-cell", [{ "table-cell_align-right": Ue.alignRight || o.alignRight }]]),
32872
- role: "cell"
32872
+ f(l) < 1024 && (Ue != null && Ue.label) ? (S(), oe(ir, {
32873
+ key: 0,
32874
+ class: "tertiary-text-color white-space-nowrap mobile-label"
32875
+ }, {
32876
+ default: X(() => [
32877
+ We(ce(Ue.label), 1)
32878
+ ]),
32879
+ _: 2
32880
+ }, 1024)) : q("", !0),
32881
+ R("div", {
32882
+ style: je(`max-width: ${f(l) >= 1024 ? Ue.maxWidthContent : "100%"}`)
32873
32883
  }, [
32874
- f(l) < 1024 && (Ue != null && Ue.label) ? (S(), oe(ir, {
32875
- key: 0,
32876
- class: "tertiary-text-color white-space-nowrap mobile-label"
32877
- }, {
32878
- default: X(() => [
32879
- We(ce(Ue.label), 1)
32880
- ]),
32881
- _: 2
32882
- }, 1024)) : q("", !0),
32883
- R("div", {
32884
- style: je(`max-width: ${f(l) >= 1024 ? Ue.maxWidthContent : "100%"}`)
32885
- }, [
32886
- Pe(z.$slots, Ue.key, { row: Ce }, () => [
32887
- We(ce(Ce[Ue.label]), 1)
32888
- ])
32889
- ], 4)
32890
- ], 2))), 128))
32891
- ], 4)) : q("", !0),
32892
- f(l) < 1024 && f(c).mobileBottom ? (S(), O("div", Ej, [
32893
- Pe(z.$slots, "mobileBottom", { row: Ce })
32894
- ])) : q("", !0)
32895
- ]),
32896
- f(l) < 1024 && Ee < f(u).length - 1 ? (S(), O("div", Tj, Oj)) : q("", !0)
32897
- ], 2)), [
32898
- [Te, (Ue) => de(Ue, Ce)]
32899
- ])), 128))
32900
- ]),
32901
- _: 3
32902
- }, 8, ["height", "wrap-class"])), [
32903
- [mn, !p.value && f(u).length],
32904
- [we, U]
32884
+ Pe(z.$slots, Ue.key, { row: Ce }, () => [
32885
+ We(ce(Ce[Ue.label]), 1)
32886
+ ])
32887
+ ], 4)
32888
+ ], 2))), 128))
32889
+ ], 4)) : q("", !0),
32890
+ f(l) < 1024 && f(c).mobileBottom ? (S(), O("div", Ej, [
32891
+ Pe(z.$slots, "mobileBottom", { row: Ce })
32892
+ ])) : q("", !0)
32893
+ ]),
32894
+ f(l) < 1024 && Ee < f(u).length - 1 ? (S(), O("div", Tj, Oj)) : q("", !0)
32895
+ ], 2)), [
32896
+ [Te, (Ue) => de(Ue, Ce)]
32897
+ ])), 128))
32905
32898
  ]),
32906
- o.pagination ? (S(), oe(Oe, {
32907
- key: 1,
32908
- total: o.total,
32909
- "page-size": m.value,
32910
- "current-page": y.value,
32911
- "show-page-size": "",
32912
- options: z.pageSizeOptions,
32913
- onPageChange: k,
32914
- onPageSizeChange: x
32915
- }, null, 8, ["total", "page-size", "current-page", "options"])) : q("", !0)
32916
- ], 512)
32917
- ], 64);
32899
+ _: 3
32900
+ }, 8, ["height", "wrap-class"])), [
32901
+ [mn, !p.value && f(u).length],
32902
+ [we, U]
32903
+ ]),
32904
+ o.pagination ? (S(), oe(Oe, {
32905
+ key: 1,
32906
+ total: o.total,
32907
+ "page-size": m.value,
32908
+ "current-page": y.value,
32909
+ "show-page-size": "",
32910
+ options: z.pageSizeOptions,
32911
+ onPageChange: k,
32912
+ onPageSizeChange: x
32913
+ }, null, 8, ["total", "page-size", "current-page", "options"])) : q("", !0)
32914
+ ], 512);
32918
32915
  };
32919
32916
  }
32920
32917
  }), Dj = {