@datarailsshared/datarailsshared 1.3.19 → 1.3.22

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.
Files changed (28) hide show
  1. package/assets/styles/img/default_avatar.svg +4 -0
  2. package/bundles/datarailsshared-datarailsshared.umd.js +76 -36
  3. package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
  4. package/datarailsshared-datarailsshared-1.3.22.tgz +0 -0
  5. package/datarailsshared-datarailsshared.metadata.json +1 -1
  6. package/esm2015/lib/date-tags/year-tag/year-tag.component.js +2 -1
  7. package/esm2015/lib/dr-avatar/dr-avatar.component.js +13 -18
  8. package/esm2015/lib/dr-avatar/dr-avatar.module.js +10 -7
  9. package/esm2015/lib/dr-avatar/dr-avatar.pipe.js +15 -0
  10. package/esm2015/lib/dr-dropdown/dr-dropdown-position.directive.js +11 -5
  11. package/esm2015/lib/dr-dropdown/dr-dropdown.component.js +5 -3
  12. package/esm2015/lib/dr-dropdown/dr-dropdown.directive.js +3 -1
  13. package/esm2015/lib/dr-inputs/checkbox/checkbox.component.js +21 -9
  14. package/esm2015/lib/dr-inputs/dr-inputs.module.js +2 -4
  15. package/esm2015/lib/dr-tags/dr-tag.component.js +2 -2
  16. package/esm2015/lib/models/dropdown.js +1 -1
  17. package/esm2015/public-api.js +2 -1
  18. package/fesm2015/datarailsshared-datarailsshared.js +69 -37
  19. package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
  20. package/lib/dr-avatar/dr-avatar.component.d.ts +4 -6
  21. package/lib/dr-avatar/dr-avatar.pipe.d.ts +4 -0
  22. package/lib/dr-dropdown/dr-dropdown.component.d.ts +1 -0
  23. package/lib/dr-dropdown/dr-dropdown.directive.d.ts +1 -0
  24. package/lib/dr-inputs/checkbox/checkbox.component.d.ts +7 -3
  25. package/lib/models/dropdown.d.ts +1 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +1 -0
  28. package/datarailsshared-datarailsshared-1.3.19.tgz +0 -0
@@ -1,12 +1,10 @@
1
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- export declare class DrAvatarComponent implements OnChanges {
3
- set users(user: any[] | object);
1
+ import { EventEmitter } from '@angular/core';
2
+ export declare class DrAvatarComponent {
3
+ set users(users: any[] | object);
4
+ warning: boolean;
4
5
  userClicked: EventEmitter<any>;
5
6
  parsedUsers: any[];
6
7
  constructor();
7
- ngOnChanges(changes: SimpleChanges): void;
8
- parseUsers(value: any[] | object): any[];
9
8
  getFirstUsers(): any[];
10
9
  getLastUsers(): any[];
11
- getRandomValue(limit: any): number;
12
10
  }
@@ -0,0 +1,4 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ export declare class DrAvatarPipe implements PipeTransform {
3
+ transform(item: any, type?: string): string;
4
+ }
@@ -9,6 +9,7 @@ export declare class DrDropdownComponent {
9
9
  option: any;
10
10
  position: ElPosition | IDropdownCoordinate;
11
11
  list: IDropdownItem<unknown>[];
12
+ containerClass: string;
12
13
  private firstInit;
13
14
  constructor(menuService: DrDropdownService, cdr: ChangeDetectorRef);
14
15
  set options(data: IDropdown<IDropdownItem<any>>);
@@ -9,6 +9,7 @@ export declare class DrDropdownDirective<T> implements OnDestroy {
9
9
  private _document;
10
10
  position: ElPosition;
11
11
  drDropdown: IDropdownItem<T>[];
12
+ drDropdownClass: string;
12
13
  contentCmpRef: any;
13
14
  constructor(componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, service: DrDropdownService, el: ElementRef, _document: any);
14
15
  elementClick(): void;
@@ -1,9 +1,13 @@
1
- import { ChangeDetectorRef, EventEmitter } from "@angular/core";
2
- import { ControlValueAccessor } from "@angular/forms";
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
3
  export declare class CheckboxComponent implements ControlValueAccessor {
4
4
  private cdr;
5
5
  checkedStatus: boolean;
6
6
  disabled: boolean;
7
+ icon: 'cross' | '';
8
+ get indeterminate(): boolean;
9
+ set indeterminate(value: boolean);
10
+ private _indeterminate;
7
11
  checkedChange: EventEmitter<any>;
8
12
  onChange: (value: boolean) => void;
9
13
  onTouched: () => void;
@@ -12,5 +16,5 @@ export declare class CheckboxComponent implements ControlValueAccessor {
12
16
  registerOnChange(fn: any): void;
13
17
  registerOnTouched(fn: any): void;
14
18
  setDisabledState?(isDisabled: boolean): void;
15
- setValue(): void;
19
+ setValue(event: any): void;
16
20
  }
@@ -4,6 +4,7 @@ export interface IDropdown<T> {
4
4
  position: ElPosition | IDropdownCoordinate;
5
5
  list: IDropdownItem<T>[];
6
6
  tag?: string;
7
+ class?: string | undefined;
7
8
  }
8
9
  export interface IDropdownItem<T> {
9
10
  title?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.3.19",
3
+ "version": "1.3.22",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",
package/public-api.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from './lib/dr-inputs/checkbox/checkbox.component';
13
13
  export * from './lib/dr-inputs/dr-input/dr-input.component';
14
14
  export * from './lib/dr-inputs/dr-select/dr-select.component';
15
15
  export * from './lib/dr-avatar/dr-avatar.component';
16
+ export * from './lib/dr-avatar/dr-avatar.pipe';
16
17
  export * from './lib/dr-tooltip/dr-tooltip.component';
17
18
  export * from './lib/dr-tooltip/dr-tooltip.directive';
18
19
  export * from './lib/dr-inputs/dr-toggle/dr-toggle.component';