not-bulma 1.2.55 → 1.2.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-bulma",
3
- "version": "1.2.55",
3
+ "version": "1.2.57",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -23,23 +23,27 @@ export default class CRUDActionList {
23
23
  delay = 0,
24
24
  actions = ["details", "update", "delete"],
25
25
  prepend = [],
26
- append = []
26
+ append = [],
27
+ onlyIcons = true
27
28
  ) {
28
29
  const ACTIONS = {
29
30
  details: {
30
31
  action: () => controller.goDetails(value, delay),
31
- title: "Подробнее",
32
+ ...(onlyIcons
33
+ ? { icon: "circle-info" }
34
+ : { title: "Подробнее" }),
32
35
  size: "small",
33
36
  },
34
37
  update: {
35
38
  action: () => controller.goUpdate(value, delay),
36
- title: "Изменить",
39
+ ...(onlyIcons ? { icon: "edit" } : { title: "Изменить" }),
40
+ color: "warning",
37
41
  size: "small",
38
42
  },
39
43
  delete: {
40
44
  action: () => controller.goDelete(value, delay),
41
45
  color: "danger",
42
- title: "Удалить",
46
+ ...(onlyIcons ? { icon: "trash" } : { title: "Удалить" }),
43
47
  size: "small",
44
48
  style: "outlined",
45
49
  },