@datarailsshared/datarailsshared 1.5.277 → 1.5.279
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/assets/styles/vars.scss +1 -1
- package/datarailsshared-datarailsshared-1.5.279.tgz +0 -0
- package/esm2022/lib/dr-chat/chat.component.mjs +2 -2
- package/esm2022/lib/dr-chat/dr-chat-form/chat-form.component.mjs +5 -5
- package/esm2022/lib/dr-chat/dr-chat-message/chat-message.component.mjs +3 -3
- package/esm2022/lib/dr-chat/dr-chat-suggestions/chat-suggestions.component.mjs +38 -5
- package/esm2022/lib/utils/dr-shared-utils.mjs +9 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +49 -12
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-chat/dr-chat-suggestions/chat-suggestions.component.d.ts +12 -2
- package/lib/utils/dr-shared-utils.d.ts +2 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.5.277.tgz +0 -0
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DrChatSuggestionsComponent implements OnInit {
|
|
4
|
+
export declare class DrChatSuggestionsComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
4
5
|
private cdr;
|
|
5
6
|
_nonHiddenValues: string[];
|
|
6
7
|
visibleValues: string[];
|
|
7
8
|
isSuggestedMenuOpen: boolean;
|
|
9
|
+
colsCount: number;
|
|
10
|
+
private destroy$;
|
|
8
11
|
values: string[];
|
|
9
12
|
fullScreen: boolean;
|
|
10
13
|
buttonMode: boolean;
|
|
@@ -15,15 +18,22 @@ export declare class DrChatSuggestionsComponent implements OnInit {
|
|
|
15
18
|
*/
|
|
16
19
|
waitForReply: boolean;
|
|
17
20
|
suggestionSelect: EventEmitter<string>;
|
|
21
|
+
suggestionContainer: ElementRef;
|
|
18
22
|
get hiddenValues(): string[];
|
|
19
23
|
set hiddenValues(values: string[]);
|
|
24
|
+
onResize$: Observable<ResizeObserverEntry[]>;
|
|
25
|
+
colWidth: number;
|
|
26
|
+
colGap: number;
|
|
20
27
|
constructor(cdr: ChangeDetectorRef);
|
|
21
28
|
ngOnInit(): void;
|
|
29
|
+
ngAfterViewInit(): void;
|
|
22
30
|
onItemClick(item: string): void;
|
|
23
31
|
filterValues(): void;
|
|
24
32
|
fillVisibleValues(): void;
|
|
25
33
|
clearHidden(): void;
|
|
34
|
+
recalculateColsCount(): void;
|
|
26
35
|
toggleSuggestedMenu(): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
27
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrChatSuggestionsComponent, never>;
|
|
28
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<DrChatSuggestionsComponent, "dr-chat-suggestions", never, { "values": { "alias": "values"; "required": false; }; "fullScreen": { "alias": "fullScreen"; "required": false; }; "buttonMode": { "alias": "buttonMode"; "required": false; }; "waitForReply": { "alias": "waitForReply"; "required": false; }; }, { "suggestionSelect": "suggestionSelect"; }, never, never, false, never>;
|
|
29
39
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TimeframeOption } from '../models/datePicker';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
export declare class DrSharedUtils {
|
|
3
4
|
/**
|
|
4
5
|
* Get timeframe (day, year, month, quarter) based on passed format
|
|
@@ -7,4 +8,5 @@ export declare class DrSharedUtils {
|
|
|
7
8
|
*/
|
|
8
9
|
static getTimeframeByDateFormat(format: string): TimeframeOption;
|
|
9
10
|
static getDateByTag(tag: string): any;
|
|
11
|
+
static fromResizeObserver: (target: Element) => Observable<ResizeObserverEntry[]>;
|
|
10
12
|
}
|
package/package.json
CHANGED
|
Binary file
|