@brickclay-org/ui 0.0.44 → 0.0.46

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnDestroy, OnChanges, EventEmitter, SimpleChanges, AfterViewInit, QueryList, ElementRef, ComponentRef, Type, InjectionToken } from '@angular/core';
2
+ import { OnInit, OnDestroy, OnChanges, EventEmitter, SimpleChanges, AfterViewInit, QueryList, ElementRef, ComponentRef, Type, InjectionToken, Renderer2 } from '@angular/core';
3
3
  import * as rxjs from 'rxjs';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i1 from '@angular/common';
@@ -646,7 +646,7 @@ declare class BkSelect implements ControlValueAccessor {
646
646
  disabled: i0.ModelSignal<boolean>;
647
647
  loading: i0.InputSignal<boolean>;
648
648
  closeOnSelect: i0.InputSignal<boolean>;
649
- dropdownPosition: i0.InputSignal<"bottom" | "top">;
649
+ dropdownPosition: i0.InputSignal<"top" | "bottom">;
650
650
  hasError: boolean;
651
651
  errorMessage: string;
652
652
  appendToBody: i0.InputSignal<boolean>;
@@ -1517,5 +1517,30 @@ declare function getDialogBackdropAnimation(enterDuration: number, leaveDuration
1517
1517
  leave: AnimationKeyframes;
1518
1518
  };
1519
1519
 
1520
- export { BkBadge, BkButton, BkButtonGroup, BkCheckbox, BkCustomCalendar, BkDialogActions, BkDialogClose, BkDialogContent, BkDialogModule, BkDialogTitle, BkGrid, BkIconButton, BkInput, BkInputChips, BkPill, BkRadioButton, BkScheduledDatePicker, BkSelect, BkSpinner, BkTabs, BkTextarea, BkTimePicker, BkToggle, BrickclayIcons, BrickclayLib, CalendarManagerService, CalendarModule, DEFAULT_DIALOG_CONFIG, DIALOG_DATA, DIALOG_GLOBAL_CONFIG, DialogRef, DialogService, getDialogBackdropAnimation, getDialogPanelAnimation };
1520
+ declare class BKTooltipDirective implements OnInit, OnChanges, OnDestroy {
1521
+ private el;
1522
+ private renderer;
1523
+ tooltipContent: string | string[];
1524
+ tooltipPosition: 'left' | 'right' | 'top' | 'bottom';
1525
+ private tooltipElement;
1526
+ constructor(el: ElementRef, renderer: Renderer2);
1527
+ ngOnInit(): void;
1528
+ ngOnChanges(changes: SimpleChanges): void;
1529
+ ngOnDestroy(): void;
1530
+ updateTooltipContent(): void;
1531
+ appendContent(): void;
1532
+ onMouseEnter(): void;
1533
+ onMouseLeave(): void;
1534
+ onWindowChange(): void;
1535
+ private isTooltipContentEmpty;
1536
+ private createTooltip;
1537
+ private setTooltipPosition;
1538
+ private setTriangleStyles;
1539
+ private removeTooltip;
1540
+ private setStyle;
1541
+ static ɵfac: i0.ɵɵFactoryDeclaration<BKTooltipDirective, never>;
1542
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BKTooltipDirective, "[bkTooltip]", never, { "tooltipContent": { "alias": "bkTooltip"; "required": false; }; "tooltipPosition": { "alias": "bkTooltipPosition"; "required": false; }; }, {}, never, never, true, never>;
1543
+ }
1544
+
1545
+ export { BKTooltipDirective, BkBadge, BkButton, BkButtonGroup, BkCheckbox, BkCustomCalendar, BkDialogActions, BkDialogClose, BkDialogContent, BkDialogModule, BkDialogTitle, BkGrid, BkIconButton, BkInput, BkInputChips, BkPill, BkRadioButton, BkScheduledDatePicker, BkSelect, BkSpinner, BkTabs, BkTextarea, BkTimePicker, BkToggle, BrickclayIcons, BrickclayLib, CalendarManagerService, CalendarModule, DEFAULT_DIALOG_CONFIG, DIALOG_DATA, DIALOG_GLOBAL_CONFIG, DialogRef, DialogService, getDialogBackdropAnimation, getDialogPanelAnimation };
1521
1546
  export type { AnimationKeyframes, BadgeColor, BadgeSize, BadgeVariant, BkInputAutoCapitalize, BkInputAutoComplete, BkInputMode, BkInputType, BkTextAreaAutoCapitalize, BkTextAreaAutoComplete, BkTextAreaInputMode, ButtonSize, ButtonVariant, CalendarRange, CalendarSelection, CountryOption, DialogAnimation, DialogConfig, DialogPosition, GroupItem, GroupMode, IconButtonSize, IconButtonVariant, IconOrientation, PillColor, PillSize, PillVariant, ScheduledDateSelection, SortDirection, SpinnerSize, TabItem, TableAction, TableColumn, TimeConfiguration };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brickclay-org/ui",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "ng-add": {
6
6
  "save": "dependencies"
@@ -0,0 +1,35 @@
1
+ /* Tooltip Directive */
2
+ .bk-tooltip-content {
3
+ background-color: #000;
4
+ color: #fff;
5
+ padding: 8px 12px;
6
+ border-radius: 8px;
7
+ font-weight: 500;
8
+ font-size: 12px;
9
+ line-height: 18px;
10
+ position: absolute;
11
+ font-family: 'Inter', sans-serif !important;
12
+ max-width: 300px;
13
+ }
14
+ .bk-tooltip-content .text {
15
+ margin-bottom: 0;
16
+ word-break: break-all;
17
+ }
18
+ .bk-tooltip-content .text:last-child{
19
+ margin-bottom: 0;
20
+ }
21
+ .bk-divider {
22
+ display: block;
23
+ height: 1px;
24
+ margin: 8px 0;
25
+ background-color: #FFFFFF1A;
26
+ }
27
+
28
+ .bk-tooltip-triangle {
29
+ position: absolute;
30
+ width: 0;
31
+ height: 0;
32
+ border-style: solid;
33
+ border-width: 8px;
34
+ pointer-events: none;
35
+ }
package/src/styles.css CHANGED
@@ -15,3 +15,4 @@
15
15
  @import './lib/input-chips/input-chips.css';
16
16
  @import './lib/tabs/tabs.css';
17
17
  @import './lib/dialog/dialog-container.css';
18
+ @import './lib/tooltip/tooltip-directive.css';