@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.
- package/dist/pl-components-pack-v3.es.js +56 -44
- package/dist/pl-components-pack-v3.umd.js +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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"]]),
|
|
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((
|
|
20106
|
-
|
|
20107
|
-
return
|
|
20108
|
-
}
|
|
20109
|
-
|
|
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
|
-
|
|
20112
|
-
|
|
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, (
|
|
20121
|
-
key:
|
|
20122
|
-
label:
|
|
20123
|
-
active: r.modelValue === (
|
|
20124
|
-
icon:
|
|
20125
|
-
disabled:
|
|
20126
|
-
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
|
-
[
|
|
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-
|
|
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"]]),
|
|
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((
|
|
20242
|
-
|
|
20243
|
-
}, L = ref(null), $ = async (
|
|
20244
|
-
const
|
|
20245
|
-
return
|
|
20246
|
-
}, V = async (
|
|
20247
|
-
var
|
|
20248
|
-
return r.modelValue === ((
|
|
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
|
-
|
|
20269
|
+
await re();
|
|
20254
20270
|
}
|
|
20255
20271
|
), onMounted(async () => {
|
|
20256
|
-
|
|
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
|
|
20263
|
-
return (
|
|
20264
|
-
const
|
|
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
|
-
|
|
20284
|
+
oe.value
|
|
20273
20285
|
])
|
|
20274
20286
|
}, [
|
|
20275
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(k.value, (
|
|
20276
|
-
key:
|
|
20277
|
-
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 === (
|
|
20280
|
-
icon:
|
|
20281
|
-
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
|
-
[
|
|
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-
|
|
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
|
}
|