@ims360/svelte-ivory 0.3.4 → 0.3.6

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.
@@ -57,6 +57,7 @@
57
57
  {/if}
58
58
  <ChevronDown class={['ml-auto transition-all', popover?.isOpen() && 'rotate-180']} />
59
59
  </button>
60
+ <input {...props.form.as('hidden', value)} />
60
61
  </Input>
61
62
 
62
63
  <Popover
@@ -1 +1 @@
1
- {"version":3,"file":"Select.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/inputs/select/Select.svelte.ts"],"names":[],"mappings":"AAKI,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CACpC;AAED,eAAO,MAAO,gBAAgB,uBAAE,gBAAgB,2CAAkC,CAAC;AAEnF,UAAU,KAAM,SAAQ,UAAU,CAAC,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACrB;AA+CL,QAAA,MAAM,MAAM,2CAAwC,CAAC;AACrD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AACxC,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Select.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/inputs/select/Select.svelte.ts"],"names":[],"mappings":"AAKI,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CACpC;AAED,eAAO,MAAO,gBAAgB,uBAAE,gBAAgB,2CAAkC,CAAC;AAEnF,UAAU,KAAM,SAAQ,UAAU,CAAC,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;CACrB;AAgDL,QAAA,MAAM,MAAM,2CAAwC,CAAC;AACrD,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AACxC,eAAe,MAAM,CAAC"}
@@ -54,7 +54,7 @@
54
54
 
55
55
  // this must be separate to the above effect, since otherwise the width would be reset on every scroll
56
56
  $effect(() => {
57
- if (!resizable && typeof width !== 'undefined') column.width = width;
57
+ if (!resizable && typeof width !== 'undefined') column.resize(width);
58
58
  });
59
59
 
60
60
  const widthStyle = $derived(
@@ -27,7 +27,7 @@ export class ColumnController {
27
27
  this.minWidth = conf.minWidth;
28
28
  }
29
29
  else {
30
- this.minWidth = this.width * MINIMAL_WIDTH_MULTIPLIER;
30
+ this.minWidth = (conf.width ?? DEFAULT_WIDTH) * MINIMAL_WIDTH_MULTIPLIER;
31
31
  }
32
32
  const newResizable = conf.resizable ?? false;
33
33
  if (newResizable !== this.resizable) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ims360/svelte-ivory",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "keywords": [
5
5
  "svelte"
6
6
  ],
@@ -57,6 +57,7 @@
57
57
  {/if}
58
58
  <ChevronDown class={['ml-auto transition-all', popover?.isOpen() && 'rotate-180']} />
59
59
  </button>
60
+ <input {...props.form.as('hidden', value)} />
60
61
  </Input>
61
62
 
62
63
  <Popover
@@ -54,7 +54,7 @@
54
54
 
55
55
  // this must be separate to the above effect, since otherwise the width would be reset on every scroll
56
56
  $effect(() => {
57
- if (!resizable && typeof width !== 'undefined') column.width = width;
57
+ if (!resizable && typeof width !== 'undefined') column.resize(width);
58
58
  });
59
59
 
60
60
  const widthStyle = $derived(
@@ -40,7 +40,7 @@ export class ColumnController {
40
40
  if (typeof conf.minWidth !== 'undefined') {
41
41
  this.minWidth = conf.minWidth;
42
42
  } else {
43
- this.minWidth = this.width * MINIMAL_WIDTH_MULTIPLIER;
43
+ this.minWidth = (conf.width ?? DEFAULT_WIDTH) * MINIMAL_WIDTH_MULTIPLIER;
44
44
  }
45
45
  const newResizable = conf.resizable ?? false;
46
46
  if (newResizable !== this.resizable) {