@cloudparker/moldex.js 4.1.6 → 4.1.8
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/actions/ripple.js +1 -1
- package/dist/services/date/date-service.d.ts +11 -11
- package/dist/services/dialog/dialog-service.d.ts +6 -22
- package/dist/services/dialog/dialog-service.js +2 -9
- package/dist/services/navigation/navigation-service.d.ts +1 -1
- package/dist/services/navigation/navigation-service.js +3 -3
- package/dist/services/screen/screen-service.d.ts +3 -3
- package/dist/services/screen/screen-service.js +2 -2
- package/dist/services/toast/toast-service.d.ts +1 -1
- package/dist/services/toast/toast-service.js +1 -1
- package/dist/services/utils/image-service.d.ts +4 -4
- package/dist/services/utils/image-service.js +8 -8
- package/dist/services/utils/utils-service.js +1 -1
- package/dist/stores/screen-size/screen-size-store.svelte.d.ts +1 -1
- package/dist/views/core/button/components/button/button.svelte +3 -51
- package/dist/views/core/button/components/button/button.svelte.d.ts +1 -39
- package/dist/views/core/button/components/button-close/button-close.svelte +2 -1
- package/dist/views/core/button/components/button-close/button-close.svelte.d.ts +1 -1
- package/dist/views/core/button/components/button-dropdown/button-dropdown.svelte +2 -5
- package/dist/views/core/button/components/button-dropdown/button-dropdown.svelte.d.ts +1 -1
- package/dist/views/core/button/components/button-list-item/button-list-item.svelte +6 -54
- package/dist/views/core/button/components/button-list-item/button-list-item.svelte.d.ts +1 -45
- package/dist/views/core/button/components/button-menu/button-menu.svelte +3 -20
- package/dist/views/core/button/components/button-menu/button-menu.svelte.d.ts +1 -12
- package/dist/views/core/button/components/button-ok/button-ok.svelte +3 -1
- package/dist/views/core/button/components/button-ok/button-ok.svelte.d.ts +1 -1
- package/dist/views/core/button/components/button-search/button-search.svelte +5 -8
- package/dist/views/core/button/components/button-search/button-search.svelte.d.ts +2 -1
- package/dist/views/core/button/components/switch/switch.svelte +3 -11
- package/dist/views/core/button/components/switch/switch.svelte.d.ts +1 -8
- package/dist/views/core/button/index.d.ts +2 -6
- package/dist/views/core/button/index.js +2 -1
- package/dist/views/core/button/types.d.ts +100 -0
- package/dist/views/core/button/types.js +1 -0
- package/dist/views/core/dialog/components/cropper-dialog/cropper-dialog.svelte +3 -15
- package/dist/views/core/dialog/components/cropper-dialog/cropper-dialog.svelte.d.ts +2 -12
- package/dist/views/core/dialog/components/dialog/dialog.svelte +15 -100
- package/dist/views/core/dialog/components/dialog/dialog.svelte.d.ts +1 -74
- package/dist/views/core/dialog/components/loading-dialog/loading-dialog.svelte +3 -3
- package/dist/views/core/dialog/components/loading-dialog/loading-dialog.svelte.d.ts +1 -1
- package/dist/views/core/dialog/components/msg-dialog/msg-dialog.svelte +1 -1
- package/dist/views/core/dialog/components/msg-dialog/msg-dialog.svelte.d.ts +1 -1
- package/dist/views/core/dialog/components/number-field-dialog/number-field-dialog.svelte +2 -2
- package/dist/views/core/dialog/components/number-field-dialog/number-field-dialog.svelte.d.ts +1 -1
- package/dist/views/core/dialog/components/picker-dialog/picker-dialog.svelte +9 -35
- package/dist/views/core/dialog/components/picker-dialog/picker-dialog.svelte.d.ts +1 -28
- package/dist/views/core/dialog/components/text-field-dialog/text-field-dialog.svelte +4 -4
- 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 +4 -4
- 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 +9 -4
- package/dist/views/core/dialog/index.js +9 -2
- package/dist/views/core/dialog/types.d.ts +105 -0
- package/dist/views/core/dialog/types.js +1 -0
- package/dist/views/core/input/components/checkbox-field/checkbox-field.svelte.d.ts +2 -2
- package/dist/views/core/input/components/color-field/color-field.svelte +2 -3
- package/dist/views/core/input/components/color-field/color-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/combobox-field/combobox-field.svelte +5 -55
- package/dist/views/core/input/components/combobox-field/combobox-field.svelte.d.ts +1 -50
- package/dist/views/core/input/components/date-field/date-field.svelte +2 -5
- package/dist/views/core/input/components/date-field/date-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/datetime-field/datetime-field.svelte +2 -1
- package/dist/views/core/input/components/datetime-field/datetime-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/email-field/email-field.svelte +2 -1
- package/dist/views/core/input/components/email-field/email-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/file-field/file-field.svelte +2 -1
- package/dist/views/core/input/components/file-field/file-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/input-field/input-field.svelte +3 -83
- package/dist/views/core/input/components/input-field/input-field.svelte.d.ts +4 -64
- package/dist/views/core/input/components/number-field/number-field.svelte +2 -1
- package/dist/views/core/input/components/number-field/number-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/password-field/password-field.svelte +2 -5
- package/dist/views/core/input/components/password-field/password-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/phone-field/phone-field.svelte +10 -30
- package/dist/views/core/input/components/phone-field/phone-field.svelte.d.ts +1 -22
- package/dist/views/core/input/components/radio-field/radio-field.svelte +3 -27
- package/dist/views/core/input/components/radio-field/radio-field.svelte.d.ts +1 -29
- package/dist/views/core/input/components/range-field/range-field.svelte +2 -1
- package/dist/views/core/input/components/range-field/range-field.svelte.d.ts +4 -4
- package/dist/views/core/input/components/search-field/search-field.svelte +2 -1
- package/dist/views/core/input/components/search-field/search-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/text-field/text-field.svelte +2 -1
- package/dist/views/core/input/components/text-field/text-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/textarea-field/textarea-field.svelte +2 -1
- package/dist/views/core/input/components/textarea-field/textarea-field.svelte.d.ts +1 -1
- package/dist/views/core/input/components/time-field/time-field.svelte +2 -1
- package/dist/views/core/input/components/time-field/time-field.svelte.d.ts +1 -1
- package/dist/views/core/input/index.d.ts +1 -4
- package/dist/views/core/input/index.js +1 -1
- package/dist/views/core/input/types.d.ts +159 -0
- package/dist/views/core/input/types.js +1 -0
- package/dist/views/core/navbar/components/navbar/navbar.svelte +2 -39
- package/dist/views/core/navbar/components/navbar/navbar.svelte.d.ts +1 -35
- package/dist/views/core/navbar/index.d.ts +2 -4
- package/dist/views/core/navbar/index.js +2 -3
- package/dist/views/core/navbar/types.d.ts +35 -0
- package/dist/views/core/navbar/types.js +1 -0
- package/dist/views/core/toast/components/toast/toast.svelte +3 -21
- package/dist/views/core/toast/components/toast/toast.svelte.d.ts +1 -8
- package/dist/views/core/toast/index.d.ts +3 -2
- package/dist/views/core/toast/index.js +3 -1
- package/dist/views/core/toast/types.d.ts +8 -0
- package/dist/views/core/toast/types.js +1 -0
- package/dist/views/extra/index.d.ts +2 -2
- package/dist/views/extra/index.js +2 -1
- package/dist/views/extra/loaders/country-loader.svelte +2 -8
- package/dist/views/extra/loaders/country-loader.svelte.d.ts +1 -5
- package/dist/views/extra/texts/text-country.svelte +2 -1
- package/dist/views/extra/types.d.ts +5 -0
- package/dist/views/extra/types.js +1 -0
- package/package.json +6 -4
- package/dist/views/core/common/index.d.ts +0 -4
- package/dist/views/core/sidebar/index.d.ts +0 -2
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
isValid: () => boolean;
|
|
3
|
-
nationalNumber: string;
|
|
4
|
-
countryCallingCode: string;
|
|
5
|
-
};
|
|
6
|
-
export type LibPhoneNumberType = {
|
|
7
|
-
parsePhoneNumber: (phoneNumber: string, dialCode?: string) => LibPhoneNumberParseType;
|
|
8
|
-
};
|
|
9
|
-
export type CountryType = {
|
|
10
|
-
name: string;
|
|
11
|
-
dialCode: string;
|
|
12
|
-
isoCode: string;
|
|
13
|
-
};
|
|
14
|
-
export type EasyCountryDataType = {
|
|
15
|
-
getCountries: () => CountryType[];
|
|
16
|
-
getCountry: (params: {
|
|
17
|
-
name?: string;
|
|
18
|
-
dialCode?: string;
|
|
19
|
-
isoCode?: string;
|
|
20
|
-
}) => CountryType;
|
|
21
|
-
};
|
|
22
|
-
import { type InputFieldProps } from '../input-field/input-field.svelte';
|
|
1
|
+
import type { InputFieldProps } from '../../types';
|
|
23
2
|
type $$ComponentProps = InputFieldProps & {
|
|
24
3
|
buttonClassName?: string;
|
|
25
4
|
dialCode?: string;
|
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export type RadioValuetype = string | boolean | number | Date;
|
|
3
|
-
export type RadioItem = { value: any; label: string; desc?: string };
|
|
4
|
-
export type RadioItems = (RadioValuetype | RadioItem)[];
|
|
5
|
-
export type RadioPosition = 'left' | 'right';
|
|
6
|
-
export type RadioDiration = 'vertical' | 'horizontal';
|
|
7
|
-
export type RadioPropsType = {
|
|
8
|
-
className?: string;
|
|
9
|
-
groupContainerClassName?: string;
|
|
10
|
-
hasPrimitiveItemsData?: boolean;
|
|
11
|
-
id?: string;
|
|
12
|
-
items?: RadioItems;
|
|
13
|
-
labelClassName?: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
position?: RadioPosition;
|
|
16
|
-
direction?: RadioDiration;
|
|
17
|
-
radioContainerClassName?: string;
|
|
18
|
-
required?: boolean;
|
|
19
|
-
subtitle?: string;
|
|
20
|
-
subtitleClassName?: string;
|
|
21
|
-
title?: string;
|
|
22
|
-
titleClassName?: string;
|
|
23
|
-
value?: RadioValuetype;
|
|
24
|
-
descClassName?: string;
|
|
25
|
-
onChange?: (value: RadioValuetype) => void;
|
|
26
|
-
};
|
|
27
|
-
</script>
|
|
1
|
+
|
|
28
2
|
|
|
29
3
|
<script lang="ts">
|
|
4
|
+
import type { RadioItem, RadioPropsType } from '../../types';
|
|
5
|
+
|
|
30
6
|
let {
|
|
31
7
|
direction = 'vertical',
|
|
32
8
|
className,
|
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export type RadioItem = {
|
|
3
|
-
value: any;
|
|
4
|
-
label: string;
|
|
5
|
-
desc?: string;
|
|
6
|
-
};
|
|
7
|
-
export type RadioItems = (RadioValuetype | RadioItem)[];
|
|
8
|
-
export type RadioPosition = 'left' | 'right';
|
|
9
|
-
export type RadioDiration = 'vertical' | 'horizontal';
|
|
10
|
-
export type RadioPropsType = {
|
|
11
|
-
className?: string;
|
|
12
|
-
groupContainerClassName?: string;
|
|
13
|
-
hasPrimitiveItemsData?: boolean;
|
|
14
|
-
id?: string;
|
|
15
|
-
items?: RadioItems;
|
|
16
|
-
labelClassName?: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
position?: RadioPosition;
|
|
19
|
-
direction?: RadioDiration;
|
|
20
|
-
radioContainerClassName?: string;
|
|
21
|
-
required?: boolean;
|
|
22
|
-
subtitle?: string;
|
|
23
|
-
subtitleClassName?: string;
|
|
24
|
-
title?: string;
|
|
25
|
-
titleClassName?: string;
|
|
26
|
-
value?: RadioValuetype;
|
|
27
|
-
descClassName?: string;
|
|
28
|
-
onChange?: (value: RadioValuetype) => void;
|
|
29
|
-
};
|
|
1
|
+
import type { RadioPropsType } from '../../types';
|
|
30
2
|
declare const RadioField: import("svelte").Component<RadioPropsType, {}, "value">;
|
|
31
3
|
type RadioField = ReturnType<typeof RadioField>;
|
|
32
4
|
export default RadioField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { InputFieldSize } from "../../types";
|
|
2
2
|
type RangeFieldPropsType = {
|
|
3
3
|
id?: string;
|
|
4
4
|
name?: string;
|
|
@@ -15,9 +15,9 @@ type RangeFieldPropsType = {
|
|
|
15
15
|
onblur?: (ev: any) => void;
|
|
16
16
|
};
|
|
17
17
|
declare const RangeField: import("svelte").Component<RangeFieldPropsType, {
|
|
18
|
-
getElement: () => HTMLInputElement
|
|
19
|
-
focus: () => void
|
|
20
|
-
select: () => void
|
|
18
|
+
getElement: () => HTMLInputElement;
|
|
19
|
+
focus: () => void;
|
|
20
|
+
select: () => void;
|
|
21
21
|
}, "value">;
|
|
22
22
|
type RangeField = ReturnType<typeof RangeField>;
|
|
23
23
|
export default RangeField;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import Icon from '../../../icon/components/icon/icon.svelte';
|
|
4
4
|
import { mdiMagnify } from '../../../icon/index.js';
|
|
5
|
-
import
|
|
5
|
+
import type { InputFieldProps } from '../../types';
|
|
6
|
+
import InputField from '../input-field/input-field.svelte';
|
|
6
7
|
|
|
7
8
|
let {
|
|
8
9
|
className,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import
|
|
2
|
+
import type { InputFieldProps } from '../../types';
|
|
3
|
+
import InputField from '../input-field/input-field.svelte';
|
|
3
4
|
|
|
4
5
|
let { value = $bindable(''), ...props }: InputFieldProps = $props();
|
|
5
6
|
let inputFieldRef: any | null = $state(null);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import
|
|
2
|
+
import type { InputFieldProps } from '../../types';
|
|
3
|
+
import InputField from '../input-field/input-field.svelte';
|
|
3
4
|
|
|
4
5
|
let { value = $bindable(), ...props }: InputFieldProps = $props();
|
|
5
6
|
let inputFieldRef: any | null = $state(null);
|
|
@@ -1,6 +1,3 @@
|
|
|
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
1
|
import CheckboxField from "./components/checkbox-field/checkbox-field.svelte";
|
|
5
2
|
import ColorField from "./components/color-field/color-field.svelte";
|
|
6
3
|
import ComboboxField from "./components/combobox-field/combobox-field.svelte";
|
|
@@ -19,5 +16,5 @@ import SearchField from "./components/search-field/search-field.svelte";
|
|
|
19
16
|
import TextField from "./components/text-field/text-field.svelte";
|
|
20
17
|
import TextareaField from "./components/textarea-field/textarea-field.svelte";
|
|
21
18
|
import TimeField from "./components/time-field/time-field.svelte";
|
|
22
|
-
export
|
|
19
|
+
export * from './types';
|
|
23
20
|
export { CheckboxField, ColorField, ComboboxField, DateField, DatetimeField, EmailField, FileField, InputField, Label, NumberField, PasswordField, PhoneField, RadioField, RangeField, SearchField, TextareaField, TextField, TimeField };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {} from "./components/input-field/input-field.svelte";
|
|
2
1
|
import CheckboxField from "./components/checkbox-field/checkbox-field.svelte";
|
|
3
2
|
import ColorField from "./components/color-field/color-field.svelte";
|
|
4
3
|
import ComboboxField from "./components/combobox-field/combobox-field.svelte";
|
|
@@ -17,4 +16,5 @@ import SearchField from "./components/search-field/search-field.svelte";
|
|
|
17
16
|
import TextField from "./components/text-field/text-field.svelte";
|
|
18
17
|
import TextareaField from "./components/textarea-field/textarea-field.svelte";
|
|
19
18
|
import TimeField from "./components/time-field/time-field.svelte";
|
|
19
|
+
export * from './types';
|
|
20
20
|
export { CheckboxField, ColorField, ComboboxField, DateField, DatetimeField, EmailField, FileField, InputField, Label, NumberField, PasswordField, PhoneField, RadioField, RangeField, SearchField, TextareaField, TextField, TimeField };
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
2
|
+
import type { AriaRole, HTMLInputTypeAttribute } from "svelte/elements";
|
|
3
|
+
export type ComboboxFieldProps = {
|
|
4
|
+
chipClassName?: string;
|
|
5
|
+
comboboxIconClassName?: string;
|
|
6
|
+
comboboxIconPath?: string;
|
|
7
|
+
createButtonClassName?: string;
|
|
8
|
+
createButtonLabel?: string;
|
|
9
|
+
displayClassName?: string;
|
|
10
|
+
displayFieldName?: string;
|
|
11
|
+
displayItemsCount?: number;
|
|
12
|
+
dropdownBodyClassName?: string;
|
|
13
|
+
dropdownBodySnippet?: Snippet;
|
|
14
|
+
dropdownClassName?: string;
|
|
15
|
+
dropdownFooterClassName?: string;
|
|
16
|
+
dropdownFooterSnippet?: Snippet;
|
|
17
|
+
dropdownHeaderClassName?: string;
|
|
18
|
+
dropdownHeaderSnippet?: Snippet;
|
|
19
|
+
emptyMessage?: string;
|
|
20
|
+
emptyMessageSnippet?: Snippet;
|
|
21
|
+
hasComboboxIcon?: boolean;
|
|
22
|
+
hasDropdownFooter?: boolean;
|
|
23
|
+
hasDropdownFooterCreateButton?: boolean;
|
|
24
|
+
hasDropdownHeader?: boolean;
|
|
25
|
+
hasDropdownHeaderSearch?: boolean;
|
|
26
|
+
hasCheckbox?: boolean;
|
|
27
|
+
iconClassName?: string;
|
|
28
|
+
iconPathFieldName?: string;
|
|
29
|
+
identityFieldName?: string;
|
|
30
|
+
itemClassName?: string;
|
|
31
|
+
items?: any[];
|
|
32
|
+
multiple?: boolean;
|
|
33
|
+
onCreateButtonClick?: (ev: MouseEvent) => void;
|
|
34
|
+
onSearch?: (value: string) => void;
|
|
35
|
+
searchClassName?: string;
|
|
36
|
+
searchFieldName?: string;
|
|
37
|
+
searchPlaceholder?: string;
|
|
38
|
+
showChip?: boolean;
|
|
39
|
+
subtitleClassName?: string;
|
|
40
|
+
subtitleFieldName?: string;
|
|
41
|
+
titleClassName?: string;
|
|
42
|
+
titleFieldName?: string;
|
|
43
|
+
checkboxIconPath?: string;
|
|
44
|
+
uncheckboxIconPath?: string;
|
|
45
|
+
checkboxIconClassName?: string;
|
|
46
|
+
uncheckboxIconClassName?: string;
|
|
47
|
+
checkboxClassName?: string;
|
|
48
|
+
dropPosition?: 'top' | 'bottom' | 'middle';
|
|
49
|
+
itemTileSnippet?: Snippet<[item: any, index: any]>;
|
|
50
|
+
};
|
|
51
|
+
export type InputFieldSize = 'lg' | 'md' | 'sm' | 'xs';
|
|
52
|
+
export type InputFieldAppearance = 'normal' | 'box' | 'fill' | 'underline' | 'fill-underline' | 'none';
|
|
53
|
+
export type InputValue = any | string | string[] | number | number[] | Date | Date[] | File | File[] | null | undefined;
|
|
54
|
+
export type InputFieldProps = {
|
|
55
|
+
appearance?: InputFieldAppearance;
|
|
56
|
+
ariaControls?: string;
|
|
57
|
+
ariaExpanded?: boolean;
|
|
58
|
+
autofocus?: boolean;
|
|
59
|
+
className?: string;
|
|
60
|
+
cols?: number;
|
|
61
|
+
containerClassName?: string;
|
|
62
|
+
contentSnippet?: Snippet;
|
|
63
|
+
contentSnippetClassName?: string;
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
floatingLabel?: boolean;
|
|
66
|
+
hasRequiredSymbol?: boolean;
|
|
67
|
+
iconClassName?: string;
|
|
68
|
+
iconPath?: string;
|
|
69
|
+
id?: string;
|
|
70
|
+
label?: string;
|
|
71
|
+
labelClassName?: string;
|
|
72
|
+
leftSnippet?: Snippet;
|
|
73
|
+
leftSnippetContainerClassName?: string;
|
|
74
|
+
max?: number | string;
|
|
75
|
+
maxlength?: number;
|
|
76
|
+
min?: number | string;
|
|
77
|
+
minlength?: number;
|
|
78
|
+
multiple?: boolean;
|
|
79
|
+
name?: string;
|
|
80
|
+
title?: string;
|
|
81
|
+
onBlur?: (ev: any) => void;
|
|
82
|
+
onChange?: (ev: any) => void;
|
|
83
|
+
onClick?: (ev: MouseEvent) => void;
|
|
84
|
+
onDblClick?: (ev: MouseEvent) => void;
|
|
85
|
+
onDrag?: (ev: DragEvent) => void;
|
|
86
|
+
onDragOver?: (ev: DragEvent) => void;
|
|
87
|
+
onDrop?: (ev: DragEvent) => void;
|
|
88
|
+
onFocus?: (ev: any) => void;
|
|
89
|
+
onInput?: (ev: any) => void;
|
|
90
|
+
onKeyDown?: (ev: KeyboardEvent) => void;
|
|
91
|
+
onKeyPress?: (ev: KeyboardEvent) => void;
|
|
92
|
+
onKeyUp?: (ev: KeyboardEvent) => void;
|
|
93
|
+
onMouseDown?: (ev: MouseEvent) => void;
|
|
94
|
+
onMouseUp?: (ev: MouseEvent) => void;
|
|
95
|
+
pattern?: string;
|
|
96
|
+
placeholder?: string;
|
|
97
|
+
readonly?: boolean;
|
|
98
|
+
required?: boolean;
|
|
99
|
+
requiredSymbol?: string;
|
|
100
|
+
requiredSymbolColor?: string;
|
|
101
|
+
rightSnippet?: Snippet;
|
|
102
|
+
rightSnippetContainerClassName?: string;
|
|
103
|
+
role?: AriaRole;
|
|
104
|
+
rows?: number;
|
|
105
|
+
size?: InputFieldSize;
|
|
106
|
+
step?: number;
|
|
107
|
+
type?: HTMLInputTypeAttribute | 'textarea';
|
|
108
|
+
value?: InputValue;
|
|
109
|
+
};
|
|
110
|
+
export type LibPhoneNumberParseType = {
|
|
111
|
+
isValid: () => boolean;
|
|
112
|
+
nationalNumber: string;
|
|
113
|
+
countryCallingCode: string;
|
|
114
|
+
};
|
|
115
|
+
export type LibPhoneNumberType = {
|
|
116
|
+
parsePhoneNumber: (phoneNumber: string, dialCode?: string) => LibPhoneNumberParseType;
|
|
117
|
+
};
|
|
118
|
+
export type CountryType = {
|
|
119
|
+
name: string;
|
|
120
|
+
dialCode: string;
|
|
121
|
+
isoCode: string;
|
|
122
|
+
};
|
|
123
|
+
export type EasyCountryDataType = {
|
|
124
|
+
getCountries: () => CountryType[];
|
|
125
|
+
getCountry: (params: {
|
|
126
|
+
name?: string;
|
|
127
|
+
dialCode?: string;
|
|
128
|
+
isoCode?: string;
|
|
129
|
+
}) => CountryType;
|
|
130
|
+
};
|
|
131
|
+
export type RadioValueType = string | boolean | number | Date;
|
|
132
|
+
export type RadioItem = {
|
|
133
|
+
value: any;
|
|
134
|
+
label: string;
|
|
135
|
+
desc?: string;
|
|
136
|
+
};
|
|
137
|
+
export type RadioItems = (RadioValueType | RadioItem)[];
|
|
138
|
+
export type RadioPosition = 'left' | 'right';
|
|
139
|
+
export type RadioDirection = 'vertical' | 'horizontal';
|
|
140
|
+
export type RadioPropsType = {
|
|
141
|
+
className?: string;
|
|
142
|
+
groupContainerClassName?: string;
|
|
143
|
+
hasPrimitiveItemsData?: boolean;
|
|
144
|
+
id?: string;
|
|
145
|
+
items?: RadioItems;
|
|
146
|
+
labelClassName?: string;
|
|
147
|
+
name?: string;
|
|
148
|
+
position?: RadioPosition;
|
|
149
|
+
direction?: RadioDirection;
|
|
150
|
+
radioContainerClassName?: string;
|
|
151
|
+
required?: boolean;
|
|
152
|
+
subtitle?: string;
|
|
153
|
+
subtitleClassName?: string;
|
|
154
|
+
title?: string;
|
|
155
|
+
titleClassName?: string;
|
|
156
|
+
value?: RadioValueType;
|
|
157
|
+
descClassName?: string;
|
|
158
|
+
onChange?: (value: RadioValueType) => void;
|
|
159
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,45 +1,8 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
1
|
+
|
|
38
2
|
<script lang="ts">
|
|
39
3
|
import ButtonBack from '../../../button/components/button-back/button-back.svelte';
|
|
40
|
-
import Button from '../../../button/components/button/button.svelte';
|
|
41
4
|
import { Icon, mdiMenu } from '../../../icon';
|
|
42
|
-
import type {
|
|
5
|
+
import type { NavbarProps } from '../../types';
|
|
43
6
|
|
|
44
7
|
let {
|
|
45
8
|
disabledLogo,
|
|
@@ -1,38 +1,4 @@
|
|
|
1
|
-
|
|
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';
|
|
1
|
+
import type { NavbarProps } from '../../types';
|
|
36
2
|
declare const Navbar: import("svelte").Component<NavbarProps, {}, "">;
|
|
37
3
|
type Navbar = ReturnType<typeof Navbar>;
|
|
38
4
|
export default Navbar;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type { NavbarProps, };
|
|
4
|
-
export { Navbar };
|
|
1
|
+
export { default as Navbar } from "./components/navbar/navbar.svelte";
|
|
2
|
+
export * from './types';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Navbar };
|
|
1
|
+
export { default as Navbar } from "./components/navbar/navbar.svelte";
|
|
2
|
+
export * from './types';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Snippet } from "svelte";
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,29 +1,11 @@
|
|
|
1
|
-
<script module lang="ts">
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
|
|
4
|
-
export type ToastPropsType = {
|
|
5
|
-
id?: string;
|
|
6
|
-
msg: string;
|
|
7
|
-
duration?: number;
|
|
8
|
-
className?: string;
|
|
9
|
-
children?: Snippet;
|
|
10
|
-
};
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
1
|
<script lang="ts">
|
|
2
|
+
import type { ToastPropsType } from '../../types';
|
|
3
|
+
|
|
14
4
|
let isPlaced: boolean = $state(false);
|
|
15
5
|
let isOpened: boolean = $state(false);
|
|
16
6
|
|
|
17
7
|
let { id, msg, duration = 3000, className, children }: ToastPropsType = $props();
|
|
18
8
|
|
|
19
|
-
// export function toggleDialog() {
|
|
20
|
-
// if (isOpened) {
|
|
21
|
-
// closeDialog();
|
|
22
|
-
// } else {
|
|
23
|
-
// openDialog();
|
|
24
|
-
// }
|
|
25
|
-
// }
|
|
26
|
-
|
|
27
9
|
export function openToast() {
|
|
28
10
|
isPlaced = true;
|
|
29
11
|
setTimeout(() => {
|
|
@@ -45,7 +27,7 @@
|
|
|
45
27
|
{#if isPlaced}
|
|
46
28
|
<div
|
|
47
29
|
{id}
|
|
48
|
-
class="fixed bottom-20 left-1/2
|
|
30
|
+
class="fixed bottom-20 left-1/2 max-w-full -translate-x-1/2 transform rounded-full bg-white p-3 px-6 text-gray-700 shadow-xl transition-opacity duration-300 dark:bg-neutral-600 dark:text-neutral-300 dark:shadow-neutral-700 {isOpened
|
|
49
31
|
? 'opacity-100'
|
|
50
32
|
: 'opacity-0'} toast {className}"
|
|
51
33
|
>
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type ToastPropsType = {
|
|
3
|
-
id?: string;
|
|
4
|
-
msg: string;
|
|
5
|
-
duration?: number;
|
|
6
|
-
className?: string;
|
|
7
|
-
children?: Snippet;
|
|
8
|
-
};
|
|
1
|
+
import type { ToastPropsType } from '../../types';
|
|
9
2
|
declare const Toast: import("svelte").Component<ToastPropsType, {
|
|
10
3
|
openToast: () => void;
|
|
11
4
|
closeClose: () => void;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
export
|
|
1
|
+
import Toast from './components/toast/toast.svelte';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export { Toast };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import CountryComboboxField from "./fields/country-combobox-field.svelte";
|
|
2
2
|
import TextCountry from "./texts/text-country.svelte";
|
|
3
3
|
import TextCountryState from "./texts/text-country-state.svelte";
|
|
4
|
-
import CountryLoader
|
|
5
|
-
export
|
|
4
|
+
import CountryLoader from "./loaders/country-loader.svelte";
|
|
5
|
+
export * from './types';
|
|
6
6
|
export { CountryComboboxField, TextCountry, CountryLoader, TextCountryState, };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import CountryComboboxField from "./fields/country-combobox-field.svelte";
|
|
2
2
|
import TextCountry from "./texts/text-country.svelte";
|
|
3
3
|
import TextCountryState from "./texts/text-country-state.svelte";
|
|
4
|
-
import CountryLoader
|
|
4
|
+
import CountryLoader from "./loaders/country-loader.svelte";
|
|
5
|
+
export * from './types';
|
|
5
6
|
export { CountryComboboxField, TextCountry, CountryLoader, TextCountryState, };
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export type Country = {
|
|
3
|
-
isoCode: string;
|
|
4
|
-
dialCode: string;
|
|
5
|
-
name: string;
|
|
6
|
-
};
|
|
7
|
-
</script>
|
|
8
|
-
|
|
1
|
+
|
|
9
2
|
<script lang="ts">
|
|
10
3
|
import EasyScriptLoader from '@cloudparker/easy-script-loader-svelte';
|
|
11
4
|
import type { Snippet } from 'svelte';
|
|
5
|
+
import type { Country } from '../types';
|
|
12
6
|
|
|
13
7
|
type Props = {
|
|
14
8
|
countries?: Country[];
|