@datarailsshared/datarailsshared 1.5.572 → 1.5.576
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/datarailsshared-datarailsshared-1.5.576.tgz +0 -0
- package/esm2022/lib/directives/let/let.directive.mjs +35 -0
- package/esm2022/lib/directives/ng-track-by-property/ng-track-by-property.directive.mjs +23 -0
- package/esm2022/lib/dr-chat/chat.component.mjs +7 -6
- package/esm2022/lib/dr-chat/chat.module.mjs +29 -4
- package/esm2022/lib/dr-chat/dr-chat-form-with-history/chat-form-with-history.component.mjs +380 -0
- package/esm2022/lib/pipes/filter/filter.pipe.mjs +48 -0
- package/esm2022/lib/pipes/img/img.pipe.mjs +19 -0
- package/esm2022/lib/utils/dr-shared-utils.mjs +28 -1
- package/esm2022/public-api.mjs +6 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +701 -169
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/directives/let/let.directive.d.ts +19 -0
- package/lib/directives/ng-track-by-property/ng-track-by-property.directive.d.ts +8 -0
- package/lib/dr-chat/chat.component.d.ts +1 -1
- package/lib/dr-chat/chat.module.d.ts +14 -12
- package/lib/dr-chat/dr-chat-form-with-history/chat-form-with-history.component.d.ts +81 -0
- package/lib/pipes/filter/filter.pipe.d.ts +7 -0
- package/lib/pipes/img/img.pipe.d.ts +7 -0
- package/lib/utils/dr-shared-utils.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
- package/datarailsshared-datarailsshared-1.5.572.tgz +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LetContext<T> {
|
|
4
|
+
private readonly dir;
|
|
5
|
+
constructor(dir: LetDirective<T>);
|
|
6
|
+
get ngLet(): T;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Works like *ngIf but does not have a condition
|
|
10
|
+
* Use it to declare the result of pipes calculation
|
|
11
|
+
* (i.e. async pipe)
|
|
12
|
+
*/
|
|
13
|
+
export declare class LetDirective<T> {
|
|
14
|
+
ngLet: T;
|
|
15
|
+
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<LetContext<T>>);
|
|
16
|
+
static ngTemplateContextGuard<T>(dir: LetDirective<T>, ctx: any): ctx is LetContext<T>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LetDirective<any>, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LetDirective<any>, "[ngLet]", never, { "ngLet": { "alias": "ngLet"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NgForOf } from '@angular/common';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TrackByPropertyDirective<T> {
|
|
4
|
+
ngForTrackByProperty: keyof T;
|
|
5
|
+
constructor(ngForOfDir: NgForOf<T>);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackByPropertyDirective<any>, [{ host: true; }]>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TrackByPropertyDirective<any>, "[ngForTrackByProperty]", never, { "ngForTrackByProperty": { "alias": "ngForTrackByProperty"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -39,5 +39,5 @@ export declare class DrChatComponent implements AfterViewInit, OnDestroy {
|
|
|
39
39
|
clearHiddenSuggestions(): void;
|
|
40
40
|
hideSuggestions(): void;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrChatComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrChatComponent, "dr-chat", never, { "fullScreen": { "alias": "fullScreen"; "required": false; }; "noMessagesPlaceholder": { "alias": "noMessagesPlaceholder"; "required": false; }; "contentUpdateSubject": { "alias": "contentUpdateSubject"; "required": false; }; "scrollBottom": { "alias": "scrollBottom"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "reopen": { "alias": "reopen"; "required": false; }; "waitForReply": { "alias": "waitForReply"; "required": false; }; }, { "suggestionSelect": "suggestionSelect"; }, ["chatForm", "chatHeader", "messages"], ["dr-chat-alert", "dr-chat-message", "dr-chat-form"], false, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrChatComponent, "dr-chat", never, { "fullScreen": { "alias": "fullScreen"; "required": false; }; "noMessagesPlaceholder": { "alias": "noMessagesPlaceholder"; "required": false; }; "contentUpdateSubject": { "alias": "contentUpdateSubject"; "required": false; }; "scrollBottom": { "alias": "scrollBottom"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "reopen": { "alias": "reopen"; "required": false; }; "waitForReply": { "alias": "waitForReply"; "required": false; }; }, { "suggestionSelect": "suggestionSelect"; }, ["chatForm", "chatHeader", "messages"], ["dr-chat-alert", "dr-chat-message", "dr-chat-form", "dr-chat-form-with-history"], false, never>;
|
|
43
43
|
}
|
|
@@ -2,19 +2,21 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./chat.component";
|
|
3
3
|
import * as i2 from "./dr-chat-message/chat-message.component";
|
|
4
4
|
import * as i3 from "./dr-chat-form/chat-form.component";
|
|
5
|
-
import * as i4 from "./dr-chat-
|
|
6
|
-
import * as i5 from "./dr-chat-message/dr-chat-message-
|
|
7
|
-
import * as i6 from "./dr-chat-
|
|
8
|
-
import * as i7 from "./dr-
|
|
9
|
-
import * as i8 from "./dr-
|
|
10
|
-
import * as i9 from "./dr-chat-
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@angular/
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "../dr-
|
|
15
|
-
import * as i14 from "../dr-
|
|
5
|
+
import * as i4 from "./dr-chat-form-with-history/chat-form-with-history.component";
|
|
6
|
+
import * as i5 from "./dr-chat-message/dr-chat-message-text/chat-message-text.component";
|
|
7
|
+
import * as i6 from "./dr-chat-message/dr-chat-message-file/chat-message-file.component";
|
|
8
|
+
import * as i7 from "./dr-chat-suggestions/chat-suggestions.component";
|
|
9
|
+
import * as i8 from "./dr-dot-flashing/dr-dot-flashing.component";
|
|
10
|
+
import * as i9 from "./dr-chat-alert/dr-chat-alert.component";
|
|
11
|
+
import * as i10 from "./dr-chat-message/dr-chat-message-custom/chat-custom-message.directive";
|
|
12
|
+
import * as i11 from "@angular/forms";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
14
|
+
import * as i13 from "../dr-avatar/dr-avatar.module";
|
|
15
|
+
import * as i14 from "../dr-inputs/dr-inputs.module";
|
|
16
|
+
import * as i15 from "../dr-tooltip/dr-tooltip.module";
|
|
17
|
+
import * as i16 from "../directives/click-outside/click-outside.module";
|
|
16
18
|
export declare class DrChatModule {
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrChatModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DrChatModule, [typeof i1.DrChatComponent, typeof i2.DrChatMessageComponent, typeof i3.DrChatFormComponent, typeof i4.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DrChatModule, [typeof i1.DrChatComponent, typeof i2.DrChatMessageComponent, typeof i3.DrChatFormComponent, typeof i4.DrChatFormWithHistoryComponent, typeof i5.DrChatMessageTextComponent, typeof i6.DrChatMessageFileComponent, typeof i7.DrChatSuggestionsComponent, typeof i8.DrDotFlashingComponent, typeof i9.DrChatAlertComponent, typeof i10.DrChatCustomMessageDirective], [typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.CommonModule, typeof i13.DrAvatarModule, typeof i14.DrInputsModule, typeof i15.DrTooltipModule, typeof i16.ClickOutsideModule], [typeof i1.DrChatComponent, typeof i2.DrChatMessageComponent, typeof i3.DrChatFormComponent, typeof i4.DrChatFormWithHistoryComponent, typeof i5.DrChatMessageTextComponent, typeof i6.DrChatMessageFileComponent, typeof i7.DrChatSuggestionsComponent, typeof i8.DrDotFlashingComponent, typeof i9.DrChatAlertComponent, typeof i10.DrChatCustomMessageDirective]>;
|
|
19
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<DrChatModule>;
|
|
20
22
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DrChatFormWithHistoryComponent {
|
|
5
|
+
protected cdr: ChangeDetectorRef;
|
|
6
|
+
protected domSanitizer: DomSanitizer;
|
|
7
|
+
textAreaElementRef: ElementRef;
|
|
8
|
+
_textareaInitialHeight: boolean;
|
|
9
|
+
inputFocus: boolean;
|
|
10
|
+
inputHover: boolean;
|
|
11
|
+
droppedFiles: any[];
|
|
12
|
+
isShowedHistory: boolean;
|
|
13
|
+
isChatMode: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Predefined message text
|
|
16
|
+
*
|
|
17
|
+
* @type {string}
|
|
18
|
+
*/
|
|
19
|
+
message: string;
|
|
20
|
+
/**
|
|
21
|
+
* Message placeholder text
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
*/
|
|
25
|
+
messagePlaceholder: string;
|
|
26
|
+
/**
|
|
27
|
+
* Show send button
|
|
28
|
+
*
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
*/
|
|
31
|
+
dropFiles: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* File drop placeholder text
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
*/
|
|
37
|
+
dropFilePlaceholder: string;
|
|
38
|
+
/**
|
|
39
|
+
* Parameter to check is send message function available
|
|
40
|
+
*
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
*/
|
|
43
|
+
waitForReply: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Parameter to check is send message function available
|
|
46
|
+
*
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
*/
|
|
49
|
+
showDisabledButtonInsteadOfDotFlashing: boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {EventEmitter<{ message: string, files: File[] }>}
|
|
53
|
+
*/
|
|
54
|
+
send: EventEmitter<{
|
|
55
|
+
message: string;
|
|
56
|
+
files: File[];
|
|
57
|
+
}>;
|
|
58
|
+
abort: EventEmitter<any>;
|
|
59
|
+
/**
|
|
60
|
+
* Emits when message input value has been changed
|
|
61
|
+
*
|
|
62
|
+
* @type {EventEmitter<string>}
|
|
63
|
+
*/
|
|
64
|
+
inputChange: EventEmitter<string>;
|
|
65
|
+
fileOver: boolean;
|
|
66
|
+
constructor(cdr: ChangeDetectorRef, domSanitizer: DomSanitizer);
|
|
67
|
+
onDrop(event: any): void;
|
|
68
|
+
removeFile(file: any): void;
|
|
69
|
+
onDragOver(event: DragEvent): void;
|
|
70
|
+
onDragLeave(event: DragEvent): void;
|
|
71
|
+
sendMessage($event: any): void;
|
|
72
|
+
abortMessage(): void;
|
|
73
|
+
onModelChange(value: string): void;
|
|
74
|
+
getTextAreaHeight(textAreaElement: HTMLTextAreaElement): string;
|
|
75
|
+
getSendButtonPosition(textAreaElement: HTMLTextAreaElement): string;
|
|
76
|
+
showHistory(): void;
|
|
77
|
+
closeHistory(): void;
|
|
78
|
+
onFileSelected(event: Event): void;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrChatFormWithHistoryComponent, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrChatFormWithHistoryComponent, "dr-chat-form-with-history", never, { "isChatMode": { "alias": "isChatMode"; "required": false; }; "message": { "alias": "message"; "required": false; }; "messagePlaceholder": { "alias": "messagePlaceholder"; "required": false; }; "dropFiles": { "alias": "dropFiles"; "required": false; }; "dropFilePlaceholder": { "alias": "dropFilePlaceholder"; "required": false; }; "waitForReply": { "alias": "waitForReply"; "required": false; }; "showDisabledButtonInsteadOfDotFlashing": { "alias": "showDisabledButtonInsteadOfDotFlashing"; "required": false; }; }, { "send": "send"; "abort": "abort"; "inputChange": "inputChange"; }, never, ["*"], false, never>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FilterPipe implements PipeTransform {
|
|
4
|
+
transform<T>(arr: T[], fn: any, type?: string, refresh?: boolean): T[];
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ImgPipe implements PipeTransform {
|
|
4
|
+
transform(value: string, ...args: unknown[]): unknown;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImgPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ImgPipe, "img", true>;
|
|
7
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TimeframeOption } from '../models/datePicker';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
4
|
export declare class DrSharedUtils {
|
|
4
5
|
/**
|
|
5
6
|
* Get timeframe (day, year, month, quarter) based on passed format
|
|
@@ -10,4 +11,9 @@ export declare class DrSharedUtils {
|
|
|
10
11
|
static getDateByTag(tag: string): any;
|
|
11
12
|
static fromResizeObserver: (target: Element) => Observable<ResizeObserverEntry[]>;
|
|
12
13
|
static normalizeLineEndings: (str: string) => string;
|
|
14
|
+
static isLocalhost: () => boolean;
|
|
15
|
+
static getRouteDataAttributeValue: <T>(activatedRoute: ActivatedRoute, attribute: string, defaultValue?: T) => T;
|
|
16
|
+
static getProperty: (value: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}, key: string) => any;
|
|
13
19
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -98,6 +98,10 @@ export * from './lib/dr-avatar/types';
|
|
|
98
98
|
export * from './lib/dr-inputs/dr-model-debounce-change.directive';
|
|
99
99
|
export * from './lib/directives/click-outside/click-outside.directive';
|
|
100
100
|
export * from './lib/directives/dr-shine-animation/dr-shine-animation.directive';
|
|
101
|
+
export * from './lib/directives/let/let.directive';
|
|
102
|
+
export * from './lib/directives/ng-track-by-property/ng-track-by-property.directive';
|
|
103
|
+
export * from './lib/pipes/img/img.pipe';
|
|
104
|
+
export * from './lib/pipes/filter/filter.pipe';
|
|
101
105
|
export * from './lib/models/datePicker';
|
|
102
106
|
export { TAG_TYPES, ITag, IDateTag, IListTag, ITagForServer, IDynamicTag, TDynamicTagValue, TDynamicTag, TagTypes, TagsConfigSubType, TConnectedTags, } from './lib/models/serverTags';
|
|
103
107
|
export { ISpinnerOptions, SpinnerType, SpinnerSize } from './lib/models/spinnerOptions';
|
|
Binary file
|