@endge/ui-vue 0.25.1 → 0.26.3

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.
Files changed (59) hide show
  1. package/dist/{edit.utils-Dnnbd0xG-DNaocRiD.js → edit.utils-Dnnbd0xG-B4Hy-fKi.js} +1 -1
  2. package/dist/{main-BP5C1P4E.js → main-jn_O1Op8.js} +15935 -15764
  3. package/dist/main.d.ts +20 -18
  4. package/dist/{domain/core → model/kernel}/endge-vue.d.ts +1 -1
  5. package/dist/model/render/register-vue-ui-renderer.d.ts +7 -0
  6. package/dist/model/render/sfc/SFCVueRenderInspection.d.ts +1 -1
  7. package/dist/model/render/sfc/SFCVueRuntimeBridge.d.ts +1 -1
  8. package/dist/model/render/sfc/native-vue-sfc-adapter.d.ts +1 -1
  9. package/dist/{domain/types/sfc-render.type.d.ts → model/render/sfc/sfc-vue-render.type.d.ts} +9 -9
  10. package/dist/reactive/use-subscribable-ref.d.ts +9 -0
  11. package/dist/{revo-grid.entry-Cxli453d.js → revo-grid.entry-rg6K9ZHx.js} +207 -194
  12. package/dist/{revogr-attribution_7.entry-BIvAtXU9.js → revogr-attribution_7.entry-JV2go8j1.js} +37 -37
  13. package/dist/{revogr-clipboard_3.entry-fEIDIy8M.js → revogr-clipboard_3.entry-Bm3dUuH5.js} +12 -12
  14. package/dist/{revogr-data_4.entry-BqTBgL2e.js → revogr-data_4.entry-BIPbaA6y.js} +3 -3
  15. package/dist/{revogr-filter-panel.entry-CRk0VYPG.js → revogr-filter-panel.entry-CxOW5xLi.js} +36 -21
  16. package/dist/store/domain.d.ts +35 -91
  17. package/dist/test/model/render/register-vue-ui-renderer.test.d.ts +1 -0
  18. package/dist/test/reactive/use-subscribable-ref.test.d.ts +1 -0
  19. package/dist/{throttle-CaUDyxyU-CoHkeYqM.js → throttle-Cpk1LoGk-DEv3RB-T.js} +11 -8
  20. package/dist/ui/filter/EndgeFilterControlRenderer.d.ts +1 -1
  21. package/dist/ui/filter/EndgeFilterField.vue.d.ts +3 -2
  22. package/dist/ui/filter/EndgeFilterRenderer.vue.d.ts +2 -1
  23. package/dist/ui/layout/EndgeShell.vue.d.ts +13 -15
  24. package/dist/ui/overlay/EndgeContextMenuRoot.vue.d.ts +2 -3
  25. package/dist/ui/overlay/tooltip/EndgeTooltipRoot.vue.d.ts +2 -3
  26. package/dist/ui/render/sfc/NativeMultiSelect.vue.d.ts +2 -6
  27. package/dist/ui/render/sfc/SFCRender_Adapter.d.ts +1 -1
  28. package/dist/ui/render/sfc/SFCRender_Badge.d.ts +1 -1
  29. package/dist/ui/render/sfc/SFCRender_Base.d.ts +2 -2
  30. package/dist/ui/render/sfc/SFCRender_Box.d.ts +1 -1
  31. package/dist/ui/render/sfc/SFCRender_Checkbox.d.ts +1 -1
  32. package/dist/ui/render/sfc/SFCRender_Component.d.ts +1 -1
  33. package/dist/ui/render/sfc/SFCRender_Context.d.ts +1 -1
  34. package/dist/ui/render/sfc/SFCRender_DateTime.d.ts +1 -1
  35. package/dist/ui/render/sfc/SFCRender_Divider.d.ts +1 -1
  36. package/dist/ui/render/sfc/SFCRender_Dot.d.ts +1 -1
  37. package/dist/ui/render/sfc/SFCRender_Editable.d.ts +1 -1
  38. package/dist/ui/render/sfc/SFCRender_Evaluator.d.ts +1 -1
  39. package/dist/ui/render/sfc/SFCRender_Flex.d.ts +1 -1
  40. package/dist/ui/render/sfc/SFCRender_Grid.d.ts +1 -1
  41. package/dist/ui/render/sfc/SFCRender_Icon.d.ts +1 -1
  42. package/dist/ui/render/sfc/SFCRender_Input.d.ts +1 -1
  43. package/dist/ui/render/sfc/SFCRender_Interaction.d.ts +2 -2
  44. package/dist/ui/render/sfc/SFCRender_Node.d.ts +1 -1
  45. package/dist/ui/render/sfc/SFCRender_Number.d.ts +1 -1
  46. package/dist/ui/render/sfc/SFCRender_Select.d.ts +1 -1
  47. package/dist/ui/render/sfc/SFCRender_Table.d.ts +1 -1
  48. package/dist/ui/render/sfc/SFCRender_TableMenu.d.ts +1 -1
  49. package/dist/ui/render/sfc/SFCRender_TableStyle.d.ts +3 -3
  50. package/dist/ui/render/sfc/SFCRender_Text.d.ts +1 -1
  51. package/dist/ui/render/sfc/SFCRender_Textarea.d.ts +1 -1
  52. package/dist/ui/render/sfc/SFCRender_Tooltip.d.ts +1 -1
  53. package/dist/ui/render/sfc/SFC_Renderer.vue.d.ts +3 -2
  54. package/dist/ui/render/sfc/SFC_RuntimeRenderer.vue.d.ts +3 -2
  55. package/dist/ui/table/NativeTablePagination.vue.d.ts +3 -2
  56. package/dist/vue.css +1 -1
  57. package/dist/vue.js +48 -45
  58. package/package.json +30 -30
  59. package/dist/ui/render/entities/EndgePage.vue.d.ts +0 -1191
@@ -1,8 +1,8 @@
1
- import { r as f, h as c, H as S, c as l, p as O, f as F, N as L, O as p, P as H, Q as T, U as W, W as m, X as A, Y as u, V as B, D as P, Z as V, _ as D, $ as N, a0 as $, o as b, t as K, a1 as U, l as X, a2 as Y, R as G, a3 as _ } from "./main-BP5C1P4E.js";
1
+ import { r as f, h as c, H as S, c as l, q as O, f as E, N as L, O as p, P as H, Q as T, U as W, W as m, X as A, Y as u, V as B, p as P, Z as V, _ as D, $ as N, a0 as $, o as b, t as K, a1 as U, l as X, a2 as Y, R as G, a3 as _ } from "./main-jn_O1Op8.js";
2
2
  import { v as Z, g as C } from "./events-BvSmBueA-Doh7RyHn.js";
3
- import { i as z, a as j, b as Q, c as q, d as J, e as ee, f as te, g as ie, h as se } from "./edit.utils-Dnnbd0xG-DNaocRiD.js";
3
+ import { i as z, a as j, b as q, c as Q, d as J, e as ee, f as te, g as ie, h as se } from "./edit.utils-Dnnbd0xG-B4Hy-fKi.js";
4
4
  import { H as oe } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
5
- import { L as ne, a as re, g as le, t as ae } from "./throttle-CaUDyxyU-CoHkeYqM.js";
5
+ import { L as ne, a as re, g as le, t as ae } from "./throttle-Cpk1LoGk-DEv3RB-T.js";
6
6
  /*!
7
7
  * Built by Revolist OU ❤️
8
8
  */
@@ -56,10 +56,10 @@ function k(t, e) {
56
56
  const i = C(t, "clientX"), s = C(t, "clientY");
57
57
  if (i === null || s === null)
58
58
  return null;
59
- const o = E({ x: i, y: s }, e);
59
+ const o = F({ x: i, y: s }, e);
60
60
  return w(o, e.lastCell) ? null : o;
61
61
  }
62
- function E({ x: t, y: e }, { el: i, rows: s, cols: o }) {
62
+ function F({ x: t, y: e }, { el: i, rows: s, cols: o }) {
63
63
  const { top: n, left: r, height: a, width: h } = i.getBoundingClientRect();
64
64
  let d = e - n, g = t - r;
65
65
  d >= a && (d = a - 1), g >= h && (g = h - 1);
@@ -144,7 +144,7 @@ const he = () => "revogr-focus.focused-cell{box-shadow:-1px 0 0 #0d63e8 inset, 1
144
144
  return c(S, Object.assign({}, d), c("slot", null), h);
145
145
  }
146
146
  get el() {
147
- return F(this);
147
+ return E(this);
148
148
  }
149
149
  };
150
150
  de.style = he();
@@ -183,12 +183,12 @@ class ge {
183
183
  }
184
184
  return;
185
185
  }
186
- if (o && Q(e.code)) {
186
+ if (o && q(e.code)) {
187
187
  this.sv.clearCell();
188
188
  return;
189
189
  }
190
190
  if (n) {
191
- if (q(e.code)) {
191
+ if (Q(e.code)) {
192
192
  this.keyChangeSelection(e, i);
193
193
  return;
194
194
  }
@@ -306,7 +306,7 @@ class fe {
306
306
  const s = C(e, "clientX", p), o = C(e, "clientY", p);
307
307
  if (s === null || o === null)
308
308
  return;
309
- const n = E({ x: s, y: o }, i);
309
+ const n = F({ x: s, y: o }, i);
310
310
  if (this.autoFillLast || this.autoFillLast || (this.autoFillLast = this.autoFillStart), w(n, i.lastCell))
311
311
  return;
312
312
  if (this.autoFillLast = n, n.x === this.autoFillInitial.x && n.y === this.autoFillInitial.y)
@@ -327,7 +327,7 @@ class fe {
327
327
  */
328
328
  selectionStart(e, i, s = "Selection") {
329
329
  const { top: o, left: n } = e.getBoundingClientRect();
330
- this.autoFillInitial = this.getFocus(i.focus, i.range), this.autoFillType = s, this.autoFillStart = E({ x: n, y: o }, i);
330
+ this.autoFillInitial = this.getFocus(i.focus, i.range), this.autoFillType = s, this.autoFillStart = F({ x: n, y: o }, i);
331
331
  }
332
332
  /**
333
333
  * Clear current range selection on mouse up and mouse leave events
@@ -565,29 +565,29 @@ const Se = () => 'revogr-overlay-selection{display:block;position:relative;width
565
565
  /**
566
566
  * Executes the focus operation on the specified range of cells.
567
567
  */
568
- doFocus(t, e, i) {
569
- const { defaultPrevented: s } = this.beforeFocusCell.emit(this.columnService.getSaveData(t.y, t.x));
570
- if (s)
568
+ doFocus(t, e, i, s) {
569
+ const { defaultPrevented: o } = this.beforeFocusCell.emit(Object.assign(Object.assign({}, this.columnService.getSaveData(t.y, t.x)), { originalEvent: s }));
570
+ if (o)
571
571
  return !1;
572
- const o = Object.assign(Object.assign({ range: Object.assign(Object.assign({}, t), { x1: e.x, y1: e.y }), next: i }, this.types), { rowDimension: Object.assign({}, this.dimensionRow.state), colDimension: Object.assign({}, this.dimensionCol.state) }), n = this.applyFocus.emit(o);
573
- if (n.defaultPrevented)
572
+ const n = Object.assign(Object.assign({ range: Object.assign(Object.assign({}, t), { x1: e.x, y1: e.y }), next: i }, this.types), { rowDimension: Object.assign({}, this.dimensionRow.state), colDimension: Object.assign({}, this.dimensionCol.state), originalEvent: s }), r = this.applyFocus.emit(n);
573
+ if (r.defaultPrevented)
574
574
  return !1;
575
- const { range: r } = n.detail;
575
+ const { range: a } = r.detail;
576
576
  return !this.focusCell.emit(Object.assign({ focus: {
577
- x: r.x,
578
- y: r.y
577
+ x: a.x,
578
+ y: a.y
579
579
  }, end: {
580
- x: r.x1,
581
- y: r.y1
582
- } }, n.detail)).defaultPrevented;
580
+ x: a.x1,
581
+ y: a.y1
582
+ } }, r.detail)).defaultPrevented;
583
583
  }
584
- triggerRangeEvent(t) {
585
- const e = this.types.rowType, i = this.beforeApplyRange.emit(Object.assign(Object.assign({ range: Object.assign({}, t) }, this.types), { rowDimension: Object.assign({}, this.dimensionRow.state), colDimension: Object.assign({}, this.dimensionCol.state) }));
586
- if (i.defaultPrevented)
584
+ triggerRangeEvent(t, e) {
585
+ const i = this.types.rowType, s = this.beforeApplyRange.emit(Object.assign(Object.assign({ range: Object.assign({}, t) }, this.types), { rowDimension: Object.assign({}, this.dimensionRow.state), colDimension: Object.assign({}, this.dimensionCol.state), originalEvent: e }));
586
+ if (s.defaultPrevented)
587
587
  return !1;
588
- const s = this.columnService.getRangeTransformedToProps(i.detail.range, this.dataStore);
589
- let o = this.beforeSetRange.emit(s);
590
- return o.defaultPrevented || (o = this.setRange.emit(Object.assign(Object.assign({}, i.detail.range), { type: e })), o.defaultPrevented) ? !1 : !o.defaultPrevented;
588
+ const o = this.columnService.getRangeTransformedToProps(s.detail.range, this.dataStore);
589
+ let n = this.beforeSetRange.emit(o);
590
+ return n.defaultPrevented || (n = this.setRange.emit(Object.assign(Object.assign({}, s.detail.range), { type: i })), n.defaultPrevented) ? !1 : !n.defaultPrevented;
591
591
  }
592
592
  /**
593
593
  * Open Editor on DblClick
@@ -607,7 +607,7 @@ const Se = () => 'revogr-overlay-selection{display:block;position:relative;width
607
607
  if (z(s) || t.defaultPrevented)
608
608
  return;
609
609
  const o = this.getData(), n = k(t, o);
610
- n && (this.focus(n, this.range && t.shiftKey), this.range && (s && ((i = this.autoFillService) === null || i === void 0 || i.selectionStart(s, this.getData())), e ? Z(t.touches[0], p) && t.preventDefault() : t.preventDefault()));
610
+ n && (this.focus(n, this.range && t.shiftKey, t), this.range && (s && ((i = this.autoFillService) === null || i === void 0 || i.selectionStart(s, this.getData())), e ? Z(t.touches[0], p) && t.preventDefault() : t.preventDefault()));
611
611
  }
612
612
  /**
613
613
  * Start cell editing
@@ -721,16 +721,16 @@ const Se = () => 'revogr-overlay-selection{display:block;position:relative;width
721
721
  /**
722
722
  * Sets the focus on a cell and optionally edits a range.
723
723
  */
724
- focus(t, e = !1) {
724
+ focus(t, e = !1, i) {
725
725
  if (!t)
726
726
  return !1;
727
- const i = t, s = this.selectionStore.get("focus");
728
- if (e && s) {
729
- const o = m(s, i);
730
- if (o)
731
- return this.triggerRangeEvent(o);
727
+ const s = t, o = this.selectionStore.get("focus");
728
+ if (e && o) {
729
+ const n = m(o, s);
730
+ if (n)
731
+ return this.triggerRangeEvent(n, i);
732
732
  }
733
- return this.doFocus(t, i);
733
+ return this.doFocus(t, s, void 0, i);
734
734
  }
735
735
  get types() {
736
736
  return {
@@ -753,7 +753,7 @@ const Se = () => 'revogr-overlay-selection{display:block;position:relative;width
753
753
  };
754
754
  }
755
755
  get element() {
756
- return F(this);
756
+ return E(this);
757
757
  }
758
758
  static get watchers() {
759
759
  return {
@@ -911,7 +911,7 @@ const xe = () => "revogr-scroll-virtual[autohide]{position:absolute;z-index:100
911
911
  } }));
912
912
  }
913
913
  get element() {
914
- return F(this);
914
+ return E(this);
915
915
  }
916
916
  };
917
917
  Re.style = xe();
@@ -1,5 +1,5 @@
1
- import { t as f, r as c, c as n, h as v, a4 as g, H as m, f as y, l as w, a5 as C, p as b, a3 as h } from "./main-BP5C1P4E.js";
2
- import { d as E, c as D, j as S } from "./edit.utils-Dnnbd0xG-DNaocRiD.js";
1
+ import { t as f, r as h, c as n, h as v, a4 as g, H as m, f as y, l as w, a5 as b, q as C, a3 as c } from "./main-jn_O1Op8.js";
2
+ import { d as E, c as D, j as S } from "./edit.utils-Dnnbd0xG-B4Hy-fKi.js";
3
3
  /*!
4
4
  * Built by Revolist OU ❤️
5
5
  */
@@ -60,7 +60,7 @@ class O {
60
60
  */
61
61
  const A = class {
62
62
  constructor(t) {
63
- c(this, t), this.beforePaste = n(this, "beforepaste", 7), this.beforePasteApply = n(this, "beforepasteapply", 7), this.pasteRegion = n(this, "pasteregion", 7), this.afterPasteApply = n(this, "afterpasteapply", 7), this.beforeCut = n(this, "beforecut", 7), this.clearRegion = n(this, "clearregion", 7), this.beforeCopy = n(this, "beforecopy", 7), this.beforeCopyApply = n(this, "beforecopyapply", 7), this.copyRegion = n(this, "copyregion", 7);
63
+ h(this, t), this.beforePaste = n(this, "beforepaste", 7), this.beforePasteApply = n(this, "beforepasteapply", 7), this.pasteRegion = n(this, "pasteregion", 7), this.afterPasteApply = n(this, "afterpasteapply", 7), this.beforeCut = n(this, "beforecut", 7), this.clearRegion = n(this, "clearregion", 7), this.beforeCopy = n(this, "beforecopy", 7), this.beforeCopyApply = n(this, "beforecopyapply", 7), this.copyRegion = n(this, "copyregion", 7);
64
64
  }
65
65
  onPaste(t) {
66
66
  if (this.readonly)
@@ -142,9 +142,9 @@ const A = class {
142
142
  getData(t) {
143
143
  return t.clipboardData || (globalThis == null ? void 0 : globalThis.clipboardData);
144
144
  }
145
- }, R = () => "revogr-edit{display:block;position:absolute;background-color:#fff}revogr-edit input{height:100%;width:100%;box-sizing:border-box}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}", x = class {
145
+ }, R = () => "revogr-edit{display:block;position:absolute;background-color:var(--revo-grid-background, #fff)}revogr-edit input{height:100%;width:100%;box-sizing:border-box;background-color:var(--revo-grid-background, transparent)}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}", x = class {
146
146
  constructor(t) {
147
- c(this, t), this.cellEdit = n(this, "celleditinit", 7), this.closeEdit = n(this, "closeedit", 7), this.saveOnClose = !1, this.currentEditor = null, this.preventSaveOnClose = !1;
147
+ h(this, t), this.cellEdit = n(this, "celleditinit", 7), this.closeEdit = n(this, "closeedit", 7), this.saveOnClose = !1, this.currentEditor = null, this.preventSaveOnClose = !1;
148
148
  }
149
149
  /**
150
150
  * Cancel pending changes flag. Editor will be closed without autosave.
@@ -235,7 +235,7 @@ class P {
235
235
  if (this.currentCell === null)
236
236
  return;
237
237
  const r = this.getCell(e, i);
238
- r.y !== this.currentCell.y && (r.y < 0 ? r.y = 0 : r.y < this.currentCell.y && r.y++, this.config.positionChanged(this.currentCell.y, r.y)), this.clear();
238
+ r.y < 0 ? r.y = 0 : r.y < this.currentCell.y && r.y++, r.y !== this.currentCell.y && this.config.positionChanged(this.currentCell.y, r.y), this.clear();
239
239
  }
240
240
  /** Drag started, reserve initial cell for farther use */
241
241
  startOrder(e, i) {
@@ -251,7 +251,7 @@ class P {
251
251
  }
252
252
  /** Calculate cell based on x, y position */
253
253
  getRow(e, { el: i, rows: r }) {
254
- const { top: s } = i.getBoundingClientRect(), o = e - s, a = r.renderOffset || 0, l = h(r, o + a);
254
+ const { top: s } = i.getBoundingClientRect(), o = e - s, a = r.renderOffset || 0, l = c(r, o + a);
255
255
  return {
256
256
  itemIndex: l.itemIndex,
257
257
  start: l.start - a + s,
@@ -260,13 +260,13 @@ class P {
260
260
  }
261
261
  /** Calculate cell based on x, y position */
262
262
  getCell({ x: e, y: i }, { el: r, rows: s, cols: o }) {
263
- const { top: a, left: l } = r.getBoundingClientRect(), d = i - a, u = e - l, p = h(s, d + (s.renderOffset || 0));
264
- return { x: h(o, u + (o.renderOffset || 0)).itemIndex, y: p.itemIndex };
263
+ const { top: a, left: l } = r.getBoundingClientRect(), d = i - a, u = e - l, p = c(s, d + (s.renderOffset || 0));
264
+ return { x: c(o, u + (o.renderOffset || 0)).itemIndex, y: p.itemIndex };
265
265
  }
266
266
  }
267
267
  const k = class {
268
268
  constructor(t) {
269
- c(this, t), this.rowDragStart = n(this, "rowdragstartinit", 7), this.rowDragEnd = n(this, "rowdragendinit", 7), this.rowDrag = n(this, "rowdragmoveinit", 7), this.rowMouseMove = n(this, "rowdragmousemove", 7), this.rowDropped = n(this, "rowdropinit", 7), this.rowOrderChange = n(this, "roworderchange", 7), this.events = [], this.rowMoveFunc = w((e) => {
269
+ h(this, t), this.rowDragStart = n(this, "rowdragstartinit", 7), this.rowDragEnd = n(this, "rowdragendinit", 7), this.rowDrag = n(this, "rowdragmoveinit", 7), this.rowMouseMove = n(this, "rowdragmousemove", 7), this.rowDropped = n(this, "rowdropinit", 7), this.rowOrderChange = n(this, "roworderchange", 7), this.events = [], this.rowMoveFunc = w((e) => {
270
270
  const i = this.rowOrderService.move(e, this.getData());
271
271
  i !== null && this.rowDrag.emit(Object.assign(Object.assign({}, i), { rowType: this.rowType }));
272
272
  }, 5);
@@ -278,11 +278,11 @@ const k = class {
278
278
  const e = this.getData(), i = this.rowOrderService.startOrder(t.originalEvent, e), r = this.rowOrderService.getRow(t.originalEvent.y, e);
279
279
  if (this.rowDragStart.emit({
280
280
  cell: i,
281
- text: C,
281
+ text: b,
282
282
  pos: r,
283
283
  event: t.originalEvent,
284
284
  rowType: this.rowType,
285
- model: b(this.dataStore, r.itemIndex)
285
+ model: C(this.dataStore, r.itemIndex)
286
286
  }).defaultPrevented)
287
287
  return;
288
288
  const o = (d) => this.move(d), a = (d) => this.endOrder(d), l = () => this.clearOrder();
@@ -1,5 +1,5 @@
1
- import { a7 as W, a8 as B, a9 as U, h as a, aa as V, ab as E, ac as z, ad as F, ae as N, af as X, ag as K, ah as Y, r as x, c as v, N as Z, p as q, ai as J, aj as T, H, f as R, o as L, ak as D, al as Q, am as m, an as ee, ao as I, a0 as te, ap as re, aq as P, ar as M } from "./main-BP5C1P4E.js";
2
- import { L as ie, a as oe, g as k, t as le } from "./throttle-CaUDyxyU-CoHkeYqM.js";
1
+ import { a7 as W, a8 as B, a9 as U, h as a, aa as V, ab as E, ac as z, ad as F, ae as N, af as X, ag as K, ah as Y, r as x, c as v, N as Z, q, ai as J, aj as T, H, f as R, o as L, ak as D, al as Q, am as m, an as ee, ao as I, a0 as te, ap as re, aq as P, ar as M } from "./main-jn_O1Op8.js";
2
+ import { L as ie, a as oe, g as k, t as le } from "./throttle-Cpk1LoGk-DEv3RB-T.js";
3
3
  import { H as se, C as ne, F as ae } from "./viewport.helpers-CoCAvmZs-f555rwPU.js";
4
4
  /*!
5
5
  * Built by Revolist OU ❤️
@@ -675,7 +675,7 @@ const ze = () => ".rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}
675
675
  applyOnScroll(e, t, r = !1) {
676
676
  const i = () => {
677
677
  var o;
678
- (o = this.localScrollService) === null || o === void 0 || o.scroll(t, e, void 0, void 0, r);
678
+ (o = this.localScrollService) === null || o === void 0 || o.scroll(t, e, void 0, void 0, r), this.localScrollTimer.setCoordinateFromScroll({ dimension: e, coordinate: t });
679
679
  };
680
680
  this.localScrollTimer.isReady(e, t) ? i() : this.localScrollTimer.throttleLastScrollUpdate(e, t, () => i());
681
681
  }
@@ -1,4 +1,4 @@
1
- import { r as F, c as v, l as I, J as w, h as s, K as C, L as k, M as D, H as E, f as O } from "./main-BP5C1P4E.js";
1
+ import { r as F, c as m, l as I, h as s, J as w, K as C, L as k, M as D, H as E, f as O } from "./main-jn_O1Op8.js";
2
2
  /*!
3
3
  * Built by Revolist OU ❤️
4
4
  */
@@ -14,7 +14,7 @@ import { r as F, c as v, l as I, J as w, h as s, K as C, L as k, M as D, H as E,
14
14
  });
15
15
  })();
16
16
  const y = "text/revogrid-filter-id";
17
- function T(e, i) {
17
+ function S(e, i) {
18
18
  e && (e.effectAllowed = "move", e.setData(y, String(i)), e.setData("text/plain", String(i)));
19
19
  }
20
20
  function A(e) {
@@ -41,9 +41,9 @@ function b(e, i, t) {
41
41
  n.relation = d === e.length - 1 ? "and" : (c = o[d]) !== null && c !== void 0 ? c : "and";
42
42
  }), !0;
43
43
  }
44
- const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#4545ff;height:32px;line-height:32px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#009037}.revo-button.red{background-color:#E0662E}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.outline{border:1px solid #dbdbdb;line-height:30px;background:none;color:#000;box-shadow:none}revo-grid[theme^=dark] .revo-button.outline{border:1px solid #404040;color:#d8d8d8}revogr-filter-panel{display:block}revogr-filter-panel .filter-panel-dialog{position:fixed;top:0;left:0;z-index:100;max-height:calc(100vh - 16px);overflow:auto;opacity:1;transform:none;background-color:var(--revo-grid-filter-panel-bg, #fff);border:1px solid var(--revo-grid-filter-panel-border, #cecece);transform-origin:62px 0px;box-shadow:0 5px 18px -2px var(--revo-grid-filter-panel-shadow, rgba(0, 0, 0, 0.15));box-sizing:border-box;padding:10px;border-radius:8px;margin:0;min-width:220px;text-align:left;animation:revogr-filter-panel-open 140ms cubic-bezier(0.2, 0, 0, 1)}revogr-filter-panel .filter-panel-dialog .filter-holder>div{display:flex;flex-direction:column}revogr-filter-panel .filter-panel-dialog label{font-size:13px;display:block;padding:8px 0}revogr-filter-panel .filter-panel-dialog select{width:100%}revogr-filter-panel .filter-panel-dialog input[type=text]{border:0;min-height:34px;margin:5px 0;background:var(--revo-grid-filter-panel-input-bg, #f3f3f3);border-radius:5px;padding:0 10px;box-sizing:border-box;width:100%}revogr-filter-panel .filter-panel-dialog .filter-actions{position:sticky;right:0;bottom:-10px;left:0;z-index:1;text-align:right;margin:10px -10px -10px;padding:0 5px 10px 10px;background:var(--revo-grid-filter-panel-bg, #fff);border-top:1px solid var(--revo-grid-filter-panel-divider, #d9d9d9)}revogr-filter-panel .filter-panel-dialog .filter-actions button{margin-top:10px;margin-right:5px}@keyframes revogr-filter-panel-open{from{opacity:0;transform:translateY(-4px) scale(0.98)}to{opacity:1;transform:none}}@media (prefers-reduced-motion: reduce){revogr-filter-panel .filter-panel-dialog{animation:none}}.rgHeaderCell:hover .rv-filter{transition:opacity 267ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 178ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}.rgHeaderCell:hover .rv-filter,.rgHeaderCell .rv-filter.active{opacity:1}.rgHeaderCell .rv-filter{height:24px;width:24px;background:none;border:0;opacity:0;visibility:visible;cursor:pointer;border-radius:4px}.rgHeaderCell .rv-filter.active{color:#10224a}.rgHeaderCell .rv-filter .filter-img{color:gray;width:11px}.select-css{display:block;font-family:sans-serif;line-height:1.3;padding:0.6em 1.4em 0.5em 0.8em;width:100%;max-width:100%;box-sizing:border-box;margin:0;border:1px solid var(--revo-grid-filter-panel-select-border, #d9d9d9);box-shadow:transparent;border-radius:0.5em;appearance:none;background-color:var(--revo-grid-filter-panel-input-bg, #f3f3f3);background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat, repeat;background-position:right 0.7em top 50%, 0 0;background-size:0.65em auto, 100%;}.select-css::-ms-expand{display:none}.select-css:hover{border-color:var(--revo-grid-filter-panel-select-border, #d9d9d9)}.select-css:focus{border-color:var(--revo-grid-filter-panel-select-border-hover, #d9d9d9);box-shadow:0 0 1px 3px rgba(59, 153, 252, 0.7);box-shadow:0 0 0 3px -moz-mac-focusring;outline:none}.select-css option{font-weight:normal}.select-css:disabled,.select-css[aria-disabled=true]{color:gray;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22graytext%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(to bottom, #ffffff 0%, #ffffff 100%)}.select-css:disabled:hover,.select-css[aria-disabled=true]{border-color:var(--revo-grid-filter-panel-select-border, #d9d9d9)}.multi-filter-list{margin-top:5px;margin-bottom:5px}.multi-filter-list div{white-space:nowrap}.multi-filter-list .multi-filter-list-row{display:flex;align-items:center;gap:6px;position:relative}.multi-filter-list .multi-filter-list-row.filter-row-dragging{opacity:0.65}.multi-filter-list .multi-filter-list-row.filter-row-drag-over::before{content:"";position:absolute;top:-4px;right:0;left:0;z-index:2;height:2px;background:var(--revo-grid-filter-panel-reorder-accent, #007cb2);border-radius:999px;box-shadow:0 0 0 2px var(--revo-grid-filter-panel-bg, #fff)}.multi-filter-list .multi-filter-list-row.filter-row-drop-active .filter-row-drop-target{pointer-events:auto}.multi-filter-list .filter-row-drop-target{position:absolute;inset:0;z-index:1;padding:0;pointer-events:none;background:transparent;border:0}.multi-filter-list .multi-filter-list-action{display:flex;align-self:stretch;flex:0 0 auto;justify-content:flex-end;align-items:center}.multi-filter-list .and-or-button{margin:0 0 0 10px;min-width:58px;cursor:pointer}.multi-filter-list .trash-button{margin:0 0 -2px 6px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;width:22px;height:100%;font-size:16px}.multi-filter-list .trash-button .trash-img{width:1em}.multi-filter-list .reorder-button{border:0;background:transparent;color:var(--revo-grid-filter-panel-reorder-color, #6b7280);cursor:grab;font-family:monospace;font-size:12px;letter-spacing:0;line-height:1;padding:6px 2px;transform:scaleX(0.8);width:16px}.multi-filter-list .reorder-button.filter-row-drag-over{color:var(--revo-grid-filter-panel-reorder-accent, #007cb2)}.multi-filter-list .reorder-button:active{cursor:grabbing}.multi-filter-list-container{padding:0;margin:0;list-style:none}.add-filter-divider{display:block;margin:0 -10px 10px -10px;border-bottom:1px solid var(--revo-grid-filter-panel-divider, #d9d9d9);height:10px}.select-input{display:flex;align-items:center;flex:1 1 auto;gap:6px;min-width:0}.select-input .select-filter,.select-input .filter-extra{flex:1 1 0;min-width:0}.select-input .select-filter{width:auto}.select-input .filter-extra{display:flex}.select-input .filter-extra>*{width:100%}.select-input input[type=text],.select-input input[type=date]{margin:0}', f = "none", _ = "multi-filter-list", L = "multi-filter-list-action", x = "add-filter", u = 8, R = class {
44
+ const T = () => '.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#4545ff;height:32px;line-height:32px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#009037}.revo-button.red{background-color:#E0662E}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.outline{border:1px solid #dbdbdb;line-height:30px;background:none;color:#000;box-shadow:none}revo-grid[theme^=dark] .revo-button.outline{border:1px solid #404040;color:#d8d8d8}revogr-filter-panel{display:block}revogr-filter-panel .filter-panel-dialog{position:fixed;top:0;left:0;z-index:100;max-height:calc(100vh - 16px);overflow:auto;opacity:1;transform:none;background-color:var(--revo-grid-filter-panel-bg, #fff);border:1px solid var(--revo-grid-filter-panel-border, #cecece);transform-origin:62px 0px;box-shadow:0 5px 18px -2px var(--revo-grid-filter-panel-shadow, rgba(0, 0, 0, 0.15));box-sizing:border-box;padding:10px;border-radius:8px;margin:0;min-width:220px;text-align:left;animation:revogr-filter-panel-open 140ms cubic-bezier(0.2, 0, 0, 1)}revogr-filter-panel .filter-panel-dialog .filter-holder>div{display:flex;flex-direction:column}revogr-filter-panel .filter-panel-dialog label{font-size:13px;display:block;padding:8px 0}revogr-filter-panel .filter-panel-dialog select{width:100%}revogr-filter-panel .filter-panel-dialog input[type=text]{border:0;min-height:34px;margin:5px 0;background:var(--revo-grid-filter-panel-input-bg, #f3f3f3);border-radius:5px;padding:0 10px;box-sizing:border-box;width:100%}revogr-filter-panel .filter-panel-dialog .filter-actions{position:sticky;right:0;bottom:-10px;left:0;z-index:1;text-align:right;margin:10px -10px -10px;padding:0 5px 10px 10px;background:var(--revo-grid-filter-panel-bg, #fff);border-top:1px solid var(--revo-grid-filter-panel-divider, #d9d9d9)}revogr-filter-panel .filter-panel-dialog .filter-actions button{margin-top:10px;margin-right:5px}@keyframes revogr-filter-panel-open{from{opacity:0;transform:translateY(-4px) scale(0.98)}to{opacity:1;transform:none}}@media (prefers-reduced-motion: reduce){revogr-filter-panel .filter-panel-dialog{animation:none}}.rgHeaderCell:hover .rv-filter{transition:opacity 267ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 178ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}.rgHeaderCell:hover .rv-filter,.rgHeaderCell .rv-filter.active{opacity:1}.rgHeaderCell .rv-filter{height:24px;width:24px;background:none;border:0;opacity:0;visibility:visible;cursor:pointer;border-radius:4px}.rgHeaderCell .rv-filter.active{color:#10224a}.rgHeaderCell .rv-filter .filter-img{color:gray;width:11px}.select-css{display:block;font-family:sans-serif;line-height:1.3;padding:0.6em 1.4em 0.5em 0.8em;width:100%;max-width:100%;box-sizing:border-box;margin:0;border:1px solid var(--revo-grid-filter-panel-select-border, #d9d9d9);box-shadow:transparent;border-radius:0.5em;appearance:none;background-color:var(--revo-grid-filter-panel-input-bg, #f3f3f3);background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat, repeat;background-position:right 0.7em top 50%, 0 0;background-size:0.65em auto, 100%;}.select-css::-ms-expand{display:none}.select-css:hover{border-color:var(--revo-grid-filter-panel-select-border, #d9d9d9)}.select-css:focus{border-color:var(--revo-grid-filter-panel-select-border-hover, #d9d9d9);box-shadow:0 0 1px 3px rgba(59, 153, 252, 0.7);box-shadow:0 0 0 3px -moz-mac-focusring;outline:none}.select-css option{font-weight:normal}.select-css:disabled,.select-css[aria-disabled=true]{color:gray;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22graytext%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(to bottom, #ffffff 0%, #ffffff 100%)}.select-css:disabled:hover,.select-css[aria-disabled=true]{border-color:var(--revo-grid-filter-panel-select-border, #d9d9d9)}.multi-filter-list{margin-top:5px;margin-bottom:5px}.multi-filter-list div{white-space:nowrap}.multi-filter-list .multi-filter-list-row{display:flex;align-items:center;gap:6px;position:relative}.multi-filter-list .multi-filter-list-row.filter-row-dragging{opacity:0.65}.multi-filter-list .multi-filter-list-row.filter-row-drag-over::before{content:"";position:absolute;top:-4px;right:0;left:0;z-index:2;height:2px;background:var(--revo-grid-filter-panel-reorder-accent, #007cb2);border-radius:999px;box-shadow:0 0 0 2px var(--revo-grid-filter-panel-bg, #fff)}.multi-filter-list .multi-filter-list-row.filter-row-drop-active .filter-row-drop-target{pointer-events:auto}.multi-filter-list .filter-row-drop-target{position:absolute;inset:0;z-index:1;padding:0;pointer-events:none;background:transparent;border:0}.multi-filter-list .multi-filter-list-action{display:flex;align-self:stretch;flex:0 0 auto;justify-content:flex-end;align-items:center}.multi-filter-list .and-or-button{margin:0 0 0 10px;min-width:58px;cursor:pointer}.multi-filter-list .trash-button{margin:0 0 -2px 6px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;width:22px;height:100%;font-size:16px}.multi-filter-list .trash-button .trash-img{width:1em}.multi-filter-list .reorder-button{border:0;background:transparent;color:var(--revo-grid-filter-panel-reorder-color, #6b7280);cursor:grab;font-family:monospace;font-size:12px;letter-spacing:0;line-height:1;padding:6px 2px;transform:scaleX(0.8);width:16px}.multi-filter-list .reorder-button.filter-row-drag-over{color:var(--revo-grid-filter-panel-reorder-accent, #007cb2)}.multi-filter-list .reorder-button:active{cursor:grabbing}.multi-filter-list-container{padding:0;margin:0;list-style:none}.add-filter-divider{display:block;margin:0 -10px 10px -10px;border-bottom:1px solid var(--revo-grid-filter-panel-divider, #d9d9d9);height:10px}.select-input{display:flex;align-items:center;flex:1 1 auto;gap:6px;min-width:0}.select-input .select-filter,.select-input .filter-extra{flex:1 1 0;min-width:0}.select-input .select-filter{width:auto}.select-input .filter-extra{display:flex}.select-input .filter-extra>*{width:100%}.select-input input[type=text],.select-input input[type=date]{margin:0}', f = "none", _ = "multi-filter-list", R = "multi-filter-list-action", x = "add-filter", u = 8, L = class {
45
45
  constructor(e) {
46
- F(this, e), this.filterChange = v(this, "filterChange", 7), this.resetChange = v(this, "resetChange", 7), this.filterCaptionsInternal = {
46
+ F(this, e), this.filterChange = m(this, "filterChange", 7), this.resetChange = m(this, "resetChange", 7), this.filterCaptionsInternal = {
47
47
  title: "Filter by",
48
48
  ok: "Close",
49
49
  save: "Save",
@@ -64,15 +64,13 @@ const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;backg
64
64
  onMouseDown(e) {
65
65
  if (!this.changes)
66
66
  return;
67
- const i = e.composedPath(), t = document.getElementById(x);
67
+ const i = e.composedPath(), t = this.getAddFilterSelect();
68
68
  if (t instanceof HTMLSelectElement) {
69
69
  if (i.includes(t))
70
70
  return;
71
71
  t.value = f;
72
72
  }
73
- this.currentFilterType = f, this.changes && (this.changes.type = f), this.currentFilterId = -1;
74
- const r = !i.includes(this.element);
75
- e.target instanceof HTMLElement && r && !w(e.target) && this.closeOnOutsideClick && (this.changes = void 0);
73
+ this.currentFilterType = f, this.changes && (this.changes.type = f), this.currentFilterId = -1, !i.includes(this.element) && !this.isOwnFilterButton(e.target) && this.closeOnOutsideClick && (this.changes = void 0);
76
74
  }
77
75
  async show(e) {
78
76
  this.changes = e, this.filterItems = (e == null ? void 0 : e.filterItems) || {}, this.changes && (this.changes.type = this.changes.type || f);
@@ -98,14 +96,14 @@ const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;backg
98
96
  let d;
99
97
  if (l.hidden)
100
98
  return;
101
- n !== this.filterItems[t].length - 1 && (d = s(C, { text: l.relation === "and" ? o.and : o.or, onClick: () => this.toggleFilterAndOr(l.id) }));
102
- const c = this.renderExtra(t, n), h = this.draggedFilterId === l.id, p = this.dragOverFilterId === l.id && !h, m = a > 1;
99
+ n !== this.filterItems[t].length - 1 && (d = s(w, { text: l.relation === "and" ? o.and : o.or, onClick: () => this.toggleFilterAndOr(l.id) }));
100
+ const c = this.renderExtra(t, n), h = this.draggedFilterId === l.id, p = this.dragOverFilterId === l.id && !h, v = a > 1;
103
101
  return s("li", { key: l.id, class: _, "aria-label": `${o.filterCondition} ${n + 1}` }, s("div", { class: {
104
102
  "multi-filter-list-row": !0,
105
103
  "filter-row-drop-active": this.draggedFilterId !== void 0 && !h,
106
104
  "filter-row-dragging": h,
107
105
  "filter-row-drag-over": p
108
- } }, m ? s("button", { type: "button", class: "filter-row-drop-target", tabIndex: -1, "aria-label": `${o.filterCondition} ${n + 1}`, onDragOver: (g) => this.onFilterDragOver(g, l.id), onDragLeave: () => this.onFilterDragLeave(l.id), onDrop: (g) => this.onFilterDrop(g, t, l.id) }) : "", m ? s(k, { ariaLabel: o.reorderFilter, dragging: h, dragOver: p, onDragStart: (g) => this.onFilterDragStart(g, l.id), onDragEnd: () => this.onFilterDragEnd(), onKeyDown: (g) => this.onFilterReorderKeyDown(g, t, l.id) }) : "", s("div", { class: { "select-input": !0 } }, s("select", { class: "select-css select-filter", onChange: (g) => this.onFilterTypeChange(g, t, n) }, this.renderSelectOptions(this.filterItems[t][n].type, !0)), c ? s("div", { class: "filter-extra" }, c) : ""), s("div", { class: L }, d, s(D, { ariaLabel: o.removeFilter, onClick: () => this.onRemoveFilter(l.id) }))));
106
+ } }, v ? s("button", { type: "button", class: "filter-row-drop-target", tabIndex: -1, "aria-label": `${o.filterCondition} ${n + 1}`, onDragOver: (g) => this.onFilterDragOver(g, l.id), onDragLeave: () => this.onFilterDragLeave(l.id), onDrop: (g) => this.onFilterDrop(g, t, l.id) }) : "", v ? s(C, { ariaLabel: o.reorderFilter, dragging: h, dragOver: p, onDragStart: (g) => this.onFilterDragStart(g, l.id), onDragEnd: () => this.onFilterDragEnd(), onKeyDown: (g) => this.onFilterReorderKeyDown(g, t, l.id) }) : "", s("div", { class: { "select-input": !0 } }, s("select", { class: "select-css select-filter", onChange: (g) => this.onFilterTypeChange(g, t, n) }, this.renderSelectOptions(this.filterItems[t][n].type, !0)), c ? s("div", { class: "filter-extra" }, c) : ""), s("div", { class: R }, d, s(k, { ariaLabel: o.removeFilter, onClick: () => this.onRemoveFilter(l.id) }))));
109
107
  })), r.filter((l) => !l.hidden).length > 0 ? s("div", { class: "add-filter-divider" }) : "");
110
108
  }
111
109
  componentDidRender() {
@@ -127,8 +125,8 @@ const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;backg
127
125
  e.style.maxHeight = "", e.style.left = `${this.changes.x}px`, e.style.top = `${this.changes.y}px`;
128
126
  const t = e.getBoundingClientRect(), r = (i = this.changes.anchorY) !== null && i !== void 0 ? i : this.changes.y, a = this.changes.y, o = Math.max(0, r - u), l = Math.max(0, window.innerHeight - a - u), n = t.height > l && o > l, d = Math.max(u, n ? o : l);
129
127
  e.style.maxHeight = `${d}px`;
130
- const c = e.getBoundingClientRect(), h = Math.max(u, window.innerWidth - c.width - u), p = Math.max(u, window.innerHeight - c.height - u), m = Math.min(Math.max(u, this.changes.x), h), g = Math.min(n ? Math.max(u, r - c.height) : Math.max(u, a), p);
131
- e.style.left = `${m}px`, e.style.top = `${g}px`;
128
+ const c = e.getBoundingClientRect(), h = Math.max(u, window.innerWidth - c.width - u), p = Math.max(u, window.innerHeight - c.height - u), v = Math.min(Math.max(u, this.changes.x), h), g = Math.min(n ? Math.max(u, r - c.height) : Math.max(u, a), p);
129
+ e.style.left = `${v}px`, e.style.top = `${g}px`;
132
130
  }
133
131
  onFilterTypeChange(e, i, t) {
134
132
  e.target instanceof HTMLSelectElement && (this.filterItems[i][t].type = e.target.value, this.filterId++, setTimeout(() => {
@@ -139,7 +137,7 @@ const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;backg
139
137
  onAddNewFilter(e) {
140
138
  const i = e.target;
141
139
  this.currentFilterType = i.value, this.addNewFilterToProp();
142
- const t = document.getElementById("add-filter");
140
+ const t = this.getAddFilterSelect();
143
141
  t && (t.value = f, this.currentFilterType = f), this.disableDynamicFiltering || this.debouncedApplyFilter();
144
142
  }
145
143
  addNewFilterToProp() {
@@ -175,7 +173,7 @@ const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;backg
175
173
  a !== -1 && (r.splice(a, 1), r.length === 0 && delete this.filterItems[t ?? ""], this.disableDynamicFiltering || this.debouncedApplyFilter());
176
174
  }
177
175
  onFilterDragStart(e, i) {
178
- this.draggedFilterId = i, T(e.dataTransfer, i);
176
+ this.draggedFilterId = i, S(e.dataTransfer, i);
179
177
  }
180
178
  onFilterDragOver(e, i) {
181
179
  this.draggedFilterId === void 0 || this.draggedFilterId === i || (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "move"), this.dragOverFilterId = i);
@@ -251,7 +249,7 @@ const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;backg
251
249
  const r = (n) => {
252
250
  this.filterItems[e][i].value = n, this.disableDynamicFiltering || this.debouncedApplyFilter();
253
251
  }, a = () => {
254
- const n = document.getElementById("add-filter");
252
+ const n = this.getAddFilterSelect();
255
253
  n && (n.value = f, this.currentFilterType = f, this.addNewFilterToProp(), n.focus());
256
254
  }, o = Object.assign(Object.assign({}, this.filterCaptionsInternal), this.filterCaptions), l = this.filterEntities[t[i].type].extra;
257
255
  return typeof l == "function" ? l(s, {
@@ -270,19 +268,36 @@ const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;backg
270
268
  n.target instanceof HTMLInputElement && r(n.target.value);
271
269
  }, onKeyDown: (n) => {
272
270
  if (n.key.toLowerCase() === "enter") {
273
- document.getElementById("add-filter") && a();
271
+ this.getAddFilterSelect() && a();
274
272
  return;
275
273
  }
276
274
  n.stopPropagation();
277
275
  } });
278
276
  }
277
+ getAddFilterSelect() {
278
+ return this.element.querySelector(`#${x}`);
279
+ }
280
+ isOwnFilterButton(e) {
281
+ if (!(e instanceof Element) || !D(e))
282
+ return !1;
283
+ const i = this.getOwningGrid(this.element), t = this.getOwningGrid(e);
284
+ return !!i && i === t;
285
+ }
286
+ getOwningGrid(e) {
287
+ const i = e.closest("revo-grid");
288
+ if (i)
289
+ return i;
290
+ const t = e.getRootNode();
291
+ if (t instanceof ShadowRoot && t.host.localName === "revo-grid")
292
+ return t.host;
293
+ }
279
294
  render() {
280
295
  var e, i, t, r, a, o, l, n, d;
281
296
  const c = {
282
297
  left: `${(i = (e = this.changes) === null || e === void 0 ? void 0 : e.x) !== null && i !== void 0 ? i : 0}px`,
283
298
  top: `${(r = (t = this.changes) === null || t === void 0 ? void 0 : t.y) !== null && r !== void 0 ? r : 0}px`
284
299
  }, h = Object.assign(Object.assign({}, this.filterCaptionsInternal), this.filterCaptions);
285
- return s(E, { key: "4e969f8b7033363c885c94b1f7770917786669f2" }, s("dialog", { key: "79b2713724684fa99f56621fe43645a0b0ad54bf", class: "filter-panel-dialog", style: c, ref: (p) => this.dialog = p, onCancel: (p) => {
300
+ return s(E, { key: "2a19b35adb56fb7d23385fffebc768838edee162" }, s("dialog", { key: "94386d7cbc4bd9c631f72928938b1d1550a3de82", class: "filter-panel-dialog", style: c, ref: (p) => this.dialog = p, onCancel: (p) => {
286
301
  p.preventDefault(), this.onCancel();
287
302
  } }, this.changes && [
288
303
  s("slot", { key: "header-slot", slot: "header" }),
@@ -290,7 +305,7 @@ const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;backg
290
305
  ((l = this.changes) === null || l === void 0 ? void 0 : l.hideDefaultFilters) !== !0 && [
291
306
  s("label", { key: "filter-title" }, h.title),
292
307
  s("div", { key: "filter-holder", class: "filter-holder" }, this.getFilterItemsList()),
293
- s("div", { key: "add-filter", class: "add-filter" }, s("select", { key: "fc894bdfae1ff35d5c49adc7646dd3182b7bd49e", id: x, class: "select-css", onChange: (p) => this.onAddNewFilter(p) }, this.renderSelectOptions(this.currentFilterType)))
308
+ s("div", { key: "add-filter", class: "add-filter" }, s("select", { key: "4f7354e39d8e5cf9ae7b735290eff18d105ab87e", id: x, class: "select-css", onChange: (p) => this.onAddNewFilter(p) }, this.renderSelectOptions(this.currentFilterType)))
294
309
  ],
295
310
  s("slot", { key: "default-slot" }),
296
311
  ((d = (n = this.changes).extraBottomContent) === null || d === void 0 ? void 0 : d.call(n, this.changes)) || "",
@@ -308,7 +323,7 @@ const S = () => '.revo-button{position:relative;overflow:hidden;color:#fff;backg
308
323
  return O(this);
309
324
  }
310
325
  };
311
- R.style = S();
326
+ L.style = T();
312
327
  export {
313
- R as revogr_filter_panel
328
+ L as revogr_filter_panel
314
329
  };
@@ -1,91 +1,35 @@
1
- export declare const useDomainStore: import('pinia').StoreDefinition<"endge-domain-store", Pick<{
2
- domain: import('vue').Ref<import('@endge/core').EndgeDomain, import('@endge/core').EndgeDomain>;
3
- projects: import('vue').ComputedRef<import('@endge/core/dist/domain/entities/reflect/RProject').RProject[]>;
4
- types: import('vue').ComputedRef<import('@endge/core').RType[]>;
5
- typesPrimitives: import('vue').ComputedRef<import('@endge/core').RType[]>;
6
- typesComplex: import('vue').ComputedRef<import('@endge/core').RType[]>;
7
- typeCatalog: import('vue').ComputedRef<import('@endge/core').TypeProgramCatalogEntry[]>;
8
- queries: import('vue').ComputedRef<import('@endge/core').RQuery[]>;
9
- components: import('vue').ComputedRef<import('@endge/core').RComponent[]>;
10
- componentSFCs: import('vue').ComputedRef<import('@endge/core').RComponentSFC[]>;
11
- actions: import('vue').ComputedRef<import('@endge/core').RAction[]>;
12
- converters: import('vue').ComputedRef<import('@endge/core').RConverter[]>;
13
- integrations: import('vue').ComputedRef<import('@endge/core').RIntegration[]>;
14
- pageTemplates: import('vue').ComputedRef<import('@endge/core').RPageTemplate[]>;
15
- pages: import('vue').ComputedRef<import('@endge/core').RPage[]>;
16
- navigations: import('vue').ComputedRef<import('@endge/core').RNavigation[]>;
17
- folders: import('vue').ComputedRef<import('@endge/core').RFolder[]>;
18
- queriesNames: import('vue').ComputedRef<string[]>;
19
- parameters: import('vue').ComputedRef<import('@endge/core').RParameter[]>;
20
- filters: import('vue').ComputedRef<import('@endge/core').RFilter[]>;
21
- compositions: import('vue').ComputedRef<import('@endge/core').RComposition[]>;
22
- environments: import('vue').ComputedRef<import('@endge/core').REnvironment[]>;
23
- tenants: import('vue').ComputedRef<import('@endge/core').RTenant[]>;
24
- policies: import('vue').ComputedRef<import('@endge/core').RPolicy[]>;
25
- styles: import('vue').ComputedRef<import('@endge/core').RStyle[]>;
26
- vocabs: import('vue').ComputedRef<import('@endge/core').RVocabs[]>;
27
- i18nBundles: import('vue').ComputedRef<import('@endge/core').RI18nBundle[]>;
28
- mocks: import('vue').ComputedRef<import('@endge/core').RMock[]>;
29
- authProfiles: import('vue').ComputedRef<import('@endge/core').RAuthProfile[]>;
30
- events: import('vue').ComputedRef<import('@endge/core').CachedEvent[]>;
31
- }, "domain">, Pick<{
32
- domain: import('vue').Ref<import('@endge/core').EndgeDomain, import('@endge/core').EndgeDomain>;
33
- projects: import('vue').ComputedRef<import('@endge/core/dist/domain/entities/reflect/RProject').RProject[]>;
34
- types: import('vue').ComputedRef<import('@endge/core').RType[]>;
35
- typesPrimitives: import('vue').ComputedRef<import('@endge/core').RType[]>;
36
- typesComplex: import('vue').ComputedRef<import('@endge/core').RType[]>;
37
- typeCatalog: import('vue').ComputedRef<import('@endge/core').TypeProgramCatalogEntry[]>;
38
- queries: import('vue').ComputedRef<import('@endge/core').RQuery[]>;
39
- components: import('vue').ComputedRef<import('@endge/core').RComponent[]>;
40
- componentSFCs: import('vue').ComputedRef<import('@endge/core').RComponentSFC[]>;
41
- actions: import('vue').ComputedRef<import('@endge/core').RAction[]>;
42
- converters: import('vue').ComputedRef<import('@endge/core').RConverter[]>;
43
- integrations: import('vue').ComputedRef<import('@endge/core').RIntegration[]>;
44
- pageTemplates: import('vue').ComputedRef<import('@endge/core').RPageTemplate[]>;
45
- pages: import('vue').ComputedRef<import('@endge/core').RPage[]>;
46
- navigations: import('vue').ComputedRef<import('@endge/core').RNavigation[]>;
47
- folders: import('vue').ComputedRef<import('@endge/core').RFolder[]>;
48
- queriesNames: import('vue').ComputedRef<string[]>;
49
- parameters: import('vue').ComputedRef<import('@endge/core').RParameter[]>;
50
- filters: import('vue').ComputedRef<import('@endge/core').RFilter[]>;
51
- compositions: import('vue').ComputedRef<import('@endge/core').RComposition[]>;
52
- environments: import('vue').ComputedRef<import('@endge/core').REnvironment[]>;
53
- tenants: import('vue').ComputedRef<import('@endge/core').RTenant[]>;
54
- policies: import('vue').ComputedRef<import('@endge/core').RPolicy[]>;
55
- styles: import('vue').ComputedRef<import('@endge/core').RStyle[]>;
56
- vocabs: import('vue').ComputedRef<import('@endge/core').RVocabs[]>;
57
- i18nBundles: import('vue').ComputedRef<import('@endge/core').RI18nBundle[]>;
58
- mocks: import('vue').ComputedRef<import('@endge/core').RMock[]>;
59
- authProfiles: import('vue').ComputedRef<import('@endge/core').RAuthProfile[]>;
60
- events: import('vue').ComputedRef<import('@endge/core').CachedEvent[]>;
61
- }, "components" | "filters" | "pages" | "actions" | "projects" | "types" | "typesPrimitives" | "typesComplex" | "typeCatalog" | "queries" | "componentSFCs" | "converters" | "integrations" | "pageTemplates" | "navigations" | "folders" | "queriesNames" | "parameters" | "compositions" | "environments" | "tenants" | "policies" | "styles" | "vocabs" | "i18nBundles" | "mocks" | "authProfiles" | "events">, Pick<{
62
- domain: import('vue').Ref<import('@endge/core').EndgeDomain, import('@endge/core').EndgeDomain>;
63
- projects: import('vue').ComputedRef<import('@endge/core/dist/domain/entities/reflect/RProject').RProject[]>;
64
- types: import('vue').ComputedRef<import('@endge/core').RType[]>;
65
- typesPrimitives: import('vue').ComputedRef<import('@endge/core').RType[]>;
66
- typesComplex: import('vue').ComputedRef<import('@endge/core').RType[]>;
67
- typeCatalog: import('vue').ComputedRef<import('@endge/core').TypeProgramCatalogEntry[]>;
68
- queries: import('vue').ComputedRef<import('@endge/core').RQuery[]>;
69
- components: import('vue').ComputedRef<import('@endge/core').RComponent[]>;
70
- componentSFCs: import('vue').ComputedRef<import('@endge/core').RComponentSFC[]>;
71
- actions: import('vue').ComputedRef<import('@endge/core').RAction[]>;
72
- converters: import('vue').ComputedRef<import('@endge/core').RConverter[]>;
73
- integrations: import('vue').ComputedRef<import('@endge/core').RIntegration[]>;
74
- pageTemplates: import('vue').ComputedRef<import('@endge/core').RPageTemplate[]>;
75
- pages: import('vue').ComputedRef<import('@endge/core').RPage[]>;
76
- navigations: import('vue').ComputedRef<import('@endge/core').RNavigation[]>;
77
- folders: import('vue').ComputedRef<import('@endge/core').RFolder[]>;
78
- queriesNames: import('vue').ComputedRef<string[]>;
79
- parameters: import('vue').ComputedRef<import('@endge/core').RParameter[]>;
80
- filters: import('vue').ComputedRef<import('@endge/core').RFilter[]>;
81
- compositions: import('vue').ComputedRef<import('@endge/core').RComposition[]>;
82
- environments: import('vue').ComputedRef<import('@endge/core').REnvironment[]>;
83
- tenants: import('vue').ComputedRef<import('@endge/core').RTenant[]>;
84
- policies: import('vue').ComputedRef<import('@endge/core').RPolicy[]>;
85
- styles: import('vue').ComputedRef<import('@endge/core').RStyle[]>;
86
- vocabs: import('vue').ComputedRef<import('@endge/core').RVocabs[]>;
87
- i18nBundles: import('vue').ComputedRef<import('@endge/core').RI18nBundle[]>;
88
- mocks: import('vue').ComputedRef<import('@endge/core').RMock[]>;
89
- authProfiles: import('vue').ComputedRef<import('@endge/core').RAuthProfile[]>;
90
- events: import('vue').ComputedRef<import('@endge/core').CachedEvent[]>;
91
- }, never>>;
1
+ import { Endge } from '@endge/core';
2
+ /** Публичная Vue-проекция domain/program/events модулей Endge. */
3
+ export interface DomainView {
4
+ readonly domain: typeof Endge.domain;
5
+ readonly projects: ReturnType<typeof Endge.domain.getProjects>;
6
+ readonly types: ReturnType<typeof Endge.domain.getTypes>;
7
+ readonly typesPrimitives: ReturnType<typeof Endge.domain.getTypes>;
8
+ readonly typesComplex: ReturnType<typeof Endge.domain.getTypes>;
9
+ readonly typeCatalog: ReturnType<typeof Endge.program.getTypeCatalog>;
10
+ readonly queries: ReturnType<typeof Endge.domain.getQueries>;
11
+ readonly components: ReturnType<typeof Endge.domain.getComponents>;
12
+ readonly componentSFCs: ReturnType<typeof Endge.domain.getComponentSFCs>;
13
+ readonly actions: ReturnType<typeof Endge.domain.getActions>;
14
+ readonly converters: ReturnType<typeof Endge.domain.getConverters>;
15
+ readonly integrations: ReturnType<typeof Endge.domain.getIntegrations>;
16
+ readonly pageTemplates: ReturnType<typeof Endge.domain.getPageTemplates>;
17
+ readonly pages: ReturnType<typeof Endge.domain.getPages>;
18
+ readonly navigations: ReturnType<typeof Endge.domain.getNavigations>;
19
+ readonly folders: ReturnType<typeof Endge.domain.getFolders>;
20
+ readonly queriesNames: readonly string[];
21
+ readonly parameters: ReturnType<typeof Endge.domain.getParameters>;
22
+ readonly filters: ReturnType<typeof Endge.domain.getFilters>;
23
+ readonly compositions: ReturnType<typeof Endge.domain.getCompositions>;
24
+ readonly environments: ReturnType<typeof Endge.domain.getEnvironments>;
25
+ readonly tenants: ReturnType<typeof Endge.domain.getTenants>;
26
+ readonly policies: ReturnType<typeof Endge.domain.getPolicies>;
27
+ readonly styles: ReturnType<typeof Endge.domain.getStyles>;
28
+ readonly vocabs: ReturnType<typeof Endge.domain.getVocabs>;
29
+ readonly i18nBundles: ReturnType<typeof Endge.domain.getI18nBundles>;
30
+ readonly mocks: ReturnType<typeof Endge.domain.getMocks>;
31
+ readonly authProfiles: ReturnType<typeof Endge.domain.getAuthProfiles>;
32
+ readonly events: typeof Endge.events.lastEvents;
33
+ }
34
+ /** Возвращает общую readonly-проекцию состояния модулей Endge для Vue UI. */
35
+ export declare function useDomainStore(): DomainView;
@@ -0,0 +1 @@
1
+ export {};