slick-components 17.0.87 → 17.0.89

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.
@@ -23,7 +23,7 @@ class SlickInitParams {
23
23
  }
24
24
  }
25
25
  class SlickInitService {
26
- static { this.version = "17.0.87"; }
26
+ static { this.version = "17.0.89"; }
27
27
  constructor() { }
28
28
  static init(initParams) {
29
29
  console.info(`Slick Components Version ${SlickInitService.version}`);
@@ -736,6 +736,7 @@ class SlickAutoCompleteComponent {
736
736
  this.onFreeformTextSelect = new EventEmitter();
737
737
  this.fnDocumentClick = (e) => this.documentClick(e);
738
738
  this.fnKeyDown = (e) => this.keyDown(e);
739
+ this.fnInputFocus = () => this.onInputFocus();
739
740
  this.lastInputValue = "";
740
741
  this.forcedCollapse = false;
741
742
  // This is necessary so that the scroll and resize events can add and remove the event properly,
@@ -757,6 +758,7 @@ class SlickAutoCompleteComponent {
757
758
  // of a div when it expands beyond the bottom.
758
759
  this.autoCompleteRef.nativeElement.remove(this.autoCompleteRef);
759
760
  document.body.appendChild(this.autoCompleteRef.nativeElement);
761
+ this.inputRef.addEventListener("focus", this.fnInputFocus);
760
762
  this.inputRef.addEventListener("keydown", this.fnKeyDown);
761
763
  }
762
764
  ngOnDestroy() {
@@ -784,8 +786,11 @@ class SlickAutoCompleteComponent {
784
786
  if (isNaN(this.offset))
785
787
  this.offset = parseInt(this.offset.toString());
786
788
  }
789
+ onInputFocus() {
790
+ document.addEventListener("click", this.fnDocumentClick, true);
791
+ }
787
792
  documentClick(e) {
788
- if (!this.expanded || !e.target)
793
+ if (!e.target)
789
794
  return;
790
795
  if (e.target === this.inputRef)
791
796
  return;
@@ -793,6 +798,7 @@ class SlickAutoCompleteComponent {
793
798
  clearInterval(this.waitForItemsInterval);
794
799
  this.slickFunctionLockService.release("AUTO_COMPLETE_WAIT_FOR_ITEMS");
795
800
  this.collapse();
801
+ document.removeEventListener("click", this.fnDocumentClick, true);
796
802
  if (this.allowFreeformText && this.onFreeformTextSelect)
797
803
  this.onFreeformTextSelect.emit(this.inputRef.value);
798
804
  }
@@ -5312,7 +5318,7 @@ class SlickGridColumnModel {
5312
5318
  let gridColumn = new SlickGridColumnModel();
5313
5319
  if (params.columnKey)
5314
5320
  gridColumn.columnKey = params.columnKey;
5315
- if (params.customField)
5321
+ if (params.customData)
5316
5322
  gridColumn.customData = params.customData;
5317
5323
  if (params.title)
5318
5324
  gridColumn.title = params.title;