diff options
author | vempo <vitaliy.emporopulo@amdocs.com> | 2018-07-24 17:34:04 +0300 |
---|---|---|
committer | vempo <vitaliy.emporopulo@amdocs.com> | 2018-07-25 11:39:10 +0300 |
commit | a52d50e788792a63e97a9176ab319d53db7a2853 (patch) | |
tree | b1c2222cacf4b8192aea16d1e0315b1f005c5347 /sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts | |
parent | 3c2665debb400aef7f0ed9e235698d2ff9f859db (diff) |
Replaced old implementation at root
Old project files and directories has been moved
under 'deprecated-workflow-designer'. The old project
is not built by the CI anymore, but can be still built manually.
New modules/directories have been moved up and integrated with
the CI system.
Change-Id: I1528c792bcbcce9e50bfc294a1328a20e72c91cf
Issue-ID: SDC-1559
Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts')
-rw-r--r-- | sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts b/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts deleted file mode 100644 index 5935eee6..00000000 --- a/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.ts +++ /dev/null @@ -1,54 +0,0 @@ -import {Injectable, Injector, ComponentFactoryResolver} from '@angular/core'; -import {PlxModalStack} from './modal-stack'; -import {PlxModalRef} from './modal-ref'; - -/** - * Represent options available when opening new modal windows. - */ -export interface PlxModalOptions { - /** - * Whether a backdrop element should be created for a given modal (true by default). - * Alternatively, specify 'static' for a backdrop which doesn't close the modal on click. - */ - backdrop?: boolean | 'static'; - - /** - * An element to which to attach newly opened modal windows. - */ - container?: string; - - /** - * Whether to close the modal when escape key is pressed (true by default). - */ - keyboard?: boolean; - - /** - * Size of a new modal window. - */ - size?: 'sm' | 'lg'; - - /** - * Custom class to append to the modal window - */ - windowClass?: string; -} - -/** - * A service to open modal windows. Creating a modal is straightforward: create a template and pass it as an argument to - * the "open" method! - */ -@Injectable() -export class PlxModal { - constructor(private _moduleCFR: ComponentFactoryResolver, private _injector: Injector, private _modalStack: PlxModalStack) { - } - - /** - * Opens a new modal window with the specified content and using supplied options. Content can be provided - * as a TemplateRef or a component type. If you pass a component type as content than instances of those - * components can be injected with an instance of the PlxActiveModal class. You can use methods on the - * PlxActiveModal class to close / dismiss modals from "inside" of a component. - */ - public open(content: any, options: PlxModalOptions = {}): PlxModalRef { - return this._modalStack.open(this._moduleCFR, this._injector, content, options); - } -} |