@memberjunction/ng-composer 6.3.0-edge.1 → 6.3.0-edge.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/dist/lib/components/mention/mention-dropdown.component.d.ts +47 -17
- package/dist/lib/components/mention/mention-dropdown.component.d.ts.map +1 -1
- package/dist/lib/components/mention/mention-dropdown.component.js +444 -129
- package/dist/lib/components/mention/mention-dropdown.component.js.map +1 -1
- package/dist/lib/components/mention/mention-editor.component.d.ts +9 -1
- package/dist/lib/components/mention/mention-editor.component.d.ts.map +1 -1
- package/dist/lib/components/mention/mention-editor.component.js +43 -13
- package/dist/lib/components/mention/mention-editor.component.js.map +1 -1
- package/dist/lib/composer-trigger-provider.d.ts +38 -0
- package/dist/lib/composer-trigger-provider.d.ts.map +1 -1
- package/dist/lib/composer-trigger-provider.js +8 -0
- package/dist/lib/composer-trigger-provider.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,17 +1,50 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MentionSuggestion } from '../../composer-trigger-provider';
|
|
2
|
+
import { ComposerPopulationFilter, ComposerSearchField, MentionSuggestion } from '../../composer-trigger-provider';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
export interface HighlightSegment {
|
|
5
|
+
Text: string;
|
|
6
|
+
Matched: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface PopulationFilterOption {
|
|
9
|
+
Value: ComposerPopulationFilter;
|
|
10
|
+
Label: string;
|
|
11
|
+
}
|
|
12
|
+
export interface SearchFieldOption {
|
|
13
|
+
Value: ComposerSearchField;
|
|
14
|
+
Label: string;
|
|
15
|
+
ShortLabel: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Splits `text` into matched / unmatched segments for safe `<mark>` rendering without `innerHTML`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function SplitHighlightSegments(text: string, rawQuery: string): HighlightSegment[];
|
|
4
21
|
/**
|
|
5
|
-
* Dropdown component for
|
|
22
|
+
* Dropdown component for `@mention`, `#record`, and `/skill` autocomplete.
|
|
23
|
+
* For `'@'` triggers, renders an FK-inspired filter/search-field header bar,
|
|
24
|
+
* group headers (`Frequent & Recent`, `My Agents`, `Shared`, `People`),
|
|
25
|
+
* provenance/status badges (`Chat Default`, `In Thread`, `My Agent`), and safe query highlighting.
|
|
6
26
|
*/
|
|
7
27
|
export declare class MentionDropdownComponent implements OnInit, OnDestroy {
|
|
8
28
|
private _suggestions;
|
|
29
|
+
readonly PopulationFilterOptions: readonly PopulationFilterOption[];
|
|
30
|
+
readonly SearchFieldOptions: readonly SearchFieldOption[];
|
|
31
|
+
ScopeMenuOpen: boolean;
|
|
9
32
|
set Suggestions(value: MentionSuggestion[]);
|
|
10
33
|
get Suggestions(): MentionSuggestion[];
|
|
11
34
|
/** @deprecated Use {@link Suggestions}. */
|
|
12
35
|
get suggestions(): MentionSuggestion[];
|
|
13
36
|
/** @deprecated Use {@link Suggestions}. */
|
|
14
37
|
set suggestions(value: MentionSuggestion[]);
|
|
38
|
+
/** Active trigger character (`'@'`, `'#'`, `'/'`). Smart filter bar renders for `'@'`. */
|
|
39
|
+
ActiveTrigger: string;
|
|
40
|
+
/** Current typed query after the trigger character, used for safe highlight rendering. */
|
|
41
|
+
SearchQuery: string;
|
|
42
|
+
/** Active population filter for `'@'` suggestions. */
|
|
43
|
+
PopulationFilter: ComposerPopulationFilter;
|
|
44
|
+
/** Active search-field scope for `'@'` suggestions. */
|
|
45
|
+
SearchField: ComposerSearchField;
|
|
46
|
+
PopulationFilterChange: EventEmitter<ComposerPopulationFilter>;
|
|
47
|
+
SearchFieldChange: EventEmitter<ComposerSearchField>;
|
|
15
48
|
Position: {
|
|
16
49
|
top: number;
|
|
17
50
|
left: number;
|
|
@@ -48,28 +81,18 @@ export declare class MentionDropdownComponent implements OnInit, OnDestroy {
|
|
|
48
81
|
/** @deprecated Use {@link UseFixedPositioning}. */
|
|
49
82
|
get useFixedPositioning(): boolean;
|
|
50
83
|
SuggestionSelected: EventEmitter<MentionSuggestion>;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Use {@link SuggestionSelected}.
|
|
53
|
-
*
|
|
54
|
-
* The same emitter under the old binding name, so a template still binding
|
|
55
|
-
* (suggestionSelected) keeps working. Must stay AFTER SuggestionSelected: class fields
|
|
56
|
-
* initialise in order, and the other way round this captures undefined.
|
|
57
|
-
*/
|
|
84
|
+
/** @deprecated Use {@link SuggestionSelected}. */
|
|
58
85
|
suggestionSelected: EventEmitter<MentionSuggestion>;
|
|
59
86
|
Closed: EventEmitter<void>;
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated Use {@link Closed}.
|
|
62
|
-
*
|
|
63
|
-
* The same emitter under the old binding name, so a template still binding
|
|
64
|
-
* (closed) keeps working. Must stay AFTER Closed: class fields
|
|
65
|
-
* initialise in order, and the other way round this captures undefined.
|
|
66
|
-
*/
|
|
87
|
+
/** @deprecated Use {@link Closed}. */
|
|
67
88
|
closed: EventEmitter<void>;
|
|
68
89
|
SelectedIndex: number;
|
|
69
90
|
/** @deprecated Use {@link SelectedIndex}. */
|
|
70
91
|
get selectedIndex(): number;
|
|
71
92
|
/** @deprecated Use {@link SelectedIndex}. */
|
|
72
93
|
set selectedIndex(value: number);
|
|
94
|
+
get ShowSmartFilterBar(): boolean;
|
|
95
|
+
get ActiveSearchFieldLabel(): string;
|
|
73
96
|
constructor();
|
|
74
97
|
ngOnInit(): void;
|
|
75
98
|
ngOnDestroy(): void;
|
|
@@ -77,6 +100,13 @@ export declare class MentionDropdownComponent implements OnInit, OnDestroy {
|
|
|
77
100
|
* Handle keyboard navigation
|
|
78
101
|
*/
|
|
79
102
|
handleKeyDown(event: KeyboardEvent): void;
|
|
103
|
+
SelectPopulationFilter(filter: ComposerPopulationFilter, event: MouseEvent): void;
|
|
104
|
+
ToggleScopeMenu(event: MouseEvent): void;
|
|
105
|
+
SelectSearchField(field: ComposerSearchField, event: MouseEvent): void;
|
|
106
|
+
ShouldShowGroupHeader(index: number): boolean;
|
|
107
|
+
GroupCountFor(groupLabel: string): number;
|
|
108
|
+
SecondaryLineFor(suggestion: MentionSuggestion): string | null;
|
|
109
|
+
HighlightSegments(text: string): HighlightSegment[];
|
|
80
110
|
/**
|
|
81
111
|
* Select a suggestion
|
|
82
112
|
*/
|
|
@@ -106,6 +136,6 @@ export declare class MentionDropdownComponent implements OnInit, OnDestroy {
|
|
|
106
136
|
/** @deprecated Use {@link GetIconClasses}. */
|
|
107
137
|
getIconClasses(iconClass: string): string | string[];
|
|
108
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<MentionDropdownComponent, never>;
|
|
109
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MentionDropdownComponent, "mj-mention-dropdown", never, { "Suggestions": { "alias": "Suggestions"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "Position": { "alias": "Position"; "required": false; }; "position": { "alias": "position"; "required": false; }; "Visible": { "alias": "Visible"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "AlignRight": { "alias": "AlignRight"; "required": false; }; "alignRight": { "alias": "alignRight"; "required": false; }; "ShowAbove": { "alias": "ShowAbove"; "required": false; }; "showAbove": { "alias": "showAbove"; "required": false; }; "UseFixedPositioning": { "alias": "UseFixedPositioning"; "required": false; }; "useFixedPositioning": { "alias": "useFixedPositioning"; "required": false; }; }, { "SuggestionSelected": "SuggestionSelected"; "suggestionSelected": "suggestionSelected"; "Closed": "Closed"; "closed": "closed"; }, never, never, false, never>;
|
|
139
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MentionDropdownComponent, "mj-mention-dropdown", never, { "Suggestions": { "alias": "Suggestions"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "ActiveTrigger": { "alias": "ActiveTrigger"; "required": false; }; "SearchQuery": { "alias": "SearchQuery"; "required": false; }; "PopulationFilter": { "alias": "PopulationFilter"; "required": false; }; "SearchField": { "alias": "SearchField"; "required": false; }; "Position": { "alias": "Position"; "required": false; }; "position": { "alias": "position"; "required": false; }; "Visible": { "alias": "Visible"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "AlignRight": { "alias": "AlignRight"; "required": false; }; "alignRight": { "alias": "alignRight"; "required": false; }; "ShowAbove": { "alias": "ShowAbove"; "required": false; }; "showAbove": { "alias": "showAbove"; "required": false; }; "UseFixedPositioning": { "alias": "UseFixedPositioning"; "required": false; }; "useFixedPositioning": { "alias": "useFixedPositioning"; "required": false; }; }, { "PopulationFilterChange": "PopulationFilterChange"; "SearchFieldChange": "SearchFieldChange"; "SuggestionSelected": "SuggestionSelected"; "suggestionSelected": "suggestionSelected"; "Closed": "Closed"; "closed": "closed"; }, never, never, false, never>;
|
|
110
140
|
}
|
|
111
141
|
//# sourceMappingURL=mention-dropdown.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mention-dropdown.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/mention/mention-dropdown.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EACZ,MAAM,EACN,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"mention-dropdown.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/mention/mention-dropdown.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EACZ,MAAM,EACN,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,iCAAiC,CAAC;;AAEzC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,wBAAwB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iB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