vue2-excel-grid 2.11.0 → 2.11.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-excel-grid",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "description": "Excel-style grid component for Vue 2.6.14 with virtual scrolling",
5
5
  "license": "MIT",
6
6
  "author": "Fozilbek Raimberdiyev",
@@ -1172,7 +1172,7 @@ const ExcelGridComponent = {
1172
1172
  collapsedGroups: { type: Array, default: () => [] },
1173
1173
 
1174
1174
  /**
1175
- * Height of the grid container in px.
1175
+ * Height of the grid container in px (or a CSS length string like '100%').
1176
1176
  *
1177
1177
  * Omit it (or pass `null`) for auto-height: the grid sizes itself to fit
1178
1178
  * the header + filter row + all rows + footer for the current `data`
@@ -1182,9 +1182,9 @@ const ExcelGridComponent = {
1182
1182
  * window resize. Does not apply in fullscreen mode (already sized to the
1183
1183
  * viewport there) and does not include the toolbar's own height.
1184
1184
  *
1185
- * Pass an explicit `Number` to opt back into the old fixed-height behavior.
1185
+ * Pass an explicit `Number` or string to opt back into the fixed-height behavior.
1186
1186
  */
1187
- height: { type: Number, default: null },
1187
+ height: { type: [Number, String], default: null },
1188
1188
 
1189
1189
  /**
1190
1190
  * Width of the grid container (px or a CSS length string).
@@ -1692,6 +1692,10 @@ const ExcelGridComponent = {
1692
1692
  // macOS overlay scrollbars) — widthMode:'auto' adds it to the natural
1693
1693
  // width so the scrollbar never eats into the last column.
1694
1694
  vScrollbarW: 0,
1695
+ // Real horizontal-scrollbar height measured off the scroll body —
1696
+ // auto-height adds it to the content height so horizontal scroll never
1697
+ // eats into the row height.
1698
+ hScrollbarH: 0,
1695
1699
  // .eg-shell's horizontal border total (border-box). Measured at mount —
1696
1700
  // themes can restyle it — so widthMode:'auto' accounts for it instead
1697
1701
  // of shaving those pixels off the last column.
@@ -1978,18 +1982,26 @@ const ExcelGridComponent = {
1978
1982
  return buildCumulativeHeights(this.totalRows, this._rowH, this.rowHeights, this.hiddenRowSet, ROW_LIST_EDGE_PAD, ROW_LIST_EDGE_PAD)
1979
1983
  },
1980
1984
 
1981
- // height prop omitted → fit header + filter row + all (visible) rows + footer exactly.
1985
+ // height prop omitted → fit header + filter row + all (visible) rows + footer + horizontal scrollbar exactly.
1982
1986
  _autoContentHeight() {
1983
1987
  const headerH = this._headerRowH * this.headerDepth + this._filterRowH
1984
1988
  const bodyH = this.cumulativeHeights[this.totalRows] || 0
1985
1989
  const footerH = this.hasFooter ? this._footerRowH : 0
1986
- return headerH + bodyH + footerH
1990
+ const scrollH = this.hScrollbarH || 0
1991
+ return headerH + bodyH + footerH + scrollH
1987
1992
  },
1988
1993
 
1989
1994
  // Resolved grid-area height: explicit `height` prop wins as-is (old
1990
1995
  // behavior); omitted → auto-fit content, capped at 70% of the viewport.
1991
1996
  effectiveHeight() {
1992
- if (this.height != null) return this.height
1997
+ if (this.height != null) {
1998
+ if (typeof this.height === 'number') return this.height
1999
+ if (typeof this.height === 'string') {
2000
+ const parsed = parseFloat(this.height)
2001
+ if (!isNaN(parsed) && !this.height.endsWith('%')) return parsed
2002
+ return null
2003
+ }
2004
+ }
1993
2005
  return Math.min(this._autoContentHeight, this.windowInnerH * 0.7)
1994
2006
  },
1995
2007
 
@@ -2147,9 +2159,12 @@ const ExcelGridComponent = {
2147
2159
  userSelect: 'none'
2148
2160
  }
2149
2161
  }
2162
+ const isPercentHeight = typeof this.height === 'string' && this.height.endsWith('%')
2150
2163
  const style = {
2151
2164
  width: this._hostWidth,
2152
- height: this.effectiveHeight + 'px',
2165
+ height: isPercentHeight ? this.height : (this.effectiveHeight ? (this.effectiveHeight + 'px') : 'auto'),
2166
+ flex: '1 1 auto',
2167
+ minHeight: 0,
2153
2168
  position: 'relative',
2154
2169
  outline: 'none',
2155
2170
  userSelect: 'none'
@@ -2165,6 +2180,9 @@ const ExcelGridComponent = {
2165
2180
  display: 'flex',
2166
2181
  flexDirection: 'column'
2167
2182
  }
2183
+ if (typeof this.height === 'string' && this.height.endsWith('%')) {
2184
+ style.height = this.height
2185
+ }
2168
2186
  // The cap that keeps a too-wide column set at the host's edge
2169
2187
  // (internal horizontal scroll takes over from there).
2170
2188
  if (this.widthMode === 'auto') style.maxWidth = '100%'
@@ -2266,28 +2284,20 @@ const ExcelGridComponent = {
2266
2284
  position: 'relative'
2267
2285
  }
2268
2286
  }
2269
- // Fixed/auto height: an explicit px height (matching _containerH()'s
2270
- // non-fullscreen formula) instead of flex:1 growth. flex:1 here only
2271
- // ever has ONE sibling competing for space mathematically, so it
2272
- // should be exact — but nested flex cross-axis stretch (this box's
2273
- // height flows down to .eg-scroll-body/.eg-row-header-col via
2274
- // align-items:stretch) is vulnerable to sub-pixel rounding between
2275
- // browser-rendered header/footer row heights and the integer px
2276
- // this component assumes, occasionally landing 1px short. That 1px
2277
- // shortfall is enough to make .eg-scroll-body's overflow:auto show a
2278
- // vertical scrollbar even when content should fit exactly (reported
2279
- // with a single data row and no `height` prop — content height ==
2280
- // container height, so any shortfall trips overflow instantly).
2281
- // flex: '0 0 auto' overrides the .eg-body-area class rule's own
2282
- // `flex: 1` (flex-basis: 0%) — with a non-auto flex-basis, flexbox
2283
- // ignores this element's own `height` entirely for main-axis sizing,
2284
- // so basis must explicitly go back to `auto` for `height` to apply.
2285
- const h = this.effectiveHeight - (this._headerRowH * this.headerDepth) - this._filterRowH - (this.hasFooter ? this._footerRowH : 0)
2287
+ // Fixed/auto height: flex: '1 1 auto' with minHeight & height pinned to
2288
+ // the minimum content height. Setting minHeight prevents subpixel rounding
2289
+ // from ever landing 1px short (avoiding phantom vertical scrollbars on
2290
+ // single-row auto-height grids), while flex-grow: 1 allows the body area to
2291
+ // expand when the wrapper/shell provides additional vertical space (e.g.
2292
+ // on mobile or responsive layouts).
2293
+ const baseH = this.effectiveHeight || 0
2294
+ const h = Math.max(0, baseH - (this._headerRowH * this.headerDepth) - this._filterRowH - (this.hasFooter ? this._footerRowH : 0))
2286
2295
  return {
2287
2296
  display: 'flex',
2288
2297
  flexDirection: 'row',
2289
- flex: '0 0 auto',
2290
- height: Math.max(h, 0) + 'px',
2298
+ flex: '1 1 auto',
2299
+ minHeight: h + 'px',
2300
+ height: h + 'px',
2291
2301
  position: 'relative'
2292
2302
  }
2293
2303
  },
@@ -2403,6 +2413,7 @@ const ExcelGridComponent = {
2403
2413
  flexShrink: 0,
2404
2414
  position: 'sticky',
2405
2415
  bottom: 0,
2416
+ marginTop: 'auto',
2406
2417
  zIndex: 30,
2407
2418
  background: 'var(--eg-color-footer-bg, var(--eg-color-footer-bg-default))',
2408
2419
  // box-shadow (not a real border, like .eg-header-area's own
@@ -2924,25 +2935,20 @@ const ExcelGridComponent = {
2924
2935
  // =========================================================
2925
2936
  // VIRTUAL SCROLL
2926
2937
  // =========================================================
2927
- // In fullscreen, .eg-scroll-body's real height comes from flexbox filling
2928
- // the viewport (which can be far taller than the `height` prop the host
2929
- // originally passed for the fixed-size layout) — measure it directly
2930
- // instead of trusting `height`, otherwise virtual scroll only ever
2931
- // renders enough rows for the old fixed size, leaving the rest of the
2932
- // (visually stretched) container blank.
2933
2938
  _containerH() {
2934
- if (this.isFullscreen && this.$refs.scrollBody) return this.$refs.scrollBody.clientHeight
2939
+ if ((this.isFullscreen || this.height == null) && this.$refs.scrollBody && this.$refs.scrollBody.clientHeight > 0) {
2940
+ return this.$refs.scrollBody.clientHeight
2941
+ }
2935
2942
  const footerH = this.hasFooter ? this._footerRowH : 0
2936
- return this.effectiveHeight - (this._headerRowH * this.headerDepth) - this._filterRowH - footerH
2943
+ const baseH = this.effectiveHeight || 0
2944
+ return Math.max(0, baseH - (this._headerRowH * this.headerDepth) - this._filterRowH - footerH)
2937
2945
  },
2938
2946
 
2939
- // Same fullscreen-aware measurement as _containerH(), but mirrors PageUp/
2940
- // PageDown's pre-existing (footer-agnostic) row-span formula exactly for
2941
- // the non-fullscreen case, so normal-mode behavior is unchanged.
2947
+ // Same height measurement as _containerH() for accurate PageUp/PageDown paging.
2942
2948
  _pageRowSpan() {
2943
- const h = this.isFullscreen && this.$refs.scrollBody
2949
+ const h = (this.isFullscreen || this.height == null) && this.$refs.scrollBody && this.$refs.scrollBody.clientHeight > 0
2944
2950
  ? this.$refs.scrollBody.clientHeight
2945
- : (this.effectiveHeight - this._headerRowH * this.headerDepth - this._filterRowH)
2951
+ : ((this.effectiveHeight || 0) - this._headerRowH * this.headerDepth - this._filterRowH)
2946
2952
  return Math.floor(h / this._rowH)
2947
2953
  },
2948
2954
 
@@ -3037,6 +3043,8 @@ const ExcelGridComponent = {
3037
3043
  }
3038
3044
  const sbw = el.offsetWidth - el.clientWidth
3039
3045
  if (sbw >= 0 && sbw !== this.vScrollbarW) this.vScrollbarW = sbw
3046
+ const sbh = el.offsetHeight - el.clientHeight
3047
+ if (sbh >= 0 && sbh !== this.hScrollbarH) this.hScrollbarH = sbh
3040
3048
  // Shell border total (see naturalGridWidth) — offsetWidth-clientWidth
3041
3049
  // is exactly the horizontal borders here (the shell itself never scrolls).
3042
3050
  const shell = this.$el
@@ -3044,9 +3052,8 @@ const ExcelGridComponent = {
3044
3052
  const bw = shell.offsetWidth - shell.clientWidth
3045
3053
  if (bw >= 0 && bw !== this.shellBorderW) this.shellBorderW = bw
3046
3054
  }
3047
- // Window resize while fullscreen changes the real available row-viewport
3055
+ // Window resize while fullscreen or auto-height changes the real available row-viewport
3048
3056
  // height too (see _containerH()) — recompute which rows are rendered.
3049
- // Same for auto-height (height prop omitted): the 70vh cap just moved.
3050
3057
  if (this.isFullscreen || this.height == null) this.updateVirtualScroll()
3051
3058
  },
3052
3059
 
@@ -8353,28 +8360,31 @@ export default ExcelGridComponent
8353
8360
  position: fixed;
8354
8361
  background: var(--eg-color-menu-bg, var(--eg-color-cell-bg, var(--eg-color-cell-bg-default)));
8355
8362
  border: 1px solid var(--eg-color-border, var(--eg-color-border-default));
8356
- border-top: 3px solid var(--eg-color-accent, var(--eg-color-accent-default));
8357
8363
  border-radius: var(--eg-radius, var(--eg-radius-default));
8358
8364
  box-shadow: var(--eg-shadow-dropdown, var(--eg-shadow-dropdown-default));
8359
8365
  z-index: 9999;
8360
- min-width: 160px;
8366
+ min-width: 170px;
8361
8367
  font-size: var(--eg-font-size, var(--eg-font-size-default));
8362
8368
  padding: 4px 0;
8363
8369
  color: var(--eg-color-text, var(--eg-color-text-default));
8370
+ user-select: none;
8371
+ box-sizing: border-box;
8364
8372
  }
8365
8373
 
8366
8374
  /* Only 3 short items ("A → Z" / "Z → A" / "Clear sort") — the generic
8367
- 160px context-menu min-width looks oversized next to it, especially
8375
+ context-menu min-width looks oversized next to it, especially
8368
8376
  at size="small" where rows/text are much smaller. */
8369
8377
  .eg-sort-menu {
8370
- min-width: 110px;
8378
+ min-width: 120px;
8371
8379
  }
8372
8380
 
8373
8381
  .eg-context-item {
8374
- padding: 6px 16px;
8382
+ padding: 6px 14px;
8375
8383
  cursor: pointer;
8376
8384
  position: relative;
8377
8385
  white-space: nowrap;
8386
+ box-sizing: border-box;
8387
+ transition: background-color 0.12s ease, color 0.12s ease;
8378
8388
  }
8379
8389
 
8380
8390
  .eg-context-item:hover {
@@ -8391,9 +8401,14 @@ export default ExcelGridComponent
8391
8401
  .eg-context-item-active::before {
8392
8402
  content: '✓';
8393
8403
  position: absolute;
8394
- left: 4px;
8404
+ left: 6px;
8395
8405
  top: 50%;
8396
8406
  transform: translateY(-50%);
8407
+ font-weight: bold;
8408
+ }
8409
+
8410
+ .eg-sort-menu .eg-context-item {
8411
+ padding-left: 22px;
8397
8412
  }
8398
8413
 
8399
8414
  .eg-context-separator {
@@ -8402,26 +8417,367 @@ export default ExcelGridComponent
8402
8417
  margin: 4px 0;
8403
8418
  }
8404
8419
 
8405
- .eg-context-submenu-parent::after { content: ' ▶'; float: right; }
8420
+ .eg-context-submenu-parent {
8421
+ display: flex;
8422
+ align-items: center;
8423
+ justify-content: space-between;
8424
+ }
8425
+ .eg-context-submenu-parent::after {
8426
+ content: '›';
8427
+ font-size: 15px;
8428
+ line-height: 1;
8429
+ font-weight: 600;
8430
+ margin-left: 12px;
8431
+ color: var(--eg-color-text-secondary, var(--eg-color-text-secondary-default));
8432
+ }
8406
8433
 
8407
8434
  .eg-context-submenu {
8408
8435
  display: none;
8409
8436
  position: absolute;
8410
- left: 100%;
8437
+ left: calc(100% + 2px);
8411
8438
  top: -4px;
8412
8439
  background: var(--eg-color-menu-bg, var(--eg-color-cell-bg, var(--eg-color-cell-bg-default)));
8413
8440
  border: 1px solid var(--eg-color-border, var(--eg-color-border-default));
8414
- border-top: 3px solid var(--eg-color-accent, var(--eg-color-accent-default));
8415
8441
  border-radius: var(--eg-radius, var(--eg-radius-default));
8416
8442
  box-shadow: var(--eg-shadow-dropdown, var(--eg-shadow-dropdown-default));
8417
8443
  min-width: 160px;
8418
8444
  padding: 4px 0;
8419
8445
  z-index: 10000;
8420
8446
  color: var(--eg-color-text, var(--eg-color-text-default));
8447
+ box-sizing: border-box;
8421
8448
  }
8422
8449
 
8423
8450
  .eg-context-submenu-parent:hover .eg-context-submenu { display: block; }
8424
8451
 
8452
+ /* ── Theme-specific context menu & actions dropdown styling ──────── */
8453
+
8454
+ /* Shopify Polaris (ActionList inside Popover) */
8455
+ .eg-theme-polaris .eg-context-menu,
8456
+ .eg-theme-polaris .eg-context-submenu {
8457
+ background: #FFFFFF;
8458
+ border: 1px solid #D2D5D8;
8459
+ border-radius: 8px;
8460
+ box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09), 0 1px 3px rgba(0, 0, 0, 0.05);
8461
+ padding: 4px;
8462
+ font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
8463
+ color: #202223;
8464
+ }
8465
+ .eg-theme-polaris .eg-context-item {
8466
+ margin: 1px 0;
8467
+ padding: 6px 10px;
8468
+ border-radius: 6px;
8469
+ font-size: 13px;
8470
+ font-weight: 450;
8471
+ color: #202223;
8472
+ }
8473
+ .eg-theme-polaris .eg-context-item:hover {
8474
+ background: #F1F2F4;
8475
+ color: #202223;
8476
+ }
8477
+ .eg-theme-polaris .eg-context-item-active {
8478
+ color: #008060;
8479
+ font-weight: 600;
8480
+ }
8481
+ .eg-theme-polaris .eg-context-separator {
8482
+ height: 1px;
8483
+ background: #E1E3E5;
8484
+ margin: 4px 2px;
8485
+ }
8486
+ .eg-theme-polaris .eg-context-submenu-parent::after {
8487
+ color: #6D7175;
8488
+ }
8489
+ .eg-theme-polaris .eg-sort-menu .eg-context-item {
8490
+ padding-left: 22px;
8491
+ }
8492
+
8493
+ /* Ant Design 5 (Clean 8px rounded popup with subtle hover) */
8494
+ .eg-theme-antd .eg-context-menu,
8495
+ .eg-theme-antd .eg-context-submenu {
8496
+ background: #FFFFFF;
8497
+ border: 1px solid rgba(5, 5, 5, 0.06);
8498
+ border-radius: 8px;
8499
+ box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
8500
+ padding: 4px;
8501
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
8502
+ color: rgba(0, 0, 0, 0.88);
8503
+ }
8504
+ .eg-theme-antd .eg-context-item {
8505
+ margin: 1px 0;
8506
+ padding: 5px 12px;
8507
+ border-radius: 4px;
8508
+ font-size: 13px;
8509
+ color: rgba(0, 0, 0, 0.88);
8510
+ }
8511
+ .eg-theme-antd .eg-context-item:hover {
8512
+ background: rgba(0, 0, 0, 0.04);
8513
+ color: rgba(0, 0, 0, 0.88);
8514
+ }
8515
+ .eg-theme-antd .eg-context-item-active {
8516
+ color: #1677FF;
8517
+ font-weight: 600;
8518
+ }
8519
+ .eg-theme-antd .eg-context-separator {
8520
+ height: 1px;
8521
+ background: rgba(5, 5, 5, 0.06);
8522
+ margin: 4px 0;
8523
+ }
8524
+ .eg-theme-antd .eg-context-submenu-parent::after {
8525
+ color: rgba(0, 0, 0, 0.45);
8526
+ }
8527
+ .eg-theme-antd .eg-sort-menu .eg-context-item {
8528
+ padding-left: 22px;
8529
+ }
8530
+
8531
+ /* Material Design 3 (Elevated surface with blue accents) */
8532
+ .eg-theme-material .eg-context-menu,
8533
+ .eg-theme-material .eg-context-submenu {
8534
+ background: #FFFFFF;
8535
+ border: 1px solid #BBDEFB;
8536
+ border-radius: 8px;
8537
+ box-shadow: 0 4px 16px rgba(21, 101, 192, 0.15), 0 1px 4px rgba(21, 101, 192, 0.10);
8538
+ padding: 6px 0;
8539
+ font-family: 'Roboto', 'Google Sans', Arial, sans-serif;
8540
+ color: #1E3A5F;
8541
+ }
8542
+ .eg-theme-material .eg-context-item {
8543
+ margin: 0;
8544
+ padding: 7px 16px;
8545
+ border-radius: 0;
8546
+ font-size: 13px;
8547
+ color: #1E3A5F;
8548
+ }
8549
+ .eg-theme-material .eg-context-item:hover {
8550
+ background: #DBEAFE;
8551
+ color: #1565C0;
8552
+ }
8553
+ .eg-theme-material .eg-context-item-active {
8554
+ color: #1565C0;
8555
+ font-weight: 600;
8556
+ }
8557
+ .eg-theme-material .eg-context-separator {
8558
+ height: 1px;
8559
+ background: #E2EDF8;
8560
+ margin: 4px 0;
8561
+ }
8562
+ .eg-theme-material .eg-context-submenu-parent::after {
8563
+ color: #4B7BA8;
8564
+ }
8565
+ .eg-theme-material .eg-sort-menu .eg-context-item {
8566
+ padding-left: 22px;
8567
+ }
8568
+
8569
+ /* Fluent UI / Office 365 (Warm gray, subtle hover) */
8570
+ .eg-theme-fluent .eg-context-menu,
8571
+ .eg-theme-fluent .eg-context-submenu {
8572
+ background: #FFFFFF;
8573
+ border: 1px solid #D2D0CE;
8574
+ border-radius: 4px;
8575
+ box-shadow: 0 6.4px 14.4px 0 rgba(0, 0, 0, 0.13), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.11);
8576
+ padding: 4px 0;
8577
+ font-family: 'Segoe UI', Calibri, Arial, sans-serif;
8578
+ color: #323130;
8579
+ }
8580
+ .eg-theme-fluent .eg-context-item {
8581
+ margin: 0;
8582
+ padding: 6px 14px;
8583
+ border-radius: 0;
8584
+ font-size: 13px;
8585
+ color: #323130;
8586
+ }
8587
+ .eg-theme-fluent .eg-context-item:hover {
8588
+ background: #F3F2F1;
8589
+ color: #201F1E;
8590
+ }
8591
+ .eg-theme-fluent .eg-context-item-active {
8592
+ color: #0078D4;
8593
+ font-weight: 600;
8594
+ }
8595
+ .eg-theme-fluent .eg-context-separator {
8596
+ height: 1px;
8597
+ background: #EDEBE9;
8598
+ margin: 4px 0;
8599
+ }
8600
+ .eg-theme-fluent .eg-context-submenu-parent::after {
8601
+ color: #605E5C;
8602
+ }
8603
+ .eg-theme-fluent .eg-sort-menu .eg-context-item {
8604
+ padding-left: 22px;
8605
+ }
8606
+
8607
+ /* IBM Carbon (Industrial 0px radius, left-border hover indicator) */
8608
+ .eg-theme-carbon .eg-context-menu,
8609
+ .eg-theme-carbon .eg-context-submenu {
8610
+ background: #FFFFFF;
8611
+ border: 1px solid #C6C6C6;
8612
+ border-radius: 0px;
8613
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
8614
+ padding: 0;
8615
+ font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
8616
+ color: #161616;
8617
+ }
8618
+ .eg-theme-carbon .eg-context-item {
8619
+ margin: 0;
8620
+ padding: 8px 16px;
8621
+ border-radius: 0;
8622
+ font-size: 14px;
8623
+ color: #161616;
8624
+ border-left: 3px solid transparent;
8625
+ }
8626
+ .eg-theme-carbon .eg-context-item:hover {
8627
+ background: #E8E8E8;
8628
+ color: #161616;
8629
+ border-left-color: #0F62FE;
8630
+ }
8631
+ .eg-theme-carbon .eg-context-item-active {
8632
+ color: #0F62FE;
8633
+ font-weight: 600;
8634
+ }
8635
+ .eg-theme-carbon .eg-context-separator {
8636
+ height: 1px;
8637
+ background: #E0E0E0;
8638
+ margin: 0;
8639
+ }
8640
+ .eg-theme-carbon .eg-context-submenu-parent::after {
8641
+ color: #525252;
8642
+ }
8643
+ .eg-theme-carbon .eg-sort-menu .eg-context-item {
8644
+ padding-left: 22px;
8645
+ }
8646
+
8647
+ /* Excel 365 (Clean spreadsheet classic style) */
8648
+ .eg-theme-excel .eg-context-menu,
8649
+ .eg-theme-excel .eg-context-submenu {
8650
+ background: #FFFFFF;
8651
+ border: 1px solid #D9D9D9;
8652
+ border-radius: 4px;
8653
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
8654
+ padding: 4px 0;
8655
+ color: #000000;
8656
+ }
8657
+ .eg-theme-excel .eg-context-item {
8658
+ margin: 0;
8659
+ padding: 6px 16px;
8660
+ border-radius: 0;
8661
+ font-size: 13px;
8662
+ color: #000000;
8663
+ }
8664
+ .eg-theme-excel .eg-context-item:hover {
8665
+ background: #E2EFDA;
8666
+ color: #185A30;
8667
+ }
8668
+ .eg-theme-excel .eg-context-item-active {
8669
+ color: #217346;
8670
+ font-weight: 600;
8671
+ }
8672
+ .eg-theme-excel .eg-context-separator {
8673
+ height: 1px;
8674
+ background: #E0E0E0;
8675
+ margin: 4px 0;
8676
+ }
8677
+
8678
+ /* Dark Mode (unified dark container & theme dark accents) */
8679
+ .eg-shell.eg-dark .eg-context-menu,
8680
+ .eg-shell.eg-dark .eg-context-submenu {
8681
+ background: #202123;
8682
+ border-color: #383838;
8683
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
8684
+ color: #D4D4D4;
8685
+ }
8686
+ .eg-shell.eg-dark .eg-context-item {
8687
+ color: #D4D4D4;
8688
+ }
8689
+ .eg-shell.eg-dark .eg-context-item:hover {
8690
+ background: #2D2F31;
8691
+ color: #FFFFFF;
8692
+ }
8693
+ .eg-shell.eg-dark .eg-context-separator {
8694
+ background: #383838;
8695
+ }
8696
+ .eg-shell.eg-dark .eg-context-submenu-parent::after {
8697
+ color: #A0A0A0;
8698
+ }
8699
+
8700
+ .eg-shell.eg-theme-polaris.eg-dark .eg-context-menu,
8701
+ .eg-shell.eg-theme-polaris.eg-dark .eg-context-submenu {
8702
+ background: #202123;
8703
+ border-color: #383D40;
8704
+ }
8705
+ .eg-shell.eg-theme-polaris.eg-dark .eg-context-item:hover {
8706
+ background: #2A2D30;
8707
+ color: #FFFFFF;
8708
+ }
8709
+ .eg-shell.eg-theme-polaris.eg-dark .eg-context-item-active {
8710
+ color: #00A67E;
8711
+ }
8712
+ .eg-shell.eg-theme-polaris.eg-dark .eg-context-separator {
8713
+ background: #383D40;
8714
+ }
8715
+
8716
+ .eg-shell.eg-theme-antd.eg-dark .eg-context-menu,
8717
+ .eg-shell.eg-theme-antd.eg-dark .eg-context-submenu {
8718
+ background: #1F1F1F;
8719
+ border-color: #303030;
8720
+ }
8721
+ .eg-shell.eg-theme-antd.eg-dark .eg-context-item:hover {
8722
+ background: rgba(255, 255, 255, 0.08);
8723
+ color: #FFFFFF;
8724
+ }
8725
+ .eg-shell.eg-theme-antd.eg-dark .eg-context-item-active {
8726
+ color: #1668DC;
8727
+ }
8728
+ .eg-shell.eg-theme-antd.eg-dark .eg-context-separator {
8729
+ background: #303030;
8730
+ }
8731
+
8732
+ .eg-shell.eg-theme-material.eg-dark .eg-context-menu,
8733
+ .eg-shell.eg-theme-material.eg-dark .eg-context-submenu {
8734
+ background: #19222D;
8735
+ border-color: #2A3A4D;
8736
+ }
8737
+ .eg-shell.eg-theme-material.eg-dark .eg-context-item:hover {
8738
+ background: #243447;
8739
+ color: #90CAF9;
8740
+ }
8741
+ .eg-shell.eg-theme-material.eg-dark .eg-context-item-active {
8742
+ color: #90CAF9;
8743
+ }
8744
+ .eg-shell.eg-theme-material.eg-dark .eg-context-separator {
8745
+ background: #2A3A4D;
8746
+ }
8747
+
8748
+ .eg-shell.eg-theme-fluent.eg-dark .eg-context-menu,
8749
+ .eg-shell.eg-theme-fluent.eg-dark .eg-context-submenu {
8750
+ background: #252423;
8751
+ border-color: #3B3A39;
8752
+ }
8753
+ .eg-shell.eg-theme-fluent.eg-dark .eg-context-item:hover {
8754
+ background: #323130;
8755
+ color: #FFFFFF;
8756
+ }
8757
+ .eg-shell.eg-theme-fluent.eg-dark .eg-context-item-active {
8758
+ color: #2886DE;
8759
+ }
8760
+ .eg-shell.eg-theme-fluent.eg-dark .eg-context-separator {
8761
+ background: #3B3A39;
8762
+ }
8763
+
8764
+ .eg-shell.eg-theme-carbon.eg-dark .eg-context-menu,
8765
+ .eg-shell.eg-theme-carbon.eg-dark .eg-context-submenu {
8766
+ background: #262626;
8767
+ border-color: #393939;
8768
+ }
8769
+ .eg-shell.eg-theme-carbon.eg-dark .eg-context-item:hover {
8770
+ background: #353535;
8771
+ color: #FFFFFF;
8772
+ border-left-color: #4589FF;
8773
+ }
8774
+ .eg-shell.eg-theme-carbon.eg-dark .eg-context-item-active {
8775
+ color: #4589FF;
8776
+ }
8777
+ .eg-shell.eg-theme-carbon.eg-dark .eg-context-separator {
8778
+ background: #393939;
8779
+ }
8780
+
8425
8781
  /* devMode — column/row info modal */
8426
8782
  .eg-info-modal-backdrop {
8427
8783
  position: fixed;
@@ -9156,6 +9512,23 @@ export default ExcelGridComponent
9156
9512
  font-size: 14px;
9157
9513
  padding: 8px 14px;
9158
9514
  }
9515
+ /* Theme enhancements for EgSelect / EgTreeSelect dropdowns */
9516
+ .eg-theme-polaris .eg-select-dropdown {
9517
+ padding: 4px;
9518
+ }
9519
+ .eg-theme-polaris .eg-select-option {
9520
+ margin: 1px 0;
9521
+ border-radius: 6px;
9522
+ padding: 6px 10px;
9523
+ }
9524
+ .eg-theme-antd .eg-select-dropdown {
9525
+ padding: 4px;
9526
+ }
9527
+ .eg-theme-antd .eg-select-option {
9528
+ margin: 1px 0;
9529
+ border-radius: 4px;
9530
+ padding: 5px 12px;
9531
+ }
9159
9532
  .eg-select-dot {
9160
9533
  width: 9px;
9161
9534
  height: 9px;