@datarailsshared/datarailsshared 1.4.92 → 1.4.94-dragons
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/_styles.scss +2 -2
- package/assets/styles/img/default-avatar.svg +6 -3
- package/assets/styles/img/dr-icon-info.svg +2 -1
- package/bundles/datarailsshared-datarailsshared.umd.js +758 -251
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.94-dragons.tgz +0 -0
- package/datarailsshared-datarailsshared.d.ts +8 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/datarailsshared-datarailsshared.js +9 -1
- package/esm2015/lib/date-tags/date-tag.component.js +10 -8
- package/esm2015/lib/date-tags/date-tag.module.js +17 -18
- package/esm2015/lib/date-tags/day-tag/day-tag.component.js +18 -20
- package/esm2015/lib/date-tags/forecast-tag/forecast-tag.component.js +45 -43
- package/esm2015/lib/date-tags/month-tag/month-tag.component.js +19 -19
- package/esm2015/lib/date-tags/quarter-tag/quarter-tag.component.js +11 -10
- package/esm2015/lib/date-tags/week-tag/week-tag.component.js +24 -24
- package/esm2015/lib/date-tags/year-tag/year-tag.component.js +20 -20
- package/esm2015/lib/dr-accordion/accordion-item-body.component.js +10 -12
- package/esm2015/lib/dr-accordion/accordion-item-header.component.js +12 -14
- package/esm2015/lib/dr-accordion/accordion-item.component.js +8 -8
- package/esm2015/lib/dr-accordion/accordion.component.js +2 -2
- package/esm2015/lib/dr-accordion/accordion.module.js +1 -1
- package/esm2015/lib/dr-avatar/dr-avatar.component.js +2 -2
- package/esm2015/lib/dr-avatar/dr-avatar.module.js +1 -1
- package/esm2015/lib/dr-avatar/dr-avatar.pipe.js +1 -1
- package/esm2015/lib/dr-chat/chat.component.js +58 -0
- package/esm2015/lib/dr-chat/chat.module.js +37 -0
- package/esm2015/lib/dr-chat/dr-chat-form/chat-form.component.js +128 -0
- package/esm2015/lib/dr-chat/dr-chat-message/chat-message.component.js +70 -0
- package/esm2015/lib/dr-chat/dr-chat-message/dr-chat-message-custom/chat-custom-message.directive.js +49 -0
- package/esm2015/lib/dr-chat/dr-chat-message/dr-chat-message-custom/chat-custom-message.service.js +23 -0
- package/esm2015/lib/dr-chat/dr-chat-message/dr-chat-message-file/chat-message-file.component.js +46 -0
- package/esm2015/lib/dr-chat/dr-chat-message/dr-chat-message-rich-text/chat-message-rich-text.component.js +18 -0
- package/esm2015/lib/dr-chat/dr-chat-message/dr-chat-message-text/chat-message-text.component.js +18 -0
- package/esm2015/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.js +6 -8
- package/esm2015/lib/dr-dialog/components/dialog-wrapper/dialog-wrapper.component.js +3 -3
- package/esm2015/lib/dr-dialog/dialog.module.js +2 -2
- package/esm2015/lib/dr-dialog/interfaces/dialog-data.js +1 -1
- package/esm2015/lib/dr-dialog/services/dialog.service.js +1 -1
- package/esm2015/lib/dr-dropdown/dr-dropdown-item-show.pipe.js +1 -1
- package/esm2015/lib/dr-dropdown/dr-dropdown-position.directive.js +2 -2
- package/esm2015/lib/dr-dropdown/dr-dropdown.component.js +2 -2
- package/esm2015/lib/dr-dropdown/dr-dropdown.directive.js +2 -3
- package/esm2015/lib/dr-dropdown/dr-dropdown.module.js +1 -1
- package/esm2015/lib/dr-dropdown/dr-dropdown.service.js +1 -1
- package/esm2015/lib/dr-error/dr-error.component.js +1 -1
- package/esm2015/lib/dr-error/dr-error.module.js +1 -1
- package/esm2015/lib/dr-inputs/button/button.component.js +3 -3
- package/esm2015/lib/dr-inputs/checkbox/checkbox.component.js +7 -5
- package/esm2015/lib/dr-inputs/date-pickers/directives/dr-date-picker-format.directive.js +1 -1
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.js +8 -7
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.js +9 -8
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.js +14 -18
- package/esm2015/lib/dr-inputs/date-pickers/dr-show-timeframe.pipe.js +1 -1
- package/esm2015/lib/dr-inputs/date-pickers/services/dr-date-picker.service.js +5 -5
- package/esm2015/lib/dr-inputs/dr-input/dr-input.component.js +7 -5
- package/esm2015/lib/dr-inputs/dr-inputs.module.js +1 -1
- package/esm2015/lib/dr-inputs/dr-model-debounce-change.directive.js +2 -4
- package/esm2015/lib/dr-inputs/dr-select/dr-select.component.js +8 -6
- package/esm2015/lib/dr-inputs/dr-toggle/dr-toggle.component.js +9 -5
- package/esm2015/lib/dr-inputs/dr-toggle-button/dr-toggle-button.component.js +6 -4
- package/esm2015/lib/dr-inputs/radio-button/radio-button.component.js +7 -5
- package/esm2015/lib/dr-inputs/radio-button/radio-group.component.js +12 -17
- package/esm2015/lib/dr-layout/dr-layout-body.component.js +3 -2
- package/esm2015/lib/dr-layout/dr-layout-header.component.js +7 -6
- package/esm2015/lib/dr-layout/dr-layout.component.js +4 -3
- package/esm2015/lib/dr-layout/dr-layout.module.js +1 -1
- package/esm2015/lib/dr-popover/dr-popover-ref.js +1 -1
- package/esm2015/lib/dr-popover/dr-popover.component.js +3 -3
- package/esm2015/lib/dr-popover/dr-popover.directive.js +3 -1
- package/esm2015/lib/dr-popover/dr-popover.module.js +1 -1
- package/esm2015/lib/dr-popover/dr-popover.service.js +2 -4
- package/esm2015/lib/dr-spinner/dr-spinner.component.js +2 -2
- package/esm2015/lib/dr-spinner/dr-spinner.directive.js +2 -3
- package/esm2015/lib/dr-spinner/dr-spinner.module.js +2 -2
- package/esm2015/lib/dr-tabs/dr-tab.component.js +8 -7
- package/esm2015/lib/dr-tabs/dr-tabs.component.js +4 -4
- package/esm2015/lib/dr-tabs/dr-tabs.module.js +1 -1
- package/esm2015/lib/dr-tags/dr-tag.component.js +7 -7
- package/esm2015/lib/dr-tags/dr-tag.module.js +6 -6
- package/esm2015/lib/dr-tooltip/components/tooltip-info/tooltip-info.component.js +3 -3
- package/esm2015/lib/dr-tooltip/components/tooltip-info-simple/tooltip-info-simple.component.js +2 -2
- package/esm2015/lib/dr-tooltip/components/tooltip-no-body/tooltip-no-body.component.js +3 -3
- package/esm2015/lib/dr-tooltip/components/tooltip-process-default/tooltip-process-default.component.js +2 -2
- package/esm2015/lib/dr-tooltip/dr-tooltip.component.js +2 -2
- package/esm2015/lib/dr-tooltip/dr-tooltip.directive.js +2 -4
- package/esm2015/lib/dr-tooltip/dr-tooltip.module.js +1 -1
- package/esm2015/lib/dr-tooltip/enums/tooltip-position.enum.js +1 -1
- package/esm2015/lib/dr-tooltip/interfaces/tooltip-component-context.js +1 -1
- package/esm2015/lib/list-tags/list-tag.component.js +8 -8
- package/esm2015/lib/list-tags/list-tag.module.js +9 -9
- package/esm2015/lib/models/chat.js +32 -0
- package/esm2015/lib/models/constants.js +1 -1
- package/esm2015/lib/models/datePicker.js +1 -1
- package/esm2015/lib/models/dropdown.js +1 -1
- package/esm2015/lib/models/popover.js +3 -3
- package/esm2015/lib/models/serverTags.js +1 -1
- package/esm2015/lib/models/spinnerOptions.js +1 -1
- package/esm2015/lib/models/validationError.js +1 -1
- package/esm2015/lib/stepper/interfaces/stepper.js +1 -1
- package/esm2015/lib/stepper/stepper.component.js +2 -2
- package/esm2015/lib/stepper/stepper.module.js +1 -1
- package/esm2015/lib/utils/dr-shared-utils.js +2 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/datarailsshared-datarailsshared.js +721 -268
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/date-tags/date-tag.component.d.ts +2 -2
- package/lib/date-tags/date-tag.module.d.ts +1 -1
- package/lib/date-tags/day-tag/day-tag.component.d.ts +2 -2
- package/lib/date-tags/forecast-tag/forecast-tag.component.d.ts +3 -3
- package/lib/date-tags/month-tag/month-tag.component.d.ts +4 -4
- package/lib/date-tags/quarter-tag/quarter-tag.component.d.ts +3 -3
- package/lib/date-tags/week-tag/week-tag.component.d.ts +3 -3
- package/lib/date-tags/year-tag/year-tag.component.d.ts +4 -4
- package/lib/dr-accordion/accordion-item-body.component.d.ts +1 -1
- package/lib/dr-accordion/accordion-item-header.component.d.ts +1 -1
- package/lib/dr-accordion/accordion-item.component.d.ts +3 -1
- package/lib/dr-avatar/dr-avatar.component.d.ts +1 -1
- package/lib/dr-chat/chat.component.d.ts +21 -0
- package/lib/dr-chat/chat.module.d.ts +2 -0
- package/lib/dr-chat/dr-chat-form/chat-form.component.d.ts +56 -0
- package/lib/dr-chat/dr-chat-message/chat-message.component.d.ts +38 -0
- package/lib/dr-chat/dr-chat-message/dr-chat-message-custom/chat-custom-message.directive.d.ts +18 -0
- package/lib/dr-chat/dr-chat-message/dr-chat-message-custom/chat-custom-message.service.d.ts +11 -0
- package/lib/dr-chat/dr-chat-message/dr-chat-message-file/chat-message-file.component.d.ts +25 -0
- package/lib/dr-chat/dr-chat-message/dr-chat-message-rich-text/chat-message-rich-text.component.d.ts +12 -0
- package/lib/dr-chat/dr-chat-message/dr-chat-message-text/chat-message-text.component.d.ts +12 -0
- package/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.d.ts +1 -1
- package/lib/dr-dialog/components/dialog-wrapper/dialog-wrapper.component.d.ts +1 -1
- package/lib/dr-dropdown/dr-dropdown-position.directive.d.ts +1 -1
- package/lib/dr-dropdown/dr-dropdown.component.d.ts +1 -1
- package/lib/dr-dropdown/dr-dropdown.directive.d.ts +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.d.ts +2 -0
- package/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.d.ts +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.d.ts +3 -3
- package/lib/dr-inputs/date-pickers/services/dr-date-picker.service.d.ts +2 -2
- package/lib/dr-inputs/dr-input/dr-input.component.d.ts +3 -3
- package/lib/dr-inputs/dr-select/dr-select.component.d.ts +1 -1
- package/lib/dr-inputs/dr-toggle/dr-toggle.component.d.ts +1 -1
- package/lib/dr-inputs/radio-button/radio-group.component.d.ts +1 -1
- package/lib/dr-popover/dr-popover-ref.d.ts +1 -1
- package/lib/dr-popover/dr-popover.component.d.ts +2 -2
- package/lib/dr-popover/dr-popover.directive.d.ts +2 -2
- package/lib/dr-tabs/dr-tab.component.d.ts +1 -1
- package/lib/dr-tabs/dr-tabs.component.d.ts +1 -1
- package/lib/dr-tags/dr-tag.component.d.ts +2 -2
- package/lib/list-tags/list-tag.component.d.ts +4 -4
- package/lib/models/chat.d.ts +105 -0
- package/lib/models/popover.d.ts +1 -1
- package/lib/models/serverTags.d.ts +1 -1
- package/lib/utils/dr-shared-utils.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/datarailsshared-datarailsshared-1.4.92.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from
|
|
2
|
-
import { IDateTag } from
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { IDateTag } from '../models/serverTags';
|
|
3
3
|
export declare class DateTagComponent {
|
|
4
4
|
name: string | undefined;
|
|
5
5
|
lockedDate: any[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyTagComponent, DateTagComponent } from
|
|
1
|
+
import { AnyTagComponent, DateTagComponent } from './date-tag.component';
|
|
2
2
|
export declare const components: (typeof DateTagComponent | typeof AnyTagComponent)[];
|
|
3
3
|
export declare class DateTagModule {
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AnyTagComponent } from
|
|
2
|
-
import { FormControl } from
|
|
1
|
+
import { AnyTagComponent } from '../date-tag.component';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
3
|
export declare class DayTagComponent extends AnyTagComponent {
|
|
4
4
|
lockedDate: any[];
|
|
5
5
|
date: FormControl;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnyTagComponent } from
|
|
2
|
-
import { MatSelectChange } from
|
|
3
|
-
import { MatButtonToggleChange } from
|
|
1
|
+
import { AnyTagComponent } from '../date-tag.component';
|
|
2
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
3
|
+
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
|
4
4
|
export declare class ForecastTagComponent extends AnyTagComponent {
|
|
5
5
|
fiscalYearStartsFrom?: number;
|
|
6
6
|
fiscalYearBack?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Moment } from
|
|
2
|
-
import { AnyTagComponent } from
|
|
3
|
-
import { MatDatepicker } from
|
|
4
|
-
import { FormControl } from
|
|
1
|
+
import { Moment } from 'moment';
|
|
2
|
+
import { AnyTagComponent } from '../date-tag.component';
|
|
3
|
+
import { MatDatepicker } from '@angular/material/datepicker';
|
|
4
|
+
import { FormControl } from '@angular/forms';
|
|
5
5
|
export declare class MonthTagComponent extends AnyTagComponent {
|
|
6
6
|
lockedDate: any[];
|
|
7
7
|
date: FormControl;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { AnyTagComponent } from
|
|
3
|
-
import { MatSelectChange } from
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AnyTagComponent } from '../date-tag.component';
|
|
3
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
4
4
|
export declare class QuarterTagComponent extends AnyTagComponent implements OnInit {
|
|
5
5
|
lockedDate: any[];
|
|
6
6
|
selectedValue: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { AnyTagComponent } from
|
|
3
|
-
import { FormControl } from
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AnyTagComponent } from '../date-tag.component';
|
|
3
|
+
import { FormControl } from '@angular/forms';
|
|
4
4
|
export declare class WeekTagComponent extends AnyTagComponent implements OnInit {
|
|
5
5
|
lockedDate: any[];
|
|
6
6
|
date: FormControl;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FormControl } from
|
|
2
|
-
import { MatDatepicker } from
|
|
3
|
-
import { Moment } from
|
|
4
|
-
import { AnyTagComponent } from
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { MatDatepicker } from '@angular/material/datepicker';
|
|
3
|
+
import { Moment } from 'moment';
|
|
4
|
+
import { AnyTagComponent } from '../date-tag.component';
|
|
5
5
|
export declare class YearTagComponent extends AnyTagComponent {
|
|
6
6
|
lockedDate: any[];
|
|
7
7
|
date: FormControl;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef,
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DrAccordionItemComponent } from './accordion-item.component';
|
|
3
3
|
export declare class DrAccordionItemBodyComponent implements OnInit, OnDestroy {
|
|
4
4
|
private accordionItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DrAccordionItemComponent } from './accordion-item.component';
|
|
3
3
|
export declare class DrAccordionItemHeaderComponent implements OnInit, OnDestroy {
|
|
4
4
|
private accordionItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter,
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { DrAccordionComponent } from './accordion.component';
|
|
4
4
|
export declare class DrAccordionItemComponent implements OnInit, OnChanges, OnDestroy {
|
|
@@ -6,6 +6,7 @@ export declare class DrAccordionItemComponent implements OnInit, OnChanges, OnDe
|
|
|
6
6
|
private cd;
|
|
7
7
|
/**
|
|
8
8
|
* Item is collapse (`true` by default)
|
|
9
|
+
*
|
|
9
10
|
* @type {boolean}
|
|
10
11
|
*/
|
|
11
12
|
get collapsed(): boolean;
|
|
@@ -19,6 +20,7 @@ export declare class DrAccordionItemComponent implements OnInit, OnChanges, OnDe
|
|
|
19
20
|
static ngAcceptInputType_expanded: any;
|
|
20
21
|
/**
|
|
21
22
|
* Item is disabled and cannot be opened.
|
|
23
|
+
*
|
|
22
24
|
* @type {boolean}
|
|
23
25
|
*/
|
|
24
26
|
get disabled(): boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef, QueryList, AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { DrChatFormComponent } from './dr-chat-form/chat-form.component';
|
|
3
|
+
import { DrChatMessageComponent } from './dr-chat-message/chat-message.component';
|
|
4
|
+
export declare class DrChatComponent implements AfterViewInit {
|
|
5
|
+
private cdr;
|
|
6
|
+
title: string;
|
|
7
|
+
noMessagesPlaceholder: string;
|
|
8
|
+
/**
|
|
9
|
+
* Scroll chat to the bottom of the list when a new message arrives
|
|
10
|
+
*/
|
|
11
|
+
get scrollBottom(): boolean;
|
|
12
|
+
set scrollBottom(value: boolean);
|
|
13
|
+
protected _scrollBottom: boolean;
|
|
14
|
+
messagesContainer: ElementRef;
|
|
15
|
+
messages: QueryList<DrChatMessageComponent>;
|
|
16
|
+
chatForm: DrChatFormComponent;
|
|
17
|
+
constructor(cdr: ChangeDetectorRef);
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
updateView(): void;
|
|
20
|
+
scrollListBottom(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
export declare class DrChatFormComponent {
|
|
4
|
+
protected cdr: ChangeDetectorRef;
|
|
5
|
+
protected domSanitizer: DomSanitizer;
|
|
6
|
+
inputFocus: boolean;
|
|
7
|
+
inputHover: boolean;
|
|
8
|
+
droppedFiles: any[];
|
|
9
|
+
imgDropTypes: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Predefined message text
|
|
12
|
+
*
|
|
13
|
+
* @type {string}
|
|
14
|
+
*/
|
|
15
|
+
message: string;
|
|
16
|
+
/**
|
|
17
|
+
* Message placeholder text
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
*/
|
|
21
|
+
messagePlaceholder: string;
|
|
22
|
+
/**
|
|
23
|
+
* Show send button
|
|
24
|
+
*
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
*/
|
|
27
|
+
dropFiles: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* File drop placeholder text
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
*/
|
|
33
|
+
dropFilePlaceholder: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {EventEmitter<{ message: string, files: File[] }>}
|
|
37
|
+
*/
|
|
38
|
+
send: EventEmitter<{
|
|
39
|
+
message: string;
|
|
40
|
+
files: File[];
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* Emits when message input value has been changed
|
|
44
|
+
*
|
|
45
|
+
* @type {EventEmitter<string>}
|
|
46
|
+
*/
|
|
47
|
+
onInputChange: EventEmitter<string>;
|
|
48
|
+
fileOver: boolean;
|
|
49
|
+
constructor(cdr: ChangeDetectorRef, domSanitizer: DomSanitizer);
|
|
50
|
+
onDrop(event: any): void;
|
|
51
|
+
removeFile(file: any): void;
|
|
52
|
+
onDragOver(event: DragEvent): void;
|
|
53
|
+
onDragLeave(event: DragEvent): void;
|
|
54
|
+
sendMessage(): void;
|
|
55
|
+
onModelChange(value: string): void;
|
|
56
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { CHAT_MESSAGE_TYPE, IChatMessage } from '../../models/chat';
|
|
3
|
+
import { DrChatCustomMessageDirective } from './dr-chat-message-custom/chat-custom-message.directive';
|
|
4
|
+
import { DrChatCustomMessageService } from './dr-chat-message-custom/chat-custom-message.service';
|
|
5
|
+
export declare class DrChatMessageComponent {
|
|
6
|
+
private customMessageService;
|
|
7
|
+
MESSAGE_TYPE: typeof CHAT_MESSAGE_TYPE;
|
|
8
|
+
MESSAGE_TYPE_CUSTOM: CHAT_MESSAGE_TYPE;
|
|
9
|
+
get flyInOut(): boolean;
|
|
10
|
+
get notReply(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Determines if a message is a reply
|
|
13
|
+
*/
|
|
14
|
+
get reply(): boolean;
|
|
15
|
+
set reply(value: boolean);
|
|
16
|
+
protected _reply: boolean;
|
|
17
|
+
type: string;
|
|
18
|
+
/**
|
|
19
|
+
* Message
|
|
20
|
+
*
|
|
21
|
+
* @type {IChatMessage}
|
|
22
|
+
*/
|
|
23
|
+
message: IChatMessage;
|
|
24
|
+
/**
|
|
25
|
+
* Data which will be set as custom message template context
|
|
26
|
+
*
|
|
27
|
+
* @type {any}
|
|
28
|
+
*/
|
|
29
|
+
customMessageData: any;
|
|
30
|
+
customMessage: boolean;
|
|
31
|
+
constructor(customMessageService: DrChatCustomMessageService);
|
|
32
|
+
_getTemplate(): TemplateRef<any>;
|
|
33
|
+
_getTemplateContext(): {
|
|
34
|
+
$implicit: any;
|
|
35
|
+
isReply: boolean;
|
|
36
|
+
};
|
|
37
|
+
protected getCustomMessage(type: string): DrChatCustomMessageDirective;
|
|
38
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { DrChatCustomMessageService } from './chat-custom-message.service';
|
|
3
|
+
export declare class DrChatCustomMessageDirective implements OnInit, OnDestroy {
|
|
4
|
+
templateRef: TemplateRef<any>;
|
|
5
|
+
protected customMessageService: DrChatCustomMessageService;
|
|
6
|
+
/**
|
|
7
|
+
* Defines a message type which should rendered with the custom message template.
|
|
8
|
+
*
|
|
9
|
+
* @type {string}
|
|
10
|
+
*/
|
|
11
|
+
get drCustomMessage(): string;
|
|
12
|
+
set drCustomMessage(value: string);
|
|
13
|
+
protected _type: string;
|
|
14
|
+
get type(): string;
|
|
15
|
+
constructor(templateRef: TemplateRef<any>, customMessageService: DrChatCustomMessageService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DrChatCustomMessageDirective } from './chat-custom-message.directive';
|
|
2
|
+
/**
|
|
3
|
+
* `DrCustomMessageService` is used to store instances of `DrChatCustomMessageDirective`s which
|
|
4
|
+
* were provided in the chat component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DrChatCustomMessageService {
|
|
7
|
+
protected readonly customMessages: Map<string, DrChatCustomMessageDirective>;
|
|
8
|
+
register(type: string, instance: DrChatCustomMessageDirective): void;
|
|
9
|
+
unregister(type: string): boolean;
|
|
10
|
+
getInstance(type: string): DrChatCustomMessageDirective | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import { IChatDownloadFileMessage, IChatImageMessage, IChatMessageFile } from '../../../models/chat';
|
|
4
|
+
/**
|
|
5
|
+
* Chat message component.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DrChatMessageFileComponent {
|
|
8
|
+
protected cd: ChangeDetectorRef;
|
|
9
|
+
protected domSanitizer: DomSanitizer;
|
|
10
|
+
readyFiles: any[];
|
|
11
|
+
/**
|
|
12
|
+
* Message with file
|
|
13
|
+
*
|
|
14
|
+
* @type {string}
|
|
15
|
+
*/
|
|
16
|
+
message: IChatDownloadFileMessage | IChatImageMessage;
|
|
17
|
+
/**
|
|
18
|
+
* Message file path
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
*/
|
|
22
|
+
set files(files: IChatMessageFile[]);
|
|
23
|
+
constructor(cd: ChangeDetectorRef, domSanitizer: DomSanitizer);
|
|
24
|
+
isImage(file: IChatMessageFile): boolean;
|
|
25
|
+
}
|
package/lib/dr-chat/dr-chat-message/dr-chat-message-rich-text/chat-message-rich-text.component.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IChatRichTextMessage } from '../../../models/chat';
|
|
2
|
+
/**
|
|
3
|
+
* Chat rich-text message component.
|
|
4
|
+
*/
|
|
5
|
+
export declare class DrChatMessageRichTextComponent {
|
|
6
|
+
/**
|
|
7
|
+
* Message sender
|
|
8
|
+
*
|
|
9
|
+
* @type {IChatRichTextMessage}
|
|
10
|
+
*/
|
|
11
|
+
message: IChatRichTextMessage;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { DataProp, SizeModal } from '../../interfaces/dialog-data';
|
|
4
4
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElPosition, IDropdownCoordinate } from '../models/dropdown';
|
|
3
3
|
export declare class DrDropdownPositionDirective implements OnInit {
|
|
4
4
|
private el;
|
|
5
5
|
private renderer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElPosition, IDropdown, IDropdownActionIcon, IDropdownCoordinate, IDropdownItem } from '../models/dropdown';
|
|
3
3
|
import { DrDropdownService } from './dr-dropdown.service';
|
|
4
4
|
export declare class DrDropdownComponent {
|
|
5
5
|
protected menuService: DrDropdownService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentFactoryResolver, ElementRef, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElPosition, IDropdownItem } from '../models/dropdown';
|
|
3
3
|
import { DrDropdownService } from './dr-dropdown.service';
|
|
4
4
|
export declare class DrDropdownDirective<T> implements OnDestroy {
|
|
5
5
|
private componentFactoryResolver;
|
|
@@ -45,11 +45,13 @@ export declare class DrDatePickerComponent implements ControlValueAccessor, Afte
|
|
|
45
45
|
registerOnTouched(fn: any): void;
|
|
46
46
|
/**
|
|
47
47
|
* Set inner value from Moment and propagate
|
|
48
|
+
*
|
|
48
49
|
* @param momentDate
|
|
49
50
|
*/
|
|
50
51
|
protected setValueFromMoment(momentDate: Moment): void;
|
|
51
52
|
/**
|
|
52
53
|
* Set inner value from timestamp and propagate
|
|
54
|
+
*
|
|
53
55
|
* @param timestamp
|
|
54
56
|
*/
|
|
55
57
|
protected setValue(timestamp: number): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef,
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { DrDatePickerComponent } from '../dr-date-picker/dr-date-picker.component';
|
|
3
3
|
import { DateAdapter } from '@angular/material/core';
|
|
4
4
|
import { DrDatePickerService } from '../services/dr-date-picker.service';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatCalendar } from '@angular/material/datepicker';
|
|
3
3
|
import { DateAdapter } from '@angular/material/core';
|
|
4
|
-
import { CalendarView, CustomDateFormat, TCalendarView, TimeframeOption } from
|
|
5
|
-
import { DrDatePickerService } from
|
|
4
|
+
import { CalendarView, CustomDateFormat, TCalendarView, TimeframeOption } from '../../../models/datePicker';
|
|
5
|
+
import { DrDatePickerService } from '../services/dr-date-picker.service';
|
|
6
6
|
export interface ITimeframeOption {
|
|
7
7
|
timeframe: TimeframeOption;
|
|
8
8
|
title: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatCalendar, MatDatepicker } from '@angular/material/datepicker';
|
|
2
2
|
import { Moment } from 'moment';
|
|
3
|
-
import {
|
|
4
|
-
import { IDatePickerFormatConfig,
|
|
3
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
+
import { IDatePickerFormatConfig, TimeframeOption, TTimeframeOption } from '../../../models/datePicker';
|
|
5
5
|
export declare class DrDatePickerService {
|
|
6
6
|
isTimeframeSelectionEnabled: boolean;
|
|
7
7
|
timeframe: TTimeframeOption;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
export declare class DrInputComponent implements AfterViewInit, ControlValueAccessor, OnDestroy {
|
|
4
4
|
private elementRef;
|
|
@@ -30,8 +30,8 @@ export declare class DrInputComponent implements AfterViewInit, ControlValueAcce
|
|
|
30
30
|
checkFocusOut: (target: any, element: any) => boolean;
|
|
31
31
|
text: string;
|
|
32
32
|
};
|
|
33
|
-
listenFunc:
|
|
34
|
-
globalListenFunc:
|
|
33
|
+
listenFunc: (...params: any[]) => any;
|
|
34
|
+
globalListenFunc: (...params: any[]) => any;
|
|
35
35
|
searchHandler: EventEmitter<any>;
|
|
36
36
|
buttonHandler: EventEmitter<any>;
|
|
37
37
|
prefixIcon: ElementRef;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef
|
|
1
|
+
import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
export declare class DrSelectComponent implements ControlValueAccessor {
|
|
4
4
|
private elementRef;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
export declare class DrToggleComponent implements ControlValueAccessor, AfterViewInit {
|
|
4
4
|
private cdr;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit, EventEmitter, OnDestroy, QueryList
|
|
1
|
+
import { AfterContentInit, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { RadioButtonComponent } from './radio-button.component';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
2
2
|
import { ComponentRef } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
|
4
4
|
import { DrPopoverComponent } from './dr-popover.component';
|
|
5
5
|
export declare class DrPopoverRef<T = any> {
|
|
6
6
|
private overlayRef;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, TemplateRef, Type, ViewContainerRef
|
|
1
|
+
import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, OnInit, TemplateRef, Type, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { DrPopoverRef } from './dr-popover-ref';
|
|
3
|
-
import { IPopoverManualClosing, Point
|
|
3
|
+
import { DrPopoverAlignment, IPopoverManualClosing, Point } from '../models/popover';
|
|
4
4
|
export declare class DrPopoverComponent<T> implements OnInit {
|
|
5
5
|
private cdr;
|
|
6
6
|
private componentFactoryResolver;
|
|
@@ -2,12 +2,12 @@ import { ElementRef, EventEmitter, OnDestroy, TemplateRef, Type } from '@angular
|
|
|
2
2
|
import { OverlayConfig } from '@angular/cdk/overlay';
|
|
3
3
|
import { ElPosition } from './../models/dropdown';
|
|
4
4
|
import { DrPopoverService } from './dr-popover.service';
|
|
5
|
-
import {
|
|
5
|
+
import { DrPopoverAlignment, IPopoverManualClosing } from '../models/popover';
|
|
6
6
|
export declare class DrPopoverDirective<T> implements OnDestroy {
|
|
7
7
|
private elementRef;
|
|
8
8
|
private drPopoverService;
|
|
9
9
|
content: TemplateRef<any> | Type<T>;
|
|
10
|
-
contentContext:
|
|
10
|
+
contentContext: any;
|
|
11
11
|
position: ElPosition;
|
|
12
12
|
class: string;
|
|
13
13
|
overlayConfig: OverlayConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from
|
|
2
|
-
import { IDateTag, IListTag, ITag, ITagForServer } from
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { IDateTag, IListTag, ITag, ITagForServer } from '../models/serverTags';
|
|
3
3
|
export declare class DrTagComponent implements OnInit {
|
|
4
4
|
tagConfig: ITag;
|
|
5
5
|
selectedTag: ITagForServer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from
|
|
2
|
-
import { IListTag } from
|
|
3
|
-
import { MatSelectChange } from
|
|
4
|
-
import { MatButtonToggleChange } from
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { IListTag } from '../models/serverTags';
|
|
3
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
4
|
+
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
|
5
5
|
export declare class ListTagComponent implements OnInit {
|
|
6
6
|
values: string[];
|
|
7
7
|
defaultValue: string;
|