@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.
@@ -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
- function v() {
74157
- const S = s(i);
74158
- S && (S.dispatch("DismissPopups", { relatedTarget: S }), S.remove(), i.value = null);
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 b = () => {
74161
- const S = va(t.rowIndex);
74162
- (!S || S && !s(f)) && Sn(() => {
74190
+ const R = () => {
74191
+ const A = va(t.rowIndex);
74192
+ (!A || A && !s(f)) && Sn(() => {
74163
74193
  o();
74164
- const y = d.value === 5 ? P8(t.value) : t.value;
74165
- i.value?.setContent(y);
74194
+ const B = d.value === 5 ? P8(t.value) : t.value;
74195
+ i.value?.setContent(B), O();
74166
74196
  });
74167
74197
  };
74168
- return wt(() => {
74169
- b();
74198
+ return De(i, (A) => {
74199
+ if (A) {
74200
+ O();
74201
+ return;
74202
+ }
74203
+ T();
74204
+ }), wt(() => {
74205
+ R();
74170
74206
  }), Kn(() => {
74171
- v();
74207
+ E();
74172
74208
  }), HS(() => {
74173
- b();
74209
+ R();
74174
74210
  }), pV(() => {
74175
- v();
74176
- }), (S, y) => (x(), te(Ze(S.rowIndex === void 0 ? "rok-form-item" : "BlEmptyFormItem"), {
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: S.instance,
74180
- name: S.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 && (S.rowIndex || S.rowIndex === 0) ? (x(), te(cN, {
74222
+ f.value && (A.rowIndex || A.rowIndex === 0) ? (x(), te(cN, {
74187
74223
  key: 0,
74188
- value: S.value,
74189
- "row-index": S.rowIndex,
74190
- instance: S.instance,
74191
- editing: S.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: S.value
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
- S.value && s(d) !== 1 && s(d) !== 5 ? (x(), L("p", BNe, X(S.value.length) + " / " + X(s(l).maxLength), 1)) : re("", !0)
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-desktop-controls",
3
- "version": "7.0.0-beta.89",
3
+ "version": "7.0.0-beta.90",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-desktop-controls.js",