twico-ui 1.20.0 → 1.20.1
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/CHANGELOG.md +7 -0
- package/dist/index.cjs +16 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to Twico UI are documented here (newest first). This file is generated automatically on each release by [semantic-release](https://semantic-release.gitbook.io/) from [Conventional Commits](https://www.conventionalcommits.org/) — do not edit it by hand. The same notes appear on each [GitHub Release](https://github.com/EncryptionL/twico-ui/releases).
|
|
4
4
|
|
|
5
|
+
## [1.20.1](https://github.com/EncryptionL/twico-ui/compare/v1.20.0...v1.20.1) (2026-07-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **datatable:** Esc cancels a cell edit for custom renderEditCell editors ([f886023](https://github.com/EncryptionL/twico-ui/commit/f88602390edf75b1217b5ecd5a659951ce9c7748)), closes [#273](https://github.com/EncryptionL/twico-ui/issues/273)
|
|
11
|
+
|
|
5
12
|
# [1.20.0](https://github.com/EncryptionL/twico-ui/compare/v1.19.1...v1.20.0) (2026-07-23)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.cjs
CHANGED
|
@@ -10498,7 +10498,22 @@ function Datatable({
|
|
|
10498
10498
|
// async Combobox, …) and drives the lifecycle via commit/cancel. Wrapped in
|
|
10499
10499
|
// .twc-dt__editor-wrap so inline clicks (and any .twc-pop portal dropdown) don't
|
|
10500
10500
|
// trip the outside-click auto-cancel.
|
|
10501
|
-
|
|
10501
|
+
// #273: the wrapper handles Escape → cancel so it works for every custom editor without
|
|
10502
|
+
// each having to wire a keydown (they only get commit/cancel). A custom control that
|
|
10503
|
+
// wants Escape itself (e.g. to close its own open dropdown) stops propagation first.
|
|
10504
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10505
|
+
"div",
|
|
10506
|
+
{
|
|
10507
|
+
className: "twc-dt__editor-wrap",
|
|
10508
|
+
onKeyDown: (e) => {
|
|
10509
|
+
if (e.key === "Escape") {
|
|
10510
|
+
e.stopPropagation();
|
|
10511
|
+
cancelEdit();
|
|
10512
|
+
}
|
|
10513
|
+
},
|
|
10514
|
+
children: c.renderEditCell({ value: editing.value, row, field: c.field, commit: (v) => commitEdit(v), cancel: cancelEdit })
|
|
10515
|
+
}
|
|
10516
|
+
)
|
|
10502
10517
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
10503
10518
|
EditCell,
|
|
10504
10519
|
{
|