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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-bulma",
3
- "version": "0.3.79",
3
+ "version": "0.3.80",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -32,8 +32,8 @@
32
32
  event.preventDefault();
33
33
  if (typeof navigate === 'function') {
34
34
  navigate({
35
- full: event.target.getAttribute('href'),
36
- short: event.target.dataset.href
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
 
@@ -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” />
@@ -1,9 +0,0 @@
1
- export const parameters = {
2
- actions: { argTypesRegex: "^on[A-Z].*" },
3
- controls: {
4
- matchers: {
5
- color: /(background|color)$/i,
6
- date: /Date$/,
7
- },
8
- },
9
- }
@@ -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
- }