@elderbyte/ngx-starter 17.11.0-beta3 → 17.11.0-beta5

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.
@@ -15,13 +15,16 @@ import * as i0 from "@angular/core";
15
15
  export declare class ElderSearchInputDirective implements SearchInput, OnInit, AfterViewInit, OnDestroy {
16
16
  private searchContext;
17
17
  private ngModel;
18
- private readonly _initialValueDirective;
19
18
  /***************************************************************************
20
19
  * *
21
20
  * Fields *
22
21
  * *
23
22
  **************************************************************************/
24
- private _queryKey$;
23
+ private readonly log;
24
+ private readonly _initialValueDirective;
25
+ private readonly _queryKey$;
26
+ private _extractedName;
27
+ private _userQueryKey;
25
28
  /**
26
29
  * (Optional) Function which transforms the value object to a query param value
27
30
  */
@@ -39,10 +42,7 @@ export declare class ElderSearchInputDirective implements SearchInput, OnInit, A
39
42
  valueAsId: BooleanInput;
40
43
  private _inputConverter;
41
44
  private readonly _state$;
42
- private readonly _name$;
43
- private _extractedName;
44
45
  private readonly destroy$;
45
- private readonly log;
46
46
  /***************************************************************************
47
47
  * *
48
48
  * Constructor *
@@ -72,7 +72,6 @@ export declare class ElderSearchInputDirective implements SearchInput, OnInit, A
72
72
  get initialDone$(): Observable<void>;
73
73
  get state$(): Observable<SearchInputState>;
74
74
  get name(): string;
75
- get name$(): Observable<string>;
76
75
  get value(): any;
77
76
  get readonly(): boolean;
78
77
  private get hasFallback();
@@ -88,6 +87,7 @@ export declare class ElderSearchInputDirective implements SearchInput, OnInit, A
88
87
  * Private methods *
89
88
  * *
90
89
  **************************************************************************/
90
+ private updateQueryKey;
91
91
  private setInputValue;
92
92
  private get valueChanges$();
93
93
  private buildInputStateObservable;
@@ -55,11 +55,11 @@ export { ElderClearSelectDirective } from './single/elder-clear-select.directive
55
55
  export { ElderMultiSelectAllInitialDirective } from './multi/elder-mutli-select-all-directive';
56
56
  export { ElderAutoSelectSuggestFirstDirective } from './auto/elder-auto-select-suggest-first.directive';
57
57
  export { ElderChipsFilterDirective } from './filter/elder-chips-filter.directive';
58
- export { ElderFilterChipTemplate } from './filter/elder-filter-chip-template/elder-filter-chip-template.component';
58
+ export { ElderFilterChipTemplateComponent } from './filter/elder-filter-chip-template/elder-filter-chip-template.component';
59
59
  export * from './filter/include-exclude-selection-model';
60
60
  export { ElderSearchIncludeExcludeDirective } from './multi/elder-search-include-exclude.directive';
61
61
  export declare class ElderSelectModule {
62
62
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderSelectModule, never>;
63
- static ɵmod: i0.ɵɵNgModuleDeclaration<ElderSelectModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.MatFormFieldModule, typeof i4.MatIconModule, typeof i5.MatSelectModule, typeof i6.MatDialogModule, typeof i7.MatButtonModule, typeof i8.MatInputModule, typeof i9.MatAutocompleteModule, typeof i10.MatToolbarModule, typeof i11.MatProgressBarModule, typeof i12.MatProgressSpinnerModule, typeof i13.MatChipsModule, typeof i14.MatTooltipModule, typeof i15.CdkDropList, typeof i15.CdkDrag, typeof i16.TranslateModule, typeof i17.ElderFormsDirectivesModule, typeof i18.ElderTableModule, typeof i19.ElderInfiniteScrollModule, typeof i20.ElderAutocompleteModule, typeof i21.ElderPipesModule, typeof i22.ElderThemeModule, typeof i23.ElderChipsModule, typeof i1.AsyncPipe, typeof i1.AsyncPipe, typeof i24.ElderSelectComponent, typeof i25.ElderSelectValueDirective, typeof i26.TemplatedSelectionDialogComponent, typeof i27.SelectionModelPopupDirective, typeof i28.ElderSelectionPopupTriggerAdapterDirective, typeof i29.ElderSelectOnTabDirective, typeof i30.ElderMultiSelectChipsComponent, typeof i31.ElderSelectChipDirective, typeof i31.ElderSelectChipAvatarDirective, typeof i32.ElderAutoSelectFirstDirective, typeof i33.ElderClearSelectDirective, typeof i31.ElderSelectCustomInputDirective, typeof i34.ElderMultiSelectChipOptionsComponent, typeof i35.ElderSelectOptionComponent, typeof i36.ElderMultiSelectAllInitialDirective, typeof i37.ElderAutoSelectSuggestFirstDirective, typeof i38.ElderChipsFilterDirective, typeof i39.ElderFilterChipTemplate, typeof i40.ElderSearchIncludeExcludeDirective], [typeof i24.ElderSelectComponent, typeof i25.ElderSelectValueDirective, typeof i26.TemplatedSelectionDialogComponent, typeof i27.SelectionModelPopupDirective, typeof i28.ElderSelectionPopupTriggerAdapterDirective, typeof i30.ElderMultiSelectChipsComponent, typeof i31.ElderSelectChipDirective, typeof i31.ElderSelectChipAvatarDirective, typeof i32.ElderAutoSelectFirstDirective, typeof i33.ElderClearSelectDirective, typeof i31.ElderSelectCustomInputDirective, typeof i34.ElderMultiSelectChipOptionsComponent, typeof i35.ElderSelectOptionComponent, typeof i36.ElderMultiSelectAllInitialDirective, typeof i37.ElderAutoSelectSuggestFirstDirective, typeof i38.ElderChipsFilterDirective, typeof i39.ElderFilterChipTemplate, typeof i40.ElderSearchIncludeExcludeDirective]>;
63
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElderSelectModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.MatFormFieldModule, typeof i4.MatIconModule, typeof i5.MatSelectModule, typeof i6.MatDialogModule, typeof i7.MatButtonModule, typeof i8.MatInputModule, typeof i9.MatAutocompleteModule, typeof i10.MatToolbarModule, typeof i11.MatProgressBarModule, typeof i12.MatProgressSpinnerModule, typeof i13.MatChipsModule, typeof i14.MatTooltipModule, typeof i15.CdkDropList, typeof i15.CdkDrag, typeof i16.TranslateModule, typeof i17.ElderFormsDirectivesModule, typeof i18.ElderTableModule, typeof i19.ElderInfiniteScrollModule, typeof i20.ElderAutocompleteModule, typeof i21.ElderPipesModule, typeof i22.ElderThemeModule, typeof i23.ElderChipsModule, typeof i1.AsyncPipe, typeof i1.AsyncPipe, typeof i24.ElderSelectComponent, typeof i25.ElderSelectValueDirective, typeof i26.TemplatedSelectionDialogComponent, typeof i27.SelectionModelPopupDirective, typeof i28.ElderSelectionPopupTriggerAdapterDirective, typeof i29.ElderSelectOnTabDirective, typeof i30.ElderMultiSelectChipsComponent, typeof i31.ElderSelectChipDirective, typeof i31.ElderSelectChipAvatarDirective, typeof i32.ElderAutoSelectFirstDirective, typeof i33.ElderClearSelectDirective, typeof i31.ElderSelectCustomInputDirective, typeof i34.ElderMultiSelectChipOptionsComponent, typeof i35.ElderSelectOptionComponent, typeof i36.ElderMultiSelectAllInitialDirective, typeof i37.ElderAutoSelectSuggestFirstDirective, typeof i38.ElderChipsFilterDirective, typeof i39.ElderFilterChipTemplateComponent, typeof i40.ElderSearchIncludeExcludeDirective], [typeof i24.ElderSelectComponent, typeof i25.ElderSelectValueDirective, typeof i26.TemplatedSelectionDialogComponent, typeof i27.SelectionModelPopupDirective, typeof i28.ElderSelectionPopupTriggerAdapterDirective, typeof i30.ElderMultiSelectChipsComponent, typeof i31.ElderSelectChipDirective, typeof i31.ElderSelectChipAvatarDirective, typeof i32.ElderAutoSelectFirstDirective, typeof i33.ElderClearSelectDirective, typeof i31.ElderSelectCustomInputDirective, typeof i34.ElderMultiSelectChipOptionsComponent, typeof i35.ElderSelectOptionComponent, typeof i36.ElderMultiSelectAllInitialDirective, typeof i37.ElderAutoSelectSuggestFirstDirective, typeof i38.ElderChipsFilterDirective, typeof i39.ElderFilterChipTemplateComponent, typeof i40.ElderSearchIncludeExcludeDirective]>;
64
64
  static ɵinj: i0.ɵɵInjectorDeclaration<ElderSelectModule>;
65
65
  }
@@ -1,7 +1,7 @@
1
1
  import { DestroyRef, ViewContainerRef } from '@angular/core';
2
2
  import { ElderMultiSelectChipsComponent } from '../multi/elder-multi-select-chips/elder-multi-select-chips.component';
3
3
  import { ElderSearchInputDirective } from '../../forms/search/elder-search-input.directive';
4
- import { IncludeExcludeSelectionModel } from './include-exclude-selection-model';
4
+ import { IncludeExcludeCycleStrategy, IncludeExcludeSelectionModel } from './include-exclude-selection-model';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ElderChipsFilterDirective<T = any> {
7
7
  readonly elderMultiSelectChips: ElderMultiSelectChipsComponent;
@@ -22,12 +22,19 @@ export declare class ElderChipsFilterDirective<T = any> {
22
22
  * *
23
23
  **************************************************************************/
24
24
  constructor(elderMultiSelectChips: ElderMultiSelectChipsComponent, elderSearchInput: ElderSearchInputDirective, vcr: ViewContainerRef, destroyRef: DestroyRef);
25
+ /***************************************************************************
26
+ * *
27
+ * Properties *
28
+ * *
29
+ **************************************************************************/
30
+ set cycleStrategy(strategy: IncludeExcludeCycleStrategy);
25
31
  /***************************************************************************
26
32
  * *
27
33
  * Private methods *
28
34
  * *
29
35
  **************************************************************************/
30
36
  private setupFilterChips;
37
+ private createFilterChipTemplate;
31
38
  private setupElderMultiSelectChipsListeners;
32
39
  private resolveChipSpec;
33
40
  private resolveAvatar;
@@ -35,5 +42,5 @@ export declare class ElderChipsFilterDirective<T = any> {
35
42
  private findFilterEntityByEntity;
36
43
  private findFilterEntityById;
37
44
  static ɵfac: i0.ɵɵFactoryDeclaration<ElderChipsFilterDirective<any>, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<ElderChipsFilterDirective<any>, "[elderChipsFilter]", never, {}, {}, never, never, true, never>;
45
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ElderChipsFilterDirective<any>, "[elderChipsFilter]", never, { "cycleStrategy": { "alias": "cycleStrategy"; "required": false; }; }, {}, never, never, true, never>;
39
46
  }
@@ -1,21 +1,14 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
- export declare class ElderFilterChipTemplate {
4
+ export declare class ElderFilterChipTemplateComponent {
5
5
  /***************************************************************************
6
6
  * *
7
7
  * Fields *
8
8
  * *
9
9
  **************************************************************************/
10
10
  private _avatarRef$;
11
- private _bodyRef$;
12
- private _resolveAvatar$;
13
- /***************************************************************************
14
- * *
15
- * Constructor *
16
- * *
17
- **************************************************************************/
18
- constructor();
11
+ avatarResolverFn: import("@angular/core").InputSignal<(id: string) => string>;
19
12
  /***************************************************************************
20
13
  * *
21
14
  * Properties *
@@ -23,10 +16,6 @@ export declare class ElderFilterChipTemplate {
23
16
  **************************************************************************/
24
17
  set avatarRef(avatarRef: TemplateRef<any>);
25
18
  get avatarRef$(): Observable<TemplateRef<any>>;
26
- set bodyRef(avatarRef: TemplateRef<any>);
27
- get bodyRef$(): Observable<TemplateRef<any>>;
28
- set resolveAvatar(fn: (id: string) => string);
29
- get resolveAvatar$(): Observable<(id: string) => string>;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<ElderFilterChipTemplate, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<ElderFilterChipTemplate, "elder-filter-chip-template", never, {}, {}, never, never, true, never>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElderFilterChipTemplateComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ElderFilterChipTemplateComponent, "elder-filter-chip-template", never, { "avatarResolverFn": { "alias": "avatarResolverFn"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
32
21
  }
@@ -1,14 +1,15 @@
1
1
  import { Observable } from 'rxjs';
2
2
  export declare class IncludeExcludeState {
3
3
  readonly id: string;
4
- mode: IncludeExcludeMode;
5
- constructor(id: string, mode: IncludeExcludeMode);
4
+ mode: IncludeExcludeValue;
5
+ constructor(id: string, mode: IncludeExcludeValue);
6
6
  }
7
- export declare enum IncludeExcludeMode {
7
+ export declare enum IncludeExcludeValue {
8
8
  NEUTRAL = "NEUTRAL",
9
9
  INCLUDE = "INCLUDE",
10
10
  EXCLUDE = "EXCLUDE"
11
11
  }
12
+ export type IncludeExcludeCycleStrategy = 'TOGGLE' | 'FULL_CYCLE';
12
13
  export declare class IncludeExcludeSelectionModel {
13
14
  /***************************************************************************
14
15
  * *
@@ -16,7 +17,14 @@ export declare class IncludeExcludeSelectionModel {
16
17
  * *
17
18
  **************************************************************************/
18
19
  private readonly log;
20
+ private _strategy;
19
21
  private readonly stateById$;
22
+ /***************************************************************************
23
+ * *
24
+ * Constructor *
25
+ * *
26
+ **************************************************************************/
27
+ constructor(strategy: IncludeExcludeCycleStrategy);
20
28
  /***************************************************************************
21
29
  * *
22
30
  * Properties *
@@ -24,23 +32,28 @@ export declare class IncludeExcludeSelectionModel {
24
32
  **************************************************************************/
25
33
  get selection(): IncludeExcludeState[];
26
34
  get selection$(): Observable<IncludeExcludeState[]>;
35
+ get strategy(): IncludeExcludeCycleStrategy;
36
+ set strategy(strategy: IncludeExcludeCycleStrategy);
27
37
  /***************************************************************************
28
38
  * *
29
39
  * Public API *
30
40
  * *
31
41
  **************************************************************************/
32
42
  cycleExisting(id: string): IncludeExcludeState | null;
33
- initTo(ids: string[], initialMode?: IncludeExcludeMode): void;
43
+ initTo(ids: string[], initialValueOverride?: IncludeExcludeValue): void;
34
44
  replaceSelection(newStates: IncludeExcludeState[]): void;
35
- updateState(id: string, mode: IncludeExcludeMode): IncludeExcludeState;
45
+ updateState(id: string, mode: IncludeExcludeValue): IncludeExcludeState;
36
46
  updateStates(newStates: IncludeExcludeState[]): void;
37
- isInMode(id: string, mode: IncludeExcludeMode): boolean;
47
+ isInMode(id: string, mode: IncludeExcludeValue): boolean;
38
48
  findStateById(searchedId: string): IncludeExcludeState | null;
39
49
  /***************************************************************************
40
50
  * *
41
51
  * Private methods *
42
52
  * *
43
53
  **************************************************************************/
44
- private cycleFilterEntitySelection;
54
+ private initialValueByStrategy;
55
+ private nextValueByStrategy;
56
+ private nextValueToggle;
57
+ private nextValueFullCycle;
45
58
  private toStateMap;
46
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "17.11.0-beta3",
3
+ "version": "17.11.0-beta5",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^17.0.0 || ^18.0.0",
6
6
  "@angular/common": "^17.0.0 || ^18.0.0",