@flexem/fc-gui 3.0.0-alpha.189 → 3.0.0-alpha.190

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.
@@ -42489,6 +42489,9 @@ C140,111.8,99.2,158.4,78,178.6z M78,40.4c-17.8,0-32.4,14.4-32.4,32.2s14.5,32.2,3
42489
42489
 
42490
42490
  // CONCATENATED MODULE: ./.tmp/elements/alarm/alarm-table-scrollbar.ts
42491
42491
  /** SVG scrollbar overlays the table bounds but stays outside foreignObject for WKWebView scaling. */
42492
+ const TRACK_COLOR = '#f0f1f4';
42493
+ const THUMB_COLOR = '#c5cbd4';
42494
+ const ACTIVE_THUMB_COLOR = '#adb6c2';
42492
42495
  class AlarmTableScrollbar {
42493
42496
  constructor(parent, x, y, width, height, visibleRows, onChange, onPause, onResume) {
42494
42497
  this.y = y;
@@ -42521,7 +42524,7 @@ class AlarmTableScrollbar {
42521
42524
  this.dragging = true;
42522
42525
  this.dragStartY = localY;
42523
42526
  this.dragStartRow = this.start;
42524
- this.thumb.setAttribute('fill', '#8f99aa');
42527
+ this.thumb.setAttribute('fill', ACTIVE_THUMB_COLOR);
42525
42528
  this.thumb.style.cursor = 'grabbing';
42526
42529
  this.ownerDocument.addEventListener('mousemove', this.handleMove);
42527
42530
  this.ownerDocument.addEventListener('mouseup', this.handleEnd);
@@ -42546,7 +42549,7 @@ class AlarmTableScrollbar {
42546
42549
  return;
42547
42550
  this.dragging = false;
42548
42551
  this.unbindDrag();
42549
- this.thumb.setAttribute('fill', '#b6bdc9');
42552
+ this.thumb.setAttribute('fill', THUMB_COLOR);
42550
42553
  this.thumb.style.cursor = 'grab';
42551
42554
  this.onResume();
42552
42555
  };
@@ -42584,12 +42587,13 @@ class AlarmTableScrollbar {
42584
42587
  this.group.style.cursor = 'default';
42585
42588
  this.track = this.createElement('rect');
42586
42589
  this.setRect(this.track, x, y, width, height);
42587
- this.track.setAttribute('fill', '#eef0f4');
42590
+ this.track.setAttribute('fill', TRACK_COLOR);
42588
42591
  this.track.setAttribute('rx', '0');
42589
42592
  this.thumb = this.createElement('rect');
42590
- this.setRect(this.thumb, x + width / 4, y, width / 2, height);
42591
- this.thumb.setAttribute('fill', '#b6bdc9');
42592
- this.thumb.setAttribute('rx', String(width / 4));
42593
+ this.setRect(this.thumb, x, y, width, height);
42594
+ this.thumb.setAttribute('fill', THUMB_COLOR);
42595
+ this.thumb.setAttribute('rx', String(width / 2));
42596
+ this.thumb.style.transition = 'fill 120ms ease';
42593
42597
  this.thumb.style.cursor = 'grab';
42594
42598
  this.group.appendChild(this.track);
42595
42599
  this.group.appendChild(this.thumb);
@@ -43223,7 +43227,7 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
43223
43227
  this.scrollWindowStart = 0;
43224
43228
  // WKWebView can paint positioned HTML descendants outside the SVG scale.
43225
43229
  // Keep a single unpositioned table directly in foreignObject. The sibling
43226
- // SVG scrollbar overlays the table's right edge without an HTML scrolling layer.
43230
+ // SVG scrollbar sits inside the table's right border without an HTML scrolling layer.
43227
43231
  const scrollbarWidth = Math.min(12, this.model.size.width * 0.04);
43228
43232
  const tableHeight = elementHeight - operationAreaReservedHeight;
43229
43233
  const table = document.createElement('table');
@@ -43238,7 +43242,7 @@ class alarm_element_AlarmElement extends conditional_display_element_Conditional
43238
43242
  const renderedTableHeight = table.getBoundingClientRect().height / canvasScaleY || tableHeight;
43239
43243
  const renderedHeaderHeight = table.rows[0].getBoundingClientRect().height / canvasScaleY || this.model.heights[0];
43240
43244
  const scrollbarInset = 2;
43241
- this.scrollbar = new AlarmTableScrollbar(this.element.parentNode, this.model.size.width - scrollbarWidth, renderedHeaderHeight + scrollbarInset, scrollbarWidth, Math.max(0, renderedTableHeight - renderedHeaderHeight - scrollbarInset * 2), this.maxVisibleRows, start => this.moveScrollWindowBy(start - this.scrollWindowStart), () => clearInterval(this.scrollIntervalId), () => this.startAutoScroll());
43245
+ this.scrollbar = new AlarmTableScrollbar(this.element.parentNode, this.model.size.width - scrollbarWidth - scrollbarInset, renderedHeaderHeight + scrollbarInset, scrollbarWidth, Math.max(0, renderedTableHeight - renderedHeaderHeight - scrollbarInset * 2), this.maxVisibleRows, start => this.moveScrollWindowBy(start - this.scrollWindowStart), () => clearInterval(this.scrollIntervalId), () => this.startAutoScroll());
43242
43246
  this.updateScrollThumb();
43243
43247
  this.hoverTarget = table;
43244
43248
  this.bindScrollHoverEvents();