@agorapulse/ui-components 13.1.9 → 13.2.1
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/agorapulse-ui-components-13.2.1.tgz +0 -0
- package/esm2020/src/lib/labels/label-list.component.mjs +25 -7
- package/esm2020/src/lib/labels/label.component.mjs +10 -4
- package/esm2020/src/lib/labels-selector/labels-selector.component.mjs +1 -1
- package/esm2020/src/lib/text-measurement/text-measurement.service.mjs +3 -3
- package/esm2020/src/lib/tooltip-neo/tooltip-neo.component.mjs +6 -6
- package/esm2020/src/lib/tooltip-neo/tooltip-neo.directive.mjs +47 -18
- package/esm2020/src/lib/tooltip-neo/tooltip-neo.model.mjs +1 -1
- package/esm2020/src/lib/tooltip-neo/tooltip-neo.service.mjs +2 -2
- package/fesm2015/agorapulse-ui-components.mjs +88 -35
- package/fesm2015/agorapulse-ui-components.mjs.map +1 -1
- package/fesm2020/agorapulse-ui-components.mjs +88 -35
- package/fesm2020/agorapulse-ui-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/labels/label-list.component.d.ts +21 -4
- package/src/lib/labels/label.component.d.ts +9 -2
- package/src/lib/tooltip-neo/tooltip-neo.component.d.ts +4 -4
- package/src/lib/tooltip-neo/tooltip-neo.directive.d.ts +9 -3
- package/src/lib/tooltip-neo/tooltip-neo.model.d.ts +1 -1
- package/src/lib/tooltip-neo/tooltip-neo.service.d.ts +1 -1
- package/agorapulse-ui-components-13.1.9.tgz +0 -0
package/package.json
CHANGED
|
@@ -6,14 +6,23 @@ export declare class LabelListComponent implements AfterContentInit, OnChanges,
|
|
|
6
6
|
private elementRef;
|
|
7
7
|
private textMeasurementService;
|
|
8
8
|
private zone;
|
|
9
|
-
labels: string
|
|
9
|
+
labels: (string | {
|
|
10
|
+
name: string;
|
|
11
|
+
})[];
|
|
12
|
+
expandable: boolean;
|
|
10
13
|
removeLabelsEnabled: boolean;
|
|
11
14
|
responsive: boolean;
|
|
12
15
|
seeLessTranslation: string;
|
|
13
16
|
removeLabel: EventEmitter<string[]>;
|
|
17
|
+
removeLabelObject: EventEmitter<{
|
|
18
|
+
name: string;
|
|
19
|
+
}[]>;
|
|
20
|
+
badgeWidth: number;
|
|
14
21
|
expanded: boolean;
|
|
15
22
|
howManyItemsLeft: number;
|
|
16
|
-
responsiveLabels: string
|
|
23
|
+
responsiveLabels: (string | {
|
|
24
|
+
name: string;
|
|
25
|
+
})[];
|
|
17
26
|
private observer;
|
|
18
27
|
private width$;
|
|
19
28
|
constructor(changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, textMeasurementService: TextMeasurementService, zone: NgZone);
|
|
@@ -22,9 +31,17 @@ export declare class LabelListComponent implements AfterContentInit, OnChanges,
|
|
|
22
31
|
ngOnDestroy(): void;
|
|
23
32
|
onExpand(): void;
|
|
24
33
|
onRemoveLabel(label: string): void;
|
|
34
|
+
onRemoveLabelObject(label: {
|
|
35
|
+
name: string;
|
|
36
|
+
}): void;
|
|
25
37
|
onResize(): void;
|
|
26
|
-
trackByLabelContent(index: any, entry: string
|
|
38
|
+
trackByLabelContent(index: any, entry: string | {
|
|
39
|
+
name: string;
|
|
40
|
+
}): string | {
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
27
43
|
private generateResponsiveLabels;
|
|
44
|
+
private getLabel;
|
|
28
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<LabelListComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LabelListComponent, "ap-label-list", never, { "labels": "labels"; "removeLabelsEnabled": "removeLabelsEnabled"; "responsive": "responsive"; "seeLessTranslation": "seeLessTranslation"; }, { "removeLabel": "removeLabel"; }, never, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LabelListComponent, "ap-label-list", never, { "labels": "labels"; "expandable": "expandable"; "removeLabelsEnabled": "removeLabelsEnabled"; "responsive": "responsive"; "seeLessTranslation": "seeLessTranslation"; }, { "removeLabel": "removeLabel"; "removeLabelObject": "removeLabelObject"; }, never, never>;
|
|
30
47
|
}
|
|
@@ -4,17 +4,24 @@ export declare class LabelComponent implements OnDestroy {
|
|
|
4
4
|
private elementRef;
|
|
5
5
|
private zone;
|
|
6
6
|
color: string | 'blue' | 'red' | 'purple' | 'orange' | 'yellow' | 'green';
|
|
7
|
-
content: string
|
|
7
|
+
content: string | {
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
8
10
|
onlyText: boolean;
|
|
9
11
|
selectorWidth: number;
|
|
10
12
|
removable: boolean;
|
|
11
13
|
remove: EventEmitter<string>;
|
|
14
|
+
removeObject: EventEmitter<{
|
|
15
|
+
name: string;
|
|
16
|
+
}>;
|
|
12
17
|
private observer;
|
|
18
|
+
label: string;
|
|
13
19
|
tooltipEnabled: boolean;
|
|
14
20
|
constructor(elementRef: ElementRef, zone: NgZone);
|
|
21
|
+
ngOnInit(): void;
|
|
15
22
|
ngAfterViewInit(): void;
|
|
16
23
|
ngOnDestroy(): void;
|
|
17
24
|
onRemoveLabel(): void;
|
|
18
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<LabelComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "ap-label", never, { "color": "color"; "content": "content"; "onlyText": "onlyText"; "selectorWidth": "selectorWidth"; "removable": "removable"; }, { "remove": "remove"; }, never, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LabelComponent, "ap-label", never, { "color": "color"; "content": "content"; "onlyText": "onlyText"; "selectorWidth": "selectorWidth"; "removable": "removable"; }, { "remove": "remove"; "removeObject": "removeObject"; }, never, never>;
|
|
20
27
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { TooltipNeoParams } from './tooltip-neo.model';
|
|
3
|
-
import { TooltipNeoService } from
|
|
3
|
+
import { TooltipNeoService } from './tooltip-neo.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TooltipNeoComponent implements OnInit {
|
|
6
|
-
private
|
|
7
|
-
private
|
|
6
|
+
private elementRef;
|
|
7
|
+
private tooltipNeoService;
|
|
8
8
|
params: TooltipNeoParams;
|
|
9
9
|
border: string;
|
|
10
|
-
constructor(
|
|
10
|
+
constructor(elementRef: ElementRef, tooltipNeoService: TooltipNeoService);
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
onClickOutside(event: any): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipNeoComponent, never>;
|
|
@@ -11,22 +11,28 @@ export declare class TooltipNeoDirective implements OnInit, OnDestroy, OnChanges
|
|
|
11
11
|
apTooltipNeo: string | TooltipNeoParams;
|
|
12
12
|
private allowDisplay;
|
|
13
13
|
private destroy$;
|
|
14
|
-
private
|
|
14
|
+
private display$;
|
|
15
15
|
private mouseEntered;
|
|
16
16
|
private overlayRef;
|
|
17
17
|
private params;
|
|
18
|
-
private show$;
|
|
19
18
|
private elementRefMouseLeave$;
|
|
20
19
|
static enableTooltip(content: string | TemplateRef<any>, contentType: string, display: boolean): boolean;
|
|
21
20
|
constructor(elementRef: ElementRef, overlay: Overlay, overlayPositionBuilder: OverlayPositionBuilder, tooltipNeoService: TooltipNeoService);
|
|
22
21
|
ngOnChanges(changes: SimpleChanges): void;
|
|
23
22
|
ngOnInit(): void;
|
|
24
23
|
ngOnDestroy(): void;
|
|
24
|
+
/**
|
|
25
|
+
* To fix issue on inbox virtual scroller, it's a manual cleaner at DOM level
|
|
26
|
+
* It checks the route and also the DOM element where it's called
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
private cleanUpPersistentTooltip;
|
|
25
30
|
private setSettings;
|
|
26
31
|
private initiateTooltip;
|
|
27
|
-
private
|
|
32
|
+
private dispose;
|
|
28
33
|
onMouseEnter(): void;
|
|
29
34
|
onMouseLeave(): void;
|
|
35
|
+
onClick(): void;
|
|
30
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipNeoDirective, never>;
|
|
31
37
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipNeoDirective, "[apTooltipNeo]", never, { "apTooltipNeo": "apTooltipNeo"; }, {}, never>;
|
|
32
38
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TooltipNeoService {
|
|
4
|
-
|
|
4
|
+
dispose$: Subject<void>;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipNeoService, never>;
|
|
6
6
|
static ɵprov: i0.ɵɵInjectableDeclaration<TooltipNeoService>;
|
|
7
7
|
}
|
|
Binary file
|