@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
@@ -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 ? void 0 : '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' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
45
- :select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
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
- isShowModal = false"
72
- >
73
- {{ appConfig.core?.locale === "th" ? "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01" : "Cancel" }}
74
- </Button> <Button
75
- @click="selectDate;
76
- isShowModal = false"
77
- >
78
- {{ appConfig.core?.locale === "th" ? "\u0E15\u0E01\u0E25\u0E07" : "Select" }}
79
- </Button>
80
- </div>
81
- </div>
82
- </template>
83
- <template
84
- v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
85
- #year="{ value }"
86
- >
87
- {{ value + 543 }}
88
- </template>
89
- <template
90
- v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
91
- #year-overlay-value="{ value }"
92
- >
93
- {{ value + 543 }}
94
- </template>
95
- </Datepicker>
96
- </template>
97
- </Drawer>
98
- <Datepicker
99
- v-else
100
- :model-value="innerValue"
101
- :disabled="wrapperProps.disabled"
102
- :cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
103
- :select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
104
- :locale="appConfig.core?.locale"
105
- :enable-time-picker="!disabledTime"
106
- :placeholder="wrapperProps.placeholder"
107
- :format="format"
108
- :min-date="minDate"
109
- :max-date="maxDate"
110
- :min-time="minTime"
111
- :max-time="maxTime"
112
- :six-weeks="true"
113
- :start-time="startTime"
114
- :teleport="teleport"
115
- :required="required"
116
- :flow="['calendar', 'time']"
117
- @update:model-value="onInput"
118
- >
119
- <template
120
- v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
121
- #year="{ value }"
122
- >
123
- {{ value + 543 }}
124
- </template>
125
- <template
126
- v-if="appConfig.core?.locale === 'th' && appConfig.core?.is_thai_year"
127
- #year-overlay-value="{ value }"
128
- >
129
- {{ value + 543 }}
130
- </template>
131
- <template #dp-input="{ value: innerValue }">
132
- <Input
133
- v-if="!readMode"
134
- :trailing-icon="innerValue ? void 0 : 'i-heroicons-calendar-days'"
135
- type="text"
136
- :disabled="wrapperProps.disabled"
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, 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;
@@ -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, any, string, import("vue").PublicProps, any, {
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, any, string, import("vue").PublicProps, any, {
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, any, string, import("vue").PublicProps, any, {
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, any, string, import("vue").PublicProps, any, {
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, any, string, import("vue").PublicProps, any, {
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, any, string, import("vue").PublicProps, any, {
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, any, string, import("vue").PublicProps, any, {
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, any, string, import("vue").PublicProps, any, {
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, any, string, import("vue").PublicProps, any, {
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;