u-mapsnpm 1.0.0
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/angular/helpers/signal.helpers.d.ts +19 -0
- package/dist/angular/helpers/signal.helpers.d.ts.map +1 -0
- package/dist/angular/helpers/signal.helpers.js +35 -0
- package/dist/angular/helpers/signal.helpers.js.map +1 -0
- package/dist/angular/index.d.ts +4 -0
- package/dist/angular/index.d.ts.map +1 -0
- package/dist/angular/index.js +4 -0
- package/dist/angular/index.js.map +1 -0
- package/dist/angular/services/base.service.d.ts +12 -0
- package/dist/angular/services/base.service.d.ts.map +1 -0
- package/dist/angular/services/base.service.js +17 -0
- package/dist/angular/services/base.service.js.map +1 -0
- package/dist/angular/services/http.service.d.ts +21 -0
- package/dist/angular/services/http.service.d.ts.map +1 -0
- package/dist/angular/services/http.service.js +65 -0
- package/dist/angular/services/http.service.js.map +1 -0
- package/dist/angular/types.d.ts +2 -0
- package/dist/angular/types.d.ts.map +1 -0
- package/dist/angular/types.js +2 -0
- package/dist/angular/types.js.map +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +4 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/utils/date.utils.d.ts +13 -0
- package/dist/core/utils/date.utils.d.ts.map +1 -0
- package/dist/core/utils/date.utils.js +29 -0
- package/dist/core/utils/date.utils.js.map +1 -0
- package/dist/core/utils/number.utils.d.ts +13 -0
- package/dist/core/utils/number.utils.d.ts.map +1 -0
- package/dist/core/utils/number.utils.js +23 -0
- package/dist/core/utils/number.utils.js.map +1 -0
- package/dist/core/utils/string.utils.d.ts +17 -0
- package/dist/core/utils/string.utils.d.ts.map +1 -0
- package/dist/core/utils/string.utils.js +34 -0
- package/dist/core/utils/string.utils.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/interfaces/api.interfaces.d.ts +38 -0
- package/dist/types/interfaces/api.interfaces.d.ts.map +1 -0
- package/dist/types/interfaces/api.interfaces.js +2 -0
- package/dist/types/interfaces/api.interfaces.js.map +1 -0
- package/dist/types/interfaces/entity.interfaces.d.ts +22 -0
- package/dist/types/interfaces/entity.interfaces.d.ts.map +1 -0
- package/dist/types/interfaces/entity.interfaces.js +2 -0
- package/dist/types/interfaces/entity.interfaces.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Signal } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Loading state tracked via Angular signals.
|
|
4
|
+
*/
|
|
5
|
+
export interface LoadingState<T> {
|
|
6
|
+
data: Signal<T | null>;
|
|
7
|
+
loading: Signal<boolean>;
|
|
8
|
+
error: Signal<string | null>;
|
|
9
|
+
set: (value: T) => void;
|
|
10
|
+
setError: (error: string) => void;
|
|
11
|
+
setLoading: (loading: boolean) => void;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Creates a reactive loading state using Angular signals.
|
|
16
|
+
* Useful for managing async data fetch patterns.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createLoadingState<T>(initialValue?: T | null): LoadingState<T>;
|
|
19
|
+
//# sourceMappingURL=signal.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.helpers.d.ts","sourceRoot":"","sources":["../../../src/angular/helpers/signal.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,MAAM,EAAuB,MAAM,eAAe,CAAC;AAEnF;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7B,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,YAAY,GAAE,CAAC,GAAG,IAAW,GAC5B,YAAY,CAAC,CAAC,CAAC,CA4BjB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { signal, computed } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a reactive loading state using Angular signals.
|
|
4
|
+
* Useful for managing async data fetch patterns.
|
|
5
|
+
*/
|
|
6
|
+
export function createLoadingState(initialValue = null) {
|
|
7
|
+
const data = signal(initialValue);
|
|
8
|
+
const loading = signal(false);
|
|
9
|
+
const error = signal(null);
|
|
10
|
+
return {
|
|
11
|
+
data: computed(() => data()),
|
|
12
|
+
loading: computed(() => loading()),
|
|
13
|
+
error: computed(() => error()),
|
|
14
|
+
set: (value) => {
|
|
15
|
+
data.set(value);
|
|
16
|
+
loading.set(false);
|
|
17
|
+
error.set(null);
|
|
18
|
+
},
|
|
19
|
+
setError: (err) => {
|
|
20
|
+
error.set(err);
|
|
21
|
+
loading.set(false);
|
|
22
|
+
},
|
|
23
|
+
setLoading: (state) => {
|
|
24
|
+
loading.set(state);
|
|
25
|
+
if (state)
|
|
26
|
+
error.set(null);
|
|
27
|
+
},
|
|
28
|
+
reset: () => {
|
|
29
|
+
data.set(initialValue);
|
|
30
|
+
loading.set(false);
|
|
31
|
+
error.set(null);
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=signal.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal.helpers.js","sourceRoot":"","sources":["../../../src/angular/helpers/signal.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAoC,MAAM,eAAe,CAAC;AAenF;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAChC,eAAyB,IAAI;IAE7B,MAAM,IAAI,GAA6B,MAAM,CAAC,YAAY,CAAC,CAAC;IAC5D,MAAM,OAAO,GAA4B,MAAM,CAAC,KAAK,CAAC,CAAC;IACvD,MAAM,KAAK,GAAkC,MAAM,CAAC,IAAI,CAAC,CAAC;IAE1D,OAAO;QACL,IAAI,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;QAC5B,OAAO,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;QAClC,KAAK,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC;QAC9B,GAAG,EAAE,CAAC,KAAQ,EAAE,EAAE;YAChB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAChB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;QACD,QAAQ,EAAE,CAAC,GAAW,EAAE,EAAE;YACxB,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACf,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;QACD,UAAU,EAAE,CAAC,KAAc,EAAE,EAAE;YAC7B,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,KAAK;gBAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;QACD,KAAK,EAAE,GAAG,EAAE;YACV,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;YACvB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/angular/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/angular/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAuB,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAqB,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
/**
|
|
4
|
+
* Abstract base service that provides lifecycle management.
|
|
5
|
+
* Extend this for services that need cleanup on destroy.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class BaseService {
|
|
8
|
+
protected readonly destroyRef: DestroyRef;
|
|
9
|
+
protected readonly destroy$: Subject<void>;
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=base.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.service.d.ts","sourceRoot":"","sources":["../../../src/angular/services/base.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,UAAU,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B;;;GAGG;AACH,8BAAsB,WAAW;IAC/B,SAAS,CAAC,QAAQ,CAAC,UAAU,aAAsB;IACnD,SAAS,CAAC,QAAQ,CAAC,QAAQ,gBAAuB;;CAQnD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { inject, DestroyRef } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
/**
|
|
4
|
+
* Abstract base service that provides lifecycle management.
|
|
5
|
+
* Extend this for services that need cleanup on destroy.
|
|
6
|
+
*/
|
|
7
|
+
export class BaseService {
|
|
8
|
+
destroyRef = inject(DestroyRef);
|
|
9
|
+
destroy$ = new Subject();
|
|
10
|
+
constructor() {
|
|
11
|
+
this.destroyRef.onDestroy(() => {
|
|
12
|
+
this.destroy$.next();
|
|
13
|
+
this.destroy$.complete();
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=base.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.service.js","sourceRoot":"","sources":["../../../src/angular/services/base.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B;;;GAGG;AACH,MAAM,OAAgB,WAAW;IACZ,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAChC,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;IAElD;QACE,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE;YAC7B,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACrB,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import type { ApiResponse, PaginatedResponse } from '../types';
|
|
3
|
+
export interface RequestOptions {
|
|
4
|
+
params?: Record<string, string | number | boolean>;
|
|
5
|
+
headers?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Lightweight HTTP helper wrapping Angular's HttpClient.
|
|
9
|
+
* Provides typed methods aligned with the shared ApiResponse envelope.
|
|
10
|
+
*/
|
|
11
|
+
export declare class HttpService {
|
|
12
|
+
private readonly http;
|
|
13
|
+
get<T>(url: string, options?: RequestOptions): Observable<ApiResponse<T>>;
|
|
14
|
+
getList<T>(url: string, options?: RequestOptions): Observable<PaginatedResponse<T>>;
|
|
15
|
+
post<T>(url: string, body: unknown, options?: RequestOptions): Observable<ApiResponse<T>>;
|
|
16
|
+
put<T>(url: string, body: unknown, options?: RequestOptions): Observable<ApiResponse<T>>;
|
|
17
|
+
patch<T>(url: string, body: unknown, options?: RequestOptions): Observable<ApiResponse<T>>;
|
|
18
|
+
delete<T>(url: string, options?: RequestOptions): Observable<ApiResponse<T>>;
|
|
19
|
+
private buildParams;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=http.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.service.d.ts","sourceRoot":"","sources":["../../../src/angular/services/http.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED;;;GAGG;AACH,qBACa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAsB;IAE3C,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAOzE,OAAO,CAAC,CAAC,EACP,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAOnC,IAAI,CAAC,CAAC,EACJ,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,OAAO,EACb,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAO7B,GAAG,CAAC,CAAC,EACH,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,OAAO,EACb,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAO7B,KAAK,CAAC,CAAC,EACL,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,OAAO,EACb,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAO7B,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAO5E,OAAO,CAAC,WAAW;CAUpB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Injectable, inject } from '@angular/core';
|
|
8
|
+
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
9
|
+
/**
|
|
10
|
+
* Lightweight HTTP helper wrapping Angular's HttpClient.
|
|
11
|
+
* Provides typed methods aligned with the shared ApiResponse envelope.
|
|
12
|
+
*/
|
|
13
|
+
let HttpService = class HttpService {
|
|
14
|
+
http = inject(HttpClient);
|
|
15
|
+
get(url, options) {
|
|
16
|
+
return this.http.get(url, {
|
|
17
|
+
params: this.buildParams(options?.params),
|
|
18
|
+
headers: options?.headers,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
getList(url, options) {
|
|
22
|
+
return this.http.get(url, {
|
|
23
|
+
params: this.buildParams(options?.params),
|
|
24
|
+
headers: options?.headers,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
post(url, body, options) {
|
|
28
|
+
return this.http.post(url, body, {
|
|
29
|
+
params: this.buildParams(options?.params),
|
|
30
|
+
headers: options?.headers,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
put(url, body, options) {
|
|
34
|
+
return this.http.put(url, body, {
|
|
35
|
+
params: this.buildParams(options?.params),
|
|
36
|
+
headers: options?.headers,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
patch(url, body, options) {
|
|
40
|
+
return this.http.patch(url, body, {
|
|
41
|
+
params: this.buildParams(options?.params),
|
|
42
|
+
headers: options?.headers,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
delete(url, options) {
|
|
46
|
+
return this.http.delete(url, {
|
|
47
|
+
params: this.buildParams(options?.params),
|
|
48
|
+
headers: options?.headers,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
buildParams(params) {
|
|
52
|
+
if (!params)
|
|
53
|
+
return undefined;
|
|
54
|
+
let httpParams = new HttpParams();
|
|
55
|
+
for (const [key, value] of Object.entries(params)) {
|
|
56
|
+
httpParams = httpParams.set(key, String(value));
|
|
57
|
+
}
|
|
58
|
+
return httpParams;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
HttpService = __decorate([
|
|
62
|
+
Injectable({ providedIn: 'root' })
|
|
63
|
+
], HttpService);
|
|
64
|
+
export { HttpService };
|
|
65
|
+
//# sourceMappingURL=http.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.service.js","sourceRoot":"","sources":["../../../src/angular/services/http.service.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAS9D;;;GAGG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAW;IACL,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IAE3C,GAAG,CAAI,GAAW,EAAE,OAAwB;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAiB,GAAG,EAAE;YACxC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC;YACzC,OAAO,EAAE,OAAO,EAAE,OAAO;SAC1B,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CACL,GAAW,EACX,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAuB,GAAG,EAAE;YAC9C,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC;YACzC,OAAO,EAAE,OAAO,EAAE,OAAO;SAC1B,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CACF,GAAW,EACX,IAAa,EACb,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAiB,GAAG,EAAE,IAAI,EAAE;YAC/C,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC;YACzC,OAAO,EAAE,OAAO,EAAE,OAAO;SAC1B,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CACD,GAAW,EACX,IAAa,EACb,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAiB,GAAG,EAAE,IAAI,EAAE;YAC9C,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC;YACzC,OAAO,EAAE,OAAO,EAAE,OAAO;SAC1B,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CACH,GAAW,EACX,IAAa,EACb,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAiB,GAAG,EAAE,IAAI,EAAE;YAChD,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC;YACzC,OAAO,EAAE,OAAO,EAAE,OAAO;SAC1B,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAI,GAAW,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAiB,GAAG,EAAE;YAC3C,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC;YACzC,OAAO,EAAE,OAAO,EAAE,OAAO;SAC1B,CAAC,CAAC;IACL,CAAC;IAEO,WAAW,CACjB,MAAkD;QAElD,IAAI,CAAC,MAAM;YAAE,OAAO,SAAS,CAAC;QAC9B,IAAI,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;QAClC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAClD,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAA;AAtEY,WAAW;IADvB,UAAU,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;GACtB,WAAW,CAsEvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/angular/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/angular/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,QAAQ,EACR,WAAW,EACX,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,QAAQ,EACR,WAAW,EACX,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a Date object to a locale string.
|
|
3
|
+
*/
|
|
4
|
+
export declare function formatDate(date: Date, locale?: string, options?: Intl.DateTimeFormatOptions): string;
|
|
5
|
+
/**
|
|
6
|
+
* Returns true if the given date is today.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isToday(date: Date): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Returns the number of days between two dates.
|
|
11
|
+
*/
|
|
12
|
+
export declare function daysBetween(a: Date, b: Date): number;
|
|
13
|
+
//# sourceMappingURL=date.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils/date.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,EACV,MAAM,SAAU,EAChB,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,GACnC,MAAM,CAOR;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAO3C;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAIpD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a Date object to a locale string.
|
|
3
|
+
*/
|
|
4
|
+
export function formatDate(date, locale = 'en-US', options) {
|
|
5
|
+
const defaultOptions = {
|
|
6
|
+
year: 'numeric',
|
|
7
|
+
month: 'short',
|
|
8
|
+
day: 'numeric',
|
|
9
|
+
};
|
|
10
|
+
return date.toLocaleDateString(locale, options ?? defaultOptions);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Returns true if the given date is today.
|
|
14
|
+
*/
|
|
15
|
+
export function isToday(date) {
|
|
16
|
+
const today = new Date();
|
|
17
|
+
return (date.getFullYear() === today.getFullYear() &&
|
|
18
|
+
date.getMonth() === today.getMonth() &&
|
|
19
|
+
date.getDate() === today.getDate());
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns the number of days between two dates.
|
|
23
|
+
*/
|
|
24
|
+
export function daysBetween(a, b) {
|
|
25
|
+
const msPerDay = 1000 * 60 * 60 * 24;
|
|
26
|
+
const diff = Math.abs(a.getTime() - b.getTime());
|
|
27
|
+
return Math.floor(diff / msPerDay);
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=date.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.utils.js","sourceRoot":"","sources":["../../../src/core/utils/date.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,UAAU,CACxB,IAAU,EACV,MAAM,GAAG,OAAO,EAChB,OAAoC;IAEpC,MAAM,cAAc,GAA+B;QACjD,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,OAAO;QACd,GAAG,EAAE,SAAS;KACf,CAAC;IACF,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,IAAI,cAAc,CAAC,CAAC;AACpE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,IAAU;IAChC,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;IACzB,OAAO,CACL,IAAI,CAAC,WAAW,EAAE,KAAK,KAAK,CAAC,WAAW,EAAE;QAC1C,IAAI,CAAC,QAAQ,EAAE,KAAK,KAAK,CAAC,QAAQ,EAAE;QACpC,IAAI,CAAC,OAAO,EAAE,KAAK,KAAK,CAAC,OAAO,EAAE,CACnC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,CAAO,EAAE,CAAO;IAC1C,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a number as currency string.
|
|
3
|
+
*/
|
|
4
|
+
export declare function formatCurrency(value: number, locale?: string, currency?: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* Clamps a number between min and max bounds.
|
|
7
|
+
*/
|
|
8
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
9
|
+
/**
|
|
10
|
+
* Rounds a number to the specified number of decimal places.
|
|
11
|
+
*/
|
|
12
|
+
export declare function roundTo(value: number, decimals: number): number;
|
|
13
|
+
//# sourceMappingURL=number.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils/number.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,MAAM,SAAU,EAChB,QAAQ,SAAQ,GACf,MAAM,CAKR;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG/D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a number as currency string.
|
|
3
|
+
*/
|
|
4
|
+
export function formatCurrency(value, locale = 'en-US', currency = 'USD') {
|
|
5
|
+
return new Intl.NumberFormat(locale, {
|
|
6
|
+
style: 'currency',
|
|
7
|
+
currency,
|
|
8
|
+
}).format(value);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Clamps a number between min and max bounds.
|
|
12
|
+
*/
|
|
13
|
+
export function clamp(value, min, max) {
|
|
14
|
+
return Math.min(Math.max(value, min), max);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Rounds a number to the specified number of decimal places.
|
|
18
|
+
*/
|
|
19
|
+
export function roundTo(value, decimals) {
|
|
20
|
+
const factor = Math.pow(10, decimals);
|
|
21
|
+
return Math.round(value * factor) / factor;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=number.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number.utils.js","sourceRoot":"","sources":["../../../src/core/utils/number.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,cAAc,CAC5B,KAAa,EACb,MAAM,GAAG,OAAO,EAChB,QAAQ,GAAG,KAAK;IAEhB,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE;QACnC,KAAK,EAAE,UAAU;QACjB,QAAQ;KACT,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,KAAK,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW;IAC3D,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;AAC7C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO,CAAC,KAAa,EAAE,QAAgB;IACrD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capitalizes the first letter of a string.
|
|
3
|
+
*/
|
|
4
|
+
export declare function capitalize(value: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* Truncates a string to a maximum length, appending a suffix if truncated.
|
|
7
|
+
*/
|
|
8
|
+
export declare function truncate(value: string, maxLength: number, suffix?: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Converts a string to kebab-case.
|
|
11
|
+
*/
|
|
12
|
+
export declare function toKebabCase(value: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Converts a string to camelCase.
|
|
15
|
+
*/
|
|
16
|
+
export declare function toCamelCase(value: string): string;
|
|
17
|
+
//# sourceMappingURL=string.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils/string.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,MAAM,SAAQ,GACb,MAAM,CAGR;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKjD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjD"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capitalizes the first letter of a string.
|
|
3
|
+
*/
|
|
4
|
+
export function capitalize(value) {
|
|
5
|
+
if (!value)
|
|
6
|
+
return value;
|
|
7
|
+
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Truncates a string to a maximum length, appending a suffix if truncated.
|
|
11
|
+
*/
|
|
12
|
+
export function truncate(value, maxLength, suffix = '...') {
|
|
13
|
+
if (value.length <= maxLength)
|
|
14
|
+
return value;
|
|
15
|
+
return value.slice(0, maxLength - suffix.length) + suffix;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Converts a string to kebab-case.
|
|
19
|
+
*/
|
|
20
|
+
export function toKebabCase(value) {
|
|
21
|
+
return value
|
|
22
|
+
.replace(/([a-z])([A-Z])/g, '$1-$2')
|
|
23
|
+
.replace(/[\s_]+/g, '-')
|
|
24
|
+
.toLowerCase();
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Converts a string to camelCase.
|
|
28
|
+
*/
|
|
29
|
+
export function toCamelCase(value) {
|
|
30
|
+
return value
|
|
31
|
+
.replace(/[-_\s]+(.)?/g, (_, char) => char ? char.toUpperCase() : '')
|
|
32
|
+
.replace(/^[A-Z]/, (char) => char.toLowerCase());
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=string.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.utils.js","sourceRoot":"","sources":["../../../src/core/utils/string.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IACzB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACxD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ,CACtB,KAAa,EACb,SAAiB,EACjB,MAAM,GAAG,KAAK;IAEd,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5C,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC5D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,OAAO,KAAK;SACT,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC;SACnC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC;SACvB,WAAW,EAAE,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,OAAO,KAAK;SACT,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE,IAAwB,EAAE,EAAE,CACvD,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAC/B;SACA,OAAO,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,QAAQ,GACT,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,UAAU,EACV,YAAY,EACZ,aAAa,GACd,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard API response envelope.
|
|
3
|
+
*/
|
|
4
|
+
export interface ApiResponse<T> {
|
|
5
|
+
data: T;
|
|
6
|
+
meta?: ApiMeta;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Paginated API response.
|
|
10
|
+
*/
|
|
11
|
+
export interface PaginatedResponse<T> extends ApiResponse<T[]> {
|
|
12
|
+
meta: ApiMeta & PaginationMeta;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Generic API metadata.
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiMeta {
|
|
18
|
+
timestamp: string;
|
|
19
|
+
requestId?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Pagination metadata.
|
|
23
|
+
*/
|
|
24
|
+
export interface PaginationMeta {
|
|
25
|
+
page: number;
|
|
26
|
+
pageSize: number;
|
|
27
|
+
totalItems: number;
|
|
28
|
+
totalPages: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Standard API error shape.
|
|
32
|
+
*/
|
|
33
|
+
export interface ApiError {
|
|
34
|
+
code: string;
|
|
35
|
+
message: string;
|
|
36
|
+
details?: Record<string, unknown>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=api.interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.interfaces.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/api.interfaces.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,EAAE,CAAC;IAC5D,IAAI,EAAE,OAAO,GAAG,cAAc,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.interfaces.js","sourceRoot":"","sources":["../../../src/types/interfaces/api.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base entity with common fields.
|
|
3
|
+
*/
|
|
4
|
+
export interface BaseEntity {
|
|
5
|
+
id: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Identifiable entity (minimal).
|
|
11
|
+
*/
|
|
12
|
+
export interface Identifiable {
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Entities that support soft-delete.
|
|
17
|
+
*/
|
|
18
|
+
export interface SoftDeletable {
|
|
19
|
+
deletedAt?: string;
|
|
20
|
+
isDeleted: boolean;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=entity.interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.interfaces.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/entity.interfaces.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.interfaces.js","sourceRoot":"","sources":["../../../src/types/interfaces/entity.interfaces.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "u-mapsnpm",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Core utilities, Angular helpers, and shared types for U-Maps platform",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/core/index.js",
|
|
7
|
+
"types": "./dist/core/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/core/index.d.ts",
|
|
11
|
+
"import": "./dist/core/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./angular": {
|
|
14
|
+
"types": "./dist/angular/index.d.ts",
|
|
15
|
+
"import": "./dist/angular/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./types": {
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
19
|
+
"import": "./dist/types/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": ["dist"],
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"keywords": ["u-maps", "utils", "angular", "typescript", "signals", "http"],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/AkbarDAfwormo/u-maps-npm"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc -p tsconfig.lib.json",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"prepublishOnly": "npm run build"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@angular/core": ">=19.0.0",
|
|
37
|
+
"@angular/common": ">=19.0.0",
|
|
38
|
+
"rxjs": ">=7.0.0",
|
|
39
|
+
"tslib": "^2.8.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependenciesMeta": {
|
|
42
|
+
"@angular/core": { "optional": true },
|
|
43
|
+
"@angular/common": { "optional": true },
|
|
44
|
+
"rxjs": { "optional": true }
|
|
45
|
+
}
|
|
46
|
+
}
|