firstly 0.0.13 → 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 +8 -0
- package/esm/ROUTES.d.ts +2 -0
- package/esm/ROUTES.js +1 -0
- package/esm/api/index.d.ts +8 -0
- 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 +83 -18
- package/esm/auth/server/helperFirstly.d.ts +1 -1
- package/esm/auth/server/helperFirstly.js +1 -0
- package/esm/auth/server/module.d.ts +3 -6
- package/esm/auth/server/providers/github.d.ts +2 -1
- package/esm/auth/server/providers/github.js +1 -1
- 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/index.html +2 -2
- package/esm/auth/types.d.ts +26 -3
- package/esm/bin/cmd.js +339 -139
- package/esm/feedback/FeedbackController.js +57 -51
- 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 +78 -62
- package/esm/feedback/ui/DialogIssue.svelte.d.ts +20 -18
- package/esm/feedback/ui/DialogIssues.svelte +37 -28
- package/esm/feedback/ui/DialogIssues.svelte.d.ts +20 -18
- package/esm/feedback/ui/DialogMilestones.svelte +18 -12
- 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/mail/server/index.d.ts +9 -2
- package/esm/mail/server/index.js +3 -1
- package/esm/mail/templates/DefaultMail.svelte +64 -44
- 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 -1
- package/esm/storeList.d.ts +1 -1
- package/esm/sveltekit/server/index.d.ts +0 -9
- package/esm/ui/Button.svelte +79 -56
- package/esm/ui/Button.svelte.d.ts +34 -24
- package/esm/ui/Clipboardable.svelte +18 -11
- package/esm/ui/Clipboardable.svelte.d.ts +34 -23
- package/esm/ui/Field.svelte +189 -136
- package/esm/ui/Field.svelte.d.ts +13 -6
- package/esm/ui/FieldGroup.svelte +74 -53
- package/esm/ui/FieldGroup.svelte.d.ts +17 -6
- package/esm/ui/Grid.svelte +110 -86
- package/esm/ui/Grid.svelte.d.ts +17 -6
- package/esm/ui/GridLoading.svelte +10 -5
- package/esm/ui/GridLoading.svelte.d.ts +19 -17
- package/esm/ui/GridPaginate.svelte +30 -23
- package/esm/ui/GridPaginate.svelte.d.ts +21 -19
- package/esm/ui/Icon.svelte +67 -32
- package/esm/ui/Icon.svelte.d.ts +52 -43
- package/esm/ui/Loading.svelte +5 -3
- package/esm/ui/Loading.svelte.d.ts +29 -18
- package/esm/ui/Tooltip.svelte +22 -19
- package/esm/ui/Tooltip.svelte.d.ts +30 -20
- package/esm/ui/dialog/DialogForm.svelte +48 -41
- package/esm/ui/dialog/DialogForm.svelte.d.ts +18 -16
- package/esm/ui/dialog/DialogManagement.svelte.d.ts +22 -21
- package/esm/ui/dialog/DialogPrimitive.svelte +32 -26
- package/esm/ui/dialog/DialogPrimitive.svelte.d.ts +35 -25
- package/esm/ui/dialog/FormEditAction.svelte +20 -12
- package/esm/ui/dialog/FormEditAction.svelte.d.ts +13 -6
- package/esm/ui/dialog/dialog.d.ts +1 -1
- package/esm/ui/internals/FieldContainer.svelte +13 -6
- package/esm/ui/internals/FieldContainer.svelte.d.ts +37 -28
- package/esm/ui/internals/Input.svelte +110 -76
- package/esm/ui/internals/Input.svelte.d.ts +34 -32
- package/esm/ui/internals/Textarea.svelte +39 -31
- package/esm/ui/internals/Textarea.svelte.d.ts +31 -28
- package/esm/ui/internals/select/MultiSelectMelt.svelte +174 -126
- package/esm/ui/internals/select/MultiSelectMelt.svelte.d.ts +29 -27
- package/esm/ui/internals/select/SelectMelt.svelte +168 -133
- package/esm/ui/internals/select/SelectMelt.svelte.d.ts +34 -32
- package/esm/ui/internals/select/SelectRadio.svelte +17 -11
- package/esm/ui/internals/select/SelectRadio.svelte.d.ts +24 -22
- package/esm/ui/link/Link.svelte +11 -6
- package/esm/ui/link/Link.svelte.d.ts +31 -22
- package/esm/ui/link/LinkPlus.svelte +19 -16
- 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 +5 -5
- package/esm/auth/static/assets/Page-BUfjaN-D.d.ts +0 -5
- package/esm/auth/static/assets/Page-BUfjaN-D.js +0 -19
- package/esm/auth/static/assets/Page-CJ58H1vl.css +0 -1
- package/esm/auth/static/assets/Page-CaDAqmBS.d.ts +0 -5
- package/esm/auth/static/assets/Page-CaDAqmBS.js +0 -1
- package/esm/auth/static/assets/Page-DhdZddzJ.d.ts +0 -5
- package/esm/auth/static/assets/Page-DhdZddzJ.js +0 -1
- package/esm/auth/static/assets/index-D-Ztdt2o.d.ts +0 -54
- package/esm/auth/static/assets/index-D-Ztdt2o.js +0 -2
- /package/esm/auth/static/assets/{index-BDy4A_14.css → index-DKWpA6v7.css} +0 -0
|
@@ -1,136 +1,171 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export let
|
|
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
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { createCombobox, createSync, type ComboboxOptionProps } from '@melt-ui/svelte'
|
|
3
|
+
import { createEventDispatcher, onMount, tick } from 'svelte'
|
|
4
|
+
import { fly } from 'svelte/transition'
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
Button,
|
|
8
|
+
LibIcon_Check,
|
|
9
|
+
LibIcon_Cross,
|
|
10
|
+
LibIcon_Search,
|
|
11
|
+
tw,
|
|
12
|
+
type BaseItem,
|
|
13
|
+
type FF_Icon,
|
|
14
|
+
} from '../../../'
|
|
15
|
+
import Icon from '../../Icon.svelte'
|
|
16
|
+
|
|
17
|
+
export let id: string
|
|
18
|
+
export let disabled: boolean = false
|
|
19
|
+
export let placeholder: string = ''
|
|
20
|
+
export let items: BaseItem[] = []
|
|
21
|
+
let totalCount: number | undefined = undefined
|
|
22
|
+
|
|
23
|
+
export let focus: boolean = false
|
|
24
|
+
const focusNow = (node: any) => {
|
|
25
|
+
if (focus) {
|
|
26
|
+
tick().then(() => {
|
|
27
|
+
node.focus()
|
|
28
|
+
})
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export let loadOptions:
|
|
33
|
+
| ((str: string) => Promise<{ items: BaseItem[]; totalCount: number }>)
|
|
34
|
+
| undefined = undefined
|
|
35
|
+
export let value: string | undefined = undefined
|
|
36
|
+
export let clearable = false
|
|
37
|
+
export let createOptionWhenNoResult = false
|
|
38
|
+
export let default_select_if_one_item = false
|
|
39
|
+
|
|
40
|
+
const dispatch = createEventDispatcher()
|
|
41
|
+
|
|
42
|
+
function dispatchSelectedValue(_data: BaseItem | undefined) {
|
|
43
|
+
dispatch('selected', _data)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function dispatchIssue(msg: 'VALUE_NOT_IN_ITEMS') {
|
|
47
|
+
dispatch('issue', msg)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function dispatchCreateRequest(e: any, input: string) {
|
|
51
|
+
e.preventDefault()
|
|
52
|
+
dispatch('createRequest', input)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
let lastSearch: string | undefined = undefined
|
|
56
|
+
const localLoadOptions = async (str: string) => {
|
|
57
|
+
if (str === lastSearch) {
|
|
58
|
+
return
|
|
59
|
+
}
|
|
60
|
+
lastSearch = str
|
|
61
|
+
if (loadOptions) {
|
|
62
|
+
const lo = await loadOptions(str)
|
|
63
|
+
items = lo.items
|
|
64
|
+
totalCount = lo.totalCount
|
|
65
|
+
filteredItems = items
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
onMount(async () => {
|
|
70
|
+
localLoadOptions('')
|
|
71
|
+
|
|
72
|
+
// after we load items
|
|
73
|
+
sync.selected(getDefaultValue(value))
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
const getDefaultValue = (_selectedValue: string | undefined) => {
|
|
77
|
+
if (!items) {
|
|
78
|
+
return
|
|
79
|
+
}
|
|
80
|
+
const found = items.find((c) => String(c?.id) === String(_selectedValue))
|
|
81
|
+
if (found) {
|
|
82
|
+
return toOption(found)
|
|
83
|
+
} else {
|
|
84
|
+
if (value !== null && value !== undefined && items.length > 0) {
|
|
85
|
+
dispatchIssue('VALUE_NOT_IN_ITEMS')
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const toOption = (
|
|
91
|
+
item: BaseItem,
|
|
92
|
+
): ComboboxOptionProps<BaseItem> & {
|
|
93
|
+
icon?: FF_Icon
|
|
94
|
+
} => ({
|
|
95
|
+
value: item,
|
|
96
|
+
label: item.caption,
|
|
97
|
+
// icon: item.icon,
|
|
98
|
+
// disabled: item.disabled,
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
const {
|
|
102
|
+
elements: { menu, input, option },
|
|
103
|
+
states: { open, inputValue, touchedInput, selected: localSelected },
|
|
104
|
+
// helpers: { isSelected },
|
|
105
|
+
} = createCombobox<BaseItem>({
|
|
106
|
+
forceVisible: true,
|
|
107
|
+
disabled,
|
|
108
|
+
ids: { label: id },
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
const clearSelection = () => {
|
|
112
|
+
sync.selected(undefined)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
let debounceTimer: ReturnType<typeof setTimeout>
|
|
116
|
+
const debounce = (callback: () => void) => {
|
|
117
|
+
clearTimeout(debounceTimer)
|
|
118
|
+
debounceTimer = setTimeout(
|
|
119
|
+
callback,
|
|
120
|
+
// debounce only if we have a load option
|
|
121
|
+
loadOptions ? 444 : 0,
|
|
122
|
+
)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const sync = createSync({ selected: localSelected })
|
|
126
|
+
$: items &&
|
|
127
|
+
sync.selected(getDefaultValue(value), (v) => {
|
|
128
|
+
// Only if different
|
|
129
|
+
if (v?.value?.id !== value) {
|
|
130
|
+
dispatchSelectedValue(v?.value)
|
|
131
|
+
}
|
|
132
|
+
value = v?.value?.id
|
|
133
|
+
})
|
|
134
|
+
|
|
135
|
+
$: if (!$open) {
|
|
136
|
+
$inputValue = $localSelected?.label ?? ''
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
$: filteredItems = items
|
|
140
|
+
|
|
141
|
+
$: {
|
|
142
|
+
if (items.length === 1 && default_select_if_one_item) {
|
|
143
|
+
sync.selected(toOption(items[0]))
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const calcFilteredItems = (touched: boolean, str: string, value: any) => {
|
|
148
|
+
if (touched) {
|
|
149
|
+
debounce(async () => {
|
|
150
|
+
const normalizedInput = str.toLowerCase()
|
|
151
|
+
updateFilteredItems(normalizedInput)
|
|
152
|
+
})
|
|
153
|
+
} else {
|
|
154
|
+
updateFilteredItems('')
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const updateFilteredItems = async (normalizedInput: string) => {
|
|
159
|
+
if (loadOptions) {
|
|
160
|
+
await localLoadOptions(normalizedInput)
|
|
161
|
+
} else {
|
|
162
|
+
filteredItems = items.filter((item) => {
|
|
163
|
+
return item.caption?.toLowerCase().includes(normalizedInput)
|
|
164
|
+
})
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
$: calcFilteredItems($touchedInput, $inputValue, value)
|
|
134
169
|
</script>
|
|
135
170
|
|
|
136
171
|
<div class="input input-bordered flex min-w-0 items-center {disabled && 'opacity-40'}">
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import { type BaseItem } from '../../../';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}>) | undefined;
|
|
14
|
-
value?: string | undefined;
|
|
15
|
-
clearable?: boolean;
|
|
16
|
-
createOptionWhenNoResult?: boolean;
|
|
17
|
-
default_select_if_one_item?: boolean;
|
|
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;
|
|
18
12
|
};
|
|
19
|
-
|
|
20
|
-
selected: CustomEvent<any>;
|
|
21
|
-
issue: CustomEvent<any>;
|
|
22
|
-
createRequest: CustomEvent<any>;
|
|
23
|
-
} & {
|
|
24
|
-
[evt: string]: CustomEvent<any>;
|
|
25
|
-
};
|
|
26
|
-
slots: {};
|
|
27
|
-
exports?: {} | undefined;
|
|
28
|
-
bindings?: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
export type SelectMeltProps = typeof __propDef.props;
|
|
31
|
-
export type SelectMeltEvents = typeof __propDef.events;
|
|
32
|
-
export type SelectMeltSlots = typeof __propDef.slots;
|
|
33
|
-
export default class SelectMelt extends SvelteComponent<SelectMeltProps, SelectMeltEvents, SelectMeltSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
34
14
|
}
|
|
35
|
-
|
|
15
|
+
declare const SelectMelt: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
id: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
items?: BaseItem[];
|
|
20
|
+
focus?: boolean;
|
|
21
|
+
loadOptions?: ((str: string) => Promise<{
|
|
22
|
+
items: BaseItem[];
|
|
23
|
+
totalCount: number;
|
|
24
|
+
}>) | undefined;
|
|
25
|
+
value?: string | undefined;
|
|
26
|
+
clearable?: boolean;
|
|
27
|
+
createOptionWhenNoResult?: boolean;
|
|
28
|
+
default_select_if_one_item?: boolean;
|
|
29
|
+
}, {
|
|
30
|
+
selected: CustomEvent<any>;
|
|
31
|
+
issue: CustomEvent<any>;
|
|
32
|
+
createRequest: CustomEvent<any>;
|
|
33
|
+
} & {
|
|
34
|
+
[evt: string]: CustomEvent<any>;
|
|
35
|
+
}, {}, {}, string>;
|
|
36
|
+
type SelectMelt = InstanceType<typeof SelectMelt>;
|
|
37
|
+
export default SelectMelt;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { createEventDispatcher } from 'svelte'
|
|
3
|
+
|
|
4
|
+
import type { BaseItem } from '../../../'
|
|
5
|
+
import Icon from '../../../ui/Icon.svelte'
|
|
6
|
+
|
|
7
|
+
export let id: string
|
|
8
|
+
export let disabled: boolean = false
|
|
9
|
+
export let placeholder: string = ''
|
|
10
|
+
export let items: BaseItem[] = []
|
|
11
|
+
export let value: string | number | undefined = undefined
|
|
12
|
+
|
|
13
|
+
const dispatch = createEventDispatcher()
|
|
14
|
+
|
|
15
|
+
function dispatchSelected(_data: BaseItem | undefined) {
|
|
16
|
+
dispatch('selected', _data)
|
|
17
|
+
}
|
|
12
18
|
</script>
|
|
13
19
|
|
|
14
20
|
<div {id} class="input input-bordered flex w-fit min-w-0 items-center">
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { BaseItem } 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
|
-
selected: CustomEvent<any>;
|
|
13
|
-
} & {
|
|
14
|
-
[evt: string]: CustomEvent<any>;
|
|
15
|
-
};
|
|
16
|
-
slots: {};
|
|
17
|
-
exports?: {} | undefined;
|
|
18
|
-
bindings?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
export type SelectRadioProps = typeof __propDef.props;
|
|
21
|
-
export type SelectRadioEvents = typeof __propDef.events;
|
|
22
|
-
export type SelectRadioSlots = typeof __propDef.slots;
|
|
23
|
-
export default class SelectRadio extends SvelteComponent<SelectRadioProps, SelectRadioEvents, SelectRadioSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
24
14
|
}
|
|
25
|
-
|
|
15
|
+
declare const SelectRadio: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
id: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
items?: BaseItem[];
|
|
20
|
+
value?: string | number | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
selected: CustomEvent<any>;
|
|
23
|
+
} & {
|
|
24
|
+
[evt: string]: CustomEvent<any>;
|
|
25
|
+
}, {}, {}, string>;
|
|
26
|
+
type SelectRadio = InstanceType<typeof SelectRadio>;
|
|
27
|
+
export default SelectRadio;
|
package/esm/ui/link/Link.svelte
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let
|
|
6
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { HTMLAnchorAttributes } from 'svelte/elements'
|
|
3
|
+
|
|
4
|
+
export let href: string
|
|
5
|
+
export let target: HTMLAnchorAttributes['target'] = undefined
|
|
6
|
+
|
|
7
|
+
export let kind: 'info' | 'ghost' = 'info'
|
|
8
|
+
const daisy = { info: 'link-info', ghost: '' }
|
|
9
|
+
|
|
10
|
+
let className: string | undefined | null = undefined
|
|
11
|
+
export { className as class }
|
|
7
12
|
</script>
|
|
8
13
|
|
|
9
14
|
<a
|
|
@@ -1,24 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
9
11
|
};
|
|
10
|
-
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
};
|
|
13
|
-
slots: {
|
|
14
|
-
default: {};
|
|
15
|
-
};
|
|
16
|
-
exports?: undefined;
|
|
17
|
-
bindings?: undefined;
|
|
18
|
-
};
|
|
19
|
-
export type LinkProps = typeof __propDef.props;
|
|
20
|
-
export type LinkEvents = typeof __propDef.events;
|
|
21
|
-
export type LinkSlots = typeof __propDef.slots;
|
|
22
|
-
export default class Link extends SvelteComponent<LinkProps, LinkEvents, LinkSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
23
13
|
}
|
|
24
|
-
|
|
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 Link: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
href: string;
|
|
22
|
+
target?: import("svelte/elements").HTMLAttributeAnchorTarget | null | undefined;
|
|
23
|
+
kind?: "info" | "ghost" | undefined;
|
|
24
|
+
class?: string | undefined | null | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
default: {};
|
|
27
|
+
}>, {
|
|
28
|
+
[evt: string]: CustomEvent<any>;
|
|
29
|
+
}, {
|
|
30
|
+
default: {};
|
|
31
|
+
}, {}, string>;
|
|
32
|
+
type Link = InstanceType<typeof Link>;
|
|
33
|
+
export default Link;
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { type BaseItemLight } from '../..'
|
|
3
|
+
import Icon from '../Icon.svelte'
|
|
4
|
+
import Tooltip from '../Tooltip.svelte'
|
|
5
|
+
import Link from './Link.svelte'
|
|
6
|
+
|
|
7
|
+
export let item: BaseItemLight | undefined
|
|
8
|
+
export let noIcon = false
|
|
9
|
+
export let captionSubStyle: 'under' | 'inline' | 'none' = 'under'
|
|
10
|
+
|
|
11
|
+
const hasSomethingToDisplay = (item: BaseItemLight) => {
|
|
12
|
+
if (item.href) {
|
|
13
|
+
return true
|
|
14
|
+
}
|
|
15
|
+
if (item.caption) {
|
|
16
|
+
return true
|
|
17
|
+
}
|
|
18
|
+
return false
|
|
19
|
+
}
|
|
17
20
|
</script>
|
|
18
21
|
|
|
19
22
|
<div class="flex items-center gap-4">
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import { type BaseItemLight } from '../..';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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;
|
|
8
12
|
};
|
|
9
|
-
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {};
|
|
13
|
-
exports?: {} | undefined;
|
|
14
|
-
bindings?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type LinkPlusProps = typeof __propDef.props;
|
|
17
|
-
export type LinkPlusEvents = typeof __propDef.events;
|
|
18
|
-
export type LinkPlusSlots = typeof __propDef.slots;
|
|
19
|
-
export default class LinkPlus extends SvelteComponent<LinkPlusProps, LinkPlusEvents, LinkPlusSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
20
14
|
}
|
|
21
|
-
|
|
15
|
+
declare const LinkPlus: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
item: BaseItemLight | undefined;
|
|
17
|
+
noIcon?: boolean;
|
|
18
|
+
captionSubStyle?: "under" | "inline" | "none";
|
|
19
|
+
}, {
|
|
20
|
+
[evt: string]: CustomEvent<any>;
|
|
21
|
+
}, {}, {}, string>;
|
|
22
|
+
type LinkPlus = InstanceType<typeof LinkPlus>;
|
|
23
|
+
export default LinkPlus;
|
package/esm/vite/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type PluginOption } from 'vite';
|
|
2
2
|
import { type Options, type RouteMappings } from 'vite-plugin-kit-routes';
|
|
3
|
+
import { stripper } from 'vite-plugin-stripper';
|
|
3
4
|
export declare function firstly<KIT_ROUTES extends RouteMappings>(options?: {
|
|
4
|
-
stripper?:
|
|
5
|
-
debug?: boolean;
|
|
6
|
-
};
|
|
5
|
+
stripper?: Parameters<typeof stripper>[0];
|
|
7
6
|
kitRoutes?: Options<KIT_ROUTES>;
|
|
8
7
|
}): PluginOption;
|