sprintify-ui 0.10.14 → 0.10.16
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 +4 -2
- package/dist/BaseCkeditor-C9d4NSCx.js +113 -0
- package/dist/sprintify-ui.es.js +14283 -81751
- package/dist/style.css +3 -3
- package/dist/types/components/BaseActionButtons.vue.d.ts +1 -1
- package/dist/types/components/BaseActionItem.vue.d.ts +7 -10
- package/dist/types/components/BaseAddressForm.vue.d.ts +1 -1
- package/dist/types/components/BaseAlert.vue.d.ts +24 -11
- package/dist/types/components/BaseApp.vue.d.ts +14 -12
- package/dist/types/components/BaseAssign.vue.d.ts +1 -1
- package/dist/types/components/BaseAutocomplete.vue.d.ts +642 -452
- package/dist/types/components/BaseAutocompleteDrawer.vue.d.ts +117 -22
- package/dist/types/components/BaseAutocompleteFetch.vue.d.ts +1029 -410
- package/dist/types/components/BaseAvatar.vue.d.ts +1 -1
- package/dist/types/components/BaseAvatarGroup.vue.d.ts +1 -1
- package/dist/types/components/BaseBadge.vue.d.ts +23 -11
- package/dist/types/components/BaseBelongsTo.vue.d.ts +985 -409
- package/dist/types/components/BaseBelongsToFetch.vue.d.ts +750 -369
- package/dist/types/components/BaseBoolean.vue.d.ts +1 -1
- package/dist/types/components/BaseBreadcrumbs.vue.d.ts +1 -1
- package/dist/types/components/BaseButton.vue.d.ts +57 -13
- package/dist/types/components/BaseButtonGroup.vue.d.ts +166 -15
- package/dist/types/components/BaseCard.vue.d.ts +26 -12
- package/dist/types/components/BaseCardRow.vue.d.ts +20 -11
- package/dist/types/components/BaseCharacterCounter.vue.d.ts +1 -1
- package/dist/types/components/BaseCkeditor.vue.d.ts +32 -0
- package/dist/types/components/BaseClipboard.vue.d.ts +45 -13
- package/dist/types/components/BaseCollapse.vue.d.ts +41 -20
- package/dist/types/components/BaseContainer.vue.d.ts +16 -11
- package/dist/types/components/BaseCounter.vue.d.ts +1 -1
- package/dist/types/components/BaseCropper.vue.d.ts +55 -30
- package/dist/types/components/BaseDataIterator.vue.d.ts +43 -42
- package/dist/types/components/BaseDataIteratorSectionBox.vue.d.ts +15 -12
- package/dist/types/components/BaseDataIteratorSectionColumns.vue.d.ts +1 -1
- package/dist/types/components/BaseDataIteratorSectionModal.vue.d.ts +19 -10
- package/dist/types/components/BaseDataTable.vue.d.ts +2045 -735
- package/dist/types/components/BaseDataTableTemplate.vue.d.ts +563 -100
- package/dist/types/components/BaseDatePicker.vue.d.ts +1 -1
- package/dist/types/components/BaseDateSelect.vue.d.ts +1 -1
- package/dist/types/components/BaseDescriptionList.vue.d.ts +12 -12
- package/dist/types/components/BaseDescriptionListItem.vue.d.ts +16 -15
- package/dist/types/components/BaseDialog.vue.d.ts +114 -407
- package/dist/types/components/BaseDisplayRelativeTime.vue.d.ts +55 -13
- package/dist/types/components/BaseDraggable.vue.d.ts +21 -17
- package/dist/types/components/BaseDropdown.vue.d.ts +155 -17
- package/dist/types/components/BaseDropdownAutocomplete.vue.d.ts +134 -19
- package/dist/types/components/BaseField.vue.d.ts +103 -12
- package/dist/types/components/BaseFieldI18n.vue.d.ts +1 -1
- package/dist/types/components/BaseFilePicker.vue.d.ts +35 -16
- package/dist/types/components/BaseFilePickerCrop.vue.d.ts +87 -42
- package/dist/types/components/BaseFileUploader.vue.d.ts +195 -29
- package/dist/types/components/BaseForm.vue.d.ts +161 -20
- package/dist/types/components/BaseGantt.vue.d.ts +1130 -409
- package/dist/types/components/BaseHasMany.vue.d.ts +586 -345
- package/dist/types/components/BaseHasManyFetch.vue.d.ts +598 -249
- package/dist/types/components/BaseHeader.vue.d.ts +1 -1
- package/dist/types/components/BaseIconPicker.vue.d.ts +1 -1
- package/dist/types/components/BaseInputError.vue.d.ts +23 -11
- package/dist/types/components/BaseJsonReaderItem.vue.d.ts +1 -1
- package/dist/types/components/BaseLayoutNotificationItemContent.vue.d.ts +1 -1
- package/dist/types/components/BaseLayoutSidebar.vue.d.ts +127 -16
- package/dist/types/components/BaseLayoutSidebarConfigurable.vue.d.ts +115 -13
- package/dist/types/components/BaseLayoutStacked.vue.d.ts +69 -22
- package/dist/types/components/BaseLayoutStackedConfigurable.vue.d.ts +120 -10
- package/dist/types/components/BaseLazy.vue.d.ts +20 -15
- package/dist/types/components/BaseMediaGallery.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaGalleryItem.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaItem.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaLibrary.vue.d.ts +234 -34
- package/dist/types/components/BaseMediaList.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaListItem.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaPictures.vue.d.ts +1 -1
- package/dist/types/components/BaseMediaPicturesItem.vue.d.ts +1 -1
- package/dist/types/components/BaseMenu.vue.d.ts +233 -30
- package/dist/types/components/BaseMenuItem.vue.d.ts +1 -1
- package/dist/types/components/BaseModalCenter.vue.d.ts +88 -12
- package/dist/types/components/BaseModalSide.vue.d.ts +72 -12
- package/dist/types/components/BaseNavbar.vue.d.ts +88 -22
- package/dist/types/components/BaseNavbarItem.vue.d.ts +1 -1
- package/dist/types/components/BaseNavbarItemContent.vue.d.ts +1 -1
- package/dist/types/components/BaseNavbarSideItem.vue.d.ts +1 -1
- package/dist/types/components/BaseNavbarSideItemContent.vue.d.ts +1 -1
- package/dist/types/components/BasePagination.vue.d.ts +1 -1
- package/dist/types/components/BaseRadioGroup.vue.d.ts +113 -13
- package/dist/types/components/BaseReadMore.vue.d.ts +31 -12
- package/dist/types/components/BaseRichText.vue.d.ts +1 -1
- package/dist/types/components/BaseSelect.vue.d.ts +149 -12
- package/dist/types/components/BaseShortcut.vue.d.ts +1 -1
- package/dist/types/components/BaseSideNavigation.vue.d.ts +11 -12
- package/dist/types/components/BaseSideNavigationItem.vue.d.ts +22 -13
- package/dist/types/components/BaseSkeleton.vue.d.ts +3 -3
- package/dist/types/components/BaseStepper.vue.d.ts +1 -1
- package/dist/types/components/BaseSwitch.vue.d.ts +118 -10
- package/dist/types/components/BaseSystemAlert.vue.d.ts +58 -11
- package/dist/types/components/BaseTabItem.vue.d.ts +25 -16
- package/dist/types/components/BaseTable.vue.d.ts +29 -14
- package/dist/types/components/BaseTableBody.vue.d.ts +9 -12
- package/dist/types/components/BaseTableCell.vue.d.ts +40 -15
- package/dist/types/components/BaseTableColumn.vue.d.ts +2 -2
- package/dist/types/components/BaseTableHead.vue.d.ts +14 -12
- package/dist/types/components/BaseTableHeader.vue.d.ts +25 -14
- package/dist/types/components/BaseTableRow.vue.d.ts +40 -13
- package/dist/types/components/BaseTabs.vue.d.ts +16 -15
- package/dist/types/components/BaseTagAutocomplete.vue.d.ts +578 -199
- package/dist/types/components/BaseTagAutocompleteFetch.vue.d.ts +803 -346
- package/dist/types/components/BaseTextareaAutoresize.vue.d.ts +1 -1
- package/dist/types/components/BaseTimeline.vue.d.ts +1 -1
- package/dist/types/components/BaseTimelineItem.vue.d.ts +1 -1
- package/dist/types/components/BaseToast.vue.d.ts +1 -1
- package/dist/types/components/BaseTooltip.vue.d.ts +41 -15
- package/dist/types/components/BaseUniqueCode.vue.d.ts +1 -1
- package/dist/types/stories/PageInputSizes.vue.d.ts +1 -1
- package/dist/types/stories/PageShow.vue.d.ts +1 -1
- package/dist/types/svg/BaseEmptyState.vue.d.ts +1 -1
- package/dist/types/svg/BaseSpinnerSmall.vue.d.ts +1 -1
- package/package.json +5 -4
- package/src/components/BaseCkeditor.vue +137 -0
- package/src/components/BaseDraggable.vue +1 -1
- package/src/components/BaseRichText.vue +10 -100
|
@@ -6,21 +6,40 @@ type __VLS_Props = {
|
|
|
6
6
|
acceptedExtensions?: string[];
|
|
7
7
|
multiple?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
rootEl: any;
|
|
9
|
+
declare const selecting: import("vue").Ref<boolean, boolean>;
|
|
10
|
+
declare const dragging: import("vue").Ref<boolean, boolean>;
|
|
11
|
+
declare const input: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
12
|
+
declare function pickFile(): Promise<void>;
|
|
13
|
+
declare function onInputChange(): void;
|
|
14
|
+
declare function handleDrop(e: any): void;
|
|
15
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
16
|
+
declare var __VLS_1: {
|
|
17
|
+
selecting: boolean;
|
|
18
|
+
dragging: boolean;
|
|
19
|
+
disabled: boolean;
|
|
22
20
|
};
|
|
23
|
-
type
|
|
21
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
22
|
+
default?: (props: typeof __VLS_1) => any;
|
|
23
|
+
}>;
|
|
24
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
25
|
+
selecting: typeof selecting;
|
|
26
|
+
dragging: typeof dragging;
|
|
27
|
+
input: typeof input;
|
|
28
|
+
pickFile: typeof pickFile;
|
|
29
|
+
onInputChange: typeof onInputChange;
|
|
30
|
+
handleDrop: typeof handleDrop;
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
select: (...args: any[]) => void;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
twButton: string;
|
|
38
|
+
multiple: boolean;
|
|
39
|
+
maxSize: number;
|
|
40
|
+
accept: string;
|
|
41
|
+
acceptedExtensions: string[];
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
43
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
44
|
select: (...args: any[]) => void;
|
|
26
45
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -33,9 +52,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
33
52
|
accept: string;
|
|
34
53
|
acceptedExtensions: string[];
|
|
35
54
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
|
-
declare const _default:
|
|
55
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
37
56
|
export default _default;
|
|
38
|
-
type
|
|
57
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
39
58
|
new (): {
|
|
40
59
|
$slots: S;
|
|
41
60
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import BaseFilePicker from '@/components/BaseFilePicker.vue';
|
|
2
|
+
import BaseCropperModal from '@/components/BaseCropperModal.vue';
|
|
1
3
|
import { BaseCropperConfig } from '@/types';
|
|
2
4
|
type __VLS_Props = {
|
|
3
5
|
disabled?: boolean;
|
|
@@ -6,47 +8,90 @@ type __VLS_Props = {
|
|
|
6
8
|
acceptedExtensions?: string[];
|
|
7
9
|
cropper: BaseCropperConfig | null;
|
|
8
10
|
};
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
11
|
+
declare const baseCropperModalRef: import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
12
|
+
modelValue?: boolean;
|
|
13
|
+
cropper: BaseCropperConfig;
|
|
14
|
+
}> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
onCropped?: ((value: string | Blob | HTMLCanvasElement) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
save: () => Promise<unknown>;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
+
"update:modelValue": (value: boolean) => any;
|
|
21
|
+
cropped: (value: string | Blob | HTMLCanvasElement) => any;
|
|
22
|
+
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
23
|
+
P: {};
|
|
24
|
+
B: {};
|
|
25
|
+
D: {};
|
|
26
|
+
C: {};
|
|
27
|
+
M: {};
|
|
28
|
+
Defaults: {};
|
|
29
|
+
}, Readonly<{
|
|
30
|
+
modelValue?: boolean;
|
|
31
|
+
cropper: BaseCropperConfig;
|
|
32
|
+
}> & Readonly<{
|
|
33
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
34
|
+
onCropped?: ((value: string | Blob | HTMLCanvasElement) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
save: () => Promise<unknown>;
|
|
37
|
+
}, {}, {}, {}, {}> | null, import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
38
|
+
modelValue?: boolean;
|
|
39
|
+
cropper: BaseCropperConfig;
|
|
40
|
+
}> & Readonly<{
|
|
41
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
42
|
+
onCropped?: ((value: string | Blob | HTMLCanvasElement) => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
save: () => Promise<unknown>;
|
|
45
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
46
|
+
"update:modelValue": (value: boolean) => any;
|
|
47
|
+
cropped: (value: string | Blob | HTMLCanvasElement) => any;
|
|
48
|
+
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
49
|
+
P: {};
|
|
50
|
+
B: {};
|
|
51
|
+
D: {};
|
|
52
|
+
C: {};
|
|
53
|
+
M: {};
|
|
54
|
+
Defaults: {};
|
|
55
|
+
}, Readonly<{
|
|
56
|
+
modelValue?: boolean;
|
|
57
|
+
cropper: BaseCropperConfig;
|
|
58
|
+
}> & Readonly<{
|
|
59
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
60
|
+
onCropped?: ((value: string | Blob | HTMLCanvasElement) => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
save: () => Promise<unknown>;
|
|
63
|
+
}, {}, {}, {}, {}> | null>;
|
|
64
|
+
declare const showCropperModal: import("vue").Ref<boolean, boolean>;
|
|
65
|
+
declare const cropperInternal: import("vue").ComputedRef<BaseCropperConfig | null>;
|
|
66
|
+
declare function launchCropper(file: File): Promise<void>;
|
|
67
|
+
declare function onCropped(cropped: HTMLCanvasElement | string | Blob): Promise<void>;
|
|
68
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
69
|
+
declare var __VLS_9: {
|
|
70
|
+
selecting: boolean;
|
|
71
|
+
dragging: boolean;
|
|
72
|
+
disabled: boolean;
|
|
48
73
|
};
|
|
49
|
-
type
|
|
74
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
75
|
+
default?: (props: typeof __VLS_9) => any;
|
|
76
|
+
}>;
|
|
77
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
78
|
+
BaseFilePicker: typeof BaseFilePicker;
|
|
79
|
+
BaseCropperModal: typeof BaseCropperModal;
|
|
80
|
+
baseCropperModalRef: typeof baseCropperModalRef;
|
|
81
|
+
showCropperModal: typeof showCropperModal;
|
|
82
|
+
cropperInternal: typeof cropperInternal;
|
|
83
|
+
launchCropper: typeof launchCropper;
|
|
84
|
+
onCropped: typeof onCropped;
|
|
85
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
86
|
+
select: (...args: any[]) => void;
|
|
87
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
88
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
}>, {
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
twButton: string;
|
|
92
|
+
maxSize: number;
|
|
93
|
+
acceptedExtensions: string[];
|
|
94
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
95
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
96
|
select: (...args: any[]) => void;
|
|
52
97
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -57,9 +102,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
57
102
|
maxSize: number;
|
|
58
103
|
acceptedExtensions: string[];
|
|
59
104
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
60
|
-
declare const _default:
|
|
105
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
61
106
|
export default _default;
|
|
62
|
-
type
|
|
107
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
63
108
|
new (): {
|
|
64
109
|
$slots: S;
|
|
65
110
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import BaseLoadingCover from '@/components/BaseLoadingCover.vue';
|
|
1
2
|
import { BaseCropperConfig } from '@/types';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
component?: 'BaseFilePicker' | 'BaseFilePickerCrop';
|
|
@@ -12,40 +13,205 @@ type __VLS_Props = {
|
|
|
12
13
|
cropper?: BaseCropperConfig | Record<string, any> | boolean | null;
|
|
13
14
|
multiple?: boolean;
|
|
14
15
|
};
|
|
15
|
-
declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
declare const componentInternal: import("vue").ComputedRef<({
|
|
17
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
twButton?: string;
|
|
20
|
+
maxSize?: number;
|
|
21
|
+
accept?: string;
|
|
22
|
+
acceptedExtensions?: string[];
|
|
23
|
+
multiple?: boolean;
|
|
24
|
+
}> & Readonly<{
|
|
25
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
select: (...args: any[]) => void;
|
|
28
|
+
}, import("vue").PublicProps, {
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
twButton: string;
|
|
31
|
+
multiple: boolean;
|
|
32
|
+
maxSize: number;
|
|
33
|
+
accept: string;
|
|
34
|
+
acceptedExtensions: string[];
|
|
35
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
36
|
+
P: {};
|
|
37
|
+
B: {};
|
|
38
|
+
D: {};
|
|
39
|
+
C: {};
|
|
40
|
+
M: {};
|
|
41
|
+
Defaults: {};
|
|
42
|
+
}, Readonly<{
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
twButton?: string;
|
|
45
|
+
maxSize?: number;
|
|
46
|
+
accept?: string;
|
|
47
|
+
acceptedExtensions?: string[];
|
|
48
|
+
multiple?: boolean;
|
|
49
|
+
}> & Readonly<{
|
|
50
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}>, {}, {}, {}, {}, {
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
twButton: string;
|
|
54
|
+
multiple: boolean;
|
|
55
|
+
maxSize: number;
|
|
56
|
+
accept: string;
|
|
57
|
+
acceptedExtensions: string[];
|
|
58
|
+
}>;
|
|
59
|
+
__isFragment?: never;
|
|
60
|
+
__isTeleport?: never;
|
|
61
|
+
__isSuspense?: never;
|
|
62
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
twButton?: string;
|
|
65
|
+
maxSize?: number;
|
|
66
|
+
accept?: string;
|
|
67
|
+
acceptedExtensions?: string[];
|
|
68
|
+
multiple?: boolean;
|
|
69
|
+
}> & Readonly<{
|
|
70
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
72
|
+
select: (...args: any[]) => void;
|
|
73
|
+
}, string, {
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
twButton: string;
|
|
76
|
+
multiple: boolean;
|
|
77
|
+
maxSize: number;
|
|
78
|
+
accept: string;
|
|
79
|
+
acceptedExtensions: string[];
|
|
80
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
81
|
+
$slots: {
|
|
82
|
+
default?: ((props: {
|
|
32
83
|
selecting: boolean;
|
|
33
84
|
dragging: boolean;
|
|
34
85
|
disabled: boolean;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
86
|
+
}) => any) | undefined;
|
|
87
|
+
};
|
|
88
|
+
})) | ({
|
|
89
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
90
|
+
disabled?: boolean;
|
|
91
|
+
twButton?: string;
|
|
92
|
+
maxSize?: number;
|
|
93
|
+
acceptedExtensions?: string[];
|
|
94
|
+
cropper: BaseCropperConfig | null;
|
|
95
|
+
}> & Readonly<{
|
|
96
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
97
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
98
|
+
select: (...args: any[]) => void;
|
|
99
|
+
}, import("vue").PublicProps, {
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
twButton: string;
|
|
102
|
+
maxSize: number;
|
|
103
|
+
acceptedExtensions: string[];
|
|
104
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
105
|
+
P: {};
|
|
106
|
+
B: {};
|
|
107
|
+
D: {};
|
|
108
|
+
C: {};
|
|
109
|
+
M: {};
|
|
110
|
+
Defaults: {};
|
|
111
|
+
}, Readonly<{
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
twButton?: string;
|
|
114
|
+
maxSize?: number;
|
|
115
|
+
acceptedExtensions?: string[];
|
|
116
|
+
cropper: BaseCropperConfig | null;
|
|
117
|
+
}> & Readonly<{
|
|
118
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
}>, {}, {}, {}, {}, {
|
|
120
|
+
disabled: boolean;
|
|
121
|
+
twButton: string;
|
|
122
|
+
maxSize: number;
|
|
123
|
+
acceptedExtensions: string[];
|
|
124
|
+
}>;
|
|
125
|
+
__isFragment?: never;
|
|
126
|
+
__isTeleport?: never;
|
|
127
|
+
__isSuspense?: never;
|
|
128
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
twButton?: string;
|
|
131
|
+
maxSize?: number;
|
|
132
|
+
acceptedExtensions?: string[];
|
|
133
|
+
cropper: BaseCropperConfig | null;
|
|
134
|
+
}> & Readonly<{
|
|
135
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
136
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
137
|
+
select: (...args: any[]) => void;
|
|
138
|
+
}, string, {
|
|
139
|
+
disabled: boolean;
|
|
140
|
+
twButton: string;
|
|
141
|
+
maxSize: number;
|
|
142
|
+
acceptedExtensions: string[];
|
|
143
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
144
|
+
$slots: {
|
|
145
|
+
default?: ((props: {
|
|
38
146
|
selecting: boolean;
|
|
39
147
|
dragging: boolean;
|
|
40
148
|
disabled: boolean;
|
|
41
|
-
|
|
42
|
-
loading: boolean;
|
|
43
|
-
}): any;
|
|
149
|
+
}) => any) | undefined;
|
|
44
150
|
};
|
|
45
|
-
|
|
46
|
-
|
|
151
|
+
}))>;
|
|
152
|
+
declare const pickerProps: import("vue").ComputedRef<Record<string, any>>;
|
|
153
|
+
declare const uploading: import("vue").Ref<boolean, boolean>;
|
|
154
|
+
declare function onFileSelect(files: File | File[]): Promise<void>;
|
|
155
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
156
|
+
declare var __VLS_9: {
|
|
157
|
+
selecting: boolean;
|
|
158
|
+
dragging: boolean;
|
|
159
|
+
disabled: boolean;
|
|
160
|
+
uploading: boolean;
|
|
161
|
+
loading: boolean;
|
|
162
|
+
} | {
|
|
163
|
+
selecting: boolean;
|
|
164
|
+
dragging: boolean;
|
|
165
|
+
disabled: boolean;
|
|
166
|
+
uploading: boolean;
|
|
167
|
+
loading: boolean;
|
|
168
|
+
}, __VLS_11: {
|
|
169
|
+
selecting: boolean;
|
|
170
|
+
dragging: boolean;
|
|
171
|
+
disabled: boolean;
|
|
172
|
+
uploading: boolean;
|
|
173
|
+
loading: boolean;
|
|
174
|
+
} | {
|
|
175
|
+
selecting: boolean;
|
|
176
|
+
dragging: boolean;
|
|
177
|
+
disabled: boolean;
|
|
178
|
+
uploading: boolean;
|
|
179
|
+
loading: boolean;
|
|
47
180
|
};
|
|
48
|
-
type
|
|
181
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
182
|
+
default?: (props: typeof __VLS_9) => any;
|
|
183
|
+
} & {
|
|
184
|
+
loading?: (props: typeof __VLS_11) => any;
|
|
185
|
+
}>;
|
|
186
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
187
|
+
BaseLoadingCover: typeof BaseLoadingCover;
|
|
188
|
+
componentInternal: typeof componentInternal;
|
|
189
|
+
pickerProps: typeof pickerProps;
|
|
190
|
+
uploading: typeof uploading;
|
|
191
|
+
onFileSelect: typeof onFileSelect;
|
|
192
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
193
|
+
start: (...args: any[]) => void;
|
|
194
|
+
end: (...args: any[]) => void;
|
|
195
|
+
success: (...args: any[]) => void;
|
|
196
|
+
fail: (...args: any[]) => void;
|
|
197
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
198
|
+
onStart?: ((...args: any[]) => any) | undefined;
|
|
199
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
|
200
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
201
|
+
onFail?: ((...args: any[]) => any) | undefined;
|
|
202
|
+
}>, {
|
|
203
|
+
component: "BaseFilePicker" | "BaseFilePickerCrop";
|
|
204
|
+
disabled: boolean;
|
|
205
|
+
twButton: string;
|
|
206
|
+
url: string;
|
|
207
|
+
cropper: BaseCropperConfig | Record<string, any> | boolean | null;
|
|
208
|
+
loading: boolean;
|
|
209
|
+
multiple: boolean;
|
|
210
|
+
maxSize: number;
|
|
211
|
+
accept: string;
|
|
212
|
+
acceptedExtensions: string[];
|
|
213
|
+
beforeUpload: () => boolean;
|
|
214
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
215
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
216
|
start: (...args: any[]) => void;
|
|
51
217
|
end: (...args: any[]) => void;
|
|
@@ -68,10 +234,10 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
68
234
|
accept: string;
|
|
69
235
|
acceptedExtensions: string[];
|
|
70
236
|
beforeUpload: () => boolean;
|
|
71
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
72
|
-
declare const _default:
|
|
237
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
238
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
73
239
|
export default _default;
|
|
74
|
-
type
|
|
240
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
75
241
|
new (): {
|
|
76
242
|
$slots: S;
|
|
77
243
|
};
|
|
@@ -1,26 +1,167 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Method, DataFormat } from '@/types';
|
|
3
3
|
import { AxiosError, AxiosInstance } from 'axios';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
5
|
type NextFunction = () => void;
|
|
6
|
+
declare const form: import("vue").Ref<HTMLFormElement | null, HTMLFormElement | null>;
|
|
7
|
+
declare const loading: import("vue").Ref<boolean, boolean>;
|
|
8
|
+
declare const errors: import("vue").Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
5
9
|
declare function submit(): void;
|
|
6
10
|
declare function clearErrors(name?: null): void;
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
type
|
|
11
|
+
declare const disabled: import("vue").ComputedRef<boolean>;
|
|
12
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
13
|
+
declare var __VLS_1: {
|
|
14
|
+
errors: Record<string, string[]>;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
submit: typeof submit;
|
|
18
|
+
}, __VLS_7: {};
|
|
19
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
20
|
+
default?: (props: typeof __VLS_1) => any;
|
|
21
|
+
} & {
|
|
22
|
+
loading?: (props: typeof __VLS_7) => any;
|
|
23
|
+
}>;
|
|
24
|
+
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
25
|
+
url: {
|
|
26
|
+
required: true;
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
method: {
|
|
30
|
+
required: true;
|
|
31
|
+
type: PropType<Method>;
|
|
32
|
+
validator: (value: string) => boolean;
|
|
33
|
+
};
|
|
34
|
+
data: {
|
|
35
|
+
required: true;
|
|
36
|
+
type: PropType<Record<string, any>>;
|
|
37
|
+
};
|
|
38
|
+
axiosInstance: {
|
|
39
|
+
default: null;
|
|
40
|
+
type: PropType<AxiosInstance | null>;
|
|
41
|
+
};
|
|
42
|
+
format: {
|
|
43
|
+
type: PropType<DataFormat>;
|
|
44
|
+
default: DataFormat;
|
|
45
|
+
validator: (value: string) => boolean;
|
|
46
|
+
};
|
|
47
|
+
beforeSubmit: {
|
|
48
|
+
default: (next: NextFunction) => void;
|
|
49
|
+
type: PropType<(next: NextFunction) => void>;
|
|
50
|
+
};
|
|
51
|
+
successHandler: {
|
|
52
|
+
default: undefined;
|
|
53
|
+
type: PropType<(response: any) => void>;
|
|
54
|
+
};
|
|
55
|
+
errorHandler: {
|
|
56
|
+
default: (error: AxiosError) => void;
|
|
57
|
+
type: PropType<(error: AxiosError) => void>;
|
|
58
|
+
};
|
|
59
|
+
twLoadingMask: {
|
|
60
|
+
default: string;
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
};
|
|
63
|
+
showLoadingMask: {
|
|
64
|
+
default: boolean;
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
};
|
|
67
|
+
showNotificationOnError: {
|
|
68
|
+
default: boolean;
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
};
|
|
71
|
+
showNotificationOnSuccess: {
|
|
72
|
+
default: boolean;
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Autosave the form every time a input is changed
|
|
77
|
+
*/
|
|
78
|
+
autosave: {
|
|
79
|
+
default: boolean;
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
};
|
|
82
|
+
}>, {
|
|
83
|
+
twMerge: typeof twMerge;
|
|
84
|
+
form: typeof form;
|
|
85
|
+
loading: typeof loading;
|
|
86
|
+
errors: typeof errors;
|
|
87
|
+
submit: typeof submit;
|
|
88
|
+
disabled: typeof disabled;
|
|
89
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
90
|
+
success: (...args: any[]) => void;
|
|
91
|
+
error: (...args: any[]) => void;
|
|
92
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
93
|
+
url: {
|
|
94
|
+
required: true;
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
};
|
|
97
|
+
method: {
|
|
98
|
+
required: true;
|
|
99
|
+
type: PropType<Method>;
|
|
100
|
+
validator: (value: string) => boolean;
|
|
101
|
+
};
|
|
102
|
+
data: {
|
|
103
|
+
required: true;
|
|
104
|
+
type: PropType<Record<string, any>>;
|
|
105
|
+
};
|
|
106
|
+
axiosInstance: {
|
|
107
|
+
default: null;
|
|
108
|
+
type: PropType<AxiosInstance | null>;
|
|
109
|
+
};
|
|
110
|
+
format: {
|
|
111
|
+
type: PropType<DataFormat>;
|
|
112
|
+
default: DataFormat;
|
|
113
|
+
validator: (value: string) => boolean;
|
|
114
|
+
};
|
|
115
|
+
beforeSubmit: {
|
|
116
|
+
default: (next: NextFunction) => void;
|
|
117
|
+
type: PropType<(next: NextFunction) => void>;
|
|
118
|
+
};
|
|
119
|
+
successHandler: {
|
|
120
|
+
default: undefined;
|
|
121
|
+
type: PropType<(response: any) => void>;
|
|
122
|
+
};
|
|
123
|
+
errorHandler: {
|
|
124
|
+
default: (error: AxiosError) => void;
|
|
125
|
+
type: PropType<(error: AxiosError) => void>;
|
|
126
|
+
};
|
|
127
|
+
twLoadingMask: {
|
|
128
|
+
default: string;
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
};
|
|
131
|
+
showLoadingMask: {
|
|
132
|
+
default: boolean;
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
};
|
|
135
|
+
showNotificationOnError: {
|
|
136
|
+
default: boolean;
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
};
|
|
139
|
+
showNotificationOnSuccess: {
|
|
140
|
+
default: boolean;
|
|
141
|
+
type: BooleanConstructor;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Autosave the form every time a input is changed
|
|
145
|
+
*/
|
|
146
|
+
autosave: {
|
|
147
|
+
default: boolean;
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
};
|
|
150
|
+
}>> & Readonly<{
|
|
151
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
152
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
}>, {
|
|
154
|
+
errorHandler: (error: AxiosError) => void;
|
|
155
|
+
axiosInstance: AxiosInstance | null;
|
|
156
|
+
format: DataFormat;
|
|
157
|
+
beforeSubmit: (next: NextFunction) => void;
|
|
158
|
+
successHandler: (response: any) => void;
|
|
159
|
+
twLoadingMask: string;
|
|
160
|
+
showLoadingMask: boolean;
|
|
161
|
+
showNotificationOnError: boolean;
|
|
162
|
+
showNotificationOnSuccess: boolean;
|
|
163
|
+
autosave: boolean;
|
|
164
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
165
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
25
166
|
url: {
|
|
26
167
|
required: true;
|
|
@@ -161,10 +302,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
161
302
|
showNotificationOnError: boolean;
|
|
162
303
|
showNotificationOnSuccess: boolean;
|
|
163
304
|
autosave: boolean;
|
|
164
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
165
|
-
declare const _default:
|
|
305
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
306
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
166
307
|
export default _default;
|
|
167
|
-
type
|
|
308
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
168
309
|
new (): {
|
|
169
310
|
$slots: S;
|
|
170
311
|
};
|