cps-ui-kit 0.26.0 → 0.28.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.
@@ -0,0 +1,35 @@
1
+ import { ElementRef, OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
4
+ export type TooltipOpenOn = 'hover' | 'click' | 'focus';
5
+ export declare class CpsTooltipDirective implements OnDestroy {
6
+ private _elementRef;
7
+ tooltip: string;
8
+ tooltipOpenDelay: string | number;
9
+ tooltipCloseDelay: string | number;
10
+ tooltipOpenOn: TooltipOpenOn;
11
+ tooltipPosition: TooltipPosition;
12
+ tooltipPersistent: boolean;
13
+ tooltipDisabled: boolean;
14
+ tooltipMaxWidth: number | string;
15
+ tooltipContentClass: string;
16
+ private _popup?;
17
+ private _showTimeout?;
18
+ private _hideTimeout?;
19
+ constructor(_elementRef: ElementRef<HTMLElement>);
20
+ ngOnDestroy(): void;
21
+ private _createTooltip;
22
+ private _destroyTooltip;
23
+ private _constructElement;
24
+ private _getCoords;
25
+ private _getCoordsForPosition;
26
+ onMouseEnter(): void;
27
+ onMouseLeave(): void;
28
+ onFocus(): void;
29
+ onBlur(): void;
30
+ onClick(): void;
31
+ onPageResize(): void;
32
+ onDocumentClick(target: any): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<CpsTooltipDirective, never>;
34
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CpsTooltipDirective, "[cpsTooltip]", never, { "tooltip": "cpsTooltip"; "tooltipOpenDelay": "tooltipOpenDelay"; "tooltipCloseDelay": "tooltipCloseDelay"; "tooltipOpenOn": "tooltipOpenOn"; "tooltipPosition": "tooltipPosition"; "tooltipPersistent": "tooltipPersistent"; "tooltipDisabled": "tooltipDisabled"; "tooltipMaxWidth": "tooltipMaxWidth"; "tooltipContentClass": "tooltipContentClass"; }, {}, never, never, true, never>;
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cps-ui-kit",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "15 - 16",
6
6
  "@angular/core": "15 - 16",
package/public-api.d.ts CHANGED
@@ -17,5 +17,6 @@ export * from './lib/components/cps-progress-circular/cps-progress-circular.comp
17
17
  export * from './lib/components/cps-progress-linear/cps-progress-linear.component';
18
18
  export * from './lib/components/cps-datepicker/cps-datepicker.component';
19
19
  export * from './lib/components/cps-textarea/cps-textarea.component';
20
+ export * from './lib/directives/cps-tooltip.directive';
20
21
  export * from './lib/components/cps-button-toggle/cps-button-toggle.component';
21
22
  export * from './lib/utils/colors-utils';
@@ -0,0 +1,13 @@
1
+ .cps-tooltip {
2
+ position: absolute;
3
+ top: 0;
4
+ cursor: default;
5
+ font-size: 14px;
6
+ background: #faf5f6;
7
+ color: var(--cps-color-text-darkest);
8
+ font-family: 'Source Sans Pro', sans-serif;
9
+ border: 1px solid var(--cps-color-calm);
10
+ overflow-wrap: break-word;
11
+ border-radius: 3px;
12
+ padding: 3px;
13
+ }
@@ -1,2 +1,3 @@
1
1
  @import 'bootstrap-grid';
2
- @import '_variables.scss';
2
+ @import 'variables.scss';
3
+ @import 'cps-tooltip-style.scss';
File without changes