@marianmeres/stuic 2.11.0 → 2.11.2
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.
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
import { onDestroy, type Snippet } from "svelte";
|
|
21
21
|
import { fileDropzone } from "../../actions/file-dropzone.svelte.js";
|
|
22
22
|
import { highlightDragover } from "../../actions/highlight-dragover.svelte.js";
|
|
23
|
-
import {
|
|
23
|
+
import { tooltip } from "../../actions/index.js";
|
|
24
24
|
import {
|
|
25
|
+
validate as validateAction,
|
|
25
26
|
type ValidateOptions,
|
|
26
27
|
type ValidationResult,
|
|
27
|
-
validate as validateAction,
|
|
28
28
|
} from "../../actions/validate.svelte.js";
|
|
29
29
|
import type { TranslateFn } from "../../types.js";
|
|
30
30
|
import { forceDownload } from "../../utils/force-download.js";
|
|
@@ -175,6 +175,8 @@
|
|
|
175
175
|
withOnProgress?: boolean;
|
|
176
176
|
classControls?: string;
|
|
177
177
|
isLoading?: boolean;
|
|
178
|
+
//
|
|
179
|
+
classWrap?: string;
|
|
178
180
|
}
|
|
179
181
|
</script>
|
|
180
182
|
|
|
@@ -243,6 +245,7 @@
|
|
|
243
245
|
}
|
|
244
246
|
},
|
|
245
247
|
serializeValue = JSON.stringify,
|
|
248
|
+
classWrap = "",
|
|
246
249
|
// ...rest
|
|
247
250
|
}: Props = $props();
|
|
248
251
|
|
|
@@ -447,7 +450,7 @@
|
|
|
447
450
|
{/snippet}
|
|
448
451
|
|
|
449
452
|
<div
|
|
450
|
-
class="w-full stuic-field-assets"
|
|
453
|
+
class={twMerge("w-full stuic-field-assets mb-8", classWrap)}
|
|
451
454
|
use:highlightDragover={() => ({
|
|
452
455
|
enabled: typeof processAssets === "function",
|
|
453
456
|
classes: ["outline-dashed outline-2 outline-neutral-300"],
|
|
@@ -65,6 +65,7 @@ export interface Props extends Record<string, any> {
|
|
|
65
65
|
withOnProgress?: boolean;
|
|
66
66
|
classControls?: string;
|
|
67
67
|
isLoading?: boolean;
|
|
68
|
+
classWrap?: string;
|
|
68
69
|
}
|
|
69
70
|
declare const FieldAssets: import("svelte").Component<Props, {}, "value">;
|
|
70
71
|
type FieldAssets = ReturnType<typeof FieldAssets>;
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
vals = vals.slice(0, limit);
|
|
559
559
|
extra = `, ... <span class="text-sm opacity-50">(+${(origLength - limit)})</span>`;
|
|
560
560
|
}
|
|
561
|
-
return vals.map(_renderOptionLabel).join(", ") + extra;
|
|
561
|
+
return vals.filter(v => v != null).map(_renderOptionLabel).join(", ") + extra;
|
|
562
562
|
} catch (e) {
|
|
563
563
|
clog.warn(e);
|
|
564
564
|
return `${e}`; // either invalid json or not array...
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export * from "./components/Progress/index.js";
|
|
|
41
41
|
export * from "./components/SlidingPanels/index.js";
|
|
42
42
|
export * from "./components/Spinner/index.js";
|
|
43
43
|
export * from "./components/Switch/index.js";
|
|
44
|
+
export * from "./components/Thc/index.js";
|
|
44
45
|
export * from "./components/TwCheck/index.js";
|
|
45
46
|
export * from "./components/TypeaheadInput/index.js";
|
|
46
47
|
export * from "./components/X/index.js";
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ export * from "./components/Progress/index.js";
|
|
|
42
42
|
export * from "./components/SlidingPanels/index.js";
|
|
43
43
|
export * from "./components/Spinner/index.js";
|
|
44
44
|
export * from "./components/Switch/index.js";
|
|
45
|
+
export * from "./components/Thc/index.js";
|
|
45
46
|
export * from "./components/TwCheck/index.js";
|
|
46
47
|
export * from "./components/TypeaheadInput/index.js";
|
|
47
48
|
export * from "./components/X/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marianmeres/stuic",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.2",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"!dist/**/*.test.*",
|
|
@@ -69,6 +69,9 @@
|
|
|
69
69
|
"lint": "eslint . && prettier --check .",
|
|
70
70
|
"test": "vitest --dir src/",
|
|
71
71
|
"svelte-check": "svelte-check",
|
|
72
|
-
"svelte-package": "svelte-package"
|
|
72
|
+
"svelte-package": "svelte-package",
|
|
73
|
+
"release": "./release.sh",
|
|
74
|
+
"rp": "npm run release patch && npm run publish",
|
|
75
|
+
"rpm": "npm run release minor && npm run publish"
|
|
73
76
|
}
|
|
74
77
|
}
|