@finema/core 1.3.1 → 1.3.3

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.3.1",
3
+ "version": "1.3.3",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -1,10 +1,8 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
- import * as lodash from 'lodash';
2
+ import { merge } from 'lodash-es';
3
3
 
4
4
  const name = "@finema/core";
5
- const version = "1.3.1";
6
-
7
- const _merge = lodash.merge;
5
+ const version = "1.3.3";
8
6
 
9
7
  const colors = {
10
8
  black: "#20243E",
@@ -85,6 +83,8 @@ const ui = {
85
83
  safelistColors: ["secondary"]
86
84
  };
87
85
 
86
+ const _merge = merge;
87
+
88
88
  const module = defineNuxtModule({
89
89
  meta: {
90
90
  name,
@@ -1,4 +1,8 @@
1
- import * as lodash from 'lodash';
1
+ /// <reference types="lodash" />
2
+ /// <reference types="lodash" />
3
+ /// <reference types="lodash" />
4
+ /// <reference types="lodash" />
5
+ /// <reference types="lodash" />
2
6
  export declare const _get: {
3
7
  <TObject extends object, TKey extends keyof TObject>(object: TObject, path: TKey | [TKey]): TObject[TKey];
4
8
  <TObject_1 extends object, TKey_1 extends keyof TObject_1>(object: TObject_1 | null | undefined, path: TKey_1 | [TKey_1]): TObject_1[TKey_1] | undefined;
@@ -12,36 +16,36 @@ export declare const _get: {
12
16
  <TObject_9 extends object, TKey1_6 extends keyof TObject_9, TKey2_6 extends keyof TObject_9[TKey1_6], TKey3_3 extends keyof TObject_9[TKey1_6][TKey2_6], TKey4 extends keyof TObject_9[TKey1_6][TKey2_6][TKey3_3]>(object: TObject_9, path: [TKey1_6, TKey2_6, TKey3_3, TKey4]): TObject_9[TKey1_6][TKey2_6][TKey3_3][TKey4];
13
17
  <TObject_10 extends object, TKey1_7 extends keyof TObject_10, TKey2_7 extends keyof TObject_10[TKey1_7], TKey3_4 extends keyof TObject_10[TKey1_7][TKey2_7], TKey4_1 extends keyof TObject_10[TKey1_7][TKey2_7][TKey3_4]>(object: TObject_10 | null | undefined, path: [TKey1_7, TKey2_7, TKey3_4, TKey4_1]): TObject_10[TKey1_7][TKey2_7][TKey3_4][TKey4_1] | undefined;
14
18
  <TObject_11 extends object, TKey1_8 extends keyof TObject_11, TKey2_8 extends keyof TObject_11[TKey1_8], TKey3_5 extends keyof TObject_11[TKey1_8][TKey2_8], TKey4_2 extends keyof TObject_11[TKey1_8][TKey2_8][TKey3_5], TDefault_3>(object: TObject_11 | null | undefined, path: [TKey1_8, TKey2_8, TKey3_5, TKey4_2], defaultValue: TDefault_3): TDefault_3 | Exclude<TObject_11[TKey1_8][TKey2_8][TKey3_5][TKey4_2], undefined>;
15
- <T>(object: lodash.NumericDictionary<T>, path: number): T;
16
- <T_1>(object: lodash.NumericDictionary<T_1> | null | undefined, path: number): T_1 | undefined;
17
- <T_2, TDefault_4>(object: lodash.NumericDictionary<T_2> | null | undefined, path: number, defaultValue: TDefault_4): T_2 | TDefault_4;
18
- <TDefault_5>(object: null | undefined, path: lodash.PropertyPath, defaultValue: TDefault_5): TDefault_5;
19
- (object: null | undefined, path: lodash.PropertyPath): undefined;
20
- <TObject_12, TPath extends string>(data: TObject_12, path: TPath): string extends TPath ? any : lodash.GetFieldType<TObject_12, TPath>;
21
- <TObject_13, TPath_1 extends string, TDefault_6 = lodash.GetFieldType<TObject_13, TPath_1>>(data: TObject_13, path: TPath_1, defaultValue: TDefault_6): TDefault_6 | Exclude<lodash.GetFieldType<TObject_13, TPath_1>, null | undefined>;
22
- (object: any, path: lodash.PropertyPath, defaultValue?: any): any;
19
+ <T>(object: import("lodash").NumericDictionary<T>, path: number): T;
20
+ <T_1>(object: import("lodash").NumericDictionary<T_1> | null | undefined, path: number): T_1 | undefined;
21
+ <T_2, TDefault_4>(object: import("lodash").NumericDictionary<T_2> | null | undefined, path: number, defaultValue: TDefault_4): T_2 | TDefault_4;
22
+ <TDefault_5>(object: null | undefined, path: import("lodash").PropertyPath, defaultValue: TDefault_5): TDefault_5;
23
+ (object: null | undefined, path: import("lodash").PropertyPath): undefined;
24
+ <TObject_12, TPath extends string>(data: TObject_12, path: TPath): string extends TPath ? any : import("lodash").GetFieldType<TObject_12, TPath>;
25
+ <TObject_13, TPath_1 extends string, TDefault_6 = import("lodash").GetFieldType<TObject_13, TPath_1>>(data: TObject_13, path: TPath_1, defaultValue: TDefault_6): TDefault_6 | Exclude<import("lodash").GetFieldType<TObject_13, TPath_1>, null | undefined>;
26
+ (object: any, path: import("lodash").PropertyPath, defaultValue?: any): any;
23
27
  };
24
28
  export declare const _range: {
25
29
  (start: number, end?: number | undefined, step?: number | undefined): number[];
26
30
  (end: number, index: string | number, guard: object): number[];
27
31
  };
28
- export declare const _concat: <T>(...values: lodash.Many<T>[]) => T[];
32
+ export declare const _concat: <T>(...values: import("lodash").Many<T>[]) => T[];
29
33
  export declare const _toNumber: (value: any) => number;
30
34
  export declare const _isUndefined: (value: any) => value is undefined;
31
- export declare const _dropRight: <T>(array: lodash.List<T> | null | undefined, n?: number | undefined) => T[];
32
- export declare const _intersection: <T>(...arrays: (lodash.List<T> | null | undefined)[]) => T[];
35
+ export declare const _dropRight: <T>(array: import("lodash").List<T> | null | undefined, n?: number | undefined) => T[];
36
+ export declare const _intersection: <T>(...arrays: (import("lodash").List<T> | null | undefined)[]) => T[];
33
37
  export declare const _set: {
34
- <T extends object>(object: T, path: lodash.PropertyPath, value: any): T;
35
- <TResult>(object: object, path: lodash.PropertyPath, value: any): TResult;
38
+ <T extends object>(object: T, path: import("lodash").PropertyPath, value: any): T;
39
+ <TResult>(object: object, path: import("lodash").PropertyPath, value: any): TResult;
36
40
  };
37
41
  export declare const _map: {
38
- <T, TResult>(collection: T[] | null | undefined, iteratee: lodash.ArrayIterator<T, TResult>): TResult[];
39
- <T_1, TResult_1>(collection: lodash.List<T_1> | null | undefined, iteratee: lodash.ListIterator<T_1, TResult_1>): TResult_1[];
40
- <T_2>(collection: lodash.Dictionary<T_2> | lodash.NumericDictionary<T_2> | null | undefined): T_2[];
41
- <T_3 extends object, TResult_2>(collection: T_3 | null | undefined, iteratee: lodash.ObjectIterator<T_3, TResult_2>): TResult_2[];
42
- <T_4, K extends keyof T_4>(collection: lodash.Dictionary<T_4> | lodash.NumericDictionary<T_4> | null | undefined, iteratee: K): T_4[K][];
43
- <T_5>(collection: lodash.Dictionary<T_5> | lodash.NumericDictionary<T_5> | null | undefined, iteratee?: string | undefined): any[];
44
- <T_6>(collection: lodash.Dictionary<T_6> | lodash.NumericDictionary<T_6> | null | undefined, iteratee?: object | undefined): boolean[];
42
+ <T, TResult>(collection: T[] | null | undefined, iteratee: import("lodash").ArrayIterator<T, TResult>): TResult[];
43
+ <T_1, TResult_1>(collection: import("lodash").List<T_1> | null | undefined, iteratee: import("lodash").ListIterator<T_1, TResult_1>): TResult_1[];
44
+ <T_2>(collection: import("lodash").Dictionary<T_2> | import("lodash").NumericDictionary<T_2> | null | undefined): T_2[];
45
+ <T_3 extends object, TResult_2>(collection: T_3 | null | undefined, iteratee: import("lodash").ObjectIterator<T_3, TResult_2>): TResult_2[];
46
+ <T_4, K extends keyof T_4>(collection: import("lodash").Dictionary<T_4> | import("lodash").NumericDictionary<T_4> | null | undefined, iteratee: K): T_4[K][];
47
+ <T_5>(collection: import("lodash").Dictionary<T_5> | import("lodash").NumericDictionary<T_5> | null | undefined, iteratee?: string | undefined): any[];
48
+ <T_6>(collection: import("lodash").Dictionary<T_6> | import("lodash").NumericDictionary<T_6> | null | undefined, iteratee?: object | undefined): boolean[];
45
49
  };
46
50
  export declare const _merge: {
47
51
  <TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
@@ -50,13 +54,13 @@ export declare const _merge: {
50
54
  <TObject_3, TSource1_2, TSource2_2, TSource3_1, TSource4>(object: TObject_3, source1: TSource1_2, source2: TSource2_2, source3: TSource3_1, source4: TSource4): TObject_3 & TSource1_2 & TSource2_2 & TSource3_1 & TSource4;
51
55
  (object: any, ...otherArgs: any[]): any;
52
56
  };
53
- export declare const _flatDeep: <T>(array: lodash.ListOfRecursiveArraysOrValues<T> | null | undefined) => lodash.Flat<T>[];
54
- export declare const _uniq: <T>(array: lodash.List<T> | null | undefined) => T[];
57
+ export declare const _flatDeep: <T>(array: import("lodash").ListOfRecursiveArraysOrValues<T> | null | undefined) => import("lodash").Flat<T>[];
58
+ export declare const _uniq: <T>(array: import("lodash").List<T> | null | undefined) => T[];
55
59
  export declare const _sortBy: {
56
- <T>(collection: lodash.List<T> | null | undefined, ...iteratees: lodash.Many<lodash.ListIteratee<T>>[]): T[];
57
- <T_1 extends object>(collection: T_1 | null | undefined, ...iteratees: lodash.Many<lodash.ObjectIteratee<T_1>>[]): T_1[keyof T_1][];
60
+ <T>(collection: import("lodash").List<T> | null | undefined, ...iteratees: import("lodash").Many<import("lodash").ListIteratee<T>>[]): T[];
61
+ <T_1 extends object>(collection: T_1 | null | undefined, ...iteratees: import("lodash").Many<import("lodash").ObjectIteratee<T_1>>[]): T_1[keyof T_1][];
58
62
  };
59
- export declare const _uniqBy: <T>(array: lodash.List<T> | null | undefined, iteratee: lodash.ValueIteratee<T>) => T[];
63
+ export declare const _uniqBy: <T>(array: import("lodash").List<T> | null | undefined, iteratee: import("lodash").ValueIteratee<T>) => T[];
60
64
  export declare const _random: {
61
65
  (floating?: boolean | undefined): number;
62
66
  (max: number, floating?: boolean | undefined): number;
@@ -69,9 +73,9 @@ export declare const _isEmpty: {
69
73
  __trapAny: any;
70
74
  }>(value?: T | undefined): boolean;
71
75
  (value: string): value is "";
72
- (value: Map<any, any> | Set<any> | lodash.List<any> | null | undefined): boolean;
76
+ (value: Map<any, any> | Set<any> | import("lodash").List<any> | null | undefined): boolean;
73
77
  (value: object): boolean;
74
- <T_1 extends object>(value: T_1 | null | undefined): value is lodash.EmptyObjectOf<T_1> | null | undefined;
78
+ <T_1 extends object>(value: T_1 | null | undefined): value is import("lodash").EmptyObjectOf<T_1> | null | undefined;
75
79
  (value?: any): boolean;
76
80
  };
77
81
  export declare const _isObject: (value?: any) => value is object;
@@ -79,28 +83,28 @@ export declare const _isArray: {
79
83
  (value?: any): value is any[];
80
84
  <T>(value?: any): value is any[];
81
85
  };
82
- export declare const _findIndex: <T>(array: lodash.List<T> | null | undefined, predicate?: lodash.ListIterateeCustom<T, boolean> | undefined, fromIndex?: number | undefined) => number;
86
+ export declare const _findIndex: <T>(array: import("lodash").List<T> | null | undefined, predicate?: import("lodash").ListIterateeCustom<T, boolean> | undefined, fromIndex?: number | undefined) => number;
83
87
  export declare const _isEqual: (value: any, other: any) => boolean;
84
- export declare const _difference: <T>(array: lodash.List<T> | null | undefined, ...values: lodash.List<T>[]) => T[];
88
+ export declare const _difference: <T>(array: import("lodash").List<T> | null | undefined, ...values: import("lodash").List<T>[]) => T[];
85
89
  export declare const _shuffle: {
86
- <T>(collection: lodash.List<T> | null | undefined): T[];
90
+ <T>(collection: import("lodash").List<T> | null | undefined): T[];
87
91
  <T_1 extends object>(collection: T_1 | null | undefined): T_1[keyof T_1][];
88
92
  };
89
93
  export declare const _size: (collection: string | object | null | undefined) => number;
90
94
  export declare const _toPairs: {
91
- <T>(object?: lodash.Dictionary<T> | lodash.NumericDictionary<T> | undefined): [string, T][];
95
+ <T>(object?: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | undefined): [string, T][];
92
96
  (object?: object | undefined): [string, any][];
93
97
  };
94
98
  export declare const _orderBy: {
95
- <T>(collection: lodash.List<T> | null | undefined, iteratees?: lodash.Many<lodash.ListIterator<T, unknown>> | undefined, orders?: lodash.Many<boolean | "asc" | "desc"> | undefined): T[];
96
- <T_1>(collection: lodash.List<T_1> | null | undefined, iteratees?: lodash.Many<lodash.ListIteratee<T_1>> | undefined, orders?: lodash.Many<boolean | "asc" | "desc"> | undefined): T_1[];
97
- <T_2 extends object>(collection: T_2 | null | undefined, iteratees?: lodash.Many<lodash.ObjectIterator<T_2, unknown>> | undefined, orders?: lodash.Many<boolean | "asc" | "desc"> | undefined): T_2[keyof T_2][];
98
- <T_3 extends object>(collection: T_3 | null | undefined, iteratees?: lodash.Many<lodash.ObjectIteratee<T_3>> | undefined, orders?: lodash.Many<boolean | "asc" | "desc"> | undefined): T_3[keyof T_3][];
99
+ <T>(collection: import("lodash").List<T> | null | undefined, iteratees?: import("lodash").Many<import("lodash").ListIterator<T, unknown>> | undefined, orders?: import("lodash").Many<boolean | "asc" | "desc"> | undefined): T[];
100
+ <T_1>(collection: import("lodash").List<T_1> | null | undefined, iteratees?: import("lodash").Many<import("lodash").ListIteratee<T_1>> | undefined, orders?: import("lodash").Many<boolean | "asc" | "desc"> | undefined): T_1[];
101
+ <T_2 extends object>(collection: T_2 | null | undefined, iteratees?: import("lodash").Many<import("lodash").ObjectIterator<T_2, unknown>> | undefined, orders?: import("lodash").Many<boolean | "asc" | "desc"> | undefined): T_2[keyof T_2][];
102
+ <T_3 extends object>(collection: T_3 | null | undefined, iteratees?: import("lodash").Many<import("lodash").ObjectIteratee<T_3>> | undefined, orders?: import("lodash").Many<boolean | "asc" | "desc"> | undefined): T_3[keyof T_3][];
99
103
  };
100
104
  export declare const _fromPairs: {
101
- <T>(pairs: lodash.List<[lodash.PropertyName, T]> | null | undefined): lodash.Dictionary<T>;
102
- (pairs: lodash.List<any[]> | null | undefined): lodash.Dictionary<any>;
105
+ <T>(pairs: import("lodash").List<[import("lodash").PropertyName, T]> | null | undefined): import("lodash").Dictionary<T>;
106
+ (pairs: import("lodash").List<any[]> | null | undefined): import("lodash").Dictionary<any>;
103
107
  };
104
- export declare const _xor: <T>(...arrays: (lodash.List<T> | null | undefined)[]) => T[];
108
+ export declare const _xor: <T>(...arrays: (import("lodash").List<T> | null | undefined)[]) => T[];
105
109
  export declare const _clone: (object: any) => any;
106
- export declare const _debounce: <T extends (...args: any[]) => any>(func: T, wait?: number) => lodash.DebouncedFunc<T>;
110
+ export declare const _debounce: <T extends (...args: any[]) => any>(func: T, wait?: number) => import("lodash").DebouncedFunc<T>;
@@ -1,32 +1,62 @@
1
- import * as lodash from "lodash";
2
- export const _get = lodash.get;
3
- export const _range = lodash.range;
4
- export const _concat = lodash.concat;
5
- export const _toNumber = lodash.toNumber;
6
- export const _isUndefined = lodash.isUndefined;
7
- export const _dropRight = lodash.dropRight;
8
- export const _intersection = lodash.intersection;
9
- export const _set = lodash.set;
10
- export const _map = lodash.map;
11
- export const _merge = lodash.merge;
12
- export const _flatDeep = lodash.flattenDeep;
13
- export const _uniq = lodash.uniq;
14
- export const _sortBy = lodash.sortBy;
15
- export const _uniqBy = lodash.uniqBy;
16
- export const _random = lodash.random;
17
- export const _cloneDeep = lodash.cloneDeep;
18
- export const _isEmpty = lodash.isEmpty;
19
- export const _isObject = lodash.isObject;
20
- export const _isArray = lodash.isArray;
21
- export const _findIndex = lodash.findIndex;
22
- export const _isEqual = lodash.isEqual;
23
- export const _difference = lodash.difference;
24
- export const _shuffle = lodash.shuffle;
25
- export const _size = lodash.size;
26
- export const _toPairs = lodash.toPairs;
27
- export const _orderBy = lodash.orderBy;
28
- export const _fromPairs = lodash.fromPairs;
29
- export const _xor = lodash.xor;
1
+ import {
2
+ concat,
3
+ dropRight,
4
+ range,
5
+ toNumber,
6
+ isUndefined,
7
+ set,
8
+ map,
9
+ merge,
10
+ flattenDeep,
11
+ uniq,
12
+ sortBy,
13
+ uniqBy,
14
+ random,
15
+ cloneDeep,
16
+ isEmpty,
17
+ isObject,
18
+ isArray,
19
+ findIndex,
20
+ isEqual,
21
+ difference,
22
+ shuffle,
23
+ size,
24
+ toPairs,
25
+ orderBy,
26
+ fromPairs,
27
+ xor,
28
+ debounce,
29
+ intersection,
30
+ get
31
+ } from "lodash-es";
32
+ export const _get = get;
33
+ export const _range = range;
34
+ export const _concat = concat;
35
+ export const _toNumber = toNumber;
36
+ export const _isUndefined = isUndefined;
37
+ export const _dropRight = dropRight;
38
+ export const _intersection = intersection;
39
+ export const _set = set;
40
+ export const _map = map;
41
+ export const _merge = merge;
42
+ export const _flatDeep = flattenDeep;
43
+ export const _uniq = uniq;
44
+ export const _sortBy = sortBy;
45
+ export const _uniqBy = uniqBy;
46
+ export const _random = random;
47
+ export const _cloneDeep = cloneDeep;
48
+ export const _isEmpty = isEmpty;
49
+ export const _isObject = isObject;
50
+ export const _isArray = isArray;
51
+ export const _findIndex = findIndex;
52
+ export const _isEqual = isEqual;
53
+ export const _difference = difference;
54
+ export const _shuffle = shuffle;
55
+ export const _size = size;
56
+ export const _toPairs = toPairs;
57
+ export const _orderBy = orderBy;
58
+ export const _fromPairs = fromPairs;
59
+ export const _xor = xor;
30
60
  export const _clone = (object) => {
31
61
  try {
32
62
  return JSON.parse(JSON.stringify(object || {}));
@@ -35,5 +65,5 @@ export const _clone = (object) => {
35
65
  }
36
66
  };
37
67
  export const _debounce = (func, wait = 150) => {
38
- return lodash.debounce(func, wait);
68
+ return debounce(func, wait);
39
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Development Team",
@@ -43,7 +43,7 @@
43
43
  "@vee-validate/zod": "^4.11.8",
44
44
  "axios": "^1.5.1",
45
45
  "dayjs": "^1.11.10",
46
- "lodash": "^4.17.21",
46
+ "lodash-es": "^4.17.21",
47
47
  "nuxt-security": "^0.14.4",
48
48
  "pinia": "^2.1.6",
49
49
  "url-join": "^5.0.0",
@@ -57,7 +57,7 @@
57
57
  "@nuxt/schema": "^3.7.4",
58
58
  "@nuxt/test-utils": "^3.7.4",
59
59
  "@release-it/conventional-changelog": "^7.0.2",
60
- "@types/lodash": "^4.14.199",
60
+ "@types/lodash-es": "^4.17.12",
61
61
  "@types/node": "^18.18.1",
62
62
  "changelogen": "^0.5.5",
63
63
  "eslint": "^8.50.0",
File without changes