@dangl/angular-ava 1.1.2-beta0128 → 1.1.2-beta0137

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.
@@ -1,14 +1,12 @@
1
- import { AfterViewInit, ApplicationRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ITextWords } from '../../constants/defaultTextWords';
3
3
  import { ContextMenuDataType, IConfigurationTreeType, IElementDto, IFunctionViewLine, ModeViewType, ProjectDto, SelectedElement, ServiceSpecificationDto, TableColumnType } from '../../model';
4
- import { DynamicComponentService } from '../../services/dynamic-component.service';
5
4
  import { ExpandParentGroupService } from '../../services/expand-parent-group.service';
6
5
  import { FlatElementsService } from '../../services/flat-elements.service';
7
6
  import { IKeyboardOperationConfig, KeyboardOperationService } from '../../services/keyboard-operation.service';
8
7
  import { SelectElementService } from '../../services/select-element.service';
9
8
  import { TreeNodeSelectionService } from '../../services/tree-node-selection.service';
10
9
  import { TreeWordsService } from '../../services/tree-words.service';
11
- import { TreeHoverTooltipComponent } from '../tree-hover-tooltip/tree-hover-tooltip.component';
12
10
  import * as i0 from "@angular/core";
13
11
  export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
14
12
  private flatElementsService;
@@ -18,8 +16,6 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
18
16
  private keyboardOperationService;
19
17
  private ngZone;
20
18
  private treeWordsService;
21
- private dynamicComponentService;
22
- private appRef;
23
19
  /**
24
20
  * This is the main data element for the tree structure. You should supply a ProjectDto with
25
21
  * exactly one service specification in it.
@@ -165,7 +161,7 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
165
161
  filteredElementList: IElementDto[];
166
162
  private $destroy;
167
163
  private cdr;
168
- constructor(flatElementsService: FlatElementsService, selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, expandParentGroupService: ExpandParentGroupService, keyboardOperationService: KeyboardOperationService, ngZone: NgZone, treeWordsService: TreeWordsService, dynamicComponentService: DynamicComponentService<TreeHoverTooltipComponent>, appRef: ApplicationRef);
164
+ constructor(flatElementsService: FlatElementsService, selectElementService: SelectElementService, treeNodeSelectionService: TreeNodeSelectionService, expandParentGroupService: ExpandParentGroupService, keyboardOperationService: KeyboardOperationService, ngZone: NgZone, treeWordsService: TreeWordsService);
169
165
  ngOnInit(): void;
170
166
  ngAfterViewInit(): void;
171
167
  ngOnChanges(changes: SimpleChanges): void;
@@ -183,6 +179,6 @@ export declare class AvaTreeComponent implements OnInit, OnChanges, OnDestroy, A
183
179
  selectOrDeselectAll(value: boolean): void;
184
180
  private getFilteredList;
185
181
  private initializeEventListeners;
186
- static ɵfac: i0.ɵɵFactoryDeclaration<AvaTreeComponent, [{ self: true; }, { self: true; }, { self: true; }, { self: true; }, { self: true; }, null, null, null, null]>;
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<AvaTreeComponent, [{ self: true; }, { self: true; }, { self: true; }, { self: true; }, { self: true; }, null, null]>;
187
183
  static ɵcmp: i0.ɵɵComponentDeclaration<AvaTreeComponent, "ava-tree", never, { "project": { "alias": "project"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "selectClick": "selectClick"; "selectDblClick": "selectDblClick"; "contextMenuEvent": "contextMenuEvent"; "selectedElementsChanged": "selectedElementsChanged"; }, never, never, true, never>;
188
184
  }
@@ -1,29 +1,18 @@
1
- import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { IElementDto } from '../../model';
3
3
  import { SelectElementService } from '../../services/select-element.service';
4
4
  import * as i0 from "@angular/core";
5
- type TimeoutType = ReturnType<typeof setTimeout>;
6
5
  export declare class ListStructureComponent implements OnDestroy, OnInit {
7
6
  selectElementService: SelectElementService;
8
7
  filteredElementList: IElementDto[];
9
8
  isSelectionMode: boolean;
10
9
  selectedColor: string | null;
11
10
  allowDblClick: boolean;
12
- templates: QueryList<ElementRef<HTMLElement>>;
13
- onWindowScroll(): void;
14
11
  selectedElement: IElementDto | null;
15
12
  private $destroy;
16
- private treeHoverTooltipService;
17
- allowShow: TimeoutType | null;
18
- currentElement: HTMLElement | null;
19
13
  constructor(selectElementService: SelectElementService);
20
14
  ngOnInit(): void;
21
15
  ngOnDestroy(): void;
22
- onMouseEnter(event: MouseEvent): void;
23
- onMouseLeave(): void;
24
- onMouseUp(event: MouseEvent): void;
25
- onMouseMove(event: MouseEvent): void;
26
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ListStructureComponent, never>;
27
17
  static ɵcmp: i0.ɵɵComponentDeclaration<ListStructureComponent, "ava-list-structure", never, { "filteredElementList": { "alias": "filteredElementList"; "required": false; }; "isSelectionMode": { "alias": "isSelectionMode"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "allowDblClick": { "alias": "allowDblClick"; "required": false; }; }, {}, never, never, true, never>;
28
18
  }
29
- export {};
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { IElementDto } from '../../model';
3
3
  import { SelectingElementsType } from '../../model/selecting.model';
4
4
  import { SelectElementService } from '../../services/select-element.service';
@@ -14,6 +14,9 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
14
14
  };
15
15
  isSelectionMode: boolean;
16
16
  allowDblClick: boolean;
17
+ isSelect: boolean;
18
+ backgroundColor: string;
19
+ textElement: ElementRef<HTMLElement>;
17
20
  selectedElement: IElementDto | null;
18
21
  preselectedElement: IElementDto | null;
19
22
  private isAllowOneClick;
@@ -31,5 +34,5 @@ export declare class TreeItemComponent implements OnInit, OnDestroy {
31
34
  openContextMenu(event: MouseEvent): void;
32
35
  changeSelecting(element: IElementDto, isSelected: boolean): void;
33
36
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeItemComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemComponent, "ava-tree-item", never, { "element": { "alias": "element"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "isSelectionMode": { "alias": "isSelectionMode"; "required": false; }; "allowDblClick": { "alias": "allowDblClick"; "required": false; }; }, {}, never, never, true, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<TreeItemComponent, "ava-tree-item", never, { "element": { "alias": "element"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "isSelectionMode": { "alias": "isSelectionMode"; "required": false; }; "allowDblClick": { "alias": "allowDblClick"; "required": false; }; "isSelect": { "alias": "isSelect"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; }, {}, never, never, true, never>;
35
38
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { IElementDto } from '../../model';
3
3
  import { SelectElementService } from '../../services/select-element.service';
4
4
  import * as i0 from "@angular/core";
@@ -12,22 +12,12 @@ export declare class TreeNodeComponent implements OnDestroy, OnInit {
12
12
  isSelectionMode: boolean;
13
13
  selectedColor: string | null;
14
14
  allowDblClick: boolean;
15
- templates: QueryList<ElementRef<HTMLElement>>;
16
- onWindowScroll(): void;
17
- onCLick(): void;
18
- private treeHoverTooltipService;
19
15
  selectedElement: IElementDto | null;
20
16
  private $destroy;
21
- private allowShow;
22
- private currentElement;
23
17
  constructor(selectElementService: SelectElementService);
24
18
  ngOnInit(): void;
25
19
  ngOnDestroy(): void;
26
20
  expand(element: IElementDto): void;
27
- onMouseEnter(event: MouseEvent): void;
28
- onMouseLeave(): void;
29
- onMouseUp(event: MouseEvent): void;
30
- onMouseMove(event: MouseEvent): void;
31
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeNodeComponent, never>;
32
22
  static ɵcmp: i0.ɵɵComponentDeclaration<TreeNodeComponent, "ava-tree-node", never, { "elementList": { "alias": "elementList"; "required": false; }; "indent": { "alias": "indent"; "required": false; }; "expansionState": { "alias": "expansionState"; "required": false; }; "isSelectionMode": { "alias": "isSelectionMode"; "required": false; }; "selectedColor": { "alias": "selectedColor"; "required": false; }; "allowDblClick": { "alias": "allowDblClick"; "required": false; }; }, {}, never, never, true, never>;
33
23
  }
@@ -0,0 +1,18 @@
1
+ import { TreeItemComponent } from '../components/tree-item/tree-item.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class HoverEffectDirective {
4
+ itemText: TreeItemComponent;
5
+ private allowShow;
6
+ private treeHoverTooltipService;
7
+ onMouseEnter(): void;
8
+ onMouseUp(): void;
9
+ onWheel(): void;
10
+ onScroll(): void;
11
+ onMouseLeave(): void;
12
+ onKeyDown(): void;
13
+ onMouseOut(): void;
14
+ onMouseMove(event: MouseEvent): void;
15
+ private hide;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<HoverEffectDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HoverEffectDirective, "[avaHoverEffect]", never, { "itemText": { "alias": "avaHoverEffect"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
@@ -1,15 +1,7 @@
1
- import { ElementRef } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare class TreeHoverTooltipService {
4
- private templateSource;
5
- template$: import("rxjs").Observable<ElementRef<HTMLElement> | null>;
6
- private tooltipVisibleSource;
7
- tooltipVisible$: import("rxjs").Observable<boolean>;
8
- showTooltip(template: ElementRef<HTMLElement> | null): void;
9
- hideHoverTooltip(): void;
10
- private setTooltipVisable;
11
- showElementOver(element: HTMLElement | null): void;
12
- hideElementOver(element: HTMLElement | null): void;
3
+ showElementOver(text: HTMLElement | null): void;
4
+ hideElementOver(text: HTMLElement | null): void;
13
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeHoverTooltipService, never>;
14
6
  static ɵprov: i0.ɵɵInjectableDeclaration<TreeHoverTooltipService>;
15
7
  }
@@ -57,6 +57,7 @@ export declare class InvoiceDisplayComponent {
57
57
  */
58
58
  get textWords(): ITextWordInvoice;
59
59
  set config(configObject: IConfigurationInvoiceType);
60
+ isAttachmentDownload: boolean;
60
61
  constructor();
61
62
  download(documentValue: SupportingDocument): void;
62
63
  downloadAny(documentValue: SupportingDocument): void;
@@ -1,4 +1,5 @@
1
1
  import { ITextWordInvoice } from './invoice-words.model';
2
2
  export interface IConfigurationInvoiceType {
3
3
  textWords?: ITextWordInvoice;
4
+ isAttachmentDownload?: boolean;
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dangl/angular-ava",
3
- "version": "1.1.2-beta0128",
3
+ "version": "1.1.2-beta0137",
4
4
  "keywords": [
5
5
  "angular",
6
6
  "ava",
@@ -1,16 +0,0 @@
1
- import { ChangeDetectorRef, DestroyRef, ElementRef, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TreeHoverTooltipComponent implements OnInit {
4
- container: ElementRef;
5
- destroyRef: DestroyRef;
6
- cdr: ChangeDetectorRef;
7
- private treeHoverTooltipService;
8
- private renderer;
9
- positionY: number;
10
- positionX: number;
11
- tooltipVisible$: import("rxjs").Observable<boolean>;
12
- ngOnInit(): void;
13
- removeAllChildElements(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<TreeHoverTooltipComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<TreeHoverTooltipComponent, "ava-tree-hover-tooltip", never, {}, {}, never, never, true, never>;
16
- }
@@ -1,11 +0,0 @@
1
- import { ApplicationRef, Type } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DynamicComponentService<C> {
4
- private existingComponentRef;
5
- private appRef;
6
- constructor();
7
- createComponent(appRef: ApplicationRef, component: Type<C>): void;
8
- destroyExistingComponent(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentService<any>, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentService<any>>;
11
- }