not-bulma 1.2.51 → 1.2.53

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.51",
3
+ "version": "1.2.53",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -1,5 +1,4 @@
1
1
  import UICommon from "../../elements/common";
2
- import { say } from "../../locale";
3
2
 
4
3
  import notBreadcrumbs from "../components/breadcrumbs";
5
4
 
@@ -33,6 +32,26 @@ class notCRUD extends notController {
33
32
 
34
33
  WS_CHECK_INTERVAL = 200;
35
34
 
35
+ static get LABELS() {
36
+ return Object.freeze({
37
+ plural: `${this.MODULE_NAME}:${this.MODEL_NAME}_label_plural`,
38
+ single: `${this.MODULE_NAME}:${this.MODEL_NAME}_label_single`,
39
+ });
40
+ }
41
+
42
+ static getMenu(itemCustomProps = {}) {
43
+ return [
44
+ {
45
+ section: this.MODULE_NAME,
46
+ title: this.LABELS.plural,
47
+ url: `/${notCommon.lowerFirstLetter(
48
+ this.MODULE_NAME
49
+ )}/${notCommon.lowerFirstLetter(this.MODEL_NAME)}`,
50
+ ...itemCustomProps,
51
+ },
52
+ ];
53
+ }
54
+
36
55
  constructor(
37
56
  app,
38
57
  name,