@ixfx/components 0.17.0 → 0.18.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.
Files changed (58) hide show
  1. package/bundle/index.d.ts +193 -8
  2. package/bundle/index.js +153 -152
  3. package/dist/{checked-select-BmwqpgGr.js → checked-select-DsQ-o9lI.js} +1 -1
  4. package/dist/checked-select.js +1 -1
  5. package/dist/{crumb-navigation-D7dAC0H-.js → crumb-navigation-09YFje6W.js} +2 -2
  6. package/dist/{crumb-navigation-Tm4fnsvN.d.ts → crumb-navigation-DOfOS7li.d.ts} +1 -1
  7. package/dist/crumbs.d.ts +1 -1
  8. package/dist/crumbs.js +1 -1
  9. package/dist/{data-grid-BcO3SMac.js → data-grid-BGmJbMCb.js} +4 -3
  10. package/dist/{data-grid-vasJtjFP.d.ts → data-grid-BQWmVYg0.d.ts} +8 -2
  11. package/dist/data-grid.d.ts +2 -2
  12. package/dist/data-grid.js +1 -1
  13. package/dist/{detail-list-E9WdMVbE.d.ts → detail-list-CfjoIl2N.d.ts} +9 -3
  14. package/dist/{detail-list-vPVwE1CP.js → detail-list-CrHASoAx.js} +2 -1
  15. package/dist/detail-list.d.ts +3 -3
  16. package/dist/detail-list.js +1 -1
  17. package/dist/{flat-list-CfutGqKY.d.ts → flat-list-C2z81bK6.d.ts} +5 -3
  18. package/dist/flat-list.d.ts +1 -1
  19. package/dist/flat-list.js +4 -2
  20. package/dist/{grid-list-Dg8hIiKO.d.ts → grid-list-Crv-hFJL.d.ts} +60 -4
  21. package/dist/{grid-list-BHo9TBxX.js → grid-list-DYU_z2K9.js} +258 -19
  22. package/dist/grid-list.d.ts +3 -3
  23. package/dist/grid-list.js +1 -1
  24. package/dist/incr-search.d.ts +1 -1
  25. package/dist/{index-CzhYJJsx.d.ts → index-BE0hk8xS.d.ts} +2 -2
  26. package/dist/{index-88ra6YHP.d.ts → index-BymYKGY-.d.ts} +3 -3
  27. package/dist/{index-CRLTVAyt.d.ts → index-Db5VGFR1.d.ts} +1 -1
  28. package/dist/index.d.ts +82 -20
  29. package/dist/index.js +293 -107
  30. package/dist/{interaction-8Kbbf6xN.js → interaction-BEcBIY0d.js} +1 -1
  31. package/dist/{list-native-drag-controller-ByftBooJ.js → list-native-drag-controller-Brk30s5d.js} +3 -0
  32. package/dist/{list-native-drag-controller-CgXKdmjr.d.ts → list-native-drag-controller-Cs-Tmtaa.d.ts} +1 -1
  33. package/dist/{menu-C3DhTjHx.js → menu-B6NFqEtm.js} +3 -3
  34. package/dist/{menu-item-BSxhlWnW.js → menu-item-D0zy1yax.js} +2 -2
  35. package/dist/menu.js +2 -2
  36. package/dist/{miller-DqDEaXqT.js → miller-B0qbnWwe.js} +1 -1
  37. package/dist/miller.d.ts +2 -2
  38. package/dist/miller.js +1 -1
  39. package/dist/narrowed-text.js +1 -1
  40. package/dist/{node-graph-DqEGv5QR.js → node-graph-D9iovxQp.js} +1 -1
  41. package/dist/node-graph.js +1 -1
  42. package/dist/{notification-pill-BiHEJk-o.d.ts → notification-pill-BJonE_wo.d.ts} +14 -1
  43. package/dist/notifier.d.ts +1 -1
  44. package/dist/select-horiz.js +1 -1
  45. package/dist/sunburst-tree.d.ts +1 -1
  46. package/dist/{sunbursttree-list-CsrmVSB8.d.ts → sunbursttree-list-XF7gBKod.d.ts} +2 -2
  47. package/dist/{tree-BP5fxvEX.js → tree-1CSNgw72.js} +2 -2
  48. package/dist/{tree-component-DNuzfo6R.d.ts → tree-component-BE7OEIiH.d.ts} +7 -1
  49. package/dist/tree.d.ts +2 -2
  50. package/dist/tree.js +1 -1
  51. package/dist/{vertical-list-B9z1lbjM.js → vertical-list-BNCRA_zy.js} +2 -1
  52. package/dist/{vertical-list-BzeXehBt.d.ts → vertical-list-Dyc5azxv.d.ts} +8 -2
  53. package/dist/vertical-list.d.ts +2 -2
  54. package/dist/vertical-list.js +1 -1
  55. package/docs-user/grid-list.md +70 -0
  56. package/docs-user/index.json +2 -2
  57. package/docs-user/notifier.md +28 -0
  58. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { t as TickledController } from "./tickled-controller-BVhGKzjZ.js";
2
2
  import { n as tickledStyles, t as tickledItemStyles } from "./tickled-styles-pnieYweS.js";
3
- import "./interaction-8Kbbf6xN.js";
3
+ import "./interaction-BEcBIY0d.js";
4
4
  import { t as themeFallbacks } from "./fallbacks-BPjjBoED.js";
5
5
  import { t as handleStyles } from "./handle-BVUWv97X.js";
6
6
  import { n as safeCustomElement, t as __decorate } from "./decorate-Dxs8sFX8.js";
@@ -1,2 +1,2 @@
1
1
  import "./checkbox.js";
2
- export { t as CheckedSelect } from "./checked-select-BmwqpgGr.js";
2
+ export { t as CheckedSelect } from "./checked-select-DsQ-o9lI.js";
@@ -1,11 +1,11 @@
1
1
  import { t as TickledController } from "./tickled-controller-BVhGKzjZ.js";
2
2
  import { n as tickledStyles, t as tickledItemStyles } from "./tickled-styles-pnieYweS.js";
3
3
  import { t as collectDataResult } from "./data-provider-C6ZNAcaT.js";
4
- import "./interaction-8Kbbf6xN.js";
4
+ import "./interaction-BEcBIY0d.js";
5
5
  import { t as themeFallbacks } from "./fallbacks-BPjjBoED.js";
6
6
  import { t as scrollFadeStyles } from "./scroll-fade-DH8OXSqL.js";
7
7
  import { n as safeCustomElement, t as __decorate } from "./decorate-Dxs8sFX8.js";
8
- import "./menu-item-BSxhlWnW.js";
8
+ import "./menu-item-D0zy1yax.js";
9
9
  import { t as ViewStateController } from "./view-state-controller-DiPAPiA7.js";
10
10
  import "./narrowed-text.js";
11
11
  import { LitElement, css, html, nothing } from "lit";
@@ -1,4 +1,4 @@
1
- import { M as TreeDataModel, a as TreeComponent, j as TreeTickleEvent, k as TreeSelectEvent, n as TreeActivateEvent, o as TreeComponentEventMap, x as TreeItemClickEvent, y as TreeExpandEvent } from "./tree-component-DNuzfo6R.js";
1
+ import { M as TreeDataModel, a as TreeComponent, j as TreeTickleEvent, k as TreeSelectEvent, n as TreeActivateEvent, o as TreeComponentEventMap, x as TreeItemClickEvent, y as TreeExpandEvent } from "./tree-component-BE7OEIiH.js";
2
2
  import { n as TreeExclusivity, o as TreeNode, r as TreeFilterPredicate, s as TreeSelectionFilter, t as LoadChildrenCallback } from "./types-6hpXRKt7.js";
3
3
  import { a as ViewStateBase, t as GetViewStateOptions } from "./types-16GC5k1z.js";
4
4
  import "./index-Cdcek1Oj.js";
package/dist/crumbs.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as CrumbNavigationExpandDetail, c as CrumbNavigationItemClickEvent, i as CrumbNavigationElementEventMap, l as CrumbNavigationViewState, n as CrumbNavigationChangeEvent, o as CrumbNavigationExpandEvent, r as CrumbNavigationElement, s as CrumbNavigationItemClickDetail, t as CrumbNavigationChangeDetail } from "./crumb-navigation-Tm4fnsvN.js";
1
+ import { a as CrumbNavigationExpandDetail, c as CrumbNavigationItemClickEvent, i as CrumbNavigationElementEventMap, l as CrumbNavigationViewState, n as CrumbNavigationChangeEvent, o as CrumbNavigationExpandEvent, r as CrumbNavigationElement, s as CrumbNavigationItemClickDetail, t as CrumbNavigationChangeDetail } from "./crumb-navigation-DOfOS7li.js";
2
2
  export { CrumbNavigationChangeDetail, CrumbNavigationChangeEvent, CrumbNavigationElement, CrumbNavigationElementEventMap, CrumbNavigationExpandDetail, CrumbNavigationExpandEvent, CrumbNavigationItemClickDetail, CrumbNavigationItemClickEvent, type CrumbNavigationViewState };
package/dist/crumbs.js CHANGED
@@ -1 +1 @@
1
- export { t as CrumbNavigationElement } from "./crumb-navigation-D7dAC0H-.js";
1
+ export { t as CrumbNavigationElement } from "./crumb-navigation-09YFje6W.js";
@@ -2,8 +2,8 @@ import { t as TickledController } from "./tickled-controller-BVhGKzjZ.js";
2
2
  import { n as tickledStyles, t as tickledItemStyles } from "./tickled-styles-pnieYweS.js";
3
3
  import { n as appearanceColor, t as appearanceAbsent } from "./item-appearance-FRO3TRFI.js";
4
4
  import { i as ListSearchController, n as listSearchStyles, o as registerListSearchCommands, r as LIST_SEARCH_MODES } from "./incr-search-C5114RxZ.js";
5
- import "./interaction-8Kbbf6xN.js";
6
- import { a as listItemFadeKeyframes, t as ListNativeDragController } from "./list-native-drag-controller-ByftBooJ.js";
5
+ import "./interaction-BEcBIY0d.js";
6
+ import { a as listItemFadeKeyframes, t as ListNativeDragController } from "./list-native-drag-controller-Brk30s5d.js";
7
7
  import { i as sameKeySet, r as isPartialKey, t as PARTIAL_DESCRIPTION } from "./partial-keys-D4l_ede_.js";
8
8
  import { t as themeFallbacks } from "./fallbacks-BPjjBoED.js";
9
9
  import { a as capKeys, l as keysToArray, n as EMPTY_KEYS, o as flagsFromRecord, r as MAX_PENDING_KEYS } from "./pending-Afl4LT64.js";
@@ -13,7 +13,7 @@ import { n as safeCustomElement, t as __decorate } from "./decorate-Dxs8sFX8.js"
13
13
  import { n as anchorFromRow, o as scrollToOffset, t as ViewStateController } from "./view-state-controller-DiPAPiA7.js";
14
14
  import { t as createDragGhost } from "./drag-ghost-DNWu_RyN.js";
15
15
  import "./icon-DvTQuylG.js";
16
- import "./menu-C3DhTjHx.js";
16
+ import "./menu-B6NFqEtm.js";
17
17
  import "./pan-text-DrJYKQKN.js";
18
18
  import { LitElement, css, html, nothing } from "lit";
19
19
  import { property, query, state } from "lit/decorators.js";
@@ -2596,6 +2596,7 @@ __decorate([property({
2596
2596
  reflect: true
2597
2597
  })], DataGridElement.prototype, "itemsDraggable", void 0);
2598
2598
  __decorate([property({ attribute: false })], DataGridElement.prototype, "dragPreviewRenderer", void 0);
2599
+ __decorate([property({ attribute: false })], DataGridElement.prototype, "writeDataTransfer", void 0);
2599
2600
  __decorate([property({ attribute: false })], DataGridElement.prototype, "dragPreviewSource", void 0);
2600
2601
  __decorate([property({
2601
2602
  type: String,
@@ -1,9 +1,9 @@
1
- import { L as ListDragPreviewRenderer, R as ListDragPreviewSourceResolver, V as ListNativeDragStartEvent } from "./tree-component-DNuzfo6R.js";
1
+ import { H as ListNativeDragStartEvent, P as ListDragDataTransferWriter, R as ListDragPreviewRenderer, z as ListDragPreviewSourceResolver } from "./tree-component-BE7OEIiH.js";
2
2
  import { m as ListSelectKeysDetail, u as ListSelectIntentDetail } from "./list-selection-types-CKTt7Rrw.js";
3
3
  import { a as ViewStateBase, t as GetViewStateOptions } from "./types-16GC5k1z.js";
4
4
  import { n as ListViewportChangeEvent, t as ListViewportChangeDetail } from "./list-viewport-types-BJ8c6qur.js";
5
5
  import "./index-Cdcek1Oj.js";
6
- import { S as ListSearchController } from "./index-CRLTVAyt.js";
6
+ import { S as ListSearchController } from "./index-Db5VGFR1.js";
7
7
  import "./icon-Bhz0c6Yf.js";
8
8
  import "./index-0smh4WCH.js";
9
9
  import "./pan-text-DKe2zinH.js";
@@ -273,6 +273,12 @@ declare class DataGridElement extends LitElement {
273
273
  * built-in HTML+canvas preview.
274
274
  */
275
275
  dragPreviewRenderer: ListDragPreviewRenderer<unknown> | undefined;
276
+ /**
277
+ * Write an application payload onto the drag's `DataTransfer` (e.g. a custom
278
+ * MIME type). Called once per drag, synchronously inside `dragstart`, after a
279
+ * non-cancelled `list-native-drag-start`.
280
+ */
281
+ writeDataTransfer: ListDragDataTransferWriter<unknown> | undefined;
276
282
  dragPreviewSource: ListDragPreviewSourceResolver<unknown> | undefined;
277
283
  /**
278
284
  * Default icon name for column header buttons. Defaults to `ellipsis`.
@@ -1,3 +1,3 @@
1
- import { B as ListNativeDragStartDetail, F as ListDragPreview, I as ListDragPreviewContext, L as ListDragPreviewRenderer, P as ListDragEntry, V as ListNativeDragStartEvent, z as ListDragSource } from "./tree-component-DNuzfo6R.js";
2
- import { A as DataGridColumn, B as DataGridInteractionMode, C as DataGridSortEvent, D as DataGridViewState, E as DataGridColumnViewState, F as DataGridEditorFactory, G as GlobalFormatter, H as DataGridSelectionMode, I as DataGridEditorType, L as DataGridGetRowKey, M as DataGridDataType, N as DataGridEditability, O as BuiltInFormatterName, P as DataGridEditorContext, R as DataGridGroupBy, S as DataGridSortDetail, T as DataGridViewportChangeEvent, U as DataGridSortDirection, V as DataGridRowLook, W as DataGridSortState, _ as DataGridRowActivateDetail, a as DataGridColumnReorderDetail, b as DataGridSelectEvent, c as DataGridColumnResizeEvent, d as DataGridElement, f as DataGridElementEventMap, g as DataGridListSelectEvent, h as DataGridListSelectDetail, i as DataGridCellEditEvent, j as DataGridColumnMenu, k as BuiltInFormatterOptions, l as DataGridColumnVisibilityDetail, m as DataGridGroupChangeEvent, n as DataGridCellClickEvent, o as DataGridColumnReorderEvent, p as DataGridGroupChangeDetail, r as DataGridCellEditDetail, s as DataGridColumnResizeDetail, t as DataGridCellClickDetail, u as DataGridColumnVisibilityEvent, v as DataGridRowActivateEvent, w as DataGridViewportChangeDetail, x as DataGridSelectIntentEvent, y as DataGridSelectDetail, z as DataGridGroupLabel } from "./data-grid-vasJtjFP.js";
1
+ import { B as ListDragSource, F as ListDragEntry, H as ListNativeDragStartEvent, I as ListDragPreview, L as ListDragPreviewContext, R as ListDragPreviewRenderer, V as ListNativeDragStartDetail } from "./tree-component-BE7OEIiH.js";
2
+ import { A as DataGridColumn, B as DataGridInteractionMode, C as DataGridSortEvent, D as DataGridViewState, E as DataGridColumnViewState, F as DataGridEditorFactory, G as GlobalFormatter, H as DataGridSelectionMode, I as DataGridEditorType, L as DataGridGetRowKey, M as DataGridDataType, N as DataGridEditability, O as BuiltInFormatterName, P as DataGridEditorContext, R as DataGridGroupBy, S as DataGridSortDetail, T as DataGridViewportChangeEvent, U as DataGridSortDirection, V as DataGridRowLook, W as DataGridSortState, _ as DataGridRowActivateDetail, a as DataGridColumnReorderDetail, b as DataGridSelectEvent, c as DataGridColumnResizeEvent, d as DataGridElement, f as DataGridElementEventMap, g as DataGridListSelectEvent, h as DataGridListSelectDetail, i as DataGridCellEditEvent, j as DataGridColumnMenu, k as BuiltInFormatterOptions, l as DataGridColumnVisibilityDetail, m as DataGridGroupChangeEvent, n as DataGridCellClickEvent, o as DataGridColumnReorderEvent, p as DataGridGroupChangeDetail, r as DataGridCellEditDetail, s as DataGridColumnResizeDetail, t as DataGridCellClickDetail, u as DataGridColumnVisibilityEvent, v as DataGridRowActivateEvent, w as DataGridViewportChangeDetail, x as DataGridSelectIntentEvent, y as DataGridSelectDetail, z as DataGridGroupLabel } from "./data-grid-BQWmVYg0.js";
3
3
  export { type BuiltInFormatterName, type BuiltInFormatterOptions, DataGridCellClickDetail, DataGridCellClickEvent, DataGridCellEditDetail, DataGridCellEditEvent, type DataGridColumn, type DataGridColumnMenu, DataGridColumnReorderDetail, DataGridColumnReorderEvent, DataGridColumnResizeDetail, DataGridColumnResizeEvent, type DataGridColumnViewState, DataGridColumnVisibilityDetail, DataGridColumnVisibilityEvent, type DataGridDataType, type DataGridEditability, type DataGridEditorContext, type DataGridEditorFactory, type DataGridEditorType, DataGridElement, DataGridElementEventMap, type DataGridGetRowKey, type DataGridGroupBy, DataGridGroupChangeDetail, DataGridGroupChangeEvent, type DataGridGroupLabel, type DataGridInteractionMode, DataGridListSelectDetail, DataGridListSelectEvent, DataGridRowActivateDetail, DataGridRowActivateEvent, type DataGridRowLook, DataGridSelectDetail, DataGridSelectEvent, DataGridSelectIntentEvent, type DataGridSelectionMode, DataGridSortDetail, type DataGridSortDirection, DataGridSortEvent, type DataGridSortState, type DataGridViewState, DataGridViewportChangeDetail, DataGridViewportChangeEvent, type GlobalFormatter, type ListDragEntry, type ListDragPreview, type ListDragPreviewContext, type ListDragPreviewRenderer, type ListDragSource, type ListNativeDragStartDetail, type ListNativeDragStartEvent };
package/dist/data-grid.js CHANGED
@@ -1 +1 @@
1
- export { t as DataGridElement } from "./data-grid-BcO3SMac.js";
1
+ export { t as DataGridElement } from "./data-grid-BGmJbMCb.js";
@@ -1,12 +1,12 @@
1
1
  import { r as IDataProvider } from "./data-provider-Cq_ylpET.js";
2
2
  import { a as ListGroupEventMap, o as ListGroupInfo, s as ListGroupLabel } from "./grouping-OoQ8WaKc.js";
3
- import { L as ListDragPreviewRenderer, R as ListDragPreviewSourceResolver, V as ListNativeDragStartEvent } from "./tree-component-DNuzfo6R.js";
3
+ import { H as ListNativeDragStartEvent, P as ListDragDataTransferWriter, R as ListDragPreviewRenderer, z as ListDragPreviewSourceResolver } from "./tree-component-BE7OEIiH.js";
4
4
  import { a as ViewStateBase, s as ViewStateChangeEvent, t as GetViewStateOptions } from "./types-16GC5k1z.js";
5
5
  import { h as ListSelectionMode, i as ListInteractionMode, r as ListElementEventMap } from "./list-selection-types-CKTt7Rrw.js";
6
6
  import { n as ListViewportChangeEvent } from "./list-viewport-types-BJ8c6qur.js";
7
7
  import "./index-Cdcek1Oj.js";
8
- import { n as CustomCheckboxOptions, t as AddItemOptions } from "./vertical-list-BzeXehBt.js";
9
- import { S as ListSearchController } from "./index-CRLTVAyt.js";
8
+ import { n as CustomCheckboxOptions, t as AddItemOptions } from "./vertical-list-Dyc5azxv.js";
9
+ import { S as ListSearchController } from "./index-Db5VGFR1.js";
10
10
  import "./icon-Bhz0c6Yf.js";
11
11
  import "./list-group-header.js";
12
12
  import { LitElement, PropertyValues } from "lit";
@@ -121,6 +121,12 @@ declare class DetailListElement extends LitElement {
121
121
  * built-in HTML+canvas preview.
122
122
  */
123
123
  dragPreviewRenderer: ListDragPreviewRenderer<Element> | undefined;
124
+ /**
125
+ * Write an application payload onto the drag's `DataTransfer` (e.g. a custom
126
+ * MIME type). Called once per drag, synchronously inside `dragstart`, after a
127
+ * non-cancelled `list-native-drag-start`.
128
+ */
129
+ writeDataTransfer: ListDragDataTransferWriter<Element> | undefined;
124
130
  dragPreviewSource: ListDragPreviewSourceResolver<Element> | undefined;
125
131
  /**
126
132
  * Group rows under collapsible headers that flow inline in the columns. A
@@ -3,7 +3,7 @@ import { n as appearanceColor, t as appearanceAbsent } from "./item-appearance-F
3
3
  import { c as createElementListSearchAdapter, d as keysOfElements, i as ListSearchController, n as listSearchStyles, o as registerListSearchCommands, r as LIST_SEARCH_MODES, u as keyForElement } from "./incr-search-C5114RxZ.js";
4
4
  import { a as toGroupKey, r as partitionByGroup } from "./grouping-kENdqzSV.js";
5
5
  import { i as ListDragSelectController, n as gestureOf, t as ListSelectionController } from "./list-selection-controller-Dkh3m3hX.js";
6
- import { i as animateListItemOut, r as animateListItemIn, t as ListNativeDragController } from "./list-native-drag-controller-ByftBooJ.js";
6
+ import { i as animateListItemOut, r as animateListItemIn, t as ListNativeDragController } from "./list-native-drag-controller-Brk30s5d.js";
7
7
  import { i as sameKeySet, n as applyPartialAttributes, r as isPartialKey } from "./partial-keys-D4l_ede_.js";
8
8
  import { t as TickledController } from "./tickled-controller-BVhGKzjZ.js";
9
9
  import { t as themeFallbacks } from "./fallbacks-BPjjBoED.js";
@@ -2258,6 +2258,7 @@ __decorate([property({
2258
2258
  reflect: true
2259
2259
  })], DetailListElement.prototype, "itemsDraggable", void 0);
2260
2260
  __decorate([property({ attribute: false })], DetailListElement.prototype, "dragPreviewRenderer", void 0);
2261
+ __decorate([property({ attribute: false })], DetailListElement.prototype, "writeDataTransfer", void 0);
2261
2262
  __decorate([property({ attribute: false })], DetailListElement.prototype, "dragPreviewSource", void 0);
2262
2263
  __decorate([property({ attribute: `group-by` })], DetailListElement.prototype, "groupBy", void 0);
2263
2264
  __decorate([property({ attribute: false })], DetailListElement.prototype, "groupLabel", void 0);
@@ -1,6 +1,6 @@
1
- import { B as ListNativeDragStartDetail, F as ListDragPreview, I as ListDragPreviewContext, L as ListDragPreviewRenderer, P as ListDragEntry, V as ListNativeDragStartEvent, z as ListDragSource } from "./tree-component-DNuzfo6R.js";
1
+ import { B as ListDragSource, F as ListDragEntry, H as ListNativeDragStartEvent, I as ListDragPreview, L as ListDragPreviewContext, R as ListDragPreviewRenderer, V as ListNativeDragStartDetail } from "./tree-component-BE7OEIiH.js";
2
2
  import { n as ListViewportChangeEvent, t as ListViewportChangeDetail } from "./list-viewport-types-BJ8c6qur.js";
3
3
  import { i as ListGroupChangeEvent, l as ListGroupToggleDetail, n as ListGroupBy, o as ListGroupInfo, r as ListGroupChangeDetail, s as ListGroupLabel, u as ListGroupToggleEvent } from "./grouping-OoQ8WaKc.js";
4
- import { a as DetailSortComparator, c as DetailListViewState, i as DetailGroupBy, n as DetailListElementEventMap, o as DetailSortItem, r as DetailFormatter, s as DetailSortMode, t as DetailListElement } from "./detail-list-E9WdMVbE.js";
5
- import { n as CustomCheckboxOptions, t as AddItemOptions } from "./vertical-list-BzeXehBt.js";
4
+ import { a as DetailSortComparator, c as DetailListViewState, i as DetailGroupBy, n as DetailListElementEventMap, o as DetailSortItem, r as DetailFormatter, s as DetailSortMode, t as DetailListElement } from "./detail-list-CfjoIl2N.js";
5
+ import { n as CustomCheckboxOptions, t as AddItemOptions } from "./vertical-list-Dyc5azxv.js";
6
6
  export { type AddItemOptions, type CustomCheckboxOptions, type DetailFormatter, type DetailGroupBy, DetailListElement, DetailListElementEventMap, type DetailListViewState, type DetailSortComparator, type DetailSortItem, type DetailSortMode, type ListDragEntry, type ListDragPreview, type ListDragPreviewContext, type ListDragPreviewRenderer, type ListDragSource, type ListGroupBy, type ListGroupChangeDetail, type ListGroupChangeEvent, type ListGroupInfo, type ListGroupLabel, type ListGroupToggleDetail, type ListGroupToggleEvent, type ListNativeDragStartDetail, type ListNativeDragStartEvent, type ListViewportChangeDetail, type ListViewportChangeEvent };
@@ -1,2 +1,2 @@
1
- export { t as DetailListElement } from "./detail-list-vPVwE1CP.js";
1
+ export { t as DetailListElement } from "./detail-list-CrHASoAx.js";
2
2
  import "./list-group-header.js";
@@ -1,10 +1,10 @@
1
- import { M as TreeDataModel } from "./tree-component-DNuzfo6R.js";
1
+ import { M as TreeDataModel, P as ListDragDataTransferWriter } from "./tree-component-BE7OEIiH.js";
2
2
  import { o as TreeNode, r as TreeFilterPredicate, t as LoadChildrenCallback } from "./types-6hpXRKt7.js";
3
3
  import { h as ListSelectionMode, i as ListInteractionMode } from "./list-selection-types-CKTt7Rrw.js";
4
4
  import { a as ViewStateBase, t as GetViewStateOptions } from "./types-16GC5k1z.js";
5
- import { r as VerticalListElement } from "./vertical-list-BzeXehBt.js";
5
+ import { r as VerticalListElement } from "./vertical-list-Dyc5azxv.js";
6
6
  import "./index-Cdcek1Oj.js";
7
- import "./crumb-navigation-Tm4fnsvN.js";
7
+ import "./crumb-navigation-DOfOS7li.js";
8
8
  import "./icon-Bhz0c6Yf.js";
9
9
  import { LitElement, PropertyValues } from "lit";
10
10
  /** How branches and leaves are ordered within one level. */
@@ -126,6 +126,8 @@ declare class FlatListElement extends LitElement {
126
126
  itemWrap: `stop` | `wrap`;
127
127
  searchModes: string | undefined;
128
128
  itemsDraggable: boolean;
129
+ /** Write an application payload onto the drag's `DataTransfer`. Forwarded to the inner list. */
130
+ writeDataTransfer: ListDragDataTransferWriter<Element> | undefined;
129
131
  /** Rows (and empty space) accept native drops. See `flat-list-drop`. */
130
132
  itemsDroppable: boolean;
131
133
  /**
@@ -1,2 +1,2 @@
1
- import { _ as FlatListSelectEvent, a as FlatListContextMenuDetail, c as FlatListDropEvent, d as FlatListEditCommitDetail, f as FlatListEditCommitEvent, g as FlatListSelectDetail, h as FlatListNavigateEvent, i as FlatListBranchOrder, l as FlatListEditCancelDetail, m as FlatListNavigateDetail, n as FlatListActivateDetail, o as FlatListContextMenuEvent, p as FlatListElementEventMap, r as FlatListActivateEvent, s as FlatListDropDetail, t as FlatListElement, u as FlatListEditCancelEvent, v as FlatListViewState } from "./flat-list-CfutGqKY.js";
1
+ import { _ as FlatListSelectEvent, a as FlatListContextMenuDetail, c as FlatListDropEvent, d as FlatListEditCommitDetail, f as FlatListEditCommitEvent, g as FlatListSelectDetail, h as FlatListNavigateEvent, i as FlatListBranchOrder, l as FlatListEditCancelDetail, m as FlatListNavigateDetail, n as FlatListActivateDetail, o as FlatListContextMenuEvent, p as FlatListElementEventMap, r as FlatListActivateEvent, s as FlatListDropDetail, t as FlatListElement, u as FlatListEditCancelEvent, v as FlatListViewState } from "./flat-list-C2z81bK6.js";
2
2
  export { type FlatListActivateDetail, type FlatListActivateEvent, type FlatListBranchOrder, type FlatListContextMenuDetail, type FlatListContextMenuEvent, type FlatListDropDetail, type FlatListDropEvent, type FlatListEditCancelDetail, type FlatListEditCancelEvent, type FlatListEditCommitDetail, type FlatListEditCommitEvent, FlatListElement, type FlatListElementEventMap, type FlatListNavigateDetail, type FlatListNavigateEvent, type FlatListSelectDetail, type FlatListSelectEvent, type FlatListViewState };
package/dist/flat-list.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as collectDataResult } from "./data-provider-C6ZNAcaT.js";
2
2
  import { n as appearanceColor, t as appearanceAbsent } from "./item-appearance-FRO3TRFI.js";
3
- import { n as resolveKeyPath } from "./crumb-navigation-D7dAC0H-.js";
3
+ import { n as resolveKeyPath } from "./crumb-navigation-09YFje6W.js";
4
4
  import { t as TickledController } from "./tickled-controller-BVhGKzjZ.js";
5
5
  import { t as themeFallbacks } from "./fallbacks-BPjjBoED.js";
6
6
  import { t as ViewStateController } from "./view-state-controller-DiPAPiA7.js";
7
7
  import { n as safeCustomElement, t as __decorate } from "./decorate-Dxs8sFX8.js";
8
8
  import "./icon-DvTQuylG.js";
9
- import "./vertical-list-B9z1lbjM.js";
9
+ import "./vertical-list-BNCRA_zy.js";
10
10
  import { LitElement, css, html, nothing } from "lit";
11
11
  import { property, state } from "lit/decorators.js";
12
12
  // src/flat-list/flat-list.ts
@@ -602,6 +602,7 @@ let FlatListElement = class FlatListElement extends LitElement {
602
602
  .itemWrap=${this.itemWrap}
603
603
  .searchModes=${this.searchModes}
604
604
  ?items-draggable=${this.itemsDraggable}
605
+ .writeDataTransfer=${this.writeDataTransfer}
605
606
  ?items-droppable=${this.itemsDroppable}
606
607
  .canDrop=${this.#canDropOn}
607
608
  .editValidator=${this.#validateEditKey}
@@ -759,6 +760,7 @@ __decorate([property({
759
760
  attribute: `items-draggable`,
760
761
  reflect: true
761
762
  })], FlatListElement.prototype, "itemsDraggable", void 0);
763
+ __decorate([property({ attribute: false })], FlatListElement.prototype, "writeDataTransfer", void 0);
762
764
  __decorate([property({
763
765
  type: Boolean,
764
766
  attribute: `items-droppable`,
@@ -1,11 +1,11 @@
1
1
  import { i as ListGroupChangeEvent, n as ListGroupBy, o as ListGroupInfo, s as ListGroupLabel, u as ListGroupToggleEvent } from "./grouping-OoQ8WaKc.js";
2
2
  import { a as ViewStateBase, t as GetViewStateOptions } from "./types-16GC5k1z.js";
3
3
  import { h as ListSelectionMode, i as ListInteractionMode, p as ListSelectIntentSource, s as ListMarqueeMode, u as ListSelectIntentDetail } from "./list-selection-types-CKTt7Rrw.js";
4
- import "./list-native-drag-controller-CgXKdmjr.js";
4
+ import "./list-native-drag-controller-Cs-Tmtaa.js";
5
5
  import { i as TickledItem, n as TickledController } from "./tickled-controller-DSPoG551.js";
6
6
  import "./index-Cdcek1Oj.js";
7
- import { L as ListDragPreviewRenderer, R as ListDragPreviewSourceResolver, V as ListNativeDragStartEvent } from "./tree-component-DNuzfo6R.js";
8
- import { S as ListSearchController } from "./index-CRLTVAyt.js";
7
+ import { H as ListNativeDragStartEvent, P as ListDragDataTransferWriter, R as ListDragPreviewRenderer, z as ListDragPreviewSourceResolver } from "./tree-component-BE7OEIiH.js";
8
+ import { S as ListSearchController } from "./index-Db5VGFR1.js";
9
9
  import "./list-group-header.js";
10
10
  import "./pan-text-DKe2zinH.js";
11
11
  import { LitElement, PropertyValues, ReactiveController, ReactiveControllerHost, html } from "lit";
@@ -410,6 +410,17 @@ type GridListDataAdapter<T> = {
410
410
  */
411
411
  badge?: (item: T, index: number) => unknown;
412
412
  };
413
+ /**
414
+ * One entry of a batched item update — see `GridListElement.updateItems`.
415
+ *
416
+ * @typeParam T The type of data item.
417
+ */
418
+ type GridListItemUpdate<T> = {
419
+ /** Key of the item to replace. Unknown keys are ignored. */
420
+ readonly key: string;
421
+ /** The new value for that item. */
422
+ readonly item: T;
423
+ };
413
424
  /**
414
425
  * Common detail for per-item events (activate, click, tickle), key-first in
415
426
  * BOTH element and data modes. `item` is the backward-compat field — Element in
@@ -612,6 +623,12 @@ declare class GridListElement<T = unknown> extends LitElement {
612
623
  * as selection changes. Defaults to the shared built-in preview.
613
624
  */
614
625
  dragPreviewRenderer: ListDragPreviewRenderer<T> | undefined;
626
+ /**
627
+ * Write an application payload onto the drag's `DataTransfer` (e.g. a custom
628
+ * MIME type). Called once per drag, synchronously inside `dragstart`, after a
629
+ * non-cancelled `list-native-drag-start`.
630
+ */
631
+ writeDataTransfer: ListDragDataTransferWriter<T> | undefined;
615
632
  /**
616
633
  * Optional synchronous resolver that supplies an already-loaded
617
634
  * `CanvasImageSource` for each drag entry's preview thumbnail.
@@ -747,8 +764,47 @@ declare class GridListElement<T = unknown> extends LitElement {
747
764
  * place (the keyed subtree is kept); an offscreen item shows its new content
748
765
  * when scrolled into view. Scroll and selection are untouched. Unknown keys
749
766
  * are ignored.
767
+ *
768
+ * Passing the **same object** that is already at `key` is a no-op: the
769
+ * `items` array is left untouched (same identity) and nothing is emitted.
770
+ * Use {@link refreshItem} to re-render a cell without changing the data.
771
+ *
772
+ * Updating many items one by one? Use {@link updateItems} — it applies them
773
+ * with a single array copy and a single rebuild.
750
774
  */
751
775
  updateItem(key: string, item: T): void;
776
+ /**
777
+ * Data mode: replace several items at once — the batched form of
778
+ * {@link updateItem}.
779
+ *
780
+ * `entries` is an array of `{ key, item }` pairs (a `Map<key, item>` is
781
+ * accepted too). All the replacements are applied with **one** array copy
782
+ * and **one** source rebuild, so a host that must refresh n rows does not
783
+ * pay n copies and n scans.
784
+ *
785
+ * Semantics match n sequential {@link updateItem} calls:
786
+ * - unknown keys are ignored;
787
+ * - an entry whose `item` is the identical object already at that key is
788
+ * skipped (it cannot change anything);
789
+ * - selection, cursor and scroll are untouched;
790
+ * - if no entry changes anything, `items` is left untouched (same identity)
791
+ * and nothing is emitted.
792
+ */
793
+ updateItems(entries: Iterable<GridListItemUpdate<T>> | ReadonlyMap<string, T>): void;
794
+ /**
795
+ * Data mode: re-render the cell for `key` without touching `items`.
796
+ *
797
+ * Use this when the *data* is unchanged but the cell should be redrawn — for
798
+ * example after mutating something the adapter reads from outside the item
799
+ * (a thumbnail's load state). The `items` array keeps its identity, so the
800
+ * collection is not copied and no source rebuild is triggered.
801
+ *
802
+ * The adapter's `render` is called again for that cell on the next render,
803
+ * so the cell picks up the new state. Other cells are left alone.
804
+ *
805
+ * Unknown keys are ignored. A no-op in element mode.
806
+ */
807
+ refreshItem(key: string): void;
752
808
  /**
753
809
  * Data mode: remove the items carrying these keys. Removed keys leave the
754
810
  * selection and cursor silently (via the `items` change) and are held as
@@ -827,4 +883,4 @@ interface GridListElement {
827
883
  addEventListener<K extends keyof GridListFullElementEventMap>(type: K, listener: (this: GridListElement, ev: GridListFullElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
828
884
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
829
885
  }
830
- export { gestureOf as A, capFlags as B, TreeKeyboardNavController as C, ListSelectionControllerConfig as D, ListSelectionController as E, EMPTY_FLAGS as F, keysToArray as G, flagsFromRecord as H, EMPTY_KEYS as I, withoutFlag as J, partitionFlags as K, MAX_PENDING_KEYS as L, DragSelectRect as M, ListDragSelectController as N, ListSelectionGesture as O, ListDragSelectControllerConfig as P, PendingFlags as R, TreeKeyboardNavCallbacks as S, TreeKeyboardNavItemId as T, flagsToRecord as U, capKeys as V, keysAsFlags as W, GridListSelectEvent as _, GridListCaptionAlign as a, GridListViewportChangeDetail as b, GridListCaptionStyle as c, GridListFullElementEventMap as d, GridListItemClickDetail as f, GridListSelectDetail as g, GridListOrientation as h, GridListActivateEvent as i, isMultiMode as j, ListSelectionModes as k, GridListDataAdapter as l, GridListItemEventDetail as m, GridListViewState as n, GridListCaptionBackdrop as o, GridListItemClickEvent as p, partitionKeys as q, GridListActivateDetail as r, GridListCaptionPosition as s, GridListElement as t, GridListElementEventMap as u, GridListTickleDetail as v, TreeKeyboardNavControllerConfig as w, GridListViewportChangeEvent as x, GridListTickleEvent as y, PendingKeys as z };
886
+ export { ListSelectionModes as A, PendingKeys as B, TreeKeyboardNavCallbacks as C, ListSelectionController as D, TreeKeyboardNavItemId as E, ListDragSelectControllerConfig as F, keysAsFlags as G, capKeys as H, EMPTY_FLAGS as I, partitionKeys as J, keysToArray as K, EMPTY_KEYS as L, isMultiMode as M, DragSelectRect as N, ListSelectionControllerConfig as O, ListDragSelectController as P, MAX_PENDING_KEYS as R, GridListViewportChangeEvent as S, TreeKeyboardNavControllerConfig as T, flagsFromRecord as U, capFlags as V, flagsToRecord as W, withoutFlag as Y, GridListSelectDetail as _, GridListCaptionAlign as a, GridListTickleEvent as b, GridListCaptionStyle as c, GridListFullElementEventMap as d, GridListItemClickDetail as f, GridListOrientation as g, GridListItemUpdate as h, GridListActivateEvent as i, gestureOf as j, ListSelectionGesture as k, GridListDataAdapter as l, GridListItemEventDetail as m, GridListViewState as n, GridListCaptionBackdrop as o, GridListItemClickEvent as p, partitionFlags as q, GridListActivateDetail as r, GridListCaptionPosition as s, GridListElement as t, GridListElementEventMap as u, GridListSelectEvent as v, TreeKeyboardNavController as w, GridListViewportChangeDetail as x, GridListTickleDetail as y, PendingFlags as z };