not-bulma 1.0.67 → 1.0.68
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import UICommon from "../common.js";
|
|
3
3
|
import ErrorsList from "../various/ui.errors.list.svelte";
|
|
4
4
|
|
|
5
|
-
import { createEventDispatcher } from "svelte";
|
|
5
|
+
import { createEventDispatcher, onMount } from "svelte";
|
|
6
6
|
let dispatch = createEventDispatcher();
|
|
7
7
|
|
|
8
8
|
export let inputStarted = false;
|
|
@@ -32,6 +32,14 @@
|
|
|
32
32
|
? UICommon.CLASS_OK
|
|
33
33
|
: UICommon.CLASS_ERR;
|
|
34
34
|
|
|
35
|
+
onMount(() => {
|
|
36
|
+
if (value instanceof Date) {
|
|
37
|
+
value = value.toISOString().split("T")[0];
|
|
38
|
+
} else if (value.indexOf("T") > 0) {
|
|
39
|
+
value = value.split("T")[0];
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
35
43
|
function onBlur(ev) {
|
|
36
44
|
let data = {
|
|
37
45
|
field: fieldname,
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
export let value;
|
|
3
|
+
export let max = 100;
|
|
4
|
+
export let color = "";
|
|
5
|
+
export let size = "";
|
|
6
|
+
export let classes = "";
|
|
8
7
|
</script>
|
|
9
8
|
|
|
10
|
-
<progress
|
|
9
|
+
<progress
|
|
10
|
+
class="
|
|
11
11
|
progress
|
|
12
12
|
{classes}
|
|
13
|
-
{color
|
|
14
|
-
{size
|
|
13
|
+
{color ? `is-${color}` : ''}
|
|
14
|
+
{size ? `is-${size}` : ''}"
|
|
15
|
+
{value}
|
|
16
|
+
{max}>{value}%</progress
|
|
17
|
+
>
|
|
@@ -34,10 +34,10 @@ class notTable extends EventEmitter {
|
|
|
34
34
|
constructor(input = {}) {
|
|
35
35
|
super();
|
|
36
36
|
this.id = "table-" + Math.random();
|
|
37
|
-
this.options =
|
|
38
|
-
DEFAULT_OPTIONS,
|
|
39
|
-
input.options ? input.options : {}
|
|
40
|
-
|
|
37
|
+
this.options = {
|
|
38
|
+
...DEFAULT_OPTIONS,
|
|
39
|
+
...(input.options ? input.options : {}),
|
|
40
|
+
};
|
|
41
41
|
this.ui = {};
|
|
42
42
|
this.data = {
|
|
43
43
|
raw: [],
|