@finema/core 2.26.5 → 2.26.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -79
- package/dist/module.json +3 -3
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/App.vue.d.ts +3 -3
- package/dist/runtime/components/DevToolsWindow/index.vue.d.ts +1 -1
- package/dist/runtime/components/Dialog/index.vue.d.ts +1 -1
- package/dist/runtime/components/Empty.vue.d.ts +1 -1
- package/dist/runtime/components/FlexDeck/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
- package/dist/runtime/components/Form/FieldWrapper.vue.d.ts +3 -3
- package/dist/runtime/components/Form/Fields.vue +13 -13
- package/dist/runtime/components/Form/Fields.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
- package/dist/runtime/components/Form/InputCheckbox/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputDateTime/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
- package/dist/runtime/components/Form/InputNumber/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputRadio/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputSearch/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputSelect/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +43 -43
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputText/index.vue +74 -74
- package/dist/runtime/components/Form/InputText/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
- package/dist/runtime/components/Form/InputTextarea/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
- package/dist/runtime/components/Form/InputToggle/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.vue.d.ts +1 -1
- package/dist/runtime/components/Form/InputWYSIWYG/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
- package/dist/runtime/components/Form/fileState/EmptyState.vue.d.ts +1 -1
- package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
- package/dist/runtime/components/Form/fileState/FailedState.vue.d.ts +1 -1
- package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
- package/dist/runtime/components/Form/fileState/LoadingState.vue.d.ts +1 -1
- package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
- package/dist/runtime/components/Form/fileState/PreviewModal.vue.d.ts +1 -1
- package/dist/runtime/components/Form/fileState/SuccessState.vue.d.ts +1 -1
- package/dist/runtime/components/Form/index.vue +5 -5
- package/dist/runtime/components/Form/index.vue.d.ts +1 -1
- package/dist/runtime/components/Form/types.d.ts +1 -1
- package/dist/runtime/components/Image.vue +28 -28
- package/dist/runtime/components/Image.vue.d.ts +1 -1
- package/dist/runtime/components/Loader.vue.d.ts +1 -1
- package/dist/runtime/components/Log/LogItem.vue.d.ts +1 -1
- package/dist/runtime/components/Log/index.vue +17 -17
- package/dist/runtime/components/Log/index.vue.d.ts +1 -1
- package/dist/runtime/components/Table/Base.vue.d.ts +3 -3
- package/dist/runtime/components/Table/ColumnDate.vue +1 -1
- package/dist/runtime/components/Table/ColumnDate.vue.d.ts +1 -1
- package/dist/runtime/components/Table/ColumnDateTime.vue +1 -1
- package/dist/runtime/components/Table/ColumnDateTime.vue.d.ts +1 -1
- package/dist/runtime/components/Table/ColumnImage.vue +4 -4
- package/dist/runtime/components/Table/ColumnImage.vue.d.ts +1 -1
- package/dist/runtime/components/Table/ColumnNumber.vue.d.ts +1 -1
- package/dist/runtime/components/Table/ColumnText.vue +1 -1
- package/dist/runtime/components/Table/ColumnText.vue.d.ts +1 -1
- package/dist/runtime/components/Table/Simple.vue.d.ts +1 -1
- package/dist/runtime/components/Table/index.vue.d.ts +1 -1
- package/dist/runtime/components/TeleportSafe.vue.d.ts +3 -3
- package/dist/runtime/helpers/apiPageHelper.d.ts +2 -2
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/runtime/theme/button.d.ts +1 -1
- package/dist/runtime/theme/button.js +1 -1
- package/package.json +6 -6
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<div class="relative">
|
|
4
|
-
<Input
|
|
5
|
-
v-if="type === 'password'"
|
|
6
|
-
ref="inputRef"
|
|
7
|
-
v-maska="activeMaskOptions"
|
|
8
|
-
:model-value="value"
|
|
9
|
-
:disabled="wrapperProps.disabled"
|
|
10
|
-
:leading-icon="leadingIcon"
|
|
11
|
-
:trailing-icon="trailingIcon"
|
|
12
|
-
:loading="loading"
|
|
13
|
-
:loading-icon="loadingIcon"
|
|
14
|
-
:name="name"
|
|
15
|
-
:placeholder="wrapperProps.placeholder"
|
|
16
|
-
:type="isShowPassword ? 'text' : 'password'"
|
|
17
|
-
:autofocus="!!autoFocus"
|
|
18
|
-
:icon="icon"
|
|
19
|
-
:readonly="readonly"
|
|
20
|
-
:ui="defu(ui, { icon: { trailing: { pointer: '' } } })"
|
|
21
|
-
@update:model-value="onChange"
|
|
22
|
-
@focus="onFocus"
|
|
23
|
-
@blur="onBlur"
|
|
24
|
-
@keydown="onKeydown"
|
|
25
|
-
>
|
|
26
|
-
<template #trailing>
|
|
27
|
-
<Button
|
|
28
|
-
color="neutral"
|
|
29
|
-
variant="link"
|
|
30
|
-
:icon="isShowPassword ? 'i-heroicons-eye-slash' : 'i-heroicons-eye'"
|
|
31
|
-
:padded="false"
|
|
32
|
-
@click="isShowPassword = !isShowPassword"
|
|
33
|
-
/>
|
|
34
|
-
</template>
|
|
35
|
-
</Input>
|
|
36
|
-
<Input
|
|
37
|
-
v-else
|
|
38
|
-
ref="inputRef"
|
|
39
|
-
v-maska="activeMaskOptions"
|
|
40
|
-
:model-value="value"
|
|
41
|
-
:disabled="wrapperProps.disabled"
|
|
42
|
-
:leading-icon="leadingIcon"
|
|
43
|
-
:trailing-icon="trailingIcon"
|
|
44
|
-
:loading="loading"
|
|
45
|
-
:loading-icon="loadingIcon"
|
|
46
|
-
:name="name"
|
|
47
|
-
:placeholder="wrapperProps.placeholder"
|
|
48
|
-
:type="type"
|
|
49
|
-
:autofocus="!!autoFocus"
|
|
50
|
-
:icon="icon"
|
|
51
|
-
:readonly="readonly"
|
|
52
|
-
:ui="ui"
|
|
53
|
-
@update:model-value="onChange"
|
|
54
|
-
@focus="onFocus"
|
|
55
|
-
@blur="onBlur"
|
|
56
|
-
@keydown="onKeydown"
|
|
57
|
-
/>
|
|
58
|
-
<div
|
|
59
|
-
v-if="showSuggestions && filteredSuggestions.length > 0"
|
|
60
|
-
ref="suggestionsContainerRef"
|
|
61
|
-
:class="theme.suggestionsContainer()"
|
|
62
|
-
>
|
|
63
|
-
<div
|
|
64
|
-
v-for="(suggestion, index) in filteredSuggestions"
|
|
65
|
-
:key="suggestion"
|
|
66
|
-
:ref="(el) => setSuggestionItemRef(el, index)"
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<div class="relative">
|
|
4
|
+
<Input
|
|
5
|
+
v-if="type === 'password'"
|
|
6
|
+
ref="inputRef"
|
|
7
|
+
v-maska="activeMaskOptions"
|
|
8
|
+
:model-value="value"
|
|
9
|
+
:disabled="wrapperProps.disabled"
|
|
10
|
+
:leading-icon="leadingIcon"
|
|
11
|
+
:trailing-icon="trailingIcon"
|
|
12
|
+
:loading="loading"
|
|
13
|
+
:loading-icon="loadingIcon"
|
|
14
|
+
:name="name"
|
|
15
|
+
:placeholder="wrapperProps.placeholder"
|
|
16
|
+
:type="isShowPassword ? 'text' : 'password'"
|
|
17
|
+
:autofocus="!!autoFocus"
|
|
18
|
+
:icon="icon"
|
|
19
|
+
:readonly="readonly"
|
|
20
|
+
:ui="defu(ui, { icon: { trailing: { pointer: '' } } })"
|
|
21
|
+
@update:model-value="onChange"
|
|
22
|
+
@focus="onFocus"
|
|
23
|
+
@blur="onBlur"
|
|
24
|
+
@keydown="onKeydown"
|
|
25
|
+
>
|
|
26
|
+
<template #trailing>
|
|
27
|
+
<Button
|
|
28
|
+
color="neutral"
|
|
29
|
+
variant="link"
|
|
30
|
+
:icon="isShowPassword ? 'i-heroicons-eye-slash' : 'i-heroicons-eye'"
|
|
31
|
+
:padded="false"
|
|
32
|
+
@click="isShowPassword = !isShowPassword"
|
|
33
|
+
/>
|
|
34
|
+
</template>
|
|
35
|
+
</Input>
|
|
36
|
+
<Input
|
|
37
|
+
v-else
|
|
38
|
+
ref="inputRef"
|
|
39
|
+
v-maska="activeMaskOptions"
|
|
40
|
+
:model-value="value"
|
|
41
|
+
:disabled="wrapperProps.disabled"
|
|
42
|
+
:leading-icon="leadingIcon"
|
|
43
|
+
:trailing-icon="trailingIcon"
|
|
44
|
+
:loading="loading"
|
|
45
|
+
:loading-icon="loadingIcon"
|
|
46
|
+
:name="name"
|
|
47
|
+
:placeholder="wrapperProps.placeholder"
|
|
48
|
+
:type="type"
|
|
49
|
+
:autofocus="!!autoFocus"
|
|
50
|
+
:icon="icon"
|
|
51
|
+
:readonly="readonly"
|
|
52
|
+
:ui="ui"
|
|
53
|
+
@update:model-value="onChange"
|
|
54
|
+
@focus="onFocus"
|
|
55
|
+
@blur="onBlur"
|
|
56
|
+
@keydown="onKeydown"
|
|
57
|
+
/>
|
|
58
|
+
<div
|
|
59
|
+
v-if="showSuggestions && filteredSuggestions.length > 0"
|
|
60
|
+
ref="suggestionsContainerRef"
|
|
61
|
+
:class="theme.suggestionsContainer()"
|
|
62
|
+
>
|
|
63
|
+
<div
|
|
64
|
+
v-for="(suggestion, index) in filteredSuggestions"
|
|
65
|
+
:key="suggestion"
|
|
66
|
+
:ref="(el) => setSuggestionItemRef(el, index)"
|
|
67
67
|
:class="[
|
|
68
68
|
theme.suggestionItem(),
|
|
69
69
|
{ [theme.suggestionItemActive()]: index === selectedSuggestionIndex }
|
|
70
|
-
]"
|
|
71
|
-
@mousedown.prevent="selectSuggestion(suggestion, index)"
|
|
72
|
-
@mouseenter="selectedSuggestionIndex = index"
|
|
73
|
-
>
|
|
74
|
-
{{ suggestion }}
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</FieldWrapper>
|
|
70
|
+
]"
|
|
71
|
+
@mousedown.prevent="selectSuggestion(suggestion, index)"
|
|
72
|
+
@mouseenter="selectedSuggestionIndex = index"
|
|
73
|
+
>
|
|
74
|
+
{{ suggestion }}
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</FieldWrapper>
|
|
79
79
|
</template>
|
|
80
80
|
|
|
81
81
|
<script setup>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ITextFieldProps } from '#core/components/Form/InputText/types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<ITextFieldProps,
|
|
2
|
+
declare const _default: import("vue").DefineComponent<ITextFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
change: (...args: any[]) => void;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<ITextFieldProps> & Readonly<{
|
|
5
5
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<Textarea
|
|
4
|
-
:model-value="value"
|
|
5
|
-
:disabled="wrapperProps.disabled"
|
|
6
|
-
:name="name"
|
|
7
|
-
:resize="resize"
|
|
8
|
-
:placeholder="wrapperProps.placeholder"
|
|
9
|
-
:autofocus="!!autoFocus"
|
|
10
|
-
:autoresize="autoresize"
|
|
11
|
-
:rows="rows"
|
|
12
|
-
:maxrows="maxrows"
|
|
13
|
-
:loading="loading"
|
|
14
|
-
:loading-icon="loadingIcon"
|
|
15
|
-
:readonly="readonly"
|
|
16
|
-
:ui="ui"
|
|
17
|
-
@update:model-value="onChange"
|
|
18
|
-
/>
|
|
19
|
-
</FieldWrapper>
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<Textarea
|
|
4
|
+
:model-value="value"
|
|
5
|
+
:disabled="wrapperProps.disabled"
|
|
6
|
+
:name="name"
|
|
7
|
+
:resize="resize"
|
|
8
|
+
:placeholder="wrapperProps.placeholder"
|
|
9
|
+
:autofocus="!!autoFocus"
|
|
10
|
+
:autoresize="autoresize"
|
|
11
|
+
:rows="rows"
|
|
12
|
+
:maxrows="maxrows"
|
|
13
|
+
:loading="loading"
|
|
14
|
+
:loading-icon="loadingIcon"
|
|
15
|
+
:readonly="readonly"
|
|
16
|
+
:ui="ui"
|
|
17
|
+
@update:model-value="onChange"
|
|
18
|
+
/>
|
|
19
|
+
</FieldWrapper>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script setup>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ITextareaFieldProps } from '#core/components/Form/InputTextarea/types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<ITextareaFieldProps,
|
|
2
|
+
declare const _default: import("vue").DefineComponent<ITextareaFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
change: (...args: any[]) => void;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<ITextareaFieldProps> & Readonly<{
|
|
5
5
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper
|
|
3
|
-
v-bind="wrapperProps"
|
|
4
|
-
label=""
|
|
5
|
-
description=""
|
|
6
|
-
>
|
|
7
|
-
<Switch
|
|
8
|
-
:model-value="value"
|
|
9
|
-
:disabled="wrapperProps.disabled"
|
|
10
|
-
:name="name"
|
|
11
|
-
:ui="ui"
|
|
12
|
-
:label="label"
|
|
13
|
-
:description="description"
|
|
14
|
-
:loading="loading"
|
|
15
|
-
:loading-icon="loadingIcon"
|
|
16
|
-
@update:modelValue="onChange"
|
|
17
|
-
/>
|
|
18
|
-
</FieldWrapper>
|
|
2
|
+
<FieldWrapper
|
|
3
|
+
v-bind="wrapperProps"
|
|
4
|
+
label=""
|
|
5
|
+
description=""
|
|
6
|
+
>
|
|
7
|
+
<Switch
|
|
8
|
+
:model-value="value"
|
|
9
|
+
:disabled="wrapperProps.disabled"
|
|
10
|
+
:name="name"
|
|
11
|
+
:ui="ui"
|
|
12
|
+
:label="label"
|
|
13
|
+
:description="description"
|
|
14
|
+
:loading="loading"
|
|
15
|
+
:loading-icon="loadingIcon"
|
|
16
|
+
@update:modelValue="onChange"
|
|
17
|
+
/>
|
|
18
|
+
</FieldWrapper>
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script setup>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IToggleFieldProps } from '#core/components/Form/InputToggle/types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<IToggleFieldProps,
|
|
2
|
+
declare const _default: import("vue").DefineComponent<IToggleFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
change: (...args: any[]) => void;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<IToggleFieldProps> & Readonly<{
|
|
5
5
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<div
|
|
4
|
-
ref="dropzoneRef"
|
|
5
|
-
:class="theme.base()"
|
|
6
|
-
>
|
|
7
|
-
<div :class="theme.wrapper()">
|
|
8
|
-
<!-- Empty State -->
|
|
9
|
-
<EmptyState
|
|
10
|
-
v-if="uploadState.isEmpty.value"
|
|
11
|
-
:theme="theme"
|
|
12
|
-
:select-file-label="selectFileLabel"
|
|
13
|
-
:select-file-sub-label="selectFileSubLabel"
|
|
14
|
-
:placeholder="placeholder"
|
|
15
|
-
@open-file="uploadState.handleOpenFile"
|
|
16
|
-
/>
|
|
17
|
-
|
|
18
|
-
<!-- Success State -->
|
|
19
|
-
<SuccessState
|
|
20
|
-
v-if="uploadState.isSuccess.value"
|
|
21
|
-
:theme="theme"
|
|
22
|
-
:value="value"
|
|
23
|
-
:disabled="wrapperProps.disabled"
|
|
24
|
-
:readonly="wrapperProps.readonly"
|
|
25
|
-
@preview="uploadState.handlePreview"
|
|
26
|
-
@download="handleDownloadFile"
|
|
27
|
-
@delete="uploadState.handleDeleteFile"
|
|
28
|
-
/>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</FieldWrapper>
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<div
|
|
4
|
+
ref="dropzoneRef"
|
|
5
|
+
:class="theme.base()"
|
|
6
|
+
>
|
|
7
|
+
<div :class="theme.wrapper()">
|
|
8
|
+
<!-- Empty State -->
|
|
9
|
+
<EmptyState
|
|
10
|
+
v-if="uploadState.isEmpty.value"
|
|
11
|
+
:theme="theme"
|
|
12
|
+
:select-file-label="selectFileLabel"
|
|
13
|
+
:select-file-sub-label="selectFileSubLabel"
|
|
14
|
+
:placeholder="placeholder"
|
|
15
|
+
@open-file="uploadState.handleOpenFile"
|
|
16
|
+
/>
|
|
17
|
+
|
|
18
|
+
<!-- Success State -->
|
|
19
|
+
<SuccessState
|
|
20
|
+
v-if="uploadState.isSuccess.value"
|
|
21
|
+
:theme="theme"
|
|
22
|
+
:value="value"
|
|
23
|
+
:disabled="wrapperProps.disabled"
|
|
24
|
+
:readonly="wrapperProps.readonly"
|
|
25
|
+
@preview="uploadState.handlePreview"
|
|
26
|
+
@download="handleDownloadFile"
|
|
27
|
+
@delete="uploadState.handleDeleteFile"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</FieldWrapper>
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<script setup>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IUploadDropzoneProps } from './types.js';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<IUploadDropzoneProps,
|
|
2
|
+
declare const _default: import("vue").DefineComponent<IUploadDropzoneProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
delete: () => any;
|
|
4
4
|
change: (value: File | undefined) => any;
|
|
5
5
|
}, string, import("vue").PublicProps, Readonly<IUploadDropzoneProps> & Readonly<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IUploadDropzoneAutoProps } from './types.js';
|
|
2
2
|
import type { IFileValue } from '#core/components/Form/types';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<IUploadDropzoneAutoProps,
|
|
3
|
+
declare const _default: import("vue").DefineComponent<IUploadDropzoneAutoProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
4
|
success: (res: IFileValue) => any;
|
|
5
5
|
delete: () => any;
|
|
6
6
|
change: (value: File | undefined) => any;
|
|
@@ -3,7 +3,7 @@ interface Props {
|
|
|
3
3
|
requestOptions?: any;
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
6
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
submit: (url: string) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
9
9
|
onSubmit?: ((url: string) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IWYSIWYGFieldProps } from '#core/components/Form/InputWYSIWYG/types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<IWYSIWYGFieldProps,
|
|
2
|
+
declare const _default: import("vue").DefineComponent<IWYSIWYGFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IWYSIWYGFieldProps> & Readonly<{}>, {
|
|
3
3
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
4
|
color: "primary" | "gray";
|
|
5
5
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="theme.placeholderWrapper()">
|
|
3
|
-
<Icon
|
|
4
|
-
:name="icons.uploadIcon"
|
|
5
|
-
:class="theme.labelIcon()"
|
|
6
|
-
/>
|
|
7
|
-
<div :class="theme.labelWrapper()">
|
|
8
|
-
<p
|
|
9
|
-
class="text-primary cursor-pointer font-bold"
|
|
10
|
-
@click="$emit('openFile')"
|
|
11
|
-
>
|
|
12
|
-
{{ selectFileLabel }}
|
|
13
|
-
</p>
|
|
14
|
-
<p>{{ selectFileSubLabel }}</p>
|
|
15
|
-
</div>
|
|
16
|
-
<p
|
|
17
|
-
v-if="placeholder"
|
|
18
|
-
:class="theme.placeholder()"
|
|
19
|
-
>
|
|
20
|
-
{{ placeholder }}
|
|
21
|
-
</p>
|
|
22
|
-
</div>
|
|
2
|
+
<div :class="theme.placeholderWrapper()">
|
|
3
|
+
<Icon
|
|
4
|
+
:name="icons.uploadIcon"
|
|
5
|
+
:class="theme.labelIcon()"
|
|
6
|
+
/>
|
|
7
|
+
<div :class="theme.labelWrapper()">
|
|
8
|
+
<p
|
|
9
|
+
class="text-primary cursor-pointer font-bold"
|
|
10
|
+
@click="$emit('openFile')"
|
|
11
|
+
>
|
|
12
|
+
{{ selectFileLabel }}
|
|
13
|
+
</p>
|
|
14
|
+
<p>{{ selectFileSubLabel }}</p>
|
|
15
|
+
</div>
|
|
16
|
+
<p
|
|
17
|
+
v-if="placeholder"
|
|
18
|
+
:class="theme.placeholder()"
|
|
19
|
+
>
|
|
20
|
+
{{ placeholder }}
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script setup>
|
|
@@ -4,7 +4,7 @@ interface Props {
|
|
|
4
4
|
selectFileSubLabel: string;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
7
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
openFile: () => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
10
10
|
onOpenFile?: (() => any) | undefined;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="theme.onFailedWrapper()">
|
|
3
|
-
<div :class="theme.onFailedFailedImgWrapper()">
|
|
4
|
-
<Icon
|
|
5
|
-
:name="getFileIcon(selectedFile)"
|
|
6
|
-
:class="theme.onFailedFailedIconClass()"
|
|
7
|
-
/>
|
|
8
|
-
</div>
|
|
9
|
-
<div :class="theme.onFailedTextWrapper()">
|
|
10
|
-
<div class="truncate">
|
|
11
|
-
<h1 class="truncate font-bold">
|
|
12
|
-
{{ selectedFile.name }}
|
|
13
|
-
</h1>
|
|
14
|
-
<p class="text-error truncate font-light">
|
|
15
|
-
{{ uploadFailedLabel }}
|
|
16
|
-
</p>
|
|
17
|
-
<Button
|
|
18
|
-
variant="link"
|
|
19
|
-
:icon="icons.actionRetryIcon"
|
|
20
|
-
:class="theme.actionRetryBtnClass()"
|
|
21
|
-
color="primary"
|
|
22
|
-
@click="$emit('retry')"
|
|
23
|
-
>
|
|
24
|
-
{{ retryLabel }}
|
|
25
|
-
</Button>
|
|
26
|
-
</div>
|
|
27
|
-
<Icon
|
|
28
|
-
:name="icons.actionDeleteIcon"
|
|
29
|
-
:class="theme.actionDeleteIconClass()"
|
|
30
|
-
title="ลบไฟล์"
|
|
31
|
-
@click="$emit('delete')"
|
|
32
|
-
/>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
2
|
+
<div :class="theme.onFailedWrapper()">
|
|
3
|
+
<div :class="theme.onFailedFailedImgWrapper()">
|
|
4
|
+
<Icon
|
|
5
|
+
:name="getFileIcon(selectedFile)"
|
|
6
|
+
:class="theme.onFailedFailedIconClass()"
|
|
7
|
+
/>
|
|
8
|
+
</div>
|
|
9
|
+
<div :class="theme.onFailedTextWrapper()">
|
|
10
|
+
<div class="truncate">
|
|
11
|
+
<h1 class="truncate font-bold">
|
|
12
|
+
{{ selectedFile.name }}
|
|
13
|
+
</h1>
|
|
14
|
+
<p class="text-error truncate font-light">
|
|
15
|
+
{{ uploadFailedLabel }}
|
|
16
|
+
</p>
|
|
17
|
+
<Button
|
|
18
|
+
variant="link"
|
|
19
|
+
:icon="icons.actionRetryIcon"
|
|
20
|
+
:class="theme.actionRetryBtnClass()"
|
|
21
|
+
color="primary"
|
|
22
|
+
@click="$emit('retry')"
|
|
23
|
+
>
|
|
24
|
+
{{ retryLabel }}
|
|
25
|
+
</Button>
|
|
26
|
+
</div>
|
|
27
|
+
<Icon
|
|
28
|
+
:name="icons.actionDeleteIcon"
|
|
29
|
+
:class="theme.actionDeleteIconClass()"
|
|
30
|
+
title="ลบไฟล์"
|
|
31
|
+
@click="$emit('delete')"
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
35
|
</template>
|
|
36
36
|
|
|
37
37
|
<script setup>
|
|
@@ -4,7 +4,7 @@ interface Props {
|
|
|
4
4
|
uploadFailedLabel: string;
|
|
5
5
|
retryLabel: string;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
7
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
delete: () => any;
|
|
9
9
|
retry: () => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="theme.onLoadingWrapper()">
|
|
3
|
-
<div :class="theme.onLoadingPlaceholderWrapper()">
|
|
4
|
-
<Icon
|
|
5
|
-
:name="getFileIcon(selectedFile)"
|
|
6
|
-
:class="theme.onLoadingPlaceholderIconClass()"
|
|
7
|
-
/>
|
|
8
|
-
</div>
|
|
9
|
-
<div :class="theme.onLoadingTextWrapper()">
|
|
10
|
-
<div class="truncate">
|
|
11
|
-
<h1 class="truncate font-bold">
|
|
12
|
-
{{ selectedFile.name }}
|
|
13
|
-
</h1>
|
|
14
|
-
<p class="truncate font-light text-gray-400">
|
|
15
|
-
{{ getFileSize(selectedFile) }} - {{ percent }}% {{ uploadingLabel }}
|
|
16
|
-
</p>
|
|
17
|
-
</div>
|
|
18
|
-
<div>
|
|
19
|
-
<Icon
|
|
20
|
-
:name="icons.loadingIcon"
|
|
21
|
-
:class="theme.onLoadingLoadingIconClass()"
|
|
22
|
-
/>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
2
|
+
<div :class="theme.onLoadingWrapper()">
|
|
3
|
+
<div :class="theme.onLoadingPlaceholderWrapper()">
|
|
4
|
+
<Icon
|
|
5
|
+
:name="getFileIcon(selectedFile)"
|
|
6
|
+
:class="theme.onLoadingPlaceholderIconClass()"
|
|
7
|
+
/>
|
|
8
|
+
</div>
|
|
9
|
+
<div :class="theme.onLoadingTextWrapper()">
|
|
10
|
+
<div class="truncate">
|
|
11
|
+
<h1 class="truncate font-bold">
|
|
12
|
+
{{ selectedFile.name }}
|
|
13
|
+
</h1>
|
|
14
|
+
<p class="truncate font-light text-gray-400">
|
|
15
|
+
{{ getFileSize(selectedFile) }} - {{ percent }}% {{ uploadingLabel }}
|
|
16
|
+
</p>
|
|
17
|
+
</div>
|
|
18
|
+
<div>
|
|
19
|
+
<Icon
|
|
20
|
+
:name="icons.loadingIcon"
|
|
21
|
+
:class="theme.onLoadingLoadingIconClass()"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
28
|
<script setup>
|
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
percent: number;
|
|
5
5
|
uploadingLabel: string;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
7
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
export default _default;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Modal
|
|
3
|
-
:close="{ onClick: () => emits('close', false) }"
|
|
4
|
-
:dismissible="false"
|
|
5
|
-
:title="value?.name"
|
|
2
|
+
<Modal
|
|
3
|
+
:close="{ onClick: () => emits('close', false) }"
|
|
4
|
+
:dismissible="false"
|
|
5
|
+
:title="value?.name"
|
|
6
6
|
:ui="{
|
|
7
7
|
content: 'max-w-3xl'
|
|
8
|
-
}"
|
|
9
|
-
>
|
|
10
|
-
<template #body>
|
|
11
|
-
<div class="flex justify-center">
|
|
12
|
-
<img
|
|
13
|
-
v-if="value && isImageFromPath(value.path)"
|
|
14
|
-
:src="value.url"
|
|
15
|
-
alt="img-preview"
|
|
16
|
-
class="max-h-96 max-w-full rounded-lg"
|
|
17
|
-
/>
|
|
18
|
-
<video
|
|
19
|
-
v-else-if="value && isVideoFromPath(value.path)"
|
|
20
|
-
:src="value.url"
|
|
21
|
-
controls
|
|
22
|
-
class="max-h-96 max-w-full"
|
|
23
|
-
/>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
</Modal>
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<template #body>
|
|
11
|
+
<div class="flex justify-center">
|
|
12
|
+
<img
|
|
13
|
+
v-if="value && isImageFromPath(value.path)"
|
|
14
|
+
:src="value.url"
|
|
15
|
+
alt="img-preview"
|
|
16
|
+
class="max-h-96 max-w-full rounded-lg"
|
|
17
|
+
/>
|
|
18
|
+
<video
|
|
19
|
+
v-else-if="value && isVideoFromPath(value.path)"
|
|
20
|
+
:src="value.url"
|
|
21
|
+
controls
|
|
22
|
+
class="max-h-96 max-w-full"
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
</Modal>
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script setup>
|
|
@@ -2,7 +2,7 @@ import type { IFileValue } from '#core/components/Form/types';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
value?: IFileValue;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
5
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
6
|
close: (args_0: boolean) => any;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
8
8
|
onClose?: ((args_0: boolean) => any) | undefined;
|
|
@@ -5,7 +5,7 @@ interface Props {
|
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
readonly?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: import("vue").DefineComponent<Props,
|
|
8
|
+
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
delete: () => any;
|
|
10
10
|
preview: () => any;
|
|
11
11
|
download: () => any;
|