Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Jul 30, 2018
1 parent 455cff9 commit 5a169ef
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 14 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/lib/modal/modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class McModalComponent<T = any, R = any> extends McModalRef<T, R>
}

// tslint:disable-next-line:no-any
@Input() mcModalType: ModalType = ModalType.DEFAULT;
@Input() mcModalType: ModalType = 'default';
// If not specified, will use <ng-content>
@Input() mcContent: string | TemplateRef<{}> | Type<T>;
// avaliable when mcContent is a component
Expand Down Expand Up @@ -126,7 +126,7 @@ export class McModalComponent<T = any, R = any> extends McModalRef<T, R>
private viewContainer: ViewContainerRef,
private mcMeasureScrollbarService: McMeasureScrollbarService,
private modalControl: McModalControlService,
@Inject(DOCUMENT) private document: any) { // tslint:disable-line:no-any
@Inject(DOCUMENT) private document: any) {

super();
}
Expand Down
10 changes: 4 additions & 6 deletions src/lib/modal/modal.module.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { OverlayModule } from '@ptsecurity/cdk/overlay';

import { CssUnitPipe } from '../core/pipes/css-unit.pipe';

import { McButtonModule } from '../button';
import { McIconModule } from '../icon';
import { OverlayModule } from '@ptsecurity/cdk/overlay';
import { McButtonModule } from '@ptsecurity/mosaic/button';

import { CssUnitPipe } from './css-unit.pipe';
import { McModalControlService } from './modal-control.service';
import { McModalComponent } from './modal.component';
import { McModalService } from './modal.service';


@NgModule({
imports: [ CommonModule, OverlayModule, McButtonModule, McIconModule ],
imports: [ CommonModule, OverlayModule, McButtonModule ],
exports: [ McModalComponent ],
declarations: [ McModalComponent, CssUnitPipe ],
entryComponents: [ McModalComponent ],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/modal/modal.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class McModalService {
}; // Leave a empty function to close this modal by default
}

options.mcModalType = ModalType.CONFIRM;
options.mcModalType = 'confirm';
options.mcClassName = `mc-confirm mc-confirm-${confirmType} ${options.mcClassName || ''}`;
options.mcMaskClosable = false;

Expand Down
5 changes: 1 addition & 4 deletions src/lib/modal/modal.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import { OverlayRef } from '@ptsecurity/cdk/overlay';
export type OnClickCallback<T> = ((instance: T) => (false | void | {}) | Promise<false | void | {}>);

// Different modal styles we have supported
export enum ModalType {
DEFAULT = 'default',
CONFIRM = 'confirm'
}
export type ModalType = 'default' | 'confirm';

// Subtypes of Confirm Modal
export type ConfirmType = 'confirm' | 'info' | 'success' | 'error' | 'warning';
Expand Down
1 change: 0 additions & 1 deletion src/lib/modal/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"public-api.ts"
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@ptsecurity/mosaic/modal",
Expand Down
1 change: 1 addition & 0 deletions src/lib/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ export * from '@ptsecurity/mosaic/checkbox';
export * from '@ptsecurity/mosaic/progress-bar';
export * from '@ptsecurity/mosaic/progress-spinner';
export * from '@ptsecurity/mosaic/navbar';
export * from '@ptsecurity/mosaic/modal';

0 comments on commit 5a169ef

Please sign in to comment.