@finema/core 3.7.1 → 3.8.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 (52) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +7 -2
  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.vue +18 -18
  7. package/dist/runtime/components/Form/InputCheckboxGroup/index.vue +21 -21
  8. package/dist/runtime/components/Form/InputCurrency/index.vue +49 -49
  9. package/dist/runtime/components/Form/InputDateTime/index.vue +62 -62
  10. package/dist/runtime/components/Form/InputDateTimeRange/index.vue +56 -56
  11. package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
  12. package/dist/runtime/components/Form/InputSelect/index.vue +46 -46
  13. package/dist/runtime/components/Form/InputSelectMultiple/index.vue +62 -62
  14. package/dist/runtime/components/Form/InputTags/index.vue +54 -54
  15. package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
  16. package/dist/runtime/components/Form/InputTime/index.vue +38 -38
  17. package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
  18. package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
  19. package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
  20. package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/index.vue +50 -50
  21. package/dist/runtime/components/Form/InputUploadImageAuto/index.vue +50 -50
  22. package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadExtension.d.ts +9 -0
  23. package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadExtension.js +38 -0
  24. package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadNode.d.vue.ts +4 -0
  25. package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadNode.vue +104 -0
  26. package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadNode.vue.d.ts +4 -0
  27. package/dist/runtime/components/Form/InputWYSIWYG/EditorLinkPopover.d.vue.ts +8 -0
  28. package/dist/runtime/components/Form/InputWYSIWYG/EditorLinkPopover.vue +147 -0
  29. package/dist/runtime/components/Form/InputWYSIWYG/EditorLinkPopover.vue.d.ts +8 -0
  30. package/dist/runtime/components/Form/InputWYSIWYG/index.d.vue.ts +14 -2
  31. package/dist/runtime/components/Form/InputWYSIWYG/index.vue +309 -210
  32. package/dist/runtime/components/Form/InputWYSIWYG/index.vue.d.ts +14 -2
  33. package/dist/runtime/components/Form/InputWYSIWYG/types.d.ts +12 -52
  34. package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
  35. package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
  36. package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
  37. package/dist/runtime/components/Form/fileState/MultipleFilesState.vue +75 -75
  38. package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
  39. package/dist/runtime/components/Form/index.vue +5 -5
  40. package/dist/runtime/components/Image.vue +28 -28
  41. package/dist/runtime/components/Log/index.vue +17 -17
  42. package/dist/runtime/components/Table/ColumnDate.vue +1 -1
  43. package/dist/runtime/components/Table/ColumnDateTime.vue +1 -1
  44. package/dist/runtime/components/Table/ColumnImage.vue +4 -4
  45. package/dist/runtime/components/Table/ColumnText.vue +1 -1
  46. package/dist/runtime/components/Table/Pagination.vue +46 -46
  47. package/dist/runtime/components/Table/Simple.vue +16 -16
  48. package/dist/runtime/server/tsconfig.json +3 -3
  49. package/package.json +3 -11
  50. package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.d.vue.ts +0 -12
  51. package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.vue +0 -38
  52. package/dist/runtime/components/Form/InputWYSIWYG/UploadImageForm.vue.d.ts +0 -12
@@ -1,25 +1,25 @@
1
1
  <template>
2
- <Base
3
- v-bind="$attrs"
2
+ <Base
3
+ v-bind="$attrs"
4
4
  :options="{
5
5
  ...options,
6
6
  pageOptions,
7
7
  isHideLimitSelect: true,
8
8
  rawData: itemsByPage
9
- }"
10
- :ui="ui"
11
- @page-change="onPageChange"
12
- >
13
- <template
14
- v-for="(_, slot) of $slots"
15
- #[slot]="slotProps"
16
- >
17
- <slot
18
- :name="slot"
19
- v-bind="slotProps || {}"
20
- />
21
- </template>
22
- </Base>
9
+ }"
10
+ :ui="ui"
11
+ @page-change="onPageChange"
12
+ >
13
+ <template
14
+ v-for="(_, slot) of $slots"
15
+ #[slot]="slotProps"
16
+ >
17
+ <slot
18
+ :name="slot"
19
+ v-bind="slotProps || {}"
20
+ />
21
+ </template>
22
+ </Base>
23
23
  </template>
24
24
 
25
25
  <script setup>
@@ -1,3 +1,3 @@
1
- {
2
- "extends": "../../../.nuxt/tsconfig.server.json",
3
- }
1
+ {
2
+ "extends": "../../../.nuxt/tsconfig.server.json",
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "3.7.1",
3
+ "version": "3.8.0",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",
@@ -47,15 +47,7 @@
47
47
  "@nuxt/ui": "^4.4.0",
48
48
  "@pinia/nuxt": "^0.11.0",
49
49
  "@tailwindcss/typography": "^0.5.0-alpha.3",
50
- "@tiptap/extension-image": "^3.0.7",
51
- "@tiptap/extension-link": "^3.0.7",
52
- "@tiptap/extension-text-align": "^3.0.7",
53
- "@tiptap/extension-text-style": "^3.0.7",
54
- "@tiptap/extension-underline": "^3.0.7",
55
- "@tiptap/extension-youtube": "^3.0.7",
56
- "@tiptap/pm": "^3.0.7",
57
- "@tiptap/starter-kit": "^3.0.7",
58
- "@tiptap/vue-3": "^3.0.7",
50
+ "@tiptap/extension-text-align": "^3.18.0",
59
51
  "@vee-validate/nuxt": "^4.15.1",
60
52
  "@vee-validate/valibot": "^4.15.1",
61
53
  "@vuepic/vue-datepicker": "^11.0.2",
@@ -91,4 +83,4 @@
91
83
  "lint-staged": {
92
84
  "*": "eslint"
93
85
  }
94
- }
86
+ }
@@ -1,12 +0,0 @@
1
- interface Props {
2
- options?: {
3
- requestOptions?: any;
4
- };
5
- }
6
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- submit: (url: string) => any;
8
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
- onSubmit?: ((url: string) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
@@ -1,38 +0,0 @@
1
- <template>
2
- <div class="upload-image-form">
3
- <input
4
- ref="fileInput"
5
- type="file"
6
- accept="image/*"
7
- @change="handleFileSelect"
8
- />
9
- <button
10
- type="button"
11
- @click="handleUpload"
12
- >
13
- Upload
14
- </button>
15
- </div>
16
- </template>
17
-
18
- <script setup>
19
- import { ref } from "vue";
20
- const emit = defineEmits(["submit"]);
21
- const props = defineProps({
22
- options: { type: Object, required: false }
23
- });
24
- const fileInput = ref();
25
- const selectedFile = ref(null);
26
- const handleFileSelect = (event) => {
27
- const target = event.target;
28
- const file = target.files?.[0];
29
- if (file) {
30
- selectedFile.value = file;
31
- }
32
- };
33
- const handleUpload = async () => {
34
- if (!selectedFile.value) return;
35
- const url = URL.createObjectURL(selectedFile.value);
36
- emit("submit", url);
37
- };
38
- </script>
@@ -1,12 +0,0 @@
1
- interface Props {
2
- options?: {
3
- requestOptions?: any;
4
- };
5
- }
6
- declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- submit: (url: string) => any;
8
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
- onSubmit?: ((url: string) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;