@sinequa/galactik 2.17.0 → 2.19.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.
@@ -15680,6 +15680,13 @@ const buttonVariants = /*@__PURE__*/ cva([
15680
15680
  "bg-transparent",
15681
15681
  "disabled:bg-transparent disabled:text-(--btn-disabled-fg)",
15682
15682
  "enabled:focus-visible:bg-transparent enabled:focus-visible:text-(--font-secondary-base)"
15683
+ ],
15684
+ link: [
15685
+ "border-transparent bg-transparent",
15686
+ "text-(--font-secondary-base-alt)",
15687
+ "enabled:hover:bg-(--bg-secondary-lighter) enabled:hover:font-(--weight-semibold) enabled:hover:text-(--font-secondary-hovered)",
15688
+ "enabled:active:bg-(--bg-secondary-light) enabled:active:font-(--weight-semibold) enabled:active:text-(--font-secondary-pressed)",
15689
+ "disabled:bg-transparent disabled:text-(--font-neutral-muted)"
15683
15690
  ]
15684
15691
  },
15685
15692
  scheme: {
@@ -15738,6 +15745,10 @@ const buttonVariants = /*@__PURE__*/ cva([
15738
15745
  size: ["lg", "large"],
15739
15746
  class: "min-h-11"
15740
15747
  },
15748
+ {
15749
+ variant: "link",
15750
+ class: "h-auto min-h-0 gap-(--spacing-3xs) rounded-(--radius-xs) p-0 leading-[inherit] focus-visible:outline-offset-1"
15751
+ },
15741
15752
  {
15742
15753
  iconOnly: true,
15743
15754
  size: "xs",
@@ -23527,26 +23538,28 @@ const AFTER_CONTROL = `
23527
23538
  et « send », parce que c'est la place naturelle d'une action liée à la requête. Ce qui doit
23528
23539
  rester APRÈS le bouton d'envoi porte slot="trailing" (voir plus bas). -->
23529
23540
  <ng-content />
23530
- <button
23531
- [variant]="isHero() ? 'primary' : 'tertiary'"
23532
- [scheme]="isHero() ? 'default' : 'neutral'"
23533
- [iconOnly]="true"
23534
- [size]="buttonSize()"
23535
- type="button"
23536
- [disabled]="disabled()"
23537
- [class]="sendClass()"
23538
- [tabindex]="(value() || isHero()) && !disabled() ? 0 : -1"
23539
- [attr.aria-label]="sendLabel()"
23540
- [tooltip]="sendLabel()"
23541
- (keydown.enter)="emitSearch($event)"
23542
- (click)="emitSearch($event)">
23543
- @if (isHero()) {
23544
- <SearchIcon [class]="iconClass()" aria-hidden="true" />
23545
- } @else {
23546
- <SendHorizontalIcon [class]="iconClass()" aria-hidden="true" />
23547
- }
23548
- <span class="sr-only">{{ sendLabel() }}</span>
23549
- </button>
23541
+ @if (showSend()) {
23542
+ <button
23543
+ [variant]="isHero() ? 'primary' : 'tertiary'"
23544
+ [scheme]="isHero() ? 'default' : 'neutral'"
23545
+ [iconOnly]="true"
23546
+ [size]="buttonSize()"
23547
+ type="button"
23548
+ [disabled]="disabled()"
23549
+ [class]="sendClass()"
23550
+ [tabindex]="(value() || isHero()) && !disabled() ? 0 : -1"
23551
+ [attr.aria-label]="sendLabel()"
23552
+ [tooltip]="sendLabel()"
23553
+ (keydown.enter)="emitSearch($event)"
23554
+ (click)="emitSearch($event)">
23555
+ @if (isHero()) {
23556
+ <SearchIcon [class]="iconClass()" aria-hidden="true" />
23557
+ } @else {
23558
+ <SendHorizontalIcon [class]="iconClass()" aria-hidden="true" />
23559
+ }
23560
+ <span class="sr-only">{{ sendLabel() }}</span>
23561
+ </button>
23562
+ }
23550
23563
  <!-- Zone de fin de pilule, après le bouton d'envoi (CTA du type « Ask AI »…).
23551
23564
  ⚠️ Le contenu d'un bloc @if ne peut pas atteindre ce slot : la projection ne teste que les
23552
23565
  enfants directs de l'hôte, et le nœud d'un @if ne porte aucun attribut — il retombe donc
@@ -23569,6 +23582,10 @@ var SearchBarBase = class SearchBarBase {
23569
23582
  keyboardLabel = input("Show keyboard", ...ngDevMode ? [{ debugName: "keyboardLabel" }] : /* istanbul ignore next */ []);
23570
23583
  clearLabel = input("Clear search", ...ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []);
23571
23584
  sendLabel = input("Send", ...ngDevMode ? [{ debugName: "sendLabel" }] : /* istanbul ignore next */ []);
23585
+ showSend = input(true, {
23586
+ ...ngDevMode ? { debugName: "showSend" } : /* istanbul ignore next */ {},
23587
+ transform: booleanAttribute
23588
+ });
23572
23589
  disabled = input(false, {
23573
23590
  ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
23574
23591
  transform: booleanAttribute
@@ -23678,6 +23695,13 @@ var SearchBarBase = class SearchBarBase {
23678
23695
  isRequired: false,
23679
23696
  transformFunction: null
23680
23697
  },
23698
+ showSend: {
23699
+ classPropertyName: "showSend",
23700
+ publicName: "showSend",
23701
+ isSignal: true,
23702
+ isRequired: false,
23703
+ transformFunction: null
23704
+ },
23681
23705
  disabled: {
23682
23706
  classPropertyName: "disabled",
23683
23707
  publicName: "disabled",
@@ -23821,6 +23845,14 @@ i0.ɵɵngDeclareClassMetadata({
23821
23845
  required: false
23822
23846
  }]
23823
23847
  }],
23848
+ showSend: [{
23849
+ type: i0.Input,
23850
+ args: [{
23851
+ isSignal: true,
23852
+ alias: "showSend",
23853
+ required: false
23854
+ }]
23855
+ }],
23824
23856
  disabled: [{
23825
23857
  type: i0.Input,
23826
23858
  args: [{
@@ -23904,7 +23936,7 @@ var SearchBarComponent = class SearchBarComponent extends SearchBarBase {
23904
23936
  selector: "SearchBar:not([suggestions]), search-bar:not([suggestions]), searchbar:not([suggestions])",
23905
23937
  usesInheritance: true,
23906
23938
  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 [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 <!-- 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",
23939
+ 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
23940
  isInline: true,
23909
23941
  dependencies: [
23910
23942
  {
@@ -24017,7 +24049,7 @@ var SearchBarSuggestionsComponent = class SearchBarSuggestionsComponent extends
24017
24049
  }],
24018
24050
  usesInheritance: true,
24019
24051
  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 [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 <!-- 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",
24052
+ 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
24053
  isInline: true,
24022
24054
  dependencies: [
24023
24055
  {
@@ -24919,7 +24951,7 @@ var DialogService = class DialogService {
24919
24951
  }]
24920
24952
  });
24921
24953
  const componentRef = createComponent(component, {
24922
- environmentInjector: this.appRef.injector,
24954
+ environmentInjector: parent.get(EnvironmentInjector, this.appRef.injector),
24923
24955
  elementInjector
24924
24956
  });
24925
24957
  return new Promise((resolve) => {