ywana-core8 0.0.757 → 0.0.759
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/dist/index.cjs +16 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +16 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +16 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +9 -5
package/dist/index.umd.js
CHANGED
@@ -1926,7 +1926,8 @@
|
|
1926
1926
|
max = column.max,
|
1927
1927
|
_onChange = column.onChange,
|
1928
1928
|
format = column.format,
|
1929
|
-
options = column.options
|
1929
|
+
options = column.options,
|
1930
|
+
action = column.action;
|
1930
1931
|
|
1931
1932
|
if (id === "checked") {
|
1932
1933
|
return /*#__PURE__*/React__default["default"].createElement(CheckBox, {
|
@@ -2049,7 +2050,8 @@
|
|
2049
2050
|
id: id,
|
2050
2051
|
value: cell,
|
2051
2052
|
format: format,
|
2052
|
-
options: options
|
2053
|
+
options: options,
|
2054
|
+
action: action
|
2053
2055
|
});
|
2054
2056
|
|
2055
2057
|
default:
|
@@ -2152,15 +2154,21 @@
|
|
2152
2154
|
|
2153
2155
|
|
2154
2156
|
var StringCellViewer = function StringCellViewer(_ref7) {
|
2155
|
-
var
|
2157
|
+
var id = _ref7.id,
|
2158
|
+
value = _ref7.value,
|
2156
2159
|
format = _ref7.format,
|
2157
|
-
options = _ref7.options
|
2160
|
+
options = _ref7.options,
|
2161
|
+
action = _ref7.action;
|
2158
2162
|
|
2159
2163
|
function buildOptions() {
|
2160
2164
|
var opts = typeof options === 'function' ? options() : options;
|
2161
2165
|
return opts;
|
2162
2166
|
}
|
2163
2167
|
|
2168
|
+
function onClick() {
|
2169
|
+
if (action) action(id, value, format, options);
|
2170
|
+
}
|
2171
|
+
|
2164
2172
|
var option = options ? buildOptions().find(function (o) {
|
2165
2173
|
return o.value === value;
|
2166
2174
|
}) : null;
|
@@ -2186,7 +2194,8 @@
|
|
2186
2194
|
|
2187
2195
|
case FORMATS$1.IMG:
|
2188
2196
|
text = /*#__PURE__*/React__default["default"].createElement("img", {
|
2189
|
-
src: text
|
2197
|
+
src: text,
|
2198
|
+
onClick: onClick
|
2190
2199
|
});
|
2191
2200
|
break;
|
2192
2201
|
|
@@ -2210,7 +2219,8 @@
|
|
2210
2219
|
}
|
2211
2220
|
|
2212
2221
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2213
|
-
className: "field-editor string-viewer " + className
|
2222
|
+
className: "field-editor string-viewer " + className,
|
2223
|
+
title: text
|
2214
2224
|
}, text);
|
2215
2225
|
};
|
2216
2226
|
/**
|