@finema/core 3.13.1 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/FlexDeck/index.vue +79 -79
- package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
- package/dist/runtime/components/Form/Fields.vue +13 -13
- package/dist/runtime/components/Form/InputCheckbox/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
- package/dist/runtime/components/Form/InputCheckbox/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputCheckboxGroup/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputCheckboxGroup/index.vue +21 -21
- package/dist/runtime/components/Form/InputCheckboxGroup/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputCurrency/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputCurrency/index.vue +49 -49
- package/dist/runtime/components/Form/InputCurrency/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputDateTime/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputDateTime/index.vue +155 -158
- package/dist/runtime/components/Form/InputDateTime/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputDateTimeRange/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue +56 -56
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputMonth/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputMonth/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputNumber/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
- package/dist/runtime/components/Form/InputNumber/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputSearch/index.d.vue.ts +9 -1
- package/dist/runtime/components/Form/InputSearch/index.vue.d.ts +9 -1
- package/dist/runtime/components/Form/InputSelect/index.d.vue.ts +7 -1
- package/dist/runtime/components/Form/InputSelect/index.vue +46 -46
- package/dist/runtime/components/Form/InputSelect/index.vue.d.ts +7 -1
- package/dist/runtime/components/Form/InputSelectMultiple/index.d.vue.ts +7 -1
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +62 -62
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue.d.ts +7 -1
- package/dist/runtime/components/Form/InputTags/index.d.vue.ts +11 -1
- package/dist/runtime/components/Form/InputTags/index.vue +54 -54
- package/dist/runtime/components/Form/InputTags/index.vue.d.ts +11 -1
- package/dist/runtime/components/Form/InputText/index.d.vue.ts +7 -1
- package/dist/runtime/components/Form/InputText/index.vue +85 -85
- package/dist/runtime/components/Form/InputText/index.vue.d.ts +7 -1
- package/dist/runtime/components/Form/InputTextarea/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
- package/dist/runtime/components/Form/InputTextarea/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputTime/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputTime/index.vue +38 -38
- package/dist/runtime/components/Form/InputTime/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputToggle/index.d.vue.ts +5 -1
- package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
- package/dist/runtime/components/Form/InputToggle/index.vue.d.ts +5 -1
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
- package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/index.vue +50 -50
- package/dist/runtime/components/Form/InputUploadImageAuto/index.vue +50 -50
- package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadNode.vue +18 -18
- package/dist/runtime/components/Form/InputWYSIWYG/EditorLinkPopover.vue +65 -65
- package/dist/runtime/components/Form/InputWYSIWYG/README.md +96 -96
- package/dist/runtime/components/Form/InputWYSIWYG/index.vue +41 -41
- package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
- package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
- package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
- package/dist/runtime/components/Form/fileState/MultipleFilesState.vue +75 -75
- package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
- package/dist/runtime/components/Form/index.vue +5 -5
- package/dist/runtime/components/Image.vue +28 -28
- package/dist/runtime/components/Log/index.vue +17 -17
- package/dist/runtime/components/Table/Base.d.vue.ts +8 -2
- package/dist/runtime/components/Table/Base.vue.d.ts +8 -2
- package/dist/runtime/components/Table/ColumnDate.vue +1 -1
- package/dist/runtime/components/Table/ColumnDateTime.vue +1 -1
- package/dist/runtime/components/Table/ColumnImage.vue +4 -4
- package/dist/runtime/components/Table/ColumnText.vue +10 -10
- package/dist/runtime/components/Table/Pagination.vue +56 -56
- package/dist/runtime/components/Table/Simple.vue +16 -16
- package/dist/runtime/components/Table/index.vue +30 -30
- package/dist/runtime/composables/loaderPage.js +29 -0
- package/dist/runtime/helpers/apiPageHelper.d.ts +1 -0
- package/dist/runtime/server/tsconfig.json +3 -3
- package/package.json +2 -2
|
@@ -1,167 +1,164 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<Drawer
|
|
4
|
-
v-if="isMobile"
|
|
5
|
-
v-model:open="isShowModal"
|
|
6
|
-
>
|
|
7
|
-
<Input
|
|
8
|
-
v-if="!readMode"
|
|
9
|
-
:trailing-icon="innerValue ?
|
|
10
|
-
type="text"
|
|
11
|
-
:disabled="wrapperProps.disabled"
|
|
12
|
-
:model-value="format(innerValue)"
|
|
13
|
-
:placeholder="wrapperProps.placeholder"
|
|
14
|
-
:readonly="true"
|
|
15
|
-
:ui="{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}"
|
|
19
|
-
>
|
|
20
|
-
<template #trailing>
|
|
21
|
-
<Icon
|
|
22
|
-
v-if="clearable && value"
|
|
23
|
-
:name="clearIcon"
|
|
24
|
-
:class="theme.clearIcon({
|
|
25
|
-
|
|
26
|
-
})"
|
|
27
|
-
@click.stop="value = null"
|
|
28
|
-
/>
|
|
29
|
-
</template>
|
|
30
|
-
</Input>
|
|
31
|
-
<div
|
|
32
|
-
v-else
|
|
33
|
-
class="cursor-pointer rounded-md px-2 py-1 hover:bg-gray-100"
|
|
34
|
-
:class="classReadMode"
|
|
35
|
-
>
|
|
36
|
-
{{ innerValue ? format(innerValue) :
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<template #content>
|
|
40
|
-
<Datepicker
|
|
41
|
-
inline
|
|
42
|
-
:model-value="innerValue"
|
|
43
|
-
:disabled="wrapperProps.disabled"
|
|
44
|
-
:cancel-text="appConfig.core?.locale === 'th' ? '
|
|
45
|
-
:select-text="appConfig.core?.locale === 'th' ? '
|
|
46
|
-
:locale="appConfig.core?.locale"
|
|
47
|
-
:enable-time-picker="!disabledTime"
|
|
48
|
-
:placeholder="wrapperProps.placeholder"
|
|
49
|
-
:format="format"
|
|
50
|
-
:min-date="minDate"
|
|
51
|
-
:max-date="maxDate"
|
|
52
|
-
:min-time="minTime"
|
|
53
|
-
:max-time="maxTime"
|
|
54
|
-
:six-weeks="true"
|
|
55
|
-
:start-time="startTime"
|
|
56
|
-
:required="required"
|
|
57
|
-
:flow="['calendar', 'time']"
|
|
58
|
-
@update:model-value="onInput"
|
|
59
|
-
>
|
|
60
|
-
<template #action-row="{ internalModelValue, selectDate, closePicker }">
|
|
61
|
-
<div class="flex w-full items-center justify-between">
|
|
62
|
-
<p>
|
|
63
|
-
{{ format(internalModelValue) }}
|
|
64
|
-
</p>
|
|
65
|
-
|
|
66
|
-
<div class="flex items-center space-x-2">
|
|
67
|
-
<Button
|
|
68
|
-
color="neutral"
|
|
69
|
-
variant="subtle"
|
|
70
|
-
@click="closePicker;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
:
|
|
101
|
-
:
|
|
102
|
-
:
|
|
103
|
-
:
|
|
104
|
-
:
|
|
105
|
-
:
|
|
106
|
-
:
|
|
107
|
-
:
|
|
108
|
-
:
|
|
109
|
-
:
|
|
110
|
-
:
|
|
111
|
-
:
|
|
112
|
-
:
|
|
113
|
-
:
|
|
114
|
-
:
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
>
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
:
|
|
135
|
-
|
|
136
|
-
:
|
|
137
|
-
:model-value="innerValue"
|
|
138
|
-
:placeholder="wrapperProps.placeholder"
|
|
139
|
-
:readonly="true"
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<!-- <Drawer
|
|
4
|
+
v-if="isMobile"
|
|
5
|
+
v-model:open="isShowModal"
|
|
6
|
+
>
|
|
7
|
+
<Input
|
|
8
|
+
v-if="!readMode"
|
|
9
|
+
:trailing-icon="innerValue ? undefined : 'i-heroicons-calendar-days'"
|
|
10
|
+
type="text"
|
|
11
|
+
:disabled="wrapperProps.disabled"
|
|
12
|
+
:model-value="format(innerValue)"
|
|
13
|
+
:placeholder="wrapperProps.placeholder"
|
|
14
|
+
:readonly="true"
|
|
15
|
+
:ui="{
|
|
16
|
+
base: 'cursor-pointer select-none',
|
|
17
|
+
trailingIcon: 'cursor-pointer',
|
|
18
|
+
}"
|
|
19
|
+
>
|
|
20
|
+
<template #trailing>
|
|
21
|
+
<Icon
|
|
22
|
+
v-if="clearable && value"
|
|
23
|
+
:name="clearIcon"
|
|
24
|
+
:class="theme.clearIcon({
|
|
25
|
+
class: [ui?.clearIcon, 'mr-0 cursor-pointer'],
|
|
26
|
+
})"
|
|
27
|
+
@click.stop="value = null"
|
|
28
|
+
/>
|
|
29
|
+
</template>
|
|
30
|
+
</Input>
|
|
31
|
+
<div
|
|
32
|
+
v-else
|
|
33
|
+
class="cursor-pointer rounded-md px-2 py-1 hover:bg-gray-100"
|
|
34
|
+
:class="classReadMode"
|
|
35
|
+
>
|
|
36
|
+
{{ innerValue ? format(innerValue) : 'None' }}
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<template #content>
|
|
40
|
+
<Datepicker
|
|
41
|
+
inline
|
|
42
|
+
:model-value="innerValue"
|
|
43
|
+
:disabled="wrapperProps.disabled"
|
|
44
|
+
:cancel-text="appConfig.core?.locale === 'th' ? 'ยกเลิก' : 'Cancel'"
|
|
45
|
+
:select-text="appConfig.core?.locale === 'th' ? 'ตกลง' : 'Select'"
|
|
46
|
+
:locale="appConfig.core?.locale"
|
|
47
|
+
:enable-time-picker="!disabledTime"
|
|
48
|
+
:placeholder="wrapperProps.placeholder"
|
|
49
|
+
:format="(format as any)"
|
|
50
|
+
:min-date="minDate"
|
|
51
|
+
:max-date="maxDate"
|
|
52
|
+
:min-time="minTime"
|
|
53
|
+
:max-time="maxTime"
|
|
54
|
+
:six-weeks="true"
|
|
55
|
+
:start-time="startTime"
|
|
56
|
+
:required="required"
|
|
57
|
+
:flow="['calendar', 'time']"
|
|
58
|
+
@update:model-value="onInput"
|
|
59
|
+
>
|
|
60
|
+
<template #action-row="{ internalModelValue, selectDate, closePicker }">
|
|
61
|
+
<div class="flex w-full items-center justify-between">
|
|
62
|
+
<p>
|
|
63
|
+
{{ format(internalModelValue as any) }}
|
|
64
|
+
</p>
|
|
65
|
+
|
|
66
|
+
<div class="flex items-center space-x-2">
|
|
67
|
+
<Button
|
|
68
|
+
color="neutral"
|
|
69
|
+
variant="subtle"
|
|
70
|
+
@click="closePicker; isShowModal = false"
|
|
71
|
+
>
|
|
72
|
+
{{ appConfig.core?.locale === 'th' ? 'ยกเลิก' : 'Cancel' }}
|
|
73
|
+
</Button> <Button
|
|
74
|
+
@click="selectDate; isShowModal = false"
|
|
75
|
+
>
|
|
76
|
+
{{ appConfig.core?.locale === 'th' ? 'ตกลง' : 'Select' }}
|
|
77
|
+
</Button>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</template>
|
|
81
|
+
<template
|
|
82
|
+
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
83
|
+
#year="{ value }"
|
|
84
|
+
>
|
|
85
|
+
{{ value + 543 }}
|
|
86
|
+
</template>
|
|
87
|
+
<template
|
|
88
|
+
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
89
|
+
#year-overlay-value="{ value }"
|
|
90
|
+
>
|
|
91
|
+
{{ value + 543 }}
|
|
92
|
+
</template>
|
|
93
|
+
</Datepicker>
|
|
94
|
+
</template>
|
|
95
|
+
</Drawer> -->
|
|
96
|
+
<Datepicker
|
|
97
|
+
:model-value="innerValue"
|
|
98
|
+
:disabled="wrapperProps.disabled"
|
|
99
|
+
:cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
|
|
100
|
+
:select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
|
|
101
|
+
:locale="appConfig.core?.locale"
|
|
102
|
+
:enable-time-picker="!disabledTime"
|
|
103
|
+
:placeholder="wrapperProps.placeholder"
|
|
104
|
+
:format="format"
|
|
105
|
+
:min-date="minDate"
|
|
106
|
+
:max-date="maxDate"
|
|
107
|
+
:min-time="minTime"
|
|
108
|
+
:max-time="maxTime"
|
|
109
|
+
:six-weeks="true"
|
|
110
|
+
:start-time="startTime"
|
|
111
|
+
:teleport="teleport"
|
|
112
|
+
:required="required"
|
|
113
|
+
:flow="['calendar', 'time']"
|
|
114
|
+
@update:model-value="onInput"
|
|
115
|
+
>
|
|
116
|
+
<template
|
|
117
|
+
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
118
|
+
#year="{ value }"
|
|
119
|
+
>
|
|
120
|
+
{{ value + 543 }}
|
|
121
|
+
</template>
|
|
122
|
+
<template
|
|
123
|
+
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
124
|
+
#year-overlay-value="{ value }"
|
|
125
|
+
>
|
|
126
|
+
{{ value + 543 }}
|
|
127
|
+
</template>
|
|
128
|
+
<template #dp-input="{ value: innerValue }">
|
|
129
|
+
<Input
|
|
130
|
+
v-if="!readMode"
|
|
131
|
+
:trailing-icon="innerValue ? void 0 : 'i-heroicons-calendar-days'"
|
|
132
|
+
type="text"
|
|
133
|
+
:disabled="wrapperProps.disabled"
|
|
134
|
+
:model-value="innerValue"
|
|
135
|
+
:placeholder="wrapperProps.placeholder"
|
|
136
|
+
:readonly="true"
|
|
140
137
|
:ui="{
|
|
141
138
|
base: 'cursor-pointer select-none',
|
|
142
139
|
trailingIcon: 'cursor-pointer'
|
|
143
|
-
}"
|
|
144
|
-
/>
|
|
145
|
-
<div
|
|
146
|
-
v-else
|
|
147
|
-
class="cursor-pointer rounded-md px-2 py-1 hover:bg-gray-100"
|
|
148
|
-
:class="classReadMode"
|
|
149
|
-
>
|
|
150
|
-
{{ innerValue || "None" }}
|
|
151
|
-
</div>
|
|
152
|
-
</template>
|
|
153
|
-
<template #clear-icon="{ clear }">
|
|
154
|
-
<Icon
|
|
155
|
-
v-if="clearable"
|
|
156
|
-
:name="clearIcon"
|
|
140
|
+
}"
|
|
141
|
+
/>
|
|
142
|
+
<div
|
|
143
|
+
v-else
|
|
144
|
+
class="cursor-pointer rounded-md px-2 py-1 hover:bg-gray-100"
|
|
145
|
+
:class="classReadMode"
|
|
146
|
+
>
|
|
147
|
+
{{ innerValue || "None" }}
|
|
148
|
+
</div>
|
|
149
|
+
</template>
|
|
150
|
+
<template #clear-icon="{ clear }">
|
|
151
|
+
<Icon
|
|
152
|
+
v-if="clearable"
|
|
153
|
+
:name="clearIcon"
|
|
157
154
|
:class="theme.clearIcon({
|
|
158
155
|
class: [ui?.clearIcon]
|
|
159
|
-
})"
|
|
160
|
-
@click.stop="clear"
|
|
161
|
-
/>
|
|
162
|
-
</template>
|
|
163
|
-
</Datepicker>
|
|
164
|
-
</FieldWrapper>
|
|
156
|
+
})"
|
|
157
|
+
@click.stop="clear"
|
|
158
|
+
/>
|
|
159
|
+
</template>
|
|
160
|
+
</Datepicker>
|
|
161
|
+
</FieldWrapper>
|
|
165
162
|
</template>
|
|
166
163
|
|
|
167
164
|
<script setup>
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import '@vuepic/vue-datepicker/dist/main.css';
|
|
2
2
|
import type { IDateTimeFieldProps } from '#core/components/Form/InputDateTime/date_time_field.types';
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<IDateTimeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<IDateTimeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
change: (...args: any[]) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<IDateTimeFieldProps> & Readonly<{
|
|
6
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}>, {
|
|
4
8
|
clearable: boolean;
|
|
5
9
|
clearIcon: string;
|
|
6
10
|
teleport: boolean | string | HTMLElement;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import '@vuepic/vue-datepicker/dist/main.css';
|
|
2
2
|
import type { IDateTimeRangeFieldProps } from './date_range_time_field.types.js';
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<IDateTimeRangeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<IDateTimeRangeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
change: (...args: any[]) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<IDateTimeRangeFieldProps> & Readonly<{
|
|
6
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}>, {
|
|
4
8
|
clearIcon: string;
|
|
5
9
|
teleport: boolean | string | HTMLElement;
|
|
6
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<Datepicker
|
|
4
|
-
ref="datepicker"
|
|
5
|
-
v-model="innerValueRef"
|
|
6
|
-
:teleport="teleport"
|
|
7
|
-
:disabled="wrapperProps.disabled"
|
|
8
|
-
:cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
|
|
9
|
-
:select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
|
|
10
|
-
:locale="appConfig.core?.locale"
|
|
11
|
-
:format="format"
|
|
12
|
-
:enable-time-picker="!disabledTime"
|
|
13
|
-
:placeholder="wrapperProps.placeholder"
|
|
14
|
-
:min-date="minDate"
|
|
15
|
-
:max-date="maxDate"
|
|
16
|
-
:min-time="minTime"
|
|
17
|
-
:max-time="maxTime"
|
|
18
|
-
:six-weeks="true"
|
|
19
|
-
:start-time="startTime"
|
|
20
|
-
:multi-calendars="!isDisabledMultiCalendar"
|
|
21
|
-
:required="required"
|
|
22
|
-
time-picker-inline
|
|
23
|
-
range
|
|
24
|
-
:flow="['calendar', 'time']"
|
|
25
|
-
@update:model-value="onInput"
|
|
26
|
-
>
|
|
27
|
-
<template
|
|
28
|
-
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
29
|
-
#year="{ value }"
|
|
30
|
-
>
|
|
31
|
-
{{ value + 543 }}
|
|
32
|
-
</template>
|
|
33
|
-
<template
|
|
34
|
-
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
35
|
-
#year-overlay-value="{ value }"
|
|
36
|
-
>
|
|
37
|
-
{{ value + 543 }}
|
|
38
|
-
</template>
|
|
39
|
-
<template #dp-input="{ value: innerValue }">
|
|
40
|
-
<Input
|
|
41
|
-
:trailing-icon="innerValue ? void 0 : 'i-heroicons-calendar-days'"
|
|
42
|
-
type="text"
|
|
43
|
-
:model-value="innerValue"
|
|
44
|
-
:placeholder="wrapperProps.placeholder"
|
|
45
|
-
:readonly="true"
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<Datepicker
|
|
4
|
+
ref="datepicker"
|
|
5
|
+
v-model="innerValueRef"
|
|
6
|
+
:teleport="teleport"
|
|
7
|
+
:disabled="wrapperProps.disabled"
|
|
8
|
+
:cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
|
|
9
|
+
:select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
|
|
10
|
+
:locale="appConfig.core?.locale"
|
|
11
|
+
:format="format"
|
|
12
|
+
:enable-time-picker="!disabledTime"
|
|
13
|
+
:placeholder="wrapperProps.placeholder"
|
|
14
|
+
:min-date="minDate"
|
|
15
|
+
:max-date="maxDate"
|
|
16
|
+
:min-time="minTime"
|
|
17
|
+
:max-time="maxTime"
|
|
18
|
+
:six-weeks="true"
|
|
19
|
+
:start-time="startTime"
|
|
20
|
+
:multi-calendars="!isDisabledMultiCalendar"
|
|
21
|
+
:required="required"
|
|
22
|
+
time-picker-inline
|
|
23
|
+
range
|
|
24
|
+
:flow="['calendar', 'time']"
|
|
25
|
+
@update:model-value="onInput"
|
|
26
|
+
>
|
|
27
|
+
<template
|
|
28
|
+
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
29
|
+
#year="{ value }"
|
|
30
|
+
>
|
|
31
|
+
{{ value + 543 }}
|
|
32
|
+
</template>
|
|
33
|
+
<template
|
|
34
|
+
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
35
|
+
#year-overlay-value="{ value }"
|
|
36
|
+
>
|
|
37
|
+
{{ value + 543 }}
|
|
38
|
+
</template>
|
|
39
|
+
<template #dp-input="{ value: innerValue }">
|
|
40
|
+
<Input
|
|
41
|
+
:trailing-icon="innerValue ? void 0 : 'i-heroicons-calendar-days'"
|
|
42
|
+
type="text"
|
|
43
|
+
:model-value="innerValue"
|
|
44
|
+
:placeholder="wrapperProps.placeholder"
|
|
45
|
+
:readonly="true"
|
|
46
46
|
:ui="{
|
|
47
47
|
base: 'cursor-pointer select-none',
|
|
48
48
|
trailingIcon: 'cursor-pointer'
|
|
49
|
-
}"
|
|
50
|
-
/>
|
|
51
|
-
</template>
|
|
52
|
-
<template #clear-icon="{ clear }">
|
|
53
|
-
<Icon
|
|
54
|
-
:name="clearIcon"
|
|
49
|
+
}"
|
|
50
|
+
/>
|
|
51
|
+
</template>
|
|
52
|
+
<template #clear-icon="{ clear }">
|
|
53
|
+
<Icon
|
|
54
|
+
:name="clearIcon"
|
|
55
55
|
:class="theme.clearIcon({
|
|
56
56
|
class: [ui?.clearIcon]
|
|
57
|
-
})"
|
|
58
|
-
@click.stop="clear"
|
|
59
|
-
/>
|
|
60
|
-
</template>
|
|
61
|
-
</Datepicker>
|
|
62
|
-
</FieldWrapper>
|
|
57
|
+
})"
|
|
58
|
+
@click.stop="clear"
|
|
59
|
+
/>
|
|
60
|
+
</template>
|
|
61
|
+
</Datepicker>
|
|
62
|
+
</FieldWrapper>
|
|
63
63
|
</template>
|
|
64
64
|
|
|
65
65
|
<script setup>
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import '@vuepic/vue-datepicker/dist/main.css';
|
|
2
2
|
import type { IDateTimeRangeFieldProps } from './date_range_time_field.types.js';
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<IDateTimeRangeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<IDateTimeRangeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
change: (...args: any[]) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<IDateTimeRangeFieldProps> & Readonly<{
|
|
6
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}>, {
|
|
4
8
|
clearIcon: string;
|
|
5
9
|
teleport: boolean | string | HTMLElement;
|
|
6
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import '@vuepic/vue-datepicker/dist/main.css';
|
|
2
2
|
import type { IMonthFieldProps } from '#core/components/Form/InputMonth/types';
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<IMonthFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<IMonthFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
change: (...args: any[]) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<IMonthFieldProps> & Readonly<{
|
|
6
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}>, {
|
|
4
8
|
clearIcon: string;
|
|
5
9
|
teleport: boolean | string | HTMLElement;
|
|
6
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import '@vuepic/vue-datepicker/dist/main.css';
|
|
2
2
|
import type { IMonthFieldProps } from '#core/components/Form/InputMonth/types';
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<IMonthFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<IMonthFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
change: (...args: any[]) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<IMonthFieldProps> & Readonly<{
|
|
6
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}>, {
|
|
4
8
|
clearIcon: string;
|
|
5
9
|
teleport: boolean | string | HTMLElement;
|
|
6
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { INumberFieldProps } from '#core/components/Form/InputNumber/types';
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<INumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<INumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
change: (...args: any[]) => void;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<INumberFieldProps> & Readonly<{
|
|
5
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}>, {
|
|
3
7
|
orientation: "horizontal" | "vertical";
|
|
4
8
|
increment: boolean | Omit<import("@nuxt/ui").ButtonProps, import("@nuxt/ui").LinkPropsKeys>;
|
|
5
9
|
decrement: boolean | Omit<import("@nuxt/ui").ButtonProps, import("@nuxt/ui").LinkPropsKeys>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<InputNumber
|
|
4
|
-
:model-value="value"
|
|
5
|
-
:disabled="wrapperProps.disabled"
|
|
6
|
-
:name="name"
|
|
7
|
-
:placeholder="wrapperProps.placeholder"
|
|
8
|
-
:autofocus="!!autoFocus"
|
|
9
|
-
:readonly="readonly"
|
|
10
|
-
:orientation="orientation"
|
|
11
|
-
:increment="increment"
|
|
12
|
-
:decrement="decrement"
|
|
13
|
-
:min="min"
|
|
14
|
-
:max="max"
|
|
15
|
-
:step="step"
|
|
16
|
-
:disable-wheel-change="disableWheelChange"
|
|
17
|
-
:format-options="formatOptions"
|
|
18
|
-
:ui="ui"
|
|
19
|
-
@update:model-value="onChange"
|
|
20
|
-
/>
|
|
21
|
-
</FieldWrapper>
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<InputNumber
|
|
4
|
+
:model-value="value"
|
|
5
|
+
:disabled="wrapperProps.disabled"
|
|
6
|
+
:name="name"
|
|
7
|
+
:placeholder="wrapperProps.placeholder"
|
|
8
|
+
:autofocus="!!autoFocus"
|
|
9
|
+
:readonly="readonly"
|
|
10
|
+
:orientation="orientation"
|
|
11
|
+
:increment="increment"
|
|
12
|
+
:decrement="decrement"
|
|
13
|
+
:min="min"
|
|
14
|
+
:max="max"
|
|
15
|
+
:step="step"
|
|
16
|
+
:disable-wheel-change="disableWheelChange"
|
|
17
|
+
:format-options="formatOptions"
|
|
18
|
+
:ui="ui"
|
|
19
|
+
@update:model-value="onChange"
|
|
20
|
+
/>
|
|
21
|
+
</FieldWrapper>
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script setup>
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { INumberFieldProps } from '#core/components/Form/InputNumber/types';
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<INumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<INumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
change: (...args: any[]) => void;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<INumberFieldProps> & Readonly<{
|
|
5
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
6
|
+
}>, {
|
|
3
7
|
orientation: "horizontal" | "vertical";
|
|
4
8
|
increment: boolean | Omit<import("@nuxt/ui").ButtonProps, import("@nuxt/ui").LinkPropsKeys>;
|
|
5
9
|
decrement: boolean | Omit<import("@nuxt/ui").ButtonProps, import("@nuxt/ui").LinkPropsKeys>;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { ISearchFieldProps } from '#core/components/Form/InputSearch/types';
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<ISearchFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ISearchFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
search: (...args: any[]) => void;
|
|
4
|
+
clear: (...args: any[]) => void;
|
|
5
|
+
change: (...args: any[]) => void;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<ISearchFieldProps> & Readonly<{
|
|
7
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {
|
|
3
11
|
clearable: boolean;
|
|
4
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
13
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { ISearchFieldProps } from '#core/components/Form/InputSearch/types';
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<ISearchFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ISearchFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
search: (...args: any[]) => void;
|
|
4
|
+
clear: (...args: any[]) => void;
|
|
5
|
+
change: (...args: any[]) => void;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<ISearchFieldProps> & Readonly<{
|
|
7
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {
|
|
3
11
|
clearable: boolean;
|
|
4
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
13
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { ISelectFieldProps } from '#core/components/Form/InputSelect/types';
|
|
2
|
-
declare const __VLS_export: import("vue").DefineComponent<ISelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ISelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
search: (...args: any[]) => void;
|
|
4
|
+
change: (...args: any[]) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<ISelectFieldProps> & Readonly<{
|
|
6
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {
|
|
3
9
|
clearIcon: string;
|
|
4
10
|
searchInput: {
|
|
5
11
|
placeholder?: string;
|