@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.
@@ -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
  * *
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "14.4.0-beta.13",
3
+ "version": "14.4.0-beta.16",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.0",
6
6
  "@angular/core": "^14.0.0",
@@ -71,6 +71,10 @@
71
71
  }
72
72
  .mat-form-field-infix {
73
73
  border: 0;
74
+ padding: 0 0 8px;
75
+ }
76
+ .mat-form-field-flex {
77
+ padding: 0;
74
78
  }
75
79
  }
76
80