@memberjunction/ng-composer 6.3.0-edge.0 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"mention-dropdown.component.js","sourceRoot":"","sources":["../../../../src/lib/components/mention/mention-dropdown.component.ts","../../../../src/lib/components/mention/mention-dropdown.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EAGZ,YAAY,EACb,MAAM,eAAe,CAAC;;;;;ICgBP,yBAII;;;IAFF,AADA,8DAA2B,kCACG;;;IAMhC,uBAEK;;;;IADH,mEAA2C;;;IAK7C,uBAEK;;;IAIL,uBAEK;;;;IADH,0FAAkE;;;IAKpE,uBAEK;;;;IADH,6FAAqE;;;IAKvE,uBAEK;;;;IADH,wGAAgF;;;IAOhF,gCAAoC;IAAA,qBAAK;IAAA,iBAAO;;;IAGhD,gCAAyC;IAAA,oBAAI;IAAA,iBAAO;;;IAGpD,gCAA2C;IAAA,sBAAM;IAAA,iBAAO;;;IAGxD,gCAA0C;IAAA,qBAAK;IAAA,iBAAO;;;IAGtD,gCACoD;IAAA,qBAAK;IAAA,iBAAO;;;IAA1D,yDAA6C;;;IAKrD,+BAAoC;IAClC,YACF;IAAA,iBAAM;;;IADJ,cACF;IADE,0DACF;;;;IAvEN,8BAKG;IADD,AADA,sOAAa,sCAA4B,wBAAE,uBAAuB,KAAC,+QACnC;IAEhC,8BAE0F;IAExF,4HAA0D;IAQ1D,0HAA8E;IAM9E,0HAAkC;IAMlC,0HAAoC;IAMpC,0HAAmC;IAMnC,0HAAmC;IAKrC,iBAAM;IAEJ,AADF,+BAAgC,cACD;IAC3B,gIAAmC;IAGnC,gIAAkC;IAGlC,gIAAoC;IAGpC,gIAAmC;IAGnC,gIAAmC;IAInC,aACF;IAAA,iBAAM;IACN,+HAA8B;IAMlC,AADE,iBAAM,EACF;;;;;IAxEJ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SAAiB;QAC9B,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,mBAAmB,CAAC,CAAC,mBAAmB;QACjD,CAAC;QAED,4EAA4E;QAC5E,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,0DAA0D;YAC1D,IAAI,SAAS,CAAC,KAAK,CAAC,8CAA8C,CAAC,EAAE,CAAC;gBACpE,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,gCAAgC;YAChC,OAAO,YAAY,SAAS,EAAE,CAAC;QACjC,CAAC;QAED,6DAA6D;QAC7D,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,8CAA8C;IAC9C,cAAc,CAAC,SAAiB;QAC9B,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC;kHAhOU,wBAAwB;6DAAxB,wBAAwB;YAAxB,uGAAA,yBAAqB,0BAAG;;YCvBrC,2FAAe;;YAAf,sCAoGC;;;iFD7EY,wBAAwB;cATpC,SAAS;6BACI,KAAK,YACP,qBAAqB;;kBAU9B,KAAK;;kBAgBL,KAAK;;kBAIL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAQL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAQL,MAAM;;kBASN,MAAM;;kBACN,MAAM;;kBASN,MAAM;;kBAsBN,YAAY;mBAAC,kBAAkB,EAAE,CAAC,QAAQ,CAAC;;kFApHjC,wBAAwB","sourcesContent":["import {\n Component,\n Input,\n Output,\n EventEmitter,\n OnInit,\n OnDestroy,\n HostListener\n} from '@angular/core';\nimport { MentionSuggestion } from '../../composer-trigger-provider';\n\n/**\n * Dropdown component for @mention autocomplete\n */\n@Component({\n standalone: false,\n selector: 'mj-mention-dropdown',\n templateUrl: './mention-dropdown.component.html',\n styleUrls: [\n './mention-dropdown.component.css',\n './custom-agent-icons.css'\n ]\n})\nexport class MentionDropdownComponent implements OnInit, OnDestroy {\n private _suggestions: MentionSuggestion[] = [];\n\n @Input()\n set Suggestions(value: MentionSuggestion[]) {\n this._suggestions = value;\n // Always reset selection to first item when suggestions change\n // so there's never a state where nothing is selected\n this.SelectedIndex = 0;\n }\n get Suggestions(): MentionSuggestion[] {\n return this._suggestions;\n }\n\n /** @deprecated Use {@link Suggestions}. */\n get suggestions(): MentionSuggestion[] {\n return this.Suggestions;\n }\n /** @deprecated Use {@link Suggestions}. */\n @Input() set suggestions(value: MentionSuggestion[]) {\n this.Suggestions = value;\n }\n\n @Input() Position: { top: number; left: number } = { top: 0, left: 0 };\n\n /** @deprecated Use {@link Position}. */\n @Input() set position(value: { top: number; left: number }) {\n this.Position = value;\n }\n /** @deprecated Use {@link Position}. */\n get position(): { top: number; left: number } {\n return this.Position;\n }\n @Input() Visible: boolean = false;\n\n /** @deprecated Use {@link Visible}. */\n @Input() set visible(value: boolean) {\n this.Visible = value;\n }\n /** @deprecated Use {@link Visible}. */\n get visible(): boolean {\n return this.Visible;\n }\n /** Right-align against the anchor (button-opened triggers). Composes with showAbove in CSS. */\n @Input() AlignRight = false;\n\n /** @deprecated Use {@link AlignRight}. */\n @Input() set alignRight(value: MentionDropdownComponent['AlignRight']) {\n this.AlignRight = value;\n }\n /** @deprecated Use {@link AlignRight}. */\n get alignRight(): MentionDropdownComponent['AlignRight'] {\n return this.AlignRight;\n }\n @Input() ShowAbove: boolean = false;\n\n /** @deprecated Use {@link ShowAbove}. */\n @Input() set showAbove(value: boolean) {\n this.ShowAbove = value;\n }\n /** @deprecated Use {@link ShowAbove}. */\n get showAbove(): boolean {\n return this.ShowAbove;\n } // Controls whether dropdown grows upward\n @Input() UseFixedPositioning: boolean = false;\n\n /** @deprecated Use {@link UseFixedPositioning}. */\n @Input() set useFixedPositioning(value: boolean) {\n this.UseFixedPositioning = value;\n }\n /** @deprecated Use {@link UseFixedPositioning}. */\n get useFixedPositioning(): boolean {\n return this.UseFixedPositioning;\n } // Use fixed positioning to escape parent containers\n\n @Output() SuggestionSelected = new EventEmitter<MentionSuggestion>();\n\n /**\n * @deprecated Use {@link SuggestionSelected}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (suggestionSelected) keeps working. Must stay AFTER SuggestionSelected: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() suggestionSelected = this.SuggestionSelected;\n @Output() Closed = new EventEmitter<void>();\n\n /**\n * @deprecated Use {@link Closed}.\n *\n * The same emitter under the old binding name, so a template still binding\n * (closed) keeps working. Must stay AFTER Closed: class fields\n * initialise in order, and the other way round this captures undefined.\n */\n @Output() closed = this.Closed;\n\n public SelectedIndex: number = 0;\n\n /** @deprecated Use {@link SelectedIndex}. */\n public get selectedIndex(): number {\n return this.SelectedIndex;\n }\n /** @deprecated Use {@link SelectedIndex}. */\n public set selectedIndex(value: number) {\n this.SelectedIndex = value;\n }\n\n constructor() {}\n\n ngOnInit(): void {}\n\n ngOnDestroy(): void {}\n\n /**\n * Handle keyboard navigation\n */\n @HostListener('document:keydown', ['$event'])\n handleKeyDown(event: KeyboardEvent): void {\n if (!this.Visible) return;\n // Escape is handled before the emptiness guard. A button-opened dropdown stays open on an empty\n // result set, and in that state every key below was dead — leaving the button press or a click\n // away as the only exits, neither of which a user has reason to guess.\n if (event.key === 'Escape') {\n event.preventDefault();\n this.close();\n return;\n }\n if (this.Suggestions.length === 0) return;\n\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.SelectedIndex = Math.min(this.SelectedIndex + 1, this.Suggestions.length - 1);\n this.scrollToSelected();\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.SelectedIndex = Math.max(this.SelectedIndex - 1, 0);\n this.scrollToSelected();\n break;\n case 'Enter':\n case 'Tab':\n event.preventDefault();\n if (this.Suggestions[this.SelectedIndex]) {\n this.SelectSuggestion(this.Suggestions[this.SelectedIndex]);\n }\n break;\n case 'Escape':\n event.preventDefault();\n this.close();\n break;\n }\n }\n\n /**\n * Select a suggestion\n */\n SelectSuggestion(suggestion: MentionSuggestion): void {\n this.SuggestionSelected.emit(suggestion);\n }\n\n /** @deprecated Use {@link SelectSuggestion}. */\n selectSuggestion(suggestion: MentionSuggestion): void {\n return this.SelectSuggestion(suggestion);\n }\n\n /**\n * close the dropdown\n */\n close(): void {\n this.Closed.emit();\n }\n\n /**\n * Scroll to selected item\n */\n private scrollToSelected(): void {\n setTimeout(() => {\n const selected = document.querySelector('.mention-suggestion.selected');\n if (selected) {\n selected.scrollIntoView({ block: 'nearest', behavior: 'smooth' });\n }\n }, 0);\n }\n\n /**\n * Track by function for ngFor\n */\n TrackBySuggestion(index: number, item: MentionSuggestion): string {\n return item.id;\n }\n\n /** @deprecated Use {@link TrackBySuggestion}. */\n trackBySuggestion(index: number, item: MentionSuggestion): string {\n return this.TrackBySuggestion(index, item);\n }\n\n /**\n * Get icon classes - supports both Font Awesome and custom CSS classes\n * Font Awesome icons start with 'fa-' (e.g., 'fa-solid fa-robot')\n * Custom icons use their own prefix (e.g., 'mj-icon-skip', 'acme-icon-custom')\n */\n GetIconClasses(iconClass: string): string | string[] {\n if (!iconClass) {\n return 'fa-solid fa-robot'; // Default fallback\n }\n\n // If it's a Font Awesome icon (contains 'fa-'), add fa-solid if not present\n if (iconClass.includes('fa-')) {\n // If it already has fa-solid, fa-regular, etc., use as-is\n if (iconClass.match(/\\b(fa-solid|fa-regular|fa-light|fa-brands)\\b/)) {\n return iconClass;\n }\n // Otherwise add fa-solid prefix\n return `fa-solid ${iconClass}`;\n }\n\n // For custom icons (mj-icon-*, acme-icon-*, etc.), use as-is\n return iconClass;\n }\n\n /** @deprecated Use {@link GetIconClasses}. */\n getIconClasses(iconClass: string): string | string[] {\n return this.GetIconClasses(iconClass);\n }\n}\n","@if (visible) {\n <div\n class=\"mention-dropdown\"\n [class.show-above]=\"showAbove\"\n [class.align-right]=\"alignRight\"\n [class.fixed-position]=\"useFixedPositioning\"\n [style.top.px]=\"position.top\"\n [style.left.px]=\"position.left\"\n >\n <!-- suggestions List -->\n @if (suggestions.length > 0) {\n <div class=\"mention-suggestions\">\n @for (suggestion of suggestions; track trackBySuggestion(i, suggestion); let i = $index) {\n <div\n class=\"mention-suggestion\"\n [class.selected]=\"i === selectedIndex\"\n (mousedown)=\"selectSuggestion(suggestion); $event.preventDefault()\"\n (mouseenter)=\"selectedIndex = i\"\n >\n <div class=\"suggestion-icon\"\n [class.skill]=\"suggestion.type === 'skill'\"\n [style.background]=\"suggestion.type === 'skill' ? (suggestion.color || null) : null\">\n <!-- Agent with LogoURL image (takes precedence) -->\n @if (suggestion.type === 'agent' && suggestion.imageUrl) {\n <img\n [src]=\"suggestion.imageUrl\"\n [alt]=\"suggestion.displayName\"\n class=\"suggestion-image\"\n />\n }\n <!-- Agent with icon class (fallback) -->\n @if (suggestion.type === 'agent' && !suggestion.imageUrl && suggestion.icon) {\n <i\n [ngClass]=\"getIconClasses(suggestion.icon)\"\n ></i>\n }\n <!-- User icon -->\n @if (suggestion.type === 'user') {\n <i\n class=\"fa-solid fa-user\"\n ></i>\n }\n <!-- Entity icon -->\n @if (suggestion.type === 'entity') {\n <i\n [ngClass]=\"getIconClasses(suggestion.icon || 'fa-solid fa-table')\"\n ></i>\n }\n <!-- Query icon (generic, from 'MJ: Queries' entity) -->\n @if (suggestion.type === 'query') {\n <i\n [ngClass]=\"getIconClasses(suggestion.icon || 'fa-solid fa-database')\"\n ></i>\n }\n <!-- Skill icon — container carries the skill's accent Color (green fallback) -->\n @if (suggestion.type === 'skill') {\n <i\n [ngClass]=\"getIconClasses(suggestion.icon || 'fa-solid fa-wand-magic-sparkles')\"\n ></i>\n }\n </div>\n <div class=\"suggestion-content\">\n <div class=\"suggestion-name\">\n @if (suggestion.type === 'agent') {\n <span class=\"suggestion-type-badge\">Agent</span>\n }\n @if (suggestion.type === 'user') {\n <span class=\"suggestion-type-badge user\">User</span>\n }\n @if (suggestion.type === 'entity') {\n <span class=\"suggestion-type-badge entity\">Entity</span>\n }\n @if (suggestion.type === 'query') {\n <span class=\"suggestion-type-badge query\">Query</span>\n }\n @if (suggestion.type === 'skill') {\n <span class=\"suggestion-type-badge skill\"\n [style.background]=\"suggestion.color || null\">Skill</span>\n }\n {{ suggestion.displayName }}\n </div>\n @if (suggestion.description) {\n <div class=\"suggestion-description\">\n {{ suggestion.description }}\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n <!-- Empty State -->\n @if (suggestions.length === 0) {\n <mj-empty-state\n Variant=\"no-results\"\n Size=\"compact\"\n Icon=\"fa-solid fa-robot\"\n Title=\"No matches found\" />\n }\n </div>\n}\n"]}
1
+ {"version":3,"file":"mention-dropdown.component.js","sourceRoot":"","sources":["../../../../src/lib/components/mention/mention-dropdown.component.ts","../../../../src/lib/components/mention/mention-dropdown.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EAGZ,YAAY,EACb,MAAM,eAAe,CAAC;;;;;;;ICOX,kCAK0D;IAAxD,wPAAa,mDAAyC,KAAC;IACvD,YACF;IAAA,iBAAS;;;;IAJP,oFAAiE;;IAGjE,cACF;IADE,6CACF;;;IA6BQ,wBAAoD;;;;IATxD,kCAMqD;IAAnD,uQAAa,8CAAoC,KAAC;IAClD,4BAAM;IAAA,YAAe;IAAA,iBAAO;IAC5B,0IAAiC;IAGnC,iBAAS;;;;IAPP,mFAAgE;;IAG1D,eAAe;IAAf,kCAAe;IACrB,cAEC;IAFD,8DAEC;;;IAZP,+BAA4E;IAC1E,0IAaC;IACH,iBAAM;;;IAdJ,cAaC;IAbD,wCAaC;;;;IA1CT,8BAAmE;IAAtC,4IAAa,uBAAuB,IAAC;IAChE,8BAAmF;IACjF,0HASC;IACH,iBAAM;IAGJ,AADF,8BAAmC,gBAOO;IAAtC,yNAAa,8BAAuB,KAAC;IACrC,wBAA+D;IAC/D,4BAAM;IAAA,YAA4B;IAAA,iBAAO;IACzC,wBAAyD;IAC3D,iBAAS;IAET,yHAAqB;IAmBzB,AADE,iB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AAC,8CAA8C,CAAC,EAAE,CAAC;gBACpE,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,OAAO,YAAY,SAAS,EAAE,CAAC;QACjC,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,8CAA8C;IAC9C,cAAc,CAAC,SAAiB;QAC9B,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC;kHA9SU,wBAAwB;6DAAxB,wBAAwB;YAAxB,uGAAA,yBAAqB,0BAAG;;YChGrC,2FAAe;;YAAf,sCA0KC;;;iFD1EY,wBAAwB;cATpC,SAAS;6BACI,KAAK,YACP,qBAAqB;;kBAc9B,KAAK;;kBAgBL,KAAK;;kBAKL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAEL,MAAM;;kBACN,MAAM;;kBAEN,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAQL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAOL,KAAK;;kBAGL,KAAK;;kBAQL,MAAM;;kBAGN,MAAM;;kBACN,MAAM;;kBAGN,MAAM;;kBAgCN,YAAY;mBAAC,kBAAkB,EAAE,CAAC,QAAQ,CAAC;;kFArIjC,wBAAwB","sourcesContent":["import {\n Component,\n Input,\n Output,\n EventEmitter,\n OnInit,\n OnDestroy,\n HostListener\n} from '@angular/core';\nimport {\n ComposerPopulationFilter,\n ComposerSearchField,\n MentionSuggestion\n} from '../../composer-trigger-provider';\n\nexport interface HighlightSegment {\n Text: string;\n Matched: boolean;\n}\n\nexport interface PopulationFilterOption {\n Value: ComposerPopulationFilter;\n Label: string;\n}\n\nexport interface SearchFieldOption {\n Value: ComposerSearchField;\n Label: string;\n ShortLabel: string;\n}\n\nconst POPULATION_FILTER_OPTIONS: readonly PopulationFilterOption[] = [\n { Value: 'all', Label: 'All' },\n { Value: 'my-agents', Label: 'My Agents' },\n { Value: 'shared', Label: 'Shared' },\n { Value: 'people', Label: 'People' },\n];\n\nconst SEARCH_FIELD_OPTIONS: readonly SearchFieldOption[] = [\n { Value: 'all', Label: 'All Fields', ShortLabel: 'All Fields' },\n { Value: 'name', Label: 'Name Only', ShortLabel: 'Name' },\n { Value: 'capabilities', Label: 'Capabilities & Description', ShortLabel: 'Capabilities' },\n { Value: 'lineage', Label: 'Base Template / Lineage', ShortLabel: 'Template' },\n];\n\n/**\n * Splits `text` into matched / unmatched segments for safe `<mark>` rendering without `innerHTML`.\n */\nexport function SplitHighlightSegments(text: string, rawQuery: string): HighlightSegment[] {\n if (!text) {\n return [];\n }\n const query = rawQuery.trim();\n if (!query) {\n return [{ Text: text, Matched: false }];\n }\n const tokens = query\n .split(/\\s+/)\n .map((t) => t.trim())\n .filter((t) => t.length > 0)\n .sort((a, b) => b.length - a.length);\n if (tokens.length === 0) {\n return [{ Text: text, Matched: false }];\n }\n const escaped = tokens.map((t) => t.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')).join('|');\n const regex = new RegExp(`(${escaped})`, 'gi');\n const parts = text.split(regex);\n const lowerTokens = new Set(tokens.map((t) => t.toLowerCase()));\n const segments: HighlightSegment[] = [];\n for (const part of parts) {\n if (!part) {\n continue;\n }\n segments.push({\n Text: part,\n Matched: lowerTokens.has(part.toLowerCase()),\n });\n }\n return segments;\n}\n\n/**\n * Dropdown component for `@mention`, `#record`, and `/skill` autocomplete.\n * For `'@'` triggers, renders an FK-inspired filter/search-field header bar,\n * group headers (`Frequent & Recent`, `My Agents`, `Shared`, `People`),\n * provenance/status badges (`Chat Default`, `In Thread`, `My Agent`), and safe query highlighting.\n */\n@Component({\n standalone: false,\n selector: 'mj-mention-dropdown',\n templateUrl: './mention-dropdown.component.html',\n styleUrls: [\n './mention-dropdown.component.css',\n './custom-agent-icons.css'\n ]\n})\nexport class MentionDropdownComponent implements OnInit, OnDestroy {\n private _suggestions: MentionSuggestion[] = [];\n\n public readonly PopulationFilterOptions = POPULATION_FILTER_OPTIONS;\n public readonly SearchFieldOptions = SEARCH_FIELD_OPTIONS;\n public ScopeMenuOpen = false;\n\n @Input()\n set Suggestions(value: MentionSuggestion[]) {\n this._suggestions = value;\n // Always reset selection to first item when suggestions change\n // so there's never a state where nothing is selected\n this.SelectedIndex = 0;\n }\n get Suggestions(): MentionSuggestion[] {\n return this._suggestions;\n }\n\n /** @deprecated Use {@link Suggestions}. */\n get suggestions(): MentionSuggestion[] {\n return this.Suggestions;\n }\n /** @deprecated Use {@link Suggestions}. */\n @Input() set suggestions(value: MentionSuggestion[]) {\n this.Suggestions = value;\n }\n\n /** Active trigger character (`'@'`, `'#'`, `'/'`). Smart filter bar renders for `'@'`. */\n @Input() ActiveTrigger: string = '';\n\n /** Current typed query after the trigger character, used for safe highlight rendering. */\n @Input() SearchQuery: string = '';\n\n /** Active population filter for `'@'` suggestions. */\n @Input() PopulationFilter: ComposerPopulationFilter = 'all';\n\n /** Active search-field scope for `'@'` suggestions. */\n @Input() SearchField: ComposerSearchField = 'all';\n\n @Output() PopulationFilterChange = new EventEmitter<ComposerPopulationFilter>();\n @Output() SearchFieldChange = new EventEmitter<ComposerSearchField>();\n\n @Input() Position: { top: number; left: number } = { top: 0, left: 0 };\n\n /** @deprecated Use {@link Position}. */\n @Input() set position(value: { top: number; left: number }) {\n this.Position = value;\n }\n /** @deprecated Use {@link Position}. */\n get position(): { top: number; left: number } {\n return this.Position;\n }\n @Input() Visible: boolean = false;\n\n /** @deprecated Use {@link Visible}. */\n @Input() set visible(value: boolean) {\n this.Visible = value;\n }\n /** @deprecated Use {@link Visible}. */\n get visible(): boolean {\n return this.Visible;\n }\n /** Right-align against the anchor (button-opened triggers). Composes with showAbove in CSS. */\n @Input() AlignRight = false;\n\n /** @deprecated Use {@link AlignRight}. */\n @Input() set alignRight(value: MentionDropdownComponent['AlignRight']) {\n this.AlignRight = value;\n }\n /** @deprecated Use {@link AlignRight}. */\n get alignRight(): MentionDropdownComponent['AlignRight'] {\n return this.AlignRight;\n }\n @Input() ShowAbove: boolean = false;\n\n /** @deprecated Use {@link ShowAbove}. */\n @Input() set showAbove(value: boolean) {\n this.ShowAbove = value;\n }\n /** @deprecated Use {@link ShowAbove}. */\n get showAbove(): boolean {\n return this.ShowAbove;\n }\n @Input() UseFixedPositioning: boolean = false;\n\n /** @deprecated Use {@link UseFixedPositioning}. */\n @Input() set useFixedPositioning(value: boolean) {\n this.UseFixedPositioning = value;\n }\n /** @deprecated Use {@link UseFixedPositioning}. */\n get useFixedPositioning(): boolean {\n return this.UseFixedPositioning;\n }\n\n @Output() SuggestionSelected = new EventEmitter<MentionSuggestion>();\n\n /** @deprecated Use {@link SuggestionSelected}. */\n @Output() suggestionSelected = this.SuggestionSelected;\n @Output() Closed = new EventEmitter<void>();\n\n /** @deprecated Use {@link Closed}. */\n @Output() closed = this.Closed;\n\n public SelectedIndex: number = 0;\n\n /** @deprecated Use {@link SelectedIndex}. */\n public get selectedIndex(): number {\n return this.SelectedIndex;\n }\n /** @deprecated Use {@link SelectedIndex}. */\n public set selectedIndex(value: number) {\n this.SelectedIndex = value;\n }\n\n public get ShowSmartFilterBar(): boolean {\n return this.ActiveTrigger === '@';\n }\n\n public get ActiveSearchFieldLabel(): string {\n return (\n this.SearchFieldOptions.find((o) => o.Value === this.SearchField)?.ShortLabel ?? 'All Fields'\n );\n }\n\n constructor() {}\n\n ngOnInit(): void {}\n\n ngOnDestroy(): void {}\n\n /**\n * Handle keyboard navigation\n */\n @HostListener('document:keydown', ['$event'])\n handleKeyDown(event: KeyboardEvent): void {\n if (!this.Visible) return;\n if (event.key === 'Escape') {\n event.preventDefault();\n if (this.ScopeMenuOpen) {\n this.ScopeMenuOpen = false;\n return;\n }\n this.close();\n return;\n }\n if (this.Suggestions.length === 0) return;\n\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.SelectedIndex = Math.min(this.SelectedIndex + 1, this.Suggestions.length - 1);\n this.scrollToSelected();\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.SelectedIndex = Math.max(this.SelectedIndex - 1, 0);\n this.scrollToSelected();\n break;\n case 'Enter':\n case 'Tab':\n event.preventDefault();\n if (this.Suggestions[this.SelectedIndex]) {\n this.SelectSuggestion(this.Suggestions[this.SelectedIndex]);\n }\n break;\n }\n }\n\n public SelectPopulationFilter(filter: ComposerPopulationFilter, event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.ScopeMenuOpen = false;\n if (this.PopulationFilter !== filter) {\n this.PopulationFilter = filter;\n this.PopulationFilterChange.emit(filter);\n }\n }\n\n public ToggleScopeMenu(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.ScopeMenuOpen = !this.ScopeMenuOpen;\n }\n\n public SelectSearchField(field: ComposerSearchField, event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.ScopeMenuOpen = false;\n if (this.SearchField !== field) {\n this.SearchField = field;\n this.SearchFieldChange.emit(field);\n }\n }\n\n public ShouldShowGroupHeader(index: number): boolean {\n const current = this.Suggestions[index];\n if (!current?.groupLabel) {\n return false;\n }\n if (index === 0) {\n return true;\n }\n return this.Suggestions[index - 1]?.groupLabel !== current.groupLabel;\n }\n\n public GroupCountFor(groupLabel: string): number {\n let count = 0;\n for (const s of this.Suggestions) {\n if (s.groupLabel === groupLabel) {\n count++;\n }\n }\n return count;\n }\n\n public SecondaryLineFor(suggestion: MentionSuggestion): string | null {\n const lineage = suggestion.lineage?.trim() ?? '';\n const desc = suggestion.description?.trim() ?? '';\n if (lineage && desc) {\n return `${lineage} — ${desc}`;\n }\n if (lineage) {\n return lineage;\n }\n if (desc) {\n return desc;\n }\n return null;\n }\n\n public HighlightSegments(text: string): HighlightSegment[] {\n return SplitHighlightSegments(text, this.SearchQuery);\n }\n\n /**\n * Select a suggestion\n */\n SelectSuggestion(suggestion: MentionSuggestion): void {\n this.ScopeMenuOpen = false;\n this.SuggestionSelected.emit(suggestion);\n }\n\n /** @deprecated Use {@link SelectSuggestion}. */\n selectSuggestion(suggestion: MentionSuggestion): void {\n return this.SelectSuggestion(suggestion);\n }\n\n /**\n * close the dropdown\n */\n close(): void {\n this.ScopeMenuOpen = false;\n this.Closed.emit();\n }\n\n /**\n * Scroll to selected item\n */\n private scrollToSelected(): void {\n setTimeout(() => {\n const selected = document.querySelector('.mention-suggestion.selected');\n if (selected) {\n selected.scrollIntoView({ block: 'nearest', behavior: 'smooth' });\n }\n }, 0);\n }\n\n /**\n * Track by function for ngFor\n */\n TrackBySuggestion(index: number, item: MentionSuggestion): string {\n return `${item.type}:${item.id}:${index}`;\n }\n\n /** @deprecated Use {@link TrackBySuggestion}. */\n trackBySuggestion(index: number, item: MentionSuggestion): string {\n return this.TrackBySuggestion(index, item);\n }\n\n /**\n * Get icon classes - supports both Font Awesome and custom CSS classes\n * Font Awesome icons start with 'fa-' (e.g., 'fa-solid fa-robot')\n * Custom icons use their own prefix (e.g., 'mj-icon-skip', 'acme-icon-custom')\n */\n GetIconClasses(iconClass: string): string | string[] {\n if (!iconClass) {\n return 'fa-solid fa-robot';\n }\n\n if (iconClass.includes('fa-')) {\n if (iconClass.match(/\\b(fa-solid|fa-regular|fa-light|fa-brands)\\b/)) {\n return iconClass;\n }\n return `fa-solid ${iconClass}`;\n }\n\n return iconClass;\n }\n\n /** @deprecated Use {@link GetIconClasses}. */\n getIconClasses(iconClass: string): string | string[] {\n return this.GetIconClasses(iconClass);\n }\n}\n","@if (visible) {\n <div\n class=\"mention-dropdown\"\n [class.mention-dropdown--smart]=\"ShowSmartFilterBar\"\n [class.show-above]=\"showAbove\"\n [class.align-right]=\"alignRight\"\n [class.fixed-position]=\"useFixedPositioning\"\n [style.top.px]=\"position.top\"\n [style.left.px]=\"position.left\"\n >\n <!-- FK-inspired Smart @Mention Filter & Search-Field Scope Toolbar -->\n @if (ShowSmartFilterBar) {\n <div class=\"mention-toolbar\" (mousedown)=\"$event.preventDefault()\">\n <div class=\"mention-pop-pills\" role=\"group\" aria-label=\"Filter mention population\">\n @for (opt of PopulationFilterOptions; track opt.Value) {\n <button\n type=\"button\"\n class=\"mention-pop-pill\"\n [class.mention-pop-pill--active]=\"PopulationFilter === opt.Value\"\n [attr.aria-pressed]=\"PopulationFilter === opt.Value\"\n (mousedown)=\"SelectPopulationFilter(opt.Value, $event)\">\n {{ opt.Label }}\n </button>\n }\n </div>\n\n <div class=\"mention-scope-wrapper\">\n <button\n type=\"button\"\n class=\"mention-scope-trigger\"\n [attr.aria-expanded]=\"ScopeMenuOpen\"\n aria-haspopup=\"menu\"\n title=\"Choose which fields to search\"\n (mousedown)=\"ToggleScopeMenu($event)\">\n <i class=\"fa-solid fa-magnifying-glass\" aria-hidden=\"true\"></i>\n <span>{{ ActiveSearchFieldLabel }}</span>\n <i class=\"fa-solid fa-caret-down\" aria-hidden=\"true\"></i>\n </button>\n\n @if (ScopeMenuOpen) {\n <div class=\"mention-scope-menu\" role=\"menu\" aria-label=\"Search field scope\">\n @for (opt of SearchFieldOptions; track opt.Value) {\n <button\n type=\"button\"\n role=\"menuitemradio\"\n class=\"mention-scope-option\"\n [class.mention-scope-option--active]=\"SearchField === opt.Value\"\n [attr.aria-checked]=\"SearchField === opt.Value\"\n (mousedown)=\"SelectSearchField(opt.Value, $event)\">\n <span>{{ opt.Label }}</span>\n @if (SearchField === opt.Value) {\n <i class=\"fa-solid fa-check\" aria-hidden=\"true\"></i>\n }\n </button>\n }\n </div>\n }\n </div>\n </div>\n }\n\n <!-- suggestions List -->\n @if (suggestions.length > 0) {\n <div class=\"mention-suggestions\">\n @for (suggestion of suggestions; track trackBySuggestion(i, suggestion); let i = $index) {\n @if (ShouldShowGroupHeader(i) && suggestion.groupLabel) {\n <div class=\"mention-group-header\" role=\"presentation\">\n <span>{{ suggestion.groupLabel }}</span>\n <span class=\"mention-group-count\">{{ GroupCountFor(suggestion.groupLabel) }}</span>\n </div>\n }\n <div\n class=\"mention-suggestion\"\n [class.selected]=\"i === selectedIndex\"\n (mousedown)=\"selectSuggestion(suggestion); $event.preventDefault()\"\n (mouseenter)=\"selectedIndex = i\"\n >\n <div class=\"suggestion-icon\"\n [class.skill]=\"suggestion.type === 'skill'\"\n [style.background]=\"suggestion.type === 'skill' ? (suggestion.color || null) : null\">\n <!-- Agent with LogoURL image (takes precedence) -->\n @if (suggestion.type === 'agent' && suggestion.imageUrl) {\n <img\n [src]=\"suggestion.imageUrl\"\n [alt]=\"suggestion.displayName\"\n class=\"suggestion-image\"\n />\n }\n <!-- Agent with icon class (fallback) -->\n @if (suggestion.type === 'agent' && !suggestion.imageUrl && suggestion.icon) {\n <i\n [ngClass]=\"getIconClasses(suggestion.icon)\"\n ></i>\n }\n @if (suggestion.type === 'agent' && !suggestion.imageUrl && !suggestion.icon) {\n <i class=\"fa-solid fa-robot\"></i>\n }\n <!-- User icon -->\n @if (suggestion.type === 'user') {\n <i class=\"fa-solid fa-user\"></i>\n }\n <!-- Entity icon -->\n @if (suggestion.type === 'entity') {\n <i [ngClass]=\"getIconClasses(suggestion.icon || 'fa-solid fa-table')\"></i>\n }\n <!-- Query icon (generic, from 'MJ: Queries' entity) -->\n @if (suggestion.type === 'query') {\n <i [ngClass]=\"getIconClasses(suggestion.icon || 'fa-solid fa-database')\"></i>\n }\n <!-- Skill icon — container carries the skill's accent Color (green fallback) -->\n @if (suggestion.type === 'skill') {\n <i [ngClass]=\"getIconClasses(suggestion.icon || 'fa-solid fa-wand-magic-sparkles')\"></i>\n }\n <!-- Record / document link icon -->\n @if (suggestion.type === 'record') {\n <i\n [ngClass]=\"getIconClasses(suggestion.icon || 'fa-solid fa-file-lines')\"\n ></i>\n }\n </div>\n <div class=\"suggestion-content\">\n <div class=\"suggestion-name\">\n @if (suggestion.type === 'agent') {\n <span class=\"suggestion-type-badge\">Agent</span>\n }\n @if (suggestion.type === 'user') {\n <span class=\"suggestion-type-badge user\">User</span>\n }\n @if (suggestion.type === 'entity') {\n <span class=\"suggestion-type-badge entity\">Entity</span>\n }\n @if (suggestion.type === 'query') {\n <span class=\"suggestion-type-badge query\">Query</span>\n }\n @if (suggestion.type === 'skill') {\n <span class=\"suggestion-type-badge skill\"\n [style.background]=\"suggestion.color || null\">Skill</span>\n }\n @if (suggestion.type === 'record') {\n <span class=\"suggestion-type-badge record\">Record</span>\n }\n <span class=\"suggestion-display-name\">@for (seg of HighlightSegments(suggestion.displayName); track $index) {@if (seg.Matched) {<mark class=\"mention-highlight\">{{ seg.Text }}</mark>} @else {{{ seg.Text }}}}</span>\n @if (suggestion.isDefaultChatAgent) {\n <span class=\"mention-chip mention-chip--default\">Chat Default</span>\n }\n @if (suggestion.isInCurrentThread) {\n <span class=\"mention-chip mention-chip--thread\">In Thread</span>\n }\n @if (suggestion.isMyAgent) {\n <span class=\"mention-chip mention-chip--mine\">My Agent</span>\n }\n </div>\n @let secondaryText = SecondaryLineFor(suggestion);\n @if (secondaryText) {\n <div class=\"suggestion-description\">@for (seg of HighlightSegments(secondaryText); track $index) {@if (seg.Matched) {<mark class=\"mention-highlight\">{{ seg.Text }}</mark>} @else {{{ seg.Text }}}}</div>\n }\n </div>\n </div>\n }\n </div>\n }\n <!-- Empty State -->\n @if (suggestions.length === 0) {\n <mj-empty-state\n Variant=\"no-results\"\n Size=\"compact\"\n Icon=\"fa-solid fa-robot\"\n Title=\"No matches found\" />\n }\n </div>\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, ElementRef, AfterViewInit, OnInit, ChangeDetectorRef } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
- import { ComposerTriggerProvider, MentionSuggestion } from '../../composer-trigger-provider';
3
+ import { ComposerPopulationFilter, ComposerSearchField, ComposerTriggerProvider, MentionSuggestion } from '../../composer-trigger-provider';
4
4
  import { IMetadataProvider, UserInfo } from '@memberjunction/core';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
@@ -184,6 +184,14 @@ export declare class MentionEditorComponent implements OnInit, AfterViewInit, Co
184
184
  /** @deprecated Use {@link ShowMentionDropdown}. */
185
185
  set showMentionDropdown(value: boolean);
186
186
  MentionSuggestions: MentionSuggestion[];
187
+ /** Active population filter for `'@'` autocomplete sessions; reset on close. */
188
+ MentionPopulationFilter: ComposerPopulationFilter;
189
+ /** Active search-field scope for `'@'` autocomplete sessions; reset on close. */
190
+ MentionSearchField: ComposerSearchField;
191
+ get ActiveTriggerChar(): string;
192
+ get ActiveMentionQuery(): string;
193
+ OnMentionPopulationFilterChanged(filter: ComposerPopulationFilter): void;
194
+ OnMentionSearchFieldChanged(field: ComposerSearchField): void;
187
195
  /** @deprecated Use {@link MentionSuggestions}. */
188
196
  get mentionSuggestions(): MentionSuggestion[];
189
197
  /** @deprecated Use {@link MentionSuggestions}. */
@@ -1 +1 @@
1
- {"version":3,"file":"mention-editor.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/mention/mention-editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EAEZ,UAAU,EACV,aAAa,EAEb,MAAM,EAEN,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAEL,uBAAuB,EAEvB,iBAAiB,EAElB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;;AAGnE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,0DAA0D;IAC1D,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;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AqB,CAAC,QAAQ,EAAE;QACrC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QACnD,SAAS,EAAE,MAAM,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC/C,GAAG,iBAAiB;IAiBrB;;OAEG;IACI,uBAAuB,IAAI,IAAI;IAMtC,uDAAuD;IAChD,uBAAuB,IAAI,IAAI;IAItC;;OAEG;IACI,iBAAiB,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI;IAI7D,iDAAiD;IAC1C,iBAAiB,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI;IAI7D;;OAEG;IACI,cAAc,IAAI,OAAO;IAIhC,8CAA8C;IACvC,cAAc,IAAI,OAAO;IAIhC;;OAEG;IACI,cAAc,IAAI,IAAI;IAU7B,8CAA8C;IACvC,cAAc,IAAI,IAAI;yCApiElB,sBAAsB;2CAAtB,sBAAsB;CAuiElC"}
1
+ {"version":3,"file":"mention-editor.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/mention/mention-editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EAEZ,UAAU,EACV,aAAa,EAEb,MAAM,EAEN,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EAEnB,uBAAuB,EAEvB,iBAAiB,EAElB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;;AAGnE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,0DAA0D;IAC1D,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAg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_Conditional_5_Template(rf, ctx) { if (rf & 1) {
59
59
  const _r4 = i0.ɵɵgetCurrentView();
60
60
  i0.ɵɵelementStart(0, "mj-mention-dropdown", 16);
61
- i0.ɵɵlistener("suggestionSelected", function MentionEditorComponent_Conditional_5_Template_mj_mention_dropdown_suggestionSelected_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMentionSelected($event)); })("closed", function MentionEditorComponent_Conditional_5_Template_mj_mention_dropdown_closed_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.closeMentionDropdown()); });
61
+ i0.ɵɵlistener("PopulationFilterChange", function MentionEditorComponent_Conditional_5_Template_mj_mention_dropdown_PopulationFilterChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnMentionPopulationFilterChanged($event)); })("SearchFieldChange", function MentionEditorComponent_Conditional_5_Template_mj_mention_dropdown_SearchFieldChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.OnMentionSearchFieldChanged($event)); })("suggestionSelected", function MentionEditorComponent_Conditional_5_Template_mj_mention_dropdown_suggestionSelected_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMentionSelected($event)); })("closed", function MentionEditorComponent_Conditional_5_Template_mj_mention_dropdown_closed_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.closeMentionDropdown()); });
62
62
  i0.ɵɵelementEnd();
63
63
  } if (rf & 2) {
64
64
  const ctx_r2 = i0.ɵɵnextContext();
65
- i0.ɵɵproperty("suggestions", ctx_r2.mentionSuggestions)("position", ctx_r2.mentionDropdownPosition)("showAbove", ctx_r2.mentionDropdownShowAbove)("alignRight", ctx_r2.mentionDropdownAlignRight)("useFixedPositioning", true)("visible", true);
65
+ i0.ɵɵproperty("suggestions", ctx_r2.mentionSuggestions)("ActiveTrigger", ctx_r2.ActiveTriggerChar)("SearchQuery", ctx_r2.ActiveMentionQuery)("PopulationFilter", ctx_r2.MentionPopulationFilter)("SearchField", ctx_r2.MentionSearchField)("position", ctx_r2.mentionDropdownPosition)("showAbove", ctx_r2.mentionDropdownShowAbove)("alignRight", ctx_r2.mentionDropdownAlignRight)("useFixedPositioning", true)("visible", true);
66
66
  } }
67
67
  /**
68
68
  * ContentEditable-based mention editor with visual chips/pills
@@ -271,6 +271,24 @@ export class MentionEditorComponent {
271
271
  this.ShowMentionDropdown = value;
272
272
  }
273
273
  MentionSuggestions = [];
274
+ /** Active population filter for `'@'` autocomplete sessions; reset on close. */
275
+ MentionPopulationFilter = 'all';
276
+ /** Active search-field scope for `'@'` autocomplete sessions; reset on close. */
277
+ MentionSearchField = 'all';
278
+ get ActiveTriggerChar() {
279
+ return this.activeTrigger;
280
+ }
281
+ get ActiveMentionQuery() {
282
+ return this.mentionQuery;
283
+ }
284
+ OnMentionPopulationFilterChanged(filter) {
285
+ this.MentionPopulationFilter = filter;
286
+ void this.fetchSuggestions(this.activeTrigger, this.mentionQuery, true);
287
+ }
288
+ OnMentionSearchFieldChanged(field) {
289
+ this.MentionSearchField = field;
290
+ void this.fetchSuggestions(this.activeTrigger, this.mentionQuery, true);
291
+ }
274
292
  /** @deprecated Use {@link MentionSuggestions}. */
275
293
  get mentionSuggestions() {
276
294
  return this.MentionSuggestions;
@@ -643,14 +661,20 @@ export class MentionEditorComponent {
643
661
  * concatenates their results in priority order, caps the merged list, and opens the
644
662
  * dropdown. A monotonic sequence drops stale responses when the user keeps typing.
645
663
  */
646
- async fetchSuggestions(triggerChar, query) {
664
+ async fetchSuggestions(triggerChar, query, keepOpenOnEmpty = false) {
647
665
  const seq = ++this.suggestionRequestSeq;
648
666
  const providers = this.activeProviders.filter((p) => p.TriggerChar === triggerChar);
649
667
  const request = {
650
668
  Query: query,
651
669
  MaxResults: MentionEditorComponent.maxSuggestions,
652
670
  ContextUser: this.CurrentUser ?? null,
653
- Provider: this.Provider
671
+ Provider: this.Provider,
672
+ ...(triggerChar === '@'
673
+ ? {
674
+ PopulationFilter: this.MentionPopulationFilter,
675
+ SearchField: this.MentionSearchField,
676
+ }
677
+ : {}),
654
678
  };
655
679
  const resultSets = await Promise.all(providers.map((p) => p.GetSuggestions(request).catch(() => [])));
656
680
  if (seq !== this.suggestionRequestSeq) {
@@ -658,15 +682,15 @@ export class MentionEditorComponent {
658
682
  }
659
683
  const merged = resultSets.flat().slice(0, MentionEditorComponent.maxSuggestions);
660
684
  this.MentionSuggestions = merged;
685
+ const hasActiveSmartFilter = triggerChar === '@' &&
686
+ (this.MentionPopulationFilter !== 'all' || this.MentionSearchField !== 'all');
661
687
  if (merged.length > 0) {
662
688
  this.ShowMentionDropdown = true;
663
689
  this.positionMentionDropdown();
664
690
  }
665
- else if (this.virtualTriggerOpen) {
666
- // A button press must never be a silent no-op. Closing on empty results is right for a TYPED
667
- // trigger (the user is mid-word and nothing matched yet), but a host with zero skills clicking
668
- // the button would get no feedback at all and read it as broken. Staying open surfaces the
669
- // dropdown's own empty state, which was otherwise unreachable.
691
+ else if (this.virtualTriggerOpen || keepOpenOnEmpty || hasActiveSmartFilter) {
692
+ // Keep the dropdown visible on empty results when opened via button or narrowed by an
693
+ // explicit filter/scope pill so the user can see the empty state and switch filters.
670
694
  this.ShowMentionDropdown = true;
671
695
  this.positionMentionDropdown();
672
696
  }
@@ -803,6 +827,10 @@ export class MentionEditorComponent {
803
827
  * Handle mention selection from dropdown
804
828
  */
805
829
  OnMentionSelected(suggestion) {
830
+ const matchingProviders = this.activeProviders.filter((p) => p.TriggerChar === this.activeTrigger);
831
+ for (const provider of matchingProviders) {
832
+ provider.OnSuggestionSelected(suggestion, this.CurrentUser ?? null);
833
+ }
806
834
  this.insertMentionChip(suggestion);
807
835
  this.CloseMentionDropdown();
808
836
  this.MentionSelected.emit(suggestion);
@@ -1327,6 +1355,8 @@ export class MentionEditorComponent {
1327
1355
  this.mentionStartIndex = -1;
1328
1356
  this.mentionQuery = '';
1329
1357
  this.activeTrigger = '@';
1358
+ this.MentionPopulationFilter = 'all';
1359
+ this.MentionSearchField = 'all';
1330
1360
  }
1331
1361
  /** @deprecated Use {@link CloseMentionDropdown}. */
1332
1362
  closeMentionDropdown() {
@@ -1966,7 +1996,7 @@ export class MentionEditorComponent {
1966
1996
  useExisting: forwardRef(() => MentionEditorComponent),
1967
1997
  multi: true
1968
1998
  }
1969
- ])], decls: 6, vars: 7, consts: [["editor", ""], [1, "mention-editor-container", 3, "click", "dragover", "dragleave", "drop"], [1, "pending-attachments"], ["contenteditable", "true", 1, "mention-editor", 3, "input", "keydown", "blur", "paste"], [1, "drop-overlay"], [3, "suggestions", "position", "showAbove", "alignRight", "useFixedPositioning", "visible"], [1, "attachment-thumbnail"], [1, "attachment-thumbnail", 3, "click"], [1, "thumbnail-image", 3, "src", "alt"], [1, "thumbnail-placeholder"], ["title", "Remove attachment", 1, "remove-attachment", 3, "click"], [1, "fa-solid", "fa-times"], [1, "fa-solid", "fa-file"], [1, "file-name"], [1, "drop-message"], [1, "fa-solid", "fa-cloud-arrow-up"], [3, "suggestionSelected", "closed", "suggestions", "position", "showAbove", "alignRight", "useFixedPositioning", "visible"]], template: function MentionEditorComponent_Template(rf, ctx) { if (rf & 1) {
1999
+ ])], decls: 6, vars: 7, consts: [["editor", ""], [1, "mention-editor-container", 3, "click", "dragover", "dragleave", "drop"], [1, "pending-attachments"], ["contenteditable", "true", 1, "mention-editor", 3, "input", "keydown", "blur", "paste"], [1, "drop-overlay"], [3, "suggestions", "ActiveTrigger", "SearchQuery", "PopulationFilter", "SearchField", "position", "showAbove", "alignRight", "useFixedPositioning", "visible"], [1, "attachment-thumbnail"], [1, "attachment-thumbnail", 3, "click"], [1, "thumbnail-image", 3, "src", "alt"], [1, "thumbnail-placeholder"], ["title", "Remove attachment", 1, "remove-attachment", 3, "click"], [1, "fa-solid", "fa-times"], [1, "fa-solid", "fa-file"], [1, "file-name"], [1, "drop-message"], [1, "fa-solid", "fa-cloud-arrow-up"], [3, "PopulationFilterChange", "SearchFieldChange", "suggestionSelected", "closed", "suggestions", "ActiveTrigger", "SearchQuery", "PopulationFilter", "SearchField", "position", "showAbove", "alignRight", "useFixedPositioning", "visible"]], template: function MentionEditorComponent_Template(rf, ctx) { if (rf & 1) {
1970
2000
  i0.ɵɵelementStart(0, "div", 1);
1971
2001
  i0.ɵɵlistener("click", function MentionEditorComponent_Template_div_click_0_listener($event) { return ctx.onContainerClick($event); })("dragover", function MentionEditorComponent_Template_div_dragover_0_listener($event) { return ctx.onDragOver($event); })("dragleave", function MentionEditorComponent_Template_div_dragleave_0_listener($event) { return ctx.onDragLeave($event); })("drop", function MentionEditorComponent_Template_div_drop_0_listener($event) { return ctx.onDrop($event); });
1972
2002
  i0.ɵɵconditionalCreate(1, MentionEditorComponent_Conditional_1_Template, 3, 0, "div", 2);
@@ -1974,7 +2004,7 @@ export class MentionEditorComponent {
1974
2004
  i0.ɵɵlistener("input", function MentionEditorComponent_Template_div_input_2_listener() { return ctx.onInput(); })("keydown", function MentionEditorComponent_Template_div_keydown_2_listener($event) { return ctx.onKeyDown($event); })("blur", function MentionEditorComponent_Template_div_blur_2_listener() { return ctx.onBlur(); })("paste", function MentionEditorComponent_Template_div_paste_2_listener($event) { return ctx.onPaste($event); });
1975
2005
  i0.ɵɵelementEnd();
1976
2006
  i0.ɵɵconditionalCreate(4, MentionEditorComponent_Conditional_4_Template, 5, 0, "div", 4);
1977
- i0.ɵɵconditionalCreate(5, MentionEditorComponent_Conditional_5_Template, 1, 6, "mj-mention-dropdown", 5);
2007
+ i0.ɵɵconditionalCreate(5, MentionEditorComponent_Conditional_5_Template, 1, 10, "mj-mention-dropdown", 5);
1978
2008
  i0.ɵɵelementEnd();
1979
2009
  } if (rf & 2) {
1980
2010
  i0.ɵɵclassProp("drag-over", ctx.isDragOver);
@@ -1996,7 +2026,7 @@ export class MentionEditorComponent {
1996
2026
  useExisting: forwardRef(() => MentionEditorComponent),
1997
2027
  multi: true
1998
2028
  }
1999
- ], template: "<div class=\"mention-editor-container\"\n [class.drag-over]=\"isDragOver\"\n (click)=\"onContainerClick($event)\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\">\n\n <!-- Pending Attachments Preview -->\n @if (pendingAttachments.length > 0) {\n <div class=\"pending-attachments\">\n @for (attachment of pendingAttachments; track attachment) {\n <div class=\"attachment-thumbnail\"\n (click)=\"onAttachmentClick(attachment)\">\n @if (attachment.thumbnailUrl) {\n <img\n [src]=\"attachment.thumbnailUrl\"\n [alt]=\"attachment.fileName\"\n class=\"thumbnail-image\">\n }\n @if (!attachment.thumbnailUrl) {\n <div class=\"thumbnail-placeholder\">\n <i class=\"fa-solid fa-file\"></i>\n <span class=\"file-name\">{{ attachment.fileName }}</span>\n </div>\n }\n <button class=\"remove-attachment\"\n (click)=\"removeAttachment(attachment.id); $event.stopPropagation()\"\n title=\"Remove attachment\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n }\n </div>\n }\n\n <div\n #editor\n class=\"mention-editor\"\n contenteditable=\"true\"\n [attr.contenteditable]=\"!disabled\"\n [attr.data-placeholder]=\"placeholder\"\n (input)=\"onInput()\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n (paste)=\"onPaste($event)\"\n ></div>\n\n <!-- Drag & Drop Overlay -->\n @if (isDragOver) {\n <div class=\"drop-overlay\">\n <div class=\"drop-message\">\n <i class=\"fa-solid fa-cloud-arrow-up\"></i>\n <span>Drop files here</span>\n </div>\n </div>\n }\n\n <!-- Mention Dropdown -->\n @if (showMentionDropdown && enableMentions) {\n <mj-mention-dropdown\n [suggestions]=\"mentionSuggestions\"\n [position]=\"mentionDropdownPosition\"\n [showAbove]=\"mentionDropdownShowAbove\"\n [alignRight]=\"mentionDropdownAlignRight\"\n [useFixedPositioning]=\"true\"\n [visible]=\"true\"\n (suggestionSelected)=\"onMentionSelected($event)\"\n (closed)=\"closeMentionDropdown()\">\n </mj-mention-dropdown>\n }\n</div>\n", styles: [".mention-editor-container {\n position: relative;\n width: 100%;\n display: block;\n}\n\n.mention-editor-container.drag-over {\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, transparent);\n border-color: var(--mj-brand-primary);\n}\n\n.mention-editor {\n display: block;\n width: 100%;\n min-height: 100px;\n max-height: 300px;\n padding: 7px 3.5rem 7px 12px;\n outline: none;\n border: none;\n background: transparent;\n font-family: inherit;\n font-size: 1rem;\n line-height: 1.5;\n overflow-y: auto;\n overflow-x: hidden;\n word-wrap: break-word;\n white-space: pre-wrap;\n cursor: text;\n user-select: text;\n box-sizing: border-box;\n}\n.mention-editor:empty:before {\n content: attr(data-placeholder);\n color: var(--mj-text-muted);\n pointer-events: none;\n position: absolute;\n}\n.mention-editor:focus {\n outline: none;\n}\n.mention-editor[contenteditable=false] {\n cursor: not-allowed;\n opacity: 0.6;\n background: var(--mj-bg-surface-sunken);\n}\n@media (max-width: 768px) {\n .mention-editor {\n font-size: 16px;\n padding: 5px;\n padding-right: 3rem;\n }\n}\n\n::ng-deep .mention-chip {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 12px;\n margin: 0 3px;\n border-radius: 16px;\n font-size: 13px;\n font-weight: 600;\n cursor: default;\n user-select: none;\n vertical-align: middle;\n white-space: nowrap;\n pointer-events: all;\n -webkit-user-modify: read-only;\n -moz-user-modify: read-only;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: 2px solid color-mix(in srgb, var(--mj-brand-primary) 40%, transparent);\n box-shadow: var(--mj-shadow-md);\n animation: chipInsert 0.15s ease-out;\n}\n::ng-deep .mention-chip i {\n font-size: 12px;\n opacity: 0.95;\n}\n::ng-deep .mention-chip[data-mention-type=user] {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: 2px solid color-mix(in srgb, var(--mj-brand-primary) 40%, transparent);\n}\n::ng-deep .mention-chip:hover {\n transform: translateY(-1px);\n box-shadow: var(--mj-shadow-lg);\n transition: all 0.2s ease;\n}\n::ng-deep .mention-chip:focus, ::ng-deep .mention-chip.selected {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n}\n@keyframes chipInsert {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n\n.mention-editor .mention-chip + .mention-chip {\n margin-left: 4px;\n}\n.mention-editor br {\n display: block;\n content: \"\";\n margin: 0;\n}\n\n.mention-editor::-webkit-scrollbar {\n width: 6px;\n}\n.mention-editor::-webkit-scrollbar-track {\n background: transparent;\n}\n.mention-editor::-webkit-scrollbar-thumb {\n background: color-mix(in srgb, var(--mj-text-primary) 20%, transparent);\n border-radius: 3px;\n}\n.mention-editor::-webkit-scrollbar-thumb:hover {\n background: color-mix(in srgb, var(--mj-text-primary) 30%, transparent);\n}\n\n/* ==================== Attachment Styles ==================== */\n\n.pending-attachments {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n padding: 8px 12px;\n border-bottom: 1px solid color-mix(in srgb, var(--mj-text-primary) 8%, transparent);\n background: color-mix(in srgb, var(--mj-text-primary) 2%, transparent);\n}\n\n.attachment-thumbnail {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 8px;\n overflow: hidden;\n cursor: pointer;\n transition: transform 0.2s, box-shadow 0.2s;\n background: var(--mj-bg-surface-sunken);\n border: 1px solid color-mix(in srgb, var(--mj-text-primary) 10%, transparent);\n}\n\n.attachment-thumbnail:hover {\n transform: scale(1.05);\n box-shadow: var(--mj-shadow-lg);\n}\n\n.thumbnail-image {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.thumbnail-placeholder {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 8px;\n color: var(--mj-text-secondary);\n}\n\n.thumbnail-placeholder i {\n font-size: 24px;\n margin-bottom: 4px;\n color: var(--mj-text-muted);\n}\n\n.thumbnail-placeholder .file-name {\n font-size: 10px;\n text-align: center;\n word-break: break-all;\n line-height: 1.2;\n max-height: 36px;\n overflow: hidden;\n}\n\n.remove-attachment {\n position: absolute;\n top: 4px;\n right: 4px;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background: color-mix(in srgb, var(--mj-text-primary) 60%, transparent);\n color: var(--mj-text-inverse);\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s, background 0.2s;\n}\n\n.attachment-thumbnail:hover .remove-attachment {\n opacity: 1;\n}\n\n.remove-attachment:hover {\n background: color-mix(in srgb, var(--mj-status-error) 90%, transparent);\n}\n\n.remove-attachment i {\n font-size: 10px;\n}\n\n/* Drop Overlay */\n.drop-overlay {\n position: absolute;\n inset: 0;\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n backdrop-filter: blur(2px);\n border: 2px dashed var(--mj-brand-primary);\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n.drop-message {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n color: var(--mj-brand-primary);\n font-weight: 600;\n}\n\n.drop-message i {\n font-size: 32px;\n}\n\n.drop-message span {\n font-size: 14px;\n}\n"] }]
2029
+ ], template: "<div class=\"mention-editor-container\"\n [class.drag-over]=\"isDragOver\"\n (click)=\"onContainerClick($event)\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\">\n\n <!-- Pending Attachments Preview -->\n @if (pendingAttachments.length > 0) {\n <div class=\"pending-attachments\">\n @for (attachment of pendingAttachments; track attachment) {\n <div class=\"attachment-thumbnail\"\n (click)=\"onAttachmentClick(attachment)\">\n @if (attachment.thumbnailUrl) {\n <img\n [src]=\"attachment.thumbnailUrl\"\n [alt]=\"attachment.fileName\"\n class=\"thumbnail-image\">\n }\n @if (!attachment.thumbnailUrl) {\n <div class=\"thumbnail-placeholder\">\n <i class=\"fa-solid fa-file\"></i>\n <span class=\"file-name\">{{ attachment.fileName }}</span>\n </div>\n }\n <button class=\"remove-attachment\"\n (click)=\"removeAttachment(attachment.id); $event.stopPropagation()\"\n title=\"Remove attachment\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n }\n </div>\n }\n\n <div\n #editor\n class=\"mention-editor\"\n contenteditable=\"true\"\n [attr.contenteditable]=\"!disabled\"\n [attr.data-placeholder]=\"placeholder\"\n (input)=\"onInput()\"\n (keydown)=\"onKeyDown($event)\"\n (blur)=\"onBlur()\"\n (paste)=\"onPaste($event)\"\n ></div>\n\n <!-- Drag & Drop Overlay -->\n @if (isDragOver) {\n <div class=\"drop-overlay\">\n <div class=\"drop-message\">\n <i class=\"fa-solid fa-cloud-arrow-up\"></i>\n <span>Drop files here</span>\n </div>\n </div>\n }\n\n <!-- Mention Dropdown -->\n @if (showMentionDropdown && enableMentions) {\n <mj-mention-dropdown\n [suggestions]=\"mentionSuggestions\"\n [ActiveTrigger]=\"ActiveTriggerChar\"\n [SearchQuery]=\"ActiveMentionQuery\"\n [PopulationFilter]=\"MentionPopulationFilter\"\n [SearchField]=\"MentionSearchField\"\n [position]=\"mentionDropdownPosition\"\n [showAbove]=\"mentionDropdownShowAbove\"\n [alignRight]=\"mentionDropdownAlignRight\"\n [useFixedPositioning]=\"true\"\n [visible]=\"true\"\n (PopulationFilterChange)=\"OnMentionPopulationFilterChanged($event)\"\n (SearchFieldChange)=\"OnMentionSearchFieldChanged($event)\"\n (suggestionSelected)=\"onMentionSelected($event)\"\n (closed)=\"closeMentionDropdown()\">\n </mj-mention-dropdown>\n }\n</div>\n", styles: [".mention-editor-container {\n position: relative;\n width: 100%;\n display: block;\n}\n\n.mention-editor-container.drag-over {\n background: color-mix(in srgb, var(--mj-brand-primary) 5%, transparent);\n border-color: var(--mj-brand-primary);\n}\n\n.mention-editor {\n display: block;\n width: 100%;\n min-height: 100px;\n max-height: 300px;\n padding: 7px 3.5rem 7px 12px;\n outline: none;\n border: none;\n background: transparent;\n font-family: inherit;\n font-size: 1rem;\n line-height: 1.5;\n overflow-y: auto;\n overflow-x: hidden;\n word-wrap: break-word;\n white-space: pre-wrap;\n cursor: text;\n user-select: text;\n box-sizing: border-box;\n}\n.mention-editor:empty:before {\n content: attr(data-placeholder);\n color: var(--mj-text-muted);\n pointer-events: none;\n position: absolute;\n}\n.mention-editor:focus {\n outline: none;\n}\n.mention-editor[contenteditable=false] {\n cursor: not-allowed;\n opacity: 0.6;\n background: var(--mj-bg-surface-sunken);\n}\n@media (max-width: 768px) {\n .mention-editor {\n font-size: 16px;\n padding: 5px;\n padding-right: 3rem;\n }\n}\n\n::ng-deep .mention-chip {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 12px;\n margin: 0 3px;\n border-radius: 16px;\n font-size: 13px;\n font-weight: 600;\n cursor: default;\n user-select: none;\n vertical-align: middle;\n white-space: nowrap;\n pointer-events: all;\n -webkit-user-modify: read-only;\n -moz-user-modify: read-only;\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: 2px solid color-mix(in srgb, var(--mj-brand-primary) 40%, transparent);\n box-shadow: var(--mj-shadow-md);\n animation: chipInsert 0.15s ease-out;\n}\n::ng-deep .mention-chip i {\n font-size: 12px;\n opacity: 0.95;\n}\n::ng-deep .mention-chip[data-mention-type=user] {\n background: var(--mj-brand-primary);\n color: var(--mj-text-inverse);\n border: 2px solid color-mix(in srgb, var(--mj-brand-primary) 40%, transparent);\n}\n::ng-deep .mention-chip:hover {\n transform: translateY(-1px);\n box-shadow: var(--mj-shadow-lg);\n transition: all 0.2s ease;\n}\n::ng-deep .mention-chip:focus, ::ng-deep .mention-chip.selected {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n}\n@keyframes chipInsert {\n 0% {\n transform: scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n\n.mention-editor .mention-chip + .mention-chip {\n margin-left: 4px;\n}\n.mention-editor br {\n display: block;\n content: \"\";\n margin: 0;\n}\n\n.mention-editor::-webkit-scrollbar {\n width: 6px;\n}\n.mention-editor::-webkit-scrollbar-track {\n background: transparent;\n}\n.mention-editor::-webkit-scrollbar-thumb {\n background: color-mix(in srgb, var(--mj-text-primary) 20%, transparent);\n border-radius: 3px;\n}\n.mention-editor::-webkit-scrollbar-thumb:hover {\n background: color-mix(in srgb, var(--mj-text-primary) 30%, transparent);\n}\n\n/* ==================== Attachment Styles ==================== */\n\n.pending-attachments {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n padding: 8px 12px;\n border-bottom: 1px solid color-mix(in srgb, var(--mj-text-primary) 8%, transparent);\n background: color-mix(in srgb, var(--mj-text-primary) 2%, transparent);\n}\n\n.attachment-thumbnail {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 8px;\n overflow: hidden;\n cursor: pointer;\n transition: transform 0.2s, box-shadow 0.2s;\n background: var(--mj-bg-surface-sunken);\n border: 1px solid color-mix(in srgb, var(--mj-text-primary) 10%, transparent);\n}\n\n.attachment-thumbnail:hover {\n transform: scale(1.05);\n box-shadow: var(--mj-shadow-lg);\n}\n\n.thumbnail-image {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.thumbnail-placeholder {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n padding: 8px;\n color: var(--mj-text-secondary);\n}\n\n.thumbnail-placeholder i {\n font-size: 24px;\n margin-bottom: 4px;\n color: var(--mj-text-muted);\n}\n\n.thumbnail-placeholder .file-name {\n font-size: 10px;\n text-align: center;\n word-break: break-all;\n line-height: 1.2;\n max-height: 36px;\n overflow: hidden;\n}\n\n.remove-attachment {\n position: absolute;\n top: 4px;\n right: 4px;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background: color-mix(in srgb, var(--mj-text-primary) 60%, transparent);\n color: var(--mj-text-inverse);\n border: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s, background 0.2s;\n}\n\n.attachment-thumbnail:hover .remove-attachment {\n opacity: 1;\n}\n\n.remove-attachment:hover {\n background: color-mix(in srgb, var(--mj-status-error) 90%, transparent);\n}\n\n.remove-attachment i {\n font-size: 10px;\n}\n\n/* Drop Overlay */\n.drop-overlay {\n position: absolute;\n inset: 0;\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n backdrop-filter: blur(2px);\n border: 2px dashed var(--mj-brand-primary);\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 100;\n pointer-events: none;\n}\n\n.drop-message {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n color: var(--mj-brand-primary);\n font-weight: 600;\n}\n\n.drop-message i {\n font-size: 32px;\n}\n\n.drop-message span {\n font-size: 14px;\n}\n"] }]
2000
2030
  }], () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }], { EditorRef: [{
2001
2031
  type: ViewChild,
2002
2032
  args: ['editor', { static: false }]
@@ -2074,5 +2104,5 @@ export class MentionEditorComponent {
2074
2104
  type: HostListener,
2075
2105
  args: ['document:mousedown', ['$event']]
2076
2106
  }] }); })();
2077
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MentionEditorComponent, { className: "MentionEditorComponent", filePath: "src/lib/components/mention/mention-editor.component.ts", lineNumber: 73 }); })();
2107
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MentionEditorComponent, { className: "MentionEditorComponent", filePath: "src/lib/components/mention/mention-editor.component.ts", lineNumber: 75 }); })();
2078
2108
  //# sourceMappingURL=mention-editor.component.js.map