@cloudparker/moldex.js 4.1.5 → 4.1.7
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/package.json +6 -5
- package/dist/actions/badge.d.ts +0 -12
- package/dist/actions/badge.js +0 -22
- package/dist/actions/index.d.ts +0 -3
- package/dist/actions/index.js +0 -3
- package/dist/actions/no-context-menu.d.ts +0 -3
- package/dist/actions/no-context-menu.js +0 -11
- package/dist/actions/ripple.css +0 -29
- package/dist/actions/ripple.d.ts +0 -7
- package/dist/actions/ripple.js +0 -74
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/services/date/date-service.d.ts +0 -52
- package/dist/services/date/date-service.js +0 -206
- package/dist/services/dialog/dialog-service.d.ts +0 -112
- package/dist/services/dialog/dialog-service.js +0 -357
- package/dist/services/index.d.ts +0 -12
- package/dist/services/index.js +0 -12
- package/dist/services/navigation/navigation-service.d.ts +0 -39
- package/dist/services/navigation/navigation-service.js +0 -100
- package/dist/services/screen/screen-service.d.ts +0 -17
- package/dist/services/screen/screen-service.js +0 -39
- package/dist/services/toast/toast-service.d.ts +0 -5
- package/dist/services/toast/toast-service.js +0 -26
- package/dist/services/utils/color-service.d.ts +0 -46
- package/dist/services/utils/color-service.js +0 -73
- package/dist/services/utils/currency-service.d.ts +0 -91
- package/dist/services/utils/currency-service.js +0 -140
- package/dist/services/utils/download-service.d.ts +0 -91
- package/dist/services/utils/download-service.js +0 -159
- package/dist/services/utils/file-service.d.ts +0 -140
- package/dist/services/utils/file-service.js +0 -301
- package/dist/services/utils/http-service.d.ts +0 -77
- package/dist/services/utils/http-service.js +0 -158
- package/dist/services/utils/image-service.d.ts +0 -107
- package/dist/services/utils/image-service.js +0 -260
- package/dist/services/utils/melody-service.d.ts +0 -5
- package/dist/services/utils/melody-service.js +0 -41
- package/dist/services/utils/utils-service.d.ts +0 -260
- package/dist/services/utils/utils-service.js +0 -413
- package/dist/stores/referrer-store/referrer-store.svelte.d.ts +0 -3
- package/dist/stores/referrer-store/referrer-store.svelte.js +0 -11
- package/dist/stores/screen-size/screen-size-store.svelte.d.ts +0 -18
- package/dist/stores/screen-size/screen-size-store.svelte.js +0 -41
- package/dist/types.d.ts +0 -6
- package/dist/types.js +0 -7
- package/dist/views/core/button/components/button/button.svelte +0 -208
- package/dist/views/core/button/components/button/button.svelte.d.ts +0 -42
- package/dist/views/core/button/components/button-back/button-back.svelte +0 -46
- package/dist/views/core/button/components/button-back/button-back.svelte.d.ts +0 -11
- package/dist/views/core/button/components/button-close/button-close.svelte +0 -7
- package/dist/views/core/button/components/button-close/button-close.svelte.d.ts +0 -4
- package/dist/views/core/button/components/button-close-icon/button-close-icon.svelte +0 -47
- package/dist/views/core/button/components/button-close-icon/button-close-icon.svelte.d.ts +0 -11
- package/dist/views/core/button/components/button-dropdown/button-dropdown.svelte +0 -152
- package/dist/views/core/button/components/button-dropdown/button-dropdown.svelte.d.ts +0 -24
- package/dist/views/core/button/components/button-list-item/button-list-item.svelte +0 -184
- package/dist/views/core/button/components/button-list-item/button-list-item.svelte.d.ts +0 -48
- package/dist/views/core/button/components/button-menu/button-menu.svelte +0 -122
- package/dist/views/core/button/components/button-menu/button-menu.svelte.d.ts +0 -32
- package/dist/views/core/button/components/button-ok/button-ok.svelte +0 -7
- package/dist/views/core/button/components/button-ok/button-ok.svelte.d.ts +0 -4
- package/dist/views/core/button/components/button-search/button-search.svelte +0 -75
- package/dist/views/core/button/components/button-search/button-search.svelte.d.ts +0 -20
- package/dist/views/core/button/components/switch/switch.svelte +0 -70
- package/dist/views/core/button/components/switch/switch.svelte.d.ts +0 -11
- package/dist/views/core/button/index.d.ts +0 -16
- package/dist/views/core/button/index.js +0 -11
- package/dist/views/core/common/components/content-area/content-area.svelte +0 -47
- package/dist/views/core/common/components/content-area/content-area.svelte.d.ts +0 -12
- package/dist/views/core/common/components/loading/loading.svelte +0 -14
- package/dist/views/core/common/components/loading/loading.svelte.d.ts +0 -7
- package/dist/views/core/common/components/virtual-scrolling/virtual-scrolling-list.svelte +0 -60
- package/dist/views/core/common/components/virtual-scrolling/virtual-scrolling-list.svelte.d.ts +0 -11
- package/dist/views/core/common/index.d.ts +0 -4
- package/dist/views/core/common/index.js +0 -9
- package/dist/views/core/dialog/components/cropper-dialog/cropper-dialog.svelte +0 -63
- package/dist/views/core/dialog/components/cropper-dialog/cropper-dialog.svelte.d.ts +0 -15
- package/dist/views/core/dialog/components/dialog/dialog.svelte +0 -455
- package/dist/views/core/dialog/components/dialog/dialog.svelte.d.ts +0 -92
- package/dist/views/core/dialog/components/loading-dialog/loading-dialog.svelte +0 -42
- package/dist/views/core/dialog/components/loading-dialog/loading-dialog.svelte.d.ts +0 -12
- package/dist/views/core/dialog/components/msg-dialog/msg-dialog.svelte +0 -22
- package/dist/views/core/dialog/components/msg-dialog/msg-dialog.svelte.d.ts +0 -9
- package/dist/views/core/dialog/components/number-field-dialog/number-field-dialog.svelte +0 -57
- package/dist/views/core/dialog/components/number-field-dialog/number-field-dialog.svelte.d.ts +0 -14
- package/dist/views/core/dialog/components/picker-dialog/picker-dialog.svelte +0 -207
- package/dist/views/core/dialog/components/picker-dialog/picker-dialog.svelte.d.ts +0 -32
- package/dist/views/core/dialog/components/text-field-dialog/text-field-dialog.svelte +0 -56
- package/dist/views/core/dialog/components/text-field-dialog/text-field-dialog.svelte.d.ts +0 -15
- package/dist/views/core/dialog/components/textarea-field-dialog/textarea-field-dialog.svelte +0 -56
- package/dist/views/core/dialog/components/textarea-field-dialog/textarea-field-dialog.svelte.d.ts +0 -15
- package/dist/views/core/dialog/index.d.ts +0 -4
- package/dist/views/core/dialog/index.js +0 -2
- package/dist/views/core/drawer/components/drawer/drawer.svelte +0 -110
- package/dist/views/core/drawer/components/drawer/drawer.svelte.d.ts +0 -19
- package/dist/views/core/drawer/index.d.ts +0 -2
- package/dist/views/core/drawer/index.js +0 -2
- package/dist/views/core/icon/components/icon/icon.svelte +0 -27
- package/dist/views/core/icon/components/icon/icon.svelte.d.ts +0 -12
- package/dist/views/core/icon/components/icon-circle/icon-circle.svelte +0 -17
- package/dist/views/core/icon/components/icon-circle/icon-circle.svelte.d.ts +0 -8
- package/dist/views/core/icon/index.d.ts +0 -4
- package/dist/views/core/icon/index.js +0 -4
- package/dist/views/core/icon/services/icon-path-service.d.ts +0 -23
- package/dist/views/core/icon/services/icon-path-service.js +0 -24
- package/dist/views/core/index.d.ts +0 -16
- package/dist/views/core/index.js +0 -16
- package/dist/views/core/input/components/checkbox-field/checkbox-field.svelte +0 -83
- package/dist/views/core/input/components/checkbox-field/checkbox-field.svelte.d.ts +0 -19
- package/dist/views/core/input/components/color-field/color-field.svelte +0 -136
- package/dist/views/core/input/components/color-field/color-field.svelte.d.ts +0 -11
- package/dist/views/core/input/components/combobox-field/combobox-field.svelte +0 -542
- package/dist/views/core/input/components/combobox-field/combobox-field.svelte.d.ts +0 -56
- package/dist/views/core/input/components/date-field/date-field.svelte +0 -43
- package/dist/views/core/input/components/date-field/date-field.svelte.d.ts +0 -11
- package/dist/views/core/input/components/datetime-field/datetime-field.svelte +0 -21
- package/dist/views/core/input/components/datetime-field/datetime-field.svelte.d.ts +0 -8
- package/dist/views/core/input/components/email-field/email-field.svelte +0 -26
- package/dist/views/core/input/components/email-field/email-field.svelte.d.ts +0 -8
- package/dist/views/core/input/components/file-field/file-field.svelte +0 -105
- package/dist/views/core/input/components/file-field/file-field.svelte.d.ts +0 -13
- package/dist/views/core/input/components/input-field/input-field.svelte +0 -416
- package/dist/views/core/input/components/input-field/input-field.svelte.d.ts +0 -69
- package/dist/views/core/input/components/label/label.svelte +0 -48
- package/dist/views/core/input/components/label/label.svelte.d.ts +0 -14
- package/dist/views/core/input/components/number-field/number-field.svelte +0 -21
- package/dist/views/core/input/components/number-field/number-field.svelte.d.ts +0 -8
- package/dist/views/core/input/components/password-field/password-field.svelte +0 -103
- package/dist/views/core/input/components/password-field/password-field.svelte.d.ts +0 -12
- package/dist/views/core/input/components/phone-field/phone-field.svelte +0 -207
- package/dist/views/core/input/components/phone-field/phone-field.svelte.d.ts +0 -33
- package/dist/views/core/input/components/radio-field/radio-field.svelte +0 -151
- package/dist/views/core/input/components/radio-field/radio-field.svelte.d.ts +0 -32
- package/dist/views/core/input/components/range-field/range-field.svelte +0 -119
- package/dist/views/core/input/components/range-field/range-field.svelte.d.ts +0 -23
- package/dist/views/core/input/components/search-field/search-field.svelte +0 -79
- package/dist/views/core/input/components/search-field/search-field.svelte.d.ts +0 -12
- package/dist/views/core/input/components/text-field/text-field.svelte +0 -30
- package/dist/views/core/input/components/text-field/text-field.svelte.d.ts +0 -11
- package/dist/views/core/input/components/textarea-field/textarea-field.svelte +0 -26
- package/dist/views/core/input/components/textarea-field/textarea-field.svelte.d.ts +0 -8
- package/dist/views/core/input/components/time-field/time-field.svelte +0 -20
- package/dist/views/core/input/components/time-field/time-field.svelte.d.ts +0 -8
- package/dist/views/core/input/index.d.ts +0 -23
- package/dist/views/core/input/index.js +0 -20
- package/dist/views/core/navbar/components/navbar/navbar.svelte +0 -170
- package/dist/views/core/navbar/components/navbar/navbar.svelte.d.ts +0 -38
- package/dist/views/core/navbar/index.d.ts +0 -4
- package/dist/views/core/navbar/index.js +0 -3
- package/dist/views/core/no-data/components/no-data/no-data.svelte +0 -47
- package/dist/views/core/no-data/components/no-data/no-data.svelte.d.ts +0 -13
- package/dist/views/core/no-data/index.d.ts +0 -2
- package/dist/views/core/no-data/index.js +0 -2
- package/dist/views/core/pagination/components/pagination/pagination.svelte +0 -151
- package/dist/views/core/pagination/components/pagination/pagination.svelte.d.ts +0 -16
- package/dist/views/core/pagination/index.d.ts +0 -2
- package/dist/views/core/pagination/index.js +0 -2
- package/dist/views/core/progressbar/components/progressbar/progressbar.svelte +0 -55
- package/dist/views/core/progressbar/components/progressbar/progressbar.svelte.d.ts +0 -11
- package/dist/views/core/progressbar/index.d.ts +0 -2
- package/dist/views/core/progressbar/index.js +0 -2
- package/dist/views/core/ruler/components/vertical-ruler/verticcal-ruler.svelte +0 -8
- package/dist/views/core/ruler/components/vertical-ruler/verticcal-ruler.svelte.d.ts +0 -6
- package/dist/views/core/ruler/index.d.ts +0 -2
- package/dist/views/core/ruler/index.js +0 -2
- package/dist/views/core/screen-detector/components/screen-detector.svelte +0 -17
- package/dist/views/core/screen-detector/components/screen-detector.svelte.d.ts +0 -3
- package/dist/views/core/screen-detector/index.d.ts +0 -2
- package/dist/views/core/screen-detector/index.js +0 -2
- package/dist/views/core/sidebar/components/sidebar.svelte +0 -49
- package/dist/views/core/sidebar/components/sidebar.svelte.d.ts +0 -12
- package/dist/views/core/sidebar/index.d.ts +0 -2
- package/dist/views/core/sidebar/index.js +0 -5
- package/dist/views/core/spinner/components/spinner/spinner.svelte +0 -21
- package/dist/views/core/spinner/components/spinner/spinner.svelte.d.ts +0 -6
- package/dist/views/core/spinner/index.d.ts +0 -2
- package/dist/views/core/spinner/index.js +0 -2
- package/dist/views/core/text/components/text-await/text-await.svelte +0 -23
- package/dist/views/core/text/components/text-await/text-await.svelte.d.ts +0 -10
- package/dist/views/core/text/components/text-copy/text-copy.svelte +0 -40
- package/dist/views/core/text/components/text-copy/text-copy.svelte.d.ts +0 -10
- package/dist/views/core/text/components/text-currency/text-currency.svelte +0 -24
- package/dist/views/core/text/components/text-currency/text-currency.svelte.d.ts +0 -11
- package/dist/views/core/text/components/text-date/text-date.svelte +0 -40
- package/dist/views/core/text/components/text-date/text-date.svelte.d.ts +0 -10
- package/dist/views/core/text/components/text-email/text-email.svelte +0 -22
- package/dist/views/core/text/components/text-email/text-email.svelte.d.ts +0 -9
- package/dist/views/core/text/components/text-html/text-html.svelte +0 -7
- package/dist/views/core/text/components/text-html/text-html.svelte.d.ts +0 -6
- package/dist/views/core/text/components/text-phone/text-phone.svelte +0 -25
- package/dist/views/core/text/components/text-phone/text-phone.svelte.d.ts +0 -9
- package/dist/views/core/text/index.d.ts +0 -8
- package/dist/views/core/text/index.js +0 -8
- package/dist/views/core/toast/components/toast/toast.svelte +0 -64
- package/dist/views/core/toast/components/toast/toast.svelte.d.ts +0 -14
- package/dist/views/core/toast/index.d.ts +0 -2
- package/dist/views/core/toast/index.js +0 -1
- package/dist/views/extra/fields/country-combobox-field.svelte +0 -42
- package/dist/views/extra/fields/country-combobox-field.svelte.d.ts +0 -8
- package/dist/views/extra/index.d.ts +0 -6
- package/dist/views/extra/index.js +0 -5
- package/dist/views/extra/loaders/country-loader.svelte +0 -44
- package/dist/views/extra/loaders/country-loader.svelte.d.ts +0 -16
- package/dist/views/extra/texts/text-country-state.svelte +0 -48
- package/dist/views/extra/texts/text-country-state.svelte.d.ts +0 -6
- package/dist/views/extra/texts/text-country.svelte +0 -21
- package/dist/views/extra/texts/text-country.svelte.d.ts +0 -6
- package/dist/views/index.d.ts +0 -2
- package/dist/views/index.js +0 -2
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
import Icon from '../../../icon/components/icon/icon.svelte';
|
|
4
|
-
import { mdiMagnify } from '../../../icon/index.js';
|
|
5
|
-
import InputField, { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
6
|
-
|
|
7
|
-
let {
|
|
8
|
-
className,
|
|
9
|
-
placeholder,
|
|
10
|
-
iconClassName,
|
|
11
|
-
value = $bindable(''),
|
|
12
|
-
onSearch,
|
|
13
|
-
...props
|
|
14
|
-
}: InputFieldProps & {
|
|
15
|
-
iconClassName?: string;
|
|
16
|
-
onSearch?: (value: string) => void;
|
|
17
|
-
} = $props();
|
|
18
|
-
|
|
19
|
-
const debouncedSearch = debounce(search, 300);
|
|
20
|
-
let lastQuery: string;
|
|
21
|
-
|
|
22
|
-
let inputFieldRef: any | null = $state(null);
|
|
23
|
-
|
|
24
|
-
export function focus() {
|
|
25
|
-
inputFieldRef?.focus();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function getElement() {
|
|
29
|
-
return inputFieldRef;
|
|
30
|
-
}
|
|
31
|
-
export function select() {
|
|
32
|
-
inputFieldRef && inputFieldRef.select();
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function handleInput(ev: any) {
|
|
36
|
-
// console.log(ev);
|
|
37
|
-
let input: HTMLInputElement = ev?.target;
|
|
38
|
-
if (input) {
|
|
39
|
-
let searchText = (input.value || '').toLowerCase().trim();
|
|
40
|
-
debouncedSearch(searchText);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function search(query: string) {
|
|
45
|
-
if (lastQuery != query) {
|
|
46
|
-
onSearch && onSearch(query);
|
|
47
|
-
lastQuery = query;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function debounce<T extends (...args: any[]) => void>(
|
|
52
|
-
func: T,
|
|
53
|
-
wait: number
|
|
54
|
-
): (...args: Parameters<T>) => void {
|
|
55
|
-
let timeout: ReturnType<typeof setTimeout>;
|
|
56
|
-
|
|
57
|
-
return function (...args: Parameters<T>) {
|
|
58
|
-
clearTimeout(timeout);
|
|
59
|
-
timeout = setTimeout(() => {
|
|
60
|
-
func(...args);
|
|
61
|
-
}, wait);
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
</script>
|
|
65
|
-
|
|
66
|
-
{#snippet searchIcon()}
|
|
67
|
-
<Icon path={mdiMagnify} className="mx-3 text-gray-400 {iconClassName}"></Icon>
|
|
68
|
-
{/snippet}
|
|
69
|
-
<InputField
|
|
70
|
-
bind:value
|
|
71
|
-
bind:this={inputFieldRef}
|
|
72
|
-
{...props}
|
|
73
|
-
type="search"
|
|
74
|
-
maxlength={props?.maxlength || 200}
|
|
75
|
-
leftSnippet={searchIcon}
|
|
76
|
-
className="pl-12 {className}"
|
|
77
|
-
{placeholder}
|
|
78
|
-
onInput={handleInput}
|
|
79
|
-
/>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
2
|
-
type $$ComponentProps = InputFieldProps & {
|
|
3
|
-
iconClassName?: string;
|
|
4
|
-
onSearch?: (value: string) => void;
|
|
5
|
-
};
|
|
6
|
-
declare const SearchField: import("svelte").Component<$$ComponentProps, {
|
|
7
|
-
focus: () => void;
|
|
8
|
-
getElement: () => any;
|
|
9
|
-
select: () => void;
|
|
10
|
-
}, "value">;
|
|
11
|
-
type SearchField = ReturnType<typeof SearchField>;
|
|
12
|
-
export default SearchField;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import InputField, { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
3
|
-
|
|
4
|
-
let {
|
|
5
|
-
maxlength,
|
|
6
|
-
value = $bindable(''),
|
|
7
|
-
...props
|
|
8
|
-
}: InputFieldProps & { value?: string | null | undefined } = $props();
|
|
9
|
-
let inputFieldRef: any | null = $state(null);
|
|
10
|
-
|
|
11
|
-
export function focus() {
|
|
12
|
-
inputFieldRef?.focus();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function getElement() {
|
|
16
|
-
return inputFieldRef;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function select() {
|
|
20
|
-
return inputFieldRef && inputFieldRef.select();
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<InputField
|
|
25
|
-
{...props}
|
|
26
|
-
bind:value={value as string | null | undefined}
|
|
27
|
-
bind:this={inputFieldRef}
|
|
28
|
-
type="text"
|
|
29
|
-
maxlength={maxlength || 200}
|
|
30
|
-
/>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
2
|
-
type $$ComponentProps = InputFieldProps & {
|
|
3
|
-
value?: string | null | undefined;
|
|
4
|
-
};
|
|
5
|
-
declare const TextField: import("svelte").Component<$$ComponentProps, {
|
|
6
|
-
focus: () => void;
|
|
7
|
-
getElement: () => any;
|
|
8
|
-
select: () => any;
|
|
9
|
-
}, "value">;
|
|
10
|
-
type TextField = ReturnType<typeof TextField>;
|
|
11
|
-
export default TextField;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import InputField, { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
3
|
-
|
|
4
|
-
let { value = $bindable(''), ...props }: InputFieldProps = $props();
|
|
5
|
-
let inputFieldRef: any | null = $state(null);
|
|
6
|
-
|
|
7
|
-
export function focus() {
|
|
8
|
-
inputFieldRef?.focus();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function getElement() {
|
|
12
|
-
return inputFieldRef;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function select() {
|
|
16
|
-
return inputFieldRef && inputFieldRef.select();
|
|
17
|
-
}
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<InputField
|
|
21
|
-
bind:this={inputFieldRef}
|
|
22
|
-
{...props}
|
|
23
|
-
type="textarea"
|
|
24
|
-
maxlength={props?.maxlength || 300}
|
|
25
|
-
bind:value
|
|
26
|
-
/>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
2
|
-
declare const TextareaField: import("svelte").Component<InputFieldProps, {
|
|
3
|
-
focus: () => void;
|
|
4
|
-
getElement: () => any;
|
|
5
|
-
select: () => any;
|
|
6
|
-
}, "value">;
|
|
7
|
-
type TextareaField = ReturnType<typeof TextareaField>;
|
|
8
|
-
export default TextareaField;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import InputField, { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
3
|
-
|
|
4
|
-
let { value = $bindable(), ...props }: InputFieldProps = $props();
|
|
5
|
-
let inputFieldRef: any | null = $state(null);
|
|
6
|
-
|
|
7
|
-
export function focus() {
|
|
8
|
-
inputFieldRef?.focus();
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function getElement() {
|
|
12
|
-
return inputFieldRef;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function select() {
|
|
16
|
-
return inputFieldRef && inputFieldRef.select();
|
|
17
|
-
}
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<InputField bind:this={inputFieldRef} {...props} type="time" bind:value />
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
2
|
-
declare const TimeField: import("svelte").Component<InputFieldProps, {
|
|
3
|
-
focus: () => void;
|
|
4
|
-
getElement: () => any;
|
|
5
|
-
select: () => any;
|
|
6
|
-
}, "value">;
|
|
7
|
-
type TimeField = ReturnType<typeof TimeField>;
|
|
8
|
-
export default TimeField;
|
|
@@ -1,23 +0,0 @@
|
|
|
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';
|
|
4
|
-
import CheckboxField from "./components/checkbox-field/checkbox-field.svelte";
|
|
5
|
-
import ColorField from "./components/color-field/color-field.svelte";
|
|
6
|
-
import ComboboxField from "./components/combobox-field/combobox-field.svelte";
|
|
7
|
-
import DateField from "./components/date-field/date-field.svelte";
|
|
8
|
-
import DatetimeField from "./components/datetime-field/datetime-field.svelte";
|
|
9
|
-
import EmailField from "./components/email-field/email-field.svelte";
|
|
10
|
-
import FileField from "./components/file-field/file-field.svelte";
|
|
11
|
-
import InputField from "./components/input-field/input-field.svelte";
|
|
12
|
-
import Label from "./components/label/label.svelte";
|
|
13
|
-
import NumberField from "./components/number-field/number-field.svelte";
|
|
14
|
-
import PasswordField from "./components/password-field/password-field.svelte";
|
|
15
|
-
import PhoneField from "./components/phone-field/phone-field.svelte";
|
|
16
|
-
import RadioField from "./components/radio-field/radio-field.svelte";
|
|
17
|
-
import RangeField from "./components/range-field/range-field.svelte";
|
|
18
|
-
import SearchField from "./components/search-field/search-field.svelte";
|
|
19
|
-
import TextField from "./components/text-field/text-field.svelte";
|
|
20
|
-
import TextareaField from "./components/textarea-field/textarea-field.svelte";
|
|
21
|
-
import TimeField from "./components/time-field/time-field.svelte";
|
|
22
|
-
export type { InputFieldAppearance, InputFieldProps, InputFieldSize, RadioDiration, RadioItems, RadioItem, RadioPosition, RadioPropsType, RadioValuetype, ComboboxFieldProps, };
|
|
23
|
-
export { CheckboxField, ColorField, ComboboxField, DateField, DatetimeField, EmailField, FileField, InputField, Label, NumberField, PasswordField, PhoneField, RadioField, RangeField, SearchField, TextareaField, TextField, TimeField };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {} from "./components/input-field/input-field.svelte";
|
|
2
|
-
import CheckboxField from "./components/checkbox-field/checkbox-field.svelte";
|
|
3
|
-
import ColorField from "./components/color-field/color-field.svelte";
|
|
4
|
-
import ComboboxField from "./components/combobox-field/combobox-field.svelte";
|
|
5
|
-
import DateField from "./components/date-field/date-field.svelte";
|
|
6
|
-
import DatetimeField from "./components/datetime-field/datetime-field.svelte";
|
|
7
|
-
import EmailField from "./components/email-field/email-field.svelte";
|
|
8
|
-
import FileField from "./components/file-field/file-field.svelte";
|
|
9
|
-
import InputField from "./components/input-field/input-field.svelte";
|
|
10
|
-
import Label from "./components/label/label.svelte";
|
|
11
|
-
import NumberField from "./components/number-field/number-field.svelte";
|
|
12
|
-
import PasswordField from "./components/password-field/password-field.svelte";
|
|
13
|
-
import PhoneField from "./components/phone-field/phone-field.svelte";
|
|
14
|
-
import RadioField from "./components/radio-field/radio-field.svelte";
|
|
15
|
-
import RangeField from "./components/range-field/range-field.svelte";
|
|
16
|
-
import SearchField from "./components/search-field/search-field.svelte";
|
|
17
|
-
import TextField from "./components/text-field/text-field.svelte";
|
|
18
|
-
import TextareaField from "./components/textarea-field/textarea-field.svelte";
|
|
19
|
-
import TimeField from "./components/time-field/time-field.svelte";
|
|
20
|
-
export { CheckboxField, ColorField, ComboboxField, DateField, DatetimeField, EmailField, FileField, InputField, Label, NumberField, PasswordField, PhoneField, RadioField, RangeField, SearchField, TextareaField, TextField, TimeField };
|
|
@@ -1,170 +0,0 @@
|
|
|
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
|
-
|
|
44
|
-
let {
|
|
45
|
-
disabledLogo,
|
|
46
|
-
backButtonClassName,
|
|
47
|
-
backIconPath,
|
|
48
|
-
centerContainerClassName = '',
|
|
49
|
-
centerSnippet,
|
|
50
|
-
children,
|
|
51
|
-
className = '',
|
|
52
|
-
drawerButtonClassName = '',
|
|
53
|
-
hasBack = false,
|
|
54
|
-
hasLogo = false,
|
|
55
|
-
hasMore = false,
|
|
56
|
-
hasSubtitle = false,
|
|
57
|
-
hasTitle = false,
|
|
58
|
-
id = '',
|
|
59
|
-
leftContainerClassName = '',
|
|
60
|
-
leftSnippet,
|
|
61
|
-
logoButtonClassName = '',
|
|
62
|
-
logoIconClassName = 'text-indigo-600',
|
|
63
|
-
logoIconPath,
|
|
64
|
-
logoImgClassName = '',
|
|
65
|
-
logoImgSrc,
|
|
66
|
-
moreIconPath = mdiMenu,
|
|
67
|
-
morePosition = 'left',
|
|
68
|
-
onLogo,
|
|
69
|
-
onMore,
|
|
70
|
-
onBack,
|
|
71
|
-
rightContainerClassName = '',
|
|
72
|
-
rightSnippet,
|
|
73
|
-
subtitle = '',
|
|
74
|
-
subtitleClassName = '',
|
|
75
|
-
title = '',
|
|
76
|
-
titleClassName = ''
|
|
77
|
-
}: NavbarProps = $props();
|
|
78
|
-
</script>
|
|
79
|
-
|
|
80
|
-
<nav
|
|
81
|
-
class="sticky top-0 z-20 flex h-16 shrink-0 items-center px-2 border-b border-neutral-100 dark:border-neutral-700 bg-white dark:bg-neutral-800 shadow-sm {className}"
|
|
82
|
-
>
|
|
83
|
-
{#if hasBack}
|
|
84
|
-
<div class="h-full flex items-center">
|
|
85
|
-
<ButtonBack
|
|
86
|
-
iconPath={backIconPath}
|
|
87
|
-
className="text-neutral-800 dark:text-neutral-100 {backButtonClassName}"
|
|
88
|
-
onClick={onBack}
|
|
89
|
-
/>
|
|
90
|
-
</div>
|
|
91
|
-
{/if}
|
|
92
|
-
{#if hasMore && morePosition === 'left'}
|
|
93
|
-
<div class="h-full">
|
|
94
|
-
<button
|
|
95
|
-
type="button"
|
|
96
|
-
class="h-full px-2 text-neutral-800 dark:text-neutral-100 {drawerButtonClassName}"
|
|
97
|
-
disabled={disabledLogo}
|
|
98
|
-
onclick={onMore}
|
|
99
|
-
>
|
|
100
|
-
<Icon path={moreIconPath} />
|
|
101
|
-
</button>
|
|
102
|
-
</div>
|
|
103
|
-
{/if}
|
|
104
|
-
{#if hasLogo}
|
|
105
|
-
<div class="h-full">
|
|
106
|
-
<button
|
|
107
|
-
id="btn-more"
|
|
108
|
-
type="button"
|
|
109
|
-
class="h-full px-2 rounded-0 text-neutral-800 dark:text-neutral-100 {logoButtonClassName}"
|
|
110
|
-
disabled={!onLogo}
|
|
111
|
-
onclick={onLogo}
|
|
112
|
-
>
|
|
113
|
-
{#if logoIconPath}
|
|
114
|
-
<Icon path={logoIconPath} className="h-10 w-10 {logoIconClassName}" />
|
|
115
|
-
{/if}
|
|
116
|
-
{#if logoImgSrc}
|
|
117
|
-
<img src={logoImgSrc} class="h-8 w-8 {logoImgClassName}" alt="logo" />
|
|
118
|
-
{/if}
|
|
119
|
-
</button>
|
|
120
|
-
</div>
|
|
121
|
-
{/if}
|
|
122
|
-
{#if children}
|
|
123
|
-
{@render children()}
|
|
124
|
-
{:else}
|
|
125
|
-
<div class="h-full flex items-center">
|
|
126
|
-
<div>
|
|
127
|
-
{#if hasTitle}
|
|
128
|
-
<div class="font-bold px-2 text-neutral-800 dark:text-neutral-100 {titleClassName}">
|
|
129
|
-
{title || ''}
|
|
130
|
-
</div>
|
|
131
|
-
{/if}
|
|
132
|
-
{#if hasSubtitle}
|
|
133
|
-
<div class="text-sm px-2 text-neutral-600 dark:text-neutral-500 {subtitleClassName}">
|
|
134
|
-
{subtitle || ''}
|
|
135
|
-
</div>
|
|
136
|
-
{/if}
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
<div class="h-full {leftContainerClassName}">
|
|
140
|
-
{#if leftSnippet}
|
|
141
|
-
{@render leftSnippet()}
|
|
142
|
-
{/if}
|
|
143
|
-
</div>
|
|
144
|
-
<div class="flex-grow flex items-center justify-center h-full {centerContainerClassName}">
|
|
145
|
-
{#if centerSnippet}
|
|
146
|
-
{@render centerSnippet()}
|
|
147
|
-
{/if}
|
|
148
|
-
</div>
|
|
149
|
-
<div class="h-full {rightContainerClassName}">
|
|
150
|
-
{#if rightSnippet}
|
|
151
|
-
{@render rightSnippet()}
|
|
152
|
-
{/if}
|
|
153
|
-
</div>
|
|
154
|
-
{/if}
|
|
155
|
-
{#if hasMore && morePosition === 'right'}
|
|
156
|
-
<div class="h-full">
|
|
157
|
-
<div class="h-full">
|
|
158
|
-
<button
|
|
159
|
-
id="btn-more"
|
|
160
|
-
type="button"
|
|
161
|
-
class="h-full px-2 text-neutral-800 dark:text-neutral-100 {drawerButtonClassName}"
|
|
162
|
-
disabled={!onMore}
|
|
163
|
-
onclick={onMore}
|
|
164
|
-
>
|
|
165
|
-
<Icon path={moreIconPath} />
|
|
166
|
-
</button>
|
|
167
|
-
</div>
|
|
168
|
-
</div>
|
|
169
|
-
{/if}
|
|
170
|
-
</nav>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export type NavbarProps = {
|
|
2
|
-
disabledLogo?: boolean;
|
|
3
|
-
backIconPath?: string;
|
|
4
|
-
backButtonClassName?: string;
|
|
5
|
-
centerContainerClassName?: string;
|
|
6
|
-
centerSnippet?: Snippet<[]>;
|
|
7
|
-
children?: Snippet;
|
|
8
|
-
className?: String;
|
|
9
|
-
drawerButtonClassName?: string;
|
|
10
|
-
hasBack?: boolean;
|
|
11
|
-
hasLogo?: boolean;
|
|
12
|
-
hasMore?: boolean;
|
|
13
|
-
hasSubtitle?: boolean;
|
|
14
|
-
hasTitle?: boolean;
|
|
15
|
-
id?: string;
|
|
16
|
-
leftContainerClassName?: string;
|
|
17
|
-
leftSnippet?: Snippet<[]>;
|
|
18
|
-
logoButtonClassName?: string;
|
|
19
|
-
logoIconClassName?: string;
|
|
20
|
-
logoIconPath?: string;
|
|
21
|
-
logoImgClassName?: string;
|
|
22
|
-
logoImgSrc?: string;
|
|
23
|
-
moreIconPath?: string;
|
|
24
|
-
morePosition?: 'left' | 'right';
|
|
25
|
-
onLogo?: () => void;
|
|
26
|
-
onMore?: () => void;
|
|
27
|
-
onBack?: () => void;
|
|
28
|
-
rightContainerClassName?: string;
|
|
29
|
-
rightSnippet?: Snippet<[]>;
|
|
30
|
-
subtitle?: string;
|
|
31
|
-
subtitleClassName?: string;
|
|
32
|
-
title?: string;
|
|
33
|
-
titleClassName?: string;
|
|
34
|
-
};
|
|
35
|
-
import type { Snippet } from 'svelte';
|
|
36
|
-
declare const Navbar: import("svelte").Component<NavbarProps, {}, "">;
|
|
37
|
-
type Navbar = ReturnType<typeof Navbar>;
|
|
38
|
-
export default Navbar;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import Icon from '../../../icon/components/icon/icon.svelte';
|
|
3
|
-
import type { Snippet } from 'svelte';
|
|
4
|
-
|
|
5
|
-
type PlacementType = 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
-
|
|
7
|
-
type PropsType = {
|
|
8
|
-
message?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
iconPath?: string;
|
|
11
|
-
iconClassName?: string;
|
|
12
|
-
iconPlacement?: PlacementType;
|
|
13
|
-
children?: Snippet;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
let {
|
|
17
|
-
message = 'No data found!',
|
|
18
|
-
className = '',
|
|
19
|
-
iconPath = '',
|
|
20
|
-
iconClassName = '',
|
|
21
|
-
iconPlacement = 'top',
|
|
22
|
-
children
|
|
23
|
-
}: PropsType = $props();
|
|
24
|
-
|
|
25
|
-
const iconPlacementClassNameMap: any = {
|
|
26
|
-
top: 'flex-col',
|
|
27
|
-
bottom: 'flex-col-reverse',
|
|
28
|
-
left: 'flex-row',
|
|
29
|
-
right: 'flex-row-reverse'
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
let iconPlacementClassName: string = $derived(iconPlacementClassNameMap[iconPlacement]);
|
|
33
|
-
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<div
|
|
37
|
-
class="flex items-center justify-center gap-3 text-gray-500 p-4 {iconPlacementClassName} {className}"
|
|
38
|
-
>
|
|
39
|
-
{#if children}
|
|
40
|
-
{@render children()}
|
|
41
|
-
{:else}
|
|
42
|
-
{#if iconPath}
|
|
43
|
-
<Icon path={iconPath} className="w-6 h-6 {iconClassName}" />
|
|
44
|
-
{/if}
|
|
45
|
-
<div>{@html message}</div>
|
|
46
|
-
{/if}
|
|
47
|
-
</div>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
|
-
type PlacementType = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
-
type PropsType = {
|
|
4
|
-
message?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
iconPath?: string;
|
|
7
|
-
iconClassName?: string;
|
|
8
|
-
iconPlacement?: PlacementType;
|
|
9
|
-
children?: Snippet;
|
|
10
|
-
};
|
|
11
|
-
declare const NoData: import("svelte").Component<PropsType, {}, "">;
|
|
12
|
-
type NoData = ReturnType<typeof NoData>;
|
|
13
|
-
export default NoData;
|