tailjng 0.0.57 → 0.0.58
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/cli/settings/header-generator.js +1 -1
- package/fesm2022/tailjng.mjs +14 -0
- package/fesm2022/tailjng.mjs.map +1 -1
- package/lib/services/crud/generic-crud.service.d.ts +14 -0
- package/package.json +1 -1
- package/src/lib/components/alert/alert-dialog/dialog-alert.component.html +1 -1
- package/src/lib/components/card/card-complete/complete-card.component.ts +8 -0
- package/src/lib/components/card/card-crud-complete/complete-crud-card.component.html +1 -1
- package/src/lib/components/card/card-crud-complete/complete-crud-card.component.ts +46 -0
- package/src/lib/components/coach-mark/coach-mark.component.html +10 -4
- package/src/lib/components/coach-mark/coach-mark.component.scss +3 -2
- package/src/lib/components/coach-mark/coach-mark.component.ts +7 -1
- package/src/lib/components/coach-mark/coach-mark.directive.ts +208 -225
- package/src/lib/components/color/colors.service.ts +63 -12
- package/src/lib/components/filter/filter-complete/complete-filter.component.html +1 -1
- package/src/lib/components/input/input-file/file-input.component.ts +1 -1
- package/src/lib/components/table/table-complete/complete-table.component.html +1 -1
- package/src/lib/components/tooltip/tooltip.service.ts +31 -1
package/fesm2022/tailjng.mjs
CHANGED
|
@@ -963,6 +963,20 @@ class JGenericCrudService {
|
|
|
963
963
|
const url = urlBase ? `${urlBase}/${endpoint}` : `${this.config.urlBase}/${endpoint}`;
|
|
964
964
|
return this.http.get(`${url}/${id}`).pipe(map(response => response.data[endpoint]));
|
|
965
965
|
}
|
|
966
|
+
/**
|
|
967
|
+
* Method to count the records of an endpoint.
|
|
968
|
+
* @param urlBase Base URL for the request.
|
|
969
|
+
* @param endpoint Distinctive of the endpoint ('role', 'status', etc.)
|
|
970
|
+
* @param params Parameters of the request.
|
|
971
|
+
* @returns Observable with the API response.
|
|
972
|
+
*/
|
|
973
|
+
count({ urlBase, endpoint, params }) {
|
|
974
|
+
const url = urlBase ? `${urlBase}/${endpoint}` : `${this.config.urlBase}/${endpoint}`;
|
|
975
|
+
let httpParams;
|
|
976
|
+
if (params)
|
|
977
|
+
httpParams = this.paramsHttpService.resParams(params);
|
|
978
|
+
return this.http.get(`${url}/count`, { params: httpParams });
|
|
979
|
+
}
|
|
966
980
|
/**
|
|
967
981
|
* Method to create a record in an endpoint.
|
|
968
982
|
* @param urlBase Base URL for the request.
|