intelliwaketssveltekitv25 0.1.57 → 0.1.59
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/Definitions.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export type TListGroupItem = {
|
|
|
96
96
|
export type TMasterDetailListGroupItem = Omit<TListGroupItem, 'subs'> & {
|
|
97
97
|
subs?: TMasterDetailListGroupItem[];
|
|
98
98
|
roundedDetailFormatted?: boolean;
|
|
99
|
-
detailShowHeader?: boolean;
|
|
99
|
+
detailShowHeader?: boolean | string;
|
|
100
100
|
};
|
|
101
101
|
export declare const MasterDetailSubItemBuild: (item: TListGroupItem, items: TListGroupItem[], collapsedValues: (string | null | undefined)[], options?: {
|
|
102
102
|
start_date?: string | null;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { quintOut } from 'svelte/easing'
|
|
5
5
|
import { fly } from 'svelte/transition'
|
|
6
6
|
import { browser } from '$app/environment'
|
|
7
|
-
import type { TMasterDetailListGroupItem } from './Definitions'
|
|
7
|
+
import type { IFAProps, TMasterDetailListGroupItem } from './Definitions'
|
|
8
8
|
import { type TFindIsActive, ToPascalCase } from '@solidbasisventures/intelliwaketsfoundation'
|
|
9
9
|
import { PathAnalyzer } from './PathAnalyzer'
|
|
10
10
|
import type { Snippet } from 'svelte'
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
rounded = false,
|
|
28
28
|
roundedDetailFormatted = true,
|
|
29
29
|
detailShowHeader = false,
|
|
30
|
+
detailShowHeaderFAProps = null,
|
|
30
31
|
showDetailOnNoSelection = true,
|
|
31
32
|
showAllPrint = false,
|
|
32
33
|
smallScreenWidth = 767, // 1024
|
|
@@ -51,7 +52,8 @@
|
|
|
51
52
|
noLinkReplace?: boolean
|
|
52
53
|
rounded?: boolean
|
|
53
54
|
roundedDetailFormatted?: boolean
|
|
54
|
-
detailShowHeader?: boolean
|
|
55
|
+
detailShowHeader?: boolean | string
|
|
56
|
+
detailShowHeaderFAProps?: IFAProps | null
|
|
55
57
|
showDetailOnNoSelection?: boolean
|
|
56
58
|
showAllPrint?: boolean
|
|
57
59
|
smallScreenWidth?: number
|
|
@@ -73,7 +75,7 @@
|
|
|
73
75
|
|
|
74
76
|
let showRoundedDetailFormatted = $derived(rounded && (openItem?.roundedDetailFormatted ?? roundedDetailFormatted))
|
|
75
77
|
|
|
76
|
-
let showDetailShowHeader = $derived(
|
|
78
|
+
let showDetailShowHeader = $derived(!openItem ? false : (openItem?.detailShowHeader ?? detailShowHeader))
|
|
77
79
|
|
|
78
80
|
let innerWidth = $state<number | undefined>(undefined)
|
|
79
81
|
|
|
@@ -146,31 +148,29 @@
|
|
|
146
148
|
{/if}
|
|
147
149
|
{/if}
|
|
148
150
|
|
|
149
|
-
{#if !smallScreen || !!pathAnalyzer.activePageSlug}
|
|
150
|
-
<div class="grid grid-rows-[auto_1fr] overflow-hidden"
|
|
151
|
+
{#if (!smallScreen || !!pathAnalyzer.activePageSlug) && (showDetailOnNoSelection || !!openItem)}
|
|
152
|
+
<div class="grid grid-rows-[auto_1fr] overflow-hidden"
|
|
153
|
+
transition:fly|local={!animate ? undefined : {duration: 300, x: 100, opacity: 0, easing: quintOut}}>
|
|
151
154
|
<div>
|
|
152
|
-
{#if showDetailShowHeader}
|
|
155
|
+
{#if !!showDetailShowHeader}
|
|
153
156
|
<h3 class="text-center">
|
|
154
|
-
{#if !!openItem?.faProps}
|
|
155
|
-
<Icon {...openItem
|
|
157
|
+
{#if !!openItem?.faProps || !!detailShowHeaderFAProps}
|
|
158
|
+
<Icon {...(openItem?.faProps ?? detailShowHeaderFAProps)} fw />
|
|
156
159
|
{/if}
|
|
157
|
-
{openItem?.title ?? ''}
|
|
160
|
+
{typeof showDetailShowHeader === 'string' ? showDetailShowHeader : openItem?.title ?? ''}
|
|
158
161
|
</h3>
|
|
159
162
|
{/if}
|
|
160
163
|
</div>
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
{/if}
|
|
172
|
-
</div>
|
|
173
|
-
{/if}
|
|
164
|
+
<div
|
|
165
|
+
class='masterDetailMaster relative grid grid-rows-1 md:relative overflow-hidden print:overflow-visible max-md:h-full max-md:w-full {detailClass}'
|
|
166
|
+
class:bg-white={showRoundedDetailFormatted}
|
|
167
|
+
class:dark:bg-slate-700={showRoundedDetailFormatted}
|
|
168
|
+
class:rounded-lg={showRoundedDetailFormatted}
|
|
169
|
+
class:drop-shadow={showRoundedDetailFormatted}>
|
|
170
|
+
{#if detail}
|
|
171
|
+
{@render detail()}
|
|
172
|
+
{/if}
|
|
173
|
+
</div>
|
|
174
174
|
</div>
|
|
175
175
|
{/if}
|
|
176
176
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TMasterDetailListGroupItem } from './Definitions';
|
|
1
|
+
import type { IFAProps, TMasterDetailListGroupItem } from './Definitions';
|
|
2
2
|
import { type TFindIsActive } from '@solidbasisventures/intelliwaketsfoundation';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
4
|
type $$ComponentProps = {
|
|
@@ -17,7 +17,8 @@ type $$ComponentProps = {
|
|
|
17
17
|
noLinkReplace?: boolean;
|
|
18
18
|
rounded?: boolean;
|
|
19
19
|
roundedDetailFormatted?: boolean;
|
|
20
|
-
detailShowHeader?: boolean;
|
|
20
|
+
detailShowHeader?: boolean | string;
|
|
21
|
+
detailShowHeaderFAProps?: IFAProps | null;
|
|
21
22
|
showDetailOnNoSelection?: boolean;
|
|
22
23
|
showAllPrint?: boolean;
|
|
23
24
|
smallScreenWidth?: number;
|