@agorapulse/ui-components 13.1.10 → 13.2.2
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.2.tgz +0 -0
- package/esm2020/src/lib/directives/multi-style-text.directive.mjs +54 -22
- 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.directive.mjs +17 -14
- package/fesm2015/agorapulse-ui-components.mjs +104 -45
- package/fesm2015/agorapulse-ui-components.mjs.map +1 -1
- package/fesm2020/agorapulse-ui-components.mjs +104 -45
- package/fesm2020/agorapulse-ui-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/directives/multi-style-text.directive.d.ts +5 -4
- 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.directive.d.ts +6 -5
- package/agorapulse-ui-components-13.1.10.tgz +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Renderer2, ElementRef } from '@angular/core';
|
|
1
|
+
import { Renderer2, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* This directive aims to parse simple string to extract some specific tags and to turn them into SPAN with styling classes attributes.
|
|
5
|
-
* The specific tags must this schema: <ng-container data-mst="STYLING-CLASSES>TEXT</ng-container>.
|
|
4
|
+
* This directive aims to parse simple string to extract some specific tags and to turn them into SPAN with styling classes attributes and optional event listening.
|
|
5
|
+
* The specific tags must this schema: <ng-container data-mst="STYLING-CLASSES">TEXT</ng-container>.
|
|
6
6
|
* Example: 'Lorem <ng-container data-mst="my-style">ipsum</ng-container> dolor sit amet'.
|
|
7
7
|
*/
|
|
8
8
|
export declare class MultiStyleTextDirective {
|
|
@@ -10,9 +10,10 @@ export declare class MultiStyleTextDirective {
|
|
|
10
10
|
private renderer;
|
|
11
11
|
private childrenCreated;
|
|
12
12
|
set multiStyleText(fullText: string);
|
|
13
|
+
partEvent: EventEmitter<string>;
|
|
13
14
|
constructor(elRef: ElementRef, renderer: Renderer2);
|
|
14
15
|
private static parse;
|
|
15
16
|
private static cutFirstGroup;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiStyleTextDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MultiStyleTextDirective, "[multiStyleText]", never, { "multiStyleText": "multiStyleText"; }, {}, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MultiStyleTextDirective, "[multiStyleText]", never, { "multiStyleText": "multiStyleText"; }, { "partEvent": "partEvent"; }, never>;
|
|
18
19
|
}
|
|
@@ -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
|
}
|
|
@@ -17,15 +17,16 @@ export declare class TooltipNeoDirective implements OnInit, OnDestroy, OnChanges
|
|
|
17
17
|
private params;
|
|
18
18
|
private elementRefMouseLeave$;
|
|
19
19
|
static enableTooltip(content: string | TemplateRef<any>, contentType: string, display: boolean): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* To fix issue on inbox virtual scroller, it's a manual cleaner at DOM level
|
|
22
|
-
* @private
|
|
23
|
-
*/
|
|
24
|
-
private static cleanUpPersistentTooltip;
|
|
25
20
|
constructor(elementRef: ElementRef, overlay: Overlay, overlayPositionBuilder: OverlayPositionBuilder, tooltipNeoService: TooltipNeoService);
|
|
26
21
|
ngOnChanges(changes: SimpleChanges): void;
|
|
27
22
|
ngOnInit(): void;
|
|
28
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;
|
|
29
30
|
private setSettings;
|
|
30
31
|
private initiateTooltip;
|
|
31
32
|
private dispose;
|
|
Binary file
|