@poirazis/supercomponents-shared 1.0.20 → 1.0.21

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": "@poirazis/supercomponents-shared",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Shared Svelte components library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -37,7 +37,7 @@
37
37
  originalValue = value;
38
38
  localValue = value;
39
39
  lastEdit = undefined;
40
- return "View";
40
+ return cellOptions.initialState ?? "View";
41
41
  },
42
42
  focus() {
43
43
  if (!cellOptions.readonly && !cellOptions.disabled) return "Editing";
@@ -33,7 +33,7 @@
33
33
  reset() {
34
34
  localValue = value;
35
35
  lastEdit = undefined;
36
- return "View";
36
+ return cellOptions?.initialState ?? "View";
37
37
  },
38
38
  },
39
39
  View: {
@@ -120,14 +120,6 @@
120
120
  clearTimeout(timer);
121
121
  cellState.reset();
122
122
  });
123
-
124
- $: if (inEdit)
125
- console.log(
126
- "Entering edit mode for cell",
127
- value,
128
- localValue,
129
- originalValue
130
- );
131
123
  </script>
132
124
 
133
125
  <!-- svelte-ignore a11y-no-noninteractive-tabindex -->