@datarailsshared/datarailsshared 1.3.13 → 1.3.15
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/img/spinner.gif +0 -0
- package/bundles/datarailsshared-datarailsshared.umd.js +113 -32
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.3.15.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-dropdown/dr-dropdown.component.js +14 -3
- package/esm2015/lib/dr-inputs/button/button.component.js +4 -4
- package/esm2015/lib/dr-inputs/dr-input/dr-input.component.js +1 -1
- package/esm2015/lib/dr-inputs/dr-inputs.module.js +13 -2
- package/esm2015/lib/dr-inputs/dr-toggle-button/dr-toggle-button.component.js +52 -0
- package/esm2015/lib/dr-popover/dr-popover.component.js +5 -26
- package/esm2015/lib/dr-popover/dr-popover.directive.js +29 -4
- package/esm2015/lib/dr-tabs/dr-tabs.component.js +1 -1
- package/esm2015/lib/models/dropdown.js +1 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/datarailsshared-datarailsshared.js +108 -33
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-dropdown/dr-dropdown.component.d.ts +1 -0
- package/lib/dr-inputs/dr-toggle-button/dr-toggle-button.component.d.ts +17 -0
- package/lib/dr-popover/dr-popover.component.d.ts +1 -5
- package/lib/dr-popover/dr-popover.directive.d.ts +6 -2
- package/lib/models/dropdown.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/datarailsshared-datarailsshared-1.3.13.tgz +0 -0
|
@@ -15,6 +15,7 @@ export declare class DrDropdownComponent {
|
|
|
15
15
|
onClickedOutside(): void;
|
|
16
16
|
hide(): void;
|
|
17
17
|
disabled(act: IDropdownItem<unknown> | IDropdownActionIcon<any>): boolean;
|
|
18
|
+
selected(act: IDropdownItem<unknown>): boolean;
|
|
18
19
|
tooltipToShow(act: IDropdownItem<unknown>): string;
|
|
19
20
|
action(act: IDropdownItem<any>): void;
|
|
20
21
|
onActionIconClick(actionIcon: IDropdownActionIcon<any>, data: any): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
export declare class DrToggleButtonComponent implements ControlValueAccessor {
|
|
4
|
+
private cdr;
|
|
5
|
+
_disabled: boolean;
|
|
6
|
+
items: string[] | any[];
|
|
7
|
+
selectedValue: boolean;
|
|
8
|
+
set disabled(value: boolean);
|
|
9
|
+
constructor(cdr: ChangeDetectorRef);
|
|
10
|
+
onChange: (value: boolean) => void;
|
|
11
|
+
onTouched: () => void;
|
|
12
|
+
writeValue(value: any): void;
|
|
13
|
+
registerOnChange(fn: any): void;
|
|
14
|
+
registerOnTouched(fn: any): void;
|
|
15
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
16
|
+
setValue(item: any): void;
|
|
17
|
+
}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, TemplateRef, Type, ViewContainerRef, OnInit } from '@angular/core';
|
|
2
|
-
import { DrPopoverRef } from './dr-popover-ref';
|
|
3
2
|
import { Point } from '../models/popover';
|
|
4
3
|
export declare class DrPopoverComponent<T> implements OnInit {
|
|
5
4
|
private cdr;
|
|
6
5
|
private componentFactoryResolver;
|
|
7
6
|
private viewContainerRef;
|
|
8
|
-
private elementRef;
|
|
9
|
-
private popoverRef;
|
|
10
7
|
content: TemplateRef<any> | Type<T>;
|
|
11
8
|
contentContext: any;
|
|
12
9
|
class: string;
|
|
@@ -15,7 +12,6 @@ export declare class DrPopoverComponent<T> implements OnInit {
|
|
|
15
12
|
popoverContainer: ElementRef<HTMLElement>;
|
|
16
13
|
isContentTemplate: boolean;
|
|
17
14
|
componentRef: ComponentRef<T>;
|
|
18
|
-
|
|
19
|
-
constructor(cdr: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, elementRef: ElementRef, popoverRef: DrPopoverRef<T>);
|
|
15
|
+
constructor(cdr: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef);
|
|
20
16
|
ngOnInit(): void;
|
|
21
17
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, TemplateRef, Type } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, Renderer2, TemplateRef, Type } from '@angular/core';
|
|
2
2
|
import { OverlayConfig } from '@angular/cdk/overlay';
|
|
3
3
|
import { ElPosition } from './../models/dropdown';
|
|
4
4
|
import { DrPopoverService } from './dr-popover.service';
|
|
5
5
|
export declare class DrPopoverDirective<T> implements OnDestroy {
|
|
6
6
|
private elementRef;
|
|
7
|
+
private renderer;
|
|
7
8
|
private drPopoverService;
|
|
9
|
+
private document;
|
|
8
10
|
content: TemplateRef<any> | Type<T>;
|
|
9
11
|
contentContext: Object;
|
|
10
12
|
position: ElPosition;
|
|
@@ -16,9 +18,11 @@ export declare class DrPopoverDirective<T> implements OnDestroy {
|
|
|
16
18
|
isShown: boolean;
|
|
17
19
|
}>;
|
|
18
20
|
private popoverRef;
|
|
19
|
-
|
|
21
|
+
private clickOutsideEvent;
|
|
22
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, drPopoverService: DrPopoverService, document: any);
|
|
20
23
|
togglePopover(): void;
|
|
21
24
|
closePopover(res?: any): void;
|
|
25
|
+
private clickOutside;
|
|
22
26
|
private renderPopover;
|
|
23
27
|
ngOnDestroy(): void;
|
|
24
28
|
}
|
package/lib/models/dropdown.d.ts
CHANGED
|
@@ -19,12 +19,14 @@ export interface IDropdownItem<T> {
|
|
|
19
19
|
children?: T[];
|
|
20
20
|
childOptions?: IDropdown<T>;
|
|
21
21
|
actionIcons?: IDropdownActionIcon<T>[];
|
|
22
|
+
selected?: (p: T) => boolean;
|
|
22
23
|
}
|
|
23
24
|
export interface IDropdownActionIcon<T> {
|
|
24
25
|
icon: string;
|
|
25
26
|
action: (p: T) => void;
|
|
26
27
|
disabled?: boolean;
|
|
27
28
|
data?: any;
|
|
29
|
+
showOnHover?: boolean;
|
|
28
30
|
}
|
|
29
31
|
export interface IDropdownCoordinate {
|
|
30
32
|
x: number;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './lib/dr-avatar/dr-avatar.component';
|
|
|
16
16
|
export * from './lib/dr-tooltip/dr-tooltip.component';
|
|
17
17
|
export * from './lib/dr-tooltip/dr-tooltip.directive';
|
|
18
18
|
export * from './lib/dr-inputs/dr-toggle/dr-toggle.component';
|
|
19
|
+
export * from './lib/dr-inputs/dr-toggle-button/dr-toggle-button.component';
|
|
19
20
|
export * from './lib/dr-spinner/dr-spinner.component';
|
|
20
21
|
export * from './lib/dr-spinner/dr-spinner.directive';
|
|
21
22
|
export * from './lib/dr-inputs/button/button.component';
|
|
Binary file
|