@finema/core 3.5.1 → 3.5.2
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/Form/FieldWrapper.vue +13 -13
- package/dist/runtime/components/Form/Fields.vue +13 -13
- package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
- package/dist/runtime/components/Form/InputCheckboxGroup/index.vue +21 -21
- package/dist/runtime/components/Form/InputCurrency/index.vue +49 -49
- package/dist/runtime/components/Form/InputDateTime/index.vue +53 -53
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue +56 -56
- package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
- package/dist/runtime/components/Form/InputSelect/index.vue +46 -46
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +62 -62
- package/dist/runtime/components/Form/InputTags/index.vue +54 -54
- package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
- package/dist/runtime/components/Form/InputTime/index.vue +38 -38
- package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
- 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/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/fileState/useUploadStateMultiple.js +2 -2
- 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/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 +1 -1
- package/dist/runtime/components/Table/Pagination.vue +46 -46
- package/dist/runtime/components/Table/Simple.vue +17 -17
- package/dist/runtime/server/tsconfig.json +3 -3
- package/package.json +2 -2
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FormField
|
|
3
|
-
:label="label"
|
|
4
|
-
:name="name"
|
|
5
|
-
:description="description"
|
|
6
|
-
:hint="hint"
|
|
7
|
-
:data-testid="name"
|
|
8
|
-
:help="help"
|
|
9
|
-
:error="errorMessage"
|
|
10
|
-
:required="!!required"
|
|
11
|
-
:ui="containerUi"
|
|
12
|
-
>
|
|
13
|
-
<slot />
|
|
14
|
-
</FormField>
|
|
2
|
+
<FormField
|
|
3
|
+
:label="label"
|
|
4
|
+
:name="name"
|
|
5
|
+
:description="description"
|
|
6
|
+
:hint="hint"
|
|
7
|
+
:data-testid="name"
|
|
8
|
+
:help="help"
|
|
9
|
+
:error="errorMessage"
|
|
10
|
+
:required="!!required"
|
|
11
|
+
:ui="containerUi"
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</FormField>
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<script setup>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
3
|
:class="[theme.base({
|
|
4
4
|
class: [$props.class, ui?.base]
|
|
5
|
-
})]"
|
|
6
|
-
>
|
|
7
|
-
<component
|
|
8
|
-
:is="componentMap[option.type]?.component"
|
|
9
|
-
v-for="option in options.filter((item) => !item.isHide)"
|
|
10
|
-
:key="option.props.name"
|
|
11
|
-
:class="option.class"
|
|
12
|
-
:form="form"
|
|
5
|
+
})]"
|
|
6
|
+
>
|
|
7
|
+
<component
|
|
8
|
+
:is="componentMap[option.type]?.component"
|
|
9
|
+
v-for="option in options.filter((item) => !item.isHide)"
|
|
10
|
+
:key="option.props.name"
|
|
11
|
+
:class="option.class"
|
|
12
|
+
:form="form"
|
|
13
13
|
v-bind="{
|
|
14
14
|
...getFieldBinding(option),
|
|
15
15
|
...componentMap[option.type]?.props
|
|
16
|
-
}"
|
|
17
|
-
v-on="option.on ?? {}"
|
|
18
|
-
/>
|
|
19
|
-
</div>
|
|
16
|
+
}"
|
|
17
|
+
v-on="option.on ?? {}"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script setup>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper
|
|
3
|
-
v-bind="wrapperProps"
|
|
4
|
-
label=""
|
|
5
|
-
description=""
|
|
6
|
-
>
|
|
7
|
-
<Checkbox
|
|
8
|
-
:model-value="value"
|
|
9
|
-
:disabled="wrapperProps.disabled"
|
|
10
|
-
:name="name"
|
|
11
|
-
:label="label"
|
|
12
|
-
:description="description"
|
|
13
|
-
:required="required"
|
|
14
|
-
:variant="variant"
|
|
15
|
-
:indicator="indicator"
|
|
16
|
-
:ui="ui"
|
|
17
|
-
@update:modelValue="onChange"
|
|
18
|
-
/>
|
|
19
|
-
</FieldWrapper>
|
|
2
|
+
<FieldWrapper
|
|
3
|
+
v-bind="wrapperProps"
|
|
4
|
+
label=""
|
|
5
|
+
description=""
|
|
6
|
+
>
|
|
7
|
+
<Checkbox
|
|
8
|
+
:model-value="value"
|
|
9
|
+
:disabled="wrapperProps.disabled"
|
|
10
|
+
:name="name"
|
|
11
|
+
:label="label"
|
|
12
|
+
:description="description"
|
|
13
|
+
:required="required"
|
|
14
|
+
:variant="variant"
|
|
15
|
+
:indicator="indicator"
|
|
16
|
+
:ui="ui"
|
|
17
|
+
@update:modelValue="onChange"
|
|
18
|
+
/>
|
|
19
|
+
</FieldWrapper>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script setup>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper
|
|
3
|
-
v-bind="wrapperProps"
|
|
4
|
-
label=""
|
|
5
|
-
description=""
|
|
6
|
-
>
|
|
7
|
-
<CheckboxGroup
|
|
8
|
-
:model-value="value"
|
|
9
|
-
:disabled="wrapperProps.disabled"
|
|
10
|
-
:name="name"
|
|
11
|
-
:label="label"
|
|
12
|
-
:items="options"
|
|
13
|
-
:description="description"
|
|
14
|
-
:required="required"
|
|
15
|
-
:variant="variant"
|
|
16
|
-
:indicator="indicator"
|
|
17
|
-
:value-key="valueKey"
|
|
18
|
-
:orientation="orientation"
|
|
19
|
-
:ui="ui"
|
|
20
|
-
@update:model-value="onChange"
|
|
21
|
-
/>
|
|
22
|
-
</FieldWrapper>
|
|
2
|
+
<FieldWrapper
|
|
3
|
+
v-bind="wrapperProps"
|
|
4
|
+
label=""
|
|
5
|
+
description=""
|
|
6
|
+
>
|
|
7
|
+
<CheckboxGroup
|
|
8
|
+
:model-value="value"
|
|
9
|
+
:disabled="wrapperProps.disabled"
|
|
10
|
+
:name="name"
|
|
11
|
+
:label="label"
|
|
12
|
+
:items="options"
|
|
13
|
+
:description="description"
|
|
14
|
+
:required="required"
|
|
15
|
+
:variant="variant"
|
|
16
|
+
:indicator="indicator"
|
|
17
|
+
:value-key="valueKey"
|
|
18
|
+
:orientation="orientation"
|
|
19
|
+
:ui="ui"
|
|
20
|
+
@update:model-value="onChange"
|
|
21
|
+
/>
|
|
22
|
+
</FieldWrapper>
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script setup>
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper
|
|
3
|
-
v-bind="wrapperProps"
|
|
4
|
-
:error-message="undefined"
|
|
5
|
-
>
|
|
6
|
-
<div
|
|
2
|
+
<FieldWrapper
|
|
3
|
+
v-bind="wrapperProps"
|
|
4
|
+
:error-message="undefined"
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
7
|
:class="['inline-flex w-full items-center -space-x-px rounded-lg ring-1', {
|
|
8
8
|
'ring-error': wrapperProps.errorMessage,
|
|
9
9
|
'ring-gray-300': !wrapperProps.errorMessage
|
|
10
|
-
}]"
|
|
11
|
-
>
|
|
12
|
-
<p class="pl-3 text-lg">
|
|
13
|
-
{{ currencySymbol }}
|
|
14
|
-
</p>
|
|
15
|
-
<InputNumber
|
|
16
|
-
:model-value="value.value"
|
|
17
|
-
:disabled="wrapperProps.disabled"
|
|
18
|
-
:name="name"
|
|
19
|
-
:placeholder="wrapperProps.placeholder"
|
|
20
|
-
:autofocus="!!autoFocus"
|
|
21
|
-
:readonly="readonly"
|
|
22
|
-
:min="min"
|
|
23
|
-
:max="max"
|
|
24
|
-
:step="step"
|
|
25
|
-
:format-options="formatOptions"
|
|
26
|
-
:increment="false"
|
|
27
|
-
:decrement="false"
|
|
28
|
-
variant="none"
|
|
29
|
-
@update:model-value="onAmountChange"
|
|
30
|
-
/>
|
|
31
|
-
<Select
|
|
32
|
-
:model-value="value.currency"
|
|
33
|
-
:items="options"
|
|
34
|
-
:disabled="wrapperProps.disabled"
|
|
35
|
-
value-key="value"
|
|
36
|
-
label-key="label"
|
|
37
|
-
variant="none"
|
|
38
|
-
size="xl"
|
|
39
|
-
class="cursor-pointer"
|
|
40
|
-
@update:model-value="onCurrencyChange"
|
|
41
|
-
>
|
|
42
|
-
<template #default="{ modelValue }">
|
|
43
|
-
{{ options.find((item) => item.value === modelValue)?.label || modelValue }}
|
|
44
|
-
</template>
|
|
45
|
-
</Select>
|
|
46
|
-
</div>
|
|
47
|
-
<p
|
|
48
|
-
v-if="wrapperProps.errorMessage"
|
|
49
|
-
class="text-error mt-2"
|
|
50
|
-
>
|
|
51
|
-
{{ wrapperProps.errorMessage }}
|
|
52
|
-
</p>
|
|
53
|
-
</FieldWrapper>
|
|
10
|
+
}]"
|
|
11
|
+
>
|
|
12
|
+
<p class="pl-3 text-lg">
|
|
13
|
+
{{ currencySymbol }}
|
|
14
|
+
</p>
|
|
15
|
+
<InputNumber
|
|
16
|
+
:model-value="value.value"
|
|
17
|
+
:disabled="wrapperProps.disabled"
|
|
18
|
+
:name="name"
|
|
19
|
+
:placeholder="wrapperProps.placeholder"
|
|
20
|
+
:autofocus="!!autoFocus"
|
|
21
|
+
:readonly="readonly"
|
|
22
|
+
:min="min"
|
|
23
|
+
:max="max"
|
|
24
|
+
:step="step"
|
|
25
|
+
:format-options="formatOptions"
|
|
26
|
+
:increment="false"
|
|
27
|
+
:decrement="false"
|
|
28
|
+
variant="none"
|
|
29
|
+
@update:model-value="onAmountChange"
|
|
30
|
+
/>
|
|
31
|
+
<Select
|
|
32
|
+
:model-value="value.currency"
|
|
33
|
+
:items="options"
|
|
34
|
+
:disabled="wrapperProps.disabled"
|
|
35
|
+
value-key="value"
|
|
36
|
+
label-key="label"
|
|
37
|
+
variant="none"
|
|
38
|
+
size="xl"
|
|
39
|
+
class="cursor-pointer"
|
|
40
|
+
@update:model-value="onCurrencyChange"
|
|
41
|
+
>
|
|
42
|
+
<template #default="{ modelValue }">
|
|
43
|
+
{{ options.find((item) => item.value === modelValue)?.label || modelValue }}
|
|
44
|
+
</template>
|
|
45
|
+
</Select>
|
|
46
|
+
</div>
|
|
47
|
+
<p
|
|
48
|
+
v-if="wrapperProps.errorMessage"
|
|
49
|
+
class="text-error mt-2"
|
|
50
|
+
>
|
|
51
|
+
{{ wrapperProps.errorMessage }}
|
|
52
|
+
</p>
|
|
53
|
+
</FieldWrapper>
|
|
54
54
|
</template>
|
|
55
55
|
|
|
56
56
|
<script setup>
|
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<Datepicker
|
|
4
|
-
:model-value="innerValue"
|
|
5
|
-
:disabled="wrapperProps.disabled"
|
|
6
|
-
:cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
|
|
7
|
-
:select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
|
|
8
|
-
:locale="appConfig.core?.locale"
|
|
9
|
-
:enable-time-picker="!disabledTime"
|
|
10
|
-
:placeholder="wrapperProps.placeholder"
|
|
11
|
-
:format="format"
|
|
12
|
-
:min-date="minDate"
|
|
13
|
-
:max-date="maxDate"
|
|
14
|
-
:min-time="minTime"
|
|
15
|
-
:max-time="maxTime"
|
|
16
|
-
:six-weeks="true"
|
|
17
|
-
:start-time="startTime"
|
|
18
|
-
:teleport="teleport"
|
|
19
|
-
:required="required"
|
|
20
|
-
:flow="['calendar', 'time']"
|
|
21
|
-
@update:model-value="onInput"
|
|
22
|
-
>
|
|
23
|
-
<template
|
|
24
|
-
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
25
|
-
#year="{ value }"
|
|
26
|
-
>
|
|
27
|
-
{{ value + 543 }}
|
|
28
|
-
</template>
|
|
29
|
-
<template
|
|
30
|
-
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
31
|
-
#year-overlay-value="{ value }"
|
|
32
|
-
>
|
|
33
|
-
{{ value + 543 }}
|
|
34
|
-
</template>
|
|
35
|
-
<template #dp-input="{ value: innerValue }">
|
|
36
|
-
<Input
|
|
37
|
-
:trailing-icon="innerValue ? void 0 : 'i-heroicons-calendar-days'"
|
|
38
|
-
type="text"
|
|
39
|
-
:disabled="wrapperProps.disabled"
|
|
40
|
-
:model-value="innerValue"
|
|
41
|
-
:placeholder="wrapperProps.placeholder"
|
|
42
|
-
:readonly="true"
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<Datepicker
|
|
4
|
+
:model-value="innerValue"
|
|
5
|
+
:disabled="wrapperProps.disabled"
|
|
6
|
+
:cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
|
|
7
|
+
:select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
|
|
8
|
+
:locale="appConfig.core?.locale"
|
|
9
|
+
:enable-time-picker="!disabledTime"
|
|
10
|
+
:placeholder="wrapperProps.placeholder"
|
|
11
|
+
:format="format"
|
|
12
|
+
:min-date="minDate"
|
|
13
|
+
:max-date="maxDate"
|
|
14
|
+
:min-time="minTime"
|
|
15
|
+
:max-time="maxTime"
|
|
16
|
+
:six-weeks="true"
|
|
17
|
+
:start-time="startTime"
|
|
18
|
+
:teleport="teleport"
|
|
19
|
+
:required="required"
|
|
20
|
+
:flow="['calendar', 'time']"
|
|
21
|
+
@update:model-value="onInput"
|
|
22
|
+
>
|
|
23
|
+
<template
|
|
24
|
+
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
25
|
+
#year="{ value }"
|
|
26
|
+
>
|
|
27
|
+
{{ value + 543 }}
|
|
28
|
+
</template>
|
|
29
|
+
<template
|
|
30
|
+
v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
|
|
31
|
+
#year-overlay-value="{ value }"
|
|
32
|
+
>
|
|
33
|
+
{{ value + 543 }}
|
|
34
|
+
</template>
|
|
35
|
+
<template #dp-input="{ value: innerValue }">
|
|
36
|
+
<Input
|
|
37
|
+
:trailing-icon="innerValue ? void 0 : 'i-heroicons-calendar-days'"
|
|
38
|
+
type="text"
|
|
39
|
+
:disabled="wrapperProps.disabled"
|
|
40
|
+
:model-value="innerValue"
|
|
41
|
+
:placeholder="wrapperProps.placeholder"
|
|
42
|
+
:readonly="true"
|
|
43
43
|
:ui="{
|
|
44
44
|
base: 'cursor-pointer select-none',
|
|
45
45
|
trailingIcon: 'cursor-pointer'
|
|
46
|
-
}"
|
|
47
|
-
/>
|
|
48
|
-
</template>
|
|
49
|
-
<template #clear-icon="{ clear }">
|
|
50
|
-
<Icon
|
|
51
|
-
:name="clearIcon"
|
|
46
|
+
}"
|
|
47
|
+
/>
|
|
48
|
+
</template>
|
|
49
|
+
<template #clear-icon="{ clear }">
|
|
50
|
+
<Icon
|
|
51
|
+
:name="clearIcon"
|
|
52
52
|
:class="theme.clearIcon({
|
|
53
53
|
class: [ui?.clearIcon]
|
|
54
|
-
})"
|
|
55
|
-
@click.stop="clear"
|
|
56
|
-
/>
|
|
57
|
-
</template>
|
|
58
|
-
</Datepicker>
|
|
59
|
-
</FieldWrapper>
|
|
54
|
+
})"
|
|
55
|
+
@click.stop="clear"
|
|
56
|
+
/>
|
|
57
|
+
</template>
|
|
58
|
+
</Datepicker>
|
|
59
|
+
</FieldWrapper>
|
|
60
60
|
</template>
|
|
61
61
|
|
|
62
62
|
<script setup>
|
|
@@ -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,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>
|