@finema/core 3.11.0 → 3.12.0

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 (76) 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 +1 -5
  7. package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
  8. package/dist/runtime/components/Form/InputCheckbox/index.vue.d.ts +1 -5
  9. package/dist/runtime/components/Form/InputCheckboxGroup/index.d.vue.ts +1 -5
  10. package/dist/runtime/components/Form/InputCheckboxGroup/index.vue +21 -21
  11. package/dist/runtime/components/Form/InputCheckboxGroup/index.vue.d.ts +1 -5
  12. package/dist/runtime/components/Form/InputCurrency/index.d.vue.ts +1 -5
  13. package/dist/runtime/components/Form/InputCurrency/index.vue +49 -49
  14. package/dist/runtime/components/Form/InputCurrency/index.vue.d.ts +1 -5
  15. package/dist/runtime/components/Form/InputDateTime/index.d.vue.ts +1 -5
  16. package/dist/runtime/components/Form/InputDateTime/index.vue +62 -62
  17. package/dist/runtime/components/Form/InputDateTime/index.vue.d.ts +1 -5
  18. package/dist/runtime/components/Form/InputDateTimeRange/index.d.vue.ts +1 -5
  19. package/dist/runtime/components/Form/InputDateTimeRange/index.vue +56 -56
  20. package/dist/runtime/components/Form/InputDateTimeRange/index.vue.d.ts +1 -5
  21. package/dist/runtime/components/Form/InputMonth/index.d.vue.ts +1 -5
  22. package/dist/runtime/components/Form/InputMonth/index.vue.d.ts +1 -5
  23. package/dist/runtime/components/Form/InputNumber/index.d.vue.ts +1 -5
  24. package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
  25. package/dist/runtime/components/Form/InputNumber/index.vue.d.ts +1 -5
  26. package/dist/runtime/components/Form/InputSearch/index.d.vue.ts +1 -9
  27. package/dist/runtime/components/Form/InputSearch/index.vue.d.ts +1 -9
  28. package/dist/runtime/components/Form/InputSelect/index.d.vue.ts +1 -7
  29. package/dist/runtime/components/Form/InputSelect/index.vue +46 -46
  30. package/dist/runtime/components/Form/InputSelect/index.vue.d.ts +1 -7
  31. package/dist/runtime/components/Form/InputSelectMultiple/index.d.vue.ts +1 -7
  32. package/dist/runtime/components/Form/InputSelectMultiple/index.vue +62 -62
  33. package/dist/runtime/components/Form/InputSelectMultiple/index.vue.d.ts +1 -7
  34. package/dist/runtime/components/Form/InputTags/index.d.vue.ts +1 -11
  35. package/dist/runtime/components/Form/InputTags/index.vue +54 -54
  36. package/dist/runtime/components/Form/InputTags/index.vue.d.ts +1 -11
  37. package/dist/runtime/components/Form/InputText/index.d.vue.ts +1 -7
  38. package/dist/runtime/components/Form/InputText/index.vue.d.ts +1 -7
  39. package/dist/runtime/components/Form/InputTextarea/index.d.vue.ts +1 -5
  40. package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
  41. package/dist/runtime/components/Form/InputTextarea/index.vue.d.ts +1 -5
  42. package/dist/runtime/components/Form/InputTime/index.d.vue.ts +1 -5
  43. package/dist/runtime/components/Form/InputTime/index.vue +38 -38
  44. package/dist/runtime/components/Form/InputTime/index.vue.d.ts +1 -5
  45. package/dist/runtime/components/Form/InputToggle/index.d.vue.ts +1 -5
  46. package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
  47. package/dist/runtime/components/Form/InputToggle/index.vue.d.ts +1 -5
  48. package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
  49. package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
  50. package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/index.vue +50 -50
  51. package/dist/runtime/components/Form/InputUploadImageAuto/index.vue +50 -50
  52. package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadNode.vue +18 -18
  53. package/dist/runtime/components/Form/InputWYSIWYG/EditorLinkPopover.vue +65 -65
  54. package/dist/runtime/components/Form/InputWYSIWYG/README.md +96 -96
  55. package/dist/runtime/components/Form/InputWYSIWYG/index.vue +41 -41
  56. package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
  57. package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
  58. package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
  59. package/dist/runtime/components/Form/fileState/MultipleFilesState.vue +75 -75
  60. package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
  61. package/dist/runtime/components/Form/index.vue +5 -5
  62. package/dist/runtime/components/Image.vue +28 -28
  63. package/dist/runtime/components/Log/index.vue +17 -17
  64. package/dist/runtime/components/Table/Base.d.vue.ts +2 -8
  65. package/dist/runtime/components/Table/Base.vue.d.ts +2 -8
  66. package/dist/runtime/components/Table/ColumnDate.vue +1 -1
  67. package/dist/runtime/components/Table/ColumnDateTime.vue +1 -1
  68. package/dist/runtime/components/Table/ColumnImage.vue +4 -4
  69. package/dist/runtime/components/Table/ColumnText.vue +10 -10
  70. package/dist/runtime/components/Table/Pagination.vue +56 -56
  71. package/dist/runtime/components/Table/Simple.vue +16 -16
  72. package/dist/runtime/components/Table/index.d.vue.ts +20 -1
  73. package/dist/runtime/components/Table/index.vue +25 -2
  74. package/dist/runtime/components/Table/index.vue.d.ts +20 -1
  75. package/dist/runtime/server/tsconfig.json +3 -3
  76. package/package.json +1 -1
@@ -1,71 +1,71 @@
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
- v-if="!readMode"
38
- :trailing-icon="innerValue ? void 0 : 'i-heroicons-calendar-days'"
39
- type="text"
40
- :disabled="wrapperProps.disabled"
41
- :model-value="innerValue"
42
- :placeholder="wrapperProps.placeholder"
43
- :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
+ v-if="!readMode"
38
+ :trailing-icon="innerValue ? void 0 : 'i-heroicons-calendar-days'"
39
+ type="text"
40
+ :disabled="wrapperProps.disabled"
41
+ :model-value="innerValue"
42
+ :placeholder="wrapperProps.placeholder"
43
+ :readonly="true"
44
44
  :ui="{
45
45
  base: 'cursor-pointer select-none',
46
46
  trailingIcon: 'cursor-pointer'
47
- }"
48
- />
49
- <div
50
- v-else
51
- class="cursor-pointer p-1 hover:bg-gray-100"
52
- :class="classReadMode"
53
- >
54
- {{ innerValue || "none" }}
55
- </div>
56
- </template>
57
- <template #clear-icon="{ clear }">
58
- <Icon
59
- v-if="clearable"
60
- :name="clearIcon"
47
+ }"
48
+ />
49
+ <div
50
+ v-else
51
+ class="cursor-pointer p-1 hover:bg-gray-100"
52
+ :class="classReadMode"
53
+ >
54
+ {{ innerValue || "none" }}
55
+ </div>
56
+ </template>
57
+ <template #clear-icon="{ clear }">
58
+ <Icon
59
+ v-if="clearable"
60
+ :name="clearIcon"
61
61
  :class="theme.clearIcon({
62
62
  class: [ui?.clearIcon]
63
- })"
64
- @click.stop="clear"
65
- />
66
- </template>
67
- </Datepicker>
68
- </FieldWrapper>
63
+ })"
64
+ @click.stop="clear"
65
+ />
66
+ </template>
67
+ </Datepicker>
68
+ </FieldWrapper>
69
69
  </template>
70
70
 
71
71
  <script setup>
@@ -1,10 +1,6 @@
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, {
4
- change: (...args: any[]) => void;
5
- }, string, import("vue").PublicProps, Readonly<IDateTimeFieldProps> & Readonly<{
6
- onChange?: ((...args: any[]) => any) | undefined;
7
- }>, {
3
+ declare const __VLS_export: import("vue").DefineComponent<IDateTimeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
8
4
  clearable: boolean;
9
5
  clearIcon: string;
10
6
  teleport: boolean | string | HTMLElement;
@@ -1,10 +1,6 @@
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, {
4
- change: (...args: any[]) => void;
5
- }, string, import("vue").PublicProps, Readonly<IDateTimeRangeFieldProps> & Readonly<{
6
- onChange?: ((...args: any[]) => any) | undefined;
7
- }>, {
3
+ declare const __VLS_export: import("vue").DefineComponent<IDateTimeRangeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
8
4
  clearIcon: string;
9
5
  teleport: boolean | string | HTMLElement;
10
6
  }, {}, {}, {}, 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,10 +1,6 @@
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, {
4
- change: (...args: any[]) => void;
5
- }, string, import("vue").PublicProps, Readonly<IDateTimeRangeFieldProps> & Readonly<{
6
- onChange?: ((...args: any[]) => any) | undefined;
7
- }>, {
3
+ declare const __VLS_export: import("vue").DefineComponent<IDateTimeRangeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
8
4
  clearIcon: string;
9
5
  teleport: boolean | string | HTMLElement;
10
6
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,10 +1,6 @@
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, {
4
- change: (...args: any[]) => void;
5
- }, string, import("vue").PublicProps, Readonly<IMonthFieldProps> & Readonly<{
6
- onChange?: ((...args: any[]) => any) | undefined;
7
- }>, {
3
+ declare const __VLS_export: import("vue").DefineComponent<IMonthFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
8
4
  clearIcon: string;
9
5
  teleport: boolean | string | HTMLElement;
10
6
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,10 +1,6 @@
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, {
4
- change: (...args: any[]) => void;
5
- }, string, import("vue").PublicProps, Readonly<IMonthFieldProps> & Readonly<{
6
- onChange?: ((...args: any[]) => any) | undefined;
7
- }>, {
3
+ declare const __VLS_export: import("vue").DefineComponent<IMonthFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
8
4
  clearIcon: string;
9
5
  teleport: boolean | string | HTMLElement;
10
6
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,9 +1,5 @@
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, {
3
- change: (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<INumberFieldProps> & Readonly<{
5
- onChange?: ((...args: any[]) => any) | undefined;
6
- }>, {
2
+ declare const __VLS_export: import("vue").DefineComponent<INumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
7
3
  orientation: "horizontal" | "vertical";
8
4
  increment: boolean | Omit<import("@nuxt/ui").ButtonProps, import("@nuxt/ui").LinkPropsKeys>;
9
5
  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,9 +1,5 @@
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, {
3
- change: (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<INumberFieldProps> & Readonly<{
5
- onChange?: ((...args: any[]) => any) | undefined;
6
- }>, {
2
+ declare const __VLS_export: import("vue").DefineComponent<INumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
7
3
  orientation: "horizontal" | "vertical";
8
4
  increment: boolean | Omit<import("@nuxt/ui").ButtonProps, import("@nuxt/ui").LinkPropsKeys>;
9
5
  decrement: boolean | Omit<import("@nuxt/ui").ButtonProps, import("@nuxt/ui").LinkPropsKeys>;
@@ -1,13 +1,5 @@
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, {
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
- }>, {
2
+ declare const __VLS_export: import("vue").DefineComponent<ISearchFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
11
3
  clearable: boolean;
12
4
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
5
  declare const _default: typeof __VLS_export;
@@ -1,13 +1,5 @@
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, {
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
- }>, {
2
+ declare const __VLS_export: import("vue").DefineComponent<ISearchFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
11
3
  clearable: boolean;
12
4
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
5
  declare const _default: typeof __VLS_export;
@@ -1,11 +1,5 @@
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, {
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
- }>, {
2
+ declare const __VLS_export: import("vue").DefineComponent<ISelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
9
3
  clearIcon: string;
10
4
  searchInput: {
11
5
  placeholder?: string;
@@ -1,56 +1,56 @@
1
1
  <template>
2
- <FieldWrapper v-bind="wrapperProps">
3
- <SelectMenu
4
- :model-value="value"
5
- :items="options"
6
- :placeholder="wrapperProps.placeholder"
7
- :disabled="wrapperProps.disabled"
8
- :loading="loading"
9
- :search-input="searchInput ?? void 0"
10
- :selected-icon="selectedIcon"
11
- value-key="value"
12
- label-key="label"
13
- :icon="icon"
14
- :ui="ui"
15
- :leading-icon="options.find((item) => item.value === value)?.icon"
16
- :avatar="options.find((item) => item.value === value)?.avatar"
17
- @update:modelValue="onChange"
18
- @update:searchTerm="onSearch"
19
- >
20
- <template #default="{ modelValue, ui: selectMenuUi }">
21
- <Chip
22
- v-if="options.find((item) => item.value === modelValue)?.chip"
23
- v-bind="options.find((item) => item.value === modelValue)?.chip"
24
- inset
25
- standalone
26
- :size="selectMenuUi.itemLeadingChipSize()"
27
- :class="selectMenuUi.itemLeadingChip()"
28
- />
29
- <div
30
- v-if="value"
2
+ <FieldWrapper v-bind="wrapperProps">
3
+ <SelectMenu
4
+ :model-value="value"
5
+ :items="options"
6
+ :placeholder="wrapperProps.placeholder"
7
+ :disabled="wrapperProps.disabled"
8
+ :loading="loading"
9
+ :search-input="searchInput ?? void 0"
10
+ :selected-icon="selectedIcon"
11
+ value-key="value"
12
+ label-key="label"
13
+ :icon="icon"
14
+ :ui="ui"
15
+ :leading-icon="options.find((item) => item.value === value)?.icon"
16
+ :avatar="options.find((item) => item.value === value)?.avatar"
17
+ @update:modelValue="onChange"
18
+ @update:searchTerm="onSearch"
19
+ >
20
+ <template #default="{ modelValue, ui: selectMenuUi }">
21
+ <Chip
22
+ v-if="options.find((item) => item.value === modelValue)?.chip"
23
+ v-bind="options.find((item) => item.value === modelValue)?.chip"
24
+ inset
25
+ standalone
26
+ :size="selectMenuUi.itemLeadingChipSize()"
27
+ :class="selectMenuUi.itemLeadingChip()"
28
+ />
29
+ <div
30
+ v-if="value"
31
31
  :class="theme.selectedWrapper({
32
32
  class: [ui?.selectedWrapper]
33
- })"
34
- >
35
- <span
33
+ })"
34
+ >
35
+ <span
36
36
  :class="theme.selectedLabel({
37
37
  class: [ui?.selectedLabel]
38
- })"
39
- >
40
- {{ options.find((item) => item.value === modelValue)?.label || modelValue }}
41
- </span>
42
- <Icon
43
- v-if="clearable"
44
- :name="clearIcon"
38
+ })"
39
+ >
40
+ {{ options.find((item) => item.value === modelValue)?.label || modelValue }}
41
+ </span>
42
+ <Icon
43
+ v-if="clearable"
44
+ :name="clearIcon"
45
45
  :class="theme.clearIcon({
46
46
  class: [ui?.clearIcon]
47
- })"
48
- @click.stop="onChange(void 0)"
49
- />
50
- </div>
51
- </template>
52
- </SelectMenu>
53
- </FieldWrapper>
47
+ })"
48
+ @click.stop="onChange(void 0)"
49
+ />
50
+ </div>
51
+ </template>
52
+ </SelectMenu>
53
+ </FieldWrapper>
54
54
  </template>
55
55
 
56
56
  <script setup>
@@ -1,11 +1,5 @@
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, {
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
- }>, {
2
+ declare const __VLS_export: import("vue").DefineComponent<ISelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
9
3
  clearIcon: string;
10
4
  searchInput: {
11
5
  placeholder?: string;
@@ -1,11 +1,5 @@
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, {
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
- }>, {
2
+ declare const __VLS_export: import("vue").DefineComponent<ISelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
9
3
  clearIcon: string;
10
4
  searchInput: {
11
5
  placeholder?: string;