not-bulma 0.3.79 → 0.3.80
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/navbar/ui.top.svelte +2 -2
- package/src/ncCRUD.js +2 -2
- package/.storybook/main.js +0 -12
- package/.storybook/preview-head.html +0 -1
- package/.storybook/preview.js +0 -9
- package/src/stories/button2.css +0 -30
package/package.json
CHANGED
package/src/navbar/ui.top.svelte
CHANGED
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
event.preventDefault();
|
|
33
33
|
if (typeof navigate === 'function') {
|
|
34
34
|
navigate({
|
|
35
|
-
full: event.
|
|
36
|
-
short: event.
|
|
35
|
+
full: event.currentTarget.getAttribute('href'),
|
|
36
|
+
short: event.currentTarget.dataset.href
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
return false;
|
package/src/ncCRUD.js
CHANGED
|
@@ -417,14 +417,14 @@ class ncCRUD extends notController {
|
|
|
417
417
|
|
|
418
418
|
async onActionSubmit(action, item){
|
|
419
419
|
try{
|
|
420
|
-
this.ui[action].setLoading();
|
|
420
|
+
this.ui[action] && this.ui[action].setLoading();
|
|
421
421
|
let result = await this.getModel(item)[`$${action}`]();
|
|
422
422
|
return this.processResult(this.ui[action], result);
|
|
423
423
|
}catch(e){
|
|
424
424
|
this.processResult(this.ui[action], e);
|
|
425
425
|
return false;
|
|
426
426
|
}finally{
|
|
427
|
-
this.ui[action].resetLoading();
|
|
427
|
+
this.ui[action] && this.ui[action].resetLoading();
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
|
package/.storybook/main.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"stories": [
|
|
3
|
-
"../src/**/*.stories.mdx",
|
|
4
|
-
"../src/**/*.stories.@(js|jsx|ts|tsx|svelte)"
|
|
5
|
-
],
|
|
6
|
-
"addons": [
|
|
7
|
-
"@storybook/addon-links",
|
|
8
|
-
"@storybook/addon-essentials",
|
|
9
|
-
"@storybook/addon-svelte-csf"
|
|
10
|
-
],
|
|
11
|
-
"framework": "@storybook/svelte"
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<link rel=”preload” href=”/notBulma.css” />
|
package/.storybook/preview.js
DELETED
package/src/stories/button2.css
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
.storybook-button {
|
|
2
|
-
font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
3
|
-
font-weight: 700;
|
|
4
|
-
border: 0;
|
|
5
|
-
border-radius: 3em;
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
display: inline-block;
|
|
8
|
-
line-height: 1;
|
|
9
|
-
}
|
|
10
|
-
.storybook-button--primary {
|
|
11
|
-
color: white;
|
|
12
|
-
background-color: #1ea7fd;
|
|
13
|
-
}
|
|
14
|
-
.storybook-button--secondary {
|
|
15
|
-
color: #333;
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
|
|
18
|
-
}
|
|
19
|
-
.storybook-button--small {
|
|
20
|
-
font-size: 12px;
|
|
21
|
-
padding: 10px 16px;
|
|
22
|
-
}
|
|
23
|
-
.storybook-button--medium {
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
padding: 11px 20px;
|
|
26
|
-
}
|
|
27
|
-
.storybook-button--large {
|
|
28
|
-
font-size: 16px;
|
|
29
|
-
padding: 12px 24px;
|
|
30
|
-
}
|