not-bulma 1.0.9 → 1.0.12

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.0.9",
3
+ "version": "1.0.12",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -7,8 +7,8 @@ class notBreadcrumbs{
7
7
 
8
8
  static render({target, root = '', navigate}){
9
9
  this.remove();
10
- if(Breadcrumbs.UIConstructor){
11
- this.ui = new Breadcrumbs.UIConstructor({
10
+ if(notBreadcrumbs.UIConstructor){
11
+ this.ui = new notBreadcrumbs.UIConstructor({
12
12
  target,
13
13
  props:{
14
14
  items: this.getBreadcrumbs(),
@@ -10,7 +10,7 @@ import notCommon from '../common';
10
10
  import CRUDVariantsPreloader from './variants.preloader.js';
11
11
  import CRUDRouter from './router.js';
12
12
  import CRUDMessage from './message.js';
13
- import * as CRUDActions from './actions';
13
+ import CRUDActions from './actions';
14
14
 
15
15
  const BREADCRUMBS = [];
16
16
  const TITLE_FIELDS_PRIORITY = ['title', 'label', 'id', 'name'];
@@ -24,7 +24,7 @@ class notCRUD extends notController {
24
24
  TITLE_FIELDS_PRIORITY = TITLE_FIELDS_PRIORITY;
25
25
  static ERROR_DEFAULT = UICommon.ERROR_DEFAULT;
26
26
 
27
- constructor(app, name, { actions, router, preloader}) {
27
+ constructor(app, name, { actions, router, preloader} = {}) {
28
28
  super(app, `CRUD.${name}`);
29
29
  if(actions){
30
30
  this.#actions = {...this.#actions, ...actions};
@@ -27,7 +27,7 @@ export default class CRUDRouter{
27
27
  controller.setCurrentAction(actionName);
28
28
  return controller.runAction(actionName, params);
29
29
  }catch(e){
30
- notCommon.report(e);
30
+ controller.report(e);
31
31
  controller.showErrorMessage(e);
32
32
  }
33
33
  }