@messaia/cdk 13.3.8 → 13.3.10
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/chips/chips.module.mjs +7 -4
- package/esm2020/lib/chips/components/chips.component.mjs +56 -12
- package/esm2020/lib/forms/components/generic-form/generic-form.component.mjs +1 -1
- package/esm2020/lib/forms/helpers/abstract-mat-form-field.mjs +39 -13
- package/esm2020/lib/select/components/select.component.mjs +7 -6
- package/esm2020/lib/table/components/dynamic-table/dynamic-table.component.mjs +21 -3
- package/fesm2015/messaia-cdk.mjs +125 -32
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +122 -31
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/chips/chips.module.d.ts +3 -2
- package/lib/chips/components/chips.component.d.ts +25 -11
- package/lib/forms/helpers/abstract-mat-form-field.d.ts +28 -14
- package/lib/select/components/select.component.d.ts +4 -3
- package/lib/table/components/dynamic-table/dynamic-table.component.d.ts +7 -0
- package/package.json +1 -1
|
@@ -15,9 +15,10 @@ import * as i11 from "@angular/material/select";
|
|
|
15
15
|
import * as i12 from "@angular/material/autocomplete";
|
|
16
16
|
import * as i13 from "@angular/material/progress-spinner";
|
|
17
17
|
import * as i14 from "@angular/material/paginator";
|
|
18
|
-
|
|
18
|
+
import * as i15 from "@angular/material/divider";
|
|
19
|
+
export { VdAutocompleteOptionDirective, VdChipDirective };
|
|
19
20
|
export declare class VdChipsModule {
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdChipsModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VdChipsModule, [typeof i1.VdChipsComponent, typeof i2.VdAutocompleteOptionDirective, typeof i3.VdChipDirective], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.VdTableModule, typeof i7.MatChipsModule, typeof i8.MatIconModule, typeof i9.MatButtonModule, typeof i10.MatInputModule, typeof i11.MatSelectModule, typeof i12.MatAutocompleteModule, typeof i13.MatProgressSpinnerModule, typeof i14.MatPaginatorModule], [typeof i1.VdChipsComponent, typeof i2.VdAutocompleteOptionDirective, typeof i3.VdChipDirective]>;
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VdChipsModule, [typeof i1.VdChipsComponent, typeof i2.VdAutocompleteOptionDirective, typeof i3.VdChipDirective], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.VdTableModule, typeof i7.MatChipsModule, typeof i8.MatIconModule, typeof i9.MatButtonModule, typeof i10.MatInputModule, typeof i11.MatSelectModule, typeof i12.MatAutocompleteModule, typeof i13.MatProgressSpinnerModule, typeof i14.MatPaginatorModule, typeof i15.MatDividerModule], [typeof i1.VdChipsComponent, typeof i2.VdAutocompleteOptionDirective, typeof i3.VdChipDirective]>;
|
|
22
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<VdChipsModule>;
|
|
23
24
|
}
|
|
@@ -4,7 +4,7 @@ import { FormControl, FormGroupDirective, NgControl, NgForm } from '@angular/for
|
|
|
4
4
|
import { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
5
5
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
6
6
|
import { MatPaginator } from '@angular/material/paginator';
|
|
7
|
-
import { MatSort } from '@angular/material/sort';
|
|
7
|
+
import { MatSort, SortDirection } from '@angular/material/sort';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
9
|
import { BaseService, SuffixButton } from '../../common/common.module';
|
|
10
10
|
import { AbstractMatFormField } from '../../forms/helpers/abstract-mat-form-field';
|
|
@@ -55,7 +55,7 @@ export declare class VdChipsComponent extends AbstractMatFormField<any> implemen
|
|
|
55
55
|
/**
|
|
56
56
|
* Current sort direction
|
|
57
57
|
*/
|
|
58
|
-
sortDirection:
|
|
58
|
+
sortDirection: SortDirection;
|
|
59
59
|
/**
|
|
60
60
|
* Data-table datasource
|
|
61
61
|
*/
|
|
@@ -68,6 +68,10 @@ export declare class VdChipsComponent extends AbstractMatFormField<any> implemen
|
|
|
68
68
|
* Set up reactive formcontrol
|
|
69
69
|
*/
|
|
70
70
|
autoCompleteChipList: FormControl;
|
|
71
|
+
/**
|
|
72
|
+
* The select element.
|
|
73
|
+
*/
|
|
74
|
+
filterInput: ElementRef;
|
|
71
75
|
/**
|
|
72
76
|
* searchOperators: string[]
|
|
73
77
|
*/
|
|
@@ -113,12 +117,12 @@ export declare class VdChipsComponent extends AbstractMatFormField<any> implemen
|
|
|
113
117
|
/**
|
|
114
118
|
* _projection: any
|
|
115
119
|
*/
|
|
116
|
-
_projection: string;
|
|
120
|
+
_projection: string | string[];
|
|
117
121
|
/**
|
|
118
122
|
* projection: any
|
|
119
123
|
*/
|
|
120
|
-
get projection(): string;
|
|
121
|
-
set projection(projection: string);
|
|
124
|
+
get projection(): string | string[];
|
|
125
|
+
set projection(projection: string | string[]);
|
|
122
126
|
/**
|
|
123
127
|
* Gets the disabled.
|
|
124
128
|
*/
|
|
@@ -128,10 +132,19 @@ export declare class VdChipsComponent extends AbstractMatFormField<any> implemen
|
|
|
128
132
|
*/
|
|
129
133
|
_paginated: boolean;
|
|
130
134
|
/**
|
|
131
|
-
*
|
|
135
|
+
* Pagination
|
|
132
136
|
*/
|
|
133
137
|
get paginated(): boolean;
|
|
134
138
|
set paginated(paginated: boolean);
|
|
139
|
+
/**
|
|
140
|
+
* Readonly
|
|
141
|
+
*/
|
|
142
|
+
_customValue: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Custom value
|
|
145
|
+
*/
|
|
146
|
+
get customValue(): boolean;
|
|
147
|
+
set customValue(customValue: boolean);
|
|
135
148
|
/**
|
|
136
149
|
* context: any
|
|
137
150
|
* The current context
|
|
@@ -192,10 +205,6 @@ export declare class VdChipsComponent extends AbstractMatFormField<any> implemen
|
|
|
192
205
|
* Sends chip value as event.
|
|
193
206
|
*/
|
|
194
207
|
chipFocus: EventEmitter<any>;
|
|
195
|
-
/**
|
|
196
|
-
* Whether the select has a value.
|
|
197
|
-
*/
|
|
198
|
-
get empty(): boolean;
|
|
199
208
|
/**
|
|
200
209
|
* Whether the `MatFormField` label should try to float.
|
|
201
210
|
*/
|
|
@@ -247,6 +256,11 @@ export declare class VdChipsComponent extends AbstractMatFormField<any> implemen
|
|
|
247
256
|
* Sets control focus
|
|
248
257
|
*/
|
|
249
258
|
focus(): void;
|
|
259
|
+
/**
|
|
260
|
+
* Handles blur event of the input box
|
|
261
|
+
* @param event
|
|
262
|
+
*/
|
|
263
|
+
addOnBlur(event: FocusEvent): void;
|
|
250
264
|
/**
|
|
251
265
|
* Adds a chip
|
|
252
266
|
* @param event
|
|
@@ -281,5 +295,5 @@ export declare class VdChipsComponent extends AbstractMatFormField<any> implemen
|
|
|
281
295
|
*/
|
|
282
296
|
ngOnDestroy(): void;
|
|
283
297
|
static ɵfac: i0.ɵɵFactoryDeclaration<VdChipsComponent, [null, null, null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null, null]>;
|
|
284
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VdChipsComponent, "vd-chips", never, { "classType": "classType"; "chips": "chips"; "endpoint": "endpoint"; "params": "params"; "projection": "projection"; "paginated": "paginated"; "context": "context"; "key": "key"; "searchField": "searchField"; "searchFields": "searchFields"; "removable": "removable"; "debounce": "debounce"; "autocompleteCssClass": "autocompleteCssClass"; "suffixButtons": "suffixButtons"; }, { "initSelect": "initSelect"; "selected": "selected"; "cleared": "cleared"; "onLaunch": "launch"; "chipFocus": "chipFocus"; }, ["chipTemplate", "autocompleteOptionTemplate"], never>;
|
|
298
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VdChipsComponent, "vd-chips", never, { "classType": "classType"; "chips": "chips"; "endpoint": "endpoint"; "params": "params"; "projection": "projection"; "paginated": "paginated"; "customValue": "customValue"; "context": "context"; "key": "key"; "searchField": "searchField"; "searchFields": "searchFields"; "removable": "removable"; "debounce": "debounce"; "autocompleteCssClass": "autocompleteCssClass"; "suffixButtons": "suffixButtons"; }, { "initSelect": "initSelect"; "selected": "selected"; "cleared": "cleared"; "onLaunch": "launch"; "chipFocus": "chipFocus"; }, ["chipTemplate", "autocompleteOptionTemplate"], never>;
|
|
285
299
|
}
|
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
import { FocusMonitor } from "@angular/cdk/a11y";
|
|
2
|
-
import { DoCheck, ElementRef, OnDestroy } from "@angular/core";
|
|
2
|
+
import { ChangeDetectorRef, DoCheck, ElementRef, OnDestroy } from "@angular/core";
|
|
3
3
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from "@angular/forms";
|
|
4
4
|
import { ErrorStateMatcher } from "@angular/material/core";
|
|
5
5
|
import { MatFormFieldControl } from "@angular/material/form-field";
|
|
6
|
+
import { Subject } from "rxjs";
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
declare const _AbstractMatFormFieldBase: import("@angular/material/core")._Constructor<import("@angular/material/core").CanUpdateErrorState> & import("@angular/material/core")._AbstractConstructor<import("@angular/material/core").CanUpdateErrorState> & {
|
|
9
|
+
new (_defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl): {
|
|
10
|
+
/**
|
|
11
|
+
* Emits whenever the component state changes and should cause the parent
|
|
12
|
+
* form-field to update. Implemented as part of `MatFormFieldControl`.
|
|
13
|
+
* @docs-private
|
|
14
|
+
*/
|
|
15
|
+
readonly stateChanges: Subject<void>;
|
|
16
|
+
_defaultErrorStateMatcher: ErrorStateMatcher;
|
|
17
|
+
_parentForm: NgForm;
|
|
18
|
+
_parentFormGroup: FormGroupDirective;
|
|
19
|
+
/**
|
|
20
|
+
* Form control bound to the component.
|
|
21
|
+
* Implemented as part of `MatFormFieldControl`.
|
|
22
|
+
* @docs-private
|
|
23
|
+
*/
|
|
24
|
+
ngControl: NgControl;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
18
27
|
/**
|
|
19
28
|
* AbstractMatFormField class
|
|
20
29
|
*/
|
|
21
|
-
export declare abstract class AbstractMatFormField<T> extends
|
|
30
|
+
export declare abstract class AbstractMatFormField<T> extends _AbstractMatFormFieldBase implements DoCheck, OnDestroy, ControlValueAccessor, MatFormFieldControl<T> {
|
|
22
31
|
readonly controlType: string;
|
|
23
32
|
readonly ngControl: NgControl;
|
|
24
33
|
readonly _parentForm: NgForm;
|
|
@@ -26,6 +35,7 @@ export declare abstract class AbstractMatFormField<T> extends AbstractMatFormFie
|
|
|
26
35
|
readonly _defaultErrorStateMatcher: ErrorStateMatcher;
|
|
27
36
|
protected readonly _focusMonitor: FocusMonitor;
|
|
28
37
|
protected readonly _elementRef: ElementRef;
|
|
38
|
+
protected readonly changeDetectorRef: ChangeDetectorRef;
|
|
29
39
|
/**
|
|
30
40
|
* The value of the control.
|
|
31
41
|
*/
|
|
@@ -116,7 +126,7 @@ export declare abstract class AbstractMatFormField<T> extends AbstractMatFormFie
|
|
|
116
126
|
* @param _focusMonitor
|
|
117
127
|
* @param _elementRef
|
|
118
128
|
*/
|
|
119
|
-
constructor(controlType: string, ngControl: NgControl, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _defaultErrorStateMatcher: ErrorStateMatcher, _focusMonitor: FocusMonitor, _elementRef: ElementRef);
|
|
129
|
+
constructor(controlType: string, ngControl: NgControl, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, _defaultErrorStateMatcher: ErrorStateMatcher, _focusMonitor: FocusMonitor, _elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
120
130
|
/**
|
|
121
131
|
* Registers a function called when the control value changes.
|
|
122
132
|
*/
|
|
@@ -141,6 +151,10 @@ export declare abstract class AbstractMatFormField<T> extends AbstractMatFormFie
|
|
|
141
151
|
* Whether the control is focused.
|
|
142
152
|
*/
|
|
143
153
|
focused: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Whether the control is touched.
|
|
156
|
+
*/
|
|
157
|
+
touched: boolean;
|
|
144
158
|
/**
|
|
145
159
|
* Whether the control is focused.
|
|
146
160
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { AfterViewInit, ElementRef, EventEmitter, Injector } from '@angular/core';
|
|
3
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector } from '@angular/core';
|
|
4
4
|
import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
5
5
|
import { ErrorStateMatcher, MatOption } from '@angular/material/core';
|
|
6
6
|
import { MatSelect } from '@angular/material/select';
|
|
@@ -13,6 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class VdSelectComponent extends AbstractMatFormField<any> implements AfterViewInit {
|
|
15
15
|
protected injector: Injector;
|
|
16
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
16
17
|
/**
|
|
17
18
|
* The http service from to get the data
|
|
18
19
|
*/
|
|
@@ -186,7 +187,7 @@ export declare class VdSelectComponent extends AbstractMatFormField<any> impleme
|
|
|
186
187
|
* @param focusMonitor
|
|
187
188
|
* @param elementRef
|
|
188
189
|
*/
|
|
189
|
-
constructor(injector: Injector, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, focusMonitor: FocusMonitor, elementRef: ElementRef);
|
|
190
|
+
constructor(injector: Injector, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, focusMonitor: FocusMonitor, elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef);
|
|
190
191
|
/**
|
|
191
192
|
* Lifecycle hook that is called after a component's
|
|
192
193
|
* view has been fully initialized.
|
|
@@ -238,6 +239,6 @@ export declare class VdSelectComponent extends AbstractMatFormField<any> impleme
|
|
|
238
239
|
* @returns
|
|
239
240
|
*/
|
|
240
241
|
getTriggerValues(options: MatOption | MatOption[]): any;
|
|
241
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null, null]>;
|
|
242
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VdSelectComponent, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null, null, null]>;
|
|
242
243
|
static ɵcmp: i0.ɵɵComponentDeclaration<VdSelectComponent, "vd-select", never, { "multiple": "multiple"; "disabled": "disabled"; "sorted": "sorted"; "textPrefix": "textPrefix"; "endpoint": "endpoint"; "params": "params"; "projection": "projection"; "enum": "enum"; "key": "key"; "text": "text"; "prefix": "prefix"; "options": "options"; "filteredOptions": "filteredOptions"; "filterable": "filterable"; "cache": "cache"; "sortBy": "sortBy"; "mapper": "mapper"; "compareWith": "compareWith"; "searchField": "searchField"; }, { "onValueChange": "change"; "onItemChange": "itemChange"; "onSelected": "selected"; "onItemSelected": "itemSelected"; "onLaunch": "launch"; }, ["optionTemplate", "triggerTemplate"], never>;
|
|
243
244
|
}
|
|
@@ -229,6 +229,13 @@ export declare class VdDynamicTableComponent implements OnInit, AfterViewChecked
|
|
|
229
229
|
* @param column
|
|
230
230
|
*/
|
|
231
231
|
protected getVisibilityClass(column: TableColumn): any;
|
|
232
|
+
/**
|
|
233
|
+
* Gets row classes
|
|
234
|
+
* @param column
|
|
235
|
+
* @param row
|
|
236
|
+
* @returns
|
|
237
|
+
*/
|
|
238
|
+
getRowClasses(column: TableColumn, row: any): any;
|
|
232
239
|
/**
|
|
233
240
|
* Responds to user-initiated events
|
|
234
241
|
* @param event
|