@smallpearl/ngx-helper 0.33.28 → 0.33.30
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/smallpearl-ngx-helper-mat-entity-crud.mjs +474 -450
- package/fesm2022/smallpearl-ngx-helper-mat-entity-crud.mjs.map +1 -1
- package/mat-entity-crud/index.d.ts +3 -2
- package/mat-entity-crud/src/mat-entity-crud-form-base.d.ts +28 -5
- package/package.json +7 -7
- /package/mat-entity-crud/src/{context-param-to-http-context.d.ts → convert-context-input-to-http-context.d.ts} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export * from './src/convert-context-input-to-http-context';
|
|
2
|
+
export * from './src/mat-entity-crud-form-base';
|
|
1
3
|
export * from './src/mat-entity-crud-types';
|
|
2
|
-
export * from './src/providers';
|
|
3
4
|
export * from './src/mat-entity-crud.component';
|
|
4
5
|
export * from './src/preview-pane.component';
|
|
5
|
-
export * from './src/
|
|
6
|
+
export * from './src/providers';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
1
|
+
import { HttpClient, HttpContext, HttpParams } from '@angular/common/http';
|
|
2
2
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
3
|
import { AbstractControl } from '@angular/forms';
|
|
4
4
|
import { TranslocoService } from '@jsverse/transloco';
|
|
5
5
|
import { Observable, Subscription } from 'rxjs';
|
|
6
|
-
import { HttpContextInput } from './context-
|
|
6
|
+
import { HttpContextInput } from './convert-context-input-to-http-context';
|
|
7
7
|
import { SPMatEntityCrudCreateEditBridge } from './mat-entity-crud-types';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
@@ -130,8 +130,8 @@ import * as i0 from "@angular/core";
|
|
|
130
130
|
export declare abstract class SPMatEntityCrudFormBase<TFormGroup extends AbstractControl, TEntity extends {
|
|
131
131
|
[P in IdKey]: PropertyKey;
|
|
132
132
|
}, IdKey extends string = 'id'> implements OnInit, OnDestroy {
|
|
133
|
-
entity: import("@angular/core").InputSignal<TEntity | TEntity[IdKey]>;
|
|
134
|
-
bridge: import("@angular/core").InputSignal<SPMatEntityCrudCreateEditBridge>;
|
|
133
|
+
entity: import("@angular/core").InputSignal<TEntity | TEntity[IdKey] | undefined>;
|
|
134
|
+
bridge: import("@angular/core").InputSignal<SPMatEntityCrudCreateEditBridge | undefined>;
|
|
135
135
|
params: import("@angular/core").InputSignal<any>;
|
|
136
136
|
entityName: import("@angular/core").InputSignal<string | undefined>;
|
|
137
137
|
baseUrl: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -145,6 +145,7 @@ export declare abstract class SPMatEntityCrudFormBase<TFormGroup extends Abstrac
|
|
|
145
145
|
transloco: TranslocoService;
|
|
146
146
|
cdr: ChangeDetectorRef;
|
|
147
147
|
http: HttpClient;
|
|
148
|
+
mode: import("@angular/core").Signal<"standalone" | "bridge">;
|
|
148
149
|
canCancelEdit: () => boolean;
|
|
149
150
|
_canCancelEdit(): boolean;
|
|
150
151
|
ngOnInit(): void;
|
|
@@ -217,7 +218,29 @@ export declare abstract class SPMatEntityCrudFormBase<TFormGroup extends Abstrac
|
|
|
217
218
|
* @returns
|
|
218
219
|
*/
|
|
219
220
|
protected update(id: any, values: any): Observable<TEntity>;
|
|
221
|
+
/**
|
|
222
|
+
* Wrapper around entityName input to get the entity name. If `bridge` input
|
|
223
|
+
* is defined, then its `getEntityName()` method is used. This allows
|
|
224
|
+
* derived classes to override this method to provide custom logic to
|
|
225
|
+
* determine the entity name.
|
|
226
|
+
* @returns
|
|
227
|
+
*/
|
|
228
|
+
protected getEntityName(): string | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* Returns the baseUrl. Derived classes can override this to provide custom
|
|
231
|
+
* logic to determine the baseUrl.
|
|
232
|
+
* @returns
|
|
233
|
+
*/
|
|
234
|
+
protected getBaseUrl(): string | undefined;
|
|
235
|
+
/**
|
|
236
|
+
* Returns the entity URL for the given entity id. If `bridge` input is
|
|
237
|
+
* defined, then its `getEntityUrl()` method is used. Otherwise, the URL is
|
|
238
|
+
* derived from `baseUrl` input.
|
|
239
|
+
* @param entityId
|
|
240
|
+
* @returns
|
|
241
|
+
*/
|
|
220
242
|
protected getEntityUrl(entityId: any): string;
|
|
243
|
+
protected getRequestContext(): HttpContext;
|
|
221
244
|
static ɵfac: i0.ɵɵFactoryDeclaration<SPMatEntityCrudFormBase<any, any, any>, never>;
|
|
222
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SPMatEntityCrudFormBase<any, any, any>, "_#_sp-mat-entity-crud-form-base_#_", never, { "entity": { "alias": "entity"; "required":
|
|
245
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SPMatEntityCrudFormBase<any, any, any>, "_#_sp-mat-entity-crud-form-base_#_", never, { "entity": { "alias": "entity"; "required": false; "isSignal": true; }; "bridge": { "alias": "bridge"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; "entityName": { "alias": "entityName"; "required": false; "isSignal": true; }; "baseUrl": { "alias": "baseUrl"; "required": false; "isSignal": true; }; "httpReqContext": { "alias": "httpReqContext"; "required": false; "isSignal": true; }; "idKey": { "alias": "idKey"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
223
246
|
}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"path": "src/assets/i18n/"
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
|
-
"version": "0.33.
|
|
9
|
+
"version": "0.33.30",
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"@angular/common": "^19.1.0",
|
|
12
12
|
"@angular/core": "^19.1.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"types": "./entities/index.d.ts",
|
|
49
49
|
"default": "./fesm2022/smallpearl-ngx-helper-entities.mjs"
|
|
50
50
|
},
|
|
51
|
-
"./
|
|
52
|
-
"types": "./
|
|
53
|
-
"default": "./fesm2022/smallpearl-ngx-helper-
|
|
51
|
+
"./hover-dropdown": {
|
|
52
|
+
"types": "./hover-dropdown/index.d.ts",
|
|
53
|
+
"default": "./fesm2022/smallpearl-ngx-helper-hover-dropdown.mjs"
|
|
54
54
|
},
|
|
55
55
|
"./mat-busy-wheel": {
|
|
56
56
|
"types": "./mat-busy-wheel/index.d.ts",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"types": "./locale/index.d.ts",
|
|
61
61
|
"default": "./fesm2022/smallpearl-ngx-helper-locale.mjs"
|
|
62
62
|
},
|
|
63
|
-
"./
|
|
64
|
-
"types": "./
|
|
65
|
-
"default": "./fesm2022/smallpearl-ngx-helper-
|
|
63
|
+
"./entity-field": {
|
|
64
|
+
"types": "./entity-field/index.d.ts",
|
|
65
|
+
"default": "./fesm2022/smallpearl-ngx-helper-entity-field.mjs"
|
|
66
66
|
},
|
|
67
67
|
"./forms": {
|
|
68
68
|
"types": "./forms/index.d.ts",
|
|
File without changes
|