@ims360/svelte-ivory 0.4.9 → 0.4.10
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/dist/components/layout/dialog/Dialog.svelte +1 -1
- package/dist/components/layout/drawer/Drawer.svelte +2 -2
- package/dist/components/table/ColumnHead.svelte +2 -0
- package/dist/components/table/ColumnHead.svelte.d.ts.map +1 -1
- package/dist/components/table/columnController.svelte.d.ts +1 -1
- package/dist/components/table/columnController.svelte.d.ts.map +1 -1
- package/dist/components/table/columnController.svelte.js +3 -2
- package/package.json +1 -1
- package/src/lib/components/layout/dialog/Dialog.svelte +1 -1
- package/src/lib/components/layout/drawer/Drawer.svelte +2 -2
- package/src/lib/components/table/ColumnHead.svelte +2 -0
- package/src/lib/components/table/columnController.svelte.ts +3 -3
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
oncancel={requestClose}
|
|
59
59
|
onclose={close}
|
|
60
60
|
class={merge(
|
|
61
|
-
'backdrop:bg-surface-800-200/30 h-full max-h-none w-screen max-w-full bg-transparent',
|
|
61
|
+
'backdrop:bg-surface-800-200/30 h-full max-h-none w-screen max-w-full overflow-hidden bg-transparent',
|
|
62
62
|
theme.current.dialog?.class,
|
|
63
63
|
clazz
|
|
64
64
|
)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnHead.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/table/ColumnHead.svelte.ts"],"names":[],"mappings":"AAKI,OAAO,EAA0B,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAOlE,wBAAgB,oBAAoB,IAAI,gBAAgB,CAEvD;AAED,KAAK,KAAK,GAAG;IACT,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"ColumnHead.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/table/ColumnHead.svelte.ts"],"names":[],"mappings":"AAKI,OAAO,EAA0B,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAOlE,wBAAgB,oBAAoB,IAAI,gBAAgB,CAEvD;AAED,KAAK,KAAK,GAAG;IACT,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AA+CN,QAAA,MAAM,UAAU,2CAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnController.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/table/columnController.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"columnController.svelte.d.ts","sourceRoot":"","sources":["../../../src/lib/components/table/columnController.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGtC,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;CAC5B;AAED,qBAAa,gBAAgB;IACzB,EAAE,SAAc;IAChB,MAAM,uBAAgC;IAGtC,KAAK,qBAAoB;IACzB,QAAQ,SAAyB;IACjC,QAAQ,UAAiB;IACzB,SAAS,UAAiB;IAC1B,QAAQ,UAAiB;gBAEb,IAAI,EAAE,YAAY;IAS9B,YAAY,CAAC,IAAI,EAAE,YAAY;IAmB/B,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM;CAQ3B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {} from 'svelte';
|
|
1
2
|
const DEFAULT_WIDTH = 250;
|
|
2
3
|
export const MINIMAL_WIDTH_MULTIPLIER = 0.5;
|
|
3
4
|
export class ColumnController {
|
|
@@ -23,8 +24,8 @@ export class ColumnController {
|
|
|
23
24
|
const newWidth = typeof conf.width === 'undefined' ? DEFAULT_WIDTH : conf.width;
|
|
24
25
|
this.width = newWidth;
|
|
25
26
|
}
|
|
26
|
-
else {
|
|
27
|
-
this.width = conf.width
|
|
27
|
+
else if (!this.resizable) {
|
|
28
|
+
this.width = typeof conf.width === 'number' ? conf.width : this.width;
|
|
28
29
|
}
|
|
29
30
|
if (typeof conf.minWidth !== 'undefined') {
|
|
30
31
|
this.minWidth = conf.minWidth;
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
oncancel={requestClose}
|
|
59
59
|
onclose={close}
|
|
60
60
|
class={merge(
|
|
61
|
-
'backdrop:bg-surface-800-200/30 h-full max-h-none w-screen max-w-full bg-transparent',
|
|
61
|
+
'backdrop:bg-surface-800-200/30 h-full max-h-none w-screen max-w-full overflow-hidden bg-transparent',
|
|
62
62
|
theme.current.dialog?.class,
|
|
63
63
|
clazz
|
|
64
64
|
)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Snippet } from 'svelte';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_WIDTH = 250;
|
|
4
4
|
export const MINIMAL_WIDTH_MULTIPLIER = 0.5;
|
|
@@ -36,8 +36,8 @@ export class ColumnController {
|
|
|
36
36
|
if (typeof this.width === 'undefined') {
|
|
37
37
|
const newWidth = typeof conf.width === 'undefined' ? DEFAULT_WIDTH : conf.width;
|
|
38
38
|
this.width = newWidth;
|
|
39
|
-
} else {
|
|
40
|
-
this.width = conf.width
|
|
39
|
+
} else if (!this.resizable) {
|
|
40
|
+
this.width = typeof conf.width === 'number' ? conf.width : this.width;
|
|
41
41
|
}
|
|
42
42
|
if (typeof conf.minWidth !== 'undefined') {
|
|
43
43
|
this.minWidth = conf.minWidth;
|