jdev_helpers 1.4.8 → 1.4.9
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/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +9 -2
- package/dist/index.mjs +7 -1
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
2
3
|
|
|
3
4
|
declare abstract class HttpParentService {
|
|
4
5
|
protected readonly http: HttpClient;
|
|
5
6
|
constructor();
|
|
6
7
|
}
|
|
7
8
|
|
|
9
|
+
declare function formControlSetValue<T>(formControl: FormControl<T>, value: T): void;
|
|
10
|
+
|
|
8
11
|
declare const REQUEST_PARAM_PAGE_NUMBER = "pageNumber";
|
|
9
12
|
declare const REQUEST_PARAM_QUERY = "query";
|
|
10
13
|
declare const REQUEST_PARAM_LIMIT = "limit";
|
|
@@ -33,4 +36,4 @@ declare const WRITE_TO_SESSION_STORAGE: (storageName: string, obj: any) => void;
|
|
|
33
36
|
declare const READ_FROM_LOCAL_STORAGE: (storageName: string) => any;
|
|
34
37
|
declare const READ_FROM_SESSION_STORAGE: (storageName: string) => any;
|
|
35
38
|
|
|
36
|
-
export { type CustomHttpParam, HTTP_HEADER_CONTENT_TYPE, HttpParentService, MIME_TYPE_TEXT_PLAIN, OBSERVE_BODY, OBSERVE_RESPONSE, READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, REQUEST_PARAM_LIMIT, REQUEST_PARAM_LOCALE, REQUEST_PARAM_MATCH_SCORE, REQUEST_PARAM_NEXT_CURSOR, REQUEST_PARAM_PAGE_NUMBER, REQUEST_PARAM_QUERY, REQUEST_PARAM_SIMILARITY, RESPONSE_TYPE_JSON, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, addHttpParams, createHttpParams, debug };
|
|
39
|
+
export { type CustomHttpParam, HTTP_HEADER_CONTENT_TYPE, HttpParentService, MIME_TYPE_TEXT_PLAIN, OBSERVE_BODY, OBSERVE_RESPONSE, READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, REQUEST_PARAM_LIMIT, REQUEST_PARAM_LOCALE, REQUEST_PARAM_MATCH_SCORE, REQUEST_PARAM_NEXT_CURSOR, REQUEST_PARAM_PAGE_NUMBER, REQUEST_PARAM_QUERY, REQUEST_PARAM_SIMILARITY, RESPONSE_TYPE_JSON, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, addHttpParams, createHttpParams, debug, formControlSetValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
2
3
|
|
|
3
4
|
declare abstract class HttpParentService {
|
|
4
5
|
protected readonly http: HttpClient;
|
|
5
6
|
constructor();
|
|
6
7
|
}
|
|
7
8
|
|
|
9
|
+
declare function formControlSetValue<T>(formControl: FormControl<T>, value: T): void;
|
|
10
|
+
|
|
8
11
|
declare const REQUEST_PARAM_PAGE_NUMBER = "pageNumber";
|
|
9
12
|
declare const REQUEST_PARAM_QUERY = "query";
|
|
10
13
|
declare const REQUEST_PARAM_LIMIT = "limit";
|
|
@@ -33,4 +36,4 @@ declare const WRITE_TO_SESSION_STORAGE: (storageName: string, obj: any) => void;
|
|
|
33
36
|
declare const READ_FROM_LOCAL_STORAGE: (storageName: string) => any;
|
|
34
37
|
declare const READ_FROM_SESSION_STORAGE: (storageName: string) => any;
|
|
35
38
|
|
|
36
|
-
export { type CustomHttpParam, HTTP_HEADER_CONTENT_TYPE, HttpParentService, MIME_TYPE_TEXT_PLAIN, OBSERVE_BODY, OBSERVE_RESPONSE, READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, REQUEST_PARAM_LIMIT, REQUEST_PARAM_LOCALE, REQUEST_PARAM_MATCH_SCORE, REQUEST_PARAM_NEXT_CURSOR, REQUEST_PARAM_PAGE_NUMBER, REQUEST_PARAM_QUERY, REQUEST_PARAM_SIMILARITY, RESPONSE_TYPE_JSON, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, addHttpParams, createHttpParams, debug };
|
|
39
|
+
export { type CustomHttpParam, HTTP_HEADER_CONTENT_TYPE, HttpParentService, MIME_TYPE_TEXT_PLAIN, OBSERVE_BODY, OBSERVE_RESPONSE, READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, REQUEST_PARAM_LIMIT, REQUEST_PARAM_LOCALE, REQUEST_PARAM_MATCH_SCORE, REQUEST_PARAM_NEXT_CURSOR, REQUEST_PARAM_PAGE_NUMBER, REQUEST_PARAM_QUERY, REQUEST_PARAM_SIMILARITY, RESPONSE_TYPE_JSON, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, addHttpParams, createHttpParams, debug, formControlSetValue };
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,8 @@ __export(index_exports, {
|
|
|
39
39
|
WRITE_TO_SESSION_STORAGE: () => WRITE_TO_SESSION_STORAGE,
|
|
40
40
|
addHttpParams: () => addHttpParams,
|
|
41
41
|
createHttpParams: () => createHttpParams,
|
|
42
|
-
debug: () => debug
|
|
42
|
+
debug: () => debug,
|
|
43
|
+
formControlSetValue: () => formControlSetValue
|
|
43
44
|
});
|
|
44
45
|
module.exports = __toCommonJS(index_exports);
|
|
45
46
|
|
|
@@ -52,6 +53,11 @@ var HttpParentService = class {
|
|
|
52
53
|
}
|
|
53
54
|
};
|
|
54
55
|
|
|
56
|
+
// src/angular/angular-helpers.ts
|
|
57
|
+
function formControlSetValue(formControl, value) {
|
|
58
|
+
formControl.setValue(value);
|
|
59
|
+
}
|
|
60
|
+
|
|
55
61
|
// src/js/common-constants.ts
|
|
56
62
|
var REQUEST_PARAM_PAGE_NUMBER = "pageNumber";
|
|
57
63
|
var REQUEST_PARAM_QUERY = "query";
|
|
@@ -149,5 +155,6 @@ var writeToStorage = (storageName, obj, isLocalStorage) => {
|
|
|
149
155
|
WRITE_TO_SESSION_STORAGE,
|
|
150
156
|
addHttpParams,
|
|
151
157
|
createHttpParams,
|
|
152
|
-
debug
|
|
158
|
+
debug,
|
|
159
|
+
formControlSetValue
|
|
153
160
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -7,6 +7,11 @@ var HttpParentService = class {
|
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
+
// src/angular/angular-helpers.ts
|
|
11
|
+
function formControlSetValue(formControl, value) {
|
|
12
|
+
formControl.setValue(value);
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
// src/js/common-constants.ts
|
|
11
16
|
var REQUEST_PARAM_PAGE_NUMBER = "pageNumber";
|
|
12
17
|
var REQUEST_PARAM_QUERY = "query";
|
|
@@ -103,5 +108,6 @@ export {
|
|
|
103
108
|
WRITE_TO_SESSION_STORAGE,
|
|
104
109
|
addHttpParams,
|
|
105
110
|
createHttpParams,
|
|
106
|
-
debug
|
|
111
|
+
debug,
|
|
112
|
+
formControlSetValue
|
|
107
113
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jdev_helpers",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"description": "jdev helpers for js and angular",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@angular/core": "^20.0.0",
|
|
32
|
-
"@angular/common": "^20.0.0"
|
|
32
|
+
"@angular/common": "^20.0.0",
|
|
33
|
+
"@angular/forms": "^20.0.0"
|
|
33
34
|
}
|
|
34
35
|
}
|