@svgrid/grid 2.2.17 → 2.2.19
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/SvGrid.css +17 -5
- package/dist/cdn/{GridMenus-0AK9O7qG.js → GridMenus-GfCAHgkZ.js} +1 -1
- package/dist/cdn/{GridMenus-BjUoCXoD.js → GridMenus-GiVNSeDU.js} +1 -1
- package/dist/cdn/{src-BwnUVj3T.js → src-DysW9qbk.js} +2592 -2371
- package/dist/cdn/{src-BLhdLmoN.js → src-bYfr_7aR.js} +2647 -2426
- package/dist/cdn/svgrid.js +2 -2
- package/dist/cdn/svgrid.svelte-external.js +2 -2
- package/dist/themes/index.d.ts +24 -1
- package/dist/themes/index.js +38 -3
- package/package.json +3 -2
- package/src/SvGrid.css +17 -5
- package/src/themes/index.ts +59 -3
- package/themes/ember.css +71 -0
package/dist/SvGrid.css
CHANGED
|
@@ -394,8 +394,10 @@
|
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
/* Pinned columns read as "frozen" via three layered cues:
|
|
397
|
-
1. A distinct
|
|
398
|
-
pinned strip is visible even before you scroll.
|
|
397
|
+
1. A distinct fill (slightly stronger than the header) so the
|
|
398
|
+
pinned strip is visible even before you scroll. Themes with a
|
|
399
|
+
saturated accent set --sg-pinned-bg / --sg-pinned-header-bg to a
|
|
400
|
+
neutral instead of taking the accent mix below.
|
|
399
401
|
2. A solid 1px divider on the inside edge (toward the scrollable
|
|
400
402
|
middle) and a soft drop shadow extending into the scroll area.
|
|
401
403
|
3. A thin accent stripe on the outermost edge that turns on when
|
|
@@ -407,14 +409,14 @@
|
|
|
407
409
|
background: var(--sg-pinned-bg, color-mix(in oklab, var(--sg-header-bg, #f1f5f9) 92%, var(--sg-accent, #2563eb) 8%));
|
|
408
410
|
box-shadow:
|
|
409
411
|
inset -1px 0 0 var(--sg-pinned-divider, var(--sg-border, #cbd5e1)),
|
|
410
|
-
8px 0 12px -6px rgba(15, 23, 42, 0.22);
|
|
412
|
+
8px 0 12px -6px var(--sg-pinned-shadow-color, rgba(15, 23, 42, 0.22));
|
|
411
413
|
}
|
|
412
414
|
.sv-grid-cell[data-pinned="right"],
|
|
413
415
|
.sv-grid-column[data-pinned="right"] {
|
|
414
416
|
background: var(--sg-pinned-bg, color-mix(in oklab, var(--sg-header-bg, #f1f5f9) 92%, var(--sg-accent, #2563eb) 8%));
|
|
415
417
|
box-shadow:
|
|
416
418
|
inset 1px 0 0 var(--sg-pinned-divider, var(--sg-border, #cbd5e1)),
|
|
417
|
-
-8px 0 12px -6px rgba(15, 23, 42, 0.22);
|
|
419
|
+
-8px 0 12px -6px var(--sg-pinned-shadow-color, rgba(15, 23, 42, 0.22));
|
|
418
420
|
}
|
|
419
421
|
/* Header row pinned cells get a slightly darker variant + bolder font
|
|
420
422
|
so the frozen header itself reads as part of the grid chrome. */
|
|
@@ -586,6 +588,10 @@
|
|
|
586
588
|
font-size: var(--sg-header-size, inherit);
|
|
587
589
|
text-transform: var(--sg-header-transform, none);
|
|
588
590
|
letter-spacing: var(--sg-header-tracking, normal);
|
|
591
|
+
/* Themes that keep the header close to the page ground lean on this line
|
|
592
|
+
rather than a fill to separate header from body. Scoped to the leaf header
|
|
593
|
+
row so strengthening it doesn't thicken every cell border. */
|
|
594
|
+
border-bottom-color: var(--sg-header-border, var(--sg-border, #e2e8f0));
|
|
589
595
|
}
|
|
590
596
|
|
|
591
597
|
/* Header drag-to-reorder. The `draggable` attribute is only set
|
|
@@ -815,7 +821,8 @@
|
|
|
815
821
|
inset-inline-end: 0;
|
|
816
822
|
width: 16px;
|
|
817
823
|
background: var(--sg-header-bg, #f5f7fb);
|
|
818
|
-
|
|
824
|
+
/* Continues the leaf-header underline across the scrollbar gutter. */
|
|
825
|
+
border-bottom: 1px solid var(--sg-header-border, rgba(15, 23, 42, 0.08));
|
|
819
826
|
/* Above pinned header cells (z-index 30) so the gap above the
|
|
820
827
|
vertical scrollbar stays clean over a frozen column. */
|
|
821
828
|
z-index: 41;
|
|
@@ -1625,6 +1632,11 @@ select.sv-grid-fr-editor {
|
|
|
1625
1632
|
background: transparent;
|
|
1626
1633
|
font: inherit;
|
|
1627
1634
|
color: inherit;
|
|
1635
|
+
/* Form controls get `text-transform: none` from the UA sheet, which the
|
|
1636
|
+
`font` shorthand doesn't undo. Without this the label ignores
|
|
1637
|
+
--sg-header-transform on every sortable column. */
|
|
1638
|
+
text-transform: inherit;
|
|
1639
|
+
letter-spacing: inherit;
|
|
1628
1640
|
text-align: left;
|
|
1629
1641
|
cursor: pointer;
|
|
1630
1642
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { eo as e, to as t } from "./src-
|
|
1
|
+
import { eo as e, to as t } from "./src-DysW9qbk.js";
|
|
2
2
|
import { E as n, F as r, G as i, H as a, I as o, L as s, N as c, Q as l, V as u, X as d, Y as f, Z as p, _ as m, d as h, et as g, f as _, ft as v, g as y, h as b, j as x, k as S, lt as C, m as w, mt as T, nt as E, o as D, pt as O, st as k, t as A, tt as j, u as M, ut as N, v as P } from "./disclose-version-DoD9AFD_.js";
|
|
3
3
|
//#region src/GridMenus.svelte
|
|
4
4
|
var ee = s("<option> </option>"), te = s("<option></option>"), ne = s("<datalist></datalist>"), re = s("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), ie = s("<option> </option>"), ae = s("<input class=\"sv-grid-menu-condition-value\" placeholder=\"To\"/>"), oe = s("<input class=\"sv-grid-menu-condition-value\"/> <!>", 1), se = s("<div class=\"sv-grid-menu-join\" role=\"radiogroup\" aria-label=\"Combine conditions\"><button type=\"button\">AND</button> <button type=\"button\">OR</button> <button type=\"button\" class=\"sv-grid-menu-join-x\" title=\"Remove second condition\" aria-label=\"Remove second condition\">×</button></div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Second filter condition\"></select> <!>", 1), ce = s("<button type=\"button\" class=\"sv-grid-menu-add-cond\">+ Add condition</button>"), le = s("<input class=\"sv-grid-menu-condition-value\"/> <!> <!> <!>", 1), ue = s("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), de = s("<div class=\"sv-grid-facet-empty\">No values</div>"), fe = s("<div class=\"sv-grid-facet-note\"> </div>"), pe = s("<div class=\"sv-grid-menu-filter\"><div class=\"sv-grid-menu-filter-head\"><span class=\"sv-grid-header-icon\"><!></span> Filter\n condition</div> <select class=\"sv-grid-menu-operator-select\" aria-label=\"Filter condition\"></select> <!> <div class=\"sv-grid-menu-sep\"></div> <div class=\"sv-grid-menu-filter-head\">Values</div> <input class=\"sv-grid-menu-search\" placeholder=\"Search values...\"/> <label class=\"sv-grid-facet sv-grid-facet-all\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\">(Select all)</span></label> <div class=\"sv-grid-facet-list\"></div> <!> <div class=\"sv-grid-menu-actions\"><button type=\"button\" class=\"sv-grid-menu-btn\">Clear filter</button> <button type=\"button\" class=\"sv-grid-menu-btn sv-grid-menu-btn-primary\">Done</button></div></div>"), me = s("<div role=\"tooltip\"> </div>"), he = s("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div>"), ge = s("<button type=\"button\" role=\"tab\">Filter</button>"), F = s("<div class=\"sv-grid-menu-tabs\" role=\"tablist\"><button type=\"button\" role=\"tab\">General</button> <!> <button type=\"button\" role=\"tab\">Columns</button></div>"), I = s("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), L = s("<div class=\"sv-grid-menu-filter-head\">Visible columns</div> <div class=\"sv-grid-facet-list\"></div>", 1), R = s("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n ascending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Sort\n descending</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove sort</button>", 1), _e = s("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to left</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Pin to right</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Unpin column</button>", 1), ve = s("<div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Group\n by this column</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Remove grouping</button>", 1), z = s("<button type=\"button\" role=\"menuitem\" aria-haspopup=\"menu\"><span class=\"sv-grid-header-icon\"><!></span> Choose columns <span class=\"sv-grid-header-icon sv-grid-menu-item-chevron\"><!></span></button>"), B = s("<!> <!> <div class=\"sv-grid-menu-sep\"></div> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n this column</button> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Autosize\n all columns</button> <!> <div class=\"sv-grid-menu-sep\"></div> <!> <button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"><span class=\"sv-grid-header-icon\"><!></span> Reset columns</button>", 1), ye = s("<div class=\"sv-grid-menu sv-grid-column-menu\" role=\"menu\"><!> <!></div>"), be = s("<div class=\"sv-grid-menu sv-grid-filter-menu\" role=\"menu\"><!></div>"), xe = s("<label class=\"sv-grid-facet\"><input type=\"checkbox\"/> <span class=\"sv-grid-facet-label\"> </span></label>"), Se = s("<div class=\"sv-grid-menu sv-grid-choose-columns-menu\" role=\"menu\"><div class=\"sv-grid-menu-filter-head\">Visible columns</div> <div class=\"sv-grid-facet-list\"></div></div>"), Ce = s("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitemradio\"><span class=\"sv-grid-header-icon\"><!></span> </button>"), we = s("<div class=\"sv-grid-menu sv-grid-operator-menu\" role=\"menu\"></div>"), Te = s("<button type=\"button\" class=\"sv-grid-menu-item sv-grid-in-suggest-item\" role=\"option\"><span class=\"sv-grid-in-suggest-check\" aria-hidden=\"true\"> </span> <span class=\"sv-grid-in-suggest-label\"> </span></button>"), Ee = s("<div class=\"sv-grid-facet-empty\">No values</div>"), De = s("<div class=\"sv-grid-menu sv-grid-in-suggest\" role=\"listbox\" aria-multiselectable=\"true\" aria-label=\"Filter values\"></div>"), Oe = s("<div class=\"sv-grid-menu-sep\"></div>"), ke = s("<button type=\"button\" class=\"sv-grid-menu-item\" role=\"menuitem\"> </button>"), Ae = s("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-context-menu\" role=\"menu\"></div>", 1), je = s("<div class=\"sv-grid-menu-backdrop\" role=\"presentation\"></div> <div class=\"sv-grid-menu sv-grid-comment-editor\" role=\"dialog\" aria-label=\"Edit comment\"><textarea class=\"sv-grid-comment-textarea\" rows=\"3\" placeholder=\"Add a comment…\"></textarea> <div class=\"sv-grid-comment-actions\"><button type=\"button\" class=\"sv-grid-comment-remove\">Remove</button> <span class=\"sv-grid-comment-spacer\"></span> <button type=\"button\" class=\"sv-grid-comment-cancel\">Cancel</button> <button type=\"button\" class=\"sv-grid-comment-save\">Save</button></div></div>", 1), Me = s("<!> <!> <!> <!> <!> <!> <!> <!> <!>", 1);
|