firstly 0.0.12 → 0.0.14
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/CHANGELOG.md +16 -0
- package/esm/ROUTES.d.ts +2 -0
- package/esm/ROUTES.js +1 -0
- package/esm/api/index.d.ts +9 -0
- package/esm/api/index.js +3 -1
- package/esm/auth/AuthController.d.ts +12 -23
- package/esm/auth/AuthController.js +12 -31
- package/esm/auth/server/AuthController.server.d.ts +11 -11
- package/esm/auth/server/AuthController.server.js +99 -34
- package/esm/auth/server/handleGuard.d.ts +16 -0
- package/esm/auth/server/handleGuard.js +67 -0
- package/esm/auth/server/helperFirstly.d.ts +1 -1
- package/esm/auth/server/helperFirstly.js +1 -0
- package/esm/auth/server/index.d.ts +3 -1
- package/esm/auth/server/index.js +3 -1
- package/esm/auth/server/module.d.ts +105 -89
- package/esm/auth/server/module.js +55 -42
- package/esm/auth/server/providers/github.d.ts +4 -2
- package/esm/auth/server/providers/github.js +2 -2
- package/esm/auth/static/assets/Page-B0XXxe0N.d.ts +6 -0
- package/esm/auth/static/assets/Page-B0XXxe0N.js +1 -0
- package/esm/auth/static/assets/Page-DdKMiUZn.d.ts +6 -0
- package/esm/auth/static/assets/Page-DdKMiUZn.js +20 -0
- package/esm/auth/static/assets/Page-UV_hqY7I.d.ts +6 -0
- package/esm/auth/static/assets/Page-UV_hqY7I.js +1 -0
- package/esm/auth/static/assets/Page-mK42zGEw.css +1 -0
- package/esm/auth/static/assets/index-C9jzxOBu.d.ts +151 -0
- package/esm/auth/static/assets/index-C9jzxOBu.js +42 -0
- package/esm/auth/static/assets/index-DKWpA6v7.css +4 -0
- package/esm/auth/static/index.html +11 -11
- package/esm/auth/types.d.ts +26 -3
- package/esm/bin/cmd.js +423 -152
- package/esm/cellsBuildor.js +1 -1
- package/esm/common.d.ts +5 -0
- package/esm/common.js +8 -0
- package/esm/cron/server/index.js +1 -1
- package/esm/feedback/FeedbackController.js +58 -53
- package/esm/feedback/server/index.d.ts +6 -15
- package/esm/feedback/server/index.js +4 -5
- package/esm/feedback/types.d.ts +14 -0
- package/esm/feedback/types.js +4 -0
- package/esm/feedback/ui/DialogIssue.svelte +131 -119
- package/esm/feedback/ui/DialogIssue.svelte.d.ts +20 -18
- package/esm/feedback/ui/DialogIssues.svelte +108 -99
- package/esm/feedback/ui/DialogIssues.svelte.d.ts +20 -18
- package/esm/feedback/ui/DialogMilestones.svelte +40 -34
- package/esm/feedback/ui/DialogMilestones.svelte.d.ts +18 -16
- package/esm/feedback/ui/Feedback.svelte +11 -9
- package/esm/feedback/ui/Feedback.svelte.d.ts +16 -14
- package/esm/index.d.ts +2 -5
- package/esm/index.js +2 -8
- package/esm/mail/server/index.d.ts +9 -2
- package/esm/mail/server/index.js +3 -1
- package/esm/mail/templates/DefaultMail.svelte +81 -61
- package/esm/mail/templates/DefaultMail.svelte.d.ts +28 -26
- package/esm/server/index.d.ts +0 -0
- package/esm/server/index.js +1 -0
- package/esm/storeItem.d.ts +1 -4
- package/esm/storeItem.js +1 -1
- package/esm/storeList.d.ts +1 -4
- package/esm/sveltekit/server/index.d.ts +3 -9
- package/esm/sveltekit/server/index.js +3 -0
- package/esm/ui/Button.svelte +112 -89
- package/esm/ui/Button.svelte.d.ts +34 -24
- package/esm/ui/Clipboardable.svelte +24 -17
- package/esm/ui/Clipboardable.svelte.d.ts +34 -23
- package/esm/ui/Field.svelte +328 -285
- package/esm/ui/Field.svelte.d.ts +15 -8
- package/esm/ui/FieldGroup.svelte +112 -91
- package/esm/ui/FieldGroup.svelte.d.ts +17 -6
- package/esm/ui/Grid.svelte +322 -308
- package/esm/ui/Grid.svelte.d.ts +17 -6
- package/esm/ui/GridLoading.svelte +28 -27
- package/esm/ui/GridLoading.svelte.d.ts +19 -17
- package/esm/ui/GridPaginate.svelte +68 -61
- package/esm/ui/GridPaginate.svelte.d.ts +21 -19
- package/esm/ui/Icon.svelte +116 -80
- package/esm/ui/Icon.svelte.d.ts +52 -43
- package/esm/ui/Loading.svelte +10 -8
- package/esm/ui/Loading.svelte.d.ts +29 -18
- package/esm/ui/Tooltip.svelte +38 -35
- package/esm/ui/Tooltip.svelte.d.ts +30 -20
- package/esm/ui/dialog/DialogForm.svelte +70 -63
- package/esm/ui/dialog/DialogForm.svelte.d.ts +18 -16
- package/esm/ui/dialog/DialogManagement.svelte +74 -74
- package/esm/ui/dialog/DialogManagement.svelte.d.ts +22 -21
- package/esm/ui/dialog/DialogPrimitive.svelte +82 -76
- package/esm/ui/dialog/DialogPrimitive.svelte.d.ts +35 -25
- package/esm/ui/dialog/FormEditAction.svelte +58 -50
- package/esm/ui/dialog/FormEditAction.svelte.d.ts +13 -6
- package/esm/ui/dialog/dialog.d.ts +1 -4
- package/esm/ui/internals/FieldContainer.svelte +24 -17
- package/esm/ui/internals/FieldContainer.svelte.d.ts +37 -28
- package/esm/ui/internals/Input.svelte +136 -102
- package/esm/ui/internals/Input.svelte.d.ts +34 -32
- package/esm/ui/internals/Textarea.svelte +60 -52
- package/esm/ui/internals/Textarea.svelte.d.ts +31 -28
- package/esm/ui/internals/select/MultiSelectMelt.svelte +243 -199
- package/esm/ui/internals/select/MultiSelectMelt.svelte.d.ts +29 -27
- package/esm/ui/internals/select/SelectMelt.svelte +254 -219
- package/esm/ui/internals/select/SelectMelt.svelte.d.ts +34 -32
- package/esm/ui/internals/select/SelectRadio.svelte +39 -33
- package/esm/ui/internals/select/SelectRadio.svelte.d.ts +24 -22
- package/esm/ui/link/Link.svelte +25 -20
- package/esm/ui/link/Link.svelte.d.ts +31 -23
- package/esm/ui/link/LinkPlus.svelte +52 -51
- package/esm/ui/link/LinkPlus.svelte.d.ts +20 -18
- package/esm/vite/index.d.ts +2 -3
- package/esm/vite/index.js +33 -26
- package/package.json +16 -20
- package/esm/auth/static/assets/Page-Bb8bFlrP.d.ts +0 -4
- package/esm/auth/static/assets/Page-Bb8bFlrP.js +0 -1
- package/esm/auth/static/assets/Page-BxomFlZ8.d.ts +0 -4
- package/esm/auth/static/assets/Page-BxomFlZ8.js +0 -1
- package/esm/auth/static/assets/Page-CaIYu0-y.d.ts +0 -6
- package/esm/auth/static/assets/Page-CaIYu0-y.js +0 -19
- package/esm/auth/static/assets/Page-MkYglNtu.css +0 -1
- package/esm/auth/static/assets/index-Bl0Bk5u0.d.ts +0 -64
- package/esm/auth/static/assets/index-Bl0Bk5u0.js +0 -2
- package/esm/auth/static/assets/index-R27C_TlP.css +0 -4
|
@@ -1,84 +1,90 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { createDialog } from '@melt-ui/svelte'
|
|
3
|
+
import { createEventDispatcher } from 'svelte'
|
|
4
|
+
import { fade } from 'svelte/transition'
|
|
5
|
+
|
|
6
|
+
import { LibIcon_Cross, tw, type BaseItemLight } from '../../'
|
|
7
|
+
import { flyAndScale } from '../../utils/transition'
|
|
8
|
+
import Icon from '../Icon.svelte'
|
|
9
|
+
import LinkPlus from '../link/LinkPlus.svelte'
|
|
10
|
+
|
|
11
|
+
export let detail: BaseItemLight | undefined = undefined
|
|
12
|
+
export let open: boolean = false
|
|
13
|
+
export let classes: { root?: string } = {}
|
|
14
|
+
|
|
15
|
+
const {
|
|
16
|
+
elements: { trigger, overlay, content, title: localTitle, description, close, portalled },
|
|
17
|
+
states: { open: localOpen },
|
|
18
|
+
} = createDialog({
|
|
19
|
+
forceVisible: true,
|
|
20
|
+
defaultOpen: open,
|
|
21
|
+
closeOnOutsideClick: false,
|
|
22
|
+
onOpenChange: (open) => {
|
|
23
|
+
dispatchChange('yop there')
|
|
24
|
+
return open.next
|
|
25
|
+
},
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
const dispatch = createEventDispatcher()
|
|
29
|
+
|
|
30
|
+
function dispatchChange(_data: any) {
|
|
31
|
+
dispatch('change', _data)
|
|
32
|
+
}
|
|
27
33
|
</script>
|
|
28
34
|
|
|
29
35
|
<div
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
{...$portalled}
|
|
37
|
+
use:$portalled.action
|
|
38
|
+
class="fixed top-0 z-50 flex h-full w-full items-center justify-center"
|
|
33
39
|
>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
40
|
+
{#if $localOpen}
|
|
41
|
+
<div
|
|
42
|
+
{...$overlay}
|
|
43
|
+
use:$overlay.action
|
|
44
|
+
class="bg-base-300/80 fixed inset-0 z-40 blur-sm"
|
|
45
|
+
transition:fade={{ duration: 150 }}
|
|
46
|
+
></div>
|
|
47
|
+
<div
|
|
48
|
+
class={tw(
|
|
49
|
+
`border-base-content/60 bg-base-100 relative z-40 max-h-[90vh] overflow-auto rounded-xl border p-6 shadow-lg`,
|
|
50
|
+
classes.root,
|
|
51
|
+
)}
|
|
52
|
+
transition:flyAndScale={{
|
|
53
|
+
duration: 150,
|
|
54
|
+
y: 8,
|
|
55
|
+
start: 0.96,
|
|
56
|
+
}}
|
|
57
|
+
{...$content}
|
|
58
|
+
use:$content.action
|
|
59
|
+
>
|
|
60
|
+
<div class="left-0 top-0 mb-4 w-full">
|
|
61
|
+
<h2 {...$localTitle} use:$localTitle.action class="m-0 text-lg font-medium">
|
|
62
|
+
<div class="flex items-center justify-between gap-4">
|
|
63
|
+
<LinkPlus item={detail}></LinkPlus>
|
|
64
|
+
<button
|
|
65
|
+
{...$close}
|
|
66
|
+
use:$close.action
|
|
67
|
+
aria-label="close"
|
|
68
|
+
class="btn btn-circle btn-outline btn-lg
|
|
63
69
|
h-max min-h-0 w-max border-none"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
>
|
|
71
|
+
<Icon data={LibIcon_Cross}></Icon>
|
|
72
|
+
</button>
|
|
73
|
+
</div>
|
|
74
|
+
</h2>
|
|
75
|
+
</div>
|
|
70
76
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
<div class="flex h-full min-w-[25rem] flex-col gap-4">
|
|
78
|
+
<!-- <div class="overflow-y-auto"> -->
|
|
79
|
+
<slot />
|
|
74
80
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
{#if $$slots.actions}
|
|
82
|
+
<div class="mt-2 flex items-end justify-end">
|
|
83
|
+
<slot name="actions" />
|
|
84
|
+
</div>
|
|
85
|
+
{/if}
|
|
86
|
+
<!-- </div> -->
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
{/if}
|
|
84
90
|
</div>
|
|
@@ -1,28 +1,38 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import { type BaseItemLight } from '../../';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
10
12
|
};
|
|
11
|
-
|
|
12
|
-
change: CustomEvent<any>;
|
|
13
|
-
} & {
|
|
14
|
-
[evt: string]: CustomEvent<any>;
|
|
15
|
-
};
|
|
16
|
-
slots: {
|
|
17
|
-
default: {};
|
|
18
|
-
actions: {};
|
|
19
|
-
};
|
|
20
|
-
exports?: {} | undefined;
|
|
21
|
-
bindings?: string | undefined;
|
|
22
|
-
};
|
|
23
|
-
export type DialogPrimitiveProps = typeof __propDef.props;
|
|
24
|
-
export type DialogPrimitiveEvents = typeof __propDef.events;
|
|
25
|
-
export type DialogPrimitiveSlots = typeof __propDef.slots;
|
|
26
|
-
export default class DialogPrimitive extends SvelteComponent<DialogPrimitiveProps, DialogPrimitiveEvents, DialogPrimitiveSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
27
14
|
}
|
|
28
|
-
|
|
15
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
16
|
+
default: any;
|
|
17
|
+
} ? Props extends Record<string, never> ? any : {
|
|
18
|
+
children?: any;
|
|
19
|
+
} : {});
|
|
20
|
+
declare const DialogPrimitive: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
21
|
+
detail?: BaseItemLight | undefined;
|
|
22
|
+
open?: boolean;
|
|
23
|
+
classes?: {
|
|
24
|
+
root?: string;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
default: {};
|
|
28
|
+
actions: {};
|
|
29
|
+
}>, {
|
|
30
|
+
change: CustomEvent<any>;
|
|
31
|
+
} & {
|
|
32
|
+
[evt: string]: CustomEvent<any>;
|
|
33
|
+
}, {
|
|
34
|
+
default: {};
|
|
35
|
+
actions: {};
|
|
36
|
+
}, {}, string>;
|
|
37
|
+
type DialogPrimitive = InstanceType<typeof DialogPrimitive>;
|
|
38
|
+
export default DialogPrimitive;
|
|
@@ -1,54 +1,62 @@
|
|
|
1
|
-
<script generics="T extends any">
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
<script lang="ts" generics="T extends any">
|
|
2
|
+
import { createEventDispatcher } from 'svelte'
|
|
3
|
+
|
|
4
|
+
import type { StoreItem } from '../..'
|
|
5
|
+
import Button from '../Button.svelte'
|
|
6
|
+
import Icon from '../Icon.svelte'
|
|
7
|
+
import { LibIcon_Add, LibIcon_Check, LibIcon_Delete } from '../LibIcon'
|
|
8
|
+
import type { DialogType } from './dialog'
|
|
9
|
+
|
|
10
|
+
export let store: StoreItem<T>
|
|
11
|
+
export let type: DialogType
|
|
12
|
+
export let wDelete = false
|
|
13
|
+
|
|
14
|
+
export let textCreate = 'Créer'
|
|
15
|
+
|
|
16
|
+
const dispatch = createEventDispatcher()
|
|
17
|
+
|
|
18
|
+
function dispatchDelete() {
|
|
19
|
+
dispatch('delete')
|
|
20
|
+
}
|
|
13
21
|
</script>
|
|
14
22
|
|
|
15
23
|
<div class="mt-2 flex items-center justify-between">
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
24
|
+
{#if type === 'update'}
|
|
25
|
+
<div class="flex items-center justify-start">
|
|
26
|
+
{#if wDelete}
|
|
27
|
+
<Button
|
|
28
|
+
type="button"
|
|
29
|
+
on:click={dispatchDelete}
|
|
30
|
+
class="btn-outline btn-error mr-4 text-white"
|
|
31
|
+
isLoading={$store.loading}
|
|
32
|
+
>
|
|
33
|
+
<Icon data={LibIcon_Delete} />
|
|
34
|
+
</Button>
|
|
35
|
+
{/if}
|
|
36
|
+
|
|
37
|
+
<div>
|
|
38
|
+
{#if $store.globalError}
|
|
39
|
+
<span class="text-error text-xs">{$store.globalError}</span>
|
|
40
|
+
{/if}
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<Button class="text-white" {...$$restProps} isLoading={$store.loading}>
|
|
45
|
+
<Icon data={LibIcon_Check} />
|
|
46
|
+
<p>Sauvegarder</p>
|
|
47
|
+
</Button>
|
|
48
|
+
{/if}
|
|
49
|
+
|
|
50
|
+
{#if type === 'insert'}
|
|
51
|
+
<div>
|
|
52
|
+
{#if $store.globalError}
|
|
53
|
+
<span class="text-error text-xs">{$store.globalError}</span>
|
|
54
|
+
{/if}
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<Button class="text-white" {...$$restProps} isLoading={$store.loading}>
|
|
58
|
+
<Icon data={LibIcon_Add} />
|
|
59
|
+
<p>{textCreate}</p>
|
|
60
|
+
</Button>
|
|
61
|
+
{/if}
|
|
54
62
|
</div>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { StoreItem } from '../..';
|
|
3
2
|
import type { DialogType } from './dialog';
|
|
4
3
|
declare class __sveltets_Render<T extends any> {
|
|
@@ -15,10 +14,18 @@ declare class __sveltets_Render<T extends any> {
|
|
|
15
14
|
[evt: string]: CustomEvent<any>;
|
|
16
15
|
};
|
|
17
16
|
slots(): {};
|
|
17
|
+
bindings(): string;
|
|
18
|
+
exports(): {};
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
interface $$IsomorphicComponent {
|
|
21
|
+
new <T extends any>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
|
|
22
|
+
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
23
|
+
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
24
|
+
<T extends any>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {
|
|
25
|
+
$$events?: ReturnType<__sveltets_Render<T>['events']>;
|
|
26
|
+
}): ReturnType<__sveltets_Render<T>['exports']>;
|
|
27
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
23
28
|
}
|
|
24
|
-
|
|
29
|
+
declare const FormEditAction: $$IsomorphicComponent;
|
|
30
|
+
type FormEditAction<T extends any> = InstanceType<typeof FormEditAction<T>>;
|
|
31
|
+
export default FormEditAction;
|
|
@@ -50,9 +50,6 @@ export declare const dialog: {
|
|
|
50
50
|
show: (dialog: DialogMetaData) => Promise<ResultClose<any>>;
|
|
51
51
|
close: (id: number, result: ResultClose) => void;
|
|
52
52
|
closeAll: () => void;
|
|
53
|
-
subscribe:
|
|
54
|
-
(this: void, run: import("svelte/store").Subscriber<DialogMetaDataInternal<any>[]>, invalidate?: import("svelte/store").Invalidator<DialogMetaDataInternal<any>[]> | undefined): import("svelte/store").Unsubscriber;
|
|
55
|
-
(this: void, run: import("svelte/store").Subscriber<DialogMetaDataInternal<any>[]>, invalidate?: (() => void) | undefined): import("svelte/store").Unsubscriber;
|
|
56
|
-
};
|
|
53
|
+
subscribe: (this: void, run: import("svelte/store").Subscriber<DialogMetaDataInternal<any>[]>, invalidate?: () => void) => import("svelte/store").Unsubscriber;
|
|
57
54
|
};
|
|
58
55
|
export {};
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export let
|
|
5
|
-
export let
|
|
6
|
-
export let
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { tw } from '../../utils/tailwind'
|
|
3
|
+
|
|
4
|
+
export let label: string = 'label'
|
|
5
|
+
export let forId: string
|
|
6
|
+
export let required = false
|
|
7
|
+
export let error: string = ''
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* example usage for paginate
|
|
11
|
+
* classes={{ label: 'justify-end' }}
|
|
12
|
+
*/
|
|
13
|
+
export let classes: { label?: string; slot?: string } = {}
|
|
7
14
|
</script>
|
|
8
15
|
|
|
9
16
|
<div class="form-control w-full">
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
<label for={forId} class={tw(`label flex gap-1 px-2 pb-1`, classes.label)}>
|
|
18
|
+
<span class="label-text text-base-content/60 pl-2 text-xs">
|
|
19
|
+
{label}{required ? ' *' : ''}
|
|
20
|
+
</span>
|
|
21
|
+
{#if error}
|
|
22
|
+
<span class="label-text-alt text-error truncate">{error}</span>
|
|
23
|
+
{/if}
|
|
24
|
+
</label>
|
|
25
|
+
<div class={tw('grid h-12 w-full', classes.slot)}>
|
|
26
|
+
<slot />
|
|
27
|
+
</div>
|
|
21
28
|
</div>
|
|
@@ -1,30 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/ classes?: {
|
|
12
|
-
label?: string;
|
|
13
|
-
slot?: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
events: {
|
|
17
|
-
[evt: string]: CustomEvent<any>;
|
|
18
|
-
};
|
|
19
|
-
slots: {
|
|
20
|
-
default: {};
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
21
11
|
};
|
|
22
|
-
|
|
23
|
-
bindings?: string | undefined;
|
|
24
|
-
};
|
|
25
|
-
export type FieldContainerProps = typeof __propDef.props;
|
|
26
|
-
export type FieldContainerEvents = typeof __propDef.events;
|
|
27
|
-
export type FieldContainerSlots = typeof __propDef.slots;
|
|
28
|
-
export default class FieldContainer extends SvelteComponent<FieldContainerProps, FieldContainerEvents, FieldContainerSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
29
13
|
}
|
|
30
|
-
|
|
14
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
15
|
+
default: any;
|
|
16
|
+
} ? Props extends Record<string, never> ? any : {
|
|
17
|
+
children?: any;
|
|
18
|
+
} : {});
|
|
19
|
+
declare const FieldContainer: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
|
+
label?: string;
|
|
21
|
+
forId: string;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
error?: string;
|
|
24
|
+
/**
|
|
25
|
+
* example usage for paginate
|
|
26
|
+
* classes={{ label: 'justify-end' }}
|
|
27
|
+
*/ classes?: {
|
|
28
|
+
label?: string;
|
|
29
|
+
slot?: string;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
default: {};
|
|
33
|
+
}>, {
|
|
34
|
+
[evt: string]: CustomEvent<any>;
|
|
35
|
+
}, {
|
|
36
|
+
default: {};
|
|
37
|
+
}, {}, string>;
|
|
38
|
+
type FieldContainer = InstanceType<typeof FieldContainer>;
|
|
39
|
+
export default FieldContainer;
|