@finema/core 1.4.28 → 1.4.30

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.
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.28",
3
+ "version": "1.4.30",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineNuxtModule, createResolver, installModule, addPlugin, addComponen
2
2
  import 'lodash-es';
3
3
 
4
4
  const name = "@finema/core";
5
- const version = "1.4.28";
5
+ const version = "1.4.30";
6
6
 
7
7
  const colors = {
8
8
  black: "#20243E",
@@ -61,7 +61,7 @@ import i18next from 'i18next'
61
61
 
62
62
  const config = useUiConfig<typeof uploadFileInputClassicAuto>(
63
63
  uploadFileInputClassicAuto,
64
- 'uploadFileInput'
64
+ 'uploadFileInputClassicAuto'
65
65
  )
66
66
 
67
67
  const props = withDefaults(defineProps<IUploadFileProps>(), {})
@@ -86,7 +86,7 @@ const acceptFile = computed(() =>
86
86
  typeof props.accept === 'string' ? props.accept : props.accept?.join(',')
87
87
  )
88
88
 
89
- const { ui } = useUI('breadcrumb', toRef(props, 'ui'), config)
89
+ const { ui } = useUI('uploadFileInputClassicAuto', toRef(props, 'ui'), config)
90
90
 
91
91
  const handleOpenFile = () => {
92
92
  fileInput.value?.click()
@@ -4,7 +4,7 @@ export interface IUploadFileProps extends IFieldProps {
4
4
  requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
5
5
  baseURL: string;
6
6
  };
7
- uploadPathURL: string;
7
+ uploadPathURL?: string;
8
8
  selectFileLabel?: string;
9
9
  accept?: string[] | string;
10
10
  maxSize?: number;
@@ -10,6 +10,6 @@ export interface IUploadRequest {
10
10
  requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
11
11
  baseURL: string;
12
12
  };
13
- pathURL: string;
13
+ pathURL?: string;
14
14
  }
15
15
  export declare const useUploadLoader: (request: IUploadRequest) => import("../helpers/apiObjectHelper").IUseObjectLoader<IUploadData, any, Record<string, any>>;
@@ -2,7 +2,7 @@ import { useObjectLoader } from "./loaderObject.mjs";
2
2
  export const useUploadLoader = (request) => {
3
3
  return useObjectLoader({
4
4
  method: "post",
5
- url: request.pathURL,
5
+ url: request.pathURL || "",
6
6
  getRequestOptions: (_data, opts) => ({
7
7
  ...request.requestOptions,
8
8
  headers: {
@@ -1 +1 @@
1
- export type UIComponentList = 'modal' | 'slideover' | 'dropdown' | 'icon' | 'button' | 'buttonGroup' | 'tabs' | 'card' | 'breadcrumb' | 'badge' | 'input' | 'pagination' | 'notification' | 'uploadFileInput';
1
+ export type UIComponentList = 'modal' | 'slideover' | 'dropdown' | 'icon' | 'button' | 'buttonGroup' | 'tabs' | 'card' | 'breadcrumb' | 'badge' | 'input' | 'pagination' | 'notification' | 'uploadFileInputClassicAuto';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.28",
3
+ "version": "1.4.30",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",