not-bulma 1.1.7 → 1.1.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.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -6,11 +6,9 @@
6
6
  import { DEFAULT_STATUS_SUCCESS } from "../../frame/const";
7
7
 
8
8
  import { onMount, createEventDispatcher } from "svelte";
9
- const dispatch = createEventDispatcher();
10
9
 
11
10
  export let inputStarted = false;
12
11
  export let value;
13
- export let variants = [];
14
12
  export let placeholder = "empty select item";
15
13
  export let fieldname = "selectFromModel";
16
14
  export let modelName = "";
@@ -37,6 +35,7 @@
37
35
  }
38
36
 
39
37
  let loaded = false;
38
+ let variants = [];
40
39
 
41
40
  $: disabled = !loaded;
42
41
 
@@ -68,7 +67,7 @@
68
67
  <UISelect
69
68
  {inputStarted}
70
69
  {value}
71
- {variants}
70
+ bind:variants
72
71
  {placeholder}
73
72
  {fieldname}
74
73
  {icon}
@@ -0,0 +1,9 @@
1
+ <script>
2
+ import UITagValue from "./ui.tag.value.svelte";
3
+
4
+ export let value = [];
5
+ </script>
6
+
7
+ {#each value as tagValueProps}
8
+ <UITagValue {...tagValueProps} />
9
+ {/each}
@@ -10,6 +10,9 @@
10
10
 
11
11
  <div class="tags has-addons {classes}" {id}>
12
12
  {#if title}
13
- <UITag {...title} />{/if}{#if value}<UITag {...value} />
13
+ <UITag {...title} />
14
+ {/if}
15
+ {#if value}
16
+ <UITag {...value} />
14
17
  {/if}
15
18
  </div>