@factoringplus/pl-components-pack-v3 0.8.4-pre-01 → 0.8.4
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.
|
@@ -20135,10 +20135,11 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
20135
20135
|
setup(g) {
|
|
20136
20136
|
const y = g;
|
|
20137
20137
|
useCssVars((z) => ({
|
|
20138
|
-
"
|
|
20138
|
+
"9928a85a": g.width
|
|
20139
20139
|
}));
|
|
20140
20140
|
const j = computed$1(() => y.disabled ? "var(--color-text-icons-tertiary)" : y.active ? "var(--color-text-icons-primary)" : "var(--color-text-icons-secondary)");
|
|
20141
|
-
return (z, L) => (openBlock(), createElementBlock("div", {
|
|
20141
|
+
return (z, L) => y.label ? (openBlock(), createElementBlock("div", {
|
|
20142
|
+
key: 0,
|
|
20142
20143
|
class: normalizeClass([
|
|
20143
20144
|
"pl-tab-card__container",
|
|
20144
20145
|
{ disabled: y.disabled },
|
|
@@ -20152,9 +20153,9 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
20152
20153
|
color: j.value
|
|
20153
20154
|
}, null, 8, ["name", "color"])) : createCommentVNode("", !0),
|
|
20154
20155
|
createElementVNode("span", null, toDisplayString(y.label), 1)
|
|
20155
|
-
], 2));
|
|
20156
|
+
], 2)) : createCommentVNode("", !0);
|
|
20156
20157
|
}
|
|
20157
|
-
}),
|
|
20158
|
+
}), plTabCard_vue_vue_type_style_index_0_scoped_5d0a6b4e_lang = "", PlTabCard = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-5d0a6b4e"]]), plMultitab_vue_vue_type_style_index_0_scoped_49a7a073_lang = "", _hoisted_1$G = { class: "pl-multitab-container" }, _sfc_main$10 = {
|
|
20158
20159
|
__name: "pl-multitab",
|
|
20159
20160
|
props: {
|
|
20160
20161
|
modelValue: {
|
|
@@ -20176,7 +20177,10 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
20176
20177
|
},
|
|
20177
20178
|
emits: ["update:modelValue"],
|
|
20178
20179
|
setup(g, { emit: y }) {
|
|
20179
|
-
const j = g, z = useSlots(), L = computed$1(() =>
|
|
20180
|
+
const j = g, z = useSlots(), L = computed$1(() => Array.isArray(z.default()[0].children) ? z.default()[0].children.map((le) => le.props) : z.default().map((le) => le.props)), V = computed$1(() => Array.isArray(z.default()[0].children) ? z.default()[0].children.filter((ie) => j.modelValue === ie.props.name)[0] : z.default().filter((ue) => {
|
|
20181
|
+
var ie;
|
|
20182
|
+
return j.modelValue === ((ie = ue.props) == null ? void 0 : ie.name);
|
|
20183
|
+
})[0]), re = (le) => {
|
|
20180
20184
|
le.disabled || y("update:modelValue", le.name);
|
|
20181
20185
|
}, ae = computed$1(() => j.tabWidth === "100%" ? "filled" : "fixed");
|
|
20182
20186
|
return (le, ue) => {
|
|
@@ -20190,12 +20194,12 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
20190
20194
|
])
|
|
20191
20195
|
}, [
|
|
20192
20196
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(L.value, (pe) => withDirectives((openBlock(), createBlock(PlTabCard, {
|
|
20193
|
-
key: pe.name,
|
|
20194
|
-
label: pe.label,
|
|
20197
|
+
key: pe == null ? void 0 : pe.name,
|
|
20198
|
+
label: pe == null ? void 0 : pe.label,
|
|
20195
20199
|
width: j.tabWidth,
|
|
20196
|
-
active: j.modelValue === pe.name,
|
|
20197
|
-
icon: pe.icon,
|
|
20198
|
-
disabled: pe.disabled
|
|
20200
|
+
active: j.modelValue === (pe == null ? void 0 : pe.name),
|
|
20201
|
+
icon: pe == null ? void 0 : pe.icon,
|
|
20202
|
+
disabled: pe == null ? void 0 : pe.disabled
|
|
20199
20203
|
}, null, 8, ["label", "width", "active", "icon", "disabled"])), [
|
|
20200
20204
|
[ie, () => re(pe)]
|
|
20201
20205
|
])), 128))
|
|
@@ -20208,7 +20212,7 @@ const uniqid = /* @__PURE__ */ getDefaultExportFromCjs(uniqidExports), plInputPl
|
|
|
20208
20212
|
]);
|
|
20209
20213
|
};
|
|
20210
20214
|
}
|
|
20211
|
-
}, PlMultitab = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-
|
|
20215
|
+
}, PlMultitab = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-49a7a073"]]), PlMultitabPlugin = {
|
|
20212
20216
|
install(g) {
|
|
20213
20217
|
g.component("PlMultitab", PlMultitab);
|
|
20214
20218
|
}
|