@stemy/ngx-utils 19.7.23 → 19.7.24
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/fesm2022/stemy-ngx-utils.mjs +160 -84
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/ngx-utils.imports.d.ts +1 -1
- package/ngx-utils/services/base-http.service.d.ts +1 -0
- package/ngx-utils/services/request-bag.d.ts +3 -2
- package/ngx-utils/utils/crypto.utils.d.ts +1 -0
- package/ngx-utils/utils/json.utils.d.ts +2 -0
- package/ngx-utils/utils/misc.d.ts +0 -6
- package/ngx-utils/utils/object.utils.d.ts +0 -1
- package/package.json +1 -1
- package/public_api.d.ts +3 -2
- package/ngx-utils/utils/jsonfn.d.ts +0 -6
|
@@ -64,7 +64,7 @@ import { UploadComponent } from "./components/upload/upload.component";
|
|
|
64
64
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof SyncAsyncPipe | typeof TranslatePipe)[];
|
|
65
65
|
export declare const directives: (typeof AsyncMethodBase | typeof AsyncMethodTargetDirective | typeof BackgroundDirective | typeof ComponentLoaderDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof DropdownDirective | typeof DropdownContentDirective | typeof TabsItemDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
|
|
66
66
|
export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
|
|
67
|
-
export declare const providers: (typeof
|
|
67
|
+
export declare const providers: (typeof BaseHttpService | typeof UniversalService | typeof StateService | typeof AuthGuard | typeof EventsService | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof CacheService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof SocketService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof SyncAsyncPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
|
|
68
68
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
69
69
|
useClass: typeof DragDropEventPlugin;
|
|
70
70
|
multi: boolean;
|
|
@@ -44,6 +44,7 @@ export declare class BaseHttpService implements IHttpService {
|
|
|
44
44
|
protected handleUnauthorizedError(absoluteUrl: string, options: HttpClientRequestOptions, reject: () => void): void;
|
|
45
45
|
protected toastWarning(message: string, issueContext: IIssueContext, reason: any, options: HttpClientRequestOptions): void;
|
|
46
46
|
protected toastError(message: string, issueContext: IIssueContext, reason: any, options: HttpClientRequestOptions): void;
|
|
47
|
+
protected makeCacheKey(url: string, read: string, options: HttpRequestOptions): string;
|
|
47
48
|
protected toPromise(url: string, requestOptions: HttpRequestOptions, listener?: ProgressListener): Promise<any>;
|
|
48
49
|
protected getUserTokenTime(): number;
|
|
49
50
|
protected pushFailedRequest(url: string, options: HttpClientRequestOptions, req: () => void): boolean;
|
|
@@ -8,9 +8,10 @@ export declare class RequestBag {
|
|
|
8
8
|
get requestParams(): Readonly<HttpRequestQuery>;
|
|
9
9
|
constructor(source?: RequestBag);
|
|
10
10
|
makeHeaders(headersObj?: HttpRequestHeaders | HttpHeaders, withCredentials?: boolean): HttpHeaders;
|
|
11
|
-
makeParams(paramsObj?: HttpRequestQuery): HttpParams;
|
|
11
|
+
makeParams(paramsObj?: HttpParams | HttpRequestQuery): HttpParams;
|
|
12
12
|
setHeader(name: string, value?: string | string[]): void;
|
|
13
13
|
getHeader(name: string): string;
|
|
14
14
|
setParam(name: string, value?: any): void;
|
|
15
|
-
|
|
15
|
+
convertHeaders(headers: HttpHeaders | HttpRequestHeaders): HttpRequestHeaders;
|
|
16
|
+
convertParams(params: HttpParams | HttpRequestQuery): HttpRequestQuery;
|
|
16
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function md5(input: string | Record<string, any>): string;
|
|
@@ -7,12 +7,6 @@ export declare function isBrowser(): boolean;
|
|
|
7
7
|
* @return {DocumentOrShadowRoot} The document or the elements shadow root
|
|
8
8
|
*/
|
|
9
9
|
export declare function getRoot(elem: HTMLElement): DocumentOrShadowRoot;
|
|
10
|
-
/**
|
|
11
|
-
* Returns a hash code from anything
|
|
12
|
-
* @param {string} obj The object to hash.
|
|
13
|
-
* @return {number} A 32bit integer
|
|
14
|
-
*/
|
|
15
|
-
export declare function hashCode(obj: any): number;
|
|
16
10
|
export declare function switchClass(elem: HTMLElement, className: string, status?: boolean): void;
|
|
17
11
|
export declare function getCssVariables(elem: HTMLElement): Record<string, string>;
|
|
18
12
|
export declare function checkTransitions(el: HTMLElement, cb: () => any): void;
|
|
@@ -17,7 +17,6 @@ export declare class ObjectUtils {
|
|
|
17
17
|
static filter(obj: any, predicate: FilterPredicate): any;
|
|
18
18
|
static copy<T>(obj: T): T;
|
|
19
19
|
static assign<T>(target: T, source: any, predicate?: FilterPredicate): T;
|
|
20
|
-
static hashCode(obj: any): number;
|
|
21
20
|
static getType(obj: any): string;
|
|
22
21
|
static isPrimitive(value: any): boolean;
|
|
23
22
|
static isObject(value: any): boolean;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { ArrayUtils } from "./ngx-utils/utils/array.utils";
|
|
|
7
7
|
export { AuthGuard } from "./ngx-utils/utils/auth.guard";
|
|
8
8
|
export { createTypedProvider, cachedFactory } from "./ngx-utils/utils/cached-factory";
|
|
9
9
|
export { CanvasUtils } from "./ngx-utils/utils/canvas";
|
|
10
|
+
export { md5 } from "./ngx-utils/utils/crypto.utils";
|
|
10
11
|
export { DateUtils } from "./ngx-utils/utils/date.utils";
|
|
11
12
|
export { FileUtils } from "./ngx-utils/utils/file.utils";
|
|
12
13
|
export { ForbiddenZone } from "./ngx-utils/utils/forbidden-zone";
|
|
@@ -16,11 +17,11 @@ export { ExclusionsRenderer } from "./ngx-utils/utils/canvas-renderers/exclusion
|
|
|
16
17
|
export { RulerCanvasRenderer } from "./ngx-utils/utils/canvas-renderers/ruler-canvas.renderer";
|
|
17
18
|
export { dotProduct, tripleProduct, isPoint, ensurePoint, perpendicular, negatePt, normalizePt, addPts, distanceSq, distance, lerpPts, lengthOfPt, multiplyPts, dividePts, subPts, rotateDeg, rotateRad, toDegrees, toRadians, gjkDistance, gjkIntersection, Point, Rect, Oval, Circle } from "./ngx-utils/utils/geometry";
|
|
18
19
|
export { Initializer } from "./ngx-utils/utils/initializer";
|
|
19
|
-
export {
|
|
20
|
+
export { stringify } from "./ngx-utils/utils/json.utils";
|
|
20
21
|
export { ReflectUtils } from "./ngx-utils/utils/reflect.utils";
|
|
21
22
|
export { LoaderUtils } from "./ngx-utils/utils/loader.utils";
|
|
22
23
|
export { EPSILON, normalizeRange, clamp, overflow, MathUtils } from "./ngx-utils/utils/math.utils";
|
|
23
|
-
export { isBrowser, getRoot,
|
|
24
|
+
export { isBrowser, getRoot, switchClass, getCssVariables, checkTransitions, getComponentDef, parseSelector, selectorMatchesList, provideEntryComponents, provideOptions, provideWithOptions, injectOptions } from "./ngx-utils/utils/misc";
|
|
24
25
|
export { ObjectUtils } from "./ngx-utils/utils/object.utils";
|
|
25
26
|
export { ObservableUtils, ISubscriberInfo } from "./ngx-utils/utils/observable.utils";
|
|
26
27
|
export { CancelablePromise, cancelablePromise, impatientPromise } from "./ngx-utils/utils/promise.utils";
|