@datarailsshared/datarailsshared 1.3.15 → 1.3.18
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 → new-spinner.gif} +0 -0
- package/bundles/datarailsshared-datarailsshared.umd.js +107 -56
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.3.18.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-dropdown/dr-dropdown-position.directive.js +2 -2
- package/esm2015/lib/dr-dropdown/dr-dropdown.component.js +5 -4
- package/esm2015/lib/dr-inputs/button/button.component.js +3 -3
- package/esm2015/lib/dr-inputs/dr-input/dr-input.component.js +1 -1
- package/esm2015/lib/dr-inputs/dr-select/dr-select.component.js +1 -1
- package/esm2015/lib/dr-inputs/dr-toggle/dr-toggle.component.js +3 -2
- package/esm2015/lib/dr-popover/dr-popover.component.js +36 -5
- package/esm2015/lib/dr-popover/dr-popover.directive.js +7 -29
- package/esm2015/lib/dr-popover/dr-popover.service.js +31 -5
- package/esm2015/lib/dr-spinner/dr-spinner.component.js +1 -1
- package/esm2015/lib/models/constants.js +3 -3
- package/esm2015/lib/models/popover.js +16 -2
- package/esm2015/public-api.js +2 -2
- package/fesm2015/datarailsshared-datarailsshared.js +105 -57
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-dropdown/dr-dropdown.component.d.ts +1 -1
- package/lib/dr-inputs/button/button.component.d.ts +1 -1
- package/lib/dr-inputs/dr-toggle/dr-toggle.component.d.ts +1 -0
- package/lib/dr-popover/dr-popover.component.d.ts +12 -3
- package/lib/dr-popover/dr-popover.directive.d.ts +5 -7
- package/lib/dr-popover/dr-popover.service.d.ts +2 -1
- package/lib/models/popover.d.ts +11 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/datarailsshared-datarailsshared-1.3.15.tgz +0 -0
|
@@ -18,5 +18,5 @@ export declare class DrDropdownComponent {
|
|
|
18
18
|
selected(act: IDropdownItem<unknown>): boolean;
|
|
19
19
|
tooltipToShow(act: IDropdownItem<unknown>): string;
|
|
20
20
|
action(act: IDropdownItem<any>): void;
|
|
21
|
-
onActionIconClick(actionIcon: IDropdownActionIcon<any>, data: any): void;
|
|
21
|
+
onActionIconClick($event: any, actionIcon: IDropdownActionIcon<any>, data: any): void;
|
|
22
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
declare type ButtonType = 'primary' | 'secondary' | 'danger' | 'primary-icon' | 'secondary-icon' | 'icon' | 'ghost' | 'link-btn' | 'text-link';
|
|
2
|
+
declare type ButtonType = 'primary' | 'secondary' | 'danger' | 'primary-icon' | 'secondary-icon' | 'icon' | 'ghost' | 'link-btn' | 'text-link' | 'split-primary-first' | 'split-primary-last' | 'split-secondary-first' | 'split-secondary-last' | 'dropdown';
|
|
3
3
|
export declare class DrButtonComponent {
|
|
4
4
|
title: string;
|
|
5
5
|
theme: ButtonType;
|
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, TemplateRef, Type, ViewContainerRef, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { DrPopoverRef } from './dr-popover-ref';
|
|
3
|
+
import { IPopoverManualClosing, Point, DrPopoverAlignment } from '../models/popover';
|
|
3
4
|
export declare class DrPopoverComponent<T> implements OnInit {
|
|
4
5
|
private cdr;
|
|
5
6
|
private componentFactoryResolver;
|
|
6
7
|
private viewContainerRef;
|
|
8
|
+
private elementRef;
|
|
9
|
+
private popoverRef;
|
|
7
10
|
content: TemplateRef<any> | Type<T>;
|
|
8
11
|
contentContext: any;
|
|
9
12
|
class: string;
|
|
10
13
|
hostRef: ElementRef<unknown> | HTMLElement | Point;
|
|
11
|
-
manualClosing:
|
|
14
|
+
manualClosing: IPopoverManualClosing;
|
|
15
|
+
alignment: DrPopoverAlignment;
|
|
16
|
+
position: string;
|
|
12
17
|
popoverContainer: ElementRef<HTMLElement>;
|
|
13
18
|
isContentTemplate: boolean;
|
|
14
19
|
componentRef: ComponentRef<T>;
|
|
15
|
-
|
|
20
|
+
width: string;
|
|
21
|
+
height: string;
|
|
22
|
+
popover: boolean;
|
|
23
|
+
clickOutside(e: any): void;
|
|
24
|
+
constructor(cdr: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, elementRef: ElementRef, popoverRef: DrPopoverRef<T>);
|
|
16
25
|
ngOnInit(): void;
|
|
17
26
|
}
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy,
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, 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
|
+
import { IPopoverManualClosing, DrPopoverAlignment } from '../models/popover';
|
|
5
6
|
export declare class DrPopoverDirective<T> implements OnDestroy {
|
|
6
7
|
private elementRef;
|
|
7
|
-
private renderer;
|
|
8
8
|
private drPopoverService;
|
|
9
|
-
private document;
|
|
10
9
|
content: TemplateRef<any> | Type<T>;
|
|
11
10
|
contentContext: Object;
|
|
12
11
|
position: ElPosition;
|
|
13
12
|
class: string;
|
|
14
13
|
overlayConfig: OverlayConfig;
|
|
15
|
-
manualClosing:
|
|
14
|
+
manualClosing: IPopoverManualClosing;
|
|
15
|
+
alignment: DrPopoverAlignment;
|
|
16
16
|
popoverClose: EventEmitter<any>;
|
|
17
17
|
showStateChange: EventEmitter<{
|
|
18
18
|
isShown: boolean;
|
|
19
19
|
}>;
|
|
20
20
|
private popoverRef;
|
|
21
|
-
|
|
22
|
-
constructor(elementRef: ElementRef, renderer: Renderer2, drPopoverService: DrPopoverService, document: any);
|
|
21
|
+
constructor(elementRef: ElementRef, drPopoverService: DrPopoverService);
|
|
23
22
|
togglePopover(): void;
|
|
24
23
|
closePopover(res?: any): void;
|
|
25
|
-
private clickOutside;
|
|
26
24
|
private renderPopover;
|
|
27
25
|
ngOnDestroy(): void;
|
|
28
26
|
}
|
package/lib/models/popover.d.ts
CHANGED
|
@@ -6,17 +6,27 @@ export interface Point {
|
|
|
6
6
|
readonly x: number;
|
|
7
7
|
readonly y: number;
|
|
8
8
|
}
|
|
9
|
+
export interface IPopoverManualClosing {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
}
|
|
9
12
|
export interface IDrPopoverComponentModel {
|
|
10
13
|
hostRef: ElementRef | HTMLElement | Point;
|
|
11
14
|
position?: ElPosition;
|
|
12
15
|
contentContext?: any;
|
|
13
16
|
class?: string;
|
|
14
17
|
overlayConfig?: DrPopoverConfig;
|
|
15
|
-
manualClosing?:
|
|
18
|
+
manualClosing?: IPopoverManualClosing;
|
|
16
19
|
targetElement?: HTMLElement;
|
|
20
|
+
alignment?: DrPopoverAlignment;
|
|
17
21
|
}
|
|
18
22
|
export interface DrPopoverConfig extends OverlayConfig {
|
|
19
23
|
closeOnBackdropClick?: boolean;
|
|
20
24
|
}
|
|
25
|
+
export declare type DrPopoverAlignment = 'host';
|
|
26
|
+
export declare enum DrPopoverAlignmentDimension {
|
|
27
|
+
Width = "width",
|
|
28
|
+
Height = "height"
|
|
29
|
+
}
|
|
21
30
|
export declare const DEFAULT_CONFIG: DrPopoverConfig;
|
|
22
31
|
export declare const DEFAULT_MODEL: Partial<IDrPopoverComponentModel>;
|
|
32
|
+
export declare function getAlignmentDimension(position: string): DrPopoverAlignmentDimension;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export * from './lib/dr-tabs/dr-tabs.component';
|
|
|
34
34
|
export * from './lib/dr-tabs/dr-tab.component';
|
|
35
35
|
export { TAG_TYPES, ITag, IDateTag, IListTag, ITagForServer } from './lib/models/serverTags';
|
|
36
36
|
export { ElPosition, IDropdown, IDropdownItem, IDropdownActionIcon, IDropdownCoordinate, IDropdownCallEvent, IDropdownAction } from './lib/models/dropdown';
|
|
37
|
-
export { DrPopoverRef, IDrPopoverComponentModel, Point, DrPopoverConfig, } from './lib/models/popover';
|
|
37
|
+
export { DrPopoverRef, IDrPopoverComponentModel, Point, DrPopoverConfig, IPopoverManualClosing, DrPopoverAlignment, DrPopoverAlignmentDimension, } from './lib/models/popover';
|
|
38
38
|
export { DateTagModule } from './lib/date-tags/date-tag.module';
|
|
39
39
|
export { ListTagModule } from './lib/list-tags/list-tag.module';
|
|
40
40
|
export { DrTagModule } from './lib/dr-tags/dr-tag.module';
|
|
Binary file
|