@byteluck-fe/runtime-desktop-controls 7.0.0-beta.89 → 7.0.0-beta.90
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 +60 -24
- package/package.json +1 -1
|
@@ -74152,47 +74152,83 @@ const cN = /* @__PURE__ */ Ve(kNe, [["render", ANe], ["__scopeId", "data-v-30db9
|
|
|
74152
74152
|
() => !u.value && d.value !== 5
|
|
74153
74153
|
), h = D(() => I8(t.value)), g = D(() => d.value === 5 && h.value), m = D(() => ({
|
|
74154
74154
|
height: g.value ? "30px" : `${c.value}px`
|
|
74155
|
-
}));
|
|
74156
|
-
|
|
74157
|
-
|
|
74158
|
-
S && (
|
|
74155
|
+
})), v = 5e3, b = 5;
|
|
74156
|
+
let S = null, y = null, w = null;
|
|
74157
|
+
const _ = () => {
|
|
74158
|
+
S && (window.clearTimeout(S), S = null);
|
|
74159
|
+
}, C = () => {
|
|
74160
|
+
y && (window.clearTimeout(y), y = null);
|
|
74161
|
+
}, I = () => {
|
|
74162
|
+
const A = s(i);
|
|
74163
|
+
A && A.dispatch("DismissPopups", { relatedTarget: A });
|
|
74164
|
+
}, k = () => {
|
|
74165
|
+
_(), S = window.setTimeout(() => {
|
|
74166
|
+
I(), S = null;
|
|
74167
|
+
}, v);
|
|
74168
|
+
}, P = (A) => {
|
|
74169
|
+
A.target?.closest?.('[data-mce-name="overflow-button"]') && k();
|
|
74170
|
+
}, T = () => {
|
|
74171
|
+
_(), C(), w?.();
|
|
74172
|
+
}, O = (A = b) => {
|
|
74173
|
+
C(), w?.();
|
|
74174
|
+
const N = s(i)?.getContainer?.();
|
|
74175
|
+
if (!N) {
|
|
74176
|
+
A > 0 && (y = window.setTimeout(() => {
|
|
74177
|
+
O(A - 1);
|
|
74178
|
+
}, 300));
|
|
74179
|
+
return;
|
|
74180
|
+
}
|
|
74181
|
+
N.addEventListener("click", P), w = () => {
|
|
74182
|
+
N.removeEventListener("click", P), w = null;
|
|
74183
|
+
};
|
|
74184
|
+
};
|
|
74185
|
+
function E() {
|
|
74186
|
+
T();
|
|
74187
|
+
const A = s(i);
|
|
74188
|
+
A && (I(), A.remove(), i.value = null);
|
|
74159
74189
|
}
|
|
74160
|
-
const
|
|
74161
|
-
const
|
|
74162
|
-
(!
|
|
74190
|
+
const R = () => {
|
|
74191
|
+
const A = va(t.rowIndex);
|
|
74192
|
+
(!A || A && !s(f)) && Sn(() => {
|
|
74163
74193
|
o();
|
|
74164
|
-
const
|
|
74165
|
-
i.value?.setContent(
|
|
74194
|
+
const B = d.value === 5 ? P8(t.value) : t.value;
|
|
74195
|
+
i.value?.setContent(B), O();
|
|
74166
74196
|
});
|
|
74167
74197
|
};
|
|
74168
|
-
return
|
|
74169
|
-
|
|
74198
|
+
return De(i, (A) => {
|
|
74199
|
+
if (A) {
|
|
74200
|
+
O();
|
|
74201
|
+
return;
|
|
74202
|
+
}
|
|
74203
|
+
T();
|
|
74204
|
+
}), wt(() => {
|
|
74205
|
+
R();
|
|
74170
74206
|
}), Kn(() => {
|
|
74171
|
-
|
|
74207
|
+
E();
|
|
74172
74208
|
}), HS(() => {
|
|
74173
|
-
|
|
74209
|
+
R();
|
|
74174
74210
|
}), pV(() => {
|
|
74175
|
-
|
|
74176
|
-
}), (
|
|
74211
|
+
E();
|
|
74212
|
+
}), (A, B) => (x(), te(Ze(A.rowIndex === void 0 ? "rok-form-item" : "BlEmptyFormItem"), {
|
|
74177
74213
|
ref_key: "formItemRef",
|
|
74178
74214
|
ref: p,
|
|
74179
|
-
control:
|
|
74180
|
-
name:
|
|
74215
|
+
control: A.instance,
|
|
74216
|
+
name: A.name,
|
|
74181
74217
|
class: be(["ok-render-control rok-rich-text", { "rich-text-disabled": s(r), print: s(d) === 5 }]),
|
|
74182
74218
|
"validate-trigger": "blur",
|
|
74183
74219
|
"instance-props": s(l)
|
|
74184
74220
|
}, {
|
|
74185
74221
|
default: J(() => [
|
|
74186
|
-
f.value && (
|
|
74222
|
+
f.value && (A.rowIndex || A.rowIndex === 0) ? (x(), te(cN, {
|
|
74187
74223
|
key: 0,
|
|
74188
|
-
value:
|
|
74189
|
-
"row-index":
|
|
74190
|
-
instance:
|
|
74191
|
-
editing:
|
|
74224
|
+
value: A.value,
|
|
74225
|
+
"row-index": A.rowIndex,
|
|
74226
|
+
instance: A.instance,
|
|
74227
|
+
editing: A.editing
|
|
74192
74228
|
}, null, 8, ["value", "row-index", "instance", "editing"])) : f.value ? (x(), L("div", RNe, [
|
|
74193
74229
|
h.value ? (x(), L("span", LNe)) : (x(), L("span", {
|
|
74194
74230
|
key: 0,
|
|
74195
|
-
innerHTML:
|
|
74231
|
+
innerHTML: A.value
|
|
74196
74232
|
}, null, 8, MNe))
|
|
74197
74233
|
])) : (x(), L("div", {
|
|
74198
74234
|
key: 2,
|
|
@@ -74206,7 +74242,7 @@ const cN = /* @__PURE__ */ Ve(kNe, [["render", ANe], ["__scopeId", "data-v-30db9
|
|
|
74206
74242
|
id: s(a),
|
|
74207
74243
|
class: be(s(a))
|
|
74208
74244
|
}, null, 10, NNe),
|
|
74209
|
-
|
|
74245
|
+
A.value && s(d) !== 1 && s(d) !== 5 ? (x(), L("p", BNe, X(A.value.length) + " / " + X(s(l).maxLength), 1)) : re("", !0)
|
|
74210
74246
|
], 4))
|
|
74211
74247
|
]),
|
|
74212
74248
|
_: 1
|