@wizishop/angular-components 0.0.38 → 0.0.42
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/angular-components.scss +3585 -3377
- package/bundles/wizishop-angular-components.umd.js +126 -13
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +2 -2
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/alert-popup/alert-popup-module.js +16 -0
- package/esm2015/lib/components/alert-popup/alert-popup.component.js +41 -0
- package/esm2015/lib/components/alert-popup/alert-popup.service.js +30 -0
- package/esm2015/lib/components/button/button.component.js +4 -2
- package/esm2015/lib/components/dropdown/dropdown.component.js +2 -2
- package/esm2015/lib/components/shared-components.module.js +3 -1
- package/esm2015/lib/services/dom.service.js +28 -4
- package/esm2015/public-api.js +3 -1
- package/esm2015/wizishop-angular-components.js +3 -2
- package/fesm2015/wizishop-angular-components.js +110 -6
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/alert-popup/alert-popup-module.d.ts +2 -0
- package/lib/components/alert-popup/alert-popup.component.d.ts +16 -0
- package/lib/components/alert-popup/alert-popup.service.d.ts +20 -0
- package/lib/components/button/button.component.d.ts +1 -0
- package/lib/services/dom.service.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/wizishop-angular-components-0.0.42.tgz +0 -0
- package/wizishop-angular-components.d.ts +2 -1
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.38.tgz +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { AlertPopupConfig } from './alert-popup.service';
|
|
3
|
+
import { OnInit } from '@angular/core';
|
|
4
|
+
export declare class AlertPopupComponent implements OnInit {
|
|
5
|
+
config: AlertPopupConfig;
|
|
6
|
+
/** Subject for notifying the user that the dialog has finished closing. */
|
|
7
|
+
private afterClosedPopup;
|
|
8
|
+
open: boolean;
|
|
9
|
+
private timer;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
dismiss(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Gets an observable that is notified when the dialog is finished closing.
|
|
14
|
+
*/
|
|
15
|
+
afterClosed(): Observable<any>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AlertPopupComponent } from './alert-popup.component';
|
|
2
|
+
import { DomService } from '../../services/dom.service';
|
|
3
|
+
export declare class AlertPopupService {
|
|
4
|
+
private domService;
|
|
5
|
+
constructor(domService: DomService);
|
|
6
|
+
open(config: AlertPopupConfig): AlertPopupComponent;
|
|
7
|
+
private getComponentRef;
|
|
8
|
+
}
|
|
9
|
+
export interface AlertPopupConfig {
|
|
10
|
+
message: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
color?: string;
|
|
14
|
+
position?: string;
|
|
15
|
+
duration?: number;
|
|
16
|
+
extraClasses?: string;
|
|
17
|
+
fullsize?: boolean;
|
|
18
|
+
opacity?: boolean;
|
|
19
|
+
small?: boolean;
|
|
20
|
+
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
+
import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Injector } from '@angular/core';
|
|
2
|
+
import { ComponentType, OverlayContainer } from '@angular/cdk/overlay';
|
|
3
|
+
import { PortalInjector } from '@angular/cdk/portal';
|
|
1
4
|
export declare class DomService {
|
|
5
|
+
private componentFactoryResolver;
|
|
6
|
+
private appRef;
|
|
7
|
+
private injector;
|
|
8
|
+
private overlayContainer;
|
|
9
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector, overlayContainer: OverlayContainer);
|
|
2
10
|
private documentEventSource;
|
|
3
11
|
private documentEventDone;
|
|
4
12
|
private eventInitialisation;
|
|
@@ -8,4 +16,7 @@ export declare class DomService {
|
|
|
8
16
|
setDocumentEventListener(): void;
|
|
9
17
|
documentScroll(): import("rxjs").Observable<unknown>;
|
|
10
18
|
setScrollEventListener(): void;
|
|
19
|
+
attachComponentPortal<T>(component: ComponentType<T>, injector?: PortalInjector): ComponentRef<T>;
|
|
20
|
+
/** Gets the root HTMLElement for an instantiated component. */
|
|
21
|
+
private _getComponentRootNode;
|
|
11
22
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -65,3 +65,5 @@ export * from './lib/components/wrapper-blocs/wrapper-blocs.component';
|
|
|
65
65
|
export * from './lib/components/multiple-search-plus/shared/multiple-search-plus-results.model';
|
|
66
66
|
export * from './lib/components/multiple-search-plus/shared/multiple-search-plus-option.model';
|
|
67
67
|
export * from './lib/components/snackbar/snackbar.component';
|
|
68
|
+
export * from './lib/components/alert-popup/alert-popup.service';
|
|
69
|
+
export * from './lib/components/alert-popup/alert-popup.component';
|
|
Binary file
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
-
export { inOutX as
|
|
5
|
+
export { inOutX as ɵo } from './lib/animations/in-out/in-out-x.animation';
|
|
6
6
|
export { inOutY as ɵm } from './lib/animations/in-out/in-out-y.animation';
|
|
7
|
+
export { AlertPopupModule as ɵn } from './lib/components/alert-popup/alert-popup-module';
|
|
7
8
|
export { CheckboxModule as ɵl } from './lib/components/checkbox/checkbox.module';
|
|
8
9
|
export { InputSearchModule as ɵg } from './lib/components/inputs/input-search/input-search.module';
|
|
9
10
|
export { InputModule as ɵh } from './lib/components/inputs/input/input.module';
|