@cloudparker/moldex.js 0.0.64 → 0.0.66
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/services/dialog/dialog-service.d.ts +11 -11
- package/dist/services/dialog/dialog-service.js +0 -1
- package/dist/services/navigation/navigation-service.d.ts +17 -0
- package/dist/services/navigation/navigation-service.js +38 -0
- package/dist/services/utils/melody-service.d.ts +5 -0
- package/dist/services/utils/melody-service.js +41 -0
- package/dist/tailwind.css +1 -1
- package/dist/views/core/button/components/button/button.svelte +84 -133
- package/dist/views/core/button/components/button/button.svelte.d.ts +8 -7
- package/dist/views/core/button/components/button-back/button-back.svelte +16 -29
- package/dist/views/core/button/components/button-close/button-close.svelte +2 -4
- package/dist/views/core/button/components/button-close/button-close.svelte.d.ts +2 -2
- package/dist/views/core/button/components/button-close-icon/button-close-icon.svelte +16 -30
- package/dist/views/core/button/components/button-dropdown/button-dropdown.svelte +80 -0
- package/dist/views/core/button/components/button-dropdown/button-dropdown.svelte.d.ts +38 -0
- package/dist/views/core/button/components/button-list-item/button-list-item.svelte +65 -132
- package/dist/views/core/button/components/button-list-item/button-list-item.svelte.d.ts +22 -31
- package/dist/views/core/button/components/button-menu/button-menu.svelte +72 -235
- package/dist/views/core/button/components/button-menu/button-menu.svelte.d.ts +23 -43
- package/dist/views/core/button/components/button-ok/button-ok.svelte +2 -4
- package/dist/views/core/button/components/button-ok/button-ok.svelte.d.ts +2 -2
- package/dist/views/core/button/components/button-search/button-search.svelte +39 -0
- package/dist/views/core/button/components/button-search/button-search.svelte.d.ts +31 -0
- package/dist/views/core/button/index.d.ts +8 -5
- package/dist/views/core/button/index.js +4 -2
- package/dist/views/core/content-area/components/content-area.svelte +27 -40
- package/dist/views/core/dialog/components/cropper-dialog/cropper-dialog.svelte +33 -49
- package/dist/views/core/dialog/components/dialog/dialog.svelte +164 -263
- package/dist/views/core/dialog/components/dialog/dialog.svelte.d.ts +12 -12
- package/dist/views/core/dialog/components/list-dialog/list-picker-dialog.svelte +112 -158
- package/dist/views/core/dialog/components/loading-dialog/loading-dialog.svelte +18 -30
- package/dist/views/core/dialog/components/msg-dialog/msg-dialog.svelte +13 -22
- package/dist/views/core/dialog/components/text-field-dialog/text-field-dialog.svelte +35 -41
- package/dist/views/core/dialog/components/text-field-dialog/text-field-dialog.svelte.d.ts +2 -2
- package/dist/views/core/dialog/components/textarea-field-dialog/textarea-field-dialog.svelte +25 -40
- package/dist/views/core/dialog/components/textarea-field-dialog/textarea-field-dialog.svelte.d.ts +2 -2
- package/dist/views/core/dialog/index.d.ts +2 -2
- package/dist/views/core/drawer/components/drawer/drawer.svelte +35 -57
- package/dist/views/core/icon/components/icon/icon.svelte +14 -26
- package/dist/views/core/input/components/checkbox-field/checkbox-field.svelte +25 -44
- package/dist/views/core/input/components/color-field/color-field.svelte +69 -81
- package/dist/views/core/input/components/color-field/color-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/combobox-field/combobox-field.svelte +256 -331
- package/dist/views/core/input/components/combobox-field/combobox-field.svelte.d.ts +18 -17
- package/dist/views/core/input/components/date-field/date-field.svelte +30 -39
- package/dist/views/core/input/components/date-field/date-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/datetime-field/datetime-field.svelte +12 -18
- package/dist/views/core/input/components/datetime-field/datetime-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/email-field/email-field.svelte +12 -17
- package/dist/views/core/input/components/email-field/email-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/file-field/file-field.svelte +64 -78
- package/dist/views/core/input/components/file-field/file-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/input-field/input-field.svelte +159 -261
- package/dist/views/core/input/components/input-field/input-field.svelte.d.ts +8 -8
- package/dist/views/core/input/components/label/label.svelte +10 -24
- package/dist/views/core/input/components/number-field/number-field.svelte +12 -18
- package/dist/views/core/input/components/number-field/number-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/password-field/password-field.svelte +57 -70
- package/dist/views/core/input/components/password-field/password-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/phone-field/phone-field.svelte +118 -172
- package/dist/views/core/input/components/phone-field/phone-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/radio-field/radio-field.svelte +53 -84
- package/dist/views/core/input/components/radio-field/radio-field.svelte.d.ts +7 -7
- package/dist/views/core/input/components/range-field/range-field.svelte +42 -66
- package/dist/views/core/input/components/range-field/range-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/search-field/search-field.svelte +45 -62
- package/dist/views/core/input/components/search-field/search-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/text-field/text-field.svelte +16 -21
- package/dist/views/core/input/components/text-field/text-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/textarea-field/textarea-field.svelte +12 -17
- package/dist/views/core/input/components/textarea-field/textarea-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/time-field/time-field.svelte +12 -17
- package/dist/views/core/input/components/time-field/time-field.svelte.d.ts +2 -2
- package/dist/views/core/input/index.d.ts +4 -3
- package/dist/views/core/navbar/components/navbar/navbar.svelte +39 -77
- package/dist/views/core/no-data/components/no-data/no-data.svelte +20 -37
- package/dist/views/core/pagination/components/pagination/pagination.svelte +73 -102
- package/dist/views/core/progressbar/components/progressbar/progressbar.svelte +23 -37
- package/dist/views/core/ruler/components/vertical-ruler/verticcal-ruler.svelte +2 -6
- package/dist/views/core/screen-detector/components/screen-detector.svelte +9 -13
- package/dist/views/core/sidebar/components/sidebar.svelte +23 -36
- package/dist/views/core/spinner/components/spinner/spinner.svelte +2 -7
- package/dist/views/core/text/components/text-await/text-await.svelte +2 -8
- package/dist/views/core/text/components/text-copy/text-copy.svelte +17 -28
- package/dist/views/core/text/components/text-country/text-country.svelte +29 -41
- package/dist/views/core/text/components/text-country-state/text-country-state.svelte +29 -37
- package/dist/views/core/text/components/text-currency/text-currency.svelte +10 -21
- package/dist/views/core/text/components/text-date/text-date.svelte +21 -33
- package/dist/views/core/text/components/text-email/text-email.svelte +4 -13
- package/dist/views/core/text/components/text-html/text-html.svelte +2 -3
- package/dist/views/core/text/components/text-phone/text-phone.svelte +4 -13
- package/dist/views/core/toast/components/toast/toast.svelte +21 -44
- package/package.json +1 -1
|
@@ -1,69 +1,45 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
rangeSizeClassName = 'h-2 ';
|
|
44
|
-
break;
|
|
45
|
-
case 'sm':
|
|
46
|
-
rangeSizeClassName = 'h-1 ';
|
|
47
|
-
break;
|
|
48
|
-
case 'xs':
|
|
49
|
-
rangeSizeClassName = 'h-2-px ';
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
let inputRef: HTMLInputElement | null = $state(null);
|
|
55
|
-
|
|
56
|
-
export function getElement() {
|
|
57
|
-
return inputRef;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function focus() {
|
|
61
|
-
return inputRef && inputRef.focus();
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function select() {
|
|
65
|
-
return inputRef && inputRef.select();
|
|
66
|
-
}
|
|
1
|
+
<script lang="ts">import InputField, {} from "../input-field/input-field.svelte";
|
|
2
|
+
let {
|
|
3
|
+
id,
|
|
4
|
+
value = $bindable(0),
|
|
5
|
+
size = "md",
|
|
6
|
+
min = 0,
|
|
7
|
+
max = 100,
|
|
8
|
+
name,
|
|
9
|
+
step,
|
|
10
|
+
className,
|
|
11
|
+
thumbSize = "16px",
|
|
12
|
+
oninput,
|
|
13
|
+
onblur,
|
|
14
|
+
onfocus
|
|
15
|
+
} = $props();
|
|
16
|
+
let rangeSizeClassName = $state("");
|
|
17
|
+
$effect(() => {
|
|
18
|
+
switch (size) {
|
|
19
|
+
case "lg":
|
|
20
|
+
rangeSizeClassName = "h-3 ";
|
|
21
|
+
break;
|
|
22
|
+
case "md":
|
|
23
|
+
rangeSizeClassName = "h-2 ";
|
|
24
|
+
break;
|
|
25
|
+
case "sm":
|
|
26
|
+
rangeSizeClassName = "h-1 ";
|
|
27
|
+
break;
|
|
28
|
+
case "xs":
|
|
29
|
+
rangeSizeClassName = "h-2-px ";
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
let inputRef = $state(null);
|
|
34
|
+
export function getElement() {
|
|
35
|
+
return inputRef;
|
|
36
|
+
}
|
|
37
|
+
export function focus() {
|
|
38
|
+
return inputRef && inputRef.focus();
|
|
39
|
+
}
|
|
40
|
+
export function select() {
|
|
41
|
+
return inputRef && inputRef.select();
|
|
42
|
+
}
|
|
67
43
|
</script>
|
|
68
44
|
|
|
69
45
|
<input
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type InputFieldSize } from '../input-field/input-field.svelte';
|
|
2
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
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -16,7 +16,7 @@ declare const RangeField: $$__sveltets_2_IsomorphicComponent<{
|
|
|
16
16
|
id?: string;
|
|
17
17
|
name?: string;
|
|
18
18
|
className?: string;
|
|
19
|
-
size?:
|
|
19
|
+
size?: InputFieldSize;
|
|
20
20
|
value?: number;
|
|
21
21
|
min?: number;
|
|
22
22
|
max?: number;
|
|
@@ -1,65 +1,48 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
lastQuery = query;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function debounce<T extends (...args: any[]) => void>(
|
|
51
|
-
func: T,
|
|
52
|
-
wait: number
|
|
53
|
-
): (...args: Parameters<T>) => void {
|
|
54
|
-
let timeout: ReturnType<typeof setTimeout>;
|
|
55
|
-
|
|
56
|
-
return function (...args: Parameters<T>) {
|
|
57
|
-
clearTimeout(timeout);
|
|
58
|
-
timeout = setTimeout(() => {
|
|
59
|
-
func(...args);
|
|
60
|
-
}, wait);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
1
|
+
<script lang="ts">import { mdiMagnify } from "../../../icon";
|
|
2
|
+
import Icon from "../../../icon/components/icon/icon.svelte";
|
|
3
|
+
import InputField, {} from "../input-field/input-field.svelte";
|
|
4
|
+
let {
|
|
5
|
+
className,
|
|
6
|
+
placeholder,
|
|
7
|
+
iconClassName,
|
|
8
|
+
value = $bindable(""),
|
|
9
|
+
onSearch,
|
|
10
|
+
...props
|
|
11
|
+
} = $props();
|
|
12
|
+
const debouncedSearch = debounce(search, 300);
|
|
13
|
+
let lastQuery;
|
|
14
|
+
let inputFieldRef = $state(null);
|
|
15
|
+
export function focus() {
|
|
16
|
+
inputFieldRef?.focus();
|
|
17
|
+
}
|
|
18
|
+
export function getElement() {
|
|
19
|
+
return inputFieldRef;
|
|
20
|
+
}
|
|
21
|
+
export function select() {
|
|
22
|
+
inputFieldRef && inputFieldRef.select();
|
|
23
|
+
}
|
|
24
|
+
function handleInput(ev) {
|
|
25
|
+
let input = ev?.target;
|
|
26
|
+
if (input) {
|
|
27
|
+
let searchText = (input.value || "").toLowerCase().trim();
|
|
28
|
+
debouncedSearch(searchText);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function search(query) {
|
|
32
|
+
if (lastQuery != query) {
|
|
33
|
+
onSearch && onSearch(query);
|
|
34
|
+
lastQuery = query;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function debounce(func, wait) {
|
|
38
|
+
let timeout;
|
|
39
|
+
return function(...args) {
|
|
40
|
+
clearTimeout(timeout);
|
|
41
|
+
timeout = setTimeout(() => {
|
|
42
|
+
func(...args);
|
|
43
|
+
}, wait);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
63
46
|
</script>
|
|
64
47
|
|
|
65
48
|
{#snippet searchIcon()}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
2
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
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -12,7 +12,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
12
12
|
};
|
|
13
13
|
z_$$bindings?: Bindings;
|
|
14
14
|
}
|
|
15
|
-
declare const SearchField: $$__sveltets_2_IsomorphicComponent<
|
|
15
|
+
declare const SearchField: $$__sveltets_2_IsomorphicComponent<InputFieldProps & {
|
|
16
16
|
iconClassName?: string;
|
|
17
17
|
onSearch?: (value: string) => void;
|
|
18
18
|
}, {
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function select() {
|
|
20
|
-
return inputFieldRef && inputFieldRef.select();
|
|
21
|
-
}
|
|
1
|
+
<script lang="ts">import InputField, {} from "../input-field/input-field.svelte";
|
|
2
|
+
let {
|
|
3
|
+
maxlength,
|
|
4
|
+
value = $bindable(""),
|
|
5
|
+
...props
|
|
6
|
+
} = $props();
|
|
7
|
+
let inputFieldRef = $state(null);
|
|
8
|
+
export function focus() {
|
|
9
|
+
inputFieldRef?.focus();
|
|
10
|
+
}
|
|
11
|
+
export function getElement() {
|
|
12
|
+
return inputFieldRef;
|
|
13
|
+
}
|
|
14
|
+
export function select() {
|
|
15
|
+
return inputFieldRef && inputFieldRef.select();
|
|
16
|
+
}
|
|
22
17
|
</script>
|
|
23
18
|
|
|
24
19
|
<InputField
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
2
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
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -12,7 +12,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
12
12
|
};
|
|
13
13
|
z_$$bindings?: Bindings;
|
|
14
14
|
}
|
|
15
|
-
declare const TextField: $$__sveltets_2_IsomorphicComponent<
|
|
15
|
+
declare const TextField: $$__sveltets_2_IsomorphicComponent<InputFieldProps & {
|
|
16
16
|
value?: string | null | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function select(){
|
|
16
|
-
return inputFieldRef && inputFieldRef.select();
|
|
17
|
-
}
|
|
1
|
+
<script lang="ts">import InputField, {} from "../input-field/input-field.svelte";
|
|
2
|
+
let { value = $bindable(""), ...props } = $props();
|
|
3
|
+
let inputFieldRef = $state(null);
|
|
4
|
+
export function focus() {
|
|
5
|
+
inputFieldRef?.focus();
|
|
6
|
+
}
|
|
7
|
+
export function getElement() {
|
|
8
|
+
return inputFieldRef;
|
|
9
|
+
}
|
|
10
|
+
export function select() {
|
|
11
|
+
return inputFieldRef && inputFieldRef.select();
|
|
12
|
+
}
|
|
18
13
|
</script>
|
|
19
14
|
|
|
20
15
|
<InputField
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
2
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
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -12,7 +12,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
12
12
|
};
|
|
13
13
|
z_$$bindings?: Bindings;
|
|
14
14
|
}
|
|
15
|
-
declare const TextareaField: $$__sveltets_2_IsomorphicComponent<
|
|
15
|
+
declare const TextareaField: $$__sveltets_2_IsomorphicComponent<InputFieldProps, {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
17
17
|
}, {}, {
|
|
18
18
|
focus: () => void;
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function select(){
|
|
16
|
-
return inputFieldRef && inputFieldRef.select();
|
|
17
|
-
}
|
|
1
|
+
<script lang="ts">import InputField, {} from "../input-field/input-field.svelte";
|
|
2
|
+
let { value = $bindable(), ...props } = $props();
|
|
3
|
+
let inputFieldRef = $state(null);
|
|
4
|
+
export function focus() {
|
|
5
|
+
inputFieldRef?.focus();
|
|
6
|
+
}
|
|
7
|
+
export function getElement() {
|
|
8
|
+
return inputFieldRef;
|
|
9
|
+
}
|
|
10
|
+
export function select() {
|
|
11
|
+
return inputFieldRef && inputFieldRef.select();
|
|
12
|
+
}
|
|
18
13
|
</script>
|
|
19
14
|
|
|
20
15
|
<InputField bind:this={inputFieldRef} {...props} type="time" bind:value />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
2
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
3
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
4
|
$$bindings?: Bindings;
|
|
@@ -12,7 +12,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
12
12
|
};
|
|
13
13
|
z_$$bindings?: Bindings;
|
|
14
14
|
}
|
|
15
|
-
declare const TimeField: $$__sveltets_2_IsomorphicComponent<
|
|
15
|
+
declare const TimeField: $$__sveltets_2_IsomorphicComponent<InputFieldProps, {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
17
17
|
}, {}, {
|
|
18
18
|
focus: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import type {
|
|
1
|
+
import { type InputFieldAppearance, type InputFieldProps, type InputFieldSize } from "./components/input-field/input-field.svelte";
|
|
2
|
+
import type { RadioDiration, RadioItems, RadioItem, RadioPosition, RadioPropsType, RadioValuetype } from "./components/radio-field/radio-field.svelte";
|
|
3
|
+
import type { ComboboxFieldProps } from './components/combobox-field/combobox-field.svelte';
|
|
3
4
|
import CheckboxField from "./components/checkbox-field/checkbox-field.svelte";
|
|
4
5
|
import ColorField from "./components/color-field/color-field.svelte";
|
|
5
6
|
import ComboboxField from "./components/combobox-field/combobox-field.svelte";
|
|
@@ -18,5 +19,5 @@ import SearchField from "./components/search-field/search-field.svelte";
|
|
|
18
19
|
import TextField from "./components/text-field/text-field.svelte";
|
|
19
20
|
import TextareaField from "./components/textarea-field/textarea-field.svelte";
|
|
20
21
|
import TimeField from "./components/time-field/time-field.svelte";
|
|
21
|
-
export type {
|
|
22
|
+
export type { InputFieldAppearance, InputFieldProps, InputFieldSize, RadioDiration, RadioItems, RadioItem, RadioPosition, RadioPropsType, RadioValuetype, ComboboxFieldProps, };
|
|
22
23
|
export { CheckboxField, ColorField, ComboboxField, DateField, DatetimeField, EmailField, FileField, InputField, Label, NumberField, PasswordField, PhoneField, RadioField, RangeField, SearchField, TextareaField, TextField, TimeField };
|
|
@@ -1,81 +1,43 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
export type NavbarProps = {
|
|
3
|
-
disabledLogo?: boolean;
|
|
4
|
-
backIconPath?: string;
|
|
5
|
-
backButtonClassName?: string;
|
|
6
|
-
centerContainerClassName?: string;
|
|
7
|
-
centerSnippet?: Snippet<[]>;
|
|
8
|
-
children?: Snippet;
|
|
9
|
-
className?: String;
|
|
10
|
-
drawerButtonClassName?: string;
|
|
11
|
-
hasBack?: boolean;
|
|
12
|
-
hasLogo?: boolean;
|
|
13
|
-
hasMore?: boolean;
|
|
14
|
-
hasSubtitle?: boolean;
|
|
15
|
-
hasTitle?: boolean;
|
|
16
|
-
id?: string;
|
|
17
|
-
leftContainerClassName?: string;
|
|
18
|
-
leftSnippet?: Snippet<[]>;
|
|
19
|
-
logoButtonClassName?: string;
|
|
20
|
-
logoIconClassName?: string;
|
|
21
|
-
logoIconPath?: string;
|
|
22
|
-
logoImgClassName?: string;
|
|
23
|
-
logoImgSrc?: string;
|
|
24
|
-
moreIconPath?: string;
|
|
25
|
-
morePosition?: 'left' | 'right';
|
|
26
|
-
onLogo?: () => void;
|
|
27
|
-
onMore?: () => void;
|
|
28
|
-
onBack?: () => void;
|
|
29
|
-
rightContainerClassName?: string;
|
|
30
|
-
rightSnippet?: Snippet<[]>;
|
|
31
|
-
subtitle?: string;
|
|
32
|
-
subtitleClassName?: string;
|
|
33
|
-
title?: string;
|
|
34
|
-
titleClassName?: string;
|
|
35
|
-
};
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<script lang="ts">
|
|
39
|
-
import ButtonBack from '../../../button/components/button-back/button-back.svelte';
|
|
40
|
-
import Button from '../../../button/components/button/button.svelte';
|
|
41
|
-
import { Icon, mdiMenu } from '../../../icon';
|
|
42
|
-
import type { Snippet } from 'svelte';
|
|
43
|
-
import '../../../../../tailwind.css';
|
|
1
|
+
<script module lang="ts"></script>
|
|
44
2
|
|
|
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
|
-
|
|
3
|
+
<script lang="ts">import ButtonBack from "../../../button/components/button-back/button-back.svelte";
|
|
4
|
+
import Button from "../../../button/components/button/button.svelte";
|
|
5
|
+
import { Icon, mdiMenu } from "../../../icon";
|
|
6
|
+
import "../../../../../tailwind.css";
|
|
7
|
+
let {
|
|
8
|
+
disabledLogo,
|
|
9
|
+
backButtonClassName,
|
|
10
|
+
backIconPath,
|
|
11
|
+
centerContainerClassName = "",
|
|
12
|
+
centerSnippet,
|
|
13
|
+
children,
|
|
14
|
+
className = "",
|
|
15
|
+
drawerButtonClassName = "",
|
|
16
|
+
hasBack = false,
|
|
17
|
+
hasLogo = false,
|
|
18
|
+
hasMore = false,
|
|
19
|
+
hasSubtitle = false,
|
|
20
|
+
hasTitle = false,
|
|
21
|
+
id = "",
|
|
22
|
+
leftContainerClassName = "",
|
|
23
|
+
leftSnippet,
|
|
24
|
+
logoButtonClassName = "",
|
|
25
|
+
logoIconClassName = "text-indigo-600",
|
|
26
|
+
logoIconPath,
|
|
27
|
+
logoImgClassName = "",
|
|
28
|
+
logoImgSrc,
|
|
29
|
+
moreIconPath = mdiMenu,
|
|
30
|
+
morePosition = "left",
|
|
31
|
+
onLogo,
|
|
32
|
+
onMore,
|
|
33
|
+
onBack,
|
|
34
|
+
rightContainerClassName = "",
|
|
35
|
+
rightSnippet,
|
|
36
|
+
subtitle = "",
|
|
37
|
+
subtitleClassName = "",
|
|
38
|
+
title = "",
|
|
39
|
+
titleClassName = ""
|
|
40
|
+
} = $props();
|
|
79
41
|
</script>
|
|
80
42
|
|
|
81
43
|
<nav
|
|
@@ -1,40 +1,23 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
iconClassName = '',
|
|
22
|
-
iconPlacement = 'top',
|
|
23
|
-
children
|
|
24
|
-
}: PropsType = $props();
|
|
25
|
-
|
|
26
|
-
const iconPlacementClassNameMap: any = {
|
|
27
|
-
top: 'flex-col',
|
|
28
|
-
bottom: 'flex-col-reverse',
|
|
29
|
-
left: 'flex-row',
|
|
30
|
-
right: 'flex-row-reverse'
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
let iconPlacementClassName: string = $state('');
|
|
34
|
-
|
|
35
|
-
$effect(() => {
|
|
36
|
-
iconPlacementClassName = iconPlacementClassNameMap[iconPlacement];
|
|
37
|
-
});
|
|
1
|
+
<script lang="ts">import Icon from "../../../icon/components/icon/icon.svelte";
|
|
2
|
+
import "../../../../../tailwind.css";
|
|
3
|
+
let {
|
|
4
|
+
message = "No data found!",
|
|
5
|
+
className = "",
|
|
6
|
+
iconPath = "",
|
|
7
|
+
iconClassName = "",
|
|
8
|
+
iconPlacement = "top",
|
|
9
|
+
children
|
|
10
|
+
} = $props();
|
|
11
|
+
const iconPlacementClassNameMap = {
|
|
12
|
+
top: "flex-col",
|
|
13
|
+
bottom: "flex-col-reverse",
|
|
14
|
+
left: "flex-row",
|
|
15
|
+
right: "flex-row-reverse"
|
|
16
|
+
};
|
|
17
|
+
let iconPlacementClassName = $state("");
|
|
18
|
+
$effect(() => {
|
|
19
|
+
iconPlacementClassName = iconPlacementClassNameMap[iconPlacement];
|
|
20
|
+
});
|
|
38
21
|
</script>
|
|
39
22
|
|
|
40
23
|
<div
|