@magicx-eng/ai-autocomplete-angular 0.64.2 → 0.64.3
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/esm2020/lib/ai-autocomplete/ai-autocomplete.component.mjs +3 -3
- package/esm2020/lib/ai-autocomplete-dropdown/ai-autocomplete-dropdown.component.mjs +3 -3
- package/esm2020/lib/internal/suggestion-item/suggestion-item.component.mjs +34 -9
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs +37 -12
- package/fesm2015/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs +37 -12
- package/fesm2020/magicx-eng-ai-autocomplete-angular.mjs.map +1 -1
- package/lib/internal/suggestion-item/suggestion-item.component.d.ts +2 -16
- package/lib/internal/suggestion-item/suggestion-item.component.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -2,22 +2,6 @@ import { EventEmitter, type OnDestroy } from "@angular/core";
|
|
|
2
2
|
import { type SafeHtml } from "@angular/platform-browser";
|
|
3
3
|
import { type SuggestionOption, type TextPart } from "@magicx-eng/ai-autocomplete-vanilla";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Internal single-option cell used inside the suggestion grid. Mirrors
|
|
7
|
-
* `packages/react/src/components/SuggestionItem.tsx`. Handles:
|
|
8
|
-
*
|
|
9
|
-
* - Tappable vs non-tappable cursor + hover styling
|
|
10
|
-
* - Pressed-state compress animation (170ms, single-flight)
|
|
11
|
-
* - Keyboard activation (Enter/Space)
|
|
12
|
-
* - ARIA `role="option"` + `aria-selected` for the listbox pattern
|
|
13
|
-
* - Loading skeleton when `loading=true`
|
|
14
|
-
* - Server-provided icon (`icon_svg`), allowlisted through the core's
|
|
15
|
-
* `sanitizeOptionIconSvg` before it is bound as HTML
|
|
16
|
-
* - Server-provided picture (`image_url`) as a square thumbnail in place of
|
|
17
|
-
* the icon, and item count (`item_count`) at the row's trailing edge
|
|
18
|
-
*
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
5
|
export declare class SuggestionItemComponent implements OnDestroy {
|
|
22
6
|
option: SuggestionOption;
|
|
23
7
|
checked?: boolean;
|
|
@@ -61,6 +45,7 @@ export declare class SuggestionItemComponent implements OnDestroy {
|
|
|
61
45
|
pressed: boolean;
|
|
62
46
|
private readonly cdr;
|
|
63
47
|
private readonly sanitizer;
|
|
48
|
+
private readonly host;
|
|
64
49
|
private pressedTimer;
|
|
65
50
|
private iconSource;
|
|
66
51
|
private iconSafe;
|
|
@@ -113,6 +98,7 @@ export declare class SuggestionItemComponent implements OnDestroy {
|
|
|
113
98
|
*/
|
|
114
99
|
get iconHtml(): SafeHtml | null;
|
|
115
100
|
ngOnDestroy(): void;
|
|
101
|
+
private lastPick;
|
|
116
102
|
/** `event` is the click that picked the row; a key press passes none. */
|
|
117
103
|
onSelect(event?: MouseEvent): void;
|
|
118
104
|
onMouseEnter(event: MouseEvent): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-item.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/suggestion-item/suggestion-item.component.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"suggestion-item.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/internal/suggestion-item/suggestion-item.component.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,YAAY,EAGZ,KAAK,SAAS,EAGf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAOL,KAAK,gBAAgB,EAErB,KAAK,QAAQ,EACd,MAAM,qCAAqC,CAAC;;AA6B7C,qBASa,uBAAwB,YAAW,SAAS;IAC9C,MAAM,EAAG,gBAAgB,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,UAAS;IACtB,EAAE,SAAM;IACR,OAAO,UAAS;I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MAAM,EAAE,CAMtB;IAED,aAAa,UAAS;IAEtB,aAAa,IAAI,IAAI;IAKrB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIlC,OAAO,KAAK,YAAY,GAEvB;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,MAAM,GAAG,IAAI,CAE9B;IAED;;;;;;OAMG;IACH,IAAI,QAAQ,IAAI,QAAQ,GAAG,IAAI,CAQ9B;IAED,WAAW,IAAI,IAAI;IAInB,OAAO,CAAC,QAAQ,CAA4B;IAE5C,yEAAyE;IACzE,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI;IA+BlC,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAKrC,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAIrC,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;yCAjN1B,uBAAuB;2CAAvB,uBAAuB;CAwNnC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magicx-eng/ai-autocomplete-angular",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.3",
|
|
4
4
|
"description": "Intent-1 for Angular: add real-time AI suggestions to any text box and guide users to what your product can do, across search, commerce, agents, and more. Standalone component or controller + directive, with Reactive Forms support.",
|
|
5
5
|
"homepage": "https://magicx.ai/intent-1/docs/angular/getting-started",
|
|
6
6
|
"bugs": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"tslib": "^2.3.0",
|
|
28
|
-
"@magicx-eng/ai-autocomplete-vanilla": "0.80.
|
|
28
|
+
"@magicx-eng/ai-autocomplete-vanilla": "0.80.3"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [
|
|
31
31
|
"angular",
|