@mintplayer/web-components 3.0.0 → 3.1.0

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.
@@ -1 +1 @@
1
- export { a as DEFAULT_DATATABLE_LABELS, t as MpDatatable, r as computeNextSort, i as datatableLightStyles, n as sortRows } from "../chunks/datatable-CrK1ZNq-.mjs";
1
+ export { a as DEFAULT_DATATABLE_LABELS, t as MpDatatable, r as computeNextSort, i as datatableLightStyles, n as sortRows } from "../chunks/datatable-FVQ8MQyR.mjs";
@@ -256,6 +256,17 @@ export declare class MpDatatable extends LitElement {
256
256
  /** Enable scroll-position-driven virtualization. Rows outside the viewport are not rendered. */
257
257
  get virtualScroll(): boolean;
258
258
  set virtualScroll(value: boolean);
259
+ /**
260
+ * Fit a sized parent (#442). The element takes the parent's height and
261
+ * becomes the one scroll container for both axes: the header rows stick to
262
+ * its top, the footer to its bottom, and only the rows scroll in between.
263
+ * Horizontally the whole table, footer included, scrolls as one. Needs a
264
+ * parent with a definite height; without one it behaves like the default.
265
+ * Reflected as the `fill` attribute, which the stylesheet keys on.
266
+ */
267
+ get fill(): boolean;
268
+ set fill(value: boolean);
269
+ private _fill;
259
270
  /** Approximate row height in px (used by virtual scroll). Default `40`. */
260
271
  get itemSize(): number;
261
272
  set itemSize(value: number);
@@ -458,6 +469,15 @@ export declare class MpDatatable extends LitElement {
458
469
  set resizableColumns(value: boolean);
459
470
  connectedCallback(): void;
460
471
  protected firstUpdated(): void;
472
+ /**
473
+ * Listen on whichever element scrolls the rows: `.datatable-scroll` by
474
+ * default, the host itself in fill mode (there `.datatable-scroll` gives up
475
+ * its scroll box so `position: sticky` has a single reference for the header
476
+ * and the footer). Re-run after every render, so toggling `fill` moves the
477
+ * listener and the observer; a no-op while the scroller is unchanged.
478
+ */
479
+ private bindScroller;
480
+ private unbindScroller;
461
481
  protected willUpdate(changedProperties: Map<string, unknown>): void;
462
482
  protected updated(changedProperties: Map<string, unknown>): void;
463
483
  /**
@@ -1,6 +1,6 @@
1
1
  import { s as e, v as t, y as n } from "../chunks/a11y-C6aX-lsZ.mjs";
2
2
  import { adoptLightStyles as r } from "../light-dom/index.mjs";
3
- import "../chunks/datatable-CrK1ZNq-.mjs";
3
+ import "../chunks/datatable-FVQ8MQyR.mjs";
4
4
  import "../chunks/splitter-ByLyrd5H.mjs";
5
5
  import "../chunks/treeview-BuznGbcj.mjs";
6
6
  import { LitElement as i, html as a, nothing as o, unsafeCSS as s } from "lit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/web-components",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Framework-agnostic Lit web components for the @mintplayer/bootstrap design system. Consumed by @mintplayer/ng-bootstrap, @mintplayer/react-bootstrap, and @mintplayer/vue-bootstrap.",
5
5
  "license": "MIT",
6
6
  "repository": {