not-bulma 1.0.5 → 1.0.8

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.5",
3
+ "version": "1.0.8",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import {onMount} from 'svelte';
3
- import {notCommon} from '../../frame';
3
+ import notCommon from '../../frame/common';
4
4
  //if we want to address this indicator
5
5
  export let id = 'tagId';
6
6
 
@@ -1,8 +1,8 @@
1
1
  <script>
2
2
  import {onMount} from 'svelte';
3
-
3
+
4
4
  import {LOCALE} from '../../locale';
5
- import {notCommon} from '../../frame';
5
+ import notCommon from '../../frame/common';
6
6
  //if we want to address this tag
7
7
  export let id = 'tagId';
8
8
  export let title = 'tag';
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import {onMount} from 'svelte';
3
- import {notCommon} from '../../frame';
3
+ import notCommon from '../../frame/common';
4
4
 
5
5
  export let id = 'userCard';
6
6
  export let image = 'https://bulma.io/images/placeholders/32x32.png';
package/src/frame/base.js CHANGED
@@ -144,6 +144,9 @@ export default class notBase extends EventEmitter {
144
144
 
145
145
  destroy(){
146
146
  this.removeEvent();
147
+ this.setOptions(null);
148
+ this.setWorking(null);
149
+ this.setData(null);
147
150
  this.emit('destroy');
148
151
  }
149
152
 
@@ -18,12 +18,10 @@
18
18
  LOCALE
19
19
  } from '../../../locale';
20
20
 
21
- import {Buttons, Links, Images, Various} from '../../../elements';
22
-
23
- const {UIButtons} = Buttons;
24
- const {UILinks} = Links;
25
- const {UIImages} = Images;
26
- const {UIBooleans} = Various;
21
+ import UIButtons from '../../../elements/button/ui.buttons.svelte';
22
+ import UILinks from '../../../elements/link/ui.links.svelte';
23
+ import UIImages from '../../../elements/image/ui.images.svelte';
24
+ import UIBooleans from '../../../elements/various/ui.booleans.svelte';
27
25
 
28
26
  import TableSwitch from './controls/ui.switch.svelte';
29
27
  import TableTags from './controls/ui.tags.svelte';
@@ -52,14 +52,11 @@ class notController extends notBase {
52
52
  * @param {notApp} app
53
53
  */
54
54
  constructor(app, name) {
55
- super({
56
- working: {
57
- name
58
- }
59
- });
55
+ super({});
60
56
  this.app = app;
61
57
  this.app.setCurrentController(this);
62
58
  this.setWorking({
59
+ name,
63
60
  ready: false,
64
61
  views: {},
65
62
  libs: {},
@@ -88,6 +85,16 @@ class notController extends notBase {
88
85
  this.make[t] = interfaces[t];
89
86
  }
90
87
  }
88
+ this.on('destroy', ()=>{
89
+ this.app = null;
90
+ for(let uiName in this.ui){
91
+ this.ui[uiName].destroy && this.ui[uiName].destroy();
92
+ this.ui[uiName].$destroy && this.ui[uiName].$destroy();
93
+ this.ui[uiName] = null;
94
+ }
95
+ this.els = null;
96
+ this.make = null;
97
+ });
91
98
  return this;
92
99
  }
93
100
 
@@ -253,7 +260,7 @@ class notController extends notBase {
253
260
  */
254
261
  updateAutoName() {
255
262
  if (this.getOptions('autoName', OPT_DEFAULT_AUTO_NAME)) {
256
- this.setWorking('name', this.getModelURL());
263
+ //this.setWorking('name', this.getModelURL());
257
264
  }
258
265
  }
259
266
 
package/src/index.js CHANGED
@@ -8,7 +8,7 @@ import {LOCALE, say, notLocale} from './locale';
8
8
 
9
9
  const Locale = {LOCALE, say, notLocale};
10
10
 
11
- const { notCommon, COMPONENTS, FIELDS, VARIANTS } = Frame;
11
+ const { notCommon, COMPONENTS, FIELDS, VARIANTS, notFormUtils } = Frame;
12
12
 
13
13
  Object.keys(Elements.Forms).forEach((fieldtype) => {
14
14
  Frame.notFormUtils.addComponent(fieldtype, Elements.Forms[fieldtype]);
@@ -20,7 +20,7 @@ export {
20
20
  //application framework
21
21
  Frame,
22
22
  //shorts for common elements
23
- notCommon, COMPONENTS, FIELDS, VARIANTS,
23
+ notCommon, notFormUtils, COMPONENTS, FIELDS, VARIANTS,
24
24
  //localization
25
25
  Locale,
26
26
  LOCALE, say, notLocale