@smallpearl/ngx-helper 0.29.39 → 0.30.1
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/assets/i18n/sp-mat-entity-crud/en.json +5 -3
- package/assets/i18n/sp-mat-entity-crud/zh-hant.json +3 -1
- package/assets/i18n/sp-mat-select-entity/en.json +5 -0
- package/assets/i18n/sp-mat-select-entity/zh-hant.json +5 -0
- package/core/index.d.ts +0 -1
- package/entity-field/src/entity-field-spec.d.ts +1 -3
- package/fesm2022/smallpearl-ngx-helper-core.mjs +1 -16
- package/fesm2022/smallpearl-ngx-helper-core.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-entity-field.mjs +2 -4
- package/fesm2022/smallpearl-ngx-helper-entity-field.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-context-menu.mjs +6 -14
- package/fesm2022/smallpearl-ngx-helper-mat-context-menu.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-entity-crud.mjs +198 -178
- package/fesm2022/smallpearl-ngx-helper-mat-entity-crud.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-entity-list.mjs +48 -55
- package/fesm2022/smallpearl-ngx-helper-mat-entity-list.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-select-entity.mjs +145 -166
- package/fesm2022/smallpearl-ngx-helper-mat-select-entity.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-stationary-with-line-items.mjs +1 -4
- package/fesm2022/smallpearl-ngx-helper-stationary-with-line-items.mjs.map +1 -1
- package/mat-entity-crud/src/form-view-host.component.d.ts +2 -0
- package/mat-entity-crud/src/mat-entity-crud-form-base.d.ts +2 -0
- package/mat-entity-crud/src/mat-entity-crud-internal-types.d.ts +6 -0
- package/mat-entity-crud/src/mat-entity-crud-types.d.ts +6 -15
- package/mat-entity-crud/src/mat-entity-crud.component.d.ts +16 -5
- package/mat-entity-crud/src/preview-pane.component.d.ts +1 -4
- package/mat-entity-list/src/mat-entity-list.component.d.ts +2 -1
- package/mat-select-entity/index.d.ts +0 -1
- package/mat-select-entity/src/mat-select-entity.component.d.ts +6 -8
- package/package.json +15 -15
- package/stationary-with-line-items/src/stationary-with-line-items.component.d.ts +0 -2
- package/core/src/ngx-helper.d.ts +0 -7
- package/mat-select-entity/src/providers.d.ts +0 -9
|
@@ -5,7 +5,7 @@ import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
|
5
5
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
6
6
|
import { MatSelect, MatSelectChange } from '@angular/material/select';
|
|
7
7
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
8
|
-
import {
|
|
8
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export interface SPMatSelectEntityHttpContext {
|
|
11
11
|
entityName: string;
|
|
@@ -112,9 +112,9 @@ export declare class SPMatSelectEntityComponent<TEntity extends {
|
|
|
112
112
|
responseParserFn: import("@angular/core").InputSignal<SPMatSelectEntityResponseParser | undefined>;
|
|
113
113
|
selectionChange: EventEmitter<TEntity | TEntity[]>;
|
|
114
114
|
createNewItemSelected: EventEmitter<void>;
|
|
115
|
-
searchText: string
|
|
116
|
-
notFoundText: string
|
|
117
|
-
addItemText: string
|
|
115
|
+
readonly searchText: import("@angular/core").InputSignal<string | undefined>;
|
|
116
|
+
readonly notFoundText: import("@angular/core").InputSignal<string | undefined>;
|
|
117
|
+
readonly addItemText: import("@angular/core").InputSignal<string | undefined>;
|
|
118
118
|
/**
|
|
119
119
|
* Template for the option label. If not provided, the default label
|
|
120
120
|
* function will be used. Option label is what is placed inside the
|
|
@@ -156,18 +156,16 @@ export declare class SPMatSelectEntityComponent<TEntity extends {
|
|
|
156
156
|
static nextId: number;
|
|
157
157
|
id: string;
|
|
158
158
|
private _placeholder;
|
|
159
|
-
ngxHelperConfig: import("@smallpearl/ngx-helper/core").SPNgxHelperConfig;
|
|
160
159
|
protected http: HttpClient;
|
|
161
160
|
protected cdr: ChangeDetectorRef;
|
|
162
161
|
protected _elementRef: ElementRef<any>;
|
|
163
162
|
protected _formField: import("@angular/material/form-field").MatFormField | null;
|
|
164
|
-
protected config: SPMatSelectEntityConfig | null;
|
|
165
163
|
ngControl: NgControl | null;
|
|
164
|
+
transloco: TranslocoService;
|
|
166
165
|
constructor();
|
|
167
166
|
ngOnInit(): void;
|
|
168
167
|
ngOnDestroy(): void;
|
|
169
168
|
ngAfterViewInit(): void;
|
|
170
|
-
private _initStrings;
|
|
171
169
|
addEntity(entity: TEntity): void;
|
|
172
170
|
get selectTriggerValue(): string;
|
|
173
171
|
get selectTriggerValueAsArray(): (string | number)[];
|
|
@@ -220,6 +218,6 @@ export declare class SPMatSelectEntityComponent<TEntity extends {
|
|
|
220
218
|
private removeFromCache;
|
|
221
219
|
private getHttpReqContext;
|
|
222
220
|
static ɵfac: i0.ɵɵFactoryDeclaration<SPMatSelectEntityComponent<any, any>, never>;
|
|
223
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SPMatSelectEntityComponent<any, any>, "sp-mat-select-entity", never, { "entityLabelFn": { "alias": "entityLabelFn"; "required": true; }; "entityFilterFn": { "alias": "entityFilterFn"; "required": false; }; "idKey": { "alias": "idKey"; "required": false; }; "url": { "alias": "url"; "required": false; }; "httpParams": { "alias": "httpParams"; "required": false; }; "loadFromRemoteFn": { "alias": "loadFromRemoteFn"; "required": false; }; "inlineNew": { "alias": "inlineNew"; "required": false; }; "entityName": { "alias": "entityName"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "group": { "alias": "group"; "required": false; }; "groupOptionsKey": { "alias": "groupOptionsKey"; "required": false; }; "groupLabelFn": { "alias": "groupLabelFn"; "required": false; }; "sideloadDataKey": { "alias": "sideloadDataKey"; "required": false; "isSignal": true; }; "responseParserFn": { "alias": "responseParserFn"; "required": false; "isSignal": true; }; "searchText": { "alias": "searchText"; "required": false; }; "notFoundText": { "alias": "notFoundText"; "required": false; }; "addItemText": { "alias": "addItemText"; "required": false; }; "optionLabelTemplate": { "alias": "optionLabelTemplate"; "required": false; "isSignal": true; }; "entities": { "alias": "entities"; "required": false; }; "value": { "alias": "value"; "required": false; }; "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "createNewItemSelected": "createNewItemSelected"; }, never, never, true, never>;
|
|
221
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SPMatSelectEntityComponent<any, any>, "sp-mat-select-entity", never, { "entityLabelFn": { "alias": "entityLabelFn"; "required": true; }; "entityFilterFn": { "alias": "entityFilterFn"; "required": false; }; "idKey": { "alias": "idKey"; "required": false; }; "url": { "alias": "url"; "required": false; }; "httpParams": { "alias": "httpParams"; "required": false; }; "loadFromRemoteFn": { "alias": "loadFromRemoteFn"; "required": false; }; "inlineNew": { "alias": "inlineNew"; "required": false; }; "entityName": { "alias": "entityName"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "group": { "alias": "group"; "required": false; }; "groupOptionsKey": { "alias": "groupOptionsKey"; "required": false; }; "groupLabelFn": { "alias": "groupLabelFn"; "required": false; }; "sideloadDataKey": { "alias": "sideloadDataKey"; "required": false; "isSignal": true; }; "responseParserFn": { "alias": "responseParserFn"; "required": false; "isSignal": true; }; "searchText": { "alias": "searchText"; "required": false; "isSignal": true; }; "notFoundText": { "alias": "notFoundText"; "required": false; "isSignal": true; }; "addItemText": { "alias": "addItemText"; "required": false; "isSignal": true; }; "optionLabelTemplate": { "alias": "optionLabelTemplate"; "required": false; "isSignal": true; }; "entities": { "alias": "entities"; "required": false; }; "value": { "alias": "value"; "required": false; }; "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "createNewItemSelected": "createNewItemSelected"; }, never, never, true, never>;
|
|
224
222
|
}
|
|
225
223
|
export {};
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"path": "src/assets/i18n/"
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.30.1",
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"@angular/common": "^19.1.0",
|
|
12
12
|
"@angular/core": "^19.1.0",
|
|
@@ -47,38 +47,38 @@
|
|
|
47
47
|
"types": "./entity-field/index.d.ts",
|
|
48
48
|
"default": "./fesm2022/smallpearl-ngx-helper-entity-field.mjs"
|
|
49
49
|
},
|
|
50
|
-
"./
|
|
51
|
-
"types": "./
|
|
52
|
-
"default": "./fesm2022/smallpearl-ngx-helper-
|
|
53
|
-
},
|
|
54
|
-
"./forms": {
|
|
55
|
-
"types": "./forms/index.d.ts",
|
|
56
|
-
"default": "./fesm2022/smallpearl-ngx-helper-forms.mjs"
|
|
50
|
+
"./mat-busy-wheel": {
|
|
51
|
+
"types": "./mat-busy-wheel/index.d.ts",
|
|
52
|
+
"default": "./fesm2022/smallpearl-ngx-helper-mat-busy-wheel.mjs"
|
|
57
53
|
},
|
|
58
54
|
"./hover-dropdown": {
|
|
59
55
|
"types": "./hover-dropdown/index.d.ts",
|
|
60
56
|
"default": "./fesm2022/smallpearl-ngx-helper-hover-dropdown.mjs"
|
|
61
57
|
},
|
|
62
|
-
"./
|
|
63
|
-
"types": "./
|
|
64
|
-
"default": "./fesm2022/smallpearl-ngx-helper-
|
|
58
|
+
"./locale": {
|
|
59
|
+
"types": "./locale/index.d.ts",
|
|
60
|
+
"default": "./fesm2022/smallpearl-ngx-helper-locale.mjs"
|
|
65
61
|
},
|
|
66
62
|
"./mat-context-menu": {
|
|
67
63
|
"types": "./mat-context-menu/index.d.ts",
|
|
68
64
|
"default": "./fesm2022/smallpearl-ngx-helper-mat-context-menu.mjs"
|
|
69
65
|
},
|
|
66
|
+
"./forms": {
|
|
67
|
+
"types": "./forms/index.d.ts",
|
|
68
|
+
"default": "./fesm2022/smallpearl-ngx-helper-forms.mjs"
|
|
69
|
+
},
|
|
70
70
|
"./mat-entity-crud": {
|
|
71
71
|
"types": "./mat-entity-crud/index.d.ts",
|
|
72
72
|
"default": "./fesm2022/smallpearl-ngx-helper-mat-entity-crud.mjs"
|
|
73
73
|
},
|
|
74
|
-
"./mat-file-input": {
|
|
75
|
-
"types": "./mat-file-input/index.d.ts",
|
|
76
|
-
"default": "./fesm2022/smallpearl-ngx-helper-mat-file-input.mjs"
|
|
77
|
-
},
|
|
78
74
|
"./mat-entity-list": {
|
|
79
75
|
"types": "./mat-entity-list/index.d.ts",
|
|
80
76
|
"default": "./fesm2022/smallpearl-ngx-helper-mat-entity-list.mjs"
|
|
81
77
|
},
|
|
78
|
+
"./mat-file-input": {
|
|
79
|
+
"types": "./mat-file-input/index.d.ts",
|
|
80
|
+
"default": "./fesm2022/smallpearl-ngx-helper-mat-file-input.mjs"
|
|
81
|
+
},
|
|
82
82
|
"./mat-form-error": {
|
|
83
83
|
"types": "./mat-form-error/index.d.ts",
|
|
84
84
|
"default": "./fesm2022/smallpearl-ngx-helper-mat-form-error.mjs"
|
|
@@ -9,7 +9,6 @@ export declare class FieldsRendererComponent<TEntity extends {
|
|
|
9
9
|
fields: import("@angular/core").InputSignal<SPEntityField<TEntity, IdKey>[]>;
|
|
10
10
|
isString: import("@angular/core").Signal<boolean>;
|
|
11
11
|
stringValue: import("@angular/core").Signal<any>;
|
|
12
|
-
ngxHelperConfig: import("@smallpearl/ngx-helper/core").SPNgxHelperConfig;
|
|
13
12
|
constructor(cdr: ChangeDetectorRef);
|
|
14
13
|
ngOnInit(): void;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsRendererComponent<any, any>, never>;
|
|
@@ -57,7 +56,6 @@ export declare class StationaryWithLineItemsComponent<TEntity extends {
|
|
|
57
56
|
itemColumnFields: import("@angular/core").InputSignal<(string | SPEntityFieldSpec<TEntity, IdKey>)[] | undefined>;
|
|
58
57
|
_itemColumnFields: import("@angular/core").Signal<SPEntityField<TEntity, IdKey>[]>;
|
|
59
58
|
_items: import("@angular/core").Signal<any>;
|
|
60
|
-
ngxHelperConfig: import("@smallpearl/ngx-helper/core").SPNgxHelperConfig;
|
|
61
59
|
ngxEntityFieldConfig: import("@smallpearl/ngx-helper/entity-field").SPEntityFieldConfig;
|
|
62
60
|
constructor();
|
|
63
61
|
ngOnInit(): void;
|
package/core/src/ngx-helper.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/** Version of the ngx-helper library */
|
|
2
|
-
import { InjectionToken } from '@angular/core';
|
|
3
|
-
export interface SPNgxHelperConfig {
|
|
4
|
-
i18nTranslate: (label: string, context?: any) => string;
|
|
5
|
-
}
|
|
6
|
-
export declare const SP_NGX_HELPER_CONFIG: InjectionToken<SPNgxHelperConfig>;
|
|
7
|
-
export declare function getNgxHelperConfig(): SPNgxHelperConfig;
|