@elderbyte/ngx-starter 14.4.0-beta.19 → 14.4.0-beta.21
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/esm2020/lib/common/data/entity-set-patch.mjs +76 -3
- package/esm2020/lib/common/json-map.mjs +3 -3
- package/esm2020/lib/components/forms/directives/elder-form-field-label.directive.mjs +31 -18
- package/fesm2015/elderbyte-ngx-starter.mjs +122 -36
- package/fesm2015/elderbyte-ngx-starter.mjs.map +1 -1
- package/fesm2020/elderbyte-ngx-starter.mjs +122 -36
- package/fesm2020/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/data/entity-set-patch.d.ts +32 -1
- package/lib/common/json-map.d.ts +1 -1
- package/lib/components/forms/directives/elder-form-field-label.directive.d.ts +19 -6
- package/package.json +1 -1
|
@@ -25,7 +25,37 @@ export declare class EntitySetPatch<ID, ItemUpdate> {
|
|
|
25
25
|
constructor(idToMapKeyFn?: (id: ID) => string | number);
|
|
26
26
|
/***************************************************************************
|
|
27
27
|
* *
|
|
28
|
-
*
|
|
28
|
+
* Query *
|
|
29
|
+
* *
|
|
30
|
+
**************************************************************************/
|
|
31
|
+
getUpsertsById(): Map<ID, ItemUpdate>;
|
|
32
|
+
getUpdatesById(): Map<ID, ItemUpdate>;
|
|
33
|
+
getUpsertOnes(): ItemUpdate[];
|
|
34
|
+
getUpdateOnes(): ItemUpdate[];
|
|
35
|
+
/**
|
|
36
|
+
* Gets all ids which should be deleted.
|
|
37
|
+
* Also consider isDeleteOther, which means
|
|
38
|
+
* everything gets deleted.
|
|
39
|
+
*/
|
|
40
|
+
collectDeletions(): ID[];
|
|
41
|
+
/**
|
|
42
|
+
* Delete all entities which are not
|
|
43
|
+
* explicitly defined in this update.
|
|
44
|
+
* "Replace with" semantics.
|
|
45
|
+
*/
|
|
46
|
+
get isDeleteOther(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Collects all upserts. (Updates are ignored)
|
|
49
|
+
*/
|
|
50
|
+
collectUpserts(): ItemUpdate[];
|
|
51
|
+
/**
|
|
52
|
+
* Collects all updates. (Upserts are ignored)
|
|
53
|
+
*/
|
|
54
|
+
collectUpdates(): ItemUpdate[];
|
|
55
|
+
collectUpdatesAndUpserts(): ItemUpdate[];
|
|
56
|
+
/***************************************************************************
|
|
57
|
+
* *
|
|
58
|
+
* Builder API *
|
|
29
59
|
* *
|
|
30
60
|
**************************************************************************/
|
|
31
61
|
update(updateOne: ItemUpdate): this;
|
|
@@ -40,4 +70,5 @@ export declare class EntitySetPatch<ID, ItemUpdate> {
|
|
|
40
70
|
deleteByIds(ids: ID[]): this;
|
|
41
71
|
deleteAllOther(): this;
|
|
42
72
|
deleteAll(): this;
|
|
73
|
+
clear(): this;
|
|
43
74
|
}
|
package/lib/common/json-map.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export declare type JsonMap<T> = {
|
|
|
3
3
|
};
|
|
4
4
|
export declare class JsonMapUtil {
|
|
5
5
|
static toJsonMap<T>(esMap: Map<string | number, T>): JsonMap<T>;
|
|
6
|
-
static toMap<T>(jsonMap: JsonMap<T
|
|
6
|
+
static toMap<T, ID = string | number>(jsonMap: JsonMap<T>, toIdFn?: ((key: string | number) => ID)): Map<ID, T>;
|
|
7
7
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit } from '@angular/core';
|
|
2
2
|
import { MatFormField } from '@angular/material/form-field';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Once declared on a MatFormField tag which includes a readonly input, the css class 'elder-form-field-label' will be added
|
|
@@ -7,9 +8,9 @@ import * as i0 from "@angular/core";
|
|
|
7
8
|
*
|
|
8
9
|
* Example Usage:
|
|
9
10
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* <mat-form-field elderFormFieldLabel>
|
|
12
|
+
* <input matInput placeholder="Readonly Input" readonly="true" value="Some Value">
|
|
13
|
+
* </mat-form-field>
|
|
13
14
|
*
|
|
14
15
|
*/
|
|
15
16
|
export declare class ElderFormFieldLabelDirective implements AfterViewInit {
|
|
@@ -20,20 +21,32 @@ export declare class ElderFormFieldLabelDirective implements AfterViewInit {
|
|
|
20
21
|
* *
|
|
21
22
|
**************************************************************************/
|
|
22
23
|
private _enabled;
|
|
23
|
-
set enabled(enabled: boolean);
|
|
24
|
-
get enabled(): boolean;
|
|
25
24
|
/***************************************************************************
|
|
26
25
|
* *
|
|
27
26
|
* Constructor *
|
|
28
27
|
* *
|
|
29
28
|
**************************************************************************/
|
|
30
29
|
constructor(_matFormField: MatFormField);
|
|
30
|
+
/***************************************************************************
|
|
31
|
+
* *
|
|
32
|
+
* Host Bindings *
|
|
33
|
+
* *
|
|
34
|
+
**************************************************************************/
|
|
35
|
+
get getFormFieldLabelStyle(): boolean;
|
|
36
|
+
/***************************************************************************
|
|
37
|
+
* *
|
|
38
|
+
* Properties *
|
|
39
|
+
* *
|
|
40
|
+
**************************************************************************/
|
|
41
|
+
set enabled(enabled: BooleanInput);
|
|
42
|
+
get enabled(): boolean;
|
|
31
43
|
/***************************************************************************
|
|
32
44
|
* *
|
|
33
45
|
* Public API *
|
|
34
46
|
* *
|
|
35
47
|
**************************************************************************/
|
|
36
|
-
|
|
48
|
+
isControlReadonly(): boolean;
|
|
49
|
+
isLabelMode(): boolean;
|
|
37
50
|
/***************************************************************************
|
|
38
51
|
* *
|
|
39
52
|
* Life Cycle *
|