@finema/core 1.4.147 → 1.4.148

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 (112) hide show
  1. package/dist/module.json +5 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/Core.vue +1 -1
  4. package/dist/runtime/components/Form/InputDateTimeRange/date_range_time_field.types.d.ts +1 -1
  5. package/dist/runtime/components/Form/InputUploadDropzone/types.d.ts +1 -1
  6. package/dist/runtime/components/Form/InputUploadDropzoneAuto/types.d.ts +1 -1
  7. package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/types.d.ts +1 -1
  8. package/dist/runtime/components/Form/InputUploadDropzoneImageAutoMultiple/types.d.ts +1 -1
  9. package/dist/runtime/components/Form/InputUploadFileClassicAuto/types.d.ts +1 -1
  10. package/dist/runtime/components/Form/InputUploadImageAuto/types.d.ts +1 -1
  11. package/dist/runtime/components/Log.vue +0 -1
  12. package/dist/runtime/components/LogItem.vue +1 -1
  13. package/dist/runtime/composables/loaderList.d.ts +2 -2
  14. package/dist/runtime/composables/{loaderList.mjs → loaderList.js} +2 -2
  15. package/dist/runtime/composables/loaderObject.d.ts +1 -1
  16. package/dist/runtime/composables/{loaderObject.mjs → loaderObject.js} +2 -2
  17. package/dist/runtime/composables/loaderPage.d.ts +1 -1
  18. package/dist/runtime/composables/{loaderPage.mjs → loaderPage.js} +3 -3
  19. package/dist/runtime/composables/useConfig.d.ts +1 -1
  20. package/dist/runtime/composables/useForm.d.ts +1 -1
  21. package/dist/runtime/composables/useTable.d.ts +2 -2
  22. package/dist/runtime/composables/{useTable.mjs → useTable.js} +1 -1
  23. package/dist/runtime/composables/{useUpload.mjs → useUpload.js} +1 -1
  24. package/dist/runtime/helpers/{apiListHelper.mjs → apiListHelper.js} +1 -1
  25. package/dist/runtime/helpers/{apiObjectHelper.mjs → apiObjectHelper.js} +1 -1
  26. package/dist/runtime/helpers/apiPageHelper.d.ts +1 -1
  27. package/dist/runtime/helpers/{apiPageHelper.mjs → apiPageHelper.js} +4 -4
  28. package/dist/runtime/ui.config/index.d.ts +16 -16
  29. package/dist/runtime/ui.config/index.js +16 -0
  30. package/dist/runtime/ui.config/{uploadDropzoneImage.mjs → uploadDropzoneImage.js} +1 -1
  31. package/dist/runtime/utils/ArrayHelper.d.ts +1 -1
  32. package/dist/runtime/utils/{ArrayHelper.spec.mjs → ArrayHelper.spec.js} +1 -1
  33. package/dist/runtime/utils/{FileHelper.spec.mjs → FileHelper.spec.js} +1 -1
  34. package/dist/runtime/utils/ObjectHelper.d.ts +2 -2
  35. package/dist/runtime/utils/{ObjectHelper.mjs → ObjectHelper.js} +2 -2
  36. package/dist/runtime/utils/{ObjectHelper.spec.mjs → ObjectHelper.spec.js} +1 -1
  37. package/dist/runtime/utils/ParamHelper.d.ts +1 -1
  38. package/dist/runtime/utils/{ParamHelper.spec.mjs → ParamHelper.spec.js} +1 -1
  39. package/dist/runtime/utils/{StringHelper.spec.mjs → StringHelper.spec.js} +1 -1
  40. package/dist/runtime/utils/{TimeHelper.spec.mjs → TimeHelper.spec.js} +1 -1
  41. package/dist/runtime/utils/{TimeHelper.thai.spec.mjs → TimeHelper.thai.spec.js} +1 -1
  42. package/package.json +12 -13
  43. package/dist/runtime/ui.config/index.mjs +0 -16
  44. /package/dist/runtime/components/Dropdown/{types.mjs → types.js} +0 -0
  45. /package/dist/runtime/components/FlexDeck/{types.mjs → types.js} +0 -0
  46. /package/dist/runtime/components/Form/InputCheckbox/{types.mjs → types.js} +0 -0
  47. /package/dist/runtime/components/Form/InputDateTime/{date_time_field.types.mjs → date_time_field.types.js} +0 -0
  48. /package/dist/runtime/components/Form/InputDateTimeRange/{date_range_time_field.types.mjs → date_range_time_field.types.js} +0 -0
  49. /package/dist/runtime/components/Form/InputNumber/{types.mjs → types.js} +0 -0
  50. /package/dist/runtime/components/Form/InputRadio/{types.mjs → types.js} +0 -0
  51. /package/dist/runtime/components/Form/InputSelect/{types.mjs → types.js} +0 -0
  52. /package/dist/runtime/components/Form/InputSelectMultiple/{types.mjs → types.js} +0 -0
  53. /package/dist/runtime/components/Form/InputStatic/{types.mjs → types.js} +0 -0
  54. /package/dist/runtime/components/Form/InputTags/{types.mjs → types.js} +0 -0
  55. /package/dist/runtime/components/Form/InputText/{types.mjs → types.js} +0 -0
  56. /package/dist/runtime/components/Form/InputTextarea/{types.mjs → types.js} +0 -0
  57. /package/dist/runtime/components/Form/InputToggle/{types.mjs → types.js} +0 -0
  58. /package/dist/runtime/components/Form/InputUploadDropzone/{types.mjs → types.js} +0 -0
  59. /package/dist/runtime/components/Form/InputUploadDropzoneAuto/{types.mjs → types.js} +0 -0
  60. /package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/{types.mjs → types.js} +0 -0
  61. /package/dist/runtime/components/Form/InputUploadDropzoneImageAutoMultiple/{types.mjs → types.js} +0 -0
  62. /package/dist/runtime/components/Form/InputUploadFileClassic/{types.mjs → types.js} +0 -0
  63. /package/dist/runtime/components/Form/InputUploadFileClassicAuto/{types.mjs → types.js} +0 -0
  64. /package/dist/runtime/components/Form/InputUploadImageAuto/{types.mjs → types.js} +0 -0
  65. /package/dist/runtime/components/Form/InputWYSIWYG/{types.mjs → types.js} +0 -0
  66. /package/dist/runtime/components/Form/{types.mjs → types.js} +0 -0
  67. /package/dist/runtime/components/Table/{types.mjs → types.js} +0 -0
  68. /package/dist/runtime/composables/{useApp.mjs → useApp.js} +0 -0
  69. /package/dist/runtime/composables/{useConfig.mjs → useConfig.js} +0 -0
  70. /package/dist/runtime/composables/{useDialog.mjs → useDialog.js} +0 -0
  71. /package/dist/runtime/composables/{useFlexDeck.mjs → useFlexDeck.js} +0 -0
  72. /package/dist/runtime/composables/{useForm.mjs → useForm.js} +0 -0
  73. /package/dist/runtime/composables/{useNotification.mjs → useNotification.js} +0 -0
  74. /package/dist/runtime/composables/{useWatch.mjs → useWatch.js} +0 -0
  75. /package/dist/runtime/{core.config.mjs → core.config.js} +0 -0
  76. /package/dist/runtime/helpers/{componentHelper.mjs → componentHelper.js} +0 -0
  77. /package/dist/runtime/lib/{Requester.mjs → Requester.js} +0 -0
  78. /package/dist/runtime/{plugin.mjs → plugin.js} +0 -0
  79. /package/dist/runtime/{quill.plugin.mjs → quill.plugin.js} +0 -0
  80. /package/dist/runtime/types/{common.mjs → common.js} +0 -0
  81. /package/dist/runtime/types/{config.mjs → config.js} +0 -0
  82. /package/dist/runtime/types/{lib.mjs → lib.js} +0 -0
  83. /package/dist/runtime/ui.config/{alert.mjs → alert.js} +0 -0
  84. /package/dist/runtime/ui.config/{badge.mjs → badge.js} +0 -0
  85. /package/dist/runtime/ui.config/{breadcrumb.mjs → breadcrumb.js} +0 -0
  86. /package/dist/runtime/ui.config/{button.mjs → button.js} +0 -0
  87. /package/dist/runtime/ui.config/{buttonGroup.mjs → buttonGroup.js} +0 -0
  88. /package/dist/runtime/ui.config/{card.mjs → card.js} +0 -0
  89. /package/dist/runtime/ui.config/{checkbox.mjs → checkbox.js} +0 -0
  90. /package/dist/runtime/ui.config/{formGroup.mjs → formGroup.js} +0 -0
  91. /package/dist/runtime/ui.config/{icon.mjs → icon.js} +0 -0
  92. /package/dist/runtime/ui.config/{input.mjs → input.js} +0 -0
  93. /package/dist/runtime/ui.config/{modal.mjs → modal.js} +0 -0
  94. /package/dist/runtime/ui.config/{notification.mjs → notification.js} +0 -0
  95. /package/dist/runtime/ui.config/{pagination.mjs → pagination.js} +0 -0
  96. /package/dist/runtime/ui.config/{select.mjs → select.js} +0 -0
  97. /package/dist/runtime/ui.config/{selectMenu.mjs → selectMenu.js} +0 -0
  98. /package/dist/runtime/ui.config/{slideover.mjs → slideover.js} +0 -0
  99. /package/dist/runtime/ui.config/{table.mjs → table.js} +0 -0
  100. /package/dist/runtime/ui.config/{tabs.mjs → tabs.js} +0 -0
  101. /package/dist/runtime/ui.config/{tags.mjs → tags.js} +0 -0
  102. /package/dist/runtime/ui.config/{textarea.mjs → textarea.js} +0 -0
  103. /package/dist/runtime/ui.config/{toggle.mjs → toggle.js} +0 -0
  104. /package/dist/runtime/ui.config/{uploadFileDropzone.mjs → uploadFileDropzone.js} +0 -0
  105. /package/dist/runtime/ui.config/{uploadFileInputClassicAuto.mjs → uploadFileInputClassicAuto.js} +0 -0
  106. /package/dist/runtime/ui.config/{uploadImage.mjs → uploadImage.js} +0 -0
  107. /package/dist/runtime/utils/{ArrayHelper.mjs → ArrayHelper.js} +0 -0
  108. /package/dist/runtime/utils/{FileHelper.mjs → FileHelper.js} +0 -0
  109. /package/dist/runtime/utils/{ParamHelper.mjs → ParamHelper.js} +0 -0
  110. /package/dist/runtime/utils/{StringHelper.mjs → StringHelper.js} +0 -0
  111. /package/dist/runtime/utils/{TimeHelper.mjs → TimeHelper.js} +0 -0
  112. /package/dist/runtime/utils/{lodash.mjs → lodash.js} +0 -0
package/dist/module.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.147",
3
+ "version": "1.4.148",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
7
+ },
8
+ "builder": {
9
+ "@nuxt/module-builder": "0.7.0",
10
+ "unbuild": "2.0.0"
7
11
  }
8
12
  }
package/dist/module.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
2
 
3
3
  const name = "@finema/core";
4
- const version = "1.4.147";
4
+ const version = "1.4.148";
5
5
 
6
6
  const colors = {
7
7
  black: "#20243E",
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  </template>
25
25
  <script lang="ts" setup>
26
- import { defineProps, ref } from 'vue'
26
+ import { ref } from 'vue'
27
27
 
28
28
  defineProps({
29
29
  color: {
@@ -1,5 +1,5 @@
1
1
  import { type IFormFieldBase, type INPUT_TYPES } from '#core/components/Form/types';
2
- import type { IDateTimeFieldProps } from '../InputDateTime/date_time_field.types';
2
+ import type { IDateTimeFieldProps } from '../InputDateTime/date_time_field.types.js';
3
3
  export interface ITimeOption {
4
4
  hours?: number | string;
5
5
  minutes?: number | string;
@@ -1,4 +1,4 @@
1
- import { type IFieldProps, type IFormFieldBase, type INPUT_TYPES } from '../types';
1
+ import { type IFieldProps, type IFormFieldBase, type INPUT_TYPES } from '../types.js';
2
2
  export interface IUploadDropzoneProps extends IFieldProps {
3
3
  selectFileLabel?: string;
4
4
  selectFileSubLabel?: string;
@@ -1,5 +1,5 @@
1
1
  import { type AxiosRequestConfig } from 'axios';
2
- import { type IFieldProps, type IFormFieldBase, type INPUT_TYPES } from '../types';
2
+ import { type IFieldProps, type IFormFieldBase, type INPUT_TYPES } from '../types.js';
3
3
  export interface IUploadDropzoneAutoProps extends IFieldProps {
4
4
  requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
5
5
  baseURL: string;
@@ -1,5 +1,5 @@
1
1
  import { type AxiosRequestConfig } from 'axios';
2
- import { type IFieldProps, type IFileValue, type IFormFieldBase, type INPUT_TYPES } from '../types';
2
+ import { type IFieldProps, type IFileValue, type IFormFieldBase, type INPUT_TYPES } from '../types.js';
3
3
  export interface IUploadDropzoneAutoMultipleProps extends IFieldProps {
4
4
  requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
5
5
  baseURL: string;
@@ -1,5 +1,5 @@
1
1
  import { type AxiosRequestConfig } from 'axios';
2
- import { type IFieldProps, type IFileValue, type IFormFieldBase, type INPUT_TYPES } from '../types';
2
+ import { type IFieldProps, type IFileValue, type IFormFieldBase, type INPUT_TYPES } from '../types.js';
3
3
  export interface IUploadDropzoneImageAutoMultipleProps extends IFieldProps {
4
4
  requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
5
5
  baseURL: string;
@@ -1,5 +1,5 @@
1
1
  import { type AxiosRequestConfig } from 'axios';
2
- import { type IFieldProps, type IFormFieldBase, type INPUT_TYPES } from '../types';
2
+ import { type IFieldProps, type IFormFieldBase, type INPUT_TYPES } from '../types.js';
3
3
  export interface IUploadFileProps extends IFieldProps {
4
4
  requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
5
5
  baseURL: string;
@@ -1,5 +1,5 @@
1
1
  import { type AxiosRequestConfig } from 'axios';
2
- import { type IFieldProps, type IFormFieldBase, type INPUT_TYPES } from '../types';
2
+ import { type IFieldProps, type IFormFieldBase, type INPUT_TYPES } from '../types.js';
3
3
  export interface IUploadImageAutoProps extends IFieldProps {
4
4
  requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
5
5
  baseURL: string;
@@ -10,7 +10,6 @@
10
10
  </TeleportSafe>
11
11
  </template>
12
12
  <script lang="ts" setup>
13
- import { defineProps } from 'vue'
14
13
  import LogItem from './LogItem.vue'
15
14
 
16
15
  defineProps<{
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  </template>
22
22
  <script lang="ts" setup>
23
- import { defineProps, computed, ref } from 'vue'
23
+ import { computed, ref } from 'vue'
24
24
  import { VCodeBlock } from '@wdns/vue-code-block'
25
25
 
26
26
  const props = defineProps<{
@@ -1,3 +1,3 @@
1
- import { type IListLoaderOptions } from '../helpers/apiListHelper';
2
- import { type IUseListLoader } from '../helpers/apiObjectHelper';
1
+ import { type IListLoaderOptions } from '../helpers/apiListHelper.js';
2
+ import { type IUseListLoader } from '../helpers/apiObjectHelper.js';
3
3
  export declare const useListLoader: <T = any, O = Record<string, any>>(loaderOptions: IListLoaderOptions<T, O>) => IUseListLoader<T, O>;
@@ -1,8 +1,8 @@
1
1
  import { ref } from "vue";
2
- import { ObjectHelper } from "../utils/ObjectHelper.mjs";
2
+ import { ObjectHelper } from "../utils/ObjectHelper.js";
3
3
  import {
4
4
  apiListHelper
5
- } from "../helpers/apiListHelper.mjs";
5
+ } from "../helpers/apiListHelper.js";
6
6
  export const useListLoader = (loaderOptions) => {
7
7
  const status = ref(ObjectHelper.createStatus());
8
8
  const items = ref([]);
@@ -1,2 +1,2 @@
1
- import { type IObjectLoaderOptions, type IUseObjectLoader } from '../helpers/apiObjectHelper';
1
+ import { type IObjectLoaderOptions, type IUseObjectLoader } from '../helpers/apiObjectHelper.js';
2
2
  export declare const useObjectLoader: <T = any, B = any, O = Record<string, any>>(loaderOptions: IObjectLoaderOptions<T, B, O>) => IUseObjectLoader<T, B, O>;
@@ -1,8 +1,8 @@
1
1
  import { ref } from "vue";
2
- import { ObjectHelper } from "../utils/ObjectHelper.mjs";
2
+ import { ObjectHelper } from "../utils/ObjectHelper.js";
3
3
  import {
4
4
  apiObjectHelper
5
- } from "../helpers/apiObjectHelper.mjs";
5
+ } from "../helpers/apiObjectHelper.js";
6
6
  export const useObjectLoader = (loaderOptions) => {
7
7
  const status = ref(ObjectHelper.createStatus());
8
8
  const data = ref(null);
@@ -1,4 +1,4 @@
1
- import { type IPageLoaderOptions, type IUsePageLoader } from '../helpers/apiPageHelper';
1
+ import { type IPageLoaderOptions, type IUsePageLoader } from '../helpers/apiPageHelper.js';
2
2
  export declare const initPageOptions: (options: {
3
3
  limit: number;
4
4
  primary: string;
@@ -1,13 +1,13 @@
1
1
  import { ref } from "vue";
2
- import { ObjectHelper } from "../utils/ObjectHelper.mjs";
2
+ import { ObjectHelper } from "../utils/ObjectHelper.js";
3
3
  import {
4
4
  apiAddHelper,
5
5
  apiDeleteHelper,
6
6
  apiFetchHelper,
7
7
  apiFindHelper,
8
8
  updateHelper
9
- } from "../helpers/apiPageHelper.mjs";
10
- import { useCoreConfig } from "./useConfig.mjs";
9
+ } from "../helpers/apiPageHelper.js";
10
+ import { useCoreConfig } from "./useConfig.js";
11
11
  export const initPageOptions = (options) => ({
12
12
  currentPageCount: 0,
13
13
  currentPage: 1,
@@ -1,3 +1,3 @@
1
- import { type UIComponentList } from '../types/config';
1
+ import { type UIComponentList } from '../types/config.js';
2
2
  export declare const useCoreConfig: () => any;
3
3
  export declare const useUiConfig: <T>(config: object, name: UIComponentList) => any;
@@ -1,6 +1,6 @@
1
1
  import { type ComputedRef } from 'vue';
2
2
  import { type FieldContext, type FieldOptions } from 'vee-validate';
3
- import { type IFieldProps, type IFormField } from '../components/Form/types';
3
+ import { type IFieldProps, type IFormField } from '../components/Form/types.js';
4
4
  interface IFieldContext<TValue> extends FieldContext<TValue> {
5
5
  wrapperProps: ComputedRef<IFieldProps>;
6
6
  }
@@ -1,8 +1,8 @@
1
1
  import { type ComputedRef } from 'vue';
2
2
  import { type Store } from 'pinia';
3
3
  import { type IStatus } from '#imports';
4
- import { type IColumn, type ISimpleTableOptions, type ITableOptions } from '../components/Table/types';
5
- import { type IUsePageLoader } from '../helpers/apiPageHelper';
4
+ import { type IColumn, type ISimpleTableOptions, type ITableOptions } from '../components/Table/types.js';
5
+ import { type IUsePageLoader } from '../helpers/apiPageHelper.js';
6
6
  export interface IUseTable<T = object> {
7
7
  repo: IUsePageLoader<T> | Store<any, any>;
8
8
  columns: () => IColumn[];
@@ -1,6 +1,6 @@
1
1
  import { get } from "@vueuse/core";
2
2
  import { computed, ObjectHelper } from "#imports";
3
- import { useCoreConfig } from "./useConfig.mjs";
3
+ import { useCoreConfig } from "./useConfig.js";
4
4
  export const useTable = (options) => computed(() => {
5
5
  return createTableOptions(
6
6
  options.repo,
@@ -1,4 +1,4 @@
1
- import { useObjectLoader } from "./loaderObject.mjs";
1
+ import { useObjectLoader } from "./loaderObject.js";
2
2
  export const useUploadLoader = (request) => {
3
3
  return useObjectLoader({
4
4
  method: "post",
@@ -1,4 +1,4 @@
1
- import { ObjectHelper } from "../utils/ObjectHelper.mjs";
1
+ import { ObjectHelper } from "../utils/ObjectHelper.js";
2
2
  import { ParamHelper } from "#imports";
3
3
  import { NewRequester } from "#core/lib/Requester";
4
4
  export const apiListHelper = async (state, onUpdateStatus, onUpdateOptions, onUpdateItems, opts) => {
@@ -1,4 +1,4 @@
1
- import { ObjectHelper } from "../utils/ObjectHelper.mjs";
1
+ import { ObjectHelper } from "../utils/ObjectHelper.js";
2
2
  import { ParamHelper } from "#core/utils/ParamHelper";
3
3
  import { NewRequester } from "#core/lib/Requester";
4
4
  export const apiObjectHelper = async (state, onUpdateStatus, onUpdateOptions, onUpdateData, data, opts) => {
@@ -1,4 +1,4 @@
1
- import { type IAPIAddState, type IAPIDeleteState, type IAPIFetchState, type IAPIFindState, type IAPIOptions, type IAPIUpdateState, type IPageOptions, type IStatus } from '../types/lib';
1
+ import { type IAPIAddState, type IAPIDeleteState, type IAPIFetchState, type IAPIFindState, type IAPIOptions, type IAPIUpdateState, type IPageOptions, type IStatus } from '../types/lib.js';
2
2
  import type { AxiosRequestConfig } from 'axios';
3
3
  import type { Ref, UnwrapRef } from 'vue';
4
4
  export interface IPageFetchLoaderOptions<D = Record<string, any>> {
@@ -1,7 +1,7 @@
1
- import { ObjectHelper } from "../utils/ObjectHelper.mjs";
2
- import { ParamHelper } from "../utils/ParamHelper.mjs";
3
- import { NewRequester } from "../lib/Requester.mjs";
4
- import { useCoreConfig } from "../composables/useConfig.mjs";
1
+ import { ObjectHelper } from "../utils/ObjectHelper.js";
2
+ import { ParamHelper } from "../utils/ParamHelper.js";
3
+ import { NewRequester } from "../lib/Requester.js";
4
+ import { useCoreConfig } from "../composables/useConfig.js";
5
5
  import { _findIndex, _get, _shuffle } from "#imports";
6
6
  export const apiAddHelper = async (state, onUpdateStatus, onUpdateOptions, onUpdateData, onUpdateItems, data, opts) => {
7
7
  onUpdateStatus(ObjectHelper.toLoadingStatus(state().status));
@@ -1,16 +1,16 @@
1
- export { table } from './table';
2
- export { pagination } from './pagination';
3
- export { button } from './button';
4
- export { badge } from './badge';
5
- export { buttonGroup } from './buttonGroup';
6
- export { card } from './card';
7
- export { tabs } from './tabs';
8
- export { icon } from './icon';
9
- export { modal } from './modal';
10
- export { slideover } from './slideover';
11
- export { breadcrumb } from './breadcrumb';
12
- export { uploadFileInputClassicAuto } from './uploadFileInputClassicAuto';
13
- export { uploadFileDropzone } from './uploadFileDropzone';
14
- export { uploadFileDropzoneImage } from './uploadDropzoneImage';
15
- export { uploadImage } from './uploadImage';
16
- export { tags } from './tags';
1
+ export { table } from './table.js';
2
+ export { pagination } from './pagination.js';
3
+ export { button } from './button.js';
4
+ export { badge } from './badge.js';
5
+ export { buttonGroup } from './buttonGroup.js';
6
+ export { card } from './card.js';
7
+ export { tabs } from './tabs.js';
8
+ export { icon } from './icon.js';
9
+ export { modal } from './modal.js';
10
+ export { slideover } from './slideover.js';
11
+ export { breadcrumb } from './breadcrumb.js';
12
+ export { uploadFileInputClassicAuto } from './uploadFileInputClassicAuto.js';
13
+ export { uploadFileDropzone } from './uploadFileDropzone.js';
14
+ export { uploadFileDropzoneImage } from './uploadDropzoneImage.js';
15
+ export { uploadImage } from './uploadImage.js';
16
+ export { tags } from './tags.js';
@@ -0,0 +1,16 @@
1
+ export { table } from "./table.js";
2
+ export { pagination } from "./pagination.js";
3
+ export { button } from "./button.js";
4
+ export { badge } from "./badge.js";
5
+ export { buttonGroup } from "./buttonGroup.js";
6
+ export { card } from "./card.js";
7
+ export { tabs } from "./tabs.js";
8
+ export { icon } from "./icon.js";
9
+ export { modal } from "./modal.js";
10
+ export { slideover } from "./slideover.js";
11
+ export { breadcrumb } from "./breadcrumb.js";
12
+ export { uploadFileInputClassicAuto } from "./uploadFileInputClassicAuto.js";
13
+ export { uploadFileDropzone } from "./uploadFileDropzone.js";
14
+ export { uploadFileDropzoneImage } from "./uploadDropzoneImage.js";
15
+ export { uploadImage } from "./uploadImage.js";
16
+ export { tags } from "./tags.js";
@@ -1,4 +1,4 @@
1
- import { uploadFileDropzone } from "./uploadFileDropzone.mjs";
1
+ import { uploadFileDropzone } from "./uploadFileDropzone.js";
2
2
  export const uploadFileDropzoneImage = {
3
3
  ...uploadFileDropzone,
4
4
  imageItemWrapper: "flex w-full flex-wrap gap-4",
@@ -1,4 +1,4 @@
1
- import { type IOption } from '../types/common';
1
+ import { type IOption } from '../types/common.js';
2
2
  export declare class ArrayHelper {
3
3
  static toOptions(data: any[], valueAttr?: string, labelAttr?: string): IOption[];
4
4
  static toArray<T>(value: any): Array<T | any>;
@@ -1,5 +1,5 @@
1
1
  import { describe, test, expect } from "vitest";
2
- import { ArrayHelper } from "./ArrayHelper.mjs";
2
+ import { ArrayHelper } from "./ArrayHelper.js";
3
3
  describe("ArrayHelper", () => {
4
4
  test("toOptions default attr", () => {
5
5
  const data = [
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from "vitest";
2
- import { FileHelper } from "./FileHelper.mjs";
2
+ import { FileHelper } from "./FileHelper.js";
3
3
  describe("FileHelper", () => {
4
4
  describe("dataURLtoFile", () => {
5
5
  it("should convert a data URL to a File", async () => {
@@ -1,6 +1,6 @@
1
1
  import { type AxiosError } from 'axios';
2
- import { type IStatus } from '../types/lib';
3
- import { type IOption } from '../types/common';
2
+ import { type IStatus } from '../types/lib.js';
3
+ import { type IOption } from '../types/common.js';
4
4
  export declare class ObjectHelper {
5
5
  static createOption(value: any, label?: string): IOption;
6
6
  static toOption(data: any, valueAttr?: string, labelAttr?: string): IOption;
@@ -1,6 +1,6 @@
1
- import { ParamHelper } from "./ParamHelper.mjs";
1
+ import { ParamHelper } from "./ParamHelper.js";
2
2
  import { _get } from "#build/imports";
3
- import { _isEmpty } from "./lodash.mjs";
3
+ import { _isEmpty } from "./lodash.js";
4
4
  export class ObjectHelper {
5
5
  static createOption(value, label = "") {
6
6
  return {
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from "vitest";
2
- import { ObjectHelper } from "./ObjectHelper.mjs";
2
+ import { ObjectHelper } from "./ObjectHelper.js";
3
3
  describe("ObjectHelper", () => {
4
4
  describe("createOption", () => {
5
5
  it("should create an option object with the provided value and label", () => {
@@ -1,4 +1,4 @@
1
- import { type IError, type IGetParams } from '../types/common';
1
+ import { type IError, type IGetParams } from '../types/common.js';
2
2
  export declare class ParamHelper {
3
3
  static getParams: (opts: IGetParams, reqOptions: IGetParams) => Record<string, any> | undefined;
4
4
  static getBoolTrue: (bool: any) => boolean;
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from "vitest";
2
- import { ParamHelper } from "./ParamHelper.mjs";
2
+ import { ParamHelper } from "./ParamHelper.js";
3
3
  describe("ParamHelper", () => {
4
4
  describe("getParams", () => {
5
5
  it("should merge params from opts and reqOptions", () => {
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from "vitest";
2
- import { StringHelper } from "./StringHelper.mjs";
2
+ import { StringHelper } from "./StringHelper.js";
3
3
  describe("StringHelper", () => {
4
4
  describe("genString", () => {
5
5
  it("should generate a random string of the specified length", () => {
@@ -1,5 +1,5 @@
1
1
  import { assert, describe, it, vi } from "vitest";
2
- import { TimeHelper } from "./TimeHelper.mjs";
2
+ import { TimeHelper } from "./TimeHelper.js";
3
3
  vi.mock("#core/composables/useConfig", () => ({
4
4
  useCoreConfig: () => ({
5
5
  date_format: "yyyy-MM-dd",
@@ -1,5 +1,5 @@
1
1
  import { assert, describe, it, vi } from "vitest";
2
- import { TimeHelper } from "./TimeHelper.mjs";
2
+ import { TimeHelper } from "./TimeHelper.js";
3
3
  vi.mock("#core/composables/useConfig", () => ({
4
4
  useCoreConfig: () => ({
5
5
  date_format: "yyyy-MM-dd",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.147",
3
+ "version": "1.4.148",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",
@@ -35,22 +35,22 @@
35
35
  "prepare": "husky install"
36
36
  },
37
37
  "dependencies": {
38
- "@nuxt/kit": "^3.11.1",
39
- "@nuxt/ui": "2.15.1",
38
+ "@nuxt/kit": "^3.11.2",
39
+ "@nuxt/ui": "2.15.2",
40
+ "@nuxtjs/tailwindcss": "6.11.4",
40
41
  "@pinia/nuxt": "^0.5.1",
41
42
  "@vee-validate/nuxt": "^4.13.0",
42
43
  "@vee-validate/zod": "^4.13.0",
43
44
  "@vuepic/vue-datepicker": "^8.2.0",
44
45
  "@vueup/vue-quill": "^1.2.0",
45
46
  "@wdns/vue-code-block": "^2.3.2",
46
- "axios": "^1.6.8",
47
+ "axios": "^1.7.2",
47
48
  "date-fns": "^3.3.1",
48
49
  "i18next": "^23.10.1",
49
50
  "maska": "^2.1.11",
50
51
  "nuxt-lodash": "^2.5.3",
51
52
  "nuxt-security": "^1.2.2",
52
53
  "pinia": "^2.1.7",
53
- "prismjs": "^1.29.0",
54
54
  "qrcode.vue": "^3.4.1",
55
55
  "url-join": "^5.0.0",
56
56
  "zod": "^3.23.8",
@@ -58,22 +58,21 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@finema/eslint-config": "^1.2.0",
61
- "@nuxt/devtools": "^1.1.4",
61
+ "@nuxt/devtools": "^1.3.3",
62
62
  "@nuxt/eslint-config": "^0.2.0",
63
- "@nuxt/module-builder": "^0.5.5",
64
- "@nuxt/schema": "^3.11.1",
65
- "@nuxt/test-utils": "^3.12.0",
63
+ "@nuxt/module-builder": "^0.7.0",
64
+ "@nuxt/schema": "^3.11.2",
65
+ "@nuxt/test-utils": "^3.13.1",
66
66
  "@release-it/conventional-changelog": "^8.0.1",
67
67
  "@types/node": "^20.10.17",
68
- "@types/prismjs": "^1",
69
68
  "@types/quill": "^2",
70
- "@vue/test-utils": "^2.4.3",
69
+ "@vue/test-utils": "^2.4.6",
71
70
  "changelogen": "^0.5.5",
72
71
  "eslint": "^8.56.0",
73
72
  "happy-dom": "^13.0.0",
74
73
  "husky": "^9.0.11",
75
74
  "lint-staged": "^15.2.0",
76
- "nuxt": "^3.11.1",
75
+ "nuxt": "^3.11.2",
77
76
  "playwright-core": "^1.42.1",
78
77
  "prettier": "^3.1.1",
79
78
  "release-it": "^17.0.1",
@@ -82,7 +81,7 @@
82
81
  "stylelint-config-prettier-scss": "^1.0.0",
83
82
  "stylelint-config-standard-scss": "^13.0.0",
84
83
  "vitest": "^1.3.1",
85
- "vue": "^3.4.21"
84
+ "vue": "^3.4.27"
86
85
  },
87
86
  "lint-staged": {
88
87
  "*.{ts,vue,tsx,js}": "eslint --fix --cache",
@@ -1,16 +0,0 @@
1
- export { table } from "./table.mjs";
2
- export { pagination } from "./pagination.mjs";
3
- export { button } from "./button.mjs";
4
- export { badge } from "./badge.mjs";
5
- export { buttonGroup } from "./buttonGroup.mjs";
6
- export { card } from "./card.mjs";
7
- export { tabs } from "./tabs.mjs";
8
- export { icon } from "./icon.mjs";
9
- export { modal } from "./modal.mjs";
10
- export { slideover } from "./slideover.mjs";
11
- export { breadcrumb } from "./breadcrumb.mjs";
12
- export { uploadFileInputClassicAuto } from "./uploadFileInputClassicAuto.mjs";
13
- export { uploadFileDropzone } from "./uploadFileDropzone.mjs";
14
- export { uploadFileDropzoneImage } from "./uploadDropzoneImage.mjs";
15
- export { uploadImage } from "./uploadImage.mjs";
16
- export { tags } from "./tags.mjs";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes