@humandialog/forms.svelte 0.5.23 → 0.5.24

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.
@@ -215,6 +215,12 @@ function getWidthStyle() {
215
215
  else
216
216
  return "width: 92%;";
217
217
  }
218
+ let columnContainerElement;
219
+ async function dblclick(e) {
220
+ if (e.target == column_element || e.target == columnContainerElement) {
221
+ await add(KanbanColumnBottom);
222
+ }
223
+ }
218
224
  </script>
219
225
 
220
226
  <!-- svelte-ignore a11y-click-events-have-key-events -->
@@ -228,11 +234,12 @@ function getWidthStyle() {
228
234
  min-h-[calc(100vh-5rem)]
229
235
  rounded-md border border-transparent
230
236
  {selected_class} {focused_class}"
231
-
232
-
237
+
238
+ bind:this={columnContainerElement}
233
239
  style={styleWidth}
234
240
  use:selectable={columnDef}
235
- on:click={activate}>
241
+ on:click={activate}
242
+ on:dblclick={dblclick}>
236
243
  <header class:cursor-pointer={!is_row_active && columnDef.operations} bind:this={headerElement}>
237
244
  <h2 class="mt-2 mb-2 text-lg sm:text-xs uppercase w-full min-h-[1rem] text-center whitespace-nowrap relative">
238
245
  <span
@@ -309,7 +309,7 @@ async function insert(title2, summary, after) {
309
309
  {/if}
310
310
 
311
311
  {#if show_insertion_row_after_element == END_OF_LIST}
312
- <Inserter onInsert={async (title, summary) => {await insert(text, summary, null)}}
312
+ <Inserter onInsert={async (title, summary) => {await insert(title, summary, null)}}
313
313
  icon={definition.inserter_icon}
314
314
  bind:this={inserter} />
315
315
  {/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humandialog/forms.svelte",
3
- "version": "0.5.23",
3
+ "version": "0.5.24",
4
4
  "description": "Basic Svelte UI components for Object Reef applications",
5
5
  "devDependencies": {
6
6
  "@playwright/test": "^1.28.1",