@datarailsshared/datarailsshared 1.3.1 → 1.3.3
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/bundles/datarailsshared-datarailsshared.umd.js +1509 -1295
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.3.3.tgz +0 -0
- package/datarailsshared-datarailsshared.d.ts +5 -5
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/datarailsshared-datarailsshared.js +5 -5
- package/esm2015/lib/date-tags/date-tag.component.js +70 -70
- package/esm2015/lib/date-tags/date-tag.module.js +50 -50
- package/esm2015/lib/date-tags/day-tag/day-tag.component.js +80 -79
- package/esm2015/lib/date-tags/forecast-tag/forecast-tag.component.js +143 -143
- package/esm2015/lib/date-tags/month-tag/month-tag.component.js +86 -86
- package/esm2015/lib/date-tags/quarter-tag/quarter-tag.component.js +101 -101
- package/esm2015/lib/date-tags/week-tag/week-tag.component.js +124 -124
- package/esm2015/lib/date-tags/year-tag/year-tag.component.js +92 -92
- package/esm2015/lib/dr-inputs/checkbox/checkbox.component.js +46 -46
- package/esm2015/lib/dr-inputs/dr-input/dr-input.component.js +147 -0
- package/esm2015/lib/dr-inputs/dr-inputs.module.js +24 -18
- package/esm2015/lib/dr-inputs/dr-select/dr-select.component.js +51 -0
- package/esm2015/lib/dr-inputs/radio-button/radio-button.component.js +50 -50
- package/esm2015/lib/dr-tags/dr-tag.component.js +54 -54
- package/esm2015/lib/dr-tags/dr-tag.module.js +22 -22
- package/esm2015/lib/list-tags/list-tag.component.js +41 -41
- package/esm2015/lib/list-tags/list-tag.module.js +29 -29
- package/esm2015/lib/models/serverTags.js +2 -2
- package/esm2015/public-api.js +20 -19
- package/fesm2015/datarailsshared-datarailsshared.js +1105 -907
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/date-tags/date-tag.component.d.ts +27 -27
- package/lib/date-tags/date-tag.module.d.ts +4 -4
- package/lib/date-tags/day-tag/day-tag.component.d.ts +12 -12
- package/lib/date-tags/forecast-tag/forecast-tag.component.d.ts +21 -21
- package/lib/date-tags/month-tag/month-tag.component.d.ts +14 -14
- package/lib/date-tags/quarter-tag/quarter-tag.component.d.ts +17 -17
- package/lib/date-tags/week-tag/week-tag.component.d.ts +19 -19
- package/lib/date-tags/year-tag/year-tag.component.d.ts +14 -14
- package/lib/dr-inputs/checkbox/checkbox.component.d.ts +14 -14
- package/lib/dr-inputs/dr-input/dr-input.component.d.ts +44 -0
- package/lib/dr-inputs/dr-inputs.module.d.ts +2 -2
- package/lib/dr-inputs/dr-select/dr-select.component.d.ts +27 -0
- package/lib/dr-inputs/radio-button/radio-button.component.d.ts +15 -15
- package/lib/dr-tags/dr-tag.component.d.ts +15 -15
- package/lib/dr-tags/dr-tag.module.d.ts +2 -2
- package/lib/list-tags/list-tag.component.d.ts +14 -14
- package/lib/list-tags/list-tag.module.d.ts +2 -2
- package/lib/models/serverTags.d.ts +28 -28
- package/package.json +1 -1
- package/public-api.d.ts +19 -16
- package/datarailsshared-datarailsshared-1.3.1.tgz +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import { ControlValueAccessor } from "@angular/forms";
|
|
3
|
-
export declare class CheckboxComponent implements ControlValueAccessor {
|
|
4
|
-
checkedStatus: boolean;
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
checkedChange: EventEmitter<any>;
|
|
7
|
-
onChange: (value: boolean) => void;
|
|
8
|
-
onTouched: () => void;
|
|
9
|
-
writeValue(value: boolean): void;
|
|
10
|
-
registerOnChange(fn: any): void;
|
|
11
|
-
registerOnTouched(fn: any): void;
|
|
12
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
13
|
-
setValue(): void;
|
|
14
|
-
}
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
3
|
+
export declare class CheckboxComponent implements ControlValueAccessor {
|
|
4
|
+
checkedStatus: boolean;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
checkedChange: EventEmitter<any>;
|
|
7
|
+
onChange: (value: boolean) => void;
|
|
8
|
+
onTouched: () => void;
|
|
9
|
+
writeValue(value: boolean): void;
|
|
10
|
+
registerOnChange(fn: any): void;
|
|
11
|
+
registerOnTouched(fn: any): void;
|
|
12
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
13
|
+
setValue(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef, AfterViewInit, Renderer2, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
export declare class DrInputComponent implements AfterViewInit, ControlValueAccessor, OnDestroy {
|
|
4
|
+
private elementRef;
|
|
5
|
+
private renderer;
|
|
6
|
+
private cdr;
|
|
7
|
+
value: any;
|
|
8
|
+
_disabled: any;
|
|
9
|
+
_elementClass: string[];
|
|
10
|
+
_buttonOptions: {
|
|
11
|
+
show: boolean;
|
|
12
|
+
showOnFocus: boolean;
|
|
13
|
+
focusSet: boolean;
|
|
14
|
+
checkFocusOut: (target: any, element: any) => boolean;
|
|
15
|
+
text: string;
|
|
16
|
+
};
|
|
17
|
+
listenFunc: Function;
|
|
18
|
+
globalListenFunc: Function;
|
|
19
|
+
onChange: (value: any) => void;
|
|
20
|
+
onTouched: () => void;
|
|
21
|
+
type: string;
|
|
22
|
+
placeholder: string;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
clearable: boolean;
|
|
25
|
+
set disabled(value: any);
|
|
26
|
+
set buttonOptions(value: any);
|
|
27
|
+
searchHandler: EventEmitter<any>;
|
|
28
|
+
buttonHandler: EventEmitter<any>;
|
|
29
|
+
prefixIcon: ElementRef;
|
|
30
|
+
suffixIcon: ElementRef;
|
|
31
|
+
tabindex: number;
|
|
32
|
+
get elementClass(): string;
|
|
33
|
+
set(val: string): void;
|
|
34
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, cdr: ChangeDetectorRef);
|
|
35
|
+
ngAfterViewInit(): void;
|
|
36
|
+
registerOnChange(fn: any): void;
|
|
37
|
+
registerOnTouched(fn: () => {}): void;
|
|
38
|
+
writeValue(value: number | string): void;
|
|
39
|
+
updateChanges(): void;
|
|
40
|
+
setDisabledState(isDisabled: boolean): void;
|
|
41
|
+
onSearchClicked($event: any): void;
|
|
42
|
+
onButtonClicked($event: any): void;
|
|
43
|
+
ngOnDestroy(): void;
|
|
44
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class
|
|
2
|
-
}
|
|
1
|
+
export declare class DrInputsModule {
|
|
2
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
export declare class DrSelectComponent implements ControlValueAccessor {
|
|
3
|
+
className: string;
|
|
4
|
+
items: Array<any>;
|
|
5
|
+
addTag: boolean | ((term: string) => any | Promise<any>);
|
|
6
|
+
appendTo: string;
|
|
7
|
+
bindLabel: string;
|
|
8
|
+
bindValue: string;
|
|
9
|
+
clearable: boolean;
|
|
10
|
+
searchable: boolean;
|
|
11
|
+
searchFn: (term: string, item: any) => boolean;
|
|
12
|
+
multiple: boolean;
|
|
13
|
+
hideSelected: boolean;
|
|
14
|
+
placeholder: string;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
id: string;
|
|
19
|
+
keyDownFn: ($event: KeyboardEvent) => boolean;
|
|
20
|
+
withAvatar: boolean;
|
|
21
|
+
selectedItem: any;
|
|
22
|
+
onChange: (value: boolean) => void;
|
|
23
|
+
onTouched: () => void;
|
|
24
|
+
writeValue(value: any): void;
|
|
25
|
+
registerOnChange(fn: any): void;
|
|
26
|
+
registerOnTouched(fn: any): void;
|
|
27
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
-
export declare class RadioButtonComponent implements ControlValueAccessor {
|
|
3
|
-
disabled: boolean;
|
|
4
|
-
name: string;
|
|
5
|
-
_value: any;
|
|
6
|
-
modelValue: any;
|
|
7
|
-
get value(): any;
|
|
8
|
-
onChange: any;
|
|
9
|
-
onTouched: any;
|
|
10
|
-
registerOnChange(fn: any): void;
|
|
11
|
-
registerOnTouched(fn: any): void;
|
|
12
|
-
writeValue(value: any): void;
|
|
13
|
-
toggleChange(event: any): void;
|
|
14
|
-
valueChanged(event: any): void;
|
|
15
|
-
}
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
export declare class RadioButtonComponent implements ControlValueAccessor {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
name: string;
|
|
5
|
+
_value: any;
|
|
6
|
+
modelValue: any;
|
|
7
|
+
get value(): any;
|
|
8
|
+
onChange: any;
|
|
9
|
+
onTouched: any;
|
|
10
|
+
registerOnChange(fn: any): void;
|
|
11
|
+
registerOnTouched(fn: any): void;
|
|
12
|
+
writeValue(value: any): void;
|
|
13
|
+
toggleChange(event: any): void;
|
|
14
|
+
valueChanged(event: any): void;
|
|
15
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
-
import { IDateTag, IListTag, ITag, ITagForServer } from "../models/serverTags";
|
|
3
|
-
export declare class DrTagComponent implements OnInit {
|
|
4
|
-
tagConfig: ITag;
|
|
5
|
-
selectedTag: ITagForServer;
|
|
6
|
-
lockedDate: any[];
|
|
7
|
-
fiscalYearStartsFrom?: number;
|
|
8
|
-
fiscalYearBack?: boolean;
|
|
9
|
-
tagChange: EventEmitter<ITagForServer>;
|
|
10
|
-
defaultValue: string | undefined;
|
|
11
|
-
constructor();
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
onDateHandler(event: IDateTag): void;
|
|
14
|
-
onListHandler(event: IListTag): void;
|
|
15
|
-
}
|
|
1
|
+
import { EventEmitter, OnInit } from "@angular/core";
|
|
2
|
+
import { IDateTag, IListTag, ITag, ITagForServer } from "../models/serverTags";
|
|
3
|
+
export declare class DrTagComponent implements OnInit {
|
|
4
|
+
tagConfig: ITag;
|
|
5
|
+
selectedTag: ITagForServer;
|
|
6
|
+
lockedDate: any[];
|
|
7
|
+
fiscalYearStartsFrom?: number;
|
|
8
|
+
fiscalYearBack?: boolean;
|
|
9
|
+
tagChange: EventEmitter<ITagForServer>;
|
|
10
|
+
defaultValue: string | undefined;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
onDateHandler(event: IDateTag): void;
|
|
14
|
+
onListHandler(event: IListTag): void;
|
|
15
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class DrTagModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class DrTagModule {
|
|
2
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
-
export declare class ListTagComponent implements OnInit {
|
|
6
|
-
values: string[];
|
|
7
|
-
defaultValue: string;
|
|
8
|
-
name: string;
|
|
9
|
-
tagChange: EventEmitter<IListTag>;
|
|
10
|
-
constructor();
|
|
11
|
-
ngOnInit(): void;
|
|
12
|
-
changeInputHandler(event: MatSelectChange | MatButtonToggleChange): void;
|
|
13
|
-
chosenTagHandler(value: any): void;
|
|
14
|
-
}
|
|
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
|
+
export declare class ListTagComponent implements OnInit {
|
|
6
|
+
values: string[];
|
|
7
|
+
defaultValue: string;
|
|
8
|
+
name: string;
|
|
9
|
+
tagChange: EventEmitter<IListTag>;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
changeInputHandler(event: MatSelectChange | MatButtonToggleChange): void;
|
|
13
|
+
chosenTagHandler(value: any): void;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class ListTagModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class ListTagModule {
|
|
2
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export declare type TAG_TYPES = "LIST" | "DATE";
|
|
2
|
-
export interface ITag {
|
|
3
|
-
id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
type: TAG_TYPES;
|
|
6
|
-
options: any;
|
|
7
|
-
values: string[] | null;
|
|
8
|
-
description: string;
|
|
9
|
-
locked?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface ITagForServer {
|
|
12
|
-
id: number;
|
|
13
|
-
name: string;
|
|
14
|
-
value?: number | string;
|
|
15
|
-
label?: string;
|
|
16
|
-
locked?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface IDateTag {
|
|
19
|
-
name: string;
|
|
20
|
-
value?: number;
|
|
21
|
-
label?: string;
|
|
22
|
-
locked?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface IListTag {
|
|
25
|
-
name: string;
|
|
26
|
-
value?: number;
|
|
27
|
-
label?: string;
|
|
28
|
-
}
|
|
1
|
+
export declare type TAG_TYPES = "LIST" | "DATE";
|
|
2
|
+
export interface ITag {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
type: TAG_TYPES;
|
|
6
|
+
options: any;
|
|
7
|
+
values: string[] | null;
|
|
8
|
+
description: string;
|
|
9
|
+
locked?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ITagForServer {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
value?: number | string;
|
|
15
|
+
label?: string;
|
|
16
|
+
locked?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IDateTag {
|
|
19
|
+
name: string;
|
|
20
|
+
value?: number;
|
|
21
|
+
label?: string;
|
|
22
|
+
locked?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface IListTag {
|
|
25
|
+
name: string;
|
|
26
|
+
value?: number;
|
|
27
|
+
label?: string;
|
|
28
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
export * from "./lib/date-tags/date-tag.component";
|
|
2
|
-
export * from "./lib/date-tags/forecast-tag/forecast-tag.component";
|
|
3
|
-
export * from "./lib/date-tags/month-tag/month-tag.component";
|
|
4
|
-
export * from "./lib/date-tags/quarter-tag/quarter-tag.component";
|
|
5
|
-
export * from "./lib/date-tags/week-tag/week-tag.component";
|
|
6
|
-
export * from "./lib/date-tags/year-tag/year-tag.component";
|
|
7
|
-
export * from "./lib/dr-tags/dr-tag.component";
|
|
8
|
-
export * from "./lib/list-tags/list-tag.component";
|
|
9
|
-
export * from "./lib/date-tags/day-tag/day-tag.component";
|
|
10
|
-
export * from "./lib/date-tags/date-tag.component";
|
|
11
|
-
export * from "./lib/dr-inputs/radio-button/radio-button.component";
|
|
12
|
-
export * from "./lib/dr-inputs/checkbox/checkbox.component";
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
1
|
+
export * from "./lib/date-tags/date-tag.component";
|
|
2
|
+
export * from "./lib/date-tags/forecast-tag/forecast-tag.component";
|
|
3
|
+
export * from "./lib/date-tags/month-tag/month-tag.component";
|
|
4
|
+
export * from "./lib/date-tags/quarter-tag/quarter-tag.component";
|
|
5
|
+
export * from "./lib/date-tags/week-tag/week-tag.component";
|
|
6
|
+
export * from "./lib/date-tags/year-tag/year-tag.component";
|
|
7
|
+
export * from "./lib/dr-tags/dr-tag.component";
|
|
8
|
+
export * from "./lib/list-tags/list-tag.component";
|
|
9
|
+
export * from "./lib/date-tags/day-tag/day-tag.component";
|
|
10
|
+
export * from "./lib/date-tags/date-tag.component";
|
|
11
|
+
export * from "./lib/dr-inputs/radio-button/radio-button.component";
|
|
12
|
+
export * from "./lib/dr-inputs/checkbox/checkbox.component";
|
|
13
|
+
export * from "./lib/dr-inputs/dr-input/dr-input.component";
|
|
14
|
+
export * from "./lib/dr-inputs/dr-select/dr-select.component";
|
|
15
|
+
export { TAG_TYPES, ITag, IDateTag, IListTag, ITagForServer } from "./lib/models/serverTags";
|
|
16
|
+
export { DateTagModule } from "./lib/date-tags/date-tag.module";
|
|
17
|
+
export { ListTagModule } from "./lib/list-tags/list-tag.module";
|
|
18
|
+
export { DrTagModule } from "./lib/dr-tags/dr-tag.module";
|
|
19
|
+
export { DrInputsModule } from "./lib/dr-inputs/dr-inputs.module";
|
|
Binary file
|