@finema/core 2.54.0 → 2.55.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 (124) hide show
  1. package/dist/module.json +2 -2
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/App.d.vue.ts +17 -0
  4. package/dist/runtime/components/App.vue.d.ts +3 -2
  5. package/dist/runtime/components/DevToolsWindow/index.d.vue.ts +3 -0
  6. package/dist/runtime/components/DevToolsWindow/index.vue.d.ts +2 -1
  7. package/dist/runtime/components/Dialog/index.d.vue.ts +11 -0
  8. package/dist/runtime/components/Dialog/index.vue.d.ts +2 -1
  9. package/dist/runtime/components/Empty.d.vue.ts +13 -0
  10. package/dist/runtime/components/Empty.vue.d.ts +2 -1
  11. package/dist/runtime/components/FlexDeck/index.d.vue.ts +46 -0
  12. package/dist/runtime/components/FlexDeck/index.vue.d.ts +4 -3
  13. package/dist/runtime/components/Form/FieldWrapper.d.vue.ts +17 -0
  14. package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
  15. package/dist/runtime/components/Form/FieldWrapper.vue.d.ts +3 -2
  16. package/dist/runtime/components/Form/Fields.d.vue.ts +15 -0
  17. package/dist/runtime/components/Form/Fields.vue +13 -13
  18. package/dist/runtime/components/Form/Fields.vue.d.ts +2 -1
  19. package/dist/runtime/components/Form/InputCheckbox/index.d.vue.ts +8 -0
  20. package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
  21. package/dist/runtime/components/Form/InputCheckbox/index.vue.d.ts +2 -1
  22. package/dist/runtime/components/Form/InputComponent/index.d.vue.ts +4 -0
  23. package/dist/runtime/components/Form/InputComponent/index.vue.d.ts +2 -1
  24. package/dist/runtime/components/Form/InputDateTime/index.d.vue.ts +12 -0
  25. package/dist/runtime/components/Form/InputDateTime/index.vue.d.ts +2 -1
  26. package/dist/runtime/components/Form/InputDateTimeRange/index.d.vue.ts +12 -0
  27. package/dist/runtime/components/Form/InputDateTimeRange/index.vue.d.ts +2 -1
  28. package/dist/runtime/components/Form/InputMonth/index.d.vue.ts +12 -0
  29. package/dist/runtime/components/Form/InputMonth/index.vue +51 -51
  30. package/dist/runtime/components/Form/InputMonth/index.vue.d.ts +2 -1
  31. package/dist/runtime/components/Form/InputNumber/index.d.vue.ts +10 -0
  32. package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
  33. package/dist/runtime/components/Form/InputNumber/index.vue.d.ts +2 -1
  34. package/dist/runtime/components/Form/InputRadio/index.d.vue.ts +12 -0
  35. package/dist/runtime/components/Form/InputRadio/index.vue.d.ts +2 -1
  36. package/dist/runtime/components/Form/InputSearch/index.d.vue.ts +14 -0
  37. package/dist/runtime/components/Form/InputSearch/index.vue.d.ts +2 -1
  38. package/dist/runtime/components/Form/InputSelect/index.d.vue.ts +10 -0
  39. package/dist/runtime/components/Form/InputSelect/index.vue.d.ts +2 -1
  40. package/dist/runtime/components/Form/InputSelectMultiple/index.d.vue.ts +8 -0
  41. package/dist/runtime/components/Form/InputSelectMultiple/index.vue +43 -43
  42. package/dist/runtime/components/Form/InputSelectMultiple/index.vue.d.ts +2 -1
  43. package/dist/runtime/components/Form/InputTags/index.d.vue.ts +12 -0
  44. package/dist/runtime/components/Form/InputTags/index.vue +23 -23
  45. package/dist/runtime/components/Form/InputTags/index.vue.d.ts +2 -1
  46. package/dist/runtime/components/Form/InputText/index.d.vue.ts +12 -0
  47. package/dist/runtime/components/Form/InputText/index.vue.d.ts +2 -1
  48. package/dist/runtime/components/Form/InputTextarea/index.d.vue.ts +8 -0
  49. package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
  50. package/dist/runtime/components/Form/InputTextarea/index.vue.d.ts +2 -1
  51. package/dist/runtime/components/Form/InputTime/index.d.vue.ts +13 -0
  52. package/dist/runtime/components/Form/InputTime/index.vue.d.ts +2 -1
  53. package/dist/runtime/components/Form/InputToggle/index.d.vue.ts +8 -0
  54. package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
  55. package/dist/runtime/components/Form/InputToggle/index.vue.d.ts +2 -1
  56. package/dist/runtime/components/Form/InputUploadDropzone/index.d.vue.ts +13 -0
  57. package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
  58. package/dist/runtime/components/Form/InputUploadDropzone/index.vue.d.ts +2 -1
  59. package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.d.vue.ts +25 -0
  60. package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
  61. package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue.d.ts +2 -1
  62. package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.d.vue.ts +12 -0
  63. package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.vue.d.ts +2 -1
  64. package/dist/runtime/components/Form/InputWYSIWYG/index.d.vue.ts +7 -0
  65. package/dist/runtime/components/Form/InputWYSIWYG/index.vue.d.ts +2 -1
  66. package/dist/runtime/components/Form/fileState/EmptyState.d.vue.ts +13 -0
  67. package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
  68. package/dist/runtime/components/Form/fileState/EmptyState.vue.d.ts +2 -1
  69. package/dist/runtime/components/Form/fileState/FailedState.d.vue.ts +15 -0
  70. package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
  71. package/dist/runtime/components/Form/fileState/FailedState.vue.d.ts +2 -1
  72. package/dist/runtime/components/Form/fileState/LoadingState.d.vue.ts +9 -0
  73. package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
  74. package/dist/runtime/components/Form/fileState/LoadingState.vue.d.ts +2 -1
  75. package/dist/runtime/components/Form/fileState/PreviewModal.d.vue.ts +11 -0
  76. package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
  77. package/dist/runtime/components/Form/fileState/PreviewModal.vue.d.ts +2 -1
  78. package/dist/runtime/components/Form/fileState/SuccessState.d.vue.ts +18 -0
  79. package/dist/runtime/components/Form/fileState/SuccessState.vue.d.ts +2 -1
  80. package/dist/runtime/components/Form/index.d.vue.ts +13 -0
  81. package/dist/runtime/components/Form/index.vue +5 -5
  82. package/dist/runtime/components/Form/index.vue.d.ts +3 -2
  83. package/dist/runtime/components/Image.d.vue.ts +14 -0
  84. package/dist/runtime/components/Image.vue +28 -28
  85. package/dist/runtime/components/Image.vue.d.ts +3 -2
  86. package/dist/runtime/components/Loader.d.vue.ts +22 -0
  87. package/dist/runtime/components/Loader.vue.d.ts +3 -2
  88. package/dist/runtime/components/Log/LogItem.d.vue.ts +7 -0
  89. package/dist/runtime/components/Log/LogItem.vue.d.ts +2 -1
  90. package/dist/runtime/components/Log/index.d.vue.ts +8 -0
  91. package/dist/runtime/components/Log/index.vue +17 -17
  92. package/dist/runtime/components/Log/index.vue.d.ts +2 -1
  93. package/dist/runtime/components/Table/Base.d.vue.ts +31 -0
  94. package/dist/runtime/components/Table/Base.vue +2 -1
  95. package/dist/runtime/components/Table/Base.vue.d.ts +3 -2
  96. package/dist/runtime/components/Table/ColumnDate.d.vue.ts +9 -0
  97. package/dist/runtime/components/Table/ColumnDate.vue +2 -2
  98. package/dist/runtime/components/Table/ColumnDate.vue.d.ts +2 -1
  99. package/dist/runtime/components/Table/ColumnDateTime.d.vue.ts +9 -0
  100. package/dist/runtime/components/Table/ColumnDateTime.vue +2 -2
  101. package/dist/runtime/components/Table/ColumnDateTime.vue.d.ts +2 -1
  102. package/dist/runtime/components/Table/ColumnImage.d.vue.ts +9 -0
  103. package/dist/runtime/components/Table/ColumnImage.vue +5 -5
  104. package/dist/runtime/components/Table/ColumnImage.vue.d.ts +2 -1
  105. package/dist/runtime/components/Table/ColumnNumber.d.vue.ts +9 -0
  106. package/dist/runtime/components/Table/ColumnNumber.vue +1 -1
  107. package/dist/runtime/components/Table/ColumnNumber.vue.d.ts +2 -1
  108. package/dist/runtime/components/Table/ColumnText.d.vue.ts +9 -0
  109. package/dist/runtime/components/Table/ColumnText.vue +2 -2
  110. package/dist/runtime/components/Table/ColumnText.vue.d.ts +2 -1
  111. package/dist/runtime/components/Table/Pagination.d.vue.ts +19 -0
  112. package/dist/runtime/components/Table/Pagination.vue +46 -46
  113. package/dist/runtime/components/Table/Pagination.vue.d.ts +2 -1
  114. package/dist/runtime/components/Table/Simple.d.vue.ts +20 -0
  115. package/dist/runtime/components/Table/Simple.vue +17 -17
  116. package/dist/runtime/components/Table/Simple.vue.d.ts +3 -2
  117. package/dist/runtime/components/Table/index.d.vue.ts +26 -0
  118. package/dist/runtime/components/Table/index.vue.d.ts +3 -2
  119. package/dist/runtime/components/TeleportSafe.d.vue.ts +17 -0
  120. package/dist/runtime/components/TeleportSafe.vue.d.ts +3 -2
  121. package/dist/runtime/server/tsconfig.json +3 -3
  122. package/dist/runtime/theme/table.d.ts +6 -0
  123. package/dist/runtime/theme/table.js +8 -2
  124. package/package.json +2 -2
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "2.54.0",
3
+ "version": "2.55.0",
4
4
  "configKey": "core",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
- "unbuild": "3.6.0"
7
+ "unbuild": "3.6.1"
8
8
  }
9
9
  }
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 = "2.54.0";
7
+ const version = "2.55.0";
8
8
 
9
9
  const nuxtAppOptions = {
10
10
  head: {
@@ -0,0 +1,17 @@
1
+ import type { ToasterProps } from '@nuxt/ui';
2
+ type __VLS_Props = {
3
+ toaster?: ToasterProps | null;
4
+ };
5
+ declare var __VLS_11: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_11) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -6,8 +6,9 @@ declare var __VLS_11: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_11) => any;
8
8
  };
9
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
12
13
  type __VLS_WithSlots<T, S> = T & {
13
14
  new (): {
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -0,0 +1,11 @@
1
+ import type { IDialogMetaItem } from '#core/composables/useDialog';
2
+ declare const __VLS_export: import("vue").DefineComponent<IDialogMetaItem, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ close: (args_0: boolean) => any;
4
+ }, string, import("vue").PublicProps, Readonly<IDialogMetaItem> & Readonly<{
5
+ onClose?: ((args_0: boolean) => any) | undefined;
6
+ }>, {
7
+ confirmText: string;
8
+ cancelText: string;
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { IDialogMetaItem } from '#core/composables/useDialog';
2
- declare const _default: import("vue").DefineComponent<IDialogMetaItem, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const __VLS_export: import("vue").DefineComponent<IDialogMetaItem, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  close: (args_0: boolean) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<IDialogMetaItem> & Readonly<{
5
5
  onClose?: ((args_0: boolean) => any) | undefined;
@@ -7,4 +7,5 @@ declare const _default: import("vue").DefineComponent<IDialogMetaItem, void, {},
7
7
  confirmText: string;
8
8
  cancelText: string;
9
9
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
@@ -0,0 +1,13 @@
1
+ import { emptyTheme } from '#core/theme/empty';
2
+ type __VLS_Props = {
3
+ message?: any;
4
+ icon?: string;
5
+ ui?: typeof emptyTheme['slots'];
6
+ class?: any;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ message: any;
10
+ icon: string;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -5,8 +5,9 @@ type __VLS_Props = {
5
5
  ui?: typeof emptyTheme['slots'];
6
6
  class?: any;
7
7
  };
8
- declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
9
  message: any;
10
10
  icon: string;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
12
13
  export default _default;
@@ -0,0 +1,46 @@
1
+ import { type PropType } from 'vue';
2
+ import type { IFlexDeckOptions } from '#core/components/FlexDeck/types';
3
+ type __VLS_Slots = {
4
+ 'default': (props: {
5
+ row: any;
6
+ key?: number | string;
7
+ }) => any;
8
+ 'empty-state': () => any;
9
+ 'loading-state': () => any;
10
+ 'error-state': () => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
+ options: {
14
+ type: PropType<IFlexDeckOptions>;
15
+ required: true;
16
+ };
17
+ containerClass: {
18
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor)[];
19
+ default: string;
20
+ };
21
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
22
+ search: (q: string) => any;
23
+ pageChange: (page: number) => any;
24
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
+ options: {
26
+ type: PropType<IFlexDeckOptions>;
27
+ required: true;
28
+ };
29
+ containerClass: {
30
+ type: (ArrayConstructor | ObjectConstructor | StringConstructor)[];
31
+ default: string;
32
+ };
33
+ }>> & Readonly<{
34
+ onSearch?: ((q: string) => any) | undefined;
35
+ onPageChange?: ((page: number) => any) | undefined;
36
+ }>, {
37
+ containerClass: string | Record<string, any> | unknown[];
38
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
40
+ declare const _default: typeof __VLS_export;
41
+ export default _default;
42
+ type __VLS_WithSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -9,7 +9,7 @@ type __VLS_Slots = {
9
9
  'loading-state': () => any;
10
10
  'error-state': () => any;
11
11
  };
12
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
13
13
  options: {
14
14
  type: PropType<IFlexDeckOptions>;
15
15
  required: true;
@@ -18,7 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
18
18
  type: (ArrayConstructor | ObjectConstructor | StringConstructor)[];
19
19
  default: string;
20
20
  };
21
- }>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
22
22
  search: (q: string) => any;
23
23
  pageChange: (page: number) => any;
24
24
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -36,7 +36,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
36
36
  }>, {
37
37
  containerClass: string | Record<string, any> | unknown[];
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
39
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
40
+ declare const _default: typeof __VLS_export;
40
41
  export default _default;
41
42
  type __VLS_WithSlots<T, S> = T & {
42
43
  new (): {
@@ -0,0 +1,17 @@
1
+ import type { IFieldProps } from '#core/components/Form/types';
2
+ type __VLS_Props = IFieldProps & {
3
+ containerUi?: any;
4
+ };
5
+ declare var __VLS_7: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_7) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -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>
@@ -6,8 +6,9 @@ declare var __VLS_7: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_7) => any;
8
8
  };
9
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
12
13
  type __VLS_WithSlots<T, S> = T & {
13
14
  new (): {
@@ -0,0 +1,15 @@
1
+ import type { FormContext } from 'vee-validate';
2
+ import { type IFormField } from '#core/components/Form/types';
3
+ import { formTheme } from '#core/theme/form';
4
+ type __VLS_Props = {
5
+ form?: FormContext;
6
+ options: IFormField[];
7
+ orientation?: 'horizontal' | 'vertical';
8
+ class?: any;
9
+ ui?: typeof formTheme['slots'];
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ orientation: "horizontal" | "vertical";
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -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>
@@ -8,7 +8,8 @@ type __VLS_Props = {
8
8
  class?: any;
9
9
  ui?: typeof formTheme['slots'];
10
10
  };
11
- declare const _default: import("vue").DefineComponent<__VLS_Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
12
  orientation: "horizontal" | "vertical";
13
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -0,0 +1,8 @@
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, {
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>;
7
+ declare const _default: typeof __VLS_export;
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,7 +1,8 @@
1
1
  import type { ICheckboxFieldProps } from '#core/components/Form/InputCheckbox/types';
2
- declare const _default: import("vue").DefineComponent<ICheckboxFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const __VLS_export: import("vue").DefineComponent<ICheckboxFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  change: (...args: any[]) => void;
4
4
  }, string, import("vue").PublicProps, Readonly<ICheckboxFieldProps> & Readonly<{
5
5
  onChange?: ((...args: any[]) => any) | undefined;
6
6
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
7
8
  export default _default;
@@ -0,0 +1,4 @@
1
+ import type { IComponentFieldProps } from '#core/components/Form/InputComponent/types';
2
+ declare const __VLS_export: import("vue").DefineComponent<IComponentFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IComponentFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -1,3 +1,4 @@
1
1
  import type { IComponentFieldProps } from '#core/components/Form/InputComponent/types';
2
- declare const _default: import("vue").DefineComponent<IComponentFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IComponentFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const __VLS_export: import("vue").DefineComponent<IComponentFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IComponentFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
3
4
  export default _default;
@@ -0,0 +1,12 @@
1
+ import '@vuepic/vue-datepicker/dist/main.css';
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
+ }>, {
8
+ clearIcon: string;
9
+ teleport: boolean | string | HTMLElement;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -1,6 +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 _default: import("vue").DefineComponent<IDateTimeFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ declare const __VLS_export: import("vue").DefineComponent<IDateTimeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
4
  change: (...args: any[]) => void;
5
5
  }, string, import("vue").PublicProps, Readonly<IDateTimeFieldProps> & Readonly<{
6
6
  onChange?: ((...args: any[]) => any) | undefined;
@@ -8,4 +8,5 @@ declare const _default: import("vue").DefineComponent<IDateTimeFieldProps, void,
8
8
  clearIcon: string;
9
9
  teleport: boolean | string | HTMLElement;
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -0,0 +1,12 @@
1
+ import '@vuepic/vue-datepicker/dist/main.css';
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
+ }>, {
8
+ clearIcon: string;
9
+ teleport: boolean | string | HTMLElement;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -1,6 +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 _default: import("vue").DefineComponent<IDateTimeRangeFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ declare const __VLS_export: import("vue").DefineComponent<IDateTimeRangeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
4
  change: (...args: any[]) => void;
5
5
  }, string, import("vue").PublicProps, Readonly<IDateTimeRangeFieldProps> & Readonly<{
6
6
  onChange?: ((...args: any[]) => any) | undefined;
@@ -8,4 +8,5 @@ declare const _default: import("vue").DefineComponent<IDateTimeRangeFieldProps,
8
8
  clearIcon: string;
9
9
  teleport: boolean | string | HTMLElement;
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -0,0 +1,12 @@
1
+ import '@vuepic/vue-datepicker/dist/main.css';
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
+ }>, {
8
+ clearIcon: string;
9
+ teleport: boolean | string | HTMLElement;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -1,60 +1,60 @@
1
1
  <template>
2
- <FieldWrapper v-bind="wrapperProps">
3
- <Datepicker
4
- :model-value="value"
5
- :teleport="teleport"
6
- :disabled="wrapperProps.disabled"
7
- :cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
8
- :select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
9
- :locale="appConfig.core?.locale"
10
- :format="appConfig.core?.month_format"
11
- month-picker
12
- :placeholder="wrapperProps.placeholder"
13
- :min-date="minDate"
14
- :max-date="maxDate"
15
- :required="wrapperProps.required"
16
- :clearable="true"
17
- :always-clearable="true"
18
- @update:model-value="onInput"
19
- >
20
- <template
21
- v-if="appConfig.core?.is_thai_year"
22
- #year="{ year }"
23
- >
24
- {{ year + 543 }}
25
- </template>
26
- <template
27
- v-if="appConfig.core?.is_thai_year"
28
- #year-overlay-value="{ value }"
29
- >
30
- {{ value + 543 }}
31
- </template>
32
- <template #dp-input>
33
- <Input
34
- :trailing-icon="!wrapperProps.required && value ? void 0 : 'i-heroicons-calendar-days'"
35
- type="text"
36
- :disabled="wrapperProps.disabled"
37
- :model-value="formatDisplay(value)"
38
- :placeholder="wrapperProps.placeholder"
39
- :readonly="true"
2
+ <FieldWrapper v-bind="wrapperProps">
3
+ <Datepicker
4
+ :model-value="value"
5
+ :teleport="teleport"
6
+ :disabled="wrapperProps.disabled"
7
+ :cancel-text="appConfig.core?.locale === 'th' ? '\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01' : 'Cancel'"
8
+ :select-text="appConfig.core?.locale === 'th' ? '\u0E15\u0E01\u0E25\u0E07' : 'Select'"
9
+ :locale="appConfig.core?.locale"
10
+ :format="appConfig.core?.month_format"
11
+ month-picker
12
+ :placeholder="wrapperProps.placeholder"
13
+ :min-date="minDate"
14
+ :max-date="maxDate"
15
+ :required="wrapperProps.required"
16
+ :clearable="true"
17
+ :always-clearable="true"
18
+ @update:model-value="onInput"
19
+ >
20
+ <template
21
+ v-if="appConfig.core?.is_thai_year"
22
+ #year="{ year }"
23
+ >
24
+ {{ year + 543 }}
25
+ </template>
26
+ <template
27
+ v-if="appConfig.core?.is_thai_year"
28
+ #year-overlay-value="{ value }"
29
+ >
30
+ {{ value + 543 }}
31
+ </template>
32
+ <template #dp-input>
33
+ <Input
34
+ :trailing-icon="!wrapperProps.required && value ? void 0 : 'i-heroicons-calendar-days'"
35
+ type="text"
36
+ :disabled="wrapperProps.disabled"
37
+ :model-value="formatDisplay(value)"
38
+ :placeholder="wrapperProps.placeholder"
39
+ :readonly="true"
40
40
  :ui="{
41
41
  base: 'cursor-pointer select-none',
42
42
  trailingIcon: 'cursor-pointer'
43
- }"
44
- />
45
- </template>
46
- <template #clear-icon="{ clear }">
47
- <Icon
48
- v-if="value && !wrapperProps.disabled && !wrapperProps.required"
49
- :name="clearIcon"
43
+ }"
44
+ />
45
+ </template>
46
+ <template #clear-icon="{ clear }">
47
+ <Icon
48
+ v-if="value && !wrapperProps.disabled && !wrapperProps.required"
49
+ :name="clearIcon"
50
50
  :class="theme.clearIcon({
51
51
  class: [ui?.clearIcon]
52
- })"
53
- @click.stop="clear"
54
- />
55
- </template>
56
- </Datepicker>
57
- </FieldWrapper>
52
+ })"
53
+ @click.stop="clear"
54
+ />
55
+ </template>
56
+ </Datepicker>
57
+ </FieldWrapper>
58
58
  </template>
59
59
 
60
60
  <script setup>
@@ -1,6 +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 _default: import("vue").DefineComponent<IMonthFieldProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ declare const __VLS_export: import("vue").DefineComponent<IMonthFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
4
  change: (...args: any[]) => void;
5
5
  }, string, import("vue").PublicProps, Readonly<IMonthFieldProps> & Readonly<{
6
6
  onChange?: ((...args: any[]) => any) | undefined;
@@ -8,4 +8,5 @@ declare const _default: import("vue").DefineComponent<IMonthFieldProps, void, {}
8
8
  clearIcon: string;
9
9
  teleport: boolean | string | HTMLElement;
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -0,0 +1,10 @@
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
+ }>, {
7
+ orientation: "horizontal" | "vertical";
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;