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 +1 -1
- package/src/elements/various/ui.indicator.svelte +1 -1
- package/src/elements/various/ui.tag.svelte +2 -2
- package/src/elements/various/ui.user.card.svelte +1 -1
- package/src/frame/base.js +3 -0
- package/src/frame/components/table/notTableCell.svelte +4 -6
- package/src/frame/controller.js +13 -6
- package/src/index.js +2 -2
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import {onMount} from 'svelte';
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import {LOCALE} from '../../locale';
|
|
5
|
-
import
|
|
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';
|
package/src/frame/base.js
CHANGED
|
@@ -18,12 +18,10 @@
|
|
|
18
18
|
LOCALE
|
|
19
19
|
} from '../../../locale';
|
|
20
20
|
|
|
21
|
-
import
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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';
|
package/src/frame/controller.js
CHANGED
|
@@ -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
|