@elderbyte/ngx-starter 14.4.0-beta.13 → 14.4.0-beta.16
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/forms/elder-form-field-control-base.directive.mjs +9 -5
- package/esm2020/lib/components/forms/search/search-box/elder-search-box.component.mjs +6 -4
- package/esm2020/lib/components/select/elder-select-base.mjs +6 -5
- package/esm2020/lib/components/select/multi/elder-multi-select-base.mjs +7 -6
- package/esm2020/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.mjs +19 -18
- package/esm2020/lib/components/select/single/elder-select/elder-select.component.mjs +19 -19
- package/fesm2015/elderbyte-ngx-starter.mjs +187 -182
- package/fesm2015/elderbyte-ngx-starter.mjs.map +1 -1
- package/fesm2020/elderbyte-ngx-starter.mjs +187 -182
- package/fesm2020/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/forms/elder-form-field-control-base.directive.d.ts +3 -1
- package/lib/components/forms/search/search-box/elder-search-box.component.d.ts +2 -1
- package/lib/components/select/elder-select-base.d.ts +2 -1
- package/lib/components/select/multi/elder-multi-select-base.d.ts +2 -1
- package/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.d.ts +3 -2
- package/lib/components/select/single/elder-select/elder-select.component.d.ts +3 -2
- package/package.json +1 -1
- package/theming/_elder-common.scss +4 -0
|
@@ -5,6 +5,7 @@ import { AbstractControlDirective, NgControl } from '@angular/forms';
|
|
|
5
5
|
import { ElementRef, OnDestroy } from '@angular/core';
|
|
6
6
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
7
7
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
8
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* Base for custom material form field controls.
|
|
@@ -22,6 +23,7 @@ export declare abstract class ElderFormFieldControlBase<T> extends ValueAccessor
|
|
|
22
23
|
**************************************************************************/
|
|
23
24
|
private static nextId;
|
|
24
25
|
private readonly _focusMonitor;
|
|
26
|
+
private readonly _translate;
|
|
25
27
|
private _placeholder;
|
|
26
28
|
private _disabled;
|
|
27
29
|
private _required;
|
|
@@ -39,7 +41,7 @@ export declare abstract class ElderFormFieldControlBase<T> extends ValueAccessor
|
|
|
39
41
|
* Constructor *
|
|
40
42
|
* *
|
|
41
43
|
**************************************************************************/
|
|
42
|
-
constructor(hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, ngControl?: NgControl);
|
|
44
|
+
constructor(hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl?: NgControl);
|
|
43
45
|
/***************************************************************************
|
|
44
46
|
* *
|
|
45
47
|
* Life Cycle *
|
|
@@ -31,6 +31,7 @@ export declare class ElderSearchBoxComponent implements OnInit, OnDestroy, After
|
|
|
31
31
|
name: string;
|
|
32
32
|
queryKey: string;
|
|
33
33
|
placeholder: string;
|
|
34
|
+
label: string;
|
|
34
35
|
hint: string;
|
|
35
36
|
private _dense;
|
|
36
37
|
autocomplete: string;
|
|
@@ -67,5 +68,5 @@ export declare class ElderSearchBoxComponent implements OnInit, OnDestroy, After
|
|
|
67
68
|
*/
|
|
68
69
|
clearSearch(event: any): void;
|
|
69
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSearchBoxComponent, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ElderSearchBoxComponent, "elder-search-box", ["elderSearchBox"], { "autoPanel": "autoPanel"; "name": "name"; "queryKey": "queryKey"; "placeholder": "placeholder"; "hint": "hint"; "autocomplete": "autocomplete"; "dense": "dense"; }, {}, ["advancedSearch"], ["elder-search-panel"], false>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ElderSearchBoxComponent, "elder-search-box", ["elderSearchBox"], { "autoPanel": "autoPanel"; "name": "name"; "queryKey": "queryKey"; "placeholder": "placeholder"; "label": "label"; "hint": "hint"; "autocomplete": "autocomplete"; "dense": "dense"; }, {}, ["advancedSearch"], ["elder-search-panel"], false>;
|
|
71
72
|
}
|
|
@@ -10,6 +10,7 @@ import { BooleanInput } from '@angular/cdk/coercion';
|
|
|
10
10
|
import { ElderFormFieldControlBase } from '../../common/forms/elder-form-field-control-base.directive';
|
|
11
11
|
import { NgControl } from '@angular/forms';
|
|
12
12
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
13
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare type TextResolverFn = (value: any) => string;
|
|
15
16
|
export declare class ElderSelectComponentState {
|
|
@@ -87,7 +88,7 @@ export declare abstract class ElderSelectBase<TId, TEntity, TValue> extends Elde
|
|
|
87
88
|
* Constructor *
|
|
88
89
|
* *
|
|
89
90
|
**************************************************************************/
|
|
90
|
-
protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, ngControl?: NgControl);
|
|
91
|
+
protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl?: NgControl);
|
|
91
92
|
/***************************************************************************
|
|
92
93
|
* *
|
|
93
94
|
* Properties *
|
|
@@ -7,6 +7,7 @@ import { FocusMonitor } from '@angular/cdk/a11y';
|
|
|
7
7
|
import { IElderMultiEntityValueAccessor } from '../../../common/forms/elder-multi-entity-value-accessor';
|
|
8
8
|
import { Sort } from '../../../common/data/sort';
|
|
9
9
|
import { ElderDialogService } from '../../dialogs/elder-dialog.service';
|
|
10
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* Base component implementation of elder-multi-select.
|
|
@@ -55,7 +56,7 @@ export declare abstract class ElderMultiSelectBase<TId, TEntity, TValue> extends
|
|
|
55
56
|
* Constructor *
|
|
56
57
|
* *
|
|
57
58
|
**************************************************************************/
|
|
58
|
-
protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, dialogService: ElderDialogService, ngControl?: NgControl);
|
|
59
|
+
protected constructor(zone: NgZone, hostRef: ElementRef, controlType: string, focusMonitor: FocusMonitor, translateService: TranslateService, dialogService: ElderDialogService, ngControl?: NgControl);
|
|
59
60
|
private awaitEntitiesWithId;
|
|
60
61
|
/***************************************************************************
|
|
61
62
|
* *
|
package/lib/components/select/multi/elder-multi-select-chips/elder-multi-select-chips.component.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ThemePalette } from '@angular/material/core';
|
|
|
5
5
|
import { NgControl } from '@angular/forms';
|
|
6
6
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
7
7
|
import { ElderDialogService } from '../../../dialogs/elder-dialog.service';
|
|
8
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
declare class ChipModel<T> {
|
|
10
11
|
readonly value: T;
|
|
@@ -36,7 +37,7 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
|
|
|
36
37
|
* Constructor *
|
|
37
38
|
* *
|
|
38
39
|
**************************************************************************/
|
|
39
|
-
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, dialogService: ElderDialogService, ngControl: NgControl);
|
|
40
|
+
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, dialogService: ElderDialogService, ngControl: NgControl);
|
|
40
41
|
/***************************************************************************
|
|
41
42
|
* *
|
|
42
43
|
* Host Bindings *
|
|
@@ -82,7 +83,7 @@ export declare class ElderMultiSelectChipsComponent<TId = any, TEntity = any, TV
|
|
|
82
83
|
private buildChipModelsOrFallback;
|
|
83
84
|
private buildChipFallbackModels;
|
|
84
85
|
private buildChipModels;
|
|
85
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMultiSelectChipsComponent<any, any, any>, [null, null, null, null, { optional: true; self: true; }]>;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderMultiSelectChipsComponent<any, any, any>, [null, null, null, null, null, { optional: true; self: true; }]>;
|
|
86
87
|
static ɵcmp: i0.ɵɵComponentDeclaration<ElderMultiSelectChipsComponent<any, any, any>, "elder-multi-select-chips", never, { "allowRemove": "allowRemove"; "chipTemplate": "chipTemplate"; "chipAvatarTemplate": "chipAvatarTemplate"; "customInputTemplate": "customInputTemplate"; "chipColorEnabled": "chipColorEnabled"; "chipColorResolver": "chipColorResolver"; }, {}, ["chipTemplateQuery", "chipAvatarTemplateQuery", "customInputTemplateQuery"], never, false>;
|
|
87
88
|
}
|
|
88
89
|
export {};
|
|
@@ -7,6 +7,7 @@ import { ElderSelectBase } from '../../elder-select-base';
|
|
|
7
7
|
import { IElderEntityValueAccessor } from '../../../../common/forms/elder-entity-value-accessor';
|
|
8
8
|
import { NgControl } from '@angular/forms';
|
|
9
9
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
10
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
declare class EntityContext<T> {
|
|
12
13
|
readonly value: T;
|
|
@@ -59,7 +60,7 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
|
|
|
59
60
|
* Constructor *
|
|
60
61
|
* *
|
|
61
62
|
**************************************************************************/
|
|
62
|
-
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, ngControl: NgControl);
|
|
63
|
+
constructor(hostRef: ElementRef, zone: NgZone, focusMonitor: FocusMonitor, translateService: TranslateService, ngControl: NgControl);
|
|
63
64
|
/***************************************************************************
|
|
64
65
|
* *
|
|
65
66
|
* Life Cycle *
|
|
@@ -147,7 +148,7 @@ export declare class ElderSelectComponent<TEntity = any, TId = any, TValue = TEn
|
|
|
147
148
|
*
|
|
148
149
|
*/
|
|
149
150
|
protected writeToControl(value: TValue): void;
|
|
150
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectComponent<any, any, any>, [null, null, null, { optional: true; self: true; }]>;
|
|
151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectComponent<any, any, any>, [null, null, null, null, { optional: true; self: true; }]>;
|
|
151
152
|
static ɵcmp: i0.ɵɵComponentDeclaration<ElderSelectComponent<any, any, any>, "elder-select", never, { "nullDisplay": "nullDisplay"; "autocomplete": "autocomplete"; "allowNull": "allowNull"; "entity": "entity"; "entityId": "entityId"; }, { "entityIdChange": "entityIdChange"; "entityIdUpdated": "entityIdUpdated"; "entityChange": "entityChange"; "entityUpdated": "entityUpdated"; }, never, never, false>;
|
|
152
153
|
}
|
|
153
154
|
export {};
|
package/package.json
CHANGED