twico-ui 1.16.0 → 1.17.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.
- package/CHANGELOG.md +7 -0
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -3
- package/dist/index.d.ts +25 -3
- package/dist/index.mjs +6 -2
- 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.17.0](https://github.com/EncryptionL/twico-ui/compare/v1.16.0...v1.17.0) (2026-07-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **datatable:** batch action anchorEl + renderBatchEditCell ([#246](https://github.com/EncryptionL/twico-ui/issues/246), [#247](https://github.com/EncryptionL/twico-ui/issues/247)) ([1c84dca](https://github.com/EncryptionL/twico-ui/commit/1c84dcaa7da1d7e9f3edb7481bd1e9ad2671639f)), closes [#236](https://github.com/EncryptionL/twico-ui/issues/236)
|
|
11
|
+
|
|
5
12
|
# [1.16.0](https://github.com/EncryptionL/twico-ui/compare/v1.15.1...v1.16.0) (2026-07-15)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.cjs
CHANGED
|
@@ -10503,7 +10503,7 @@ function Datatable({
|
|
|
10503
10503
|
className: "twc-dt__batch-btn",
|
|
10504
10504
|
"data-danger": a.danger || void 0,
|
|
10505
10505
|
disabled: a.disabled,
|
|
10506
|
-
onClick: () => a.onClick?.([...selected], selectedRows, clearSelection),
|
|
10506
|
+
onClick: (e) => a.onClick?.([...selected], selectedRows, clearSelection, { anchorEl: e.currentTarget }),
|
|
10507
10507
|
children: [
|
|
10508
10508
|
a.icon,
|
|
10509
10509
|
a.label
|
|
@@ -11019,7 +11019,11 @@ function Datatable({
|
|
|
11019
11019
|
const opts = c.valueOptions ? c.valueOptions.map((o) => typeof o === "string" ? { value: o, label: o } : o) : null;
|
|
11020
11020
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "twc-dt__be-row", children: [
|
|
11021
11021
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "twc-dt__be-name", title: String(c.headerName ?? c.field), children: c.headerName }),
|
|
11022
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "twc-dt__be-ctl", children:
|
|
11022
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "twc-dt__be-ctl", children: c.renderBatchEditCell ? c.renderBatchEditCell({
|
|
11023
|
+
value: batchEdit.values[c.field],
|
|
11024
|
+
field: c.field,
|
|
11025
|
+
commit: (v) => setBatchEdit((b) => ({ ...b, values: { ...b.values, [c.field]: v } }))
|
|
11026
|
+
}) : opts ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
11023
11027
|
Select,
|
|
11024
11028
|
{
|
|
11025
11029
|
size: "sm",
|