@factoringplus/pl-components-pack-v3 0.14.1-pre-07 → 0.14.1

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.
@@ -20084,7 +20084,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20084
20084
  _hoisted_4$m
20085
20085
  ], 2)) : createCommentVNode("", !0);
20086
20086
  }
20087
- }), plTab_vue_vue_type_style_index_0_scoped_7ed46d1c_lang = "", PlTab = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-7ed46d1c"]]), plTabs_vue_vue_type_style_index_0_scoped_0480b3fa_lang = "", _withScopeId$1 = (t) => (pushScopeId("data-v-0480b3fa"), t = t(), popScopeId(), t), _hoisted_1$B = { class: "pl-tab-container" }, _hoisted_2$t = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "pl-tab-divider" }, null, -1)), _sfc_main$_ = {
20087
+ }), plTab_vue_vue_type_style_index_0_scoped_7ed46d1c_lang = "", PlTab = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-7ed46d1c"]]), plTabs_vue_vue_type_style_index_0_scoped_0bd7221f_lang = "", _withScopeId$1 = (t) => (pushScopeId("data-v-0bd7221f"), t = t(), popScopeId(), t), _hoisted_1$B = { class: "pl-tab-container" }, _hoisted_2$t = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "pl-tab-divider" }, null, -1)), _sfc_main$_ = {
20088
20088
  __name: "pl-tabs",
20089
20089
  props: {
20090
20090
  modelValue: {
@@ -20102,14 +20102,28 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20102
20102
  },
20103
20103
  emits: ["update:modelValue"],
20104
20104
  setup(t, { emit: n }) {
20105
- const r = t, g = useSlots(), k = computed$1(() => Array.isArray(g.default()[0].children) ? g.default()[0].children.map(($) => $.props) : g.default().map(($) => $.props)), j = computed$1(() => Array.isArray(g.default()[0].children) ? g.default()[0].children.filter((re) => r.modelValue === re.props.name)[0] : g.default().filter((V) => {
20106
- var re;
20107
- return r.modelValue === ((re = V.props) == null ? void 0 : re.name);
20108
- })[0]), L = ($) => {
20109
- $.disabled || n("update:modelValue", $.name);
20105
+ const r = t, g = useSlots(), k = computed$1(() => Array.isArray(g.default()[0].children) ? g.default()[0].children.map((oe) => oe.props) : g.default().map((oe) => oe.props)), j = ref(null), L = async (oe, ae) => {
20106
+ const ie = await Promise.all(oe.map(ae));
20107
+ return oe.filter((ue, de) => ie[de])[0];
20108
+ }, $ = async (oe) => {
20109
+ var ae;
20110
+ return r.modelValue === ((ae = oe.props) == null ? void 0 : ae.name);
20111
+ }, V = async () => {
20112
+ Array.isArray(g.default()[0].children) ? j.value = await L(g.default()[0].children, $) : j.value = await L(g.default(), $);
20110
20113
  };
20111
- return ($, V) => {
20112
- const re = resolveDirective("tap");
20114
+ watch(
20115
+ () => r.modelValue,
20116
+ async () => {
20117
+ await V();
20118
+ }
20119
+ ), onMounted(async () => {
20120
+ await V();
20121
+ });
20122
+ const re = (oe) => {
20123
+ oe.disabled || n("update:modelValue", oe.name);
20124
+ };
20125
+ return (oe, ae) => {
20126
+ const ie = resolveDirective("tap");
20113
20127
  return openBlock(), createElementBlock("div", _hoisted_1$B, [
20114
20128
  createElementVNode("div", {
20115
20129
  class: normalizeClass([
@@ -20117,15 +20131,15 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20117
20131
  r.navClass
20118
20132
  ])
20119
20133
  }, [
20120
- (openBlock(!0), createElementBlock(Fragment, null, renderList(k.value, (oe) => withDirectives((openBlock(), createBlock(PlTab, {
20121
- key: oe == null ? void 0 : oe.name,
20122
- label: oe == null ? void 0 : oe.label,
20123
- active: r.modelValue === (oe == null ? void 0 : oe.name),
20124
- icon: oe == null ? void 0 : oe.icon,
20125
- disabled: oe == null ? void 0 : oe.disabled,
20126
- counter: oe == null ? void 0 : oe.counter
20134
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(k.value, (ue) => withDirectives((openBlock(), createBlock(PlTab, {
20135
+ key: ue == null ? void 0 : ue.name,
20136
+ label: ue == null ? void 0 : ue.label,
20137
+ active: r.modelValue === (ue == null ? void 0 : ue.name),
20138
+ icon: ue == null ? void 0 : ue.icon,
20139
+ disabled: ue == null ? void 0 : ue.disabled,
20140
+ counter: ue == null ? void 0 : ue.counter
20127
20141
  }, null, 8, ["label", "active", "icon", "disabled", "counter"])), [
20128
- [re, () => L(oe)]
20142
+ [ie, () => re(ue)]
20129
20143
  ])), 128)),
20130
20144
  _hoisted_2$t
20131
20145
  ], 2),
@@ -20137,7 +20151,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20137
20151
  ]);
20138
20152
  };
20139
20153
  }
20140
- }, PlTabs = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-0480b3fa"]]), _sfc_main$Z = {
20154
+ }, PlTabs = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-0bd7221f"]]), _sfc_main$Z = {
20141
20155
  __name: "pl-tab-pane",
20142
20156
  props: {
20143
20157
  label: {
@@ -20216,7 +20230,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20216
20230
  createElementVNode("span", null, toDisplayString(n.label), 1)
20217
20231
  ], 2)) : createCommentVNode("", !0);
20218
20232
  }
20219
- }), plTabCard_vue_vue_type_style_index_0_scoped_5d0a6b4e_lang = "", PlTabCard = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-5d0a6b4e"]]), plMultitab_vue_vue_type_style_index_0_scoped_7e9149d7_lang = "", _hoisted_1$A = { class: "pl-multitab-container" }, _sfc_main$X = {
20233
+ }), plTabCard_vue_vue_type_style_index_0_scoped_5d0a6b4e_lang = "", PlTabCard = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-5d0a6b4e"]]), plMultitab_vue_vue_type_style_index_0_scoped_a84cfae4_lang = "", _hoisted_1$A = { class: "pl-multitab-container" }, _sfc_main$X = {
20220
20234
  __name: "pl-multitab",
20221
20235
  props: {
20222
20236
  modelValue: {
@@ -20238,30 +20252,28 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20238
20252
  },
20239
20253
  emits: ["update:modelValue"],
20240
20254
  setup(t, { emit: n }) {
20241
- const r = t, g = useSlots(), k = computed$1(() => Array.isArray(g.default()[0].children) ? g.default()[0].children.map((oe) => oe.props) : g.default().map((oe) => oe.props)), j = (oe) => {
20242
- oe.disabled || n("update:modelValue", oe.name);
20243
- }, L = ref(null), $ = async (oe, ae) => {
20244
- const ie = await Promise.all(oe.map(ae));
20245
- return oe.filter((ue, de) => ie[de])[0];
20246
- }, V = async (oe) => {
20247
- var ae;
20248
- return r.modelValue === ((ae = oe.props) == null ? void 0 : ae.name);
20255
+ const r = t, g = useSlots(), k = computed$1(() => Array.isArray(g.default()[0].children) ? g.default()[0].children.map((ae) => ae.props) : g.default().map((ae) => ae.props)), j = (ae) => {
20256
+ ae.disabled || n("update:modelValue", ae.name);
20257
+ }, L = ref(null), $ = async (ae, ie) => {
20258
+ const ue = await Promise.all(ae.map(ie));
20259
+ return ae.filter((de, pe) => ue[pe])[0];
20260
+ }, V = async (ae) => {
20261
+ var ie;
20262
+ return r.modelValue === ((ie = ae.props) == null ? void 0 : ie.name);
20263
+ }, re = async () => {
20264
+ Array.isArray(g.default()[0].children) ? L.value = await $(g.default()[0].children, V) : L.value = await $(g.default(), V);
20249
20265
  };
20250
20266
  watch(
20251
20267
  () => r.modelValue,
20252
20268
  async () => {
20253
- Array.isArray(g.default()[0].children) && (L.value = await $(g.default()[0].children, V)), L.value = await $(g.default(), V);
20269
+ await re();
20254
20270
  }
20255
20271
  ), onMounted(async () => {
20256
- if (Array.isArray(g.default()[0].children)) {
20257
- L.value = await $(g.default()[0].children, V);
20258
- return;
20259
- }
20260
- L.value = await $(g.default(), V);
20272
+ await re();
20261
20273
  });
20262
- const re = computed$1(() => r.tabWidth === "100%" ? "filled" : "fixed");
20263
- return (oe, ae) => {
20264
- const ie = resolveDirective("tap");
20274
+ const oe = computed$1(() => r.tabWidth === "100%" ? "filled" : "fixed");
20275
+ return (ae, ie) => {
20276
+ const ue = resolveDirective("tap");
20265
20277
  return openBlock(), createElementBlock("div", _hoisted_1$A, [
20266
20278
  createElementVNode("div", {
20267
20279
  class: normalizeClass(r.navClass)
@@ -20269,18 +20281,18 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20269
20281
  createElementVNode("div", {
20270
20282
  class: normalizeClass([
20271
20283
  "pl-multitab-nav el-scrollbar__wrap el-scrollbar__wrap--hidden-default scrollbar-flex-content el-scrollbar__view",
20272
- re.value
20284
+ oe.value
20273
20285
  ])
20274
20286
  }, [
20275
- (openBlock(!0), createElementBlock(Fragment, null, renderList(k.value, (ue) => withDirectives((openBlock(), createBlock(PlTabCard, {
20276
- key: ue == null ? void 0 : ue.name,
20277
- label: ue == null ? void 0 : ue.label,
20287
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(k.value, (de) => withDirectives((openBlock(), createBlock(PlTabCard, {
20288
+ key: de == null ? void 0 : de.name,
20289
+ label: de == null ? void 0 : de.label,
20278
20290
  width: r.tabWidth,
20279
- active: r.modelValue === (ue == null ? void 0 : ue.name),
20280
- icon: ue == null ? void 0 : ue.icon,
20281
- disabled: ue == null ? void 0 : ue.disabled
20291
+ active: r.modelValue === (de == null ? void 0 : de.name),
20292
+ icon: de == null ? void 0 : de.icon,
20293
+ disabled: de == null ? void 0 : de.disabled
20282
20294
  }, null, 8, ["label", "width", "active", "icon", "disabled"])), [
20283
- [ie, () => j(ue)]
20295
+ [ue, () => j(de)]
20284
20296
  ])), 128))
20285
20297
  ], 2)
20286
20298
  ], 2),
@@ -20292,7 +20304,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), _hoisted_
20292
20304
  ]);
20293
20305
  };
20294
20306
  }
20295
- }, PlMultitab = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-7e9149d7"]]), PlMultitabPlugin = {
20307
+ }, PlMultitab = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-a84cfae4"]]), PlMultitabPlugin = {
20296
20308
  install(t) {
20297
20309
  t.component("PlMultitab", PlMultitab);
20298
20310
  }