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.
Files changed (104) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/esm/ROUTES.d.ts +2 -0
  3. package/esm/ROUTES.js +1 -0
  4. package/esm/api/index.d.ts +8 -0
  5. package/esm/auth/AuthController.d.ts +12 -23
  6. package/esm/auth/AuthController.js +12 -31
  7. package/esm/auth/server/AuthController.server.d.ts +11 -11
  8. package/esm/auth/server/AuthController.server.js +83 -18
  9. package/esm/auth/server/helperFirstly.d.ts +1 -1
  10. package/esm/auth/server/helperFirstly.js +1 -0
  11. package/esm/auth/server/module.d.ts +3 -6
  12. package/esm/auth/server/providers/github.d.ts +2 -1
  13. package/esm/auth/server/providers/github.js +1 -1
  14. package/esm/auth/static/assets/Page-B0XXxe0N.d.ts +6 -0
  15. package/esm/auth/static/assets/Page-B0XXxe0N.js +1 -0
  16. package/esm/auth/static/assets/Page-DdKMiUZn.d.ts +6 -0
  17. package/esm/auth/static/assets/Page-DdKMiUZn.js +20 -0
  18. package/esm/auth/static/assets/Page-UV_hqY7I.d.ts +6 -0
  19. package/esm/auth/static/assets/Page-UV_hqY7I.js +1 -0
  20. package/esm/auth/static/assets/Page-mK42zGEw.css +1 -0
  21. package/esm/auth/static/assets/index-C9jzxOBu.d.ts +151 -0
  22. package/esm/auth/static/assets/index-C9jzxOBu.js +42 -0
  23. package/esm/auth/static/index.html +2 -2
  24. package/esm/auth/types.d.ts +26 -3
  25. package/esm/bin/cmd.js +339 -139
  26. package/esm/feedback/FeedbackController.js +57 -51
  27. package/esm/feedback/server/index.d.ts +6 -15
  28. package/esm/feedback/server/index.js +4 -5
  29. package/esm/feedback/types.d.ts +14 -0
  30. package/esm/feedback/types.js +4 -0
  31. package/esm/feedback/ui/DialogIssue.svelte +78 -62
  32. package/esm/feedback/ui/DialogIssue.svelte.d.ts +20 -18
  33. package/esm/feedback/ui/DialogIssues.svelte +37 -28
  34. package/esm/feedback/ui/DialogIssues.svelte.d.ts +20 -18
  35. package/esm/feedback/ui/DialogMilestones.svelte +18 -12
  36. package/esm/feedback/ui/DialogMilestones.svelte.d.ts +18 -16
  37. package/esm/feedback/ui/Feedback.svelte +11 -9
  38. package/esm/feedback/ui/Feedback.svelte.d.ts +16 -14
  39. package/esm/mail/server/index.d.ts +9 -2
  40. package/esm/mail/server/index.js +3 -1
  41. package/esm/mail/templates/DefaultMail.svelte +64 -44
  42. package/esm/mail/templates/DefaultMail.svelte.d.ts +28 -26
  43. package/esm/server/index.d.ts +0 -0
  44. package/esm/server/index.js +1 -0
  45. package/esm/storeItem.d.ts +1 -1
  46. package/esm/storeList.d.ts +1 -1
  47. package/esm/sveltekit/server/index.d.ts +0 -9
  48. package/esm/ui/Button.svelte +79 -56
  49. package/esm/ui/Button.svelte.d.ts +34 -24
  50. package/esm/ui/Clipboardable.svelte +18 -11
  51. package/esm/ui/Clipboardable.svelte.d.ts +34 -23
  52. package/esm/ui/Field.svelte +189 -136
  53. package/esm/ui/Field.svelte.d.ts +13 -6
  54. package/esm/ui/FieldGroup.svelte +74 -53
  55. package/esm/ui/FieldGroup.svelte.d.ts +17 -6
  56. package/esm/ui/Grid.svelte +110 -86
  57. package/esm/ui/Grid.svelte.d.ts +17 -6
  58. package/esm/ui/GridLoading.svelte +10 -5
  59. package/esm/ui/GridLoading.svelte.d.ts +19 -17
  60. package/esm/ui/GridPaginate.svelte +30 -23
  61. package/esm/ui/GridPaginate.svelte.d.ts +21 -19
  62. package/esm/ui/Icon.svelte +67 -32
  63. package/esm/ui/Icon.svelte.d.ts +52 -43
  64. package/esm/ui/Loading.svelte +5 -3
  65. package/esm/ui/Loading.svelte.d.ts +29 -18
  66. package/esm/ui/Tooltip.svelte +22 -19
  67. package/esm/ui/Tooltip.svelte.d.ts +30 -20
  68. package/esm/ui/dialog/DialogForm.svelte +48 -41
  69. package/esm/ui/dialog/DialogForm.svelte.d.ts +18 -16
  70. package/esm/ui/dialog/DialogManagement.svelte.d.ts +22 -21
  71. package/esm/ui/dialog/DialogPrimitive.svelte +32 -26
  72. package/esm/ui/dialog/DialogPrimitive.svelte.d.ts +35 -25
  73. package/esm/ui/dialog/FormEditAction.svelte +20 -12
  74. package/esm/ui/dialog/FormEditAction.svelte.d.ts +13 -6
  75. package/esm/ui/dialog/dialog.d.ts +1 -1
  76. package/esm/ui/internals/FieldContainer.svelte +13 -6
  77. package/esm/ui/internals/FieldContainer.svelte.d.ts +37 -28
  78. package/esm/ui/internals/Input.svelte +110 -76
  79. package/esm/ui/internals/Input.svelte.d.ts +34 -32
  80. package/esm/ui/internals/Textarea.svelte +39 -31
  81. package/esm/ui/internals/Textarea.svelte.d.ts +31 -28
  82. package/esm/ui/internals/select/MultiSelectMelt.svelte +174 -126
  83. package/esm/ui/internals/select/MultiSelectMelt.svelte.d.ts +29 -27
  84. package/esm/ui/internals/select/SelectMelt.svelte +168 -133
  85. package/esm/ui/internals/select/SelectMelt.svelte.d.ts +34 -32
  86. package/esm/ui/internals/select/SelectRadio.svelte +17 -11
  87. package/esm/ui/internals/select/SelectRadio.svelte.d.ts +24 -22
  88. package/esm/ui/link/Link.svelte +11 -6
  89. package/esm/ui/link/Link.svelte.d.ts +31 -22
  90. package/esm/ui/link/LinkPlus.svelte +19 -16
  91. package/esm/ui/link/LinkPlus.svelte.d.ts +20 -18
  92. package/esm/vite/index.d.ts +2 -3
  93. package/esm/vite/index.js +33 -26
  94. package/package.json +5 -5
  95. package/esm/auth/static/assets/Page-BUfjaN-D.d.ts +0 -5
  96. package/esm/auth/static/assets/Page-BUfjaN-D.js +0 -19
  97. package/esm/auth/static/assets/Page-CJ58H1vl.css +0 -1
  98. package/esm/auth/static/assets/Page-CaDAqmBS.d.ts +0 -5
  99. package/esm/auth/static/assets/Page-CaDAqmBS.js +0 -1
  100. package/esm/auth/static/assets/Page-DhdZddzJ.d.ts +0 -5
  101. package/esm/auth/static/assets/Page-DhdZddzJ.js +0 -1
  102. package/esm/auth/static/assets/index-D-Ztdt2o.d.ts +0 -54
  103. package/esm/auth/static/assets/index-D-Ztdt2o.js +0 -2
  104. /package/esm/auth/static/assets/{index-BDy4A_14.css → index-DKWpA6v7.css} +0 -0
@@ -1,136 +1,171 @@
1
- <script>import { createCombobox, createSync } from "@melt-ui/svelte";
2
- import { createEventDispatcher, onMount, tick } from "svelte";
3
- import { fly } from "svelte/transition";
4
- import {
5
- Button,
6
- LibIcon_Check,
7
- LibIcon_Cross,
8
- LibIcon_Search,
9
- tw
10
- } from "../../../";
11
- import Icon from "../../Icon.svelte";
12
- export let id;
13
- export let disabled = false;
14
- export let placeholder = "";
15
- export let items = [];
16
- let totalCount = void 0;
17
- export let focus = false;
18
- const focusNow = (node) => {
19
- if (focus) {
20
- tick().then(() => {
21
- node.focus();
22
- });
23
- }
24
- };
25
- export let loadOptions = void 0;
26
- export let value = void 0;
27
- export let clearable = false;
28
- export let createOptionWhenNoResult = false;
29
- export let default_select_if_one_item = false;
30
- const dispatch = createEventDispatcher();
31
- function dispatchSelectedValue(_data) {
32
- dispatch("selected", _data);
33
- }
34
- function dispatchIssue(msg) {
35
- dispatch("issue", msg);
36
- }
37
- function dispatchCreateRequest(e, input2) {
38
- e.preventDefault();
39
- dispatch("createRequest", input2);
40
- }
41
- let lastSearch = void 0;
42
- const localLoadOptions = async (str) => {
43
- if (str === lastSearch) {
44
- return;
45
- }
46
- lastSearch = str;
47
- if (loadOptions) {
48
- const lo = await loadOptions(str);
49
- items = lo.items;
50
- totalCount = lo.totalCount;
51
- filteredItems = items;
52
- }
53
- };
54
- onMount(async () => {
55
- localLoadOptions("");
56
- sync.selected(getDefaultValue(value));
57
- });
58
- const getDefaultValue = (_selectedValue) => {
59
- if (!items) {
60
- return;
61
- }
62
- const found = items.find((c) => String(c?.id) === String(_selectedValue));
63
- if (found) {
64
- return toOption(found);
65
- } else {
66
- if (value !== null && value !== void 0 && items.length > 0) {
67
- dispatchIssue("VALUE_NOT_IN_ITEMS");
68
- }
69
- }
70
- };
71
- const toOption = (item) => ({
72
- value: item,
73
- label: item.caption
74
- // icon: item.icon,
75
- // disabled: item.disabled,
76
- });
77
- const {
78
- elements: { menu, input, option },
79
- states: { open, inputValue, touchedInput, selected: localSelected }
80
- // helpers: { isSelected },
81
- } = createCombobox({
82
- forceVisible: true,
83
- disabled,
84
- ids: { label: id }
85
- });
86
- const clearSelection = () => {
87
- sync.selected(void 0);
88
- };
89
- let debounceTimer;
90
- const debounce = (callback) => {
91
- clearTimeout(debounceTimer);
92
- debounceTimer = setTimeout(
93
- callback,
94
- // debounce only if we have a load option
95
- loadOptions ? 444 : 0
96
- );
97
- };
98
- const sync = createSync({ selected: localSelected });
99
- $: items && sync.selected(getDefaultValue(value), (v) => {
100
- if (v?.value?.id !== value) {
101
- dispatchSelectedValue(v?.value);
102
- }
103
- value = v?.value?.id;
104
- });
105
- $: if (!$open) {
106
- $inputValue = $localSelected?.label ?? "";
107
- }
108
- $: filteredItems = items;
109
- $: {
110
- if (items.length === 1 && default_select_if_one_item) {
111
- sync.selected(toOption(items[0]));
112
- }
113
- }
114
- const calcFilteredItems = (touched, str, value2) => {
115
- if (touched) {
116
- debounce(async () => {
117
- const normalizedInput = str.toLowerCase();
118
- updateFilteredItems(normalizedInput);
119
- });
120
- } else {
121
- updateFilteredItems("");
122
- }
123
- };
124
- const updateFilteredItems = async (normalizedInput) => {
125
- if (loadOptions) {
126
- await localLoadOptions(normalizedInput);
127
- } else {
128
- filteredItems = items.filter((item) => {
129
- return item.caption?.toLowerCase().includes(normalizedInput);
130
- });
131
- }
132
- };
133
- $: calcFilteredItems($touchedInput, $inputValue, value);
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
- declare const __propDef: {
4
- props: {
5
- id: string;
6
- disabled?: boolean;
7
- placeholder?: string;
8
- items?: BaseItem[];
9
- focus?: boolean;
10
- loadOptions?: ((str: string) => Promise<{
11
- items: BaseItem[];
12
- totalCount: number;
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
- events: {
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
- export {};
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>import { createEventDispatcher } from "svelte";
2
- import Icon from "../../../ui/Icon.svelte";
3
- export let id;
4
- export let disabled = false;
5
- export let placeholder = "";
6
- export let items = [];
7
- export let value = void 0;
8
- const dispatch = createEventDispatcher();
9
- function dispatchSelected(_data) {
10
- dispatch("selected", _data);
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
- declare const __propDef: {
4
- props: {
5
- id: string;
6
- disabled?: boolean;
7
- placeholder?: string;
8
- items?: BaseItem[];
9
- value?: string | number | undefined;
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
- events: {
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
- export {};
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;
@@ -1,9 +1,14 @@
1
- <script>export let href;
2
- export let target = void 0;
3
- export let kind = "info";
4
- const daisy = { info: "link-info", ghost: "" };
5
- let className = void 0;
6
- export { className as class };
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
- import { SvelteComponent } from "svelte";
2
- declare const __propDef: {
3
- props: {
4
- [x: string]: any;
5
- href: string;
6
- target?: import("svelte/elements").HTMLAttributeAnchorTarget | null | undefined;
7
- kind?: "info" | "ghost" | undefined;
8
- class?: string | undefined | null | undefined;
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
- events: {
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
- export {};
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>import {} from "../..";
2
- import Icon from "../Icon.svelte";
3
- import Tooltip from "../Tooltip.svelte";
4
- import Link from "./Link.svelte";
5
- export let item;
6
- export let noIcon = false;
7
- export let captionSubStyle = "under";
8
- const hasSomethingToDisplay = (item2) => {
9
- if (item2.href) {
10
- return true;
11
- }
12
- if (item2.caption) {
13
- return true;
14
- }
15
- return false;
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
- declare const __propDef: {
4
- props: {
5
- item: BaseItemLight | undefined;
6
- noIcon?: boolean;
7
- captionSubStyle?: "under" | "inline" | "none";
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
- events: {
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
- export {};
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;
@@ -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;