@visns-studio/visns-components 1.8.2 → 1.8.4
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.
|
@@ -220,9 +220,16 @@ const DataGrid = forwardRef(
|
|
|
220
220
|
case "delete":
|
|
221
221
|
confirmAlert({
|
|
222
222
|
title: "Delete Item",
|
|
223
|
-
message:
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
message:
|
|
224
|
+
s.description && s.description !== ""
|
|
225
|
+
? s.description
|
|
226
|
+
: `Are you sure you want to delete ${
|
|
227
|
+
d.name
|
|
228
|
+
? d.name
|
|
229
|
+
: d.label
|
|
230
|
+
? d.label
|
|
231
|
+
: "this item"
|
|
232
|
+
}?`,
|
|
226
233
|
buttons: [
|
|
227
234
|
{
|
|
228
235
|
label: "Yes",
|
|
@@ -377,6 +377,17 @@ function Field({
|
|
|
377
377
|
onChange={onChange}
|
|
378
378
|
/>
|
|
379
379
|
);
|
|
380
|
+
case "richeditor":
|
|
381
|
+
return (
|
|
382
|
+
<ReactQuill
|
|
383
|
+
theme="snow"
|
|
384
|
+
data-name={settings.id}
|
|
385
|
+
onChange={(value, event) => {
|
|
386
|
+
onChangeRicheditor(event, value, settings.id);
|
|
387
|
+
}}
|
|
388
|
+
value={inputValue || ""}
|
|
389
|
+
/>
|
|
390
|
+
);
|
|
380
391
|
default:
|
|
381
392
|
return "";
|
|
382
393
|
}
|
package/package.json
CHANGED