not-bulma 1.2.3 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-bulma",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -7,7 +7,9 @@ export default class CRUDActionList {
7
7
  controller,
8
8
  value,
9
9
  delay = 0,
10
- actions = ["details", "update", "delete"]
10
+ actions = ["details", "update", "delete"],
11
+ prepend = [],
12
+ append = []
11
13
  ) {
12
14
  const ACTIONS = {
13
15
  details: {
@@ -28,12 +30,13 @@ export default class CRUDActionList {
28
30
  style: "outlined",
29
31
  },
30
32
  };
31
- const actionsButtons = [];
33
+ const actionsButtons = [...prepend];
32
34
  if (Array.isArray(actions)) {
33
35
  actions.forEach((actionName) =>
34
36
  actionsButtons.push(ACTIONS[actionName])
35
37
  );
36
38
  }
39
+ actionsButtons.push(...append);
37
40
  return actionsButtons;
38
41
  }
39
42