aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/common/thirdparty/angular-material/modules/closure/tabs')
-rw-r--r--vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-arrow.svg7
-rw-r--r--vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-default-theme.css87
-rw-r--r--vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-default-theme.min.css6
-rw-r--r--vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.css313
-rw-r--r--vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.js1399
-rw-r--r--vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.min.css6
-rw-r--r--vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.min.js7
7 files changed, 1825 insertions, 0 deletions
diff --git a/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-arrow.svg b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-arrow.svg
new file mode 100644
index 00000000..81582f8e
--- /dev/null
+++ b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-arrow.svg
@@ -0,0 +1,7 @@
+/*!
+ * Angular Material Design
+ * https://github.com/angular/material
+ * @license MIT
+ * v0.7.1-master-b48be15
+ */
+<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve"> <g id="Header"> <g> <rect x="-618" y="-1208" fill="none" width="1400" height="3600"/> </g> </g> <g id="Label"> </g> <g id="Icon"> <g> <polygon points="15.4,7.4 14,6 8,12 14,18 15.4,16.6 10.8,12 " style="fill:white;"/> <rect fill="none" width="24" height="24"/> </g> </g> <g id="Grid" display="none"> <g display="inline"> </g> </g> </svg>
diff --git a/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-default-theme.css b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-default-theme.css
new file mode 100644
index 00000000..cf1f26da
--- /dev/null
+++ b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-default-theme.css
@@ -0,0 +1,87 @@
+/*!
+ * Angular Material Design
+ * https://github.com/angular/material
+ * @license MIT
+ * v1.1.3
+ */
+md-tabs.md-THEME_NAME-theme md-tabs-wrapper {
+ background-color: transparent;
+ border-color: '{{foreground-4}}'; }
+
+md-tabs.md-THEME_NAME-theme .md-paginator md-icon {
+ color: '{{primary-color}}'; }
+
+md-tabs.md-THEME_NAME-theme md-ink-bar {
+ color: '{{accent-color}}';
+ background: '{{accent-color}}'; }
+
+md-tabs.md-THEME_NAME-theme .md-tab {
+ color: '{{foreground-2}}'; }
+ md-tabs.md-THEME_NAME-theme .md-tab[disabled], md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon {
+ color: '{{foreground-3}}'; }
+ md-tabs.md-THEME_NAME-theme .md-tab.md-active, md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon, md-tabs.md-THEME_NAME-theme .md-tab.md-focused, md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon {
+ color: '{{primary-color}}'; }
+ md-tabs.md-THEME_NAME-theme .md-tab.md-focused {
+ background: '{{primary-color-0.1}}'; }
+ md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container {
+ color: '{{accent-A100}}'; }
+
+md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper {
+ background-color: '{{accent-color}}'; }
+ md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]), md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) md-icon {
+ color: '{{accent-A100}}'; }
+ md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {
+ color: '{{accent-contrast}}'; }
+ md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {
+ background: '{{accent-contrast-0.1}}'; }
+ md-tabs.md-THEME_NAME-theme.md-accent > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-ink-bar {
+ color: '{{primary-600-1}}';
+ background: '{{primary-600-1}}'; }
+
+md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper {
+ background-color: '{{primary-color}}'; }
+ md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]), md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) md-icon {
+ color: '{{primary-100}}'; }
+ md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {
+ color: '{{primary-contrast}}'; }
+ md-tabs.md-THEME_NAME-theme.md-primary > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {
+ background: '{{primary-contrast-0.1}}'; }
+
+md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper {
+ background-color: '{{warn-color}}'; }
+ md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]), md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) md-icon {
+ color: '{{warn-100}}'; }
+ md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {
+ color: '{{warn-contrast}}'; }
+ md-tabs.md-THEME_NAME-theme.md-warn > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {
+ background: '{{warn-contrast-0.1}}'; }
+
+md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper {
+ background-color: '{{primary-color}}'; }
+ md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]), md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) md-icon {
+ color: '{{primary-100}}'; }
+ md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {
+ color: '{{primary-contrast}}'; }
+ md-toolbar > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {
+ background: '{{primary-contrast-0.1}}'; }
+
+md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper {
+ background-color: '{{accent-color}}'; }
+ md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]), md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) md-icon {
+ color: '{{accent-A100}}'; }
+ md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {
+ color: '{{accent-contrast}}'; }
+ md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {
+ background: '{{accent-contrast-0.1}}'; }
+ md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-ink-bar {
+ color: '{{primary-600-1}}';
+ background: '{{primary-600-1}}'; }
+
+md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper {
+ background-color: '{{warn-color}}'; }
+ md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]), md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]) md-icon {
+ color: '{{warn-100}}'; }
+ md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-active md-icon, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused, md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused md-icon {
+ color: '{{warn-contrast}}'; }
+ md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme > md-tabs-wrapper > md-tabs-canvas > md-pagination-wrapper > md-tab-item:not([disabled]).md-focused {
+ background: '{{warn-contrast-0.1}}'; }
diff --git a/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-default-theme.min.css b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-default-theme.min.css
new file mode 100644
index 00000000..072f0d52
--- /dev/null
+++ b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs-default-theme.min.css
@@ -0,0 +1,6 @@
+/*!
+ * Angular Material Design
+ * https://github.com/angular/material
+ * @license MIT
+ * v1.1.2-master-a9ba340
+ */md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"} \ No newline at end of file
diff --git a/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.css b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.css
new file mode 100644
index 00000000..06fc2ea0
--- /dev/null
+++ b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.css
@@ -0,0 +1,313 @@
+/*!
+ * Angular Material Design
+ * https://github.com/angular/material
+ * @license MIT
+ * v1.1.3
+ */
+@-webkit-keyframes md-tab-content-hide {
+ 0% {
+ opacity: 1; }
+ 50% {
+ opacity: 1; }
+ 100% {
+ opacity: 0; } }
+
+@keyframes md-tab-content-hide {
+ 0% {
+ opacity: 1; }
+ 50% {
+ opacity: 1; }
+ 100% {
+ opacity: 0; } }
+
+md-tab-data {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: -1;
+ opacity: 0; }
+
+md-tabs {
+ display: block;
+ margin: 0;
+ border-radius: 2px;
+ overflow: hidden;
+ position: relative;
+ -webkit-flex-shrink: 0;
+ flex-shrink: 0; }
+ md-tabs:not(.md-no-tab-content):not(.md-dynamic-height) {
+ min-height: 248px; }
+ md-tabs[md-align-tabs="bottom"] {
+ padding-bottom: 48px; }
+ md-tabs[md-align-tabs="bottom"] md-tabs-wrapper {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ height: 48px;
+ z-index: 2; }
+ md-tabs[md-align-tabs="bottom"] md-tabs-content-wrapper {
+ top: 0;
+ bottom: 48px; }
+ md-tabs.md-dynamic-height md-tabs-content-wrapper {
+ min-height: 0;
+ position: relative;
+ top: auto;
+ left: auto;
+ right: auto;
+ bottom: auto;
+ overflow: visible; }
+ md-tabs.md-dynamic-height md-tab-content.md-active {
+ position: relative; }
+ md-tabs[md-border-bottom] md-tabs-wrapper {
+ border-width: 0 0 1px;
+ border-style: solid; }
+ md-tabs[md-border-bottom]:not(.md-dynamic-height) md-tabs-content-wrapper {
+ top: 49px; }
+
+md-tabs-wrapper {
+ display: block;
+ position: relative;
+ -webkit-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0); }
+ md-tabs-wrapper md-prev-button, md-tabs-wrapper md-next-button {
+ height: 100%;
+ width: 32px;
+ position: absolute;
+ top: 50%;
+ -webkit-transform: translateY(-50%);
+ transform: translateY(-50%);
+ line-height: 1em;
+ z-index: 2;
+ cursor: pointer;
+ font-size: 16px;
+ background: transparent no-repeat center center;
+ -webkit-transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: all 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
+ md-tabs-wrapper md-prev-button:focus, md-tabs-wrapper md-next-button:focus {
+ outline: none; }
+ md-tabs-wrapper md-prev-button.md-disabled, md-tabs-wrapper md-next-button.md-disabled {
+ opacity: 0.25;
+ cursor: default; }
+ md-tabs-wrapper md-prev-button.ng-leave, md-tabs-wrapper md-next-button.ng-leave {
+ -webkit-transition: none;
+ transition: none; }
+ md-tabs-wrapper md-prev-button md-icon, md-tabs-wrapper md-next-button md-icon {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ -webkit-transform: translate3d(-50%, -50%, 0);
+ transform: translate3d(-50%, -50%, 0); }
+ md-tabs-wrapper md-prev-button {
+ left: 0;
+ background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMjA4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyIAkJIiBzdHlsZT0iZmlsbDp3aGl0ZTsiLz4gPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+IDwvZz4gPC9nPiA8ZyBpZD0iR3JpZCIgZGlzcGxheT0ibm9uZSI+IDxnIGRpc3BsYXk9ImlubGluZSI+IDwvZz4gPC9nPiA8L3N2Zz4NCg=="); }
+ [dir=rtl] md-tabs-wrapper md-prev-button {
+ left: auto;
+ right: 0; }
+ md-tabs-wrapper md-next-button {
+ right: 0;
+ background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMzM2IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTAsNiA4LjYsNy40IDEzLjIsMTIgOC42LDE2LjYgMTAsMTggMTYsMTIgCQkiIHN0eWxlPSJmaWxsOndoaXRlOyIvPiA8cmVjdCBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz4gPC9nPiA8L2c+IDxnIGlkPSJHcmlkIiBkaXNwbGF5PSJub25lIj4gPGcgZGlzcGxheT0iaW5saW5lIj4gPC9nPiA8L2c+IDwvc3ZnPg0K"); }
+ [dir=rtl] md-tabs-wrapper md-next-button {
+ right: auto;
+ left: 0; }
+ md-tabs-wrapper md-next-button md-icon {
+ -webkit-transform: translate3d(-50%, -50%, 0) rotate(180deg);
+ transform: translate3d(-50%, -50%, 0) rotate(180deg); }
+ md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper {
+ width: 100%;
+ -webkit-box-orient: horizontal;
+ -webkit-box-direction: normal;
+ -webkit-flex-direction: row;
+ flex-direction: row; }
+ md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper md-tab-item {
+ -webkit-box-flex: 1;
+ -webkit-flex-grow: 1;
+ flex-grow: 1; }
+
+md-tabs-canvas {
+ position: relative;
+ overflow: hidden;
+ display: block;
+ height: 48px; }
+ md-tabs-canvas:after {
+ content: '';
+ display: table;
+ clear: both; }
+ md-tabs-canvas .md-dummy-wrapper {
+ position: absolute;
+ top: 0;
+ left: 0; }
+ [dir=rtl] md-tabs-canvas .md-dummy-wrapper {
+ left: auto;
+ right: 0; }
+ md-tabs-canvas.md-paginated {
+ margin: 0 32px; }
+ md-tabs-canvas.md-center-tabs {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: flex;
+ -webkit-box-orient: vertical;
+ -webkit-box-direction: normal;
+ -webkit-flex-direction: column;
+ flex-direction: column;
+ text-align: center; }
+ md-tabs-canvas.md-center-tabs .md-tab {
+ float: none;
+ display: inline-block; }
+
+md-pagination-wrapper {
+ height: 48px;
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: flex;
+ -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1), -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
+ position: absolute;
+ left: 0;
+ -webkit-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0); }
+ md-pagination-wrapper:after {
+ content: '';
+ display: table;
+ clear: both; }
+ [dir=rtl] md-pagination-wrapper {
+ left: auto;
+ right: 0; }
+ md-pagination-wrapper.md-center-tabs {
+ position: relative;
+ -webkit-box-pack: center;
+ -webkit-justify-content: center;
+ justify-content: center; }
+
+md-tabs-content-wrapper {
+ display: block;
+ position: absolute;
+ top: 48px;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ overflow: hidden; }
+
+md-tab-content {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: flex;
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: transform 0.5s cubic-bezier(0.35, 0, 0.25, 1), -webkit-transform 0.5s cubic-bezier(0.35, 0, 0.25, 1);
+ overflow: auto;
+ -webkit-transform: translate3d(0, 0, 0);
+ transform: translate3d(0, 0, 0); }
+ md-tab-content.md-no-scroll {
+ bottom: auto;
+ overflow: hidden; }
+ md-tab-content.ng-leave, md-tab-content.md-no-transition {
+ -webkit-transition: none;
+ transition: none; }
+ md-tab-content.md-left:not(.md-active) {
+ -webkit-transform: translateX(-100%);
+ transform: translateX(-100%);
+ -webkit-animation: 1s md-tab-content-hide;
+ animation: 1s md-tab-content-hide;
+ opacity: 0; }
+ [dir=rtl] md-tab-content.md-left:not(.md-active) {
+ -webkit-transform: translateX(100%);
+ transform: translateX(100%); }
+ md-tab-content.md-left:not(.md-active) * {
+ -webkit-transition: visibility 0s linear;
+ transition: visibility 0s linear;
+ -webkit-transition-delay: 0.5s;
+ transition-delay: 0.5s;
+ visibility: hidden; }
+ md-tab-content.md-right:not(.md-active) {
+ -webkit-transform: translateX(100%);
+ transform: translateX(100%);
+ -webkit-animation: 1s md-tab-content-hide;
+ animation: 1s md-tab-content-hide;
+ opacity: 0; }
+ [dir=rtl] md-tab-content.md-right:not(.md-active) {
+ -webkit-transform: translateX(-100%);
+ transform: translateX(-100%); }
+ md-tab-content.md-right:not(.md-active) * {
+ -webkit-transition: visibility 0s linear;
+ transition: visibility 0s linear;
+ -webkit-transition-delay: 0.5s;
+ transition-delay: 0.5s;
+ visibility: hidden; }
+ md-tab-content > div {
+ -webkit-box-flex: 1;
+ -webkit-flex: 1 0 100%;
+ flex: 1 0 100%;
+ min-width: 0; }
+ md-tab-content > div.ng-leave {
+ -webkit-animation: 1s md-tab-content-hide;
+ animation: 1s md-tab-content-hide; }
+
+md-ink-bar {
+ position: absolute;
+ left: auto;
+ right: auto;
+ bottom: 0;
+ height: 2px; }
+ md-ink-bar.md-left {
+ -webkit-transition: left 0.125s cubic-bezier(0.35, 0, 0.25, 1), right 0.25s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: left 0.125s cubic-bezier(0.35, 0, 0.25, 1), right 0.25s cubic-bezier(0.35, 0, 0.25, 1); }
+ md-ink-bar.md-right {
+ -webkit-transition: left 0.25s cubic-bezier(0.35, 0, 0.25, 1), right 0.125s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: left 0.25s cubic-bezier(0.35, 0, 0.25, 1), right 0.125s cubic-bezier(0.35, 0, 0.25, 1); }
+
+md-tab {
+ position: absolute;
+ z-index: -1;
+ left: -9999px; }
+
+.md-tab {
+ font-size: 14px;
+ text-align: center;
+ line-height: 24px;
+ padding: 12px 24px;
+ -webkit-transition: background-color 0.35s cubic-bezier(0.35, 0, 0.25, 1);
+ transition: background-color 0.35s cubic-bezier(0.35, 0, 0.25, 1);
+ cursor: pointer;
+ white-space: nowrap;
+ position: relative;
+ text-transform: uppercase;
+ float: left;
+ font-weight: 500;
+ box-sizing: border-box;
+ overflow: hidden;
+ text-overflow: ellipsis; }
+ [dir=rtl] .md-tab {
+ float: right; }
+ .md-tab.md-focused {
+ box-shadow: none;
+ outline: none; }
+ .md-tab.md-active {
+ cursor: default; }
+ .md-tab.md-disabled {
+ pointer-events: none;
+ touch-action: pan-y;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ -webkit-user-drag: none;
+ opacity: 0.5;
+ cursor: default; }
+ .md-tab.ng-leave {
+ -webkit-transition: none;
+ transition: none; }
+
+md-toolbar + md-tabs {
+ border-top-left-radius: 0;
+ border-top-right-radius: 0; }
diff --git a/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.js b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.js
new file mode 100644
index 00000000..2e619415
--- /dev/null
+++ b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.js
@@ -0,0 +1,1399 @@
+/*!
+ * Angular Material Design
+ * https://github.com/angular/material
+ * @license MIT
+ * v1.1.3
+ */
+goog.provide('ngmaterial.components.tabs');
+goog.require('ngmaterial.components.icon');
+goog.require('ngmaterial.core');
+/**
+ * @ngdoc module
+ * @name material.components.tabs
+ * @description
+ *
+ * Tabs, created with the `<md-tabs>` directive provide *tabbed* navigation with different styles.
+ * The Tabs component consists of clickable tabs that are aligned horizontally side-by-side.
+ *
+ * Features include support for:
+ *
+ * - static or dynamic tabs,
+ * - responsive designs,
+ * - accessibility support (ARIA),
+ * - tab pagination,
+ * - external or internal tab content,
+ * - focus indicators and arrow-key navigations,
+ * - programmatic lookup and access to tab controllers, and
+ * - dynamic transitions through different tab contents.
+ *
+ */
+/*
+ * @see js folder for tabs implementation
+ */
+angular.module('material.components.tabs', [
+ 'material.core',
+ 'material.components.icon'
+]);
+
+/**
+ * @ngdoc directive
+ * @name mdTab
+ * @module material.components.tabs
+ *
+ * @restrict E
+ *
+ * @description
+ * Use the `<md-tab>` a nested directive used within `<md-tabs>` to specify a tab with a **label** and optional *view content*.
+ *
+ * If the `label` attribute is not specified, then an optional `<md-tab-label>` tag can be used to specify more
+ * complex tab header markup. If neither the **label** nor the **md-tab-label** are specified, then the nested
+ * markup of the `<md-tab>` is used as the tab header markup.
+ *
+ * Please note that if you use `<md-tab-label>`, your content **MUST** be wrapped in the `<md-tab-body>` tag. This
+ * is to define a clear separation between the tab content and the tab label.
+ *
+ * This container is used by the TabsController to show/hide the active tab's content view. This synchronization is
+ * automatically managed by the internal TabsController whenever the tab selection changes. Selection changes can
+ * be initiated via data binding changes, programmatic invocation, or user gestures.
+ *
+ * @param {string=} label Optional attribute to specify a simple string as the tab label
+ * @param {boolean=} ng-disabled If present and expression evaluates to truthy, disabled tab selection.
+ * @param {expression=} md-on-deselect Expression to be evaluated after the tab has been de-selected.
+ * @param {expression=} md-on-select Expression to be evaluated after the tab has been selected.
+ * @param {boolean=} md-active When true, sets the active tab. Note: There can only be one active tab at a time.
+ *
+ *
+ * @usage
+ *
+ * <hljs lang="html">
+ * <md-tab label="" ng-disabled md-on-select="" md-on-deselect="" >
+ * <h3>My Tab content</h3>
+ * </md-tab>
+ *
+ * <md-tab >
+ * <md-tab-label>
+ * <h3>My Tab content</h3>
+ * </md-tab-label>
+ * <md-tab-body>
+ * <p>
+ * Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium,
+ * totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
+ * dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
+ * sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
+ * </p>
+ * </md-tab-body>
+ * </md-tab>
+ * </hljs>
+ *
+ */
+angular
+ .module('material.components.tabs')
+ .directive('mdTab', MdTab);
+
+function MdTab () {
+ return {
+ require: '^?mdTabs',
+ terminal: true,
+ compile: function (element, attr) {
+ var label = firstChild(element, 'md-tab-label'),
+ body = firstChild(element, 'md-tab-body');
+
+ if (label.length === 0) {
+ label = angular.element('<md-tab-label></md-tab-label>');
+ if (attr.label) label.text(attr.label);
+ else label.append(element.contents());
+
+ if (body.length === 0) {
+ var contents = element.contents().detach();
+ body = angular.element('<md-tab-body></md-tab-body>');
+ body.append(contents);
+ }
+ }
+
+ element.append(label);
+ if (body.html()) element.append(body);
+
+ return postLink;
+ },
+ scope: {
+ active: '=?mdActive',
+ disabled: '=?ngDisabled',
+ select: '&?mdOnSelect',
+ deselect: '&?mdOnDeselect'
+ }
+ };
+
+ function postLink (scope, element, attr, ctrl) {
+ if (!ctrl) return;
+ var index = ctrl.getTabElementIndex(element),
+ body = firstChild(element, 'md-tab-body').remove(),
+ label = firstChild(element, 'md-tab-label').remove(),
+ data = ctrl.insertTab({
+ scope: scope,
+ parent: scope.$parent,
+ index: index,
+ element: element,
+ template: body.html(),
+ label: label.html()
+ }, index);
+
+ scope.select = scope.select || angular.noop;
+ scope.deselect = scope.deselect || angular.noop;
+
+ scope.$watch('active', function (active) { if (active) ctrl.select(data.getIndex(), true); });
+ scope.$watch('disabled', function () { ctrl.refreshIndex(); });
+ scope.$watch(
+ function () {
+ return ctrl.getTabElementIndex(element);
+ },
+ function (newIndex) {
+ data.index = newIndex;
+ ctrl.updateTabOrder();
+ }
+ );
+ scope.$on('$destroy', function () { ctrl.removeTab(data); });
+ }
+
+ function firstChild (element, tagName) {
+ var children = element[0].children;
+ for (var i = 0, len = children.length; i < len; i++) {
+ var child = children[i];
+ if (child.tagName === tagName.toUpperCase()) return angular.element(child);
+ }
+ return angular.element();
+ }
+}
+
+angular
+ .module('material.components.tabs')
+ .directive('mdTabItem', MdTabItem);
+
+function MdTabItem () {
+ return {
+ require: '^?mdTabs',
+ link: function link (scope, element, attr, ctrl) {
+ if (!ctrl) return;
+ ctrl.attachRipple(scope, element);
+ }
+ };
+}
+
+angular
+ .module('material.components.tabs')
+ .directive('mdTabLabel', MdTabLabel);
+
+function MdTabLabel () {
+ return { terminal: true };
+}
+
+
+
+MdTabScroll['$inject'] = ["$parse"];angular.module('material.components.tabs')
+ .directive('mdTabScroll', MdTabScroll);
+
+function MdTabScroll ($parse) {
+ return {
+ restrict: 'A',
+ compile: function ($element, attr) {
+ var fn = $parse(attr.mdTabScroll, null, true);
+ return function ngEventHandler (scope, element) {
+ element.on('mousewheel', function (event) {
+ scope.$apply(function () { fn(scope, { $event: event }); });
+ });
+ };
+ }
+ };
+}
+
+
+MdTabsController['$inject'] = ["$scope", "$element", "$window", "$mdConstant", "$mdTabInkRipple", "$mdUtil", "$animateCss", "$attrs", "$compile", "$mdTheming", "$mdInteraction"];angular
+ .module('material.components.tabs')
+ .controller('MdTabsController', MdTabsController);
+
+/**
+ * ngInject
+ */
+function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipple, $mdUtil,
+ $animateCss, $attrs, $compile, $mdTheming, $mdInteraction) {
+ // define private properties
+ var ctrl = this,
+ locked = false,
+ elements = getElements(),
+ queue = [],
+ destroyed = false,
+ loaded = false;
+
+
+ // Define public methods
+ ctrl.$onInit = $onInit;
+ ctrl.updatePagination = $mdUtil.debounce(updatePagination, 100);
+ ctrl.redirectFocus = redirectFocus;
+ ctrl.attachRipple = attachRipple;
+ ctrl.insertTab = insertTab;
+ ctrl.removeTab = removeTab;
+ ctrl.select = select;
+ ctrl.scroll = scroll;
+ ctrl.nextPage = nextPage;
+ ctrl.previousPage = previousPage;
+ ctrl.keydown = keydown;
+ ctrl.canPageForward = canPageForward;
+ ctrl.canPageBack = canPageBack;
+ ctrl.refreshIndex = refreshIndex;
+ ctrl.incrementIndex = incrementIndex;
+ ctrl.getTabElementIndex = getTabElementIndex;
+ ctrl.updateInkBarStyles = $mdUtil.debounce(updateInkBarStyles, 100);
+ ctrl.updateTabOrder = $mdUtil.debounce(updateTabOrder, 100);
+ ctrl.getFocusedTabId = getFocusedTabId;
+
+ // For Angular 1.4 and older, where there are no lifecycle hooks but bindings are pre-assigned,
+ // manually call the $onInit hook.
+ if (angular.version.major === 1 && angular.version.minor <= 4) {
+ this.$onInit();
+ }
+
+ /**
+ * Angular Lifecycle hook for newer Angular versions.
+ * Bindings are not guaranteed to have been assigned in the controller, but they are in the $onInit hook.
+ */
+ function $onInit() {
+ // Define one-way bindings
+ defineOneWayBinding('stretchTabs', handleStretchTabs);
+
+ // Define public properties with change handlers
+ defineProperty('focusIndex', handleFocusIndexChange, ctrl.selectedIndex || 0);
+ defineProperty('offsetLeft', handleOffsetChange, 0);
+ defineProperty('hasContent', handleHasContent, false);
+ defineProperty('maxTabWidth', handleMaxTabWidth, getMaxTabWidth());
+ defineProperty('shouldPaginate', handleShouldPaginate, false);
+
+ // Define boolean attributes
+ defineBooleanAttribute('noInkBar', handleInkBar);
+ defineBooleanAttribute('dynamicHeight', handleDynamicHeight);
+ defineBooleanAttribute('noPagination');
+ defineBooleanAttribute('swipeContent');
+ defineBooleanAttribute('noDisconnect');
+ defineBooleanAttribute('autoselect');
+ defineBooleanAttribute('noSelectClick');
+ defineBooleanAttribute('centerTabs', handleCenterTabs, false);
+ defineBooleanAttribute('enableDisconnect');
+
+ // Define public properties
+ ctrl.scope = $scope;
+ ctrl.parent = $scope.$parent;
+ ctrl.tabs = [];
+ ctrl.lastSelectedIndex = null;
+ ctrl.hasFocus = false;
+ ctrl.styleTabItemFocus = false;
+ ctrl.shouldCenterTabs = shouldCenterTabs();
+ ctrl.tabContentPrefix = 'tab-content-';
+
+ // Setup the tabs controller after all bindings are available.
+ setupTabsController();
+ }
+
+ /**
+ * Perform setup for the controller, setup events and watcher(s)
+ */
+ function setupTabsController () {
+ ctrl.selectedIndex = ctrl.selectedIndex || 0;
+ compileTemplate();
+ configureWatchers();
+ bindEvents();
+ $mdTheming($element);
+ $mdUtil.nextTick(function () {
+ // Note that the element references need to be updated, because certain "browsers"
+ // (IE/Edge) lose them and start throwing "Invalid calling object" errors, when we
+ // compile the element contents down in `compileElement`.
+ elements = getElements();
+ updateHeightFromContent();
+ adjustOffset();
+ updateInkBarStyles();
+ ctrl.tabs[ ctrl.selectedIndex ] && ctrl.tabs[ ctrl.selectedIndex ].scope.select();
+ loaded = true;
+ updatePagination();
+ });
+ }
+
+ /**
+ * Compiles the template provided by the user. This is passed as an attribute from the tabs
+ * directive's template function.
+ */
+ function compileTemplate () {
+ var template = $attrs.$mdTabsTemplate,
+ element = angular.element($element[0].querySelector('md-tab-data'));
+
+ element.html(template);
+ $compile(element.contents())(ctrl.parent);
+ delete $attrs.$mdTabsTemplate;
+ }
+
+ /**
+ * Binds events used by the tabs component.
+ */
+ function bindEvents () {
+ angular.element($window).on('resize', handleWindowResize);
+ $scope.$on('$destroy', cleanup);
+ }
+
+ /**
+ * Configure watcher(s) used by Tabs
+ */
+ function configureWatchers () {
+ $scope.$watch('$mdTabsCtrl.selectedIndex', handleSelectedIndexChange);
+ }
+
+ /**
+ * Creates a one-way binding manually rather than relying on Angular's isolated scope
+ * @param key
+ * @param handler
+ */
+ function defineOneWayBinding (key, handler) {
+ var attr = $attrs.$normalize('md-' + key);
+ if (handler) defineProperty(key, handler);
+ $attrs.$observe(attr, function (newValue) { ctrl[ key ] = newValue; });
+ }
+
+ /**
+ * Defines boolean attributes with default value set to true. (ie. md-stretch-tabs with no value
+ * will be treated as being truthy)
+ * @param key
+ * @param handler
+ */
+ function defineBooleanAttribute (key, handler) {
+ var attr = $attrs.$normalize('md-' + key);
+ if (handler) defineProperty(key, handler);
+ if ($attrs.hasOwnProperty(attr)) updateValue($attrs[attr]);
+ $attrs.$observe(attr, updateValue);
+ function updateValue (newValue) {
+ ctrl[ key ] = newValue !== 'false';
+ }
+ }
+
+ /**
+ * Remove any events defined by this controller
+ */
+ function cleanup () {
+ destroyed = true;
+ angular.element($window).off('resize', handleWindowResize);
+ }
+
+ // Change handlers
+
+ /**
+ * Toggles stretch tabs class and updates inkbar when tab stretching changes
+ * @param stretchTabs
+ */
+ function handleStretchTabs (stretchTabs) {
+ var elements = getElements();
+ angular.element(elements.wrapper).toggleClass('md-stretch-tabs', shouldStretchTabs());
+ updateInkBarStyles();
+ }
+
+ function handleCenterTabs (newValue) {
+ ctrl.shouldCenterTabs = shouldCenterTabs();
+ }
+
+ function handleMaxTabWidth (newWidth, oldWidth) {
+ if (newWidth !== oldWidth) {
+ var elements = getElements();
+
+ angular.forEach(elements.tabs, function(tab) {
+ tab.style.maxWidth = newWidth + 'px';
+ });
+ $mdUtil.nextTick(ctrl.updateInkBarStyles);
+ }
+ }
+
+ function handleShouldPaginate (newValue, oldValue) {
+ if (newValue !== oldValue) {
+ ctrl.maxTabWidth = getMaxTabWidth();
+ ctrl.shouldCenterTabs = shouldCenterTabs();
+ $mdUtil.nextTick(function () {
+ ctrl.maxTabWidth = getMaxTabWidth();
+ adjustOffset(ctrl.selectedIndex);
+ });
+ }
+ }
+
+ /**
+ * Add/remove the `md-no-tab-content` class depending on `ctrl.hasContent`
+ * @param hasContent
+ */
+ function handleHasContent (hasContent) {
+ $element[ hasContent ? 'removeClass' : 'addClass' ]('md-no-tab-content');
+ }
+
+ /**
+ * Apply ctrl.offsetLeft to the paging element when it changes
+ * @param left
+ */
+ function handleOffsetChange (left) {
+ var elements = getElements();
+ var newValue = ctrl.shouldCenterTabs ? '' : '-' + left + 'px';
+
+ angular.element(elements.paging).css($mdConstant.CSS.TRANSFORM, 'translate3d(' + newValue + ', 0, 0)');
+ $scope.$broadcast('$mdTabsPaginationChanged');
+ }
+
+ /**
+ * Update the UI whenever `ctrl.focusIndex` is updated
+ * @param newIndex
+ * @param oldIndex
+ */
+ function handleFocusIndexChange (newIndex, oldIndex) {
+ if (newIndex === oldIndex) return;
+ if (!getElements().tabs[ newIndex ]) return;
+ adjustOffset();
+ redirectFocus();
+ }
+
+ /**
+ * Update the UI whenever the selected index changes. Calls user-defined select/deselect methods.
+ * @param newValue
+ * @param oldValue
+ */
+ function handleSelectedIndexChange (newValue, oldValue) {
+ if (newValue === oldValue) return;
+
+ ctrl.selectedIndex = getNearestSafeIndex(newValue);
+ ctrl.lastSelectedIndex = oldValue;
+ ctrl.updateInkBarStyles();
+ updateHeightFromContent();
+ adjustOffset(newValue);
+ $scope.$broadcast('$mdTabsChanged');
+ ctrl.tabs[ oldValue ] && ctrl.tabs[ oldValue ].scope.deselect();
+ ctrl.tabs[ newValue ] && ctrl.tabs[ newValue ].scope.select();
+ }
+
+ function getTabElementIndex(tabEl){
+ var tabs = $element[0].getElementsByTagName('md-tab');
+ return Array.prototype.indexOf.call(tabs, tabEl[0]);
+ }
+
+ /**
+ * Queues up a call to `handleWindowResize` when a resize occurs while the tabs component is
+ * hidden.
+ */
+ function handleResizeWhenVisible () {
+ // if there is already a watcher waiting for resize, do nothing
+ if (handleResizeWhenVisible.watcher) return;
+ // otherwise, we will abuse the $watch function to check for visible
+ handleResizeWhenVisible.watcher = $scope.$watch(function () {
+ // since we are checking for DOM size, we use $mdUtil.nextTick() to wait for after the DOM updates
+ $mdUtil.nextTick(function () {
+ // if the watcher has already run (ie. multiple digests in one cycle), do nothing
+ if (!handleResizeWhenVisible.watcher) return;
+
+ if ($element.prop('offsetParent')) {
+ handleResizeWhenVisible.watcher();
+ handleResizeWhenVisible.watcher = null;
+
+ handleWindowResize();
+ }
+ }, false);
+ });
+ }
+
+ // Event handlers / actions
+
+ /**
+ * Handle user keyboard interactions
+ * @param event
+ */
+ function keydown (event) {
+ switch (event.keyCode) {
+ case $mdConstant.KEY_CODE.LEFT_ARROW:
+ event.preventDefault();
+ incrementIndex(-1, true);
+ break;
+ case $mdConstant.KEY_CODE.RIGHT_ARROW:
+ event.preventDefault();
+ incrementIndex(1, true);
+ break;
+ case $mdConstant.KEY_CODE.SPACE:
+ case $mdConstant.KEY_CODE.ENTER:
+ event.preventDefault();
+ if (!locked) select(ctrl.focusIndex);
+ break;
+ }
+ }
+
+ /**
+ * Update the selected index. Triggers a click event on the original `md-tab` element in order
+ * to fire user-added click events if canSkipClick or `md-no-select-click` are false.
+ * @param index
+ * @param canSkipClick Optionally allow not firing the click event if `md-no-select-click` is also true.
+ */
+ function select (index, canSkipClick) {
+ if (!locked) ctrl.focusIndex = ctrl.selectedIndex = index;
+ // skip the click event if noSelectClick is enabled
+ if (canSkipClick && ctrl.noSelectClick) return;
+ // nextTick is required to prevent errors in user-defined click events
+ $mdUtil.nextTick(function () {
+ ctrl.tabs[ index ].element.triggerHandler('click');
+ }, false);
+ }
+
+ /**
+ * When pagination is on, this makes sure the selected index is in view.
+ * @param event
+ */
+ function scroll (event) {
+ if (!ctrl.shouldPaginate) return;
+ event.preventDefault();
+ ctrl.offsetLeft = fixOffset(ctrl.offsetLeft - event.wheelDelta);
+ }
+
+ /**
+ * Slides the tabs over approximately one page forward.
+ */
+ function nextPage () {
+ var elements = getElements();
+ var viewportWidth = elements.canvas.clientWidth,
+ totalWidth = viewportWidth + ctrl.offsetLeft,
+ i, tab;
+ for (i = 0; i < elements.tabs.length; i++) {
+ tab = elements.tabs[ i ];
+ if (tab.offsetLeft + tab.offsetWidth > totalWidth) break;
+ }
+
+ if (viewportWidth > tab.offsetWidth) {
+ //Canvas width *greater* than tab width: usual positioning
+ ctrl.offsetLeft = fixOffset(tab.offsetLeft);
+ } else {
+ /**
+ * Canvas width *smaller* than tab width: positioning at the *end* of current tab to let
+ * pagination "for loop" to proceed correctly on next tab when nextPage() is called again
+ */
+ ctrl.offsetLeft = fixOffset(tab.offsetLeft + (tab.offsetWidth - viewportWidth + 1));
+ }
+ }
+
+ /**
+ * Slides the tabs over approximately one page backward.
+ */
+ function previousPage () {
+ var i, tab, elements = getElements();
+
+ for (i = 0; i < elements.tabs.length; i++) {
+ tab = elements.tabs[ i ];
+ if (tab.offsetLeft + tab.offsetWidth >= ctrl.offsetLeft) break;
+ }
+
+ if (elements.canvas.clientWidth > tab.offsetWidth) {
+ //Canvas width *greater* than tab width: usual positioning
+ ctrl.offsetLeft = fixOffset(tab.offsetLeft + tab.offsetWidth - elements.canvas.clientWidth);
+ } else {
+ /**
+ * Canvas width *smaller* than tab width: positioning at the *beginning* of current tab to let
+ * pagination "for loop" to break correctly on previous tab when previousPage() is called again
+ */
+ ctrl.offsetLeft = fixOffset(tab.offsetLeft);
+ }
+ }
+
+ /**
+ * Update size calculations when the window is resized.
+ */
+ function handleWindowResize () {
+ ctrl.lastSelectedIndex = ctrl.selectedIndex;
+ ctrl.offsetLeft = fixOffset(ctrl.offsetLeft);
+ $mdUtil.nextTick(function () {
+ ctrl.updateInkBarStyles();
+ updatePagination();
+ });
+ }
+
+ function handleInkBar (hide) {
+ angular.element(getElements().inkBar).toggleClass('ng-hide', hide);
+ }
+
+ /**
+ * Toggle dynamic height class when value changes
+ * @param value
+ */
+ function handleDynamicHeight (value) {
+ $element.toggleClass('md-dynamic-height', value);
+ }
+
+ /**
+ * Remove a tab from the data and select the nearest valid tab.
+ * @param tabData
+ */
+ function removeTab (tabData) {
+ if (destroyed) return;
+ var selectedIndex = ctrl.selectedIndex,
+ tab = ctrl.tabs.splice(tabData.getIndex(), 1)[ 0 ];
+ refreshIndex();
+ // when removing a tab, if the selected index did not change, we have to manually trigger the
+ // tab select/deselect events
+ if (ctrl.selectedIndex === selectedIndex) {
+ tab.scope.deselect();
+ ctrl.tabs[ ctrl.selectedIndex ] && ctrl.tabs[ ctrl.selectedIndex ].scope.select();
+ }
+ $mdUtil.nextTick(function () {
+ updatePagination();
+ ctrl.offsetLeft = fixOffset(ctrl.offsetLeft);
+ });
+ }
+
+ /**
+ * Create an entry in the tabs array for a new tab at the specified index.
+ * @param tabData
+ * @param index
+ * @returns {*}
+ */
+ function insertTab (tabData, index) {
+ var hasLoaded = loaded;
+ var proto = {
+ getIndex: function () { return ctrl.tabs.indexOf(tab); },
+ isActive: function () { return this.getIndex() === ctrl.selectedIndex; },
+ isLeft: function () { return this.getIndex() < ctrl.selectedIndex; },
+ isRight: function () { return this.getIndex() > ctrl.selectedIndex; },
+ shouldRender: function () { return !ctrl.noDisconnect || this.isActive(); },
+ hasFocus: function () {
+ return ctrl.styleTabItemFocus
+ && ctrl.hasFocus && this.getIndex() === ctrl.focusIndex;
+ },
+ id: $mdUtil.nextUid(),
+ hasContent: !!(tabData.template && tabData.template.trim())
+ },
+ tab = angular.extend(proto, tabData);
+ if (angular.isDefined(index)) {
+ ctrl.tabs.splice(index, 0, tab);
+ } else {
+ ctrl.tabs.push(tab);
+ }
+
+ processQueue();
+ updateHasContent();
+ $mdUtil.nextTick(function () {
+ updatePagination();
+ setAriaControls(tab);
+
+ // if autoselect is enabled, select the newly added tab
+ if (hasLoaded && ctrl.autoselect) $mdUtil.nextTick(function () {
+ $mdUtil.nextTick(function () { select(ctrl.tabs.indexOf(tab)); });
+ });
+ });
+ return tab;
+ }
+
+ // Getter methods
+
+ /**
+ * Gathers references to all of the DOM elements used by this controller.
+ * @returns {{}}
+ */
+ function getElements () {
+ var elements = {};
+ var node = $element[0];
+
+ // gather tab bar elements
+ elements.wrapper = node.querySelector('md-tabs-wrapper');
+ elements.canvas = elements.wrapper.querySelector('md-tabs-canvas');
+ elements.paging = elements.canvas.querySelector('md-pagination-wrapper');
+ elements.inkBar = elements.paging.querySelector('md-ink-bar');
+
+ elements.contents = node.querySelectorAll('md-tabs-content-wrapper > md-tab-content');
+ elements.tabs = elements.paging.querySelectorAll('md-tab-item');
+ elements.dummies = elements.canvas.querySelectorAll('md-dummy-tab');
+
+ return elements;
+ }
+
+ /**
+ * Determines whether or not the left pagination arrow should be enabled.
+ * @returns {boolean}
+ */
+ function canPageBack () {
+ return ctrl.offsetLeft > 0;
+ }
+
+ /**
+ * Determines whether or not the right pagination arrow should be enabled.
+ * @returns {*|boolean}
+ */
+ function canPageForward () {
+ var elements = getElements();
+ var lastTab = elements.tabs[ elements.tabs.length - 1 ];
+ return lastTab && lastTab.offsetLeft + lastTab.offsetWidth > elements.canvas.clientWidth +
+ ctrl.offsetLeft;
+ }
+
+ /**
+ * Returns currently focused tab item's element ID
+ */
+ function getFocusedTabId() {
+ var focusedTab = ctrl.tabs[ctrl.focusIndex];
+ if (!focusedTab || !focusedTab.id) {
+ return null;
+ }
+ return 'tab-item-' + focusedTab.id;
+ }
+
+ /**
+ * Determines if the UI should stretch the tabs to fill the available space.
+ * @returns {*}
+ */
+ function shouldStretchTabs () {
+ switch (ctrl.stretchTabs) {
+ case 'always':
+ return true;
+ case 'never':
+ return false;
+ default:
+ return !ctrl.shouldPaginate
+ && $window.matchMedia('(max-width: 600px)').matches;
+ }
+ }
+
+ /**
+ * Determines if the tabs should appear centered.
+ * @returns {string|boolean}
+ */
+ function shouldCenterTabs () {
+ return ctrl.centerTabs && !ctrl.shouldPaginate;
+ }
+
+ /**
+ * Determines if pagination is necessary to display the tabs within the available space.
+ * @returns {boolean}
+ */
+ function shouldPaginate () {
+ if (ctrl.noPagination || !loaded) return false;
+ var canvasWidth = $element.prop('clientWidth');
+
+ angular.forEach(getElements().dummies, function (tab) {
+ canvasWidth -= tab.offsetWidth;
+ });
+
+ return canvasWidth < 0;
+ }
+
+ /**
+ * Finds the nearest tab index that is available. This is primarily used for when the active
+ * tab is removed.
+ * @param newIndex
+ * @returns {*}
+ */
+ function getNearestSafeIndex (newIndex) {
+ if (newIndex === -1) return -1;
+ var maxOffset = Math.max(ctrl.tabs.length - newIndex, newIndex),
+ i, tab;
+ for (i = 0; i <= maxOffset; i++) {
+ tab = ctrl.tabs[ newIndex + i ];
+ if (tab && (tab.scope.disabled !== true)) return tab.getIndex();
+ tab = ctrl.tabs[ newIndex - i ];
+ if (tab && (tab.scope.disabled !== true)) return tab.getIndex();
+ }
+ return newIndex;
+ }
+
+ // Utility methods
+
+ /**
+ * Defines a property using a getter and setter in order to trigger a change handler without
+ * using `$watch` to observe changes.
+ * @param key
+ * @param handler
+ * @param value
+ */
+ function defineProperty (key, handler, value) {
+ Object.defineProperty(ctrl, key, {
+ get: function () { return value; },
+ set: function (newValue) {
+ var oldValue = value;
+ value = newValue;
+ handler && handler(newValue, oldValue);
+ }
+ });
+ }
+
+ /**
+ * Updates whether or not pagination should be displayed.
+ */
+ function updatePagination () {
+ ctrl.maxTabWidth = getMaxTabWidth();
+ ctrl.shouldPaginate = shouldPaginate();
+ }
+
+ /**
+ * Calculates the width of the pagination wrapper by summing the widths of the dummy tabs.
+ * @returns {number}
+ */
+ function calcPagingWidth () {
+ return calcTabsWidth(getElements().dummies);
+ }
+
+ function calcTabsWidth(tabs) {
+ var width = 0;
+
+ angular.forEach(tabs, function (tab) {
+ //-- Uses the larger value between `getBoundingClientRect().width` and `offsetWidth`. This
+ // prevents `offsetWidth` value from being rounded down and causing wrapping issues, but
+ // also handles scenarios where `getBoundingClientRect()` is inaccurate (ie. tabs inside
+ // of a dialog)
+ width += Math.max(tab.offsetWidth, tab.getBoundingClientRect().width);
+ });
+
+ return Math.ceil(width);
+ }
+
+ function getMaxTabWidth () {
+ return $element.prop('clientWidth');
+ }
+
+ /**
+ * Re-orders the tabs and updates the selected and focus indexes to their new positions.
+ * This is triggered by `tabDirective.js` when the user's tabs have been re-ordered.
+ */
+ function updateTabOrder () {
+ var selectedItem = ctrl.tabs[ ctrl.selectedIndex ],
+ focusItem = ctrl.tabs[ ctrl.focusIndex ];
+ ctrl.tabs = ctrl.tabs.sort(function (a, b) {
+ return a.index - b.index;
+ });
+ ctrl.selectedIndex = ctrl.tabs.indexOf(selectedItem);
+ ctrl.focusIndex = ctrl.tabs.indexOf(focusItem);
+ }
+
+ /**
+ * This moves the selected or focus index left or right. This is used by the keydown handler.
+ * @param inc
+ */
+ function incrementIndex (inc, focus) {
+ var newIndex,
+ key = focus ? 'focusIndex' : 'selectedIndex',
+ index = ctrl[ key ];
+ for (newIndex = index + inc;
+ ctrl.tabs[ newIndex ] && ctrl.tabs[ newIndex ].scope.disabled;
+ newIndex += inc) {}
+ if (ctrl.tabs[ newIndex ]) {
+ ctrl[ key ] = newIndex;
+ }
+ }
+
+ /**
+ * This is used to forward focus to dummy elements. This method is necessary to avoid animation
+ * issues when attempting to focus an item that is out of view.
+ */
+ function redirectFocus () {
+ ctrl.styleTabItemFocus = ($mdInteraction.getLastInteractionType() === 'keyboard');
+ getElements().dummies[ ctrl.focusIndex ].focus();
+ }
+
+ /**
+ * Forces the pagination to move the focused tab into view.
+ */
+ function adjustOffset (index) {
+ var elements = getElements();
+
+ if (!angular.isNumber(index)) index = ctrl.focusIndex;
+ if (!elements.tabs[ index ]) return;
+ if (ctrl.shouldCenterTabs) return;
+ var tab = elements.tabs[ index ],
+ left = tab.offsetLeft,
+ right = tab.offsetWidth + left;
+ ctrl.offsetLeft = Math.max(ctrl.offsetLeft, fixOffset(right - elements.canvas.clientWidth + 32 * 2));
+ ctrl.offsetLeft = Math.min(ctrl.offsetLeft, fixOffset(left));
+ }
+
+ /**
+ * Iterates through all queued functions and clears the queue. This is used for functions that
+ * are called before the UI is ready, such as size calculations.
+ */
+ function processQueue () {
+ queue.forEach(function (func) { $mdUtil.nextTick(func); });
+ queue = [];
+ }
+
+ /**
+ * Determines if the tab content area is needed.
+ */
+ function updateHasContent () {
+ var hasContent = false;
+
+ for (var i = 0; i < ctrl.tabs.length; i++) {
+ if (ctrl.tabs[i].hasContent) {
+ hasContent = true;
+ break;
+ }
+ }
+
+ ctrl.hasContent = hasContent;
+ }
+
+ /**
+ * Moves the indexes to their nearest valid values.
+ */
+ function refreshIndex () {
+ ctrl.selectedIndex = getNearestSafeIndex(ctrl.selectedIndex);
+ ctrl.focusIndex = getNearestSafeIndex(ctrl.focusIndex);
+ }
+
+ /**
+ * Calculates the content height of the current tab.
+ * @returns {*}
+ */
+ function updateHeightFromContent () {
+ if (!ctrl.dynamicHeight) return $element.css('height', '');
+ if (!ctrl.tabs.length) return queue.push(updateHeightFromContent);
+
+ var elements = getElements();
+
+ var tabContent = elements.contents[ ctrl.selectedIndex ],
+ contentHeight = tabContent ? tabContent.offsetHeight : 0,
+ tabsHeight = elements.wrapper.offsetHeight,
+ newHeight = contentHeight + tabsHeight,
+ currentHeight = $element.prop('clientHeight');
+
+ if (currentHeight === newHeight) return;
+
+ // Adjusts calculations for when the buttons are bottom-aligned since this relies on absolute
+ // positioning. This should probably be cleaned up if a cleaner solution is possible.
+ if ($element.attr('md-align-tabs') === 'bottom') {
+ currentHeight -= tabsHeight;
+ newHeight -= tabsHeight;
+ // Need to include bottom border in these calculations
+ if ($element.attr('md-border-bottom') !== undefined) ++currentHeight;
+ }
+
+ // Lock during animation so the user can't change tabs
+ locked = true;
+
+ var fromHeight = { height: currentHeight + 'px' },
+ toHeight = { height: newHeight + 'px' };
+
+ // Set the height to the current, specific pixel height to fix a bug on iOS where the height
+ // first animates to 0, then back to the proper height causing a visual glitch
+ $element.css(fromHeight);
+
+ // Animate the height from the old to the new
+ $animateCss($element, {
+ from: fromHeight,
+ to: toHeight,
+ easing: 'cubic-bezier(0.35, 0, 0.25, 1)',
+ duration: 0.5
+ }).start().done(function () {
+ // Then (to fix the same iOS issue as above), disable transitions and remove the specific
+ // pixel height so the height can size with browser width/content changes, etc.
+ $element.css({
+ transition: 'none',
+ height: ''
+ });
+
+ // In the next tick, re-allow transitions (if we do it all at once, $element.css is "smart"
+ // enough to batch it for us instead of doing it immediately, which undoes the original
+ // transition: none)
+ $mdUtil.nextTick(function() {
+ $element.css('transition', '');
+ });
+
+ // And unlock so tab changes can occur
+ locked = false;
+ });
+ }
+
+ /**
+ * Repositions the ink bar to the selected tab.
+ * @returns {*}
+ */
+ function updateInkBarStyles () {
+ var elements = getElements();
+
+ if (!elements.tabs[ ctrl.selectedIndex ]) {
+ angular.element(elements.inkBar).css({ left: 'auto', right: 'auto' });
+ return;
+ }
+
+ if (!ctrl.tabs.length) return queue.push(ctrl.updateInkBarStyles);
+ // if the element is not visible, we will not be able to calculate sizes until it is
+ // we should treat that as a resize event rather than just updating the ink bar
+ if (!$element.prop('offsetParent')) return handleResizeWhenVisible();
+
+ var index = ctrl.selectedIndex,
+ totalWidth = elements.paging.offsetWidth,
+ tab = elements.tabs[ index ],
+ left = tab.offsetLeft,
+ right = totalWidth - left - tab.offsetWidth;
+
+ if (ctrl.shouldCenterTabs) {
+ // We need to use the same calculate process as in the pagination wrapper, to avoid rounding deviations.
+ var tabWidth = calcTabsWidth(elements.tabs);
+
+ if (totalWidth > tabWidth) {
+ $mdUtil.nextTick(updateInkBarStyles, false);
+ }
+ }
+ updateInkBarClassName();
+ angular.element(elements.inkBar).css({ left: left + 'px', right: right + 'px' });
+ }
+
+ /**
+ * Adds left/right classes so that the ink bar will animate properly.
+ */
+ function updateInkBarClassName () {
+ var elements = getElements();
+ var newIndex = ctrl.selectedIndex,
+ oldIndex = ctrl.lastSelectedIndex,
+ ink = angular.element(elements.inkBar);
+ if (!angular.isNumber(oldIndex)) return;
+ ink
+ .toggleClass('md-left', newIndex < oldIndex)
+ .toggleClass('md-right', newIndex > oldIndex);
+ }
+
+ /**
+ * Takes an offset value and makes sure that it is within the min/max allowed values.
+ * @param value
+ * @returns {*}
+ */
+ function fixOffset (value) {
+ var elements = getElements();
+
+ if (!elements.tabs.length || !ctrl.shouldPaginate) return 0;
+ var lastTab = elements.tabs[ elements.tabs.length - 1 ],
+ totalWidth = lastTab.offsetLeft + lastTab.offsetWidth;
+ value = Math.max(0, value);
+ value = Math.min(totalWidth - elements.canvas.clientWidth, value);
+ return value;
+ }
+
+ /**
+ * Attaches a ripple to the tab item element.
+ * @param scope
+ * @param element
+ */
+ function attachRipple (scope, element) {
+ var elements = getElements();
+ var options = { colorElement: angular.element(elements.inkBar) };
+ $mdTabInkRipple.attach(scope, element, options);
+ }
+
+ /**
+ * Sets the `aria-controls` attribute to the elements that
+ * correspond to the passed-in tab.
+ * @param tab
+ */
+ function setAriaControls (tab) {
+ if (tab.hasContent) {
+ var nodes = $element[0].querySelectorAll('[md-tab-id="' + tab.id + '"]');
+ angular.element(nodes).attr('aria-controls', ctrl.tabContentPrefix + tab.id);
+ }
+ }
+}
+
+/**
+ * @ngdoc directive
+ * @name mdTabs
+ * @module material.components.tabs
+ *
+ * @restrict E
+ *
+ * @description
+ * The `<md-tabs>` directive serves as the container for 1..n `<md-tab>` child directives to
+ * produces a Tabs components. In turn, the nested `<md-tab>` directive is used to specify a tab
+ * label for the **header button** and a [optional] tab view content that will be associated with
+ * each tab button.
+ *
+ * Below is the markup for its simplest usage:
+ *
+ * <hljs lang="html">
+ * <md-tabs>
+ * <md-tab label="Tab #1"></md-tab>
+ * <md-tab label="Tab #2"></md-tab>
+ * <md-tab label="Tab #3"></md-tab>
+ * </md-tabs>
+ * </hljs>
+ *
+ * Tabs supports three (3) usage scenarios:
+ *
+ * 1. Tabs (buttons only)
+ * 2. Tabs with internal view content
+ * 3. Tabs with external view content
+ *
+ * **Tab-only** support is useful when tab buttons are used for custom navigation regardless of any
+ * other components, content, or views.
+ *
+ * <i><b>Note:</b> If you are using the Tabs component for page-level navigation, please take a look
+ * at the <a ng-href="./api/directive/mdNavBar">NavBar component</a> instead as it can handle this
+ * case a bit more natively.</i>
+ *
+ * **Tabs with internal views** are the traditional usages where each tab has associated view
+ * content and the view switching is managed internally by the Tabs component.
+ *
+ * **Tabs with external view content** is often useful when content associated with each tab is
+ * independently managed and data-binding notifications announce tab selection changes.
+ *
+ * Additional features also include:
+ *
+ * * Content can include any markup.
+ * * If a tab is disabled while active/selected, then the next tab will be auto-selected.
+ *
+ * ### Explanation of tab stretching
+ *
+ * Initially, tabs will have an inherent size. This size will either be defined by how much space is needed to accommodate their text or set by the user through CSS. Calculations will be based on this size.
+ *
+ * On mobile devices, tabs will be expanded to fill the available horizontal space. When this happens, all tabs will become the same size.
+ *
+ * On desktops, by default, stretching will never occur.
+ *
+ * This default behavior can be overridden through the `md-stretch-tabs` attribute. Here is a table showing when stretching will occur:
+ *
+ * `md-stretch-tabs` | mobile | desktop
+ * ------------------|-----------|--------
+ * `auto` | stretched | ---
+ * `always` | stretched | stretched
+ * `never` | --- | ---
+ *
+ * @param {integer=} md-selected Index of the active/selected tab
+ * @param {boolean=} md-no-ink If present, disables ink ripple effects.
+ * @param {boolean=} md-no-ink-bar If present, disables the selection ink bar.
+ * @param {string=} md-align-tabs Attribute to indicate position of tab buttons: `bottom` or `top`; default is `top`
+ * @param {string=} md-stretch-tabs Attribute to indicate whether or not to stretch tabs: `auto`, `always`, or `never`; default is `auto`
+ * @param {boolean=} md-dynamic-height When enabled, the tab wrapper will resize based on the contents of the selected tab
+ * @param {boolean=} md-border-bottom If present, shows a solid `1px` border between the tabs and their content
+ * @param {boolean=} md-center-tabs When enabled, tabs will be centered provided there is no need for pagination
+ * @param {boolean=} md-no-pagination When enabled, pagination will remain off
+ * @param {boolean=} md-swipe-content When enabled, swipe gestures will be enabled for the content area to jump between tabs
+ * @param {boolean=} md-enable-disconnect When enabled, scopes will be disconnected for tabs that are not being displayed. This provides a performance boost, but may also cause unexpected issues and is not recommended for most users.
+ * @param {boolean=} md-autoselect When present, any tabs added after the initial load will be automatically selected
+ * @param {boolean=} md-no-select-click When enabled, click events will not be fired when selecting tabs
+ *
+ * @usage
+ * <hljs lang="html">
+ * <md-tabs md-selected="selectedIndex" >
+ * <img ng-src="img/angular.png" class="centered">
+ * <md-tab
+ * ng-repeat="tab in tabs | orderBy:predicate:reversed"
+ * md-on-select="onTabSelected(tab)"
+ * md-on-deselect="announceDeselected(tab)"
+ * ng-disabled="tab.disabled">
+ * <md-tab-label>
+ * {{tab.title}}
+ * <img src="img/removeTab.png" ng-click="removeTab(tab)" class="delete">
+ * </md-tab-label>
+ * <md-tab-body>
+ * {{tab.content}}
+ * </md-tab-body>
+ * </md-tab>
+ * </md-tabs>
+ * </hljs>
+ *
+ */
+MdTabs['$inject'] = ["$$mdSvgRegistry"];
+angular
+ .module('material.components.tabs')
+ .directive('mdTabs', MdTabs);
+
+function MdTabs ($$mdSvgRegistry) {
+ return {
+ scope: {
+ selectedIndex: '=?mdSelected'
+ },
+ template: function (element, attr) {
+ attr.$mdTabsTemplate = element.html();
+ return '' +
+ '<md-tabs-wrapper> ' +
+ '<md-tab-data></md-tab-data> ' +
+ '<md-prev-button ' +
+ 'tabindex="-1" ' +
+ 'role="button" ' +
+ 'aria-label="Previous Page" ' +
+ 'aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ' +
+ 'ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ' +
+ 'ng-if="$mdTabsCtrl.shouldPaginate" ' +
+ 'ng-click="$mdTabsCtrl.previousPage()"> ' +
+ '<md-icon md-svg-src="'+ $$mdSvgRegistry.mdTabsArrow +'"></md-icon> ' +
+ '</md-prev-button> ' +
+ '<md-next-button ' +
+ 'tabindex="-1" ' +
+ 'role="button" ' +
+ 'aria-label="Next Page" ' +
+ 'aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ' +
+ 'ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ' +
+ 'ng-if="$mdTabsCtrl.shouldPaginate" ' +
+ 'ng-click="$mdTabsCtrl.nextPage()"> ' +
+ '<md-icon md-svg-src="'+ $$mdSvgRegistry.mdTabsArrow +'"></md-icon> ' +
+ '</md-next-button> ' +
+ '<md-tabs-canvas ' +
+ 'tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" ' +
+ 'aria-activedescendant="{{$mdTabsCtrl.getFocusedTabId()}}" ' +
+ 'ng-focus="$mdTabsCtrl.redirectFocus()" ' +
+ 'ng-class="{ ' +
+ '\'md-paginated\': $mdTabsCtrl.shouldPaginate, ' +
+ '\'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs ' +
+ '}" ' +
+ 'ng-keydown="$mdTabsCtrl.keydown($event)" ' +
+ 'role="tablist"> ' +
+ '<md-pagination-wrapper ' +
+ 'ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ' +
+ 'md-tab-scroll="$mdTabsCtrl.scroll($event)"> ' +
+ '<md-tab-item ' +
+ 'tabindex="-1" ' +
+ 'class="md-tab" ' +
+ 'ng-repeat="tab in $mdTabsCtrl.tabs" ' +
+ 'role="tab" ' +
+ 'md-tab-id="{{::tab.id}}"' +
+ 'aria-selected="{{tab.isActive()}}" ' +
+ 'aria-disabled="{{tab.scope.disabled || \'false\'}}" ' +
+ 'ng-click="$mdTabsCtrl.select(tab.getIndex())" ' +
+ 'ng-class="{ ' +
+ '\'md-active\': tab.isActive(), ' +
+ '\'md-focused\': tab.hasFocus(), ' +
+ '\'md-disabled\': tab.scope.disabled ' +
+ '}" ' +
+ 'ng-disabled="tab.scope.disabled" ' +
+ 'md-swipe-left="$mdTabsCtrl.nextPage()" ' +
+ 'md-swipe-right="$mdTabsCtrl.previousPage()" ' +
+ 'md-tabs-template="::tab.label" ' +
+ 'md-scope="::tab.parent"></md-tab-item> ' +
+ '<md-ink-bar></md-ink-bar> ' +
+ '</md-pagination-wrapper> ' +
+ '<md-tabs-dummy-wrapper class="md-visually-hidden md-dummy-wrapper"> ' +
+ '<md-dummy-tab ' +
+ 'class="md-tab" ' +
+ 'tabindex="-1" ' +
+ 'id="tab-item-{{::tab.id}}" ' +
+ 'md-tab-id="{{::tab.id}}"' +
+ 'aria-selected="{{tab.isActive()}}" ' +
+ 'aria-disabled="{{tab.scope.disabled || \'false\'}}" ' +
+ 'ng-focus="$mdTabsCtrl.hasFocus = true" ' +
+ 'ng-blur="$mdTabsCtrl.hasFocus = false" ' +
+ 'ng-repeat="tab in $mdTabsCtrl.tabs" ' +
+ 'md-tabs-template="::tab.label" ' +
+ 'md-scope="::tab.parent"></md-dummy-tab> ' +
+ '</md-tabs-dummy-wrapper> ' +
+ '</md-tabs-canvas> ' +
+ '</md-tabs-wrapper> ' +
+ '<md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> ' +
+ '<md-tab-content ' +
+ 'id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" ' +
+ 'class="_md" ' +
+ 'role="tabpanel" ' +
+ 'aria-labelledby="tab-item-{{::tab.id}}" ' +
+ 'md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" ' +
+ 'md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" ' +
+ 'ng-if="tab.hasContent" ' +
+ 'ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ' +
+ 'ng-class="{ ' +
+ '\'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, ' +
+ '\'md-active\': tab.isActive(), ' +
+ '\'md-left\': tab.isLeft(), ' +
+ '\'md-right\': tab.isRight(), ' +
+ '\'md-no-scroll\': $mdTabsCtrl.dynamicHeight ' +
+ '}"> ' +
+ '<div ' +
+ 'md-tabs-template="::tab.template" ' +
+ 'md-connected-if="tab.isActive()" ' +
+ 'md-scope="::tab.parent" ' +
+ 'ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> ' +
+ '</md-tab-content> ' +
+ '</md-tabs-content-wrapper>';
+ },
+ controller: 'MdTabsController',
+ controllerAs: '$mdTabsCtrl',
+ bindToController: true
+ };
+}
+
+
+MdTabsDummyWrapper['$inject'] = ["$mdUtil", "$window"];angular
+ .module('material.components.tabs')
+ .directive('mdTabsDummyWrapper', MdTabsDummyWrapper);
+
+/**
+ * @private
+ *
+ * @param $mdUtil
+ * @param $window
+ * @returns {{require: string, link: link}}
+ * @constructor
+ *
+ * ngInject
+ */
+function MdTabsDummyWrapper ($mdUtil, $window) {
+ return {
+ require: '^?mdTabs',
+ link: function link (scope, element, attr, ctrl) {
+ if (!ctrl) return;
+
+ var observer;
+ var disconnect;
+
+ var mutationCallback = function() {
+ ctrl.updatePagination();
+ ctrl.updateInkBarStyles();
+ };
+
+ if('MutationObserver' in $window) {
+ var config = {
+ childList: true,
+ subtree: true,
+ // Per https://bugzilla.mozilla.org/show_bug.cgi?id=1138368, browsers will not fire
+ // the childList mutation, once a <span> element's innerText changes.
+ // The characterData of the <span> element will change.
+ characterData: true
+ };
+
+ observer = new MutationObserver(mutationCallback);
+ observer.observe(element[0], config);
+ disconnect = observer.disconnect.bind(observer);
+ } else {
+ var debounced = $mdUtil.debounce(mutationCallback, 15, null, false);
+
+ element.on('DOMSubtreeModified', debounced);
+ disconnect = element.off.bind(element, 'DOMSubtreeModified', debounced);
+ }
+
+ // Disconnect the observer
+ scope.$on('$destroy', function() {
+ disconnect();
+ });
+ }
+ };
+}
+
+
+MdTabsTemplate['$inject'] = ["$compile", "$mdUtil"];angular
+ .module('material.components.tabs')
+ .directive('mdTabsTemplate', MdTabsTemplate);
+
+function MdTabsTemplate ($compile, $mdUtil) {
+ return {
+ restrict: 'A',
+ link: link,
+ scope: {
+ template: '=mdTabsTemplate',
+ connected: '=?mdConnectedIf',
+ compileScope: '=mdScope'
+ },
+ require: '^?mdTabs'
+ };
+ function link (scope, element, attr, ctrl) {
+ if (!ctrl) return;
+
+ var compileScope = ctrl.enableDisconnect ? scope.compileScope.$new() : scope.compileScope;
+
+ element.html(scope.template);
+ $compile(element.contents())(compileScope);
+
+ return $mdUtil.nextTick(handleScope);
+
+ function handleScope () {
+ scope.$watch('connected', function (value) { value === false ? disconnect() : reconnect(); });
+ scope.$on('$destroy', reconnect);
+ }
+
+ function disconnect () {
+ if (ctrl.enableDisconnect) $mdUtil.disconnectScope(compileScope);
+ }
+
+ function reconnect () {
+ if (ctrl.enableDisconnect) $mdUtil.reconnectScope(compileScope);
+ }
+ }
+}
+
+ngmaterial.components.tabs = angular.module("material.components.tabs"); \ No newline at end of file
diff --git a/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.min.css b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.min.css
new file mode 100644
index 00000000..47e4f17f
--- /dev/null
+++ b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.min.css
@@ -0,0 +1,6 @@
+/*!
+ * Angular Material Design
+ * https://github.com/angular/material
+ * @license MIT
+ * v1.1.2-master-a9ba340
+ */@-webkit-keyframes md-tab-content-hide{0%{opacity:1}50%{opacity:1}to{opacity:0}}@keyframes md-tab-content-hide{0%{opacity:1}50%{opacity:1}to{opacity:0}}md-tab-data{position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;opacity:0}md-tabs{display:block;margin:0;border-radius:2px;overflow:hidden;position:relative;-webkit-flex-shrink:0;flex-shrink:0}md-tabs:not(.md-no-tab-content):not(.md-dynamic-height){min-height:248px}md-tabs[md-align-tabs=bottom]{padding-bottom:48px}md-tabs[md-align-tabs=bottom] md-tabs-wrapper{position:absolute;bottom:0;left:0;right:0;height:48px;z-index:2}md-tabs[md-align-tabs=bottom] md-tabs-content-wrapper{top:0;bottom:48px}md-tabs.md-dynamic-height md-tabs-content-wrapper{min-height:0;position:relative;top:auto;left:auto;right:auto;bottom:auto;overflow:visible}md-tabs.md-dynamic-height md-tab-content.md-active{position:relative}md-tabs[md-border-bottom] md-tabs-wrapper{border-width:0 0 1px;border-style:solid}md-tabs[md-border-bottom]:not(.md-dynamic-height) md-tabs-content-wrapper{top:49px}md-tabs-wrapper{display:block;position:relative;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-tabs-wrapper md-next-button,md-tabs-wrapper md-prev-button{height:100%;width:32px;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);line-height:1em;z-index:2;cursor:pointer;font-size:16px;background:transparent no-repeat 50%;-webkit-transition:all .5s cubic-bezier(.35,0,.25,1);transition:all .5s cubic-bezier(.35,0,.25,1)}md-tabs-wrapper md-next-button:focus,md-tabs-wrapper md-prev-button:focus{outline:none}md-tabs-wrapper md-next-button.md-disabled,md-tabs-wrapper md-prev-button.md-disabled{opacity:.25;cursor:default}md-tabs-wrapper md-next-button.ng-leave,md-tabs-wrapper md-prev-button.ng-leave{-webkit-transition:none;transition:none}md-tabs-wrapper md-next-button md-icon,md-tabs-wrapper md-prev-button md-icon{position:absolute;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}md-tabs-wrapper md-prev-button{left:0;background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMjA4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyIAkJIiBzdHlsZT0iZmlsbDp3aGl0ZTsiLz4gPHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+IDwvZz4gPC9nPiA8ZyBpZD0iR3JpZCIgZGlzcGxheT0ibm9uZSI+IDxnIGRpc3BsYXk9ImlubGluZSI+IDwvZz4gPC9nPiA8L3N2Zz4NCg==")}[dir=rtl] md-tabs-wrapper md-prev-button{left:auto;right:0}md-tabs-wrapper md-next-button{right:0;background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE3LjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPiA8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPiA8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjQgMjQiIHhtbDpzcGFjZT0icHJlc2VydmUiPiA8ZyBpZD0iSGVhZGVyIj4gPGc+IDxyZWN0IHg9Ii02MTgiIHk9Ii0xMzM2IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+IDwvZz4gPC9nPiA8ZyBpZD0iTGFiZWwiPiA8L2c+IDxnIGlkPSJJY29uIj4gPGc+IDxwb2x5Z29uIHBvaW50cz0iMTAsNiA4LjYsNy40IDEzLjIsMTIgOC42LDE2LjYgMTAsMTggMTYsMTIgCQkiIHN0eWxlPSJmaWxsOndoaXRlOyIvPiA8cmVjdCBmaWxsPSJub25lIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiLz4gPC9nPiA8L2c+IDxnIGlkPSJHcmlkIiBkaXNwbGF5PSJub25lIj4gPGcgZGlzcGxheT0iaW5saW5lIj4gPC9nPiA8L2c+IDwvc3ZnPg0K")}[dir=rtl] md-tabs-wrapper md-next-button{right:auto;left:0}md-tabs-wrapper md-next-button md-icon{-webkit-transform:translate3d(-50%,-50%,0) rotate(180deg);transform:translate3d(-50%,-50%,0) rotate(180deg)}md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper{width:100%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}md-tabs-wrapper.md-stretch-tabs md-pagination-wrapper md-tab-item{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1}md-tabs-canvas{position:relative;overflow:hidden;display:block;height:48px}md-tabs-canvas:after{content:"";display:table;clear:both}md-tabs-canvas .md-dummy-wrapper{position:absolute;top:0;left:0}[dir=rtl] md-tabs-canvas .md-dummy-wrapper{left:auto;right:0}md-tabs-canvas.md-paginated{margin:0 32px}md-tabs-canvas.md-center-tabs{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;text-align:center}md-tabs-canvas.md-center-tabs .md-tab{float:none;display:inline-block}md-pagination-wrapper{height:48px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-transition:-webkit-transform .5s cubic-bezier(.35,0,.25,1);transition:-webkit-transform .5s cubic-bezier(.35,0,.25,1);transition:transform .5s cubic-bezier(.35,0,.25,1);transition:transform .5s cubic-bezier(.35,0,.25,1),-webkit-transform .5s cubic-bezier(.35,0,.25,1);position:absolute;left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-pagination-wrapper:after{content:"";display:table;clear:both}[dir=rtl] md-pagination-wrapper{left:auto;right:0}md-pagination-wrapper.md-center-tabs{position:relative;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}md-tabs-content-wrapper{display:block;top:48px;overflow:hidden}md-tab-content,md-tabs-content-wrapper{position:absolute;left:0;right:0;bottom:0}md-tab-content{display:-webkit-box;display:-webkit-flex;display:flex;top:0;-webkit-transition:-webkit-transform .5s cubic-bezier(.35,0,.25,1);transition:-webkit-transform .5s cubic-bezier(.35,0,.25,1);transition:transform .5s cubic-bezier(.35,0,.25,1);transition:transform .5s cubic-bezier(.35,0,.25,1),-webkit-transform .5s cubic-bezier(.35,0,.25,1);overflow:auto;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}md-tab-content.md-no-scroll{bottom:auto;overflow:hidden}md-tab-content.md-no-transition,md-tab-content.ng-leave{-webkit-transition:none;transition:none}md-tab-content.md-left:not(.md-active){-webkit-transform:translateX(-100%);transform:translateX(-100%);-webkit-animation:1s md-tab-content-hide;animation:1s md-tab-content-hide;opacity:0}[dir=rtl] md-tab-content.md-left:not(.md-active){-webkit-transform:translateX(100%);transform:translateX(100%)}md-tab-content.md-left:not(.md-active) *{-webkit-transition:visibility 0s linear;transition:visibility 0s linear;-webkit-transition-delay:.5s;transition-delay:.5s;visibility:hidden}md-tab-content.md-right:not(.md-active){-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-animation:1s md-tab-content-hide;animation:1s md-tab-content-hide;opacity:0}[dir=rtl] md-tab-content.md-right:not(.md-active){-webkit-transform:translateX(-100%);transform:translateX(-100%)}md-tab-content.md-right:not(.md-active) *{-webkit-transition:visibility 0s linear;transition:visibility 0s linear;-webkit-transition-delay:.5s;transition-delay:.5s;visibility:hidden}md-tab-content>div{-webkit-box-flex:1;-webkit-flex:1 0 100%;flex:1 0 100%;min-width:0}md-tab-content>div.ng-leave{-webkit-animation:1s md-tab-content-hide;animation:1s md-tab-content-hide}md-ink-bar{position:absolute;left:auto;right:auto;bottom:0;height:2px}md-ink-bar.md-left{-webkit-transition:left .125s cubic-bezier(.35,0,.25,1),right .25s cubic-bezier(.35,0,.25,1);transition:left .125s cubic-bezier(.35,0,.25,1),right .25s cubic-bezier(.35,0,.25,1)}md-ink-bar.md-right{-webkit-transition:left .25s cubic-bezier(.35,0,.25,1),right .125s cubic-bezier(.35,0,.25,1);transition:left .25s cubic-bezier(.35,0,.25,1),right .125s cubic-bezier(.35,0,.25,1)}md-tab{position:absolute;z-index:-1;left:-9999px}.md-tab{font-size:14px;text-align:center;line-height:24px;padding:12px 24px;-webkit-transition:background-color .35s cubic-bezier(.35,0,.25,1);transition:background-color .35s cubic-bezier(.35,0,.25,1);cursor:pointer;white-space:nowrap;position:relative;text-transform:uppercase;float:left;font-weight:500;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis}[dir=rtl] .md-tab{float:right}.md-tab.md-focused{box-shadow:none;outline:none}.md-tab.md-active{cursor:default}.md-tab.md-disabled{pointer-events:none;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none;opacity:.5;cursor:default}.md-tab.ng-leave{-webkit-transition:none;transition:none}md-toolbar+md-tabs{border-top-left-radius:0;border-top-right-radius:0} \ No newline at end of file
diff --git a/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.min.js b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.min.js
new file mode 100644
index 00000000..88012cc5
--- /dev/null
+++ b/vnfmarket/common/thirdparty/angular-material/modules/closure/tabs/tabs.min.js
@@ -0,0 +1,7 @@
+/*!
+ * Angular Material Design
+ * https://github.com/angular/material
+ * @license MIT
+ * v1.1.2-master-a9ba340
+ */
+function MdTab(){function e(e,n,a,s){if(s){var r=s.getTabElementIndex(n),d=t(n,"md-tab-body").remove(),i=t(n,"md-tab-label").remove(),o=s.insertTab({scope:e,parent:e.$parent,index:r,element:n,template:d.html(),label:i.html()},r);e.select=e.select||angular.noop,e.deselect=e.deselect||angular.noop,e.$watch("active",function(e){e&&s.select(o.getIndex(),!0)}),e.$watch("disabled",function(){s.refreshIndex()}),e.$watch(function(){return s.getTabElementIndex(n)},function(e){o.index=e,s.updateTabOrder()}),e.$on("$destroy",function(){s.removeTab(o)})}}function t(e,t){for(var n=e[0].children,a=0,s=n.length;a<s;a++){var r=n[a];if(r.tagName===t.toUpperCase())return angular.element(r)}return angular.element()}return{require:"^?mdTabs",terminal:!0,compile:function(n,a){var s=t(n,"md-tab-label"),r=t(n,"md-tab-body");if(0===s.length&&(s=angular.element("<md-tab-label></md-tab-label>"),a.label?s.text(a.label):s.append(n.contents()),0===r.length)){var d=n.contents().detach();r=angular.element("<md-tab-body></md-tab-body>"),r.append(d)}return n.append(s),r.html()&&n.append(r),e},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect"}}}function MdTabItem(){return{require:"^?mdTabs",link:function(e,t,n,a){a&&a.attachRipple(e,t)}}}function MdTabLabel(){return{terminal:!0}}function MdTabScroll(e){return{restrict:"A",compile:function(t,n){var a=e(n.mdTabScroll,null,!0);return function(e,t){t.on("mousewheel",function(t){e.$apply(function(){a(e,{$event:t})})})}}}}function MdTabsController(e,t,n,a,s,r,d,i,o,c,l){function b(){g("stretchTabs",x),Y("focusIndex",y,le.selectedIndex||0),Y("offsetLeft",w,0),Y("hasContent",I,!1),Y("maxTabWidth",$,Q()),Y("shouldPaginate",C,!1),h("noInkBar",E),h("dynamicHeight",F),h("noPagination"),h("swipeContent"),h("noDisconnect"),h("autoselect"),h("noSelectClick"),h("centerTabs",v,!1),h("enableDisconnect"),le.scope=e,le.parent=e.$parent,le.tabs=[],le.lastSelectedIndex=null,le.hasFocus=!1,le.styleTabItemFocus=!1,le.shouldCenterTabs=z(),le.tabContentPrefix="tab-content-",m()}function m(){le.selectedIndex=le.selectedIndex||0,u(),p(),f(),c(t),r.nextTick(function(){me=q(),se(),ee(),re(),le.tabs[le.selectedIndex]&&le.tabs[le.selectedIndex].scope.select(),pe=!0,G()})}function u(){var e=i.$mdTabsTemplate,n=angular.element(t[0].querySelector("md-tab-data"));n.html(e),o(n.contents())(le.parent),delete i.$mdTabsTemplate}function f(){angular.element(n).on("resize",O),e.$on("$destroy",T)}function p(){e.$watch("$mdTabsCtrl.selectedIndex",k)}function g(e,t){var n=i.$normalize("md-"+e);t&&Y(e,t),i.$observe(n,function(t){le[e]=t})}function h(e,t){function n(t){le[e]="false"!==t}var a=i.$normalize("md-"+e);t&&Y(e,t),i.hasOwnProperty(a)&&n(i[a]),i.$observe(a,n)}function T(){fe=!0,angular.element(n).off("resize",O)}function x(e){var t=q();angular.element(t.wrapper).toggleClass("md-stretch-tabs",N()),re()}function v(e){le.shouldCenterTabs=z()}function $(e,t){if(e!==t){var n=q();angular.forEach(n.tabs,function(t){t.style.maxWidth=e+"px"}),r.nextTick(le.updateInkBarStyles)}}function C(e,t){e!==t&&(le.maxTabWidth=Q(),le.shouldCenterTabs=z(),r.nextTick(function(){le.maxTabWidth=Q(),ee(le.selectedIndex)}))}function I(e){t[e?"removeClass":"addClass"]("md-no-tab-content")}function w(t){var n=q(),s=le.shouldCenterTabs?"":"-"+t+"px";angular.element(n.paging).css(a.CSS.TRANSFORM,"translate3d("+s+", 0, 0)"),e.$broadcast("$mdTabsPaginationChanged")}function y(e,t){e!==t&&q().tabs[e]&&(ee(),Z())}function k(t,n){t!==n&&(le.selectedIndex=K(t),le.lastSelectedIndex=n,le.updateInkBarStyles(),se(),ee(t),e.$broadcast("$mdTabsChanged"),le.tabs[n]&&le.tabs[n].scope.deselect(),le.tabs[t]&&le.tabs[t].scope.select())}function S(e){var n=t[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(n,e[0])}function M(){M.watcher||(M.watcher=e.$watch(function(){r.nextTick(function(){M.watcher&&t.prop("offsetParent")&&(M.watcher(),M.watcher=null,O())},!1)}))}function L(e){switch(e.keyCode){case a.KEY_CODE.LEFT_ARROW:e.preventDefault(),X(-1,!0);break;case a.KEY_CODE.RIGHT_ARROW:e.preventDefault(),X(1,!0);break;case a.KEY_CODE.SPACE:case a.KEY_CODE.ENTER:e.preventDefault(),be||P(le.focusIndex)}}function P(e,t){be||(le.focusIndex=le.selectedIndex=e),t&&le.noSelectClick||r.nextTick(function(){le.tabs[e].element.triggerHandler("click")},!1)}function W(e){le.shouldPaginate&&(e.preventDefault(),le.offsetLeft=ie(le.offsetLeft-e.wheelDelta))}function D(){var e,t,n=q(),a=n.canvas.clientWidth,s=a+le.offsetLeft;for(e=0;e<n.tabs.length&&(t=n.tabs[e],!(t.offsetLeft+t.offsetWidth>s));e++);a>t.offsetWidth?le.offsetLeft=ie(t.offsetLeft):le.offsetLeft=ie(t.offsetLeft+(t.offsetWidth-a+1))}function A(){var e,t,n=q();for(e=0;e<n.tabs.length&&(t=n.tabs[e],!(t.offsetLeft+t.offsetWidth>=le.offsetLeft));e++);n.canvas.clientWidth>t.offsetWidth?le.offsetLeft=ie(t.offsetLeft+t.offsetWidth-n.canvas.clientWidth):le.offsetLeft=ie(t.offsetLeft)}function O(){le.lastSelectedIndex=le.selectedIndex,le.offsetLeft=ie(le.offsetLeft),r.nextTick(function(){le.updateInkBarStyles(),G()})}function E(e){angular.element(q().inkBar).toggleClass("ng-hide",e)}function F(e){t.toggleClass("md-dynamic-height",e)}function B(e){if(!fe){var t=le.selectedIndex,n=le.tabs.splice(e.getIndex(),1)[0];ae(),le.selectedIndex===t&&(n.scope.deselect(),le.tabs[le.selectedIndex]&&le.tabs[le.selectedIndex].scope.select()),r.nextTick(function(){G(),le.offsetLeft=ie(le.offsetLeft)})}}function R(e,t){var n=pe,a={getIndex:function(){return le.tabs.indexOf(s)},isActive:function(){return this.getIndex()===le.selectedIndex},isLeft:function(){return this.getIndex()<le.selectedIndex},isRight:function(){return this.getIndex()>le.selectedIndex},shouldRender:function(){return!le.noDisconnect||this.isActive()},hasFocus:function(){return le.styleTabItemFocus&&le.hasFocus&&this.getIndex()===le.focusIndex},id:r.nextUid(),hasContent:!(!e.template||!e.template.trim())},s=angular.extend(a,e);return angular.isDefined(t)?le.tabs.splice(t,0,s):le.tabs.push(s),te(),ne(),r.nextTick(function(){G(),ce(s),n&&le.autoselect&&r.nextTick(function(){r.nextTick(function(){P(le.tabs.indexOf(s))})})}),s}function q(){var e={},n=t[0];return e.wrapper=n.querySelector("md-tabs-wrapper"),e.canvas=e.wrapper.querySelector("md-tabs-canvas"),e.paging=e.canvas.querySelector("md-pagination-wrapper"),e.inkBar=e.paging.querySelector("md-ink-bar"),e.contents=n.querySelectorAll("md-tabs-content-wrapper > md-tab-content"),e.tabs=e.paging.querySelectorAll("md-tab-item"),e.dummies=e.canvas.querySelectorAll("md-dummy-tab"),e}function H(){return le.offsetLeft>0}function _(){var e=q(),t=e.tabs[e.tabs.length-1];return t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+le.offsetLeft}function j(){var e=le.tabs[le.focusIndex];return e&&e.id?"tab-item-"+e.id:null}function N(){switch(le.stretchTabs){case"always":return!0;case"never":return!1;default:return!le.shouldPaginate&&n.matchMedia("(max-width: 600px)").matches}}function z(){return le.centerTabs&&!le.shouldPaginate}function U(){if(le.noPagination||!pe)return!1;var e=t.prop("clientWidth");return angular.forEach(q().dummies,function(t){e-=t.offsetWidth}),e<0}function K(e){if(e===-1)return-1;var t,n,a=Math.max(le.tabs.length-e,e);for(t=0;t<=a;t++){if(n=le.tabs[e+t],n&&n.scope.disabled!==!0)return n.getIndex();if(n=le.tabs[e-t],n&&n.scope.disabled!==!0)return n.getIndex()}return e}function Y(e,t,n){Object.defineProperty(le,e,{get:function(){return n},set:function(e){var a=n;n=e,t&&t(e,a)}})}function G(){le.maxTabWidth=Q(),le.shouldPaginate=U()}function J(e){var t=0;return angular.forEach(e,function(e){t+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(t)}function Q(){return t.prop("clientWidth")}function V(){var e=le.tabs[le.selectedIndex],t=le.tabs[le.focusIndex];le.tabs=le.tabs.sort(function(e,t){return e.index-t.index}),le.selectedIndex=le.tabs.indexOf(e),le.focusIndex=le.tabs.indexOf(t)}function X(e,t){var n,a=t?"focusIndex":"selectedIndex",s=le[a];for(n=s+e;le.tabs[n]&&le.tabs[n].scope.disabled;n+=e);le.tabs[n]&&(le[a]=n)}function Z(){le.styleTabItemFocus="keyboard"===l.getLastInteractionType(),q().dummies[le.focusIndex].focus()}function ee(e){var t=q();if(angular.isNumber(e)||(e=le.focusIndex),t.tabs[e]&&!le.shouldCenterTabs){var n=t.tabs[e],a=n.offsetLeft,s=n.offsetWidth+a;le.offsetLeft=Math.max(le.offsetLeft,ie(s-t.canvas.clientWidth+64)),le.offsetLeft=Math.min(le.offsetLeft,ie(a))}}function te(){ue.forEach(function(e){r.nextTick(e)}),ue=[]}function ne(){for(var e=!1,t=0;t<le.tabs.length;t++)if(le.tabs[t].hasContent){e=!0;break}le.hasContent=e}function ae(){le.selectedIndex=K(le.selectedIndex),le.focusIndex=K(le.focusIndex)}function se(){if(!le.dynamicHeight)return t.css("height","");if(!le.tabs.length)return ue.push(se);var e=q(),n=e.contents[le.selectedIndex],a=n?n.offsetHeight:0,s=e.wrapper.offsetHeight,i=a+s,o=t.prop("clientHeight");if(o!==i){"bottom"===t.attr("md-align-tabs")&&(o-=s,i-=s,void 0!==t.attr("md-border-bottom")&&++o),be=!0;var c={height:o+"px"},l={height:i+"px"};t.css(c),d(t,{from:c,to:l,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){t.css({transition:"none",height:""}),r.nextTick(function(){t.css("transition","")}),be=!1})}}function re(){var e=q();if(!e.tabs[le.selectedIndex])return void angular.element(e.inkBar).css({left:"auto",right:"auto"});if(!le.tabs.length)return ue.push(le.updateInkBarStyles);if(!t.prop("offsetParent"))return M();var n=le.selectedIndex,a=e.paging.offsetWidth,s=e.tabs[n],d=s.offsetLeft,i=a-d-s.offsetWidth;if(le.shouldCenterTabs){var o=J(e.tabs);a>o&&r.nextTick(re,!1)}de(),angular.element(e.inkBar).css({left:d+"px",right:i+"px"})}function de(){var e=q(),t=le.selectedIndex,n=le.lastSelectedIndex,a=angular.element(e.inkBar);angular.isNumber(n)&&a.toggleClass("md-left",t<n).toggleClass("md-right",t>n)}function ie(e){var t=q();if(!t.tabs.length||!le.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],a=n.offsetLeft+n.offsetWidth;return e=Math.max(0,e),e=Math.min(a-t.canvas.clientWidth,e)}function oe(e,t){var n=q(),a={colorElement:angular.element(n.inkBar)};s.attach(e,t,a)}function ce(e){if(e.hasContent){var n=t[0].querySelectorAll('[md-tab-id="'+e.id+'"]');angular.element(n).attr("aria-controls",le.tabContentPrefix+e.id)}}var le=this,be=!1,me=q(),ue=[],fe=!1,pe=!1;le.$onInit=b,le.updatePagination=r.debounce(G,100),le.redirectFocus=Z,le.attachRipple=oe,le.insertTab=R,le.removeTab=B,le.select=P,le.scroll=W,le.nextPage=D,le.previousPage=A,le.keydown=L,le.canPageForward=_,le.canPageBack=H,le.refreshIndex=ae,le.incrementIndex=X,le.getTabElementIndex=S,le.updateInkBarStyles=r.debounce(re,100),le.updateTabOrder=r.debounce(V,100),le.getFocusedTabId=j,1===angular.version.major&&angular.version.minor<=4&&this.$onInit()}function MdTabs(e){return{scope:{selectedIndex:"=?mdSelected"},template:function(t,n){return n.$mdTabsTemplate=t.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas tabindex="{{ $mdTabsCtrl.hasFocus ? -1 : 0 }}" aria-activedescendant="{{$mdTabsCtrl.getFocusedTabId()}}" ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)" role="tablist"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)"> <md-tab-item tabindex="-1" class="md-tab" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-class="{ \'md-active\': tab.isActive(), \'md-focused\': tab.hasFocus(), \'md-disabled\': tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <md-tabs-dummy-wrapper class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </md-tabs-dummy-wrapper> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> <md-tab-content id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" class="_md" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" ng-if="tab.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\': tab.isActive(), \'md-left\': tab.isLeft(), \'md-right\': tab.isRight(), \'md-no-scroll\': $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}function MdTabsDummyWrapper(e,t){return{require:"^?mdTabs",link:function(n,a,s,r){if(r){var d,i,o=function(){r.updatePagination(),r.updateInkBarStyles()};if("MutationObserver"in t){var c={childList:!0,subtree:!0,characterData:!0};d=new MutationObserver(o),d.observe(a[0],c),i=d.disconnect.bind(d)}else{var l=e.debounce(o,15,null,!1);a.on("DOMSubtreeModified",l),i=a.off.bind(a,"DOMSubtreeModified",l)}n.$on("$destroy",function(){i()})}}}}function MdTabsTemplate(e,t){function n(n,a,s,r){function d(){n.$watch("connected",function(e){e===!1?i():o()}),n.$on("$destroy",o)}function i(){r.enableDisconnect&&t.disconnectScope(c)}function o(){r.enableDisconnect&&t.reconnectScope(c)}if(r){var c=r.enableDisconnect?n.compileScope.$new():n.compileScope;return a.html(n.template),e(a.contents())(c),t.nextTick(d)}}return{restrict:"A",link:n,scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}goog.provide("ngmaterial.components.tabs"),goog.require("ngmaterial.components.icon"),goog.require("ngmaterial.core"),angular.module("material.components.tabs",["material.core","material.components.icon"]),angular.module("material.components.tabs").directive("mdTab",MdTab),angular.module("material.components.tabs").directive("mdTabItem",MdTabItem),angular.module("material.components.tabs").directive("mdTabLabel",MdTabLabel),MdTabScroll.$inject=["$parse"],angular.module("material.components.tabs").directive("mdTabScroll",MdTabScroll),MdTabsController.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction"],angular.module("material.components.tabs").controller("MdTabsController",MdTabsController),MdTabs.$inject=["$$mdSvgRegistry"],angular.module("material.components.tabs").directive("mdTabs",MdTabs),MdTabsDummyWrapper.$inject=["$mdUtil","$window"],angular.module("material.components.tabs").directive("mdTabsDummyWrapper",MdTabsDummyWrapper),MdTabsTemplate.$inject=["$compile","$mdUtil"],angular.module("material.components.tabs").directive("mdTabsTemplate",MdTabsTemplate),ngmaterial.components.tabs=angular.module("material.components.tabs"); \ No newline at end of file