@stachelock/ui 0.1.0
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/README.md +304 -0
- package/dist/CheckboxInput-rWkcde69.js +5 -0
- package/dist/CheckboxInput-rWkcde69.js.map +1 -0
- package/dist/ComboboxInput-B98P_8CZ.js +5 -0
- package/dist/ComboboxInput-B98P_8CZ.js.map +1 -0
- package/dist/SelectInput-B5liNv7H.js +5 -0
- package/dist/SelectInput-B5liNv7H.js.map +1 -0
- package/dist/SwitchInput-D1k9O8gn.js +5 -0
- package/dist/SwitchInput-D1k9O8gn.js.map +1 -0
- package/dist/TextAreaInput-Di6Kstic.js +5 -0
- package/dist/TextAreaInput-Di6Kstic.js.map +1 -0
- package/dist/UiLoading-BuzCrLqO.js +5 -0
- package/dist/UiLoading-BuzCrLqO.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4763 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +11 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/src/components/UiAvatar.d.ts +57 -0
- package/dist/src/components/UiAvatar.d.ts.map +1 -0
- package/dist/src/components/UiBadge.d.ts +44 -0
- package/dist/src/components/UiBadge.d.ts.map +1 -0
- package/dist/src/components/UiBreadcrumb.d.ts +3 -0
- package/dist/src/components/UiBreadcrumb.d.ts.map +1 -0
- package/dist/src/components/UiButton.d.ts +119 -0
- package/dist/src/components/UiButton.d.ts.map +1 -0
- package/dist/src/components/UiLoading.d.ts +36 -0
- package/dist/src/components/UiLoading.d.ts.map +1 -0
- package/dist/src/components/UiLoadingDots.d.ts +53 -0
- package/dist/src/components/UiLoadingDots.d.ts.map +1 -0
- package/dist/src/components/UiModal.d.ts +102 -0
- package/dist/src/components/UiModal.d.ts.map +1 -0
- package/dist/src/components/UiNavLink.d.ts +73 -0
- package/dist/src/components/UiNavLink.d.ts.map +1 -0
- package/dist/src/components/UiProgressBar.d.ts +35 -0
- package/dist/src/components/UiProgressBar.d.ts.map +1 -0
- package/dist/src/components/UiRadialProgressBar.d.ts +43 -0
- package/dist/src/components/UiRadialProgressBar.d.ts.map +1 -0
- package/dist/src/components/UiTable.d.ts +94 -0
- package/dist/src/components/UiTable.d.ts.map +1 -0
- package/dist/src/components/UiTextInput.d.ts +108 -0
- package/dist/src/components/UiTextInput.d.ts.map +1 -0
- package/dist/src/components/UiTransition.d.ts +41 -0
- package/dist/src/components/UiTransition.d.ts.map +1 -0
- package/dist/src/components/calendars/CalendarDashboard.d.ts +32 -0
- package/dist/src/components/calendars/CalendarDashboard.d.ts.map +1 -0
- package/dist/src/components/calendars/CalendarHeader.d.ts +26 -0
- package/dist/src/components/calendars/CalendarHeader.d.ts.map +1 -0
- package/dist/src/components/calendars/DayCalendar.d.ts +24 -0
- package/dist/src/components/calendars/DayCalendar.d.ts.map +1 -0
- package/dist/src/components/calendars/EventCard.d.ts +19 -0
- package/dist/src/components/calendars/EventCard.d.ts.map +1 -0
- package/dist/src/components/calendars/EventsList.d.ts +24 -0
- package/dist/src/components/calendars/EventsList.d.ts.map +1 -0
- package/dist/src/components/calendars/MonthCalendar.d.ts +36 -0
- package/dist/src/components/calendars/MonthCalendar.d.ts.map +1 -0
- package/dist/src/components/calendars/WeekCalendar.d.ts +24 -0
- package/dist/src/components/calendars/WeekCalendar.d.ts.map +1 -0
- package/dist/src/components/calendars/YearCalendar.d.ts +18 -0
- package/dist/src/components/calendars/YearCalendar.d.ts.map +1 -0
- package/dist/src/components/calendars/index.d.ts +9 -0
- package/dist/src/components/calendars/index.d.ts.map +1 -0
- package/dist/src/components/forms/DynamicForm.d.ts +70 -0
- package/dist/src/components/forms/DynamicForm.d.ts.map +1 -0
- package/dist/src/components/forms/DynamicFormField.d.ts +25 -0
- package/dist/src/components/forms/DynamicFormField.d.ts.map +1 -0
- package/dist/src/components/forms/FormFieldWrapper.d.ts +108 -0
- package/dist/src/components/forms/FormFieldWrapper.d.ts.map +1 -0
- package/dist/src/components/forms/index.d.ts +4 -0
- package/dist/src/components/forms/index.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +18 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/inputs/CheckboxInput.d.ts +68 -0
- package/dist/src/components/inputs/CheckboxInput.d.ts.map +1 -0
- package/dist/src/components/inputs/ComboboxInput.d.ts +76 -0
- package/dist/src/components/inputs/ComboboxInput.d.ts.map +1 -0
- package/dist/src/components/inputs/InputsShowcase.d.ts +3 -0
- package/dist/src/components/inputs/InputsShowcase.d.ts.map +1 -0
- package/dist/src/components/inputs/SelectInput.d.ts +67 -0
- package/dist/src/components/inputs/SelectInput.d.ts.map +1 -0
- package/dist/src/components/inputs/SwitchInput.d.ts +80 -0
- package/dist/src/components/inputs/SwitchInput.d.ts.map +1 -0
- package/dist/src/components/inputs/TagifyInput.d.ts +183 -0
- package/dist/src/components/inputs/TagifyInput.d.ts.map +1 -0
- package/dist/src/components/inputs/TextAreaInput.d.ts +68 -0
- package/dist/src/components/inputs/TextAreaInput.d.ts.map +1 -0
- package/dist/src/components/inputs/index.d.ts +8 -0
- package/dist/src/components/inputs/index.d.ts.map +1 -0
- package/dist/src/components/layouts/DashboardLayout.d.ts +33 -0
- package/dist/src/components/layouts/DashboardLayout.d.ts.map +1 -0
- package/dist/src/components/layouts/DefaultLayout.d.ts +58 -0
- package/dist/src/components/layouts/DefaultLayout.d.ts.map +1 -0
- package/dist/src/components/layouts/HeaderLayout.d.ts +15 -0
- package/dist/src/components/layouts/HeaderLayout.d.ts.map +1 -0
- package/dist/src/components/layouts/NavigationGroup.d.ts +25 -0
- package/dist/src/components/layouts/NavigationGroup.d.ts.map +1 -0
- package/dist/src/components/layouts/NavigationItem.d.ts +30 -0
- package/dist/src/components/layouts/NavigationItem.d.ts.map +1 -0
- package/dist/src/components/layouts/SidebarLayout.d.ts +27 -0
- package/dist/src/components/layouts/SidebarLayout.d.ts.map +1 -0
- package/dist/src/components/layouts/index.d.ts +7 -0
- package/dist/src/components/layouts/index.d.ts.map +1 -0
- package/dist/src/composables/index.d.ts +4 -0
- package/dist/src/composables/index.d.ts.map +1 -0
- package/dist/src/composables/useCalendar.d.ts +146 -0
- package/dist/src/composables/useCalendar.d.ts.map +1 -0
- package/dist/src/composables/useFormValidation.d.ts +52 -0
- package/dist/src/composables/useFormValidation.d.ts.map +1 -0
- package/dist/src/composables/useModal.d.ts +36 -0
- package/dist/src/composables/useModal.d.ts.map +1 -0
- package/dist/src/dev.d.ts +2 -0
- package/dist/src/dev.d.ts.map +1 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/plugin.d.ts +21 -0
- package/dist/src/plugin.d.ts.map +1 -0
- package/dist/src/types/avatars.d.ts +10 -0
- package/dist/src/types/avatars.d.ts.map +1 -0
- package/dist/src/types/badges.d.ts +10 -0
- package/dist/src/types/badges.d.ts.map +1 -0
- package/dist/src/types/calendars.d.ts +28 -0
- package/dist/src/types/calendars.d.ts.map +1 -0
- package/dist/src/types/form.d.ts +86 -0
- package/dist/src/types/form.d.ts.map +1 -0
- package/dist/src/types/forms.d.ts +17 -0
- package/dist/src/types/forms.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +13 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/inputs.d.ts +22 -0
- package/dist/src/types/inputs.d.ts.map +1 -0
- package/dist/src/types/layouts.d.ts +41 -0
- package/dist/src/types/layouts.d.ts.map +1 -0
- package/dist/src/types/loading.d.ts +11 -0
- package/dist/src/types/loading.d.ts.map +1 -0
- package/dist/src/types/navigation.d.ts +18 -0
- package/dist/src/types/navigation.d.ts.map +1 -0
- package/dist/src/types/tables.d.ts +24 -0
- package/dist/src/types/tables.d.ts.map +1 -0
- package/dist/src/types/transitions.d.ts +16 -0
- package/dist/src/types/transitions.d.ts.map +1 -0
- package/dist/src/types/ui.d.ts +353 -0
- package/dist/src/types/ui.d.ts.map +1 -0
- package/dist/src/utils/calendar.d.ts +50 -0
- package/dist/src/utils/calendar.d.ts.map +1 -0
- package/dist/src/utils/component-registry.d.ts +48 -0
- package/dist/src/utils/component-registry.d.ts.map +1 -0
- package/dist/src/utils/id.d.ts +13 -0
- package/dist/src/utils/id.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +4 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/package.json +143 -0
- package/tailwind.config.js +110 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
|
+
import { ValidationRule } from '../../types/form';
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
rules?: ValidationRule;
|
|
10
|
+
validateOnMount?: boolean;
|
|
11
|
+
successMessage?: string;
|
|
12
|
+
tertiaryLabel?: string;
|
|
13
|
+
spellcheck?: boolean;
|
|
14
|
+
rows?: number;
|
|
15
|
+
maxlength?: number;
|
|
16
|
+
inputClass?: string;
|
|
17
|
+
inputStyle?: StyleValue;
|
|
18
|
+
lazy?: boolean;
|
|
19
|
+
modelValue?: string;
|
|
20
|
+
boxShadow?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
23
|
+
spellcheck: boolean;
|
|
24
|
+
rows: number;
|
|
25
|
+
lazy: boolean;
|
|
26
|
+
boxShadow: boolean;
|
|
27
|
+
}>>, {
|
|
28
|
+
focus: () => void;
|
|
29
|
+
blur: () => void;
|
|
30
|
+
textareaRef: import('vue').Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
31
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
blur: (event: FocusEvent) => void;
|
|
33
|
+
focus: (event: FocusEvent) => void;
|
|
34
|
+
"update:modelValue": (value: string) => void;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
36
|
+
spellcheck: boolean;
|
|
37
|
+
rows: number;
|
|
38
|
+
lazy: boolean;
|
|
39
|
+
boxShadow: boolean;
|
|
40
|
+
}>>> & Readonly<{
|
|
41
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
42
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
43
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
44
|
+
}>, {
|
|
45
|
+
lazy: boolean;
|
|
46
|
+
boxShadow: boolean;
|
|
47
|
+
spellcheck: boolean;
|
|
48
|
+
rows: number;
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
52
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
53
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
54
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
55
|
+
} : {
|
|
56
|
+
type: import('vue').PropType<T[K]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
type __VLS_WithDefaults<P, D> = {
|
|
61
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
62
|
+
default: D[K];
|
|
63
|
+
}> : P[K];
|
|
64
|
+
};
|
|
65
|
+
type __VLS_Prettify<T> = {
|
|
66
|
+
[K in keyof T]: T[K];
|
|
67
|
+
} & {};
|
|
68
|
+
//# sourceMappingURL=TextAreaInput.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAreaInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/TextAreaInput.vue"],"names":[],"mappings":"AAoDA;AAEA,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAKtD,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoRD,wBAQG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as CheckboxInput } from './CheckboxInput';
|
|
2
|
+
export { default as ComboboxInput } from './ComboboxInput';
|
|
3
|
+
export { default as InputsShowcase } from './InputsShowcase';
|
|
4
|
+
export { default as SelectInput } from './SelectInput';
|
|
5
|
+
export { default as SwitchInput } from './SwitchInput';
|
|
6
|
+
export { default as TagifyInput } from './TagifyInput';
|
|
7
|
+
export { default as TextAreaInput } from './TextAreaInput';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
isWideSidebar: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"sidebar-toggle": (...args: any[]) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
isWideSidebar: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{
|
|
14
|
+
"onSidebar-toggle"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
isWideSidebar: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
18
|
+
logo?(_: {}): any;
|
|
19
|
+
navigation?(_: {}): any;
|
|
20
|
+
"sidebar-footer"?(_: {}): any;
|
|
21
|
+
"header-content"?(_: {}): any;
|
|
22
|
+
"header-right"?(_: {}): any;
|
|
23
|
+
"page-header"?(_: {}): any;
|
|
24
|
+
main?(_: {}): any;
|
|
25
|
+
footer?(_: {}): any;
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=DashboardLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/DashboardLayout.vue"],"names":[],"mappings":"AA2HA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8tBA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
title: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
titleClass: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
subtitle: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: false;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
subtitleClass: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
title: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
titleClass: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
subtitle: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
required: false;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
subtitleClass: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{}>, {
|
|
40
|
+
title: string;
|
|
41
|
+
titleClass: string;
|
|
42
|
+
subtitle: string;
|
|
43
|
+
subtitleClass: string;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
45
|
+
bottomCaption?(_: {}): any;
|
|
46
|
+
right?(_: {}): any;
|
|
47
|
+
main?(_: {}): any;
|
|
48
|
+
container?(_: {}): any;
|
|
49
|
+
home?(_: {}): any;
|
|
50
|
+
default?(_: {}): any;
|
|
51
|
+
}>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=DefaultLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/DefaultLayout.vue"],"names":[],"mappings":"AA0DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiXA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
2
|
+
logo?(_: {}): any;
|
|
3
|
+
"primary-navigation"?(_: {}): any;
|
|
4
|
+
"header-right"?(_: {}): any;
|
|
5
|
+
"mobile-navigation"?(_: {}): any;
|
|
6
|
+
main?(_: {}): any;
|
|
7
|
+
footer?(_: {}): any;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=HeaderLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/HeaderLayout.vue"],"names":[],"mappings":"AA0DA;;;;;;;;;AA+RA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
title?: string | undefined;
|
|
3
|
+
iconOnly?: boolean | undefined;
|
|
4
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
iconOnly?: boolean | undefined;
|
|
7
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=NavigationGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/NavigationGroup.vue"],"names":[],"mappings":"AAkBA;;;;;;;;;;AA8GA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
name: string;
|
|
5
|
+
href: string;
|
|
6
|
+
icon: Component;
|
|
7
|
+
isActive?: boolean | undefined;
|
|
8
|
+
iconOnly?: boolean | undefined;
|
|
9
|
+
badge?: string | undefined;
|
|
10
|
+
badgeTheme?: "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
11
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
name: string;
|
|
13
|
+
href: string;
|
|
14
|
+
icon: Component;
|
|
15
|
+
isActive?: boolean | undefined;
|
|
16
|
+
iconOnly?: boolean | undefined;
|
|
17
|
+
badge?: string | undefined;
|
|
18
|
+
badgeTheme?: "primary" | "secondary" | "success" | "warning" | "danger" | undefined;
|
|
19
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=NavigationItem.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/NavigationItem.vue"],"names":[],"mappings":"AAgCA;AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;;UAgL7B,MAAM;UACN,MAAM;UACN,SAAS;;;;;;UAFT,MAAM;UACN,MAAM;UACN,SAAS;;;;;;AARjB,wBAcG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
isWideSidebar: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
isWideSidebar: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
isWideSidebar: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
14
|
+
logo?(_: {}): any;
|
|
15
|
+
navigation?(_: {}): any;
|
|
16
|
+
"sidebar-footer"?(_: {}): any;
|
|
17
|
+
"header-content"?(_: {}): any;
|
|
18
|
+
"header-right"?(_: {}): any;
|
|
19
|
+
main?(_: {}): any;
|
|
20
|
+
}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=SidebarLayout.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/SidebarLayout.vue"],"names":[],"mappings":"AAmHA;;;;;;;;;;;;;;;;;;;;;AA2pBA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as DashboardLayout } from './DashboardLayout';
|
|
2
|
+
export { default as DefaultLayout } from './DefaultLayout';
|
|
3
|
+
export { default as HeaderLayout } from './HeaderLayout';
|
|
4
|
+
export { default as NavigationGroup } from './NavigationGroup';
|
|
5
|
+
export { default as NavigationItem } from './NavigationItem';
|
|
6
|
+
export { default as SidebarLayout } from './SidebarLayout';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { CalendarDay, Month } from '../utils/calendar';
|
|
2
|
+
|
|
3
|
+
export type CalendarMode = 'day' | 'week' | 'month' | 'year';
|
|
4
|
+
export declare function useCalendar(initialMode?: CalendarMode): {
|
|
5
|
+
mode: import('vue').Ref<CalendarMode, CalendarMode>;
|
|
6
|
+
currentDate: import('vue').Ref<Date, Date>;
|
|
7
|
+
days: import('vue').Ref<{
|
|
8
|
+
id?: string | number | undefined;
|
|
9
|
+
date: string;
|
|
10
|
+
isCurrentMonth: boolean;
|
|
11
|
+
isToday?: boolean | undefined;
|
|
12
|
+
isSelected?: boolean | undefined;
|
|
13
|
+
events?: {
|
|
14
|
+
id: string | number;
|
|
15
|
+
name: string;
|
|
16
|
+
date: string;
|
|
17
|
+
time: string;
|
|
18
|
+
datetime: string;
|
|
19
|
+
location: string;
|
|
20
|
+
href?: string | undefined;
|
|
21
|
+
startTime?: {
|
|
22
|
+
dateTime: string;
|
|
23
|
+
timeZone: string;
|
|
24
|
+
shortTimeZone: string;
|
|
25
|
+
} | undefined;
|
|
26
|
+
endTime?: {
|
|
27
|
+
dateTime: string;
|
|
28
|
+
timeZone: string;
|
|
29
|
+
shortTimeZone: string;
|
|
30
|
+
} | undefined;
|
|
31
|
+
geocodeResult?: {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
thumbnailUrl?: string | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
shortDay?: string | undefined;
|
|
37
|
+
longDay?: string | undefined;
|
|
38
|
+
day?: number | undefined;
|
|
39
|
+
}[], CalendarDay[] | {
|
|
40
|
+
id?: string | number | undefined;
|
|
41
|
+
date: string;
|
|
42
|
+
isCurrentMonth: boolean;
|
|
43
|
+
isToday?: boolean | undefined;
|
|
44
|
+
isSelected?: boolean | undefined;
|
|
45
|
+
events?: {
|
|
46
|
+
id: string | number;
|
|
47
|
+
name: string;
|
|
48
|
+
date: string;
|
|
49
|
+
time: string;
|
|
50
|
+
datetime: string;
|
|
51
|
+
location: string;
|
|
52
|
+
href?: string | undefined;
|
|
53
|
+
startTime?: {
|
|
54
|
+
dateTime: string;
|
|
55
|
+
timeZone: string;
|
|
56
|
+
shortTimeZone: string;
|
|
57
|
+
} | undefined;
|
|
58
|
+
endTime?: {
|
|
59
|
+
dateTime: string;
|
|
60
|
+
timeZone: string;
|
|
61
|
+
shortTimeZone: string;
|
|
62
|
+
} | undefined;
|
|
63
|
+
geocodeResult?: {
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
thumbnailUrl?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
shortDay?: string | undefined;
|
|
69
|
+
longDay?: string | undefined;
|
|
70
|
+
day?: number | undefined;
|
|
71
|
+
}[]>;
|
|
72
|
+
months: import('vue').Ref<{
|
|
73
|
+
name: string;
|
|
74
|
+
days: {
|
|
75
|
+
id?: string | number | undefined;
|
|
76
|
+
date: string;
|
|
77
|
+
isCurrentMonth: boolean;
|
|
78
|
+
isToday?: boolean | undefined;
|
|
79
|
+
isSelected?: boolean | undefined;
|
|
80
|
+
events?: {
|
|
81
|
+
id: string | number;
|
|
82
|
+
name: string;
|
|
83
|
+
date: string;
|
|
84
|
+
time: string;
|
|
85
|
+
datetime: string;
|
|
86
|
+
location: string;
|
|
87
|
+
href?: string | undefined;
|
|
88
|
+
startTime?: {
|
|
89
|
+
dateTime: string;
|
|
90
|
+
timeZone: string;
|
|
91
|
+
shortTimeZone: string;
|
|
92
|
+
} | undefined;
|
|
93
|
+
endTime?: {
|
|
94
|
+
dateTime: string;
|
|
95
|
+
timeZone: string;
|
|
96
|
+
shortTimeZone: string;
|
|
97
|
+
} | undefined;
|
|
98
|
+
geocodeResult?: {
|
|
99
|
+
[x: string]: any;
|
|
100
|
+
thumbnailUrl?: string | undefined;
|
|
101
|
+
} | undefined;
|
|
102
|
+
}[] | undefined;
|
|
103
|
+
shortDay?: string | undefined;
|
|
104
|
+
longDay?: string | undefined;
|
|
105
|
+
day?: number | undefined;
|
|
106
|
+
}[];
|
|
107
|
+
}[], Month[] | {
|
|
108
|
+
name: string;
|
|
109
|
+
days: {
|
|
110
|
+
id?: string | number | undefined;
|
|
111
|
+
date: string;
|
|
112
|
+
isCurrentMonth: boolean;
|
|
113
|
+
isToday?: boolean | undefined;
|
|
114
|
+
isSelected?: boolean | undefined;
|
|
115
|
+
events?: {
|
|
116
|
+
id: string | number;
|
|
117
|
+
name: string;
|
|
118
|
+
date: string;
|
|
119
|
+
time: string;
|
|
120
|
+
datetime: string;
|
|
121
|
+
location: string;
|
|
122
|
+
href?: string | undefined;
|
|
123
|
+
startTime?: {
|
|
124
|
+
dateTime: string;
|
|
125
|
+
timeZone: string;
|
|
126
|
+
shortTimeZone: string;
|
|
127
|
+
} | undefined;
|
|
128
|
+
endTime?: {
|
|
129
|
+
dateTime: string;
|
|
130
|
+
timeZone: string;
|
|
131
|
+
shortTimeZone: string;
|
|
132
|
+
} | undefined;
|
|
133
|
+
geocodeResult?: {
|
|
134
|
+
[x: string]: any;
|
|
135
|
+
thumbnailUrl?: string | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
}[] | undefined;
|
|
138
|
+
shortDay?: string | undefined;
|
|
139
|
+
longDay?: string | undefined;
|
|
140
|
+
day?: number | undefined;
|
|
141
|
+
}[];
|
|
142
|
+
}[]>;
|
|
143
|
+
prev: () => void;
|
|
144
|
+
next: () => void;
|
|
145
|
+
};
|
|
146
|
+
//# sourceMappingURL=useCalendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCalendar.d.ts","sourceRoot":"","sources":["../../../src/composables/useCalendar.ts"],"names":[],"mappings":"AACA,OAAO,EAAyD,KAAK,WAAW,EAAE,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEvH,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7D,wBAAgB,WAAW,CAAC,WAAW,GAAE,YAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC9D"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ObjectSchema } from 'yup';
|
|
2
|
+
|
|
3
|
+
export interface FormField {
|
|
4
|
+
value: string;
|
|
5
|
+
error: string | null;
|
|
6
|
+
touched: boolean;
|
|
7
|
+
valid: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface FormState {
|
|
10
|
+
[key: string]: FormField;
|
|
11
|
+
}
|
|
12
|
+
export interface UseFormValidationOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Validation schema (Yup schema object)
|
|
15
|
+
*/
|
|
16
|
+
schema?: ObjectSchema<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Initial values for the form fields
|
|
19
|
+
*/
|
|
20
|
+
initialValues?: Record<string, string>;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to validate on change
|
|
23
|
+
*/
|
|
24
|
+
validateOnChange?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether to validate on blur
|
|
27
|
+
*/
|
|
28
|
+
validateOnBlur?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export declare function useFormValidation(options?: UseFormValidationOptions): {
|
|
31
|
+
formState: FormState;
|
|
32
|
+
isSubmitting: import('vue').ComputedRef<boolean>;
|
|
33
|
+
submitCount: import('vue').ComputedRef<number>;
|
|
34
|
+
isValid: import('vue').ComputedRef<boolean>;
|
|
35
|
+
isDirty: import('vue').ComputedRef<boolean>;
|
|
36
|
+
hasErrors: import('vue').ComputedRef<boolean>;
|
|
37
|
+
values: import('vue').ComputedRef<Record<string, string>>;
|
|
38
|
+
errors: import('vue').ComputedRef<Record<string, string | null>>;
|
|
39
|
+
setFieldValue: (name: string, value: string) => Promise<void>;
|
|
40
|
+
setFieldTouched: (name: string, touched?: boolean) => Promise<void>;
|
|
41
|
+
getFieldProps: (name: string) => {
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly value: string;
|
|
44
|
+
readonly 'onUpdate:value': (value: string) => Promise<void>;
|
|
45
|
+
readonly onBlur: () => Promise<void>;
|
|
46
|
+
};
|
|
47
|
+
validateField: (name: string, value: string) => Promise<string | null>;
|
|
48
|
+
validateForm: () => Promise<boolean>;
|
|
49
|
+
handleSubmit: (submitHandler: (values: Record<string, string>) => Promise<void> | void) => Promise<void>;
|
|
50
|
+
resetForm: () => void;
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=useFormValidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormValidation.d.ts","sourceRoot":"","sources":["../../../src/composables/useFormValidation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAGxC,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B;;;;;;;;;0BA+EnC,MAAM,SAAS,MAAM;4BAYnB,MAAM;0BAYd,MAAM;;;2CAML,MAAM;;;0BApFD,MAAM,SAAS,MAAM,KAAG,QAAQ,MAAM,GAAG,IAAI,CAAC;wBAelD,QAAQ,OAAO,CAAC;2CA2EK,OAAO,MAAM,EAAE,MAAM,CAAC,KAAK,QAAQ,IAAI,CAAC,GAAG,IAAI;;EAyFpG"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface UseModalOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Whether to close modal when clicking outside
|
|
4
|
+
*/
|
|
5
|
+
closeOnClickOutside?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Whether to close modal when pressing escape
|
|
8
|
+
*/
|
|
9
|
+
closeOnEscape?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to trap focus within modal
|
|
12
|
+
*/
|
|
13
|
+
trapFocus?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Callback when modal is opened
|
|
16
|
+
*/
|
|
17
|
+
onOpen?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Callback when modal is closed
|
|
20
|
+
*/
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to prevent body scroll when modal is open
|
|
24
|
+
*/
|
|
25
|
+
preventBodyScroll?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function useModal(modelValue?: any, emit?: any, options?: UseModalOptions): {
|
|
28
|
+
isOpen: import('vue').ComputedRef<any>;
|
|
29
|
+
modalRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
30
|
+
open: () => void;
|
|
31
|
+
close: () => void;
|
|
32
|
+
toggle: () => void;
|
|
33
|
+
cleanup: () => void;
|
|
34
|
+
getFocusableElements: () => HTMLElement[];
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=useModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useModal.d.ts","sourceRoot":"","sources":["../../../src/composables/useModal.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAgB,QAAQ,CACtB,UAAU,CAAC,EAAE,GAAG,EAChB,IAAI,CAAC,EAAE,GAAG,EACV,OAAO,GAAE,eAAoB;;;;;;;gCAqBI,WAAW,EAAE;EA8J/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/dev.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './utils/id';
|
|
3
|
+
export * from './utils/component-registry';
|
|
4
|
+
export * from './components';
|
|
5
|
+
export * from './components/layouts';
|
|
6
|
+
export * from './components/inputs';
|
|
7
|
+
export * from './components/calendars';
|
|
8
|
+
export * from './components/forms';
|
|
9
|
+
export { StachelockUI, type StachelockUIOptions } from './plugin';
|
|
10
|
+
export { StachelockUI as default } from './plugin';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAG3C,cAAc,cAAc,CAAC;AAG7B,cAAc,sBAAsB,CAAC;AAGrC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,wBAAwB,CAAC;AAGvC,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface StachelockUIOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Component name prefix (default: 'Sl')
|
|
6
|
+
*/
|
|
7
|
+
prefix?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Array of component names to install globally
|
|
10
|
+
*/
|
|
11
|
+
components?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Whether to install all components globally
|
|
14
|
+
*/
|
|
15
|
+
installAll?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const StachelockUI: {
|
|
18
|
+
install(app: App, options?: StachelockUIOptions): void;
|
|
19
|
+
};
|
|
20
|
+
export default StachelockUI;
|
|
21
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAiB/B,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAGD,eAAO,MAAM,YAAY;iBACV,GAAG,YAAW,mBAAmB;CAkB/C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatars.d.ts","sourceRoot":"","sources":["../../../src/types/avatars.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|