summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog')
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/bower.json8
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css12
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.css111
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.js713
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.css6
-rw-r--r--ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.js7
7 files changed, 0 insertions, 863 deletions
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/bower.json b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/bower.json
deleted file mode 100644
index 52623b3f..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/bower.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "angular-material-dialog",
- "version": "0.9.8",
- "dependencies": {
- "angular-material-core": "0.9.8",
- "angular-material-backdrop": "0.9.8"
- }
-} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css
deleted file mode 100644
index d69b1259..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.css
+++ /dev/null
@@ -1,12 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-md-dialog.md-THEME_NAME-theme {
- border-radius: 4px;
- background-color: '{{background-color}}'; }
- md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions {
- border-top-color: '{{foreground-4}}'; }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css
deleted file mode 100644
index 9ae8431b..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog-default-theme.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:'{{background-color}}'}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions{border-top-color:'{{foreground-4}}'} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.css
deleted file mode 100644
index 12cc2a57..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.css
+++ /dev/null
@@ -1,111 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-/* mixin definition ; sets LTR and RTL within the same style call */
-.md-dialog-is-showing {
- max-height: 100%; }
-
-.md-dialog-container {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 80; }
-
-md-dialog {
- opacity: 0;
- min-width: 240px;
- max-width: 80%;
- max-height: 80%;
- position: relative;
- overflow: hidden;
- box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.14), 0px 16px 24px 2px rgba(0, 0, 0, 0.098), 0px 6px 30px 5px rgba(0, 0, 0, 0.084);
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column; }
- md-dialog.transition-in {
- opacity: 1;
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate3d(0, 0, 0) scale(1);
- transform: translate3d(0, 0, 0) scale(1); }
- md-dialog.transition-out {
- transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
- -webkit-transform: translate3d(0, 100%, 0) scale(0.2);
- transform: translate3d(0, 100%, 0) scale(0.2); }
- md-dialog > form {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- overflow: auto; }
- md-dialog md-dialog-content {
- -webkit-order: 1;
- -ms-flex-order: 1;
- order: 1;
- -webkit-flex-direction: column;
- -ms-flex-direction: column;
- flex-direction: column;
- padding: 24px;
- overflow: auto;
- -webkit-overflow-scrolling: touch; }
- md-dialog md-dialog-content:not([layout=row]) > *:first-child:not(.md-subheader) {
- margin-top: 0; }
- md-dialog md-dialog-content:focus {
- outline: none; }
- md-dialog md-dialog-content .md-subheader {
- margin: 0; }
- md-dialog md-dialog-content .md-subheader.sticky-clone {
- box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16); }
- md-dialog md-dialog-content.sticky-container {
- padding: 0; }
- md-dialog md-dialog-content.sticky-container > div {
- padding: 24px;
- padding-top: 0; }
- md-dialog .md-actions {
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-order: 2;
- -ms-flex-order: 2;
- order: 2;
- box-sizing: border-box;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-justify-content: flex-end;
- -ms-flex-pack: end;
- justify-content: flex-end;
- margin-bottom: 0;
- padding-right: 8px;
- padding-left: 16px;
- min-height: 52px; }
- md-dialog .md-actions .md-button {
- margin-bottom: 8px;
- margin-left: 8px;
- margin-right: 0;
- margin-top: 8px; }
- md-dialog.md-content-overflow .md-actions {
- border-top-width: 1px;
- border-top-style: solid; }
-
-@media screen and (-ms-high-contrast: active) {
- md-dialog {
- border: 1px solid #fff; } }
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.js
deleted file mode 100644
index c0df1596..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.js
+++ /dev/null
@@ -1,713 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-(function( window, angular, undefined ){
-"use strict";
-
-/**
- * @ngdoc module
- * @name material.components.dialog
- */
-angular.module('material.components.dialog', [
- 'material.core',
- 'material.components.backdrop'
-])
- .directive('mdDialog', MdDialogDirective)
- .provider('$mdDialog', MdDialogProvider);
-
-function MdDialogDirective($$rAF, $mdTheming) {
- return {
- restrict: 'E',
- link: function(scope, element, attr) {
- $mdTheming(element);
- $$rAF(function() {
- var content = element[0].querySelector('md-dialog-content');
- if (content && content.scrollHeight > content.clientHeight) {
- element.addClass('md-content-overflow');
- }
- });
- }
- };
-}
-MdDialogDirective.$inject = ["$$rAF", "$mdTheming"];
-
-/**
- * @ngdoc service
- * @name $mdDialog
- * @module material.components.dialog
- *
- * @description
- * `$mdDialog` opens a dialog over the app to inform users about critical information or require
- * them to make decisions. There are two approaches for setup: a simple promise API
- * and regular object syntax.
- *
- * ## Restrictions
- *
- * - The dialog is always given an isolate scope.
- * - The dialog's template must have an outer `<md-dialog>` element.
- * Inside, use an `<md-dialog-content>` element for the dialog's content, and use
- * an element with class `md-actions` for the dialog's actions.
- * - Dialogs must cover the entire application to keep interactions inside of them.
- * Use the `parent` option to change where dialogs are appended.
- *
- * ## Sizing
- * - Complex dialogs can be sized with `flex="percentage"`, i.e. `flex="66"`.
- * - Default max-width is 80% of the `rootElement` or `parent`.
- *
- * @usage
- * <hljs lang="html">
- * <div ng-app="demoApp" ng-controller="EmployeeController">
- * <div>
- * <md-button ng-click="showAlert()" class="md-raised md-warn">
- * Employee Alert!
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="showDialog($event)" class="md-raised">
- * Custom Dialog
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="closeAlert()" ng-disabled="!hasAlert()" class="md-raised">
- * Close Alert
- * </md-button>
- * </div>
- * <div>
- * <md-button ng-click="showGreeting($event)" class="md-raised md-primary" >
- * Greet Employee
- * </md-button>
- * </div>
- * </div>
- * </hljs>
- *
- * ### JavaScript: object syntax
- * <hljs lang="js">
- * (function(angular, undefined){
- * "use strict";
- *
- * angular
- * .module('demoApp', ['ngMaterial'])
- * .controller('AppCtrl', AppController);
- *
- * function AppController($scope, $mdDialog) {
- * var alert;
- * $scope.showAlert = showAlert;
- * $scope.showDialog = showDialog;
- * $scope.items = [1, 2, 3];
- *
- * // Internal method
- * function showAlert() {
- * alert = $mdDialog.alert({
- * title: 'Attention',
- * content: 'This is an example of how easy dialogs can be!',
- * ok: 'Close'
- * });
- *
- * $mdDialog
- * .show( alert )
- * .finally(function() {
- * alert = undefined;
- * });
- * }
- *
- * function showDialog($event) {
- * var parentEl = angular.element(document.body);
- * $mdDialog.show({
- * parent: parentEl,
- * targetEvent: $event,
- * template:
- * '<md-dialog aria-label="List dialog">' +
- * ' <md-dialog-content>'+
- * ' <md-list>'+
- * ' <md-list-item ng-repeat="item in items">'+
- * ' <p>Number {{item}}</p>' +
- * ' </md-item>'+
- * ' </md-list>'+
- * ' </md-dialog-content>' +
- * ' <div class="md-actions">' +
- * ' <md-button ng-click="closeDialog()" class="md-primary">' +
- * ' Close Dialog' +
- * ' </md-button>' +
- * ' </div>' +
- * '</md-dialog>',
- * locals: {
- * items: $scope.items
- * },
- * controller: DialogController
- * });
- * function DialogController($scope, $mdDialog, items) {
- * $scope.items = items;
- * $scope.closeDialog = function() {
- * $mdDialog.hide();
- * }
- * }
- * }
- * }
- * })(angular);
- * </hljs>
- *
- * ### JavaScript: promise API syntax, custom dialog template
- * <hljs lang="js">
- * (function(angular, undefined){
- * "use strict";
- *
- * angular
- * .module('demoApp', ['ngMaterial'])
- * .controller('EmployeeController', EmployeeEditor)
- * .controller('GreetingController', GreetingController);
- *
- * // Fictitious Employee Editor to show how to use simple and complex dialogs.
- *
- * function EmployeeEditor($scope, $mdDialog) {
- * var alert;
- *
- * $scope.showAlert = showAlert;
- * $scope.closeAlert = closeAlert;
- * $scope.showGreeting = showCustomGreeting;
- *
- * $scope.hasAlert = function() { return !!alert };
- * $scope.userName = $scope.userName || 'Bobby';
- *
- * // Dialog #1 - Show simple alert dialog and cache
- * // reference to dialog instance
- *
- * function showAlert() {
- * alert = $mdDialog.alert()
- * .title('Attention, ' + $scope.userName)
- * .content('This is an example of how easy dialogs can be!')
- * .ok('Close');
- *
- * $mdDialog
- * .show( alert )
- * .finally(function() {
- * alert = undefined;
- * });
- * }
- *
- * // Close the specified dialog instance and resolve with 'finished' flag
- * // Normally this is not needed, just use '$mdDialog.hide()' to close
- * // the most recent dialog popup.
- *
- * function closeAlert() {
- * $mdDialog.hide( alert, "finished" );
- * alert = undefined;
- * }
- *
- * // Dialog #2 - Demonstrate more complex dialogs construction and popup.
- *
- * function showCustomGreeting($event) {
- * $mdDialog.show({
- * targetEvent: $event,
- * template:
- * '<md-dialog>' +
- *
- * ' <md-dialog-content>Hello {{ employee }}!</md-dialog-content>' +
- *
- * ' <div class="md-actions">' +
- * ' <md-button ng-click="closeDialog()" class="md-primary">' +
- * ' Close Greeting' +
- * ' </md-button>' +
- * ' </div>' +
- * '</md-dialog>',
- * controller: 'GreetingController',
- * onComplete: afterShowAnimation,
- * locals: { employee: $scope.userName }
- * });
- *
- * // When the 'enter' animation finishes...
- *
- * function afterShowAnimation(scope, element, options) {
- * // post-show code here: DOM element focus, etc.
- * }
- * }
- *
- * // Dialog #3 - Demonstrate use of ControllerAs and passing $scope to dialog
- * // Here we used ng-controller="GreetingController as vm" and
- * // $scope.vm === <controller instance>
- *
- * function showCustomGreeting() {
- *
- * $mdDialog.show({
- * clickOutsideToClose: true,
- *
- * scope: $scope, // use parent scope in template
- * preserveScope: true, // do not forget this if use parent scope
-
- * // Since GreetingController is instantiated with ControllerAs syntax
- * // AND we are passing the parent '$scope' to the dialog, we MUST
- * // use 'vm.<xxx>' in the template markup
- *
- * template: '<md-dialog>' +
- * ' <md-dialog-content>' +
- * ' Hi There {{vm.employee}}' +
- * ' </md-dialog-content>' +
- * '</md-dialog>',
- *
- * controller: function DialogController($scope, $mdDialog) {
- * $scope.closeDialog = function() {
- * $mdDialog.hide();
- * }
- * }
- * });
- * }
- *
- * }
- *
- * // Greeting controller used with the more complex 'showCustomGreeting()' custom dialog
- *
- * function GreetingController($scope, $mdDialog, employee) {
- * // Assigned from construction <code>locals</code> options...
- * $scope.employee = employee;
- *
- * $scope.closeDialog = function() {
- * // Easily hides most recent dialog shown...
- * // no specific instance reference is needed.
- * $mdDialog.hide();
- * };
- * }
- *
- * })(angular);
- * </hljs>
- */
-
- /**
- * @ngdoc method
- * @name $mdDialog#alert
- *
- * @description
- * Builds a preconfigured dialog with the specified message.
- *
- * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
- *
- * - $mdDialogPreset#title(string) - sets title to string
- * - $mdDialogPreset#content(string) - sets content / message to string
- * - $mdDialogPreset#ok(string) - sets okay button text to string
- * - $mdDialogPreset#theme(string) - sets the theme of the dialog
- *
- */
-
- /**
- * @ngdoc method
- * @name $mdDialog#confirm
- *
- * @description
- * Builds a preconfigured dialog with the specified message. You can call show and the promise returned
- * will be resolved only if the user clicks the confirm action on the dialog.
- *
- * @returns {obj} an `$mdDialogPreset` with the chainable configuration methods:
- *
- * Additionally, it supports the following methods:
- *
- * - $mdDialogPreset#title(string) - sets title to string
- * - $mdDialogPreset#content(string) - sets content / message to string
- * - $mdDialogPreset#ok(string) - sets okay button text to string
- * - $mdDialogPreset#cancel(string) - sets cancel button text to string
- * - $mdDialogPreset#theme(string) - sets the theme of the dialog
- *
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#show
- *
- * @description
- * Show a dialog with the specified options.
- *
- * @param {object} optionsOrPreset Either provide an `$mdDialogPreset` returned from `alert()`, and
- * `confirm()`, or an options object with the following properties:
- * - `templateUrl` - `{string=}`: The url of a template that will be used as the content
- * of the dialog.
- * - `template` - `{string=}`: Same as templateUrl, except this is an actual template string.
- * - `targetEvent` - `{DOMClickEvent=}`: A click's event object. When passed in as an option,
- * the location of the click will be used as the starting point for the opening animation
- * of the the dialog.
- * - `scope` - `{object=}`: the scope to link the template / controller to. If none is specified,
- * it will create a new isolate scope.
- * This scope will be destroyed when the dialog is removed unless `preserveScope` is set to true.
- * - `preserveScope` - `{boolean=}`: whether to preserve the scope when the element is removed. Default is false
- * - `disableParentScroll` - `{boolean=}`: Whether to disable scrolling while the dialog is open.
- * Default true.
- * - `hasBackdrop` - `{boolean=}`: Whether there should be an opaque backdrop behind the dialog.
- * Default true.
- * - `clickOutsideToClose` - `{boolean=}`: Whether the user can click outside the dialog to
- * close it. Default false.
- * - `escapeToClose` - `{boolean=}`: Whether the user can press escape to close the dialog.
- * Default true.
- * - `focusOnOpen` - `{boolean=}`: An option to override focus behavior on open. Only disable if
- * focusing some other way, as focus management is required for dialogs to be accessible.
- * Defaults to true.
- * - `controller` - `{string=}`: The controller to associate with the dialog. The controller
- * will be injected with the local `$mdDialog`, which passes along a scope for the dialog.
- * - `locals` - `{object=}`: An object containing key/value pairs. The keys will be used as names
- * of values to inject into the controller. For example, `locals: {three: 3}` would inject
- * `three` into the controller, with the value 3. If `bindToController` is true, they will be
- * copied to the controller instead.
- * - `bindToController` - `bool`: bind the locals to the controller, instead of passing them in.
- * These values will not be available until after initialization.
- * - `resolve` - `{object=}`: Similar to locals, except it takes promises as values, and the
- * dialog will not open until all of the promises resolve.
- * - `controllerAs` - `{string=}`: An alias to assign the controller to on the scope.
- * - `parent` - `{element=}`: The element to append the dialog to. Defaults to appending
- * to the root element of the application.
- * - `onComplete` `{function=}`: Callback function used to announce when the show() action is
- * finished.
- *
- * @returns {promise} A promise that can be resolved with `$mdDialog.hide()` or
- * rejected with `$mdDialog.cancel()`.
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#hide
- *
- * @description
- * Hide an existing dialog and resolve the promise returned from `$mdDialog.show()`.
- *
- * @param {*=} response An argument for the resolved promise.
- *
- * @returns {promise} A promise that is resolved when the dialog has been closed.
- */
-
-/**
- * @ngdoc method
- * @name $mdDialog#cancel
- *
- * @description
- * Hide an existing dialog and reject the promise returned from `$mdDialog.show()`.
- *
- * @param {*=} response An argument for the rejected promise.
- *
- * @returns {promise} A promise that is resolved when the dialog has been closed.
- */
-
-function MdDialogProvider($$interimElementProvider) {
-
- var alertDialogMethods = ['title', 'content', 'ariaLabel', 'ok'];
-
- advancedDialogOptions.$inject = ["$mdDialog", "$mdTheming"];
- dialogDefaultOptions.$inject = ["$mdAria", "$document", "$mdUtil", "$mdConstant", "$mdTheming", "$mdDialog", "$timeout", "$rootElement", "$animate", "$$rAF", "$q"];
- return $$interimElementProvider('$mdDialog')
- .setDefaults({
- methods: ['disableParentScroll', 'hasBackdrop', 'clickOutsideToClose', 'escapeToClose', 'targetEvent', 'parent'],
- options: dialogDefaultOptions
- })
- .addPreset('alert', {
- methods: ['title', 'content', 'ariaLabel', 'ok', 'theme'],
- options: advancedDialogOptions
- })
- .addPreset('confirm', {
- methods: ['title', 'content', 'ariaLabel', 'ok', 'cancel', 'theme'],
- options: advancedDialogOptions
- });
-
- /* ngInject */
- function advancedDialogOptions($mdDialog, $mdTheming) {
- return {
- template: [
- '<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}">',
- '<md-dialog-content role="document" tabIndex="-1">',
- '<h2 class="md-title">{{ dialog.title }}</h2>',
- '<p>{{ dialog.content }}</p>',
- '</md-dialog-content>',
- '<div class="md-actions">',
- '<md-button ng-if="dialog.$type == \'confirm\'"' +
- ' ng-click="dialog.abort()" class="md-primary">',
- '{{ dialog.cancel }}',
- '</md-button>',
- '<md-button ng-click="dialog.hide()" class="md-primary">',
- '{{ dialog.ok }}',
- '</md-button>',
- '</div>',
- '</md-dialog>'
- ].join(''),
- controller: function mdDialogCtrl() {
- this.hide = function() {
- $mdDialog.hide(true);
- };
- this.abort = function() {
- $mdDialog.cancel();
- };
- },
- controllerAs: 'dialog',
- bindToController: true,
- theme: $mdTheming.defaultTheme()
- };
- }
-
- /* ngInject */
- function dialogDefaultOptions($mdAria, $document, $mdUtil, $mdConstant, $mdTheming, $mdDialog, $timeout, $rootElement, $animate, $$rAF, $q) {
- return {
- hasBackdrop: true,
- isolateScope: true,
- onShow: onShow,
- onRemove: onRemove,
- clickOutsideToClose: false,
- escapeToClose: true,
- targetEvent: null,
- focusOnOpen: true,
- disableParentScroll: true,
- transformTemplate: function(template) {
- return '<div class="md-dialog-container">' + template + '</div>';
- }
- };
-
- function trapFocus(ev) {
- var dialog = document.querySelector('md-dialog');
-
- if (dialog && !dialog.contains(ev.target)) {
- ev.stopImmediatePropagation();
- dialog.focus();
- }
- }
-
- // On show method for dialogs
- function onShow(scope, element, options) {
- angular.element($document[0].body).addClass('md-dialog-is-showing');
- element = $mdUtil.extractElementByName(element, 'md-dialog');
-
- // Incase the user provides a raw dom element, always wrap it in jqLite
- options.parent = angular.element(options.parent);
-
- options.popInTarget = angular.element((options.targetEvent || {}).target);
- var closeButton = findCloseButton();
-
- if (options.hasBackdrop) {
- // Fix for IE 10
- var computeFrom = (options.parent[0] == $document[0].body && $document[0].documentElement
- && $document[0].documentElement.scrollTop) ? angular.element($document[0].documentElement) : options.parent;
- var parentOffset = computeFrom.prop('scrollTop');
- options.backdrop = angular.element('<md-backdrop class="md-dialog-backdrop md-opaque">');
- options.backdrop.css('top', parentOffset +'px');
- $mdTheming.inherit(options.backdrop, options.parent);
- $animate.enter(options.backdrop, options.parent);
- element.css('top', parentOffset +'px');
- }
-
- var role = 'dialog',
- elementToFocus = closeButton;
-
- if (options.$type === 'alert') {
- role = 'alertdialog';
- elementToFocus = element.find('md-dialog-content');
- }
-
- configureAria(element.find('md-dialog'), role, options);
-
- document.addEventListener('focus', trapFocus, true);
-
- if (options.disableParentScroll) {
- options.lastOverflow = options.parent.css('overflow');
- options.parent.css('overflow', 'hidden');
- }
-
- return dialogPopIn(
- element,
- options.parent,
- options.popInTarget && options.popInTarget.length && options.popInTarget
- )
- .then(function() {
-
- applyAriaToSiblings(element, true);
-
- if (options.escapeToClose) {
- options.rootElementKeyupCallback = function(e) {
- if (e.keyCode === $mdConstant.KEY_CODE.ESCAPE) {
- $timeout($mdDialog.cancel);
- }
- };
- $rootElement.on('keyup', options.rootElementKeyupCallback);
- }
-
- if (options.clickOutsideToClose) {
- options.dialogClickOutsideCallback = function(ev) {
- // Only close if we click the flex container outside the backdrop
- if (ev.target === element[0]) {
- $timeout($mdDialog.cancel);
- }
- };
- element.on('click', options.dialogClickOutsideCallback);
- }
-
- if (options.focusOnOpen) {
- elementToFocus.focus();
- }
- });
-
-
- function findCloseButton() {
- //If no element with class dialog-close, try to find the last
- //button child in md-actions and assume it is a close button
- var closeButton = element[0].querySelector('.dialog-close');
- if (!closeButton) {
- var actionButtons = element[0].querySelectorAll('.md-actions button');
- closeButton = actionButtons[ actionButtons.length - 1 ];
- }
- return angular.element(closeButton);
- }
-
- }
-
- // On remove function for all dialogs
- function onRemove(scope, element, options) {
- angular.element($document[0].body).removeClass('md-dialog-is-showing');
-
- if (options.backdrop) {
- $animate.leave(options.backdrop);
- }
- if (options.disableParentScroll) {
- options.parent.css('overflow', options.lastOverflow);
- delete options.lastOverflow;
- }
- if (options.escapeToClose) {
- $rootElement.off('keyup', options.rootElementKeyupCallback);
- }
- if (options.clickOutsideToClose) {
- element.off('click', options.dialogClickOutsideCallback);
- }
-
- applyAriaToSiblings(element, false);
-
- document.removeEventListener('focus', trapFocus, true);
-
- return dialogPopOut(
- element,
- options.parent,
- options.popInTarget && options.popInTarget.length && options.popInTarget
- ).then(function() {
- element.remove();
- options.popInTarget && options.popInTarget.focus();
- });
-
- }
-
- /**
- * Inject ARIA-specific attributes appropriate for Dialogs
- */
- function configureAria(element, role, options) {
-
- element.attr({
- 'role': role,
- 'tabIndex': '-1'
- });
-
- var dialogContent = element.find('md-dialog-content');
- if (dialogContent.length === 0){
- dialogContent = element;
- }
-
- var dialogId = element.attr('id') || ('dialog_' + $mdUtil.nextUid());
- dialogContent.attr('id', dialogId);
- element.attr('aria-describedby', dialogId);
-
- if (options.ariaLabel) {
- $mdAria.expect(element, 'aria-label', options.ariaLabel);
- }
- else {
- $mdAria.expectAsync(element, 'aria-label', function() {
- var words = dialogContent.text().split(/\s+/);
- if (words.length > 3) words = words.slice(0,3).concat('...');
- return words.join(' ');
- });
- }
- }
- /**
- * Utility function to filter out raw DOM nodes
- */
- function isNodeOneOf(elem, nodeTypeArray) {
- if (nodeTypeArray.indexOf(elem.nodeName) !== -1) {
- return true;
- }
- }
- /**
- * Walk DOM to apply or remove aria-hidden on sibling nodes
- * and parent sibling nodes
- *
- * Prevents screen reader interaction behind modal window
- * on swipe interfaces
- */
- function applyAriaToSiblings(element, value) {
- var attribute = 'aria-hidden';
-
- // get raw DOM node
- element = element[0];
-
- function walkDOM(element) {
- while (element.parentNode) {
- if (element === document.body) {
- return;
- }
- var children = element.parentNode.children;
- for (var i = 0; i < children.length; i++) {
- // skip over child if it is an ascendant of the dialog
- // or a script or style tag
- if (element !== children[i] && !isNodeOneOf(children[i], ['SCRIPT', 'STYLE'])) {
- children[i].setAttribute(attribute, value);
- }
- }
-
- walkDOM(element = element.parentNode);
- }
- }
- walkDOM(element);
- }
-
- function dialogPopIn(container, parentElement, clickElement) {
- var dialogEl = container.find('md-dialog');
-
- parentElement.append(container);
- transformToClickElement(dialogEl, clickElement);
-
- $$rAF(function() {
- dialogEl.addClass('transition-in')
- .css($mdConstant.CSS.TRANSFORM, '');
- });
-
- return $mdUtil.transitionEndPromise(dialogEl);
- }
-
- function dialogPopOut(container, parentElement, clickElement) {
- var dialogEl = container.find('md-dialog');
-
- dialogEl.addClass('transition-out').removeClass('transition-in');
- transformToClickElement(dialogEl, clickElement);
-
- return $mdUtil.transitionEndPromise(dialogEl);
- }
-
- function transformToClickElement(dialogEl, clickElement) {
- if (clickElement) {
- var clickRect = clickElement[0].getBoundingClientRect();
- var dialogRect = dialogEl[0].getBoundingClientRect();
-
- var scaleX = Math.min(0.5, clickRect.width / dialogRect.width);
- var scaleY = Math.min(0.5, clickRect.height / dialogRect.height);
-
- dialogEl.css($mdConstant.CSS.TRANSFORM, 'translate3d(' +
- (-dialogRect.left + clickRect.left + clickRect.width/2 - dialogRect.width/2) + 'px,' +
- (-dialogRect.top + clickRect.top + clickRect.height/2 - dialogRect.height/2) + 'px,' +
- '0) scale(' + scaleX + ',' + scaleY + ')'
- );
- }
- }
-
- function dialogTransitionEnd(dialogEl) {
- var deferred = $q.defer();
- dialogEl.on($mdConstant.CSS.TRANSITIONEND, finished);
- function finished(ev) {
- //Make sure this transitionend didn't bubble up from a child
- if (ev.target === dialogEl[0]) {
- dialogEl.off($mdConstant.CSS.TRANSITIONEND, finished);
- deferred.resolve();
- }
- }
- return deferred.promise;
- }
-
- }
-}
-MdDialogProvider.$inject = ["$$interimElementProvider"];
-
-})(window, window.angular); \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.css b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.css
deleted file mode 100644
index 9d29c13a..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */.md-dialog-is-showing{max-height:100%}.md-dialog-container{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:80}md-dialog{opacity:0;min-width:240px;max-width:80%;max-height:80%;position:relative;overflow:hidden;box-shadow:0 8px 10px -5px rgba(0,0,0,.14),0 16px 24px 2px rgba(0,0,0,.098),0 6px 30px 5px rgba(0,0,0,.084);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}md-dialog.transition-in{opacity:1;transition:all .4s cubic-bezier(.25,.8,.25,1);-webkit-transform:translate3d(0,0,0) scale(1);transform:translate3d(0,0,0) scale(1)}md-dialog.transition-out{transition:all .4s cubic-bezier(.25,.8,.25,1);-webkit-transform:translate3d(0,100%,0) scale(.2);transform:translate3d(0,100%,0) scale(.2)}md-dialog>form{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:auto}md-dialog md-dialog-content{-webkit-order:1;-ms-flex-order:1;order:1;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:24px;overflow:auto;-webkit-overflow-scrolling:touch}md-dialog md-dialog-content:not([layout=row])>:first-child:not(.md-subheader){margin-top:0}md-dialog md-dialog-content:focus{outline:0}md-dialog md-dialog-content .md-subheader{margin:0}md-dialog md-dialog-content .md-subheader.sticky-clone{box-shadow:0 2px 4px 0 rgba(0,0,0,.16)}md-dialog md-dialog-content.sticky-container{padding:0}md-dialog md-dialog-content.sticky-container>div{padding:0 24px 24px}md-dialog .md-actions{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-order:2;-ms-flex-order:2;order:2;box-sizing:border-box;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:0;padding-right:8px;padding-left:16px;min-height:52px}md-dialog .md-actions .md-button{margin:8px 0 8px 8px}md-dialog.md-content-overflow .md-actions{border-top-width:1px;border-top-style:solid}@media screen and (-ms-high-contrast:active){md-dialog{border:1px solid #fff}} \ No newline at end of file
diff --git a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.js b/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.js
deleted file mode 100644
index 597f83fb..00000000
--- a/ecomp-portal-FE/client/bower_components/angular-material/modules/js/dialog/dialog.min.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
- * Angular Material Design
- * https://github.com/angular/material
- * @license MIT
- * v0.9.8
- */
-!function(e,t,n){"use strict";function o(e,t){return{restrict:"E",link:function(n,o,a){t(o),e(function(){var e=o[0].querySelector("md-dialog-content");e&&e.scrollHeight>e.clientHeight&&o.addClass("md-content-overflow")})}}}function a(e){function n(e,t){return{template:['<md-dialog md-theme="{{ dialog.theme }}" aria-label="{{ dialog.ariaLabel }}">','<md-dialog-content role="document" tabIndex="-1">','<h2 class="md-title">{{ dialog.title }}</h2>',"<p>{{ dialog.content }}</p>","</md-dialog-content>",'<div class="md-actions">','<md-button ng-if="dialog.$type == \'confirm\'" ng-click="dialog.abort()" class="md-primary">',"{{ dialog.cancel }}","</md-button>",'<md-button ng-click="dialog.hide()" class="md-primary">',"{{ dialog.ok }}","</md-button>","</div>","</md-dialog>"].join(""),controller:function(){this.hide=function(){e.hide(!0)},this.abort=function(){e.cancel()}},controllerAs:"dialog",bindToController:!0,theme:t.defaultTheme()}}function o(e,n,o,a,i,l,r,d,c,s,m){function p(e){var t=document.querySelector("md-dialog");t&&!t.contains(e.target)&&(e.stopImmediatePropagation(),t.focus())}function u(e,s,m){function u(){var e=s[0].querySelector(".dialog-close");if(!e){var n=s[0].querySelectorAll(".md-actions button");e=n[n.length-1]}return t.element(e)}t.element(n[0].body).addClass("md-dialog-is-showing"),s=o.extractElementByName(s,"md-dialog"),m.parent=t.element(m.parent),m.popInTarget=t.element((m.targetEvent||{}).target);var g=u();if(m.hasBackdrop){var h=m.parent[0]==n[0].body&&n[0].documentElement&&n[0].documentElement.scrollTop?t.element(n[0].documentElement):m.parent,k=h.prop("scrollTop");m.backdrop=t.element('<md-backdrop class="md-dialog-backdrop md-opaque">'),m.backdrop.css("top",k+"px"),i.inherit(m.backdrop,m.parent),c.enter(m.backdrop,m.parent),s.css("top",k+"px")}var C="dialog",T=g;return"alert"===m.$type&&(C="alertdialog",T=s.find("md-dialog-content")),f(s.find("md-dialog"),C,m),document.addEventListener("focus",p,!0),m.disableParentScroll&&(m.lastOverflow=m.parent.css("overflow"),m.parent.css("overflow","hidden")),v(s,m.parent,m.popInTarget&&m.popInTarget.length&&m.popInTarget).then(function(){b(s,!0),m.escapeToClose&&(m.rootElementKeyupCallback=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&r(l.cancel)},d.on("keyup",m.rootElementKeyupCallback)),m.clickOutsideToClose&&(m.dialogClickOutsideCallback=function(e){e.target===s[0]&&r(l.cancel)},s.on("click",m.dialogClickOutsideCallback)),m.focusOnOpen&&T.focus()})}function g(e,o,a){return t.element(n[0].body).removeClass("md-dialog-is-showing"),a.backdrop&&c.leave(a.backdrop),a.disableParentScroll&&(a.parent.css("overflow",a.lastOverflow),delete a.lastOverflow),a.escapeToClose&&d.off("keyup",a.rootElementKeyupCallback),a.clickOutsideToClose&&o.off("click",a.dialogClickOutsideCallback),b(o,!1),document.removeEventListener("focus",p,!0),k(o,a.parent,a.popInTarget&&a.popInTarget.length&&a.popInTarget).then(function(){o.remove(),a.popInTarget&&a.popInTarget.focus()})}function f(t,n,a){t.attr({role:n,tabIndex:"-1"});var i=t.find("md-dialog-content");0===i.length&&(i=t);var l=t.attr("id")||"dialog_"+o.nextUid();i.attr("id",l),t.attr("aria-describedby",l),a.ariaLabel?e.expect(t,"aria-label",a.ariaLabel):e.expectAsync(t,"aria-label",function(){var e=i.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")})}function h(e,t){return-1!==t.indexOf(e.nodeName)?!0:void 0}function b(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var a=e.parentNode.children,i=0;i<a.length;i++)e===a[i]||h(a[i],["SCRIPT","STYLE"])||a[i].setAttribute(o,t);n(e=e.parentNode)}}var o="aria-hidden";e=e[0],n(e)}function v(e,t,n){var i=e.find("md-dialog");return t.append(e),C(i,n),s(function(){i.addClass("transition-in").css(a.CSS.TRANSFORM,"")}),o.transitionEndPromise(i)}function k(e,t,n){var a=e.find("md-dialog");return a.addClass("transition-out").removeClass("transition-in"),C(a,n),o.transitionEndPromise(a)}function C(e,t){if(t){var n=t[0].getBoundingClientRect(),o=e[0].getBoundingClientRect(),i=Math.min(.5,n.width/o.width),l=Math.min(.5,n.height/o.height);e.css(a.CSS.TRANSFORM,"translate3d("+(-o.left+n.left+n.width/2-o.width/2)+"px,"+(-o.top+n.top+n.height/2-o.height/2)+"px,0) scale("+i+","+l+")")}}return{hasBackdrop:!0,isolateScope:!0,onShow:u,onRemove:g,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,focusOnOpen:!0,disableParentScroll:!0,transformTemplate:function(e){return'<div class="md-dialog-container">'+e+"</div>"}}}return n.$inject=["$mdDialog","$mdTheming"],o.$inject=["$mdAria","$document","$mdUtil","$mdConstant","$mdTheming","$mdDialog","$timeout","$rootElement","$animate","$$rAF","$q"],e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","parent"],options:o}).addPreset("alert",{methods:["title","content","ariaLabel","ok","theme"],options:n}).addPreset("confirm",{methods:["title","content","ariaLabel","ok","cancel","theme"],options:n})}t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",o).provider("$mdDialog",a),o.$inject=["$$rAF","$mdTheming"],a.$inject=["$$interimElementProvider"]}(window,window.angular); \ No newline at end of file