@libs-ui/utils 0.2.306-4 → 0.2.306-6

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/file.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IFile } from "@libs-ui/interfaces-types";
1
+ import { IFile } from '@libs-ui/interfaces-types';
2
2
  export declare const isTypeImage: (file: File | Blob) => boolean;
3
3
  export declare const isTypeVideo: (file: File | Blob) => boolean;
4
4
  export declare const isTypeAudio: (file: File | Blob) => boolean;
package/format-text.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ITextFormatOptions } from "@libs-ui/interfaces-types";
1
+ import { ITextFormatOptions } from '@libs-ui/interfaces-types';
2
2
  export declare const highlightByKeyword: (value: string | undefined, search: string | undefined, ignoreHighlight?: boolean, classHightLight?: string) => string;
3
3
  export declare const formatTextCompare: (text: string, options?: ITextFormatOptions) => string;
4
4
  export declare const fullNameFormat: (value: string) => string;
package/helpers.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Signal } from '@angular/core';
2
- import { GetValueByPath, PathsToStringProps, TYPE_OBJECT } from '@libs-ui/interfaces-types';
2
+ import { GetReturnType, GetValueAtPath, PathOf, TYPE_OBJECT } from '@libs-ui/interfaces-types';
3
3
  /**Các hàm tương tự thư viện lodash */
4
4
  /**
5
5
  * Kiểm tra xem một giá trị có phải là null hoặc undefined hay không
@@ -99,7 +99,7 @@ export declare const omitBy: <T>(objData: Record<string, any>, predicate: (val:
99
99
  * get(null, 'any.path'); // undefined
100
100
  * get(undefined, 'any.path', 'fallback'); // 'fallback'
101
101
  */
102
- export declare const get: <O, P extends PathsToStringProps<O> = PathsToStringProps<O>, E extends boolean = false, T extends GetValueByPath<O, P, E> = GetValueByPath<O, P, E>>(obj: Signal<O> | O, path: P, defaultValue?: T, keepLastValueIfSignal?: E) => T;
102
+ export declare const get: <O, P extends PathOf<O> = PathOf<O>, KS extends boolean = false, D extends GetValueAtPath<O, P, KS> | undefined = undefined>(obj: Signal<O> | O, path: P, defaultValue?: D, keepLastValueIfSignal?: KS) => GetReturnType<O, P, KS, D>;
103
103
  /**
104
104
  * Thiết lập giá trị cho một thuộc tính trong đối tượng theo đường dẫn chỉ định
105
105
  * @param obj Đối tượng cần thiết lập giá trị
@@ -111,7 +111,7 @@ export declare const get: <O, P extends PathsToStringProps<O> = PathsToStringPro
111
111
  * const obj = { a: { b: 1 } };
112
112
  * set(obj, 'a.b', 2); // { a: { b: 2 } }
113
113
  */
114
- export declare const set: <O, P extends PathsToStringProps<O> = PathsToStringProps<O>, T extends GetValueByPath<O, P, true> = GetValueByPath<O, P, true>>(obj: Signal<O> | O, path: P, value: T) => O;
114
+ export declare const set: <O, P extends PathOf<O> = PathOf<O>, T extends GetValueAtPath<O, P, true> = GetValueAtPath<O, P, true>>(obj: Signal<O> | O, path: P, value: T) => O;
115
115
  /**
116
116
  * Tạo một bản sao sâu của một đối tượng hoặc giá trị bất kỳ
117
117
  * @param data Dữ liệu cần sao chép
package/http-params.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { HttpParameterCodec, HttpParams } from "@angular/common/http";
1
+ import { HttpParameterCodec, HttpParams } from '@angular/common/http';
2
2
  export declare const UtilsHttpParamsRequestInstance: <Type>(options?: HttpParamsOptions<Type>, instance?: HttpParams) => UtilsHttpParamsRequest<Type>;
3
3
  export declare class UtilsHttpParamsRequest<Type = {
4
4
  pem: string;
package/inject-token.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { InjectionToken } from "@angular/core";
1
+ import { InjectionToken } from '@angular/core';
2
2
  export declare const LINK_IMAGE_ERROR_TOKEN_INJECT: InjectionToken<string>;
3
3
  export declare const PROCESS_BAR_STANDARD_CONFIG_DEFAULT_TOKEN_INJECT: InjectionToken<string>;
4
4
  export declare const PROCESS_BAR_STEPS_CONFIG_DEFAULT_TOKEN_INJECT: InjectionToken<string>;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@libs-ui/utils",
3
- "version": "0.2.306-4",
3
+ "version": "0.2.306-6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
7
7
  "crypto-es": "^2.1.0",
8
8
  "dayjs": "1.11.5",
9
- "@libs-ui/interfaces-types": "0.2.306-4",
9
+ "@libs-ui/interfaces-types": "0.2.306-6",
10
10
  "rxjs": "~7.8.0"
11
11
  },
12
12
  "sideEffects": false,
package/uri.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TYPE_OBJECT } from "@libs-ui/interfaces-types";
1
+ import { TYPE_OBJECT } from '@libs-ui/interfaces-types';
2
2
  export declare const ENCODE_URI_PATTERN: RegExp;
3
3
  export declare const decodeURI: (value: string) => string;
4
4
  export declare const encodeURI: (value: string) => string;