@iyulab/flex-table 0.48.0 → 0.48.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.
@@ -397,13 +397,9 @@ export declare class FlexTable extends LitElement {
397
397
  * The selection as TSV in display (sorted) order, or `null` without a selection.
398
398
  */
399
399
  private _selectionTsv;
400
- /**
401
- * The browser's copy / cut / paste on the grid. Events from a text field inside the grid (the cell
402
- * editor, the find panel, a filter input) are that field's own and pass through untouched.
403
- */
404
- private _onClipboard;
405
- /** The context menu's Copy — no clipboard event to fill, so it goes through the async Clipboard API. */
400
+ /** The context menu's Copy — a click, not a key, so it goes through the async Clipboard API. */
406
401
  private _copyFromMenu;
402
+ private _clipboardError;
407
403
  /** Runs once the text is on the clipboard — only then is a cut range cleared. */
408
404
  private _afterCopy;
409
405
  private _pasteText;
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./flex-table-B8ehfxqn.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./flex-table-CDMcn3Nj.js";
2
2
  export { o as FlexTable, e as RowSelectionState, t as UndoStack, n as effectiveAlign, i as exportData, r as flexTableLocale, a as renderCell };
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./flex-table-B8ehfxqn.js";
1
+ import { t as e } from "./flex-table-CDMcn3Nj.js";
2
2
  import { i as t, t as n } from "./query-Dw4iO0ir.js";
3
3
  import { t as r } from "./view-DiLr-TdY.js";
4
4
  import i, { useCallback as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iyulab/flex-table",
3
- "version": "0.48.0",
3
+ "version": "0.48.2",
4
4
  "description": "A minimalist, input-centric data grid web component",
5
5
  "type": "module",
6
6
  "main": "./dist/flex-table.js",
@@ -73,7 +73,7 @@
73
73
  "odata-query": "^8.1.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@iyulab/components": ">=2.0.1",
76
+ "@iyulab/components": ">=2.2.0",
77
77
  "@lit/react": "^1.0.8",
78
78
  "react": "^18.0.0 || ^19.0.0"
79
79
  },
@@ -159,7 +159,7 @@ All are `CustomEvent`s with `bubbles: true, composed: true`. `row`/`index` are d
159
159
  | `selection-change` | `{ selectedIndices, selectedRows }` |
160
160
  | `clipboard-copy` / `clipboard-cut` | `{ range, text }` (TSV) |
161
161
  | `clipboard-paste` | `{ changes, addedRows }` |
162
- | `clipboard-error` | `{ action: 'copy', error }` — the context menu's Copy could not write; no `clipboard-copy` follows |
162
+ | `clipboard-error` | `{ action: 'copy' \| 'paste', error }` — copy could not put the text on the clipboard (no `clipboard-copy`/`clipboard-cut` follows; a cut clears nothing), or paste could not read it |
163
163
  | `fill-handle-apply` | `{ sourceRange, targetRange, cells }` |
164
164
  | `find-replace` | `{ type: 'replace' \| 'replace-all', cells }` |
165
165
  | `comment-change` | `{ dataIndex, colKey, text }` |