iconograph-ui 1.4.2 → 1.4.4

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.
@@ -4,6 +4,10 @@
4
4
  export let format;
5
5
 
6
6
  function formatDate(date, format, locale = "fr-FR") {
7
+ console.log(date);
8
+ if (date === null || date === undefined)
9
+ return "";
10
+
7
11
  if (!(date instanceof Date)) {
8
12
  date = new Date(date);
9
13
  }
@@ -2,6 +2,7 @@
2
2
  // @ts-nocheck
3
3
  export let fields;
4
4
  export let field;
5
+ export let style;
5
6
 
6
7
  export const __filter_options = fields;
7
8
 
@@ -16,11 +17,13 @@
16
17
  let f_arr = transform(fields);
17
18
  </script>
18
19
 
19
- <!-- svelte-ignore a11y-click-events-have-key-events -->
20
- <!-- svelte-ignore a11y-no-static-element-interactions -->
20
+ {#if style == 2}
21
+ {f_arr[field]}
22
+ {:else}
21
23
  <div class="indicator-wrapper">
22
- <span>{f_arr[field]} </span>
24
+ <span>{f_arr[field]}</span>
23
25
  </div>
26
+ {/if}
24
27
 
25
28
  <style>
26
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iconograph-ui",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "A Svelte Kit components library",
5
5
  "main": "./index.js",
6
6
  "svelte": "./index.js",