@marianmeres/stuic 2.42.1 → 2.43.0
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.
|
@@ -55,9 +55,14 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export interface Props {
|
|
58
|
-
class?: string;
|
|
59
58
|
assets: string[] | AssetPreview[];
|
|
60
59
|
classControls?: string;
|
|
60
|
+
//
|
|
61
|
+
modalClassBackdrop?: string;
|
|
62
|
+
modalClassInner?: string;
|
|
63
|
+
modalClass?: string;
|
|
64
|
+
modalClassMain?: string;
|
|
65
|
+
//
|
|
61
66
|
/** Optional translate function */
|
|
62
67
|
t?: TranslateFn;
|
|
63
68
|
/** Optional delete handler - receives the current asset and its index */
|
|
@@ -167,7 +172,10 @@
|
|
|
167
172
|
const clog = createClog("AssetsPreview", { color: "auto" });
|
|
168
173
|
|
|
169
174
|
let {
|
|
170
|
-
|
|
175
|
+
modalClassBackdrop = "",
|
|
176
|
+
modalClassInner = "",
|
|
177
|
+
modalClass = "",
|
|
178
|
+
modalClassMain = "",
|
|
171
179
|
assets: _assets,
|
|
172
180
|
t = t_default,
|
|
173
181
|
classControls = "",
|
|
@@ -386,10 +394,10 @@
|
|
|
386
394
|
<Modal
|
|
387
395
|
bind:this={modal}
|
|
388
396
|
onEscape={modal?.close}
|
|
389
|
-
classBackdrop="p-4 md:p-4"
|
|
390
|
-
classInner="max-w-full h-full"
|
|
391
|
-
class="max-h-full md:max-h-full rounded-lg {
|
|
392
|
-
classMain="flex items-center justify-center relative stuic-assets-preview stuic-assets-preview-open"
|
|
397
|
+
classBackdrop="p-4 md:p-4 {modalClassBackdrop}"
|
|
398
|
+
classInner="max-w-full h-full {modalClassInner}"
|
|
399
|
+
class="max-h-full md:max-h-full rounded-lg {modalClass}"
|
|
400
|
+
classMain="flex items-center justify-center relative stuic-assets-preview stuic-assets-preview-open {modalClassMain}"
|
|
393
401
|
>
|
|
394
402
|
{@const previewAsset = assets?.[previewIdx]}
|
|
395
403
|
{#if previewAsset}
|
|
@@ -10,9 +10,12 @@ export interface AssetPreview {
|
|
|
10
10
|
type?: string;
|
|
11
11
|
}
|
|
12
12
|
export interface Props {
|
|
13
|
-
class?: string;
|
|
14
13
|
assets: string[] | AssetPreview[];
|
|
15
14
|
classControls?: string;
|
|
15
|
+
modalClassBackdrop?: string;
|
|
16
|
+
modalClassInner?: string;
|
|
17
|
+
modalClass?: string;
|
|
18
|
+
modalClassMain?: string;
|
|
16
19
|
/** Optional translate function */
|
|
17
20
|
t?: TranslateFn;
|
|
18
21
|
/** Optional delete handler - receives the current asset and its index */
|