@coreui/angular 5.6.7 → 5.6.8

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 creativeLabs Łukasz Holeczek
3
+ Copyright (c) 2026 creativeLabs Łukasz Holeczek
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -229,7 +229,7 @@ Thanks to all the backers and sponsors! Support this project by [becoming a back
229
229
 
230
230
  ## Copyright and license
231
231
 
232
- Copyright 2025 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
232
+ Copyright 2026 creativeLabs Łukasz Holeczek. Code released under the [MIT License](https://github.com/coreui/coreui-angular/blob/main/LICENSE). Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
233
233
 
234
234
  [npm-coreui-angular-badge-v5-ng21]: https://img.shields.io/npm/v/@coreui/angular/v5-ng21?style=flat-square&color=brightgreen
235
235
  [npm-coreui-angular-badge-latest]: https://img.shields.io/npm/v/@coreui/angular/latest?style=flat-square&color=brightgreen
@@ -6132,6 +6132,8 @@ class PopoverDirective {
6132
6132
  #intersectionService = inject(IntersectionService);
6133
6133
  #destroyRef = inject(DestroyRef);
6134
6134
  #document = inject(DOCUMENT);
6135
+ #timerId1;
6136
+ #timerId2;
6135
6137
  /**
6136
6138
  * Content of popover
6137
6139
  * @return {string | TemplateRef}
@@ -6287,26 +6289,31 @@ class PopoverDirective {
6287
6289
  this.removeTooltipElement();
6288
6290
  return;
6289
6291
  }
6290
- setTimeout(() => {
6292
+ clearTimeout(this.#timerId2);
6293
+ clearTimeout(this.#timerId1);
6294
+ this.#timerId1 = setTimeout(() => {
6291
6295
  this.tooltipId = this.getUID('popover');
6292
6296
  this.tooltipRef?.setInput('id', this.tooltipId);
6293
6297
  this.#renderer.removeClass(this.tooltip, 'd-none');
6294
6298
  this.tooltipRef?.setInput('visible', this.visible());
6295
6299
  this.popperInstance?.forceUpdate();
6296
6300
  this.#changeDetectorRef?.markForCheck();
6297
- }, 100);
6301
+ this.#timerId1 = undefined;
6302
+ }, 150);
6298
6303
  }
6299
6304
  removeTooltipElement() {
6300
6305
  this.tooltipId = '';
6301
6306
  if (!this.tooltipRef) {
6302
6307
  return;
6303
6308
  }
6309
+ clearTimeout(this.#timerId2);
6310
+ this.#timerId2 = setTimeout(() => {
6311
+ this.#viewContainerRef?.detach();
6312
+ this.#timerId2 = undefined;
6313
+ }, 300);
6304
6314
  this.tooltipRef.setInput('visible', false);
6305
6315
  this.tooltipRef.setInput('id', undefined);
6306
6316
  this.#changeDetectorRef.markForCheck();
6307
- setTimeout(() => {
6308
- this.#viewContainerRef?.detach();
6309
- }, 300);
6310
6317
  }
6311
6318
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: PopoverDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6312
6319
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.0", type: PopoverDirective, isStandalone: true, selector: "[cPopover]", inputs: { content: { classPropertyName: "content", publicName: "cPopover", isSignal: true, isRequired: false, transformFunction: null }, popperOptions: { classPropertyName: "popperOptions", publicName: "cPopoverOptions", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "cPopoverPlacement", isSignal: true, isRequired: false, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "cTooltipRef", isSignal: true, isRequired: false, transformFunction: null }, trigger: { classPropertyName: "trigger", publicName: "cPopoverTrigger", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "cPopoverVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "cPopoverVisibleChange" }, host: { properties: { "attr.aria-describedby": "ariaDescribedBy" } }, providers: [ListenersService, IntersectionService], exportAs: ["cPopover"], ngImport: i0 });
@@ -9030,6 +9037,8 @@ class TooltipDirective {
9030
9037
  #intersectionService = inject(IntersectionService);
9031
9038
  #destroyRef = inject(DestroyRef);
9032
9039
  #document = inject(DOCUMENT);
9040
+ #timerId1;
9041
+ #timerId2;
9033
9042
  /**
9034
9043
  * Content of tooltip
9035
9044
  * @return {string | TemplateRef}
@@ -9185,26 +9194,31 @@ class TooltipDirective {
9185
9194
  this.removeTooltipElement();
9186
9195
  return;
9187
9196
  }
9188
- setTimeout(() => {
9197
+ clearTimeout(this.#timerId2);
9198
+ clearTimeout(this.#timerId1);
9199
+ this.#timerId1 = setTimeout(() => {
9189
9200
  this.tooltipId = this.getUID('tooltip');
9190
9201
  this.tooltipRef?.setInput('id', this.tooltipId);
9191
9202
  this.#renderer.removeClass(this.tooltip, 'd-none');
9192
9203
  this.tooltipRef?.setInput('visible', this.visible());
9193
9204
  this.popperInstance?.forceUpdate();
9194
9205
  this.#changeDetectorRef?.markForCheck();
9195
- }, 100);
9206
+ this.#timerId1 = undefined;
9207
+ }, 150);
9196
9208
  }
9197
9209
  removeTooltipElement() {
9198
9210
  this.tooltipId = '';
9199
9211
  if (!this.tooltipRef) {
9200
9212
  return;
9201
9213
  }
9214
+ clearTimeout(this.#timerId2);
9215
+ this.#timerId2 = setTimeout(() => {
9216
+ this.#viewContainerRef?.detach();
9217
+ this.#timerId2 = undefined;
9218
+ }, 300);
9202
9219
  this.tooltipRef.setInput('visible', false);
9203
9220
  this.tooltipRef.setInput('id', undefined);
9204
9221
  this.#changeDetectorRef.markForCheck();
9205
- setTimeout(() => {
9206
- this.#viewContainerRef?.detach();
9207
- }, 300);
9208
9222
  }
9209
9223
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9210
9224
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.1.0", type: TooltipDirective, isStandalone: true, selector: "[cTooltip]", inputs: { content: { classPropertyName: "content", publicName: "cTooltip", isSignal: true, isRequired: false, transformFunction: null }, popperOptions: { classPropertyName: "popperOptions", publicName: "cTooltipOptions", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "cTooltipPlacement", isSignal: true, isRequired: false, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "cTooltipRef", isSignal: true, isRequired: false, transformFunction: null }, trigger: { classPropertyName: "trigger", publicName: "cTooltipTrigger", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "cTooltipVisible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "cTooltipVisibleChange" }, host: { properties: { "attr.aria-describedby": "ariaDescribedBy" } }, providers: [ListenersService, IntersectionService], exportAs: ["cTooltip"], ngImport: i0 });