@byteluck-fe/runtime-desktop-controls 7.0.0-beta.44 → 7.0.0-beta.45
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/runtime-desktop-controls.js +35 -33
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -104097,7 +104097,7 @@ const L$e = {
|
|
|
104097
104097
|
onEngineInit: d
|
|
104098
104098
|
}, null, 8, ["state", "details-height", "source", "relation-value"])) : c(a) === "no-auth" ? (D(), ne(t0, { key: 1 })) : c(a) === "no-found" ? (D(), ne(YW, { key: 2 })) : le("", !0);
|
|
104099
104099
|
}
|
|
104100
|
-
}), F$e = { class: "rok-sublist" }, N$e = { class: "compWrapper" }, V$e = {
|
|
104100
|
+
}), F$e = { class: "rok-sublist a1" }, N$e = { class: "compWrapper" }, V$e = {
|
|
104101
104101
|
name: "RokSublist"
|
|
104102
104102
|
}, B$e = /* @__PURE__ */ ve({
|
|
104103
104103
|
...V$e,
|
|
@@ -104120,44 +104120,46 @@ const L$e = {
|
|
|
104120
104120
|
}
|
|
104121
104121
|
},
|
|
104122
104122
|
setup(e) {
|
|
104123
|
-
const t = e, { sublistTitle: n } = EB(), i =
|
|
104123
|
+
const t = e, { sublistTitle: n } = EB(), i = ze("context"), o = x(
|
|
104124
|
+
() => n?.value ?? i?.value?.externalParams?.data?.name ?? ""
|
|
104125
|
+
), r = V(), s = V(
|
|
104124
104126
|
t.sublistPage.sublists?.[0]?.formKey || t.sublistPage.sublists?.[0]?.dataCode
|
|
104125
|
-
),
|
|
104126
|
-
return
|
|
104127
|
-
}),
|
|
104127
|
+
), a = Jo(t.instance.props.headers, function(d) {
|
|
104128
|
+
return d.props.dataBind?.fieldCode || d.id;
|
|
104129
|
+
}), l = x(
|
|
104128
104130
|
() => t.sublistPage.displayFields.length === 0 && t.sublistPage.sublists.length === 0
|
|
104129
|
-
),
|
|
104131
|
+
), u = V(!0);
|
|
104130
104132
|
return dA(() => {
|
|
104131
|
-
|
|
104132
|
-
|
|
104133
|
+
u.value = !1, at(() => {
|
|
104134
|
+
u.value = !0;
|
|
104133
104135
|
});
|
|
104134
|
-
}), Vn("isShow",
|
|
104135
|
-
const
|
|
104136
|
+
}), Vn("isShow", u.value), (d, p) => {
|
|
104137
|
+
const h = pe("a-descriptions-item"), g = pe("a-descriptions"), f = pe("a-tab-pane"), m = pe("a-tabs");
|
|
104136
104138
|
return D(), N("div", F$e, [
|
|
104137
|
-
e.sublistPage.displayFields.length ? (D(), ne(
|
|
104139
|
+
e.sublistPage.displayFields.length ? (D(), ne(g, {
|
|
104138
104140
|
key: 0,
|
|
104139
104141
|
ref_key: "descriptionsRef",
|
|
104140
|
-
ref:
|
|
104141
|
-
title:
|
|
104142
|
+
ref: r,
|
|
104143
|
+
title: o.value,
|
|
104142
104144
|
column: 2
|
|
104143
104145
|
}, {
|
|
104144
104146
|
default: te(() => [
|
|
104145
|
-
(D(!0), N(Ie, null, He(e.sublistPage.displayFields, (
|
|
104146
|
-
key:
|
|
104147
|
+
(D(!0), N(Ie, null, He(e.sublistPage.displayFields, (v) => (D(), ne(h, {
|
|
104148
|
+
key: v.fieldCode
|
|
104147
104149
|
}, {
|
|
104148
104150
|
label: te(() => [
|
|
104149
104151
|
L("div", N$e, [
|
|
104150
104152
|
j(c(us), {
|
|
104151
|
-
title:
|
|
104153
|
+
title: v.fieldName
|
|
104152
104154
|
}, null, 8, ["title"])
|
|
104153
104155
|
])
|
|
104154
104156
|
]),
|
|
104155
104157
|
default: te(() => [
|
|
104156
|
-
c(
|
|
104157
|
-
key: c(
|
|
104158
|
-
instance: c(
|
|
104159
|
-
value: e.value?.[
|
|
104160
|
-
name: c(
|
|
104158
|
+
c(a)[v.fieldCode]?.props.isHide ? le("", !0) : (D(), ne(ot(`rok-${c(a)[v.fieldCode]?.type}`), {
|
|
104159
|
+
key: c(a)[v.fieldCode]?.id,
|
|
104160
|
+
instance: c(a)[v.fieldCode],
|
|
104161
|
+
value: e.value?.[v.fieldCode],
|
|
104162
|
+
name: c(a)[v.fieldCode]?.id,
|
|
104161
104163
|
class: "compWrapper"
|
|
104162
104164
|
}, null, 8, ["instance", "value", "name"]))
|
|
104163
104165
|
]),
|
|
@@ -104166,24 +104168,24 @@ const L$e = {
|
|
|
104166
104168
|
]),
|
|
104167
104169
|
_: 1
|
|
104168
104170
|
}, 8, ["title"])) : le("", !0),
|
|
104169
|
-
e.sublistPage.sublists.length ? (D(), ne(
|
|
104171
|
+
e.sublistPage.sublists.length ? (D(), ne(m, {
|
|
104170
104172
|
key: 1,
|
|
104171
|
-
activeKey:
|
|
104172
|
-
"onUpdate:activeKey":
|
|
104173
|
+
activeKey: s.value,
|
|
104174
|
+
"onUpdate:activeKey": p[0] || (p[0] = (v) => s.value = v)
|
|
104173
104175
|
}, {
|
|
104174
104176
|
default: te(() => [
|
|
104175
|
-
(D(!0), N(Ie, null, He(e.sublistPage.sublists, (
|
|
104176
|
-
key:
|
|
104177
|
-
tab:
|
|
104177
|
+
(D(!0), N(Ie, null, He(e.sublistPage.sublists, (v) => (D(), ne(f, {
|
|
104178
|
+
key: v.formKey || v.dataCode,
|
|
104179
|
+
tab: v.title
|
|
104178
104180
|
}, {
|
|
104179
104181
|
default: te(() => [
|
|
104180
|
-
|
|
104182
|
+
v.formKey ? s.value === v.formKey ? (D(), ne(k$e, {
|
|
104181
104183
|
key: 1,
|
|
104182
104184
|
value: e.value,
|
|
104183
|
-
sublist:
|
|
104185
|
+
sublist: v,
|
|
104184
104186
|
"app-id": e.appId,
|
|
104185
|
-
"active-key":
|
|
104186
|
-
"details-height":
|
|
104187
|
+
"active-key": s.value,
|
|
104188
|
+
"details-height": r.value?.$el?.offsetHeight,
|
|
104187
104189
|
instance: e.instance.parent
|
|
104188
104190
|
}, null, 8, ["value", "sublist", "app-id", "active-key", "details-height", "instance"])) : le("", !0) : (D(), ne(YW, { key: 0 }))
|
|
104189
104191
|
]),
|
|
@@ -104192,12 +104194,12 @@ const L$e = {
|
|
|
104192
104194
|
]),
|
|
104193
104195
|
_: 1
|
|
104194
104196
|
}, 8, ["activeKey"])) : le("", !0),
|
|
104195
|
-
|
|
104197
|
+
l.value ? (D(), ne(R$e, { key: 2 })) : le("", !0)
|
|
104196
104198
|
]);
|
|
104197
104199
|
};
|
|
104198
104200
|
}
|
|
104199
104201
|
});
|
|
104200
|
-
const QW = /* @__PURE__ */ Ue(B$e, [["__scopeId", "data-v-
|
|
104202
|
+
const QW = /* @__PURE__ */ Ue(B$e, [["__scopeId", "data-v-89472d70"]]);
|
|
104201
104203
|
function XW(e, t) {
|
|
104202
104204
|
const n = x(() => e.props.showFullScreen), i = x(() => e.children.find((l) => l.controlType === "list")), o = x(() => e.children.find((l) => l.controlType === "search")), r = (t?.value.externalParams).data.name, s = () => {
|
|
104203
104205
|
t?.value?.setInstance(
|