otimus-library 0.1.99 → 0.2.1

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.
@@ -5,10 +5,15 @@ export declare class OcTooltipDirective {
5
5
  private renderer;
6
6
  constructor(elRef: ElementRef, renderer: Renderer2);
7
7
  content: string;
8
- side: 'bottom' | 'upon' | 'left' | 'right' | 'top';
9
- created: boolean;
10
- createToolTip(): void;
11
- onMouseOver(): void;
8
+ side: 'bottom' | 'upon' | 'left' | 'right' | 'top' | 'mouse';
9
+ private created;
10
+ private tooltip;
11
+ createToolTip(): HTMLElement | null;
12
+ onMouseOver(event: MouseEvent): void;
13
+ mouseingInterval: any | null;
14
+ onMouseMove(event: MouseEvent): void;
15
+ private updateTooltipPosition;
16
+ private positionTooltipFixed;
12
17
  onMouseOut(): void;
13
18
  static ɵfac: i0.ɵɵFactoryDeclaration<OcTooltipDirective, never>;
14
19
  static ɵdir: i0.ɵɵDirectiveDeclaration<OcTooltipDirective, "[ocTooltip]", never, { "content": { "alias": "content"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, {}, never, never, true, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otimus-library",
3
- "version": "0.1.99",
3
+ "version": "0.2.01",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^17.0.2",
@@ -1,50 +1,49 @@
1
1
  @use '../../variables.scss';
2
2
 
3
- .shui {
4
- .oc.table, &.oc.table {
5
- width: 100%;
6
- border-collapse: collapse;
7
- margin: 20px 0;
8
- font-size: 1em;
9
- font-family: 'Arial', sans-serif;
10
-
11
- thead {
12
- min-height: 50px ;
13
- height: 50px;
14
- }
3
+ .shui .oc.table,
4
+ .shui.oc.table {
5
+ width: 100%;
6
+ border-collapse: collapse;
7
+ margin: 20px 0;
8
+ font-size: 1em;
9
+ font-family: 'Arial', sans-serif;
10
+
11
+ thead {
12
+ min-height: 50px;
13
+ height: 50px;
14
+ }
15
+
16
+ tr {
17
+ background-color: white;
18
+ transition: 0.1s ease;
19
+ border: none;
20
+ border-top: 0;
21
+ border-bottom: 0;
15
22
 
16
- tr {
17
- background-color: white;
18
- transition: 0.1s ease;
19
- border: none;
20
- border-top: 0;
21
- border-bottom: 0;
22
-
23
- &:hover {
24
- filter: brightness(0.95);
25
- }
23
+ &:hover {
24
+ filter: brightness(0.95);
26
25
  }
26
+ }
27
27
 
28
- th, td {
29
- padding: 15px;
30
- text-align: left;
31
- }
28
+ th, td {
29
+ padding: 15px;
30
+ text-align: left;
31
+ }
32
32
 
33
- th {
34
- background-color: transparent;
35
- border-bottom: 1px solid rgba(variables.$color-shui-ui-5, 0.75);
36
- color: variables.$color-shui-ui-1;
37
- font-weight: 600;
38
- padding: 12px 15px;
39
- }
33
+ th {
34
+ background-color: transparent;
35
+ border-bottom: 1px solid rgba(variables.$color-shui-ui-5, 0.75);
36
+ color: variables.$color-shui-ui-1;
37
+ font-weight: 600;
38
+ padding: 12px 15px;
39
+ }
40
40
 
41
- td {
42
- border-bottom: 1px solid rgba(variables.$color-shui-ui-6, 0.5);
43
- font-size: 0.9rem;
44
- }
41
+ td {
42
+ border-bottom: 1px solid rgba(variables.$color-shui-ui-6, 0.5);
43
+ font-size: 0.9rem;
44
+ }
45
45
 
46
- &.striped tr:nth-child(even) {
47
- background-color: white;
48
- }
46
+ &.striped tr:nth-child(even) {
47
+ background-color: white;
49
48
  }
50
- }
49
+ }
@@ -13,6 +13,9 @@
13
13
  z-index: 1000;
14
14
  pointer-events: none;
15
15
  animation: show-up 0.15s ease;
16
+ &.mouse-tracking {
17
+ border-top-left-radius: 0;
18
+ }
16
19
  }
17
20
 
18
21
  @keyframes show-up {