@sinequa/galactik 2.16.2 → 2.18.0
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.
|
@@ -23527,26 +23527,28 @@ const AFTER_CONTROL = `
|
|
|
23527
23527
|
et « send », parce que c'est la place naturelle d'une action liée à la requête. Ce qui doit
|
|
23528
23528
|
rester APRÈS le bouton d'envoi porte slot="trailing" (voir plus bas). -->
|
|
23529
23529
|
<ng-content />
|
|
23530
|
-
|
|
23531
|
-
|
|
23532
|
-
|
|
23533
|
-
|
|
23534
|
-
|
|
23535
|
-
|
|
23536
|
-
|
|
23537
|
-
|
|
23538
|
-
|
|
23539
|
-
|
|
23540
|
-
|
|
23541
|
-
|
|
23542
|
-
|
|
23543
|
-
|
|
23544
|
-
|
|
23545
|
-
|
|
23546
|
-
|
|
23547
|
-
|
|
23548
|
-
|
|
23549
|
-
|
|
23530
|
+
@if (showSend()) {
|
|
23531
|
+
<button
|
|
23532
|
+
[variant]="isHero() ? 'primary' : 'tertiary'"
|
|
23533
|
+
[scheme]="isHero() ? 'default' : 'neutral'"
|
|
23534
|
+
[iconOnly]="true"
|
|
23535
|
+
[size]="buttonSize()"
|
|
23536
|
+
type="button"
|
|
23537
|
+
[disabled]="disabled()"
|
|
23538
|
+
[class]="sendClass()"
|
|
23539
|
+
[tabindex]="(value() || isHero()) && !disabled() ? 0 : -1"
|
|
23540
|
+
[attr.aria-label]="sendLabel()"
|
|
23541
|
+
[tooltip]="sendLabel()"
|
|
23542
|
+
(keydown.enter)="emitSearch($event)"
|
|
23543
|
+
(click)="emitSearch($event)">
|
|
23544
|
+
@if (isHero()) {
|
|
23545
|
+
<SearchIcon [class]="iconClass()" aria-hidden="true" />
|
|
23546
|
+
} @else {
|
|
23547
|
+
<SendHorizontalIcon [class]="iconClass()" aria-hidden="true" />
|
|
23548
|
+
}
|
|
23549
|
+
<span class="sr-only">{{ sendLabel() }}</span>
|
|
23550
|
+
</button>
|
|
23551
|
+
}
|
|
23550
23552
|
<!-- Zone de fin de pilule, après le bouton d'envoi (CTA du type « Ask AI »…).
|
|
23551
23553
|
⚠️ Le contenu d'un bloc @if ne peut pas atteindre ce slot : la projection ne teste que les
|
|
23552
23554
|
enfants directs de l'hôte, et le nœud d'un @if ne porte aucun attribut — il retombe donc
|
|
@@ -23569,6 +23571,10 @@ var SearchBarBase = class SearchBarBase {
|
|
|
23569
23571
|
keyboardLabel = input("Show keyboard", ...ngDevMode ? [{ debugName: "keyboardLabel" }] : /* istanbul ignore next */ []);
|
|
23570
23572
|
clearLabel = input("Clear search", ...ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []);
|
|
23571
23573
|
sendLabel = input("Send", ...ngDevMode ? [{ debugName: "sendLabel" }] : /* istanbul ignore next */ []);
|
|
23574
|
+
showSend = input(true, {
|
|
23575
|
+
...ngDevMode ? { debugName: "showSend" } : /* istanbul ignore next */ {},
|
|
23576
|
+
transform: booleanAttribute
|
|
23577
|
+
});
|
|
23572
23578
|
disabled = input(false, {
|
|
23573
23579
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
23574
23580
|
transform: booleanAttribute
|
|
@@ -23678,6 +23684,13 @@ var SearchBarBase = class SearchBarBase {
|
|
|
23678
23684
|
isRequired: false,
|
|
23679
23685
|
transformFunction: null
|
|
23680
23686
|
},
|
|
23687
|
+
showSend: {
|
|
23688
|
+
classPropertyName: "showSend",
|
|
23689
|
+
publicName: "showSend",
|
|
23690
|
+
isSignal: true,
|
|
23691
|
+
isRequired: false,
|
|
23692
|
+
transformFunction: null
|
|
23693
|
+
},
|
|
23681
23694
|
disabled: {
|
|
23682
23695
|
classPropertyName: "disabled",
|
|
23683
23696
|
publicName: "disabled",
|
|
@@ -23821,6 +23834,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
23821
23834
|
required: false
|
|
23822
23835
|
}]
|
|
23823
23836
|
}],
|
|
23837
|
+
showSend: [{
|
|
23838
|
+
type: i0.Input,
|
|
23839
|
+
args: [{
|
|
23840
|
+
isSignal: true,
|
|
23841
|
+
alias: "showSend",
|
|
23842
|
+
required: false
|
|
23843
|
+
}]
|
|
23844
|
+
}],
|
|
23824
23845
|
disabled: [{
|
|
23825
23846
|
type: i0.Input,
|
|
23826
23847
|
args: [{
|
|
@@ -23904,7 +23925,7 @@ var SearchBarComponent = class SearchBarComponent extends SearchBarBase {
|
|
|
23904
23925
|
selector: "SearchBar:not([suggestions]), search-bar:not([suggestions]), searchbar:not([suggestions])",
|
|
23905
23926
|
usesInheritance: true,
|
|
23906
23927
|
ngImport: i0,
|
|
23907
|
-
template: "\n <span class=\"sb-icon\">\n <SearchIcon [class]=\"searchIconClass()\" />\n </span>\n <input \n class=\"sb-input\"\n [class]=\"searchNativeReset\"\n #search\n type=\"search\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n [placeholder]=\"placeholder()\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n (blur)=\"touch.emit()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-keyshortcuts]=\"hotkey()\"\n (search)=\"$event.stopPropagation()\"\n [formField]=\"field\"\n (keydown.enter)=\"emitSearchOnEnter($event)\" />\n <button\n variant=\"tertiary\"\n scheme=\"neutral\"\n [iconOnly]=\"true\"\n [size]=\"buttonSize()\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [class]=\"value()\n ? 'rotate-90 opacity-100 transition-[rotate,opacity] duration-500'\n : 'rotate-0 opacity-0 pointer-events-none transition-[rotate,opacity] duration-500'\"\n [tabindex]=\"value() && !disabled() ? 0 : -1\"\n [attr.aria-label]=\"clearLabel()\"\n [tooltip]=\"clearLabel()\"\n (keydown.enter)=\"clearSearch($event)\"\n (click)=\"clearSearch($event)\">\n <XMarkIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n <span class=\"sr-only\">{{ clearLabel() }}</span>\n </button>\n <!-- Actions applicatives (favori, filtre rapide…) : le slot par défaut est ici, entre « clear »\n et « send », parce que c'est la place naturelle d'une action liée à la requête. Ce qui doit\n rester APRÈS le bouton d'envoi porte slot=\"trailing\" (voir plus bas). -->\n <ng-content />\n <button\n
|
|
23928
|
+
template: "\n <span class=\"sb-icon\">\n <SearchIcon [class]=\"searchIconClass()\" />\n </span>\n <input \n class=\"sb-input\"\n [class]=\"searchNativeReset\"\n #search\n type=\"search\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n [placeholder]=\"placeholder()\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n (blur)=\"touch.emit()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-keyshortcuts]=\"hotkey()\"\n (search)=\"$event.stopPropagation()\"\n [formField]=\"field\"\n (keydown.enter)=\"emitSearchOnEnter($event)\" />\n <button\n variant=\"tertiary\"\n scheme=\"neutral\"\n [iconOnly]=\"true\"\n [size]=\"buttonSize()\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [class]=\"value()\n ? 'rotate-90 opacity-100 transition-[rotate,opacity] duration-500'\n : 'rotate-0 opacity-0 pointer-events-none transition-[rotate,opacity] duration-500'\"\n [tabindex]=\"value() && !disabled() ? 0 : -1\"\n [attr.aria-label]=\"clearLabel()\"\n [tooltip]=\"clearLabel()\"\n (keydown.enter)=\"clearSearch($event)\"\n (click)=\"clearSearch($event)\">\n <XMarkIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n <span class=\"sr-only\">{{ clearLabel() }}</span>\n </button>\n <!-- Actions applicatives (favori, filtre rapide…) : le slot par défaut est ici, entre « clear »\n et « send », parce que c'est la place naturelle d'une action liée à la requête. Ce qui doit\n rester APRÈS le bouton d'envoi porte slot=\"trailing\" (voir plus bas). -->\n <ng-content />\n @if (showSend()) {\n <button\n [variant]=\"isHero() ? 'primary' : 'tertiary'\"\n [scheme]=\"isHero() ? 'default' : 'neutral'\"\n [iconOnly]=\"true\"\n [size]=\"buttonSize()\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [class]=\"sendClass()\"\n [tabindex]=\"(value() || isHero()) && !disabled() ? 0 : -1\"\n [attr.aria-label]=\"sendLabel()\"\n [tooltip]=\"sendLabel()\"\n (keydown.enter)=\"emitSearch($event)\"\n (click)=\"emitSearch($event)\">\n @if (isHero()) {\n <SearchIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n } @else {\n <SendHorizontalIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n }\n <span class=\"sr-only\">{{ sendLabel() }}</span>\n </button>\n }\n <!-- Zone de fin de pilule, après le bouton d'envoi (CTA du type « Ask AI »…).\n ⚠️ Le contenu d'un bloc @if ne peut pas atteindre ce slot : la projection ne teste que les\n enfants directs de l'hôte, et le nœud d'un @if ne porte aucun attribut — il retombe donc\n dans le slot par défaut. Envelopper alors le bloc dans un <ng-container slot=\"trailing\">. -->\n <ng-content select=\"[slot='trailing']\" />\n",
|
|
23908
23929
|
isInline: true,
|
|
23909
23930
|
dependencies: [
|
|
23910
23931
|
{
|
|
@@ -24017,7 +24038,7 @@ var SearchBarSuggestionsComponent = class SearchBarSuggestionsComponent extends
|
|
|
24017
24038
|
}],
|
|
24018
24039
|
usesInheritance: true,
|
|
24019
24040
|
ngImport: i0,
|
|
24020
|
-
template: "\n <span class=\"sb-icon\">\n <SearchIcon [class]=\"searchIconClass()\" />\n </span>\n <input\n ngCombobox virtualKeyboard #vk=\"virtualKeyboard\" \n class=\"sb-input\"\n [class]=\"searchNativeReset\"\n #search\n type=\"search\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n [placeholder]=\"placeholder()\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n (blur)=\"touch.emit()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-keyshortcuts]=\"hotkey()\"\n (search)=\"$event.stopPropagation()\" \n [disabled]=\"disabled()\"\n [readOnly]=\"readonly()\"\n [(value)]=\"value\" />\n @if (vk.applicable()) {\n <button\n variant=\"tertiary\"\n scheme=\"neutral\"\n [iconOnly]=\"true\"\n [size]=\"buttonSize()\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"vk.hidden() ? keyboardLabel() : hideKeyboardLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"vk.toggle()\">\n <KeyboardIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n </button>\n }\n\n <button\n variant=\"tertiary\"\n scheme=\"neutral\"\n [iconOnly]=\"true\"\n [size]=\"buttonSize()\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [class]=\"value()\n ? 'rotate-90 opacity-100 transition-[rotate,opacity] duration-500'\n : 'rotate-0 opacity-0 pointer-events-none transition-[rotate,opacity] duration-500'\"\n [tabindex]=\"value() && !disabled() ? 0 : -1\"\n [attr.aria-label]=\"clearLabel()\"\n [tooltip]=\"clearLabel()\"\n (keydown.enter)=\"clearSearch($event)\"\n (click)=\"clearSearch($event)\">\n <XMarkIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n <span class=\"sr-only\">{{ clearLabel() }}</span>\n </button>\n <!-- Actions applicatives (favori, filtre rapide…) : le slot par défaut est ici, entre « clear »\n et « send », parce que c'est la place naturelle d'une action liée à la requête. Ce qui doit\n rester APRÈS le bouton d'envoi porte slot=\"trailing\" (voir plus bas). -->\n <ng-content />\n <button\n
|
|
24041
|
+
template: "\n <span class=\"sb-icon\">\n <SearchIcon [class]=\"searchIconClass()\" />\n </span>\n <input\n ngCombobox virtualKeyboard #vk=\"virtualKeyboard\" \n class=\"sb-input\"\n [class]=\"searchNativeReset\"\n #search\n type=\"search\"\n spellcheck=\"false\"\n autocapitalize=\"off\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n [placeholder]=\"placeholder()\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"invalid() || null\"\n (blur)=\"touch.emit()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-keyshortcuts]=\"hotkey()\"\n (search)=\"$event.stopPropagation()\" \n [disabled]=\"disabled()\"\n [readOnly]=\"readonly()\"\n [(value)]=\"value\" />\n @if (vk.applicable()) {\n <button\n variant=\"tertiary\"\n scheme=\"neutral\"\n [iconOnly]=\"true\"\n [size]=\"buttonSize()\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"vk.hidden() ? keyboardLabel() : hideKeyboardLabel()\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"vk.toggle()\">\n <KeyboardIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n </button>\n }\n\n <button\n variant=\"tertiary\"\n scheme=\"neutral\"\n [iconOnly]=\"true\"\n [size]=\"buttonSize()\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [class]=\"value()\n ? 'rotate-90 opacity-100 transition-[rotate,opacity] duration-500'\n : 'rotate-0 opacity-0 pointer-events-none transition-[rotate,opacity] duration-500'\"\n [tabindex]=\"value() && !disabled() ? 0 : -1\"\n [attr.aria-label]=\"clearLabel()\"\n [tooltip]=\"clearLabel()\"\n (keydown.enter)=\"clearSearch($event)\"\n (click)=\"clearSearch($event)\">\n <XMarkIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n <span class=\"sr-only\">{{ clearLabel() }}</span>\n </button>\n <!-- Actions applicatives (favori, filtre rapide…) : le slot par défaut est ici, entre « clear »\n et « send », parce que c'est la place naturelle d'une action liée à la requête. Ce qui doit\n rester APRÈS le bouton d'envoi porte slot=\"trailing\" (voir plus bas). -->\n <ng-content />\n @if (showSend()) {\n <button\n [variant]=\"isHero() ? 'primary' : 'tertiary'\"\n [scheme]=\"isHero() ? 'default' : 'neutral'\"\n [iconOnly]=\"true\"\n [size]=\"buttonSize()\"\n type=\"button\"\n [disabled]=\"disabled()\"\n [class]=\"sendClass()\"\n [tabindex]=\"(value() || isHero()) && !disabled() ? 0 : -1\"\n [attr.aria-label]=\"sendLabel()\"\n [tooltip]=\"sendLabel()\"\n (keydown.enter)=\"emitSearch($event)\"\n (click)=\"emitSearch($event)\">\n @if (isHero()) {\n <SearchIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n } @else {\n <SendHorizontalIcon [class]=\"iconClass()\" aria-hidden=\"true\" />\n }\n <span class=\"sr-only\">{{ sendLabel() }}</span>\n </button>\n }\n <!-- Zone de fin de pilule, après le bouton d'envoi (CTA du type « Ask AI »…).\n ⚠️ Le contenu d'un bloc @if ne peut pas atteindre ce slot : la projection ne teste que les\n enfants directs de l'hôte, et le nœud d'un @if ne porte aucun attribut — il retombe donc\n dans le slot par défaut. Envelopper alors le bloc dans un <ng-container slot=\"trailing\">. -->\n <ng-content select=\"[slot='trailing']\" />\n",
|
|
24021
24042
|
isInline: true,
|
|
24022
24043
|
dependencies: [
|
|
24023
24044
|
{
|
|
@@ -24919,7 +24940,7 @@ var DialogService = class DialogService {
|
|
|
24919
24940
|
}]
|
|
24920
24941
|
});
|
|
24921
24942
|
const componentRef = createComponent(component, {
|
|
24922
|
-
environmentInjector: this.appRef.injector,
|
|
24943
|
+
environmentInjector: parent.get(EnvironmentInjector, this.appRef.injector),
|
|
24923
24944
|
elementInjector
|
|
24924
24945
|
});
|
|
24925
24946
|
return new Promise((resolve) => {
|