iconograph-ui 1.4.6 → 1.4.7

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,7 +4,6 @@
4
4
  export let format;
5
5
 
6
6
  function formatDate(date, format, locale = "fr-FR") {
7
- console.log(date);
8
7
  if (date === null || date === undefined)
9
8
  return "";
10
9
 
@@ -4,6 +4,10 @@
4
4
  export let value;
5
5
  export let options = []
6
6
  export let required = false;
7
+
8
+ if (type == 'date')
9
+ console.log(value);
10
+
7
11
  </script>
8
12
 
9
13
  {#if type == "textarea"}
@@ -12,7 +12,7 @@
12
12
  {#each columns as c}
13
13
  <div style="min-width: {c.width}px; width: {c.width}px;">
14
14
  {#if c.component}
15
- <svelte:component this={c.component} {...c.props} {...{ [c.field]: row[c.field], ...row }}/>
15
+ <svelte:component this={c.component} {...c.props} {...{ [c.field]: row[c.field], ...row }} {...{ [c.props.__field_name]: row[c.field], ...row }}/>
16
16
  {:else}
17
17
  <span>{ (row[c.field] && row[c.field] != "undefined") ? row[c.field] : ''}</span>
18
18
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iconograph-ui",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "A Svelte Kit components library",
5
5
  "main": "./index.js",
6
6
  "svelte": "./index.js",