@finema/core 3.14.0 → 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.
Files changed (75) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/FlexDeck/index.vue +79 -79
  4. package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
  5. package/dist/runtime/components/Form/Fields.vue +13 -13
  6. package/dist/runtime/components/Form/InputCheckbox/index.d.vue.ts +5 -1
  7. package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
  8. package/dist/runtime/components/Form/InputCheckbox/index.vue.d.ts +5 -1
  9. package/dist/runtime/components/Form/InputCheckboxGroup/index.d.vue.ts +5 -1
  10. package/dist/runtime/components/Form/InputCheckboxGroup/index.vue +21 -21
  11. package/dist/runtime/components/Form/InputCheckboxGroup/index.vue.d.ts +5 -1
  12. package/dist/runtime/components/Form/InputCurrency/index.d.vue.ts +5 -1
  13. package/dist/runtime/components/Form/InputCurrency/index.vue +49 -49
  14. package/dist/runtime/components/Form/InputCurrency/index.vue.d.ts +5 -1
  15. package/dist/runtime/components/Form/InputDateTime/index.d.vue.ts +5 -1
  16. package/dist/runtime/components/Form/InputDateTime/index.vue +155 -158
  17. package/dist/runtime/components/Form/InputDateTime/index.vue.d.ts +5 -1
  18. package/dist/runtime/components/Form/InputDateTimeRange/index.d.vue.ts +5 -1
  19. package/dist/runtime/components/Form/InputDateTimeRange/index.vue +56 -56
  20. package/dist/runtime/components/Form/InputDateTimeRange/index.vue.d.ts +5 -1
  21. package/dist/runtime/components/Form/InputMonth/index.d.vue.ts +5 -1
  22. package/dist/runtime/components/Form/InputMonth/index.vue.d.ts +5 -1
  23. package/dist/runtime/components/Form/InputNumber/index.d.vue.ts +5 -1
  24. package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
  25. package/dist/runtime/components/Form/InputNumber/index.vue.d.ts +5 -1
  26. package/dist/runtime/components/Form/InputSearch/index.d.vue.ts +9 -1
  27. package/dist/runtime/components/Form/InputSearch/index.vue.d.ts +9 -1
  28. package/dist/runtime/components/Form/InputSelect/index.d.vue.ts +7 -1
  29. package/dist/runtime/components/Form/InputSelect/index.vue +46 -46
  30. package/dist/runtime/components/Form/InputSelect/index.vue.d.ts +7 -1
  31. package/dist/runtime/components/Form/InputSelectMultiple/index.d.vue.ts +7 -1
  32. package/dist/runtime/components/Form/InputSelectMultiple/index.vue +62 -62
  33. package/dist/runtime/components/Form/InputSelectMultiple/index.vue.d.ts +7 -1
  34. package/dist/runtime/components/Form/InputTags/index.d.vue.ts +11 -1
  35. package/dist/runtime/components/Form/InputTags/index.vue +54 -54
  36. package/dist/runtime/components/Form/InputTags/index.vue.d.ts +11 -1
  37. package/dist/runtime/components/Form/InputText/index.d.vue.ts +7 -1
  38. package/dist/runtime/components/Form/InputText/index.vue +85 -85
  39. package/dist/runtime/components/Form/InputText/index.vue.d.ts +7 -1
  40. package/dist/runtime/components/Form/InputTextarea/index.d.vue.ts +5 -1
  41. package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
  42. package/dist/runtime/components/Form/InputTextarea/index.vue.d.ts +5 -1
  43. package/dist/runtime/components/Form/InputTime/index.d.vue.ts +5 -1
  44. package/dist/runtime/components/Form/InputTime/index.vue +38 -38
  45. package/dist/runtime/components/Form/InputTime/index.vue.d.ts +5 -1
  46. package/dist/runtime/components/Form/InputToggle/index.d.vue.ts +5 -1
  47. package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
  48. package/dist/runtime/components/Form/InputToggle/index.vue.d.ts +5 -1
  49. package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
  50. package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
  51. package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/index.vue +50 -50
  52. package/dist/runtime/components/Form/InputUploadImageAuto/index.vue +50 -50
  53. package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadNode.vue +18 -18
  54. package/dist/runtime/components/Form/InputWYSIWYG/EditorLinkPopover.vue +65 -65
  55. package/dist/runtime/components/Form/InputWYSIWYG/README.md +96 -96
  56. package/dist/runtime/components/Form/InputWYSIWYG/index.vue +41 -41
  57. package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
  58. package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
  59. package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
  60. package/dist/runtime/components/Form/fileState/MultipleFilesState.vue +75 -75
  61. package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
  62. package/dist/runtime/components/Form/index.vue +5 -5
  63. package/dist/runtime/components/Image.vue +28 -28
  64. package/dist/runtime/components/Log/index.vue +17 -17
  65. package/dist/runtime/components/Table/Base.d.vue.ts +8 -2
  66. package/dist/runtime/components/Table/Base.vue.d.ts +8 -2
  67. package/dist/runtime/components/Table/ColumnDate.vue +1 -1
  68. package/dist/runtime/components/Table/ColumnDateTime.vue +1 -1
  69. package/dist/runtime/components/Table/ColumnImage.vue +4 -4
  70. package/dist/runtime/components/Table/ColumnText.vue +10 -10
  71. package/dist/runtime/components/Table/Pagination.vue +56 -56
  72. package/dist/runtime/components/Table/Simple.vue +16 -16
  73. package/dist/runtime/components/Table/index.vue +30 -30
  74. package/dist/runtime/server/tsconfig.json +3 -3
  75. package/package.json +2 -2
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "3.14.0",
3
+ "version": "3.14.1",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import * as lodash from 'lodash-es';
4
4
  import * as theme from '../dist/runtime/theme/index.js';
5
5
 
6
6
  const name = "@finema/core";
7
- const version = "3.14.0";
7
+ const version = "3.14.1";
8
8
 
9
9
  const nuxtAppOptions = {
10
10
  head: {
@@ -1,83 +1,83 @@
1
1
  <template>
2
- <div>
3
- <div
4
- v-if="options.isEnabledSearch"
5
- class="mb-4 flex justify-end"
6
- >
7
- <Input
8
- v-model="q"
9
- icon="i-heroicons-magnifying-glass"
10
- :placeholder="options.searchPlaceholder || '\u0E04\u0E49\u0E19\u0E2B\u0E32...'"
11
- />
12
- </div>
13
-
14
- <div
15
- v-if="options.pageOptions && options.isEnableInfiniteScroll"
16
- class="mb-4 flex items-center justify-end"
17
- >
18
- <p class="text-xs text-gray-500">
19
- {{ totalInnerRawData }} รายการ จากทั้งหมด {{ totalCountWithComma }} รายการ
20
- </p>
21
- </div>
22
-
23
- <slot
24
- v-if="options.status.isSuccess && options.rawData.length === 0"
25
- name="empty-state"
26
- >
27
- <Empty />
28
- </slot>
29
-
30
- <slot
31
- v-else-if="options.status.isLoading"
32
- name="loading-state"
33
- >
34
- <Loader
35
- :loading="true"
36
- />
37
- </slot>
38
- <slot
39
- v-else-if="options.status.isError"
40
- name="error-state"
41
- >
42
- <div
43
- class="
44
- text-error-400 flex h-[200px] items-center justify-center text-2xl
45
- "
46
- >
47
- {{ StringHelper.getError(options.status.errorData) }}
48
- </div>
49
- </slot>
50
-
51
- <div
52
- v-else
53
- :class="containerClass"
54
- >
55
- <slot
56
- v-for="(row, index) in displayData"
57
- :key="index"
58
- :row="row"
59
- />
60
- <div ref="bottomEdgeElement" />
61
- </div>
62
-
63
- <div
64
- v-if="options.pageOptions && !options.isEnableInfiniteScroll && !options.isHidePagination"
65
- class="mt-4 flex justify-between px-3"
66
- >
67
- <p class="text-xs text-gray-500">
68
- {{ pageBetween }} {{ appConfig.core?.locale === "th" ? "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23 \u0E08\u0E32\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14" : "items of total" }}
69
- {{ totalCountWithComma }} {{ appConfig.core?.locale === "th" ? "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23" : "items" }}
70
- </p>
71
- <Pagination
72
- v-if="options.pageOptions.totalPage > 1"
73
- :to="options.isRouteChange ? to : void 0"
74
- :default-page="options.pageOptions?.currentPage || 1"
75
- :items-per-page="options.pageOptions.limit"
76
- :total="options.pageOptions.totalCount"
77
- @update:page="onPageChange"
78
- />
79
- </div>
80
- </div>
2
+ <div>
3
+ <div
4
+ v-if="options.isEnabledSearch"
5
+ class="mb-4 flex justify-end"
6
+ >
7
+ <Input
8
+ v-model="q"
9
+ icon="i-heroicons-magnifying-glass"
10
+ :placeholder="options.searchPlaceholder || '\u0E04\u0E49\u0E19\u0E2B\u0E32...'"
11
+ />
12
+ </div>
13
+
14
+ <div
15
+ v-if="options.pageOptions && options.isEnableInfiniteScroll"
16
+ class="mb-4 flex items-center justify-end"
17
+ >
18
+ <p class="text-xs text-gray-500">
19
+ {{ totalInnerRawData }} รายการ จากทั้งหมด {{ totalCountWithComma }} รายการ
20
+ </p>
21
+ </div>
22
+
23
+ <slot
24
+ v-if="options.status.isSuccess && options.rawData.length === 0"
25
+ name="empty-state"
26
+ >
27
+ <Empty />
28
+ </slot>
29
+
30
+ <slot
31
+ v-else-if="options.status.isLoading"
32
+ name="loading-state"
33
+ >
34
+ <Loader
35
+ :loading="true"
36
+ />
37
+ </slot>
38
+ <slot
39
+ v-else-if="options.status.isError"
40
+ name="error-state"
41
+ >
42
+ <div
43
+ class="
44
+ text-error-400 flex h-[200px] items-center justify-center text-2xl
45
+ "
46
+ >
47
+ {{ StringHelper.getError(options.status.errorData) }}
48
+ </div>
49
+ </slot>
50
+
51
+ <div
52
+ v-else
53
+ :class="containerClass"
54
+ >
55
+ <slot
56
+ v-for="(row, index) in displayData"
57
+ :key="index"
58
+ :row="row"
59
+ />
60
+ <div ref="bottomEdgeElement" />
61
+ </div>
62
+
63
+ <div
64
+ v-if="options.pageOptions && !options.isEnableInfiniteScroll && !options.isHidePagination"
65
+ class="mt-4 flex justify-between px-3"
66
+ >
67
+ <p class="text-xs text-gray-500">
68
+ {{ pageBetween }} {{ appConfig.core?.locale === "th" ? "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23 \u0E08\u0E32\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14" : "items of total" }}
69
+ {{ totalCountWithComma }} {{ appConfig.core?.locale === "th" ? "\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23" : "items" }}
70
+ </p>
71
+ <Pagination
72
+ v-if="options.pageOptions.totalPage > 1"
73
+ :to="options.isRouteChange ? to : void 0"
74
+ :default-page="options.pageOptions?.currentPage || 1"
75
+ :items-per-page="options.pageOptions.limit"
76
+ :total="options.pageOptions.totalCount"
77
+ @update:page="onPageChange"
78
+ />
79
+ </div>
80
+ </div>
81
81
  </template>
82
82
 
83
83
  <script setup>
@@ -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,4 +1,8 @@
1
1
  import type { ICheckboxFieldProps } from '#core/components/Form/InputCheckbox/types';
2
- declare const __VLS_export: import("vue").DefineComponent<ICheckboxFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const __VLS_export: import("vue").DefineComponent<ICheckboxFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ICheckboxFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
7
  declare const _default: typeof __VLS_export;
4
8
  export default _default;
@@ -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,4 +1,8 @@
1
1
  import type { ICheckboxFieldProps } from '#core/components/Form/InputCheckbox/types';
2
- declare const __VLS_export: import("vue").DefineComponent<ICheckboxFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const __VLS_export: import("vue").DefineComponent<ICheckboxFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ICheckboxFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
7
  declare const _default: typeof __VLS_export;
4
8
  export default _default;
@@ -1,4 +1,8 @@
1
1
  import type { ICheckboxGroupFieldProps } from '#core/components/Form/InputCheckboxGroup/types';
2
- declare const __VLS_export: import("vue").DefineComponent<ICheckboxGroupFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const __VLS_export: import("vue").DefineComponent<ICheckboxGroupFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ICheckboxGroupFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
7
  declare const _default: typeof __VLS_export;
4
8
  export default _default;
@@ -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,4 +1,8 @@
1
1
  import type { ICheckboxGroupFieldProps } from '#core/components/Form/InputCheckboxGroup/types';
2
- declare const __VLS_export: import("vue").DefineComponent<ICheckboxGroupFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const __VLS_export: import("vue").DefineComponent<ICheckboxGroupFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ICheckboxGroupFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
7
  declare const _default: typeof __VLS_export;
4
8
  export default _default;
@@ -1,5 +1,9 @@
1
1
  import type { ICurrencyFieldProps } from '#core/components/Form/InputCurrency/types';
2
- declare const __VLS_export: import("vue").DefineComponent<ICurrencyFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
2
+ declare const __VLS_export: import("vue").DefineComponent<ICurrencyFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ICurrencyFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {
3
7
  step: number;
4
8
  options: import("#core/components/Form/InputCurrency/types").SelectOption[];
5
9
  disableWheelChange: boolean;
@@ -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,5 +1,9 @@
1
1
  import type { ICurrencyFieldProps } from '#core/components/Form/InputCurrency/types';
2
- declare const __VLS_export: import("vue").DefineComponent<ICurrencyFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
2
+ declare const __VLS_export: import("vue").DefineComponent<ICurrencyFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ change: (...args: any[]) => void;
4
+ }, string, import("vue").PublicProps, Readonly<ICurrencyFieldProps> & Readonly<{
5
+ onChange?: ((...args: any[]) => any) | undefined;
6
+ }>, {
3
7
  step: number;
4
8
  options: import("#core/components/Form/InputCurrency/types").SelectOption[];
5
9
  disableWheelChange: boolean;
@@ -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, any, string, import("vue").PublicProps, any, {
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;