@mintplayer/web-components 3.2.0 → 3.3.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 { t as DEFAULT_DATATABLE_LABELS, a as MpDatatable, n as cellText, r as computeNextSort, i as sortRows } from "../chunks/datatable-Ce-UT16z.mjs";
1
+ export { t as DEFAULT_DATATABLE_LABELS, a as MpDatatable, n as cellText, r as computeNextSort, i as sortRows } from "../chunks/datatable-DabWV3-q.mjs";
@@ -7,8 +7,9 @@ import { DatatableHeaderSlotArgs, DatatableCellSlotArgs, DatatableRowSlotArgs, D
7
7
  *
8
8
  * Columns are data (`DatatableColumnDef`). Slots: `header {column}` (a header label),
9
9
  * `cell {row, column, rowIndex}` (one cell) and `row {row, rowIndex, ctx}` (all of a
10
- * row's data cells) and `filter {column, ctx}` (the panel of a column with `filterMode: 'custom'`). Two-way: `sortColumns`, `page`, `perPage`, `selectedIds`, `expandedIds`.
11
- * An `aria-label` names the table.
10
+ * row's data cells) and `filter {column, ctx}` (the panel of a column with `filterMode: 'custom'`). Two-way: `sortColumns`, `page`, `perPage`, `selectedIds`, `expandedIds`, `filters`.
11
+ * An `aria-label` names the table. With `fetch`, filters are applied server-side; `stateKey` prefetches
12
+ * the first page during SSR and hands it to the client (#448).
12
13
  */
13
14
  export declare class MpDatatable extends LitElement {
14
15
  #private;
@@ -203,6 +204,20 @@ export declare class MpDatatable extends LitElement {
203
204
  distincts: {
204
205
  attribute: boolean;
205
206
  };
207
+ filters: {
208
+ attribute: boolean;
209
+ };
210
+ fetchParams: {
211
+ attribute: boolean;
212
+ };
213
+ stateKey: {
214
+ type: StringConstructor;
215
+ converter: {
216
+ fromAttribute: (value: string | null) => string | null;
217
+ toAttribute: (value: unknown) => string | null;
218
+ };
219
+ attribute: string;
220
+ };
206
221
  headerRenderer: {
207
222
  attribute: boolean;
208
223
  };
@@ -249,6 +264,9 @@ export declare class MpDatatable extends LitElement {
249
264
  resizableColumns: DatatableInputs['resizableColumns'];
250
265
  hrefFor: DatatableInputs['hrefFor'];
251
266
  distincts: DatatableInputs['distincts'];
267
+ filters: DatatableInputs['filters'];
268
+ fetchParams: DatatableInputs['fetchParams'];
269
+ stateKey: DatatableInputs['stateKey'];
252
270
  /** Renders the header slot, called per use; wins over slot="header" children. */
253
271
  headerRenderer: ((args: DatatableHeaderSlotArgs) => unknown) | null | undefined;
254
272
  /** Renders the cell slot, called per use; wins over slot="cell" children. */
@@ -1,3 +1,3 @@
1
1
  export * from './generated';
2
2
  export { DEFAULT_DATATABLE_LABELS, cellText, computeNextSort, sortRows } from '@mintplayer/ui-core/datatable';
3
- export type { ComparisonFilterChangeDetail, DatatableColumnDef, DatatableDistincts, DatatableFetch, DatatableFetchRequest, DatatableFetchResponse, DatatableHrefFor, DatatableHrefState, DatatableLabels, DatatableLoadErrorDetail, DatatableReloadOptions, DatatableSelectionMode, DistinctValue, DistinctValues, DistinctsRequest, FilterChangeDetail, FilterContext, FilterInputType, FilterMode, FilterOperator, FilterSelection, RowEventDetail, RowKey, RowRenderContext, SelectionChangeEventDetail, SortColumn, SortDirection, TreeIdKey, TreeRowExpandDetail, TreeSelectionStrategy, ValuesFilterChangeDetail, } from '@mintplayer/ui-core/datatable';
3
+ export type { DatatableFilter, DatatableColumnDef, DatatableDistincts, DatatableFetch, DatatableFetchRequest, DatatableFetchResponse, DatatableHrefFor, DatatableHrefState, DatatableLabels, DatatableLoadErrorDetail, DatatableReloadOptions, DatatableSelectionMode, DistinctValue, DistinctValues, DistinctsRequest, DatatableFilters, FilterContext, FilterInputType, FilterMode, FilterOperator, FilterSelection, RowEventDetail, RowKey, RowRenderContext, SelectionChangeEventDetail, SortColumn, SortDirection, TreeIdKey, TreeRowExpandDetail, TreeSelectionStrategy, } from '@mintplayer/ui-core/datatable';
@@ -1,5 +1,5 @@
1
1
  import { CoreController as e, booleanAttribute as t, props as n, stringAttribute as r } from "../machine/index.mjs";
2
- import "../chunks/datatable-Ce-UT16z.mjs";
2
+ import "../chunks/datatable-DabWV3-q.mjs";
3
3
  import "../chunks/splitter-EuJmtwjW.mjs";
4
4
  import "../chunks/treeview-BFyPrpxn.mjs";
5
5
  import { LitElement as i, html as a, nothing as o } from "lit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/web-components",
3
- "version": "3.2.0",
3
+ "version": "3.3.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": {
@@ -201,7 +201,7 @@
201
201
  "@lit/context": "^1.1.6"
202
202
  },
203
203
  "dependencies": {
204
- "@mintplayer/ui-core": "^1.2.0",
204
+ "@mintplayer/ui-core": "^1.3.0",
205
205
  "tslib": "^2.3.0",
206
206
  "intl-tel-input": "^29.1.2",
207
207
  "libphonenumber-js": "^1.13.10"