@skyux/tabs 5.0.3 → 5.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/bundles/skyux-tabs-testing.umd.js +1 -1
- package/bundles/skyux-tabs.umd.js +267 -299
- package/documentation.json +829 -544
- package/esm2015/index.js +23 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/lib/modules/sectioned-form/sectioned-form-section.component.js +67 -0
- package/esm2015/lib/modules/sectioned-form/sectioned-form-section.component.js.map +1 -0
- package/esm2015/lib/modules/sectioned-form/sectioned-form.component.js +116 -0
- package/esm2015/lib/modules/sectioned-form/sectioned-form.component.js.map +1 -0
- package/esm2015/lib/modules/sectioned-form/sectioned-form.module.js +35 -0
- package/esm2015/lib/modules/sectioned-form/sectioned-form.module.js.map +1 -0
- package/esm2015/lib/modules/sectioned-form/sectioned-form.service.js +35 -0
- package/esm2015/lib/modules/sectioned-form/sectioned-form.service.js.map +1 -0
- package/esm2015/lib/modules/shared/sky-tabs-resources.module.js +52 -0
- package/esm2015/lib/modules/shared/sky-tabs-resources.module.js.map +1 -0
- package/esm2015/lib/modules/tabs/tab-button.component.js +76 -0
- package/esm2015/lib/modules/tabs/tab-button.component.js.map +1 -0
- package/esm2015/lib/modules/tabs/tab-index.js +2 -0
- package/esm2015/lib/modules/tabs/tab-index.js.map +1 -0
- package/esm2015/lib/modules/tabs/tab.component.js +135 -0
- package/esm2015/lib/modules/tabs/tab.component.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabs.module.js +57 -0
- package/esm2015/lib/modules/tabs/tabs.module.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabset-active-tab-unregistered-args.js +2 -0
- package/esm2015/lib/modules/tabs/tabset-active-tab-unregistered-args.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabset-adapter.service.js +56 -0
- package/esm2015/lib/modules/tabs/tabset-adapter.service.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabset-buttons-display-mode.js +2 -0
- package/esm2015/lib/modules/tabs/tabset-buttons-display-mode.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabset-nav-button.component.js +119 -0
- package/esm2015/lib/modules/tabs/tabset-nav-button.component.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabset-permalink.service.js +126 -0
- package/esm2015/lib/modules/tabs/tabset-permalink.service.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabset-style.js +2 -0
- package/esm2015/lib/modules/tabs/tabset-style.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabset-tab-indexes-change.js +2 -0
- package/esm2015/lib/modules/tabs/tabset-tab-indexes-change.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabset.component.js +405 -0
- package/esm2015/lib/modules/tabs/tabset.component.js.map +1 -0
- package/esm2015/lib/modules/tabs/tabset.service.js +110 -0
- package/esm2015/lib/modules/tabs/tabset.service.js.map +1 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tab-media-query.service.js +72 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tab-media-query.service.js.map +1 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tab.component.js +203 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tab.component.js.map +1 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset-adapter.service.js +48 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset-adapter.service.js.map +1 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset-group.component.js +89 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset-group.component.js.map +1 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset.component.js +157 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset.component.js.map +1 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset.module.js +60 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset.module.js.map +1 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset.service.js +170 -0
- package/esm2015/lib/modules/vertical-tabset/vertical-tabset.service.js.map +1 -0
- package/esm2015/skyux-tabs.js +2 -2
- package/esm2015/skyux-tabs.js.map +1 -0
- package/esm2015/testing/public-api.js +1 -1
- package/esm2015/testing/public-api.js.map +1 -0
- package/esm2015/testing/skyux-tabs-testing.js +1 -1
- package/esm2015/testing/skyux-tabs-testing.js.map +1 -0
- package/esm2015/testing/tabs/tab-fixture-tab.js +1 -1
- package/esm2015/testing/tabs/tab-fixture-tab.js.map +1 -0
- package/esm2015/testing/tabs/tabset-fixture.js +2 -2
- package/esm2015/testing/tabs/tabset-fixture.js.map +1 -0
- package/fesm2015/skyux-tabs-testing.js +1 -1
- package/fesm2015/skyux-tabs-testing.js.map +1 -1
- package/fesm2015/skyux-tabs.js +382 -401
- package/fesm2015/skyux-tabs.js.map +1 -1
- package/index.d.ts +16 -0
- package/{modules → lib/modules}/sectioned-form/sectioned-form-section.component.d.ts +0 -3
- package/{modules → lib/modules}/sectioned-form/sectioned-form.component.d.ts +0 -0
- package/{modules → lib/modules}/sectioned-form/sectioned-form.module.d.ts +0 -0
- package/{modules → lib/modules}/sectioned-form/sectioned-form.service.d.ts +0 -0
- package/{modules → lib/modules}/shared/sky-tabs-resources.module.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tab-button.component.d.ts +2 -2
- package/{modules → lib/modules}/tabs/tab-index.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tab.component.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tabs.module.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tabset-active-tab-unregistered-args.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tabset-adapter.service.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tabset-buttons-display-mode.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tabset-nav-button.component.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tabset-permalink.service.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tabset-style.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tabset-tab-indexes-change.d.ts +0 -0
- package/{modules → lib/modules}/tabs/tabset.component.d.ts +1 -1
- package/{modules → lib/modules}/tabs/tabset.service.d.ts +0 -0
- package/{modules → lib/modules}/vertical-tabset/vertical-tab-media-query.service.d.ts +0 -0
- package/{modules → lib/modules}/vertical-tabset/vertical-tab.component.d.ts +8 -13
- package/{modules → lib/modules}/vertical-tabset/vertical-tabset-adapter.service.d.ts +0 -0
- package/{modules → lib/modules}/vertical-tabset/vertical-tabset-group.component.d.ts +2 -2
- package/{modules → lib/modules}/vertical-tabset/vertical-tabset.component.d.ts +17 -2
- package/{modules → lib/modules}/vertical-tabset/vertical-tabset.module.d.ts +4 -3
- package/{modules → lib/modules}/vertical-tabset/vertical-tabset.service.d.ts +0 -0
- package/package.json +11 -11
- package/skyux-tabs.d.ts +1 -1
- package/LICENSE +0 -21
- package/bundles/skyux-tabs-testing.umd.js.map +0 -1
- package/bundles/skyux-tabs.umd.js.map +0 -1
- package/esm2015/modules/sectioned-form/sectioned-form-section.component.js +0 -71
- package/esm2015/modules/sectioned-form/sectioned-form.component.js +0 -116
- package/esm2015/modules/sectioned-form/sectioned-form.module.js +0 -43
- package/esm2015/modules/sectioned-form/sectioned-form.service.js +0 -35
- package/esm2015/modules/shared/sky-tabs-resources.module.js +0 -41
- package/esm2015/modules/tabs/tab-button.component.js +0 -65
- package/esm2015/modules/tabs/tab-index.js +0 -2
- package/esm2015/modules/tabs/tab.component.js +0 -134
- package/esm2015/modules/tabs/tabs.module.js +0 -63
- package/esm2015/modules/tabs/tabset-active-tab-unregistered-args.js +0 -2
- package/esm2015/modules/tabs/tabset-adapter.service.js +0 -54
- package/esm2015/modules/tabs/tabset-buttons-display-mode.js +0 -2
- package/esm2015/modules/tabs/tabset-nav-button.component.js +0 -117
- package/esm2015/modules/tabs/tabset-permalink.service.js +0 -119
- package/esm2015/modules/tabs/tabset-style.js +0 -2
- package/esm2015/modules/tabs/tabset-tab-indexes-change.js +0 -2
- package/esm2015/modules/tabs/tabset.component.js +0 -402
- package/esm2015/modules/tabs/tabset.service.js +0 -111
- package/esm2015/modules/vertical-tabset/vertical-tab-media-query.service.js +0 -72
- package/esm2015/modules/vertical-tabset/vertical-tab.component.js +0 -187
- package/esm2015/modules/vertical-tabset/vertical-tabset-adapter.service.js +0 -48
- package/esm2015/modules/vertical-tabset/vertical-tabset-group.component.js +0 -134
- package/esm2015/modules/vertical-tabset/vertical-tabset.component.js +0 -152
- package/esm2015/modules/vertical-tabset/vertical-tabset.module.js +0 -60
- package/esm2015/modules/vertical-tabset/vertical-tabset.service.js +0 -170
- package/esm2015/public-api.js +0 -23
- package/public-api.d.ts +0 -16
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@skyux/core'), require('@skyux/indicators'), require('@skyux/theme'), require('@skyux/i18n'), require('@skyux/forms'), require('@angular/router'), require('@skyux/popovers')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@skyux/tabs', ['exports', '@angular/core', '@angular/common', '@angular/animations', 'rxjs', 'rxjs/operators', '@skyux/core', '@skyux/indicators', '@skyux/theme', '@skyux/i18n', '@skyux/forms', '@angular/router', '@skyux/popovers'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.tabs = {}), global.ng.core, global.ng.common, global.ng.animations, global.rxjs, global.rxjs.operators, global.i1, global.i4, global.
|
|
5
|
-
})(this, (function (exports, i0, i2, animations, rxjs, operators, i1, i4,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/animations'), require('rxjs'), require('rxjs/operators'), require('@skyux/core'), require('@skyux/indicators'), require('@skyux/theme'), require('@skyux/i18n'), require('@skyux/animations'), require('@skyux/forms'), require('@angular/router'), require('@skyux/popovers')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@skyux/tabs', ['exports', '@angular/core', '@angular/common', '@angular/animations', 'rxjs', 'rxjs/operators', '@skyux/core', '@skyux/indicators', '@skyux/theme', '@skyux/i18n', '@skyux/animations', '@skyux/forms', '@angular/router', '@skyux/popovers'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.tabs = {}), global.ng.core, global.ng.common, global.ng.animations, global.rxjs, global.rxjs.operators, global.i1, global.i4, global.i8, global.i3, global.animations$1, global.forms, global.ng.router, global.i4$1));
|
|
5
|
+
})(this, (function (exports, i0, i2, animations, rxjs, operators, i1, i4, i8, i3, animations$1, forms, i1$1, i4$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
27
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
28
28
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
29
|
-
var
|
|
29
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
30
30
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
31
31
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
32
|
-
var i4__namespace$
|
|
32
|
+
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
33
33
|
|
|
34
34
|
var VISIBLE_STATE = 'shown';
|
|
35
35
|
var HIDDEN_STATE = 'void';
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
this.tabs.splice(tabIndex, 1);
|
|
104
104
|
// update tab indices
|
|
105
|
-
this.tabs.forEach(function (tabItem, index) { return tabItem.index = index; });
|
|
105
|
+
this.tabs.forEach(function (tabItem, index) { return (tabItem.index = index); });
|
|
106
106
|
if (tab.active) {
|
|
107
107
|
if (!this.maintainTabContent) {
|
|
108
108
|
this.destroyContent();
|
|
@@ -199,9 +199,9 @@
|
|
|
199
199
|
};
|
|
200
200
|
return SkyVerticalTabsetService;
|
|
201
201
|
}());
|
|
202
|
-
SkyVerticalTabsetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
203
|
-
SkyVerticalTabsetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
204
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
202
|
+
SkyVerticalTabsetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetService, deps: [{ token: i1__namespace.SkyMediaQueryService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
203
|
+
SkyVerticalTabsetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetService });
|
|
204
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetService, decorators: [{
|
|
205
205
|
type: i0.Injectable
|
|
206
206
|
}], ctorParameters: function () { return [{ type: i1__namespace.SkyMediaQueryService }]; } });
|
|
207
207
|
|
|
@@ -272,26 +272,26 @@
|
|
|
272
272
|
};
|
|
273
273
|
return SkySectionedFormComponent;
|
|
274
274
|
}());
|
|
275
|
-
SkySectionedFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
276
|
-
SkySectionedFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
275
|
+
SkySectionedFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormComponent, deps: [{ token: SkyVerticalTabsetService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
276
|
+
SkySectionedFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySectionedFormComponent, selector: "sky-sectioned-form", inputs: { maintainSectionContent: "maintainSectionContent" }, outputs: { indexChanged: "indexChanged" }, providers: [SkyVerticalTabsetService], viewQueries: [{ propertyName: "content", first: true, predicate: ["skySectionSideContent"], descendants: true }], ngImport: i0__namespace, template: "<div\n aria-orientation=\"vertical\"\n class=\"sky-sectioned-form\"\n [attr.role]=\"ariaRole\"\n (window:resize)=\"tabService.updateContent()\"\n>\n <div\n *ngIf=\"maintainSectionContent || tabsVisible()\"\n class=\"sky-sectioned-form-tabs\"\n [ngClass]=\"{ 'sky-sectioned-form-tabs-hidden': !tabsVisible() }\"\n [@tabEnter]=\"tabService.animationTabsVisibleState\"\n >\n <ng-content></ng-content>\n </div>\n <div\n *ngIf=\"maintainSectionContent || tabService.contentVisible()\"\n class=\"sky-sectioned-form-content\"\n [ngClass]=\"{\n 'sky-sectioned-form-content-hidden': !tabService.contentVisible()\n }\"\n [@contentEnter]=\"tabService.animationContentVisibleState\"\n #skySectionSideContent\n ></div>\n</div>\n", styles: [":host .sky-sectioned-form{display:block;max-height:none}:host .sky-sectioned-form-content{flex-basis:auto;overflow-y:visible}:host .sky-sectioned-form-tabs{flex-basis:auto;overflow-y:visible;border-right:1px solid #e2e3e4}:host-context(.sky-responsive-container-xs) .sky-sectioned-form,:host-context(.sky-responsive-container-sm) .sky-sectioned-form,:host-context(.sky-responsive-container-md) .sky-sectioned-form,:host-context(.sky-responsive-container-lg) .sky-sectioned-form{display:block;max-height:none}:host-context(.sky-responsive-container-xs) .sky-sectioned-form-content,:host-context(.sky-responsive-container-sm) .sky-sectioned-form-content,:host-context(.sky-responsive-container-md) .sky-sectioned-form-content,:host-context(.sky-responsive-container-lg) .sky-sectioned-form-content{flex-basis:auto;overflow-y:visible}:host-context(.sky-responsive-container-xs) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-sm) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-md) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-lg) .sky-sectioned-form-tabs{flex-basis:auto;overflow-y:visible;border-right:1px solid #e2e3e4}@media (min-width: 768px){:host .sky-sectioned-form{display:flex;max-height:100%}:host .sky-sectioned-form-content{flex-basis:70%;margin:15px;overflow-y:auto}:host .sky-sectioned-form-tabs{flex-basis:30%;overflow-y:auto}}:host-context(.sky-responsive-container-sm) .sky-sectioned-form,:host-context(.sky-responsive-container-md) .sky-sectioned-form,:host-context(.sky-responsive-container-lg) .sky-sectioned-form{display:flex;max-height:100%}:host-context(.sky-responsive-container-sm) .sky-sectioned-form-content,:host-context(.sky-responsive-container-md) .sky-sectioned-form-content,:host-context(.sky-responsive-container-lg) .sky-sectioned-form-content{flex-basis:70%;margin:15px;overflow-y:auto}:host-context(.sky-responsive-container-sm) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-md) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-lg) .sky-sectioned-form-tabs{flex-basis:30%;overflow-y:auto}.sky-sectioned-form-tabs-hidden{display:none}.sky-sectioned-form-content-hidden{display:none}:host-context(.sky-theme-modern) .sky-sectioned-form-content{margin:15px}:host-context(.sky-theme-modern) .sky-sectioned-form-tabs{border-right:1px solid #d2d2d2}@media (min-width: 768px){:host-context(.sky-theme-modern) :host .sky-sectioned-form-content{margin:20px 30px}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-sectioned-form-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-sectioned-form-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-sectioned-form-content{margin:20px 30px}.sky-theme-modern .sky-sectioned-form-content{margin:15px}.sky-theme-modern .sky-sectioned-form-tabs{border-right:1px solid #d2d2d2}@media (min-width: 768px){.sky-theme-modern :host .sky-sectioned-form-content{margin:20px 30px}}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-sectioned-form-content,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-sectioned-form-content,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-sectioned-form-content{margin:20px 30px}\n"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
|
277
277
|
animations.trigger('tabEnter', [
|
|
278
278
|
animations.transition(HIDDEN_STATE + " => " + VISIBLE_STATE, [
|
|
279
279
|
animations.style({ transform: 'translate(-100%)' }),
|
|
280
|
-
animations.animate('150ms ease-in')
|
|
281
|
-
])
|
|
280
|
+
animations.animate('150ms ease-in'),
|
|
281
|
+
]),
|
|
282
282
|
]),
|
|
283
283
|
animations.trigger('contentEnter', [
|
|
284
284
|
animations.transition(HIDDEN_STATE + " => " + VISIBLE_STATE, [
|
|
285
285
|
animations.style({ transform: 'translate(100%)' }),
|
|
286
|
-
animations.animate('150ms ease-in')
|
|
287
|
-
])
|
|
288
|
-
])
|
|
286
|
+
animations.animate('150ms ease-in'),
|
|
287
|
+
]),
|
|
288
|
+
]),
|
|
289
289
|
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
290
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
290
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormComponent, decorators: [{
|
|
291
291
|
type: i0.Component,
|
|
292
292
|
args: [{
|
|
293
293
|
selector: 'sky-sectioned-form',
|
|
294
|
-
template: "<div\n aria-orientation=\"vertical\"\n class=\"sky-sectioned-form\"\n [attr.role]=\"ariaRole\"\n (window:resize)=\"tabService.updateContent()\"\n>\n <div\n *ngIf=\"maintainSectionContent || tabsVisible()\"\n class=\"sky-sectioned-form-tabs\"\n [ngClass]=\"{'sky-sectioned-form-tabs-hidden': !tabsVisible()}\"\n [@tabEnter]=\"tabService.animationTabsVisibleState\"\n >\n <ng-content></ng-content>\n </div>\n <div\n *ngIf=\"maintainSectionContent || tabService.contentVisible()\"\n class=\"sky-sectioned-form-content\"\n [ngClass]=\"{'sky-sectioned-form-content-hidden': !tabService.contentVisible()}\"\n [@contentEnter]=\"tabService.animationContentVisibleState\"\n #skySectionSideContent\n
|
|
294
|
+
template: "<div\n aria-orientation=\"vertical\"\n class=\"sky-sectioned-form\"\n [attr.role]=\"ariaRole\"\n (window:resize)=\"tabService.updateContent()\"\n>\n <div\n *ngIf=\"maintainSectionContent || tabsVisible()\"\n class=\"sky-sectioned-form-tabs\"\n [ngClass]=\"{ 'sky-sectioned-form-tabs-hidden': !tabsVisible() }\"\n [@tabEnter]=\"tabService.animationTabsVisibleState\"\n >\n <ng-content></ng-content>\n </div>\n <div\n *ngIf=\"maintainSectionContent || tabService.contentVisible()\"\n class=\"sky-sectioned-form-content\"\n [ngClass]=\"{\n 'sky-sectioned-form-content-hidden': !tabService.contentVisible()\n }\"\n [@contentEnter]=\"tabService.animationContentVisibleState\"\n #skySectionSideContent\n ></div>\n</div>\n",
|
|
295
295
|
styles: [":host .sky-sectioned-form{display:block;max-height:none}:host .sky-sectioned-form-content{flex-basis:auto;overflow-y:visible}:host .sky-sectioned-form-tabs{flex-basis:auto;overflow-y:visible;border-right:1px solid #e2e3e4}:host-context(.sky-responsive-container-xs) .sky-sectioned-form,:host-context(.sky-responsive-container-sm) .sky-sectioned-form,:host-context(.sky-responsive-container-md) .sky-sectioned-form,:host-context(.sky-responsive-container-lg) .sky-sectioned-form{display:block;max-height:none}:host-context(.sky-responsive-container-xs) .sky-sectioned-form-content,:host-context(.sky-responsive-container-sm) .sky-sectioned-form-content,:host-context(.sky-responsive-container-md) .sky-sectioned-form-content,:host-context(.sky-responsive-container-lg) .sky-sectioned-form-content{flex-basis:auto;overflow-y:visible}:host-context(.sky-responsive-container-xs) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-sm) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-md) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-lg) .sky-sectioned-form-tabs{flex-basis:auto;overflow-y:visible;border-right:1px solid #e2e3e4}@media (min-width: 768px){:host .sky-sectioned-form{display:flex;max-height:100%}:host .sky-sectioned-form-content{flex-basis:70%;margin:15px;overflow-y:auto}:host .sky-sectioned-form-tabs{flex-basis:30%;overflow-y:auto}}:host-context(.sky-responsive-container-sm) .sky-sectioned-form,:host-context(.sky-responsive-container-md) .sky-sectioned-form,:host-context(.sky-responsive-container-lg) .sky-sectioned-form{display:flex;max-height:100%}:host-context(.sky-responsive-container-sm) .sky-sectioned-form-content,:host-context(.sky-responsive-container-md) .sky-sectioned-form-content,:host-context(.sky-responsive-container-lg) .sky-sectioned-form-content{flex-basis:70%;margin:15px;overflow-y:auto}:host-context(.sky-responsive-container-sm) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-md) .sky-sectioned-form-tabs,:host-context(.sky-responsive-container-lg) .sky-sectioned-form-tabs{flex-basis:30%;overflow-y:auto}.sky-sectioned-form-tabs-hidden{display:none}.sky-sectioned-form-content-hidden{display:none}:host-context(.sky-theme-modern) .sky-sectioned-form-content{margin:15px}:host-context(.sky-theme-modern) .sky-sectioned-form-tabs{border-right:1px solid #d2d2d2}@media (min-width: 768px){:host-context(.sky-theme-modern) :host .sky-sectioned-form-content{margin:20px 30px}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-sectioned-form-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-sectioned-form-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-sectioned-form-content{margin:20px 30px}.sky-theme-modern .sky-sectioned-form-content{margin:15px}.sky-theme-modern .sky-sectioned-form-tabs{border-right:1px solid #d2d2d2}@media (min-width: 768px){.sky-theme-modern :host .sky-sectioned-form-content{margin:20px 30px}}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-sectioned-form-content,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-sectioned-form-content,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-sectioned-form-content{margin:20px 30px}\n"],
|
|
296
296
|
providers: [SkyVerticalTabsetService],
|
|
297
297
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
@@ -299,16 +299,16 @@
|
|
|
299
299
|
animations.trigger('tabEnter', [
|
|
300
300
|
animations.transition(HIDDEN_STATE + " => " + VISIBLE_STATE, [
|
|
301
301
|
animations.style({ transform: 'translate(-100%)' }),
|
|
302
|
-
animations.animate('150ms ease-in')
|
|
303
|
-
])
|
|
302
|
+
animations.animate('150ms ease-in'),
|
|
303
|
+
]),
|
|
304
304
|
]),
|
|
305
305
|
animations.trigger('contentEnter', [
|
|
306
306
|
animations.transition(HIDDEN_STATE + " => " + VISIBLE_STATE, [
|
|
307
307
|
animations.style({ transform: 'translate(100%)' }),
|
|
308
|
-
animations.animate('150ms ease-in')
|
|
309
|
-
])
|
|
310
|
-
])
|
|
311
|
-
]
|
|
308
|
+
animations.animate('150ms ease-in'),
|
|
309
|
+
]),
|
|
310
|
+
]),
|
|
311
|
+
],
|
|
312
312
|
}]
|
|
313
313
|
}], ctorParameters: function () { return [{ type: SkyVerticalTabsetService }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { maintainSectionContent: [{
|
|
314
314
|
type: i0.Input
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
return this.currentSubject.subscribe({
|
|
340
340
|
next: function (breakpoints) {
|
|
341
341
|
listener(breakpoints);
|
|
342
|
-
}
|
|
342
|
+
},
|
|
343
343
|
});
|
|
344
344
|
};
|
|
345
345
|
SkyVerticalTabMediaQueryService.prototype.setBreakpointForWidth = function (width) {
|
|
@@ -368,16 +368,16 @@
|
|
|
368
368
|
var lgBreakpointMinPixels = 1200;
|
|
369
369
|
switch (breakpoint) {
|
|
370
370
|
case i1.SkyMediaBreakpoints.xs: {
|
|
371
|
-
return
|
|
371
|
+
return width <= xsBreakpointMaxPixels;
|
|
372
372
|
}
|
|
373
373
|
case i1.SkyMediaBreakpoints.sm: {
|
|
374
|
-
return
|
|
374
|
+
return width >= smBreakpointMinPixels && width <= smBreakpointMaxPixels;
|
|
375
375
|
}
|
|
376
376
|
case i1.SkyMediaBreakpoints.md: {
|
|
377
|
-
return
|
|
377
|
+
return width >= mdBreakpointMinPixels && width <= mdBreakpointMaxPixels;
|
|
378
378
|
}
|
|
379
379
|
default: {
|
|
380
|
-
return
|
|
380
|
+
return width >= lgBreakpointMinPixels;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
};
|
|
@@ -386,9 +386,9 @@
|
|
|
386
386
|
};
|
|
387
387
|
return SkyVerticalTabMediaQueryService;
|
|
388
388
|
}());
|
|
389
|
-
SkyVerticalTabMediaQueryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
390
|
-
SkyVerticalTabMediaQueryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
391
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
389
|
+
SkyVerticalTabMediaQueryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabMediaQueryService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
390
|
+
SkyVerticalTabMediaQueryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabMediaQueryService });
|
|
391
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabMediaQueryService, decorators: [{
|
|
392
392
|
type: i0.Injectable
|
|
393
393
|
}], ctorParameters: function () { return []; } });
|
|
394
394
|
|
|
@@ -432,12 +432,13 @@
|
|
|
432
432
|
};
|
|
433
433
|
return SkyVerticalTabsetAdapterService;
|
|
434
434
|
}());
|
|
435
|
-
SkyVerticalTabsetAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
436
|
-
SkyVerticalTabsetAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
437
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
435
|
+
SkyVerticalTabsetAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
436
|
+
SkyVerticalTabsetAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetAdapterService });
|
|
437
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetAdapterService, decorators: [{
|
|
438
438
|
type: i0.Injectable
|
|
439
439
|
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
|
440
440
|
|
|
441
|
+
var nextId$2 = 0;
|
|
441
442
|
var SkyVerticalTabComponent = /** @class */ (function () {
|
|
442
443
|
function SkyVerticalTabComponent(adapterService, changeRef, tabsetService, verticalTabMediaQueryService) {
|
|
443
444
|
this.adapterService = adapterService;
|
|
@@ -457,27 +458,17 @@
|
|
|
457
458
|
* @internal This is used for sectioned forms and is not currently a supported design for pure vertical tabs.
|
|
458
459
|
*/
|
|
459
460
|
this.errorIndicator = false;
|
|
461
|
+
/**
|
|
462
|
+
* Specifies an ID for the tab.
|
|
463
|
+
* @deprecated Now that the vertical tabs provide aria labels automatically, this input is no longer necessary.
|
|
464
|
+
*/
|
|
465
|
+
this.tabId = "sky-vertical-tab-" + ++nextId$2;
|
|
460
466
|
this.isMobile = false;
|
|
461
467
|
this._contentRendered = false;
|
|
462
468
|
this._mobileSubscription = new rxjs.Subject();
|
|
463
469
|
this._ngUnsubscribe = new rxjs.Subject();
|
|
464
470
|
this._showTabRightArrow = false;
|
|
465
471
|
}
|
|
466
|
-
Object.defineProperty(SkyVerticalTabComponent.prototype, "ariaControls", {
|
|
467
|
-
/**
|
|
468
|
-
* Specifies the HTML element ID (without the leading `#`) of the element that contains
|
|
469
|
-
* the content that the vertical tab displays, which corresponds to the `tabId`. This property
|
|
470
|
-
* [supports accessibility rules for disclosures](https://www.w3.org/TR/wai-aria-practices-1.1/#disclosure).
|
|
471
|
-
*/
|
|
472
|
-
get: function () {
|
|
473
|
-
return this.isMobile ? undefined : this._ariaControls;
|
|
474
|
-
},
|
|
475
|
-
set: function (value) {
|
|
476
|
-
this._ariaControls = value;
|
|
477
|
-
},
|
|
478
|
-
enumerable: false,
|
|
479
|
-
configurable: true
|
|
480
|
-
});
|
|
481
472
|
Object.defineProperty(SkyVerticalTabComponent.prototype, "ariaRole", {
|
|
482
473
|
/**
|
|
483
474
|
* Specifies an ARIA role for the vertical tab
|
|
@@ -486,6 +477,8 @@
|
|
|
486
477
|
* an ARIA role indicates what an item represents on a web page, see the
|
|
487
478
|
* [WAI-ARIA roles model](https://www.w3.org/WAI/PF/aria/roles).
|
|
488
479
|
* @default "tab"
|
|
480
|
+
* @deprecated Any other value than `tab` could lead to a poor user experience for users with assistive technology.
|
|
481
|
+
* In the next major version, this property will be automatically set to `tab`.
|
|
489
482
|
*/
|
|
490
483
|
get: function () {
|
|
491
484
|
if (this.isMobile) {
|
|
@@ -535,8 +528,7 @@
|
|
|
535
528
|
var _this = this;
|
|
536
529
|
this.isMobile = this.tabsetService.isMobile();
|
|
537
530
|
this.changeRef.markForCheck();
|
|
538
|
-
this.tabsetService.switchingMobile
|
|
539
|
-
.subscribe(function (mobile) {
|
|
531
|
+
this.tabsetService.switchingMobile.subscribe(function (mobile) {
|
|
540
532
|
_this.isMobile = mobile;
|
|
541
533
|
_this.changeRef.markForCheck();
|
|
542
534
|
});
|
|
@@ -572,6 +564,21 @@
|
|
|
572
564
|
this.changeRef.markForCheck();
|
|
573
565
|
}
|
|
574
566
|
};
|
|
567
|
+
SkyVerticalTabComponent.prototype.onTabButtonKeyUp = function (event) {
|
|
568
|
+
/*istanbul ignore else */
|
|
569
|
+
if (event.key) {
|
|
570
|
+
switch (event.key.toUpperCase()) {
|
|
571
|
+
case ' ':
|
|
572
|
+
case 'ENTER':
|
|
573
|
+
this.activateTab();
|
|
574
|
+
event.stopPropagation();
|
|
575
|
+
break;
|
|
576
|
+
/* istanbul ignore next */
|
|
577
|
+
default:
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
};
|
|
575
582
|
SkyVerticalTabComponent.prototype.onWindowResize = function () {
|
|
576
583
|
this.updateBreakpointAndResponsiveClass(this.adapterService.getWidth(this.tabContent));
|
|
577
584
|
};
|
|
@@ -586,31 +593,33 @@
|
|
|
586
593
|
};
|
|
587
594
|
return SkyVerticalTabComponent;
|
|
588
595
|
}());
|
|
589
|
-
SkyVerticalTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
590
|
-
SkyVerticalTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
596
|
+
SkyVerticalTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabComponent, deps: [{ token: SkyVerticalTabsetAdapterService }, { token: i0__namespace.ChangeDetectorRef }, { token: SkyVerticalTabsetService }, { token: SkyVerticalTabMediaQueryService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
597
|
+
SkyVerticalTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyVerticalTabComponent, selector: "sky-vertical-tab", inputs: { active: "active", ariaControls: "ariaControls", ariaRole: "ariaRole", disabled: "disabled", errorIndicator: "errorIndicator", tabHeaderCount: "tabHeaderCount", tabHeading: "tabHeading", showTabRightArrow: "showTabRightArrow", tabId: "tabId" }, host: { listeners: { "window:resize": "onWindowResize()" } }, providers: [
|
|
591
598
|
SkyVerticalTabMediaQueryService,
|
|
592
|
-
{
|
|
593
|
-
|
|
594
|
-
|
|
599
|
+
{
|
|
600
|
+
provide: i1.SkyMediaQueryService,
|
|
601
|
+
useExisting: SkyVerticalTabMediaQueryService,
|
|
602
|
+
},
|
|
603
|
+
], viewQueries: [{ propertyName: "tabContent", first: true, predicate: ["tabContentWrapper"], descendants: true }], ngImport: i0__namespace, template: "<a\n class=\"sky-vertical-tab\"\n [attr.aria-controls]=\"isMobile ? null : ariaControls || tabContentPane.id\"\n [attr.aria-selected]=\"active\"\n [attr.id]=\"tabId\"\n [attr.role]=\"ariaRole\"\n [ngClass]=\"{\n 'sky-vertical-tab-active': active,\n 'sky-vertical-tab-disabled': disabled,\n 'sky-font-deemphasized': disabled,\n 'sky-deemphasized': disabled\n }\"\n [tabIndex]=\"tabIndex()\"\n (click)=\"activateTab()\"\n (keyup)=\"onTabButtonKeyUp($event)\"\n>\n <div class=\"sky-vertical-tab-display\">\n <div class=\"sky-vertical-tab-heading\">\n <span class=\"sky-vertical-tab-heading-value\">{{ tabHeading }}</span>\n <span\n class=\"sky-vertical-tab-count\"\n *ngIf=\"tabHeaderCount || tabHeaderCount === 0\"\n >\n ({{ tabHeaderCount }})\n </span>\n </div>\n <sky-status-indicator\n *ngIf=\"errorIndicator\"\n class=\"sky-vertical-tab-heading-error\"\n descriptionType=\"error\"\n indicatorType=\"danger\"\n ></sky-status-indicator>\n <sky-icon\n *ngIf=\"showTabRightArrow\"\n class=\"sky-vertical-tab-right-arrow\"\n icon=\"chevron-right\"\n >\n </sky-icon>\n </div>\n</a>\n\n<div #tabContentWrapper>\n <div\n class=\"sky-vertical-tab-content-pane\"\n role=\"tabpanel\"\n tabindex=\"0\"\n skyId\n [attr.aria-labelledby]=\"tabId\"\n [ngClass]=\"{ 'sky-vertical-tab-hidden': !active }\"\n #tabContentPane\n >\n <ng-content></ng-content>\n\n <div></div>\n </div>\n</div>\n", styles: [".sky-vertical-tab{cursor:pointer;padding:7px 0 7px 10px;margin:5px 0 5px 10px;display:flex;text-decoration:none}.sky-vertical-tab:not(.sky-deemphasized){color:#212327}.sky-vertical-tab:hover{background-color:#eeeeef}.sky-vertical-tab:focus-visible{outline:thin dotted;outline:-webkit-focus-ring-color auto 5px}.sky-vertical-tab:hover .sky-vertical-tab-right-arrow{color:#979ba2}.sky-vertical-tab-active{background-color:#eeeeef;color:#212327;padding-left:6px;border-left:4px solid #00b4f1}.sky-vertical-tab-hidden{display:none}.sky-vertical-tab-display{display:flex;flex-grow:1}.sky-vertical-tab-heading-error{padding-left:5px}.sky-vertical-tab-count{margin-left:5px}.sky-vertical-tab-disabled{cursor:not-allowed;pointer-events:none}.sky-vertical-tab-right-arrow{padding:3px 10px 0 0;color:#cdcfd2}:host-context(.sky-theme-modern) .sky-vertical-tab{color:#686c73;cursor:pointer;padding:10px 0 10px 10px;margin:10px 0 20px 10px}:host-context(.sky-theme-modern) .sky-vertical-tab:not(.sky-vertical-tab-active):not(:active):hover{color:#212327;background-color:transparent;padding-left:9px;border-left:1px solid #00b4f1}:host-context(.sky-theme-modern) .sky-vertical-tab:not(:active):focus-visible{outline:solid 2px #1870B8;outline-offset:-2px;box-shadow:0 1px 8px #0000004d}:host-context(.sky-theme-modern) .sky-vertical-tab:focus:active:hover{outline:none;background:none}:host-context(.sky-theme-modern) .sky-vertical-tab:active{border-left:3px solid #00b4f1;color:#212327;padding-left:7px}:host-context(.sky-theme-modern) .sky-vertical-tab .sky-vertical-tab-heading-error{padding-left:10px;position:relative;top:-2px}:host-context(.sky-theme-modern) .sky-vertical-tab-active{background:none;color:#212327;padding-left:7px;border-left:3px solid #1870B8}.sky-theme-modern .sky-vertical-tab{color:#686c73;cursor:pointer;padding:10px 0 10px 10px;margin:10px 0 20px 10px}.sky-theme-modern .sky-vertical-tab:not(.sky-vertical-tab-active):not(:active):hover{color:#212327;background-color:transparent;padding-left:9px;border-left:1px solid #00b4f1}.sky-theme-modern .sky-vertical-tab:not(:active):focus-visible{outline:solid 2px #1870B8;outline-offset:-2px;box-shadow:0 1px 8px #0000004d}.sky-theme-modern .sky-vertical-tab:focus:active:hover{outline:none;background:none}.sky-theme-modern .sky-vertical-tab:active{border-left:3px solid #00b4f1;color:#212327;padding-left:7px}.sky-theme-modern .sky-vertical-tab .sky-vertical-tab-heading-error{padding-left:10px;position:relative;top:-2px}.sky-theme-modern .sky-vertical-tab-active{background:none;color:#212327;padding-left:7px;border-left:3px solid #1870B8}\n"], components: [{ type: i4__namespace.λ10, selector: "sky-status-indicator", inputs: ["indicatorType", "descriptionType", "customDescription"] }, { type: i4__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.λ2, selector: "[skyId]", exportAs: ["skyId"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
604
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabComponent, decorators: [{
|
|
595
605
|
type: i0.Component,
|
|
596
606
|
args: [{
|
|
597
607
|
selector: 'sky-vertical-tab',
|
|
598
|
-
template: "<a\n class=\"sky-vertical-tab\"\n [attr.aria-controls]=\"
|
|
608
|
+
template: "<a\n class=\"sky-vertical-tab\"\n [attr.aria-controls]=\"isMobile ? null : ariaControls || tabContentPane.id\"\n [attr.aria-selected]=\"active\"\n [attr.id]=\"tabId\"\n [attr.role]=\"ariaRole\"\n [ngClass]=\"{\n 'sky-vertical-tab-active': active,\n 'sky-vertical-tab-disabled': disabled,\n 'sky-font-deemphasized': disabled,\n 'sky-deemphasized': disabled\n }\"\n [tabIndex]=\"tabIndex()\"\n (click)=\"activateTab()\"\n (keyup)=\"onTabButtonKeyUp($event)\"\n>\n <div class=\"sky-vertical-tab-display\">\n <div class=\"sky-vertical-tab-heading\">\n <span class=\"sky-vertical-tab-heading-value\">{{ tabHeading }}</span>\n <span\n class=\"sky-vertical-tab-count\"\n *ngIf=\"tabHeaderCount || tabHeaderCount === 0\"\n >\n ({{ tabHeaderCount }})\n </span>\n </div>\n <sky-status-indicator\n *ngIf=\"errorIndicator\"\n class=\"sky-vertical-tab-heading-error\"\n descriptionType=\"error\"\n indicatorType=\"danger\"\n ></sky-status-indicator>\n <sky-icon\n *ngIf=\"showTabRightArrow\"\n class=\"sky-vertical-tab-right-arrow\"\n icon=\"chevron-right\"\n >\n </sky-icon>\n </div>\n</a>\n\n<div #tabContentWrapper>\n <div\n class=\"sky-vertical-tab-content-pane\"\n role=\"tabpanel\"\n tabindex=\"0\"\n skyId\n [attr.aria-labelledby]=\"tabId\"\n [ngClass]=\"{ 'sky-vertical-tab-hidden': !active }\"\n #tabContentPane\n >\n <ng-content></ng-content>\n\n <div></div>\n </div>\n</div>\n",
|
|
599
609
|
styles: [".sky-vertical-tab{cursor:pointer;padding:7px 0 7px 10px;margin:5px 0 5px 10px;display:flex;text-decoration:none}.sky-vertical-tab:not(.sky-deemphasized){color:#212327}.sky-vertical-tab:hover{background-color:#eeeeef}.sky-vertical-tab:focus-visible{outline:thin dotted;outline:-webkit-focus-ring-color auto 5px}.sky-vertical-tab:hover .sky-vertical-tab-right-arrow{color:#979ba2}.sky-vertical-tab-active{background-color:#eeeeef;color:#212327;padding-left:6px;border-left:4px solid #00b4f1}.sky-vertical-tab-hidden{display:none}.sky-vertical-tab-display{display:flex;flex-grow:1}.sky-vertical-tab-heading-error{padding-left:5px}.sky-vertical-tab-count{margin-left:5px}.sky-vertical-tab-disabled{cursor:not-allowed;pointer-events:none}.sky-vertical-tab-right-arrow{padding:3px 10px 0 0;color:#cdcfd2}:host-context(.sky-theme-modern) .sky-vertical-tab{color:#686c73;cursor:pointer;padding:10px 0 10px 10px;margin:10px 0 20px 10px}:host-context(.sky-theme-modern) .sky-vertical-tab:not(.sky-vertical-tab-active):not(:active):hover{color:#212327;background-color:transparent;padding-left:9px;border-left:1px solid #00b4f1}:host-context(.sky-theme-modern) .sky-vertical-tab:not(:active):focus-visible{outline:solid 2px #1870B8;outline-offset:-2px;box-shadow:0 1px 8px #0000004d}:host-context(.sky-theme-modern) .sky-vertical-tab:focus:active:hover{outline:none;background:none}:host-context(.sky-theme-modern) .sky-vertical-tab:active{border-left:3px solid #00b4f1;color:#212327;padding-left:7px}:host-context(.sky-theme-modern) .sky-vertical-tab .sky-vertical-tab-heading-error{padding-left:10px;position:relative;top:-2px}:host-context(.sky-theme-modern) .sky-vertical-tab-active{background:none;color:#212327;padding-left:7px;border-left:3px solid #1870B8}.sky-theme-modern .sky-vertical-tab{color:#686c73;cursor:pointer;padding:10px 0 10px 10px;margin:10px 0 20px 10px}.sky-theme-modern .sky-vertical-tab:not(.sky-vertical-tab-active):not(:active):hover{color:#212327;background-color:transparent;padding-left:9px;border-left:1px solid #00b4f1}.sky-theme-modern .sky-vertical-tab:not(:active):focus-visible{outline:solid 2px #1870B8;outline-offset:-2px;box-shadow:0 1px 8px #0000004d}.sky-theme-modern .sky-vertical-tab:focus:active:hover{outline:none;background:none}.sky-theme-modern .sky-vertical-tab:active{border-left:3px solid #00b4f1;color:#212327;padding-left:7px}.sky-theme-modern .sky-vertical-tab .sky-vertical-tab-heading-error{padding-left:10px;position:relative;top:-2px}.sky-theme-modern .sky-vertical-tab-active{background:none;color:#212327;padding-left:7px;border-left:3px solid #1870B8}\n"],
|
|
600
610
|
providers: [
|
|
601
611
|
SkyVerticalTabMediaQueryService,
|
|
602
|
-
{
|
|
612
|
+
{
|
|
613
|
+
provide: i1.SkyMediaQueryService,
|
|
614
|
+
useExisting: SkyVerticalTabMediaQueryService,
|
|
615
|
+
},
|
|
603
616
|
],
|
|
604
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
617
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
605
618
|
}]
|
|
606
619
|
}], ctorParameters: function () { return [{ type: SkyVerticalTabsetAdapterService }, { type: i0__namespace.ChangeDetectorRef }, { type: SkyVerticalTabsetService }, { type: SkyVerticalTabMediaQueryService }]; }, propDecorators: { active: [{
|
|
607
620
|
type: i0.Input
|
|
608
621
|
}], ariaControls: [{
|
|
609
622
|
type: i0.Input
|
|
610
|
-
}], ariaInvalid: [{
|
|
611
|
-
type: i0.Input
|
|
612
|
-
}], ariaRequired: [{
|
|
613
|
-
type: i0.Input
|
|
614
623
|
}], ariaRole: [{
|
|
615
624
|
type: i0.Input
|
|
616
625
|
}], disabled: [{
|
|
@@ -660,9 +669,9 @@
|
|
|
660
669
|
};
|
|
661
670
|
return SkySectionedFormService;
|
|
662
671
|
}());
|
|
663
|
-
SkySectionedFormService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
664
|
-
SkySectionedFormService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
665
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
672
|
+
SkySectionedFormService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
673
|
+
SkySectionedFormService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormService });
|
|
674
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormService, decorators: [{
|
|
666
675
|
type: i0.Injectable
|
|
667
676
|
}] });
|
|
668
677
|
|
|
@@ -677,38 +686,25 @@
|
|
|
677
686
|
this.changeRef = changeRef;
|
|
678
687
|
this.sectionTabId = "sky-sectioned-form-tab-" + ++nextId$1;
|
|
679
688
|
this.sectionContentId = "sky-sectioned-form-section-" + ++nextId$1;
|
|
680
|
-
|
|
689
|
+
/**
|
|
690
|
+
* Indicates whether the section is active when the form loads.
|
|
691
|
+
* @default false
|
|
692
|
+
*/
|
|
693
|
+
this.active = false;
|
|
681
694
|
this._ngUnsubscribe = new rxjs.Subject();
|
|
682
695
|
}
|
|
683
|
-
Object.defineProperty(SkySectionedFormSectionComponent.prototype, "ariaRole", {
|
|
684
|
-
get: function () {
|
|
685
|
-
return this.isMobile ? undefined : 'tabpanel';
|
|
686
|
-
},
|
|
687
|
-
enumerable: false,
|
|
688
|
-
configurable: true
|
|
689
|
-
});
|
|
690
|
-
Object.defineProperty(SkySectionedFormSectionComponent.prototype, "ariaLabelledby", {
|
|
691
|
-
get: function () {
|
|
692
|
-
return this.isMobile ? undefined : this.sectionTabId;
|
|
693
|
-
},
|
|
694
|
-
enumerable: false,
|
|
695
|
-
configurable: true
|
|
696
|
-
});
|
|
697
696
|
SkySectionedFormSectionComponent.prototype.ngOnInit = function () {
|
|
698
697
|
var _this = this;
|
|
699
|
-
this.isMobile = this.tabsetService.isMobile();
|
|
700
698
|
this.changeRef.detectChanges();
|
|
701
|
-
this.tabsetService.switchingMobile
|
|
702
|
-
.subscribe(function (mobile) {
|
|
703
|
-
_this.isMobile = mobile;
|
|
699
|
+
this.tabsetService.switchingMobile.subscribe(function (mobile) {
|
|
704
700
|
_this.changeRef.detectChanges();
|
|
705
701
|
});
|
|
706
702
|
this.sectionedFormService.requiredChange
|
|
707
703
|
.pipe(operators.takeUntil(this._ngUnsubscribe))
|
|
708
|
-
.subscribe(function (required) { return _this.fieldRequired = required; });
|
|
704
|
+
.subscribe(function (required) { return (_this.fieldRequired = required); });
|
|
709
705
|
this.sectionedFormService.invalidChange
|
|
710
706
|
.pipe(operators.takeUntil(this._ngUnsubscribe))
|
|
711
|
-
.subscribe(function (invalid) { return _this.fieldInvalid = invalid; });
|
|
707
|
+
.subscribe(function (invalid) { return (_this.fieldInvalid = invalid); });
|
|
712
708
|
};
|
|
713
709
|
SkySectionedFormSectionComponent.prototype.ngOnDestroy = function () {
|
|
714
710
|
this._ngUnsubscribe.next();
|
|
@@ -716,15 +712,15 @@
|
|
|
716
712
|
};
|
|
717
713
|
return SkySectionedFormSectionComponent;
|
|
718
714
|
}());
|
|
719
|
-
SkySectionedFormSectionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
720
|
-
SkySectionedFormSectionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
721
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
715
|
+
SkySectionedFormSectionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormSectionComponent, deps: [{ token: SkySectionedFormService }, { token: SkyVerticalTabsetService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
716
|
+
SkySectionedFormSectionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkySectionedFormSectionComponent, selector: "sky-sectioned-form-section", inputs: { heading: "heading", itemCount: "itemCount", active: "active" }, providers: [SkySectionedFormService], viewQueries: [{ propertyName: "tab", first: true, predicate: SkyVerticalTabComponent, descendants: true }], ngImport: i0__namespace, template: "<sky-vertical-tab\n [active]=\"active\"\n [errorIndicator]=\"fieldInvalid\"\n [ngClass]=\"{\n 'sky-tab-field-required': fieldRequired\n }\"\n [showTabRightArrow]=\"true\"\n [tabHeaderCount]=\"itemCount\"\n [tabHeading]=\"heading\"\n [tabId]=\"sectionTabId\"\n>\n <ng-content></ng-content>\n</sky-vertical-tab>\n", styles: [":host .sky-tab-field-required ::ng-deep .sky-vertical-tab-heading:after{content:\"*\";color:#ef4044;padding-left:5px}\n"], components: [{ type: SkyVerticalTabComponent, selector: "sky-vertical-tab", inputs: ["active", "ariaControls", "ariaRole", "disabled", "errorIndicator", "tabHeaderCount", "tabHeading", "showTabRightArrow", "tabId"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
717
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormSectionComponent, decorators: [{
|
|
722
718
|
type: i0.Component,
|
|
723
719
|
args: [{
|
|
724
720
|
selector: 'sky-sectioned-form-section',
|
|
725
|
-
template: "<sky-vertical-tab\n [active]=\"active\"\n [
|
|
721
|
+
template: "<sky-vertical-tab\n [active]=\"active\"\n [errorIndicator]=\"fieldInvalid\"\n [ngClass]=\"{\n 'sky-tab-field-required': fieldRequired\n }\"\n [showTabRightArrow]=\"true\"\n [tabHeaderCount]=\"itemCount\"\n [tabHeading]=\"heading\"\n [tabId]=\"sectionTabId\"\n>\n <ng-content></ng-content>\n</sky-vertical-tab>\n",
|
|
726
722
|
providers: [SkySectionedFormService],
|
|
727
|
-
styles: [":host .sky-tab-field-required ::ng-deep .sky-vertical-tab-heading:after{content:\"*\";color:#ef4044;padding-left:5px}\n"]
|
|
723
|
+
styles: [":host .sky-tab-field-required ::ng-deep .sky-vertical-tab-heading:after{content:\"*\";color:#ef4044;padding-left:5px}\n"],
|
|
728
724
|
}]
|
|
729
725
|
}], ctorParameters: function () { return [{ type: SkySectionedFormService }, { type: SkyVerticalTabsetService }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { heading: [{
|
|
730
726
|
type: i0.Input
|
|
@@ -744,7 +740,14 @@
|
|
|
744
740
|
* To update this file, simply rerun the command.
|
|
745
741
|
*/
|
|
746
742
|
var RESOURCES = {
|
|
747
|
-
'EN-US': {
|
|
743
|
+
'EN-US': {
|
|
744
|
+
skyux_tab_add: { message: 'Add tab' },
|
|
745
|
+
skyux_tab_close: { message: 'Close {0} tab' },
|
|
746
|
+
skyux_tabs_navigator_next: { message: 'Next' },
|
|
747
|
+
skyux_tabs_navigator_previous: { message: 'Previous' },
|
|
748
|
+
skyux_tab_open: { message: 'Open tab' },
|
|
749
|
+
skyux_vertical_tabs_show_tabs_text: { message: 'Tab list' },
|
|
750
|
+
},
|
|
748
751
|
};
|
|
749
752
|
var SkyTabsResourcesProvider = /** @class */ (function () {
|
|
750
753
|
function SkyTabsResourcesProvider() {
|
|
@@ -762,22 +765,26 @@
|
|
|
762
765
|
}
|
|
763
766
|
return SkyTabsResourcesModule;
|
|
764
767
|
}());
|
|
765
|
-
SkyTabsResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
766
|
-
SkyTabsResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
767
|
-
SkyTabsResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
768
|
+
SkyTabsResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
769
|
+
SkyTabsResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsResourcesModule, exports: [i3.SkyI18nModule] });
|
|
770
|
+
SkyTabsResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsResourcesModule, providers: [
|
|
771
|
+
{
|
|
768
772
|
provide: i3.SKY_LIB_RESOURCES_PROVIDERS,
|
|
769
773
|
useClass: SkyTabsResourcesProvider,
|
|
770
|
-
multi: true
|
|
771
|
-
}
|
|
772
|
-
|
|
774
|
+
multi: true,
|
|
775
|
+
},
|
|
776
|
+
], imports: [i3.SkyI18nModule] });
|
|
777
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsResourcesModule, decorators: [{
|
|
773
778
|
type: i0.NgModule,
|
|
774
779
|
args: [{
|
|
775
780
|
exports: [i3.SkyI18nModule],
|
|
776
|
-
providers: [
|
|
781
|
+
providers: [
|
|
782
|
+
{
|
|
777
783
|
provide: i3.SKY_LIB_RESOURCES_PROVIDERS,
|
|
778
784
|
useClass: SkyTabsResourcesProvider,
|
|
779
|
-
multi: true
|
|
780
|
-
}
|
|
785
|
+
multi: true,
|
|
786
|
+
},
|
|
787
|
+
],
|
|
781
788
|
}]
|
|
782
789
|
}] });
|
|
783
790
|
|
|
@@ -790,7 +797,7 @@
|
|
|
790
797
|
/**
|
|
791
798
|
* Indicates whether the vertical tabset loads tab content during initialization so that it
|
|
792
799
|
* displays content without moving around elements in the content container.
|
|
793
|
-
* @default
|
|
800
|
+
* @default false
|
|
794
801
|
*/
|
|
795
802
|
this.maintainTabContent = false;
|
|
796
803
|
/**
|
|
@@ -809,6 +816,8 @@
|
|
|
809
816
|
* an ARIA role indicates what an item represents on a web page, see the
|
|
810
817
|
* [WAI-ARIA roles model](https://www.w3.org/WAI/PF/aria/roles).
|
|
811
818
|
* @default "tablist"
|
|
819
|
+
* @deprecated Any other value than `tablist` could lead to a poor user experience for users with assistive technology.
|
|
820
|
+
* In the next major version, this property will be automatically set to `tablist`.
|
|
812
821
|
*/
|
|
813
822
|
get: function () {
|
|
814
823
|
if (this.isMobile) {
|
|
@@ -846,7 +855,8 @@
|
|
|
846
855
|
this.changeRef.markForCheck();
|
|
847
856
|
}
|
|
848
857
|
if (!this.showTabsText) {
|
|
849
|
-
this.resources
|
|
858
|
+
this.resources
|
|
859
|
+
.getString('skyux_vertical_tabs_show_tabs_text')
|
|
850
860
|
.pipe(operators.take(1))
|
|
851
861
|
.subscribe(function (resource) {
|
|
852
862
|
/* sanity check */
|
|
@@ -867,50 +877,50 @@
|
|
|
867
877
|
};
|
|
868
878
|
return SkyVerticalTabsetComponent;
|
|
869
879
|
}());
|
|
870
|
-
SkyVerticalTabsetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
871
|
-
SkyVerticalTabsetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
872
|
-
SkyVerticalTabsetService
|
|
873
|
-
], viewQueries: [{ propertyName: "tabGroups", first: true, predicate: ["groupContainerWrapper"], descendants: true }, { propertyName: "content", first: true, predicate: ["skySideContent"], descendants: true }, { propertyName: "contentWrapper", first: true, predicate: ["contentContainerWrapper"], descendants: true }], ngImport: i0__namespace, template: " <div class=\"sky-vertical-tabset\" (window:resize)=\"tabService.updateContent()\">\n <div\n *ngIf=\"maintainTabContent || tabService.tabsVisible()\"\n #groupContainerWrapper\n class=\"sky-vertical-tabset-group-container\"\n [ngClass]=\"{'sky-vertical-tabset-hidden': !tabService.tabsVisible()}\"\n [attr.role]=\"ariaRole\"\n [@tabGroupEnter]=\"tabService.animationTabsVisibleState\"\n >\n <ng-content></ng-content>\n </div>\n <div\n *ngIf=\"maintainTabContent || tabService.contentVisible()\"\n class=\"sky-vertical-tabset-content\"\n [ngClass]=\"{'sky-vertical-tabset-content-hidden': !tabService.contentVisible()}\"\n [@contentEnter]=\"tabService.animationContentVisibleState\"\n #contentContainerWrapper\n >\n <div #skySideContent></div>\n <button\n *ngIf=\"!tabService.tabsVisible()\"\n (click)=\"tabService.showTabs()\"\n class=\"sky-btn sky-btn-primary sky-vertical-tabset-show-tabs-btn\"\n >\n <sky-icon icon=\"chevron-left\"></sky-icon>\n {{ showTabsText }}\n </button>\n </div>\n</div>\n", styles: [":host .sky-vertical-tabset{display:block;height:auto}:host .sky-vertical-tabset-group-container{border-right:none}:host-context(.sky-responsive-container-xs) .sky-vertical-tabset,:host-context(.sky-responsive-container-sm) .sky-vertical-tabset,:host-context(.sky-responsive-container-md) .sky-vertical-tabset,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset{display:block;height:auto}:host-context(.sky-responsive-container-xs) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:none}@media (min-width: 768px){:host .sky-vertical-tabset{display:flex;height:100%}:host .sky-vertical-tabset-group-container{border-right:1px solid #cdcfd2}}:host-context(.sky-responsive-container-sm) .sky-vertical-tabset,:host-context(.sky-responsive-container-md) .sky-vertical-tabset,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset{display:flex;height:100%}:host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:1px solid #cdcfd2}.sky-vertical-tabset-hidden{display:none}.sky-vertical-tabset-content{margin:10px 0 0 10px;flex-basis:75%;overflow-y:auto}.sky-vertical-tabset-content-hidden{display:none}.sky-vertical-tabset-show-tabs-btn{margin-top:10px}.sky-vertical-tabset-group-container{flex-basis:25%;overflow-y:auto}:host-context(sky-modal-content >) .sky-vertical-tabset{margin:-15px}:host-context(.sky-theme-modern) .sky-vertical-tabset-content{margin:15px}@media (min-width: 768px){:host-context(.sky-theme-modern) :host .sky-vertical-tabset-content{margin:20px 30px}:host-context(.sky-theme-modern) :host .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-vertical-tabset-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-content{margin:20px 30px}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}.sky-theme-modern .sky-vertical-tabset-content{margin:15px}@media (min-width: 768px){.sky-theme-modern :host .sky-vertical-tabset-content{margin:20px 30px}.sky-theme-modern :host .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-content,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-vertical-tabset-content,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-content{margin:20px 30px}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}\n"], components: [{ type: i4__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
|
880
|
+
SkyVerticalTabsetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetComponent, deps: [{ token: SkyVerticalTabsetAdapterService }, { token: SkyVerticalTabsetService }, { token: i3__namespace.SkyLibResourcesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
881
|
+
SkyVerticalTabsetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyVerticalTabsetComponent, selector: "sky-vertical-tabset", inputs: { showTabsText: "showTabsText", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaRole: "ariaRole", maintainTabContent: "maintainTabContent" }, outputs: { activeChange: "activeChange" }, providers: [SkyVerticalTabsetService], viewQueries: [{ propertyName: "tabGroups", first: true, predicate: ["groupContainerWrapper"], descendants: true }, { propertyName: "content", first: true, predicate: ["skySideContent"], descendants: true }, { propertyName: "contentWrapper", first: true, predicate: ["contentContainerWrapper"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"sky-vertical-tabset\" (window:resize)=\"tabService.updateContent()\">\n <div\n *ngIf=\"maintainTabContent || tabService.tabsVisible()\"\n aria-orientation=\"vertical\"\n class=\"sky-vertical-tabset-group-container\"\n [ngClass]=\"{ 'sky-vertical-tabset-hidden': !tabService.tabsVisible() }\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.role]=\"ariaRole\"\n [@tabGroupEnter]=\"tabService.animationTabsVisibleState\"\n #groupContainerWrapper\n >\n <ng-content></ng-content>\n </div>\n <div\n *ngIf=\"maintainTabContent || tabService.contentVisible()\"\n class=\"sky-vertical-tabset-content\"\n [ngClass]=\"{\n 'sky-vertical-tabset-content-hidden': !tabService.contentVisible()\n }\"\n [@contentEnter]=\"tabService.animationContentVisibleState\"\n #contentContainerWrapper\n >\n <div #skySideContent></div>\n <button\n *ngIf=\"!tabService.tabsVisible()\"\n (click)=\"tabService.showTabs()\"\n class=\"sky-btn sky-btn-primary sky-vertical-tabset-show-tabs-btn\"\n >\n <sky-icon icon=\"chevron-left\"></sky-icon>\n {{ showTabsText }}\n </button>\n </div>\n</div>\n", styles: [":host .sky-vertical-tabset{display:block;height:auto}:host .sky-vertical-tabset-group-container{border-right:none}:host-context(.sky-responsive-container-xs) .sky-vertical-tabset,:host-context(.sky-responsive-container-sm) .sky-vertical-tabset,:host-context(.sky-responsive-container-md) .sky-vertical-tabset,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset{display:block;height:auto}:host-context(.sky-responsive-container-xs) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:none}@media (min-width: 768px){:host .sky-vertical-tabset{display:flex;height:100%}:host .sky-vertical-tabset-group-container{border-right:1px solid #cdcfd2}}:host-context(.sky-responsive-container-sm) .sky-vertical-tabset,:host-context(.sky-responsive-container-md) .sky-vertical-tabset,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset{display:flex;height:100%}:host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:1px solid #cdcfd2}.sky-vertical-tabset-hidden{display:none}.sky-vertical-tabset-content{margin:10px 0 0 10px;flex-basis:75%;overflow-y:auto}.sky-vertical-tabset-content-hidden{display:none}.sky-vertical-tabset-show-tabs-btn{margin-top:10px}.sky-vertical-tabset-group-container{flex-basis:25%;overflow-y:auto}:host-context(sky-modal-content >) .sky-vertical-tabset{margin:-15px}:host-context(.sky-theme-modern) .sky-vertical-tabset-content{margin:15px}@media (min-width: 768px){:host-context(.sky-theme-modern) :host .sky-vertical-tabset-content{margin:20px 30px}:host-context(.sky-theme-modern) :host .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-vertical-tabset-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-content{margin:20px 30px}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}.sky-theme-modern .sky-vertical-tabset-content{margin:15px}@media (min-width: 768px){.sky-theme-modern :host .sky-vertical-tabset-content{margin:20px 30px}.sky-theme-modern :host .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-content,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-vertical-tabset-content,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-content{margin:20px 30px}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}\n"], components: [{ type: i4__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
|
874
882
|
animations.trigger('tabGroupEnter', [
|
|
875
883
|
animations.transition(HIDDEN_STATE + " => " + VISIBLE_STATE, [
|
|
876
884
|
animations.style({ transform: 'translate(-100%)' }),
|
|
877
|
-
animations.animate('150ms ease-in')
|
|
878
|
-
])
|
|
885
|
+
animations.animate('150ms ease-in'),
|
|
886
|
+
]),
|
|
879
887
|
]),
|
|
880
888
|
animations.trigger('contentEnter', [
|
|
881
889
|
animations.transition(HIDDEN_STATE + " => " + VISIBLE_STATE, [
|
|
882
890
|
animations.style({ transform: 'translate(100%)' }),
|
|
883
|
-
animations.animate('150ms ease-in')
|
|
884
|
-
])
|
|
885
|
-
])
|
|
891
|
+
animations.animate('150ms ease-in'),
|
|
892
|
+
]),
|
|
893
|
+
]),
|
|
886
894
|
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
887
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
895
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetComponent, decorators: [{
|
|
888
896
|
type: i0.Component,
|
|
889
897
|
args: [{
|
|
890
898
|
selector: 'sky-vertical-tabset',
|
|
891
|
-
template: "
|
|
899
|
+
template: "<div class=\"sky-vertical-tabset\" (window:resize)=\"tabService.updateContent()\">\n <div\n *ngIf=\"maintainTabContent || tabService.tabsVisible()\"\n aria-orientation=\"vertical\"\n class=\"sky-vertical-tabset-group-container\"\n [ngClass]=\"{ 'sky-vertical-tabset-hidden': !tabService.tabsVisible() }\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.role]=\"ariaRole\"\n [@tabGroupEnter]=\"tabService.animationTabsVisibleState\"\n #groupContainerWrapper\n >\n <ng-content></ng-content>\n </div>\n <div\n *ngIf=\"maintainTabContent || tabService.contentVisible()\"\n class=\"sky-vertical-tabset-content\"\n [ngClass]=\"{\n 'sky-vertical-tabset-content-hidden': !tabService.contentVisible()\n }\"\n [@contentEnter]=\"tabService.animationContentVisibleState\"\n #contentContainerWrapper\n >\n <div #skySideContent></div>\n <button\n *ngIf=\"!tabService.tabsVisible()\"\n (click)=\"tabService.showTabs()\"\n class=\"sky-btn sky-btn-primary sky-vertical-tabset-show-tabs-btn\"\n >\n <sky-icon icon=\"chevron-left\"></sky-icon>\n {{ showTabsText }}\n </button>\n </div>\n</div>\n",
|
|
892
900
|
styles: [":host .sky-vertical-tabset{display:block;height:auto}:host .sky-vertical-tabset-group-container{border-right:none}:host-context(.sky-responsive-container-xs) .sky-vertical-tabset,:host-context(.sky-responsive-container-sm) .sky-vertical-tabset,:host-context(.sky-responsive-container-md) .sky-vertical-tabset,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset{display:block;height:auto}:host-context(.sky-responsive-container-xs) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:none}@media (min-width: 768px){:host .sky-vertical-tabset{display:flex;height:100%}:host .sky-vertical-tabset-group-container{border-right:1px solid #cdcfd2}}:host-context(.sky-responsive-container-sm) .sky-vertical-tabset,:host-context(.sky-responsive-container-md) .sky-vertical-tabset,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset{display:flex;height:100%}:host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,:host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:1px solid #cdcfd2}.sky-vertical-tabset-hidden{display:none}.sky-vertical-tabset-content{margin:10px 0 0 10px;flex-basis:75%;overflow-y:auto}.sky-vertical-tabset-content-hidden{display:none}.sky-vertical-tabset-show-tabs-btn{margin-top:10px}.sky-vertical-tabset-group-container{flex-basis:25%;overflow-y:auto}:host-context(sky-modal-content >) .sky-vertical-tabset{margin:-15px}:host-context(.sky-theme-modern) .sky-vertical-tabset-content{margin:15px}@media (min-width: 768px){:host-context(.sky-theme-modern) :host .sky-vertical-tabset-content{margin:20px 30px}:host-context(.sky-theme-modern) :host .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-vertical-tabset-content,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-content{margin:20px 30px}:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,:host-context(.sky-theme-modern) :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}.sky-theme-modern .sky-vertical-tabset-content{margin:15px}@media (min-width: 768px){.sky-theme-modern :host .sky-vertical-tabset-content{margin:20px 30px}.sky-theme-modern :host .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-content,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-vertical-tabset-content,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-content{margin:20px 30px}.sky-theme-modern :host-context(.sky-responsive-container-sm) .sky-vertical-tabset-group-container,.sky-theme-modern :host-context(.sky-responsive-container-md) .sky-vertical-tabset-group-container,.sky-theme-modern :host-context(.sky-responsive-container-lg) .sky-vertical-tabset-group-container{border-right:1px solid #d2d2d2}\n"],
|
|
893
|
-
providers: [
|
|
894
|
-
SkyVerticalTabsetService
|
|
895
|
-
],
|
|
901
|
+
providers: [SkyVerticalTabsetService],
|
|
896
902
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
897
903
|
animations: [
|
|
898
904
|
animations.trigger('tabGroupEnter', [
|
|
899
905
|
animations.transition(HIDDEN_STATE + " => " + VISIBLE_STATE, [
|
|
900
906
|
animations.style({ transform: 'translate(-100%)' }),
|
|
901
|
-
animations.animate('150ms ease-in')
|
|
902
|
-
])
|
|
907
|
+
animations.animate('150ms ease-in'),
|
|
908
|
+
]),
|
|
903
909
|
]),
|
|
904
910
|
animations.trigger('contentEnter', [
|
|
905
911
|
animations.transition(HIDDEN_STATE + " => " + VISIBLE_STATE, [
|
|
906
912
|
animations.style({ transform: 'translate(100%)' }),
|
|
907
|
-
animations.animate('150ms ease-in')
|
|
908
|
-
])
|
|
909
|
-
])
|
|
910
|
-
]
|
|
913
|
+
animations.animate('150ms ease-in'),
|
|
914
|
+
]),
|
|
915
|
+
]),
|
|
916
|
+
],
|
|
911
917
|
}]
|
|
912
918
|
}], ctorParameters: function () { return [{ type: SkyVerticalTabsetAdapterService }, { type: SkyVerticalTabsetService }, { type: i3__namespace.SkyLibResourcesService }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { showTabsText: [{
|
|
913
919
|
type: i0.Input
|
|
920
|
+
}], ariaLabel: [{
|
|
921
|
+
type: i0.Input
|
|
922
|
+
}], ariaLabelledBy: [{
|
|
923
|
+
type: i0.Input
|
|
914
924
|
}], ariaRole: [{
|
|
915
925
|
type: i0.Input
|
|
916
926
|
}], maintainTabContent: [{
|
|
@@ -956,7 +966,7 @@
|
|
|
956
966
|
},
|
|
957
967
|
/**
|
|
958
968
|
* Indicates whether the collapsible group is expanded.
|
|
959
|
-
* @default
|
|
969
|
+
* @default false
|
|
960
970
|
*/
|
|
961
971
|
set: function (value) {
|
|
962
972
|
this._open = value;
|
|
@@ -986,66 +996,20 @@
|
|
|
986
996
|
this.changeRef.markForCheck();
|
|
987
997
|
};
|
|
988
998
|
SkyVerticalTabsetGroupComponent.prototype.subMenuOpen = function () {
|
|
989
|
-
return this.tabs &&
|
|
999
|
+
return this.tabs && this.tabs.find(function (t) { return t.active; }) !== undefined;
|
|
990
1000
|
};
|
|
991
1001
|
return SkyVerticalTabsetGroupComponent;
|
|
992
1002
|
}());
|
|
993
|
-
SkyVerticalTabsetGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
994
|
-
SkyVerticalTabsetGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
995
|
-
|
|
996
|
-
animations.transition(':enter', [
|
|
997
|
-
animations.style({
|
|
998
|
-
height: '0',
|
|
999
|
-
visibility: 'hidden'
|
|
1000
|
-
}),
|
|
1001
|
-
animations.animate('150ms ease-in', animations.style({
|
|
1002
|
-
height: '*',
|
|
1003
|
-
visibility: 'visible'
|
|
1004
|
-
}))
|
|
1005
|
-
]),
|
|
1006
|
-
animations.transition(':leave', [
|
|
1007
|
-
animations.style({
|
|
1008
|
-
height: '*',
|
|
1009
|
-
visibility: 'visible'
|
|
1010
|
-
}),
|
|
1011
|
-
animations.animate('150ms ease-in', animations.style({
|
|
1012
|
-
height: '0',
|
|
1013
|
-
visibility: 'hidden'
|
|
1014
|
-
}))
|
|
1015
|
-
])
|
|
1016
|
-
])
|
|
1017
|
-
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1018
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyVerticalTabsetGroupComponent, decorators: [{
|
|
1003
|
+
SkyVerticalTabsetGroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetGroupComponent, deps: [{ token: SkyVerticalTabsetService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1004
|
+
SkyVerticalTabsetGroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyVerticalTabsetGroupComponent, selector: "sky-vertical-tabset-group", inputs: { disabled: "disabled", groupHeading: "groupHeading", open: "open" }, queries: [{ propertyName: "tabs", predicate: SkyVerticalTabComponent }], ngImport: i0__namespace, template: "<div class=\"sky-vertical-tabset-group\">\n <!-- [ngClass] includes font classes for both modern and default styles -->\n <div\n class=\"sky-vertical-tabset-group-header\"\n [ngClass]=\"{\n 'sky-vertical-tabset-group-header-sub-open sky-font-emphasized sky-emphasized':\n subMenuOpen(),\n 'sky-font-deemphasized': disabled,\n 'sky-deemphasized': disabled,\n 'sky-vertical-tabset-disabled': disabled\n }\"\n [tabIndex]=\"-1\"\n >\n <button\n class=\"sky-padding-even-default\"\n type=\"button\"\n skyId\n [attr.aria-controls]=\"groupContent.id\"\n [attr.aria-expanded]=\"open\"\n (click)=\"toggleMenuOpen()\"\n #groupHeadingButton\n >\n {{ groupHeading }}\n <sky-expansion-indicator\n class=\"sky-vertical-tabset-group-expansion-indicator\"\n [direction]=\"open ? 'up' : 'down'\"\n >\n </sky-expansion-indicator>\n </button>\n </div>\n <div\n class=\"sky-vertical-tabset-group-content\"\n role=\"region\"\n skyId\n [attr.labelledby]=\"groupHeadingButton.id\"\n [@skyAnimationSlide]=\"open ? 'down' : 'up'\"\n #groupContent\n >\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".sky-vertical-tabset-group{border-bottom:1px solid #e2e3e4;margin:5px 0 5px 5px}.sky-vertical-tabset-group-header button{cursor:pointer;display:flex;justify-content:space-between;border:none;width:100%;text-align:left;background:none}.sky-vertical-tabset-group-content{overflow:hidden;border-top:1px solid #e2e3e4}:host ::ng-deep .sky-vertical-tabset-group-expansion-indicator>button{font-size:14px!important}.sky-vertical-tabset-disabled{cursor:not-allowed;pointer-events:none}:host-context(.sky-theme-modern) .sky-vertical-tabset-group{border:none;margin:10px 0}:host-context(.sky-theme-modern) .sky-vertical-tabset-group-content{border:none;padding-left:25px}:host-context(.sky-theme-modern) .sky-vertical-tabset-group-header{position:relative}:host-context(.sky-theme-modern) .sky-vertical-tabset-group-expansion-indicator{position:absolute;top:6px;right:5px}.sky-theme-modern .sky-vertical-tabset-group{border:none;margin:10px 0}.sky-theme-modern .sky-vertical-tabset-group-content{border:none;padding-left:25px}.sky-theme-modern .sky-vertical-tabset-group-header{position:relative}.sky-theme-modern .sky-vertical-tabset-group-expansion-indicator{position:absolute;top:6px;right:5px}\n"], components: [{ type: i4__namespace.λ15, selector: "sky-expansion-indicator", inputs: ["direction"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.λ2, selector: "[skyId]", exportAs: ["skyId"] }], animations: [animations$1.skyAnimationSlide], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1005
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetGroupComponent, decorators: [{
|
|
1019
1006
|
type: i0.Component,
|
|
1020
1007
|
args: [{
|
|
1021
1008
|
selector: 'sky-vertical-tabset-group',
|
|
1022
|
-
template: "<div class=\"sky-vertical-tabset-group\">\n
|
|
1023
|
-
styles: [".sky-vertical-tabset-group{border-bottom:1px solid #e2e3e4;margin:5px 0 5px 5px}.sky-vertical-tabset-group-header{cursor:pointer;display:flex;justify-content:space-between
|
|
1009
|
+
template: "<div class=\"sky-vertical-tabset-group\">\n <!-- [ngClass] includes font classes for both modern and default styles -->\n <div\n class=\"sky-vertical-tabset-group-header\"\n [ngClass]=\"{\n 'sky-vertical-tabset-group-header-sub-open sky-font-emphasized sky-emphasized':\n subMenuOpen(),\n 'sky-font-deemphasized': disabled,\n 'sky-deemphasized': disabled,\n 'sky-vertical-tabset-disabled': disabled\n }\"\n [tabIndex]=\"-1\"\n >\n <button\n class=\"sky-padding-even-default\"\n type=\"button\"\n skyId\n [attr.aria-controls]=\"groupContent.id\"\n [attr.aria-expanded]=\"open\"\n (click)=\"toggleMenuOpen()\"\n #groupHeadingButton\n >\n {{ groupHeading }}\n <sky-expansion-indicator\n class=\"sky-vertical-tabset-group-expansion-indicator\"\n [direction]=\"open ? 'up' : 'down'\"\n >\n </sky-expansion-indicator>\n </button>\n </div>\n <div\n class=\"sky-vertical-tabset-group-content\"\n role=\"region\"\n skyId\n [attr.labelledby]=\"groupHeadingButton.id\"\n [@skyAnimationSlide]=\"open ? 'down' : 'up'\"\n #groupContent\n >\n <ng-content></ng-content>\n </div>\n</div>\n",
|
|
1010
|
+
styles: [".sky-vertical-tabset-group{border-bottom:1px solid #e2e3e4;margin:5px 0 5px 5px}.sky-vertical-tabset-group-header button{cursor:pointer;display:flex;justify-content:space-between;border:none;width:100%;text-align:left;background:none}.sky-vertical-tabset-group-content{overflow:hidden;border-top:1px solid #e2e3e4}:host ::ng-deep .sky-vertical-tabset-group-expansion-indicator>button{font-size:14px!important}.sky-vertical-tabset-disabled{cursor:not-allowed;pointer-events:none}:host-context(.sky-theme-modern) .sky-vertical-tabset-group{border:none;margin:10px 0}:host-context(.sky-theme-modern) .sky-vertical-tabset-group-content{border:none;padding-left:25px}:host-context(.sky-theme-modern) .sky-vertical-tabset-group-header{position:relative}:host-context(.sky-theme-modern) .sky-vertical-tabset-group-expansion-indicator{position:absolute;top:6px;right:5px}.sky-theme-modern .sky-vertical-tabset-group{border:none;margin:10px 0}.sky-theme-modern .sky-vertical-tabset-group-content{border:none;padding-left:25px}.sky-theme-modern .sky-vertical-tabset-group-header{position:relative}.sky-theme-modern .sky-vertical-tabset-group-expansion-indicator{position:absolute;top:6px;right:5px}\n"],
|
|
1024
1011
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1025
|
-
animations: [
|
|
1026
|
-
animations.trigger('tabSlide', [
|
|
1027
|
-
animations.transition(':enter', [
|
|
1028
|
-
animations.style({
|
|
1029
|
-
height: '0',
|
|
1030
|
-
visibility: 'hidden'
|
|
1031
|
-
}),
|
|
1032
|
-
animations.animate('150ms ease-in', animations.style({
|
|
1033
|
-
height: '*',
|
|
1034
|
-
visibility: 'visible'
|
|
1035
|
-
}))
|
|
1036
|
-
]),
|
|
1037
|
-
animations.transition(':leave', [
|
|
1038
|
-
animations.style({
|
|
1039
|
-
height: '*',
|
|
1040
|
-
visibility: 'visible'
|
|
1041
|
-
}),
|
|
1042
|
-
animations.animate('150ms ease-in', animations.style({
|
|
1043
|
-
height: '0',
|
|
1044
|
-
visibility: 'hidden'
|
|
1045
|
-
}))
|
|
1046
|
-
])
|
|
1047
|
-
])
|
|
1048
|
-
]
|
|
1012
|
+
animations: [animations$1.skyAnimationSlide],
|
|
1049
1013
|
}]
|
|
1050
1014
|
}], ctorParameters: function () { return [{ type: SkyVerticalTabsetService }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { disabled: [{
|
|
1051
1015
|
type: i0.Input
|
|
@@ -1063,51 +1027,50 @@
|
|
|
1063
1027
|
}
|
|
1064
1028
|
return SkyVerticalTabsetModule;
|
|
1065
1029
|
}());
|
|
1066
|
-
SkyVerticalTabsetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1067
|
-
SkyVerticalTabsetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1030
|
+
SkyVerticalTabsetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1031
|
+
SkyVerticalTabsetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetModule, declarations: [SkyVerticalTabsetComponent,
|
|
1068
1032
|
SkyVerticalTabsetGroupComponent,
|
|
1069
1033
|
SkyVerticalTabComponent], imports: [i2.CommonModule,
|
|
1070
|
-
i4.SkyChevronModule,
|
|
1071
1034
|
i4.SkyIconModule,
|
|
1035
|
+
i1.SkyIdModule,
|
|
1036
|
+
i4.SkyExpansionIndicatorModule,
|
|
1072
1037
|
i4.SkyStatusIndicatorModule,
|
|
1073
1038
|
SkyTabsResourcesModule,
|
|
1074
|
-
|
|
1039
|
+
i8.SkyThemeModule], exports: [SkyVerticalTabsetComponent,
|
|
1075
1040
|
SkyVerticalTabsetGroupComponent,
|
|
1076
1041
|
SkyVerticalTabComponent] });
|
|
1077
|
-
SkyVerticalTabsetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1078
|
-
SkyVerticalTabsetAdapterService
|
|
1079
|
-
], imports: [[
|
|
1042
|
+
SkyVerticalTabsetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetModule, providers: [SkyVerticalTabsetAdapterService], imports: [[
|
|
1080
1043
|
i2.CommonModule,
|
|
1081
|
-
i4.SkyChevronModule,
|
|
1082
1044
|
i4.SkyIconModule,
|
|
1045
|
+
i1.SkyIdModule,
|
|
1046
|
+
i4.SkyExpansionIndicatorModule,
|
|
1083
1047
|
i4.SkyStatusIndicatorModule,
|
|
1084
1048
|
SkyTabsResourcesModule,
|
|
1085
|
-
|
|
1049
|
+
i8.SkyThemeModule,
|
|
1086
1050
|
]] });
|
|
1087
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1051
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyVerticalTabsetModule, decorators: [{
|
|
1088
1052
|
type: i0.NgModule,
|
|
1089
1053
|
args: [{
|
|
1090
1054
|
declarations: [
|
|
1091
1055
|
SkyVerticalTabsetComponent,
|
|
1092
1056
|
SkyVerticalTabsetGroupComponent,
|
|
1093
|
-
SkyVerticalTabComponent
|
|
1057
|
+
SkyVerticalTabComponent,
|
|
1094
1058
|
],
|
|
1095
1059
|
imports: [
|
|
1096
1060
|
i2.CommonModule,
|
|
1097
|
-
i4.SkyChevronModule,
|
|
1098
1061
|
i4.SkyIconModule,
|
|
1062
|
+
i1.SkyIdModule,
|
|
1063
|
+
i4.SkyExpansionIndicatorModule,
|
|
1099
1064
|
i4.SkyStatusIndicatorModule,
|
|
1100
1065
|
SkyTabsResourcesModule,
|
|
1101
|
-
|
|
1102
|
-
],
|
|
1103
|
-
providers: [
|
|
1104
|
-
SkyVerticalTabsetAdapterService
|
|
1066
|
+
i8.SkyThemeModule,
|
|
1105
1067
|
],
|
|
1068
|
+
providers: [SkyVerticalTabsetAdapterService],
|
|
1106
1069
|
exports: [
|
|
1107
1070
|
SkyVerticalTabsetComponent,
|
|
1108
1071
|
SkyVerticalTabsetGroupComponent,
|
|
1109
|
-
SkyVerticalTabComponent
|
|
1110
|
-
]
|
|
1072
|
+
SkyVerticalTabComponent,
|
|
1073
|
+
],
|
|
1111
1074
|
}]
|
|
1112
1075
|
}] });
|
|
1113
1076
|
|
|
@@ -1116,36 +1079,28 @@
|
|
|
1116
1079
|
}
|
|
1117
1080
|
return SkySectionedFormModule;
|
|
1118
1081
|
}());
|
|
1119
|
-
SkySectionedFormModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1120
|
-
SkySectionedFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1121
|
-
SkySectionedFormSectionComponent], imports: [i2.CommonModule,
|
|
1082
|
+
SkySectionedFormModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1083
|
+
SkySectionedFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormModule, declarations: [SkySectionedFormComponent, SkySectionedFormSectionComponent], imports: [i2.CommonModule,
|
|
1122
1084
|
forms.SkyCheckboxModule,
|
|
1123
|
-
|
|
1124
|
-
SkyVerticalTabsetModule], exports: [SkySectionedFormComponent,
|
|
1125
|
-
|
|
1126
|
-
SkySectionedFormModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkySectionedFormModule, imports: [[
|
|
1085
|
+
i8.SkyThemeModule,
|
|
1086
|
+
SkyVerticalTabsetModule], exports: [SkySectionedFormComponent, SkySectionedFormSectionComponent] });
|
|
1087
|
+
SkySectionedFormModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormModule, imports: [[
|
|
1127
1088
|
i2.CommonModule,
|
|
1128
1089
|
forms.SkyCheckboxModule,
|
|
1129
|
-
|
|
1130
|
-
SkyVerticalTabsetModule
|
|
1090
|
+
i8.SkyThemeModule,
|
|
1091
|
+
SkyVerticalTabsetModule,
|
|
1131
1092
|
]] });
|
|
1132
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1093
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkySectionedFormModule, decorators: [{
|
|
1133
1094
|
type: i0.NgModule,
|
|
1134
1095
|
args: [{
|
|
1135
|
-
declarations: [
|
|
1136
|
-
SkySectionedFormComponent,
|
|
1137
|
-
SkySectionedFormSectionComponent
|
|
1138
|
-
],
|
|
1096
|
+
declarations: [SkySectionedFormComponent, SkySectionedFormSectionComponent],
|
|
1139
1097
|
imports: [
|
|
1140
1098
|
i2.CommonModule,
|
|
1141
1099
|
forms.SkyCheckboxModule,
|
|
1142
|
-
|
|
1143
|
-
SkyVerticalTabsetModule
|
|
1100
|
+
i8.SkyThemeModule,
|
|
1101
|
+
SkyVerticalTabsetModule,
|
|
1144
1102
|
],
|
|
1145
|
-
exports: [
|
|
1146
|
-
SkySectionedFormComponent,
|
|
1147
|
-
SkySectionedFormSectionComponent
|
|
1148
|
-
]
|
|
1103
|
+
exports: [SkySectionedFormComponent, SkySectionedFormSectionComponent],
|
|
1149
1104
|
}]
|
|
1150
1105
|
}] });
|
|
1151
1106
|
|
|
@@ -1163,8 +1118,19 @@
|
|
|
1163
1118
|
event.preventDefault();
|
|
1164
1119
|
}
|
|
1165
1120
|
};
|
|
1166
|
-
SkyTabButtonComponent.prototype.
|
|
1167
|
-
|
|
1121
|
+
SkyTabButtonComponent.prototype.onTabButtonKeyDown = function (event) {
|
|
1122
|
+
/*istanbul ignore else */
|
|
1123
|
+
if (event.key) {
|
|
1124
|
+
switch (event.key.toUpperCase()) {
|
|
1125
|
+
case ' ':
|
|
1126
|
+
case 'ENTER':
|
|
1127
|
+
this.onButtonClick(event);
|
|
1128
|
+
break;
|
|
1129
|
+
/* istanbul ignore next */
|
|
1130
|
+
default:
|
|
1131
|
+
break;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1168
1134
|
};
|
|
1169
1135
|
SkyTabButtonComponent.prototype.onCloseClick = function (event) {
|
|
1170
1136
|
this.closeClick.emit();
|
|
@@ -1175,16 +1141,16 @@
|
|
|
1175
1141
|
};
|
|
1176
1142
|
return SkyTabButtonComponent;
|
|
1177
1143
|
}());
|
|
1178
|
-
SkyTabButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1179
|
-
SkyTabButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1180
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1144
|
+
SkyTabButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1145
|
+
SkyTabButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTabButtonComponent, selector: "sky-tab-button", inputs: { active: "active", ariaControls: "ariaControls", buttonHref: "buttonHref", buttonId: "buttonId", buttonText: "buttonText", buttonTextCount: "buttonTextCount", closeable: "closeable", disabled: "disabled", tabStyle: "tabStyle" }, outputs: { buttonClick: "buttonClick", closeClick: "closeClick" }, ngImport: i0__namespace, template: "<div\n class=\"sky-btn-tab-wrapper\"\n [ngClass]=\"{\n 'sky-btn-tab-wrapper-selected': active,\n 'sky-btn-tab-wrapper-disabled': disabled\n }\"\n>\n <a\n class=\"sky-btn-tab\"\n role=\"tab\"\n [attr.aria-controls]=\"ariaControls\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-selected]=\"active\"\n [attr.href]=\"buttonHref\"\n [id]=\"buttonId\"\n [ngClass]=\"{\n 'sky-btn-tab-wizard': tabStyle === 'wizard',\n 'sky-btn-tab-selected': active,\n 'sky-btn-tab-disabled': disabled,\n 'sky-tab-btn-closeable': closeable\n }\"\n [tabindex]=\"disabled ? '-1' : '0'\"\n (click)=\"onButtonClick($event)\"\n (keydown)=\"onTabButtonKeyDown($event)\"\n >\n <span class=\"sky-tab-heading\">\n {{ buttonText }}\n <span *ngIf=\"buttonTextCount !== undefined\" class=\"sky-tab-header-count\">\n {{ buttonTextCount }}\n </span>\n </span>\n </a>\n\n <button\n *ngIf=\"closeable\"\n class=\"sky-btn-tab-close\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_tab_close' | skyLibResources: buttonText\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n 'sky-btn-tab-close-disabled': disabled\n }\"\n (click)=\"onCloseClick($event)\"\n >\n <sky-icon icon=\"remove\"></sky-icon>\n </button>\n</div>\n", styles: [".sky-btn-tab-wrapper{display:inline-block;position:relative;margin-right:5px}.sky-btn-tab-wrapper .sky-btn-tab-close{position:absolute;top:10px;right:10px;color:#686c73}.sky-btn-tab-wrapper .sky-btn-tab-close:hover{color:#212327;transition:color .15s}.sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#fff}.sky-tab-btn-closeable{padding-right:43px}:host-context(.sky-theme-modern) .sky-btn-tab-wrapper{margin-right:10px}:host-context(.sky-theme-modern) .sky-btn-tab-wrapper .sky-btn-tab-close{top:12px;right:10px}:host-context(.sky-theme-modern) .sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#686c73}:host-context(.sky-theme-modern) .sky-tab-btn-closeable{padding-right:44px}.sky-theme-modern .sky-btn-tab-wrapper{margin-right:10px}.sky-theme-modern .sky-btn-tab-wrapper .sky-btn-tab-close{top:12px;right:10px}.sky-theme-modern .sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#686c73}.sky-theme-modern .sky-tab-btn-closeable{padding-right:44px}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-btn-tab-wrapper .sky-btn-tab-close{color:#eeeeef}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#eeeeef}.sky-theme-modern.sky-theme-mode-dark .sky-btn-tab-wrapper .sky-btn-tab-close{color:#eeeeef}.sky-theme-modern.sky-theme-mode-dark .sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#eeeeef}\n"], components: [{ type: i4__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyLibResources": i3__namespace.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1146
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabButtonComponent, decorators: [{
|
|
1181
1147
|
type: i0.Component,
|
|
1182
1148
|
args: [{
|
|
1183
1149
|
selector: 'sky-tab-button',
|
|
1184
|
-
template: "<div\n class=\"sky-btn-tab-wrapper\"\n [ngClass]=\"{\n 'sky-btn-tab-wrapper-selected': active,\n 'sky-btn-tab-wrapper-disabled': disabled\n }\"\n>\n <a\n class=\"sky-btn-tab\"\n role=\"tab\"\n [attr.aria-controls]=\"ariaControls\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-selected]=\"active\"\n [attr.href]=\"buttonHref\"\n [id]=\"buttonId\"\n [ngClass]=\"{\n 'sky-btn-tab-wizard': tabStyle === 'wizard',\n 'sky-btn-tab-selected': active,\n 'sky-btn-tab-disabled': disabled,\n 'sky-tab-btn-closeable': closeable\n }\"\n [tabindex]=\"disabled ? '-1' : '0'\"\n (click)=\"onButtonClick($event)\"\n (keydown
|
|
1150
|
+
template: "<div\n class=\"sky-btn-tab-wrapper\"\n [ngClass]=\"{\n 'sky-btn-tab-wrapper-selected': active,\n 'sky-btn-tab-wrapper-disabled': disabled\n }\"\n>\n <a\n class=\"sky-btn-tab\"\n role=\"tab\"\n [attr.aria-controls]=\"ariaControls\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-selected]=\"active\"\n [attr.href]=\"buttonHref\"\n [id]=\"buttonId\"\n [ngClass]=\"{\n 'sky-btn-tab-wizard': tabStyle === 'wizard',\n 'sky-btn-tab-selected': active,\n 'sky-btn-tab-disabled': disabled,\n 'sky-tab-btn-closeable': closeable\n }\"\n [tabindex]=\"disabled ? '-1' : '0'\"\n (click)=\"onButtonClick($event)\"\n (keydown)=\"onTabButtonKeyDown($event)\"\n >\n <span class=\"sky-tab-heading\">\n {{ buttonText }}\n <span *ngIf=\"buttonTextCount !== undefined\" class=\"sky-tab-header-count\">\n {{ buttonTextCount }}\n </span>\n </span>\n </a>\n\n <button\n *ngIf=\"closeable\"\n class=\"sky-btn-tab-close\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_tab_close' | skyLibResources: buttonText\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n 'sky-btn-tab-close-disabled': disabled\n }\"\n (click)=\"onCloseClick($event)\"\n >\n <sky-icon icon=\"remove\"></sky-icon>\n </button>\n</div>\n",
|
|
1185
1151
|
styles: [".sky-btn-tab-wrapper{display:inline-block;position:relative;margin-right:5px}.sky-btn-tab-wrapper .sky-btn-tab-close{position:absolute;top:10px;right:10px;color:#686c73}.sky-btn-tab-wrapper .sky-btn-tab-close:hover{color:#212327;transition:color .15s}.sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#fff}.sky-tab-btn-closeable{padding-right:43px}:host-context(.sky-theme-modern) .sky-btn-tab-wrapper{margin-right:10px}:host-context(.sky-theme-modern) .sky-btn-tab-wrapper .sky-btn-tab-close{top:12px;right:10px}:host-context(.sky-theme-modern) .sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#686c73}:host-context(.sky-theme-modern) .sky-tab-btn-closeable{padding-right:44px}.sky-theme-modern .sky-btn-tab-wrapper{margin-right:10px}.sky-theme-modern .sky-btn-tab-wrapper .sky-btn-tab-close{top:12px;right:10px}.sky-theme-modern .sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#686c73}.sky-theme-modern .sky-tab-btn-closeable{padding-right:44px}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-btn-tab-wrapper .sky-btn-tab-close{color:#eeeeef}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#eeeeef}.sky-theme-modern.sky-theme-mode-dark .sky-btn-tab-wrapper .sky-btn-tab-close{color:#eeeeef}.sky-theme-modern.sky-theme-mode-dark .sky-btn-tab-wrapper.sky-btn-tab-wrapper-selected:not(.sky-btn-tab-wrapper-disabled) .sky-btn-tab-close{color:#eeeeef}\n"],
|
|
1186
1152
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1187
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
1153
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
1188
1154
|
}]
|
|
1189
1155
|
}], propDecorators: { active: [{
|
|
1190
1156
|
type: i0.Input
|
|
@@ -1257,11 +1223,13 @@
|
|
|
1257
1223
|
}
|
|
1258
1224
|
// Update the URL without triggering a navigation state change.
|
|
1259
1225
|
// See: https://stackoverflow.com/a/46486677
|
|
1260
|
-
var url = this.router
|
|
1226
|
+
var url = this.router
|
|
1227
|
+
.createUrlTree(['.'], {
|
|
1261
1228
|
relativeTo: this.activatedRoute,
|
|
1262
1229
|
queryParams: params,
|
|
1263
|
-
queryParamsHandling: 'merge'
|
|
1264
|
-
})
|
|
1230
|
+
queryParamsHandling: 'merge',
|
|
1231
|
+
})
|
|
1232
|
+
.toString();
|
|
1265
1233
|
// Abort redirect if the current URL is equal to the new URL.
|
|
1266
1234
|
if (this.location.isCurrentPathEqualTo(url)) {
|
|
1267
1235
|
return;
|
|
@@ -1287,7 +1255,9 @@
|
|
|
1287
1255
|
var params = this.getParams();
|
|
1288
1256
|
params[name] = value;
|
|
1289
1257
|
var baseUrl = this.location.path().split('?')[0];
|
|
1290
|
-
var paramString = Object.keys(params)
|
|
1258
|
+
var paramString = Object.keys(params)
|
|
1259
|
+
.map(function (k) { return k + "=" + params[k]; })
|
|
1260
|
+
.join('&');
|
|
1291
1261
|
return this.location.prepareExternalUrl(baseUrl + "?" + paramString);
|
|
1292
1262
|
};
|
|
1293
1263
|
/**
|
|
@@ -1297,7 +1267,8 @@
|
|
|
1297
1267
|
if (!value) {
|
|
1298
1268
|
return '';
|
|
1299
1269
|
}
|
|
1300
|
-
var sanitized = value
|
|
1270
|
+
var sanitized = value
|
|
1271
|
+
.toLowerCase()
|
|
1301
1272
|
// Remove special characters.
|
|
1302
1273
|
.replace(/[\_\~\`\@\!\#\$\%\^\&\*\(\)\[\]\{\}\;\:\'\/\\\<\>\,\.\?\=\+\|"]/g, '')
|
|
1303
1274
|
// Replace space characters with a dash.
|
|
@@ -1324,9 +1295,9 @@
|
|
|
1324
1295
|
};
|
|
1325
1296
|
return SkyTabsetPermalinkService;
|
|
1326
1297
|
}());
|
|
1327
|
-
SkyTabsetPermalinkService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1328
|
-
SkyTabsetPermalinkService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1329
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1298
|
+
SkyTabsetPermalinkService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetPermalinkService, deps: [{ token: i1__namespace$1.ActivatedRoute }, { token: i2__namespace.Location }, { token: i1__namespace$1.Router }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1299
|
+
SkyTabsetPermalinkService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetPermalinkService });
|
|
1300
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetPermalinkService, decorators: [{
|
|
1330
1301
|
type: i0.Injectable
|
|
1331
1302
|
}], ctorParameters: function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i2__namespace.Location }, { type: i1__namespace$1.Router }]; } });
|
|
1332
1303
|
|
|
@@ -1360,7 +1331,7 @@
|
|
|
1360
1331
|
*/
|
|
1361
1332
|
SkyTabsetService.prototype.setActiveTabIndex = function (value, config) {
|
|
1362
1333
|
if (config === void 0) { config = {
|
|
1363
|
-
emitChange: true
|
|
1334
|
+
emitChange: true,
|
|
1364
1335
|
}; }
|
|
1365
1336
|
if (value !== undefined &&
|
|
1366
1337
|
!this.tabIndexesEqual(value, this.currentActiveTabIndex)) {
|
|
@@ -1396,7 +1367,7 @@
|
|
|
1396
1367
|
// Notify the tabset component when an active tab is unregistered.
|
|
1397
1368
|
if (this.isTabIndexActive(this.tabs[index].tabIndex)) {
|
|
1398
1369
|
this._activeTabUnregistered.next({
|
|
1399
|
-
arrayIndex: index
|
|
1370
|
+
arrayIndex: index,
|
|
1400
1371
|
});
|
|
1401
1372
|
}
|
|
1402
1373
|
this.tabs.splice(index, 1);
|
|
@@ -1411,8 +1382,7 @@
|
|
|
1411
1382
|
* Compares two tab indexes and returns `true` if they are equal.
|
|
1412
1383
|
*/
|
|
1413
1384
|
SkyTabsetService.prototype.tabIndexesEqual = function (tabIndex1, tabIndex2) {
|
|
1414
|
-
return
|
|
1415
|
-
+tabIndex1 === +tabIndex2);
|
|
1385
|
+
return tabIndex1 === tabIndex2 || +tabIndex1 === +tabIndex2;
|
|
1416
1386
|
};
|
|
1417
1387
|
/**
|
|
1418
1388
|
* Verifies if a provided tab index is registered.
|
|
@@ -1445,9 +1415,9 @@
|
|
|
1445
1415
|
};
|
|
1446
1416
|
return SkyTabsetService;
|
|
1447
1417
|
}());
|
|
1448
|
-
SkyTabsetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1449
|
-
SkyTabsetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1450
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1418
|
+
SkyTabsetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1419
|
+
SkyTabsetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetService });
|
|
1420
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetService, decorators: [{
|
|
1451
1421
|
type: i0.Injectable
|
|
1452
1422
|
}] });
|
|
1453
1423
|
|
|
@@ -1461,7 +1431,7 @@
|
|
|
1461
1431
|
* Fires when users click the button to close the tab.
|
|
1462
1432
|
* The close button is added to the tab when you specify a listener for this event.
|
|
1463
1433
|
*/
|
|
1464
|
-
this.close = new i0.EventEmitter();
|
|
1434
|
+
this.close = new i0.EventEmitter(); // eslint-disable-line @angular-eslint/no-output-native
|
|
1465
1435
|
this.showContent = false;
|
|
1466
1436
|
this._activeChange = new rxjs.BehaviorSubject(undefined);
|
|
1467
1437
|
this._stateChange = new rxjs.BehaviorSubject(undefined);
|
|
@@ -1480,8 +1450,7 @@
|
|
|
1480
1450
|
* @default false
|
|
1481
1451
|
*/
|
|
1482
1452
|
set: function (value) {
|
|
1483
|
-
if (value !== undefined &&
|
|
1484
|
-
value !== this._active) {
|
|
1453
|
+
if (value !== undefined && value !== this._active) {
|
|
1485
1454
|
this._active = value;
|
|
1486
1455
|
this._activeChange.next();
|
|
1487
1456
|
}
|
|
@@ -1498,7 +1467,7 @@
|
|
|
1498
1467
|
});
|
|
1499
1468
|
Object.defineProperty(SkyTabComponent.prototype, "permalinkValue", {
|
|
1500
1469
|
get: function () {
|
|
1501
|
-
return this._permalinkValue || this.permalinkService.urlify(this.tabHeading);
|
|
1470
|
+
return (this._permalinkValue || this.permalinkService.urlify(this.tabHeading));
|
|
1502
1471
|
},
|
|
1503
1472
|
/**
|
|
1504
1473
|
* Specifies a custom query parameter value for the tab.
|
|
@@ -1558,10 +1527,10 @@
|
|
|
1558
1527
|
configurable: true
|
|
1559
1528
|
});
|
|
1560
1529
|
SkyTabComponent.prototype.ngOnChanges = function (changes) {
|
|
1561
|
-
if (changes.disabled && !changes.disabled.firstChange ||
|
|
1562
|
-
changes.tabHeading && !changes.tabHeading.firstChange ||
|
|
1563
|
-
changes.tabHeaderCount && !changes.tabHeaderCount.firstChange ||
|
|
1564
|
-
changes.permalinkValue && !changes.permalinkValue.firstChange) {
|
|
1530
|
+
if ((changes.disabled && !changes.disabled.firstChange) ||
|
|
1531
|
+
(changes.tabHeading && !changes.tabHeading.firstChange) ||
|
|
1532
|
+
(changes.tabHeaderCount && !changes.tabHeaderCount.firstChange) ||
|
|
1533
|
+
(changes.permalinkValue && !changes.permalinkValue.firstChange)) {
|
|
1565
1534
|
this._stateChange.next();
|
|
1566
1535
|
}
|
|
1567
1536
|
};
|
|
@@ -1584,14 +1553,14 @@
|
|
|
1584
1553
|
};
|
|
1585
1554
|
return SkyTabComponent;
|
|
1586
1555
|
}());
|
|
1587
|
-
SkyTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1588
|
-
SkyTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1589
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1556
|
+
SkyTabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: SkyTabsetPermalinkService }, { token: SkyTabsetService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1557
|
+
SkyTabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTabComponent, selector: "sky-tab", inputs: { active: "active", disabled: "disabled", permalinkValue: "permalinkValue", tabHeaderCount: "tabHeaderCount", tabHeading: "tabHeading", tabIndex: "tabIndex" }, outputs: { close: "close" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n class=\"sky-tab\"\n role=\"tabpanel\"\n [attr.aria-labelledby]=\"tabButtonId\"\n [hidden]=\"!showContent\"\n [id]=\"tabPanelId\"\n>\n <ng-content></ng-content>\n</div>\n", changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1558
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabComponent, decorators: [{
|
|
1590
1559
|
type: i0.Component,
|
|
1591
1560
|
args: [{
|
|
1592
1561
|
selector: 'sky-tab',
|
|
1593
1562
|
template: "<div\n class=\"sky-tab\"\n role=\"tabpanel\"\n [attr.aria-labelledby]=\"tabButtonId\"\n [hidden]=\"!showContent\"\n [id]=\"tabPanelId\"\n>\n <ng-content></ng-content>\n</div>\n",
|
|
1594
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1563
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1595
1564
|
}]
|
|
1596
1565
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: SkyTabsetPermalinkService }, { type: SkyTabsetService }]; }, propDecorators: { active: [{
|
|
1597
1566
|
type: i0.Input
|
|
@@ -1699,7 +1668,7 @@
|
|
|
1699
1668
|
var _this = this;
|
|
1700
1669
|
rxjs.forkJoin([
|
|
1701
1670
|
this.resourceService.getString('skyux_tabs_navigator_previous'),
|
|
1702
|
-
this.resourceService.getString('skyux_tabs_navigator_next')
|
|
1671
|
+
this.resourceService.getString('skyux_tabs_navigator_next'),
|
|
1703
1672
|
])
|
|
1704
1673
|
.pipe(operators.take(1))
|
|
1705
1674
|
.subscribe(function (resources) {
|
|
@@ -1728,13 +1697,13 @@
|
|
|
1728
1697
|
};
|
|
1729
1698
|
return SkyTabsetNavButtonComponent;
|
|
1730
1699
|
}());
|
|
1731
|
-
SkyTabsetNavButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1732
|
-
SkyTabsetNavButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1733
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1700
|
+
SkyTabsetNavButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetNavButtonComponent, deps: [{ token: i3__namespace.SkyLibResourcesService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1701
|
+
SkyTabsetNavButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTabsetNavButtonComponent, selector: "sky-tabset-nav-button", inputs: { tabset: "tabset", buttonType: "buttonType", buttonText: "buttonText" }, ngImport: i0__namespace, template: "<button\n class=\"sky-btn sky-btn-default\"\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"buttonClick()\"\n>\n {{ buttonText }}\n</button>\n" });
|
|
1702
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetNavButtonComponent, decorators: [{
|
|
1734
1703
|
type: i0.Component,
|
|
1735
1704
|
args: [{
|
|
1736
1705
|
selector: 'sky-tabset-nav-button',
|
|
1737
|
-
template: "<button\n class=\"sky-btn sky-btn-default\"\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"buttonClick()\"\n>\n {{ buttonText }}\n</button>\n"
|
|
1706
|
+
template: "<button\n class=\"sky-btn sky-btn-default\"\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"buttonClick()\"\n>\n {{ buttonText }}\n</button>\n",
|
|
1738
1707
|
}]
|
|
1739
1708
|
}], ctorParameters: function () { return [{ type: i3__namespace.SkyLibResourcesService }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { tabset: [{
|
|
1740
1709
|
type: i0.Input
|
|
@@ -1777,7 +1746,7 @@
|
|
|
1777
1746
|
.querySelector('.sky-tabset-btns')
|
|
1778
1747
|
.getBoundingClientRect();
|
|
1779
1748
|
var tabButtonsWidth = tabButtonsRect.width + tabExtraButtonsRect.width + this.tabsOffsetLeft;
|
|
1780
|
-
var newOverflow =
|
|
1749
|
+
var newOverflow = tabButtonsWidth > tabsetRect.width;
|
|
1781
1750
|
if (this.currentOverflow !== newOverflow) {
|
|
1782
1751
|
this.currentOverflow = newOverflow;
|
|
1783
1752
|
this._overflowChange.next(this.currentOverflow);
|
|
@@ -1789,14 +1758,16 @@
|
|
|
1789
1758
|
SkyTabsetAdapterService.prototype.getTabsOffsetLeft = function (tabsetEl) {
|
|
1790
1759
|
var tabsetRect = tabsetEl.getBoundingClientRect();
|
|
1791
1760
|
// The dropdown element is the first "tab" and always exists in the DOM, even when hidden.
|
|
1792
|
-
var firstTabRect = tabsetEl
|
|
1761
|
+
var firstTabRect = tabsetEl
|
|
1762
|
+
.querySelector('.sky-tabset-dropdown')
|
|
1763
|
+
.getBoundingClientRect();
|
|
1793
1764
|
return firstTabRect.left - tabsetRect.left;
|
|
1794
1765
|
};
|
|
1795
1766
|
return SkyTabsetAdapterService;
|
|
1796
1767
|
}());
|
|
1797
|
-
SkyTabsetAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1798
|
-
SkyTabsetAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1799
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1768
|
+
SkyTabsetAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetAdapterService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1769
|
+
SkyTabsetAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetAdapterService });
|
|
1770
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetAdapterService, decorators: [{
|
|
1800
1771
|
type: i0.Injectable
|
|
1801
1772
|
}] });
|
|
1802
1773
|
|
|
@@ -1894,7 +1865,7 @@
|
|
|
1894
1865
|
* @deprecated The property was designed to create wizards by setting tabStyle="wizard" on tabsets in modals,
|
|
1895
1866
|
* but this wizard implementation was replaced by the
|
|
1896
1867
|
* [progress indicator component](https://developer.blackbaud.com/skyux/components/progress-indicator).
|
|
1897
|
-
* @default
|
|
1868
|
+
* @default "tabs"
|
|
1898
1869
|
*/
|
|
1899
1870
|
set: function (value) {
|
|
1900
1871
|
/*istanbul ignore else*/
|
|
@@ -1992,9 +1963,7 @@
|
|
|
1992
1963
|
};
|
|
1993
1964
|
SkyTabsetComponent.prototype.listenTabComponentsStructuralChange = function () {
|
|
1994
1965
|
var _this = this;
|
|
1995
|
-
this.tabs.changes
|
|
1996
|
-
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
1997
|
-
.subscribe(function () {
|
|
1966
|
+
this.tabs.changes.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
|
|
1998
1967
|
_this.resetTabComponents();
|
|
1999
1968
|
});
|
|
2000
1969
|
};
|
|
@@ -2046,7 +2015,7 @@
|
|
|
2046
2015
|
this.initTabComponents();
|
|
2047
2016
|
var activeIndex = (_a = this.getActiveTabComponent()) === null || _a === void 0 ? void 0 : _a.tabIndex;
|
|
2048
2017
|
this.tabsetService.setActiveTabIndex(activeIndex, {
|
|
2049
|
-
emitChange: false
|
|
2018
|
+
emitChange: false,
|
|
2050
2019
|
});
|
|
2051
2020
|
this.listenTabComponentsStateChange();
|
|
2052
2021
|
};
|
|
@@ -2054,8 +2023,8 @@
|
|
|
2054
2023
|
this.tabIndexesChange.emit({
|
|
2055
2024
|
tabs: this.tabs.map(function (tab) { return ({
|
|
2056
2025
|
tabHeading: tab.tabHeading,
|
|
2057
|
-
tabIndex: tab.tabIndex
|
|
2058
|
-
}); })
|
|
2026
|
+
tabIndex: tab.tabIndex,
|
|
2027
|
+
}); }),
|
|
2059
2028
|
});
|
|
2060
2029
|
};
|
|
2061
2030
|
SkyTabsetComponent.prototype.unsubscribeTabComponentsStateChange = function () {
|
|
@@ -2069,7 +2038,7 @@
|
|
|
2069
2038
|
this.adapterService.overflowChange
|
|
2070
2039
|
.pipe(operators.takeUntil(this.ngUnsubscribe))
|
|
2071
2040
|
.subscribe(function (isOverflowing) {
|
|
2072
|
-
_this.tabDisplayMode =
|
|
2041
|
+
_this.tabDisplayMode = isOverflowing ? 'dropdown' : 'tabs';
|
|
2073
2042
|
_this.changeDetector.markForCheck();
|
|
2074
2043
|
});
|
|
2075
2044
|
};
|
|
@@ -2098,7 +2067,10 @@
|
|
|
2098
2067
|
}
|
|
2099
2068
|
};
|
|
2100
2069
|
SkyTabsetComponent.prototype.getActiveTabComponent = function () {
|
|
2101
|
-
return this.tabs
|
|
2070
|
+
return this.tabs
|
|
2071
|
+
.toArray()
|
|
2072
|
+
.reverse()
|
|
2073
|
+
.find(function (tab) { return tab.active === true; });
|
|
2102
2074
|
};
|
|
2103
2075
|
SkyTabsetComponent.prototype.createTabButtons = function (activeIndex) {
|
|
2104
2076
|
var _this = this;
|
|
@@ -2108,11 +2080,13 @@
|
|
|
2108
2080
|
ariaControls: tab.tabPanelId,
|
|
2109
2081
|
disabled: tab.disabled,
|
|
2110
2082
|
/*tslint:disable-next-line:no-null-keyword*/
|
|
2111
|
-
buttonHref:
|
|
2083
|
+
buttonHref: tab.disabled
|
|
2084
|
+
? null
|
|
2085
|
+
: _this.permalinkService.getParamHref(_this.permalinkId, tab.permalinkValue),
|
|
2112
2086
|
buttonId: tab.tabButtonId,
|
|
2113
2087
|
buttonTextCount: tab.tabHeaderCount,
|
|
2114
2088
|
buttonText: tab.tabHeading,
|
|
2115
|
-
tabIndex: tab.tabIndex
|
|
2089
|
+
tabIndex: tab.tabIndex,
|
|
2116
2090
|
}); });
|
|
2117
2091
|
};
|
|
2118
2092
|
SkyTabsetComponent.prototype.updateTabButtons = function (activeIndex) {
|
|
@@ -2171,25 +2145,25 @@
|
|
|
2171
2145
|
};
|
|
2172
2146
|
return SkyTabsetComponent;
|
|
2173
2147
|
}());
|
|
2174
|
-
SkyTabsetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2175
|
-
SkyTabsetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
2148
|
+
SkyTabsetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }, { token: SkyTabsetAdapterService }, { token: SkyTabsetPermalinkService }, { token: SkyTabsetService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2149
|
+
SkyTabsetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyTabsetComponent, selector: "sky-tabset", inputs: { active: "active", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", permalinkId: "permalinkId", tabStyle: "tabStyle" }, outputs: { activeChange: "activeChange", newTab: "newTab", openTab: "openTab", tabIndexesChange: "tabIndexesChange" }, providers: [
|
|
2176
2150
|
SkyTabsetAdapterService,
|
|
2177
2151
|
SkyTabsetPermalinkService,
|
|
2178
|
-
SkyTabsetService
|
|
2179
|
-
], queries: [{ propertyName: "tabs", predicate: SkyTabComponent }], ngImport: i0__namespace, template: "<div\n class=\"sky-tabset\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [ngClass]=\"'sky-tabset-mode-' + tabDisplayMode + ' sky-tabset-style-' + tabStyle\"\n (window:resize)=\"onWindowResize()\"\n>\n <span class=\"sky-tabset-dropdown\">\n <sky-dropdown *ngIf=\"tabDisplayMode === 'dropdown'\"
|
|
2180
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2152
|
+
SkyTabsetService,
|
|
2153
|
+
], queries: [{ propertyName: "tabs", predicate: SkyTabComponent }], ngImport: i0__namespace, template: "<div\n class=\"sky-tabset\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [ngClass]=\"\n 'sky-tabset-mode-' + tabDisplayMode + ' sky-tabset-style-' + tabStyle\n \"\n (window:resize)=\"onWindowResize()\"\n>\n <span class=\"sky-tabset-dropdown\">\n <sky-dropdown *ngIf=\"tabDisplayMode === 'dropdown'\" buttonType=\"tab\">\n <sky-dropdown-button>\n {{ dropdownTriggerButtonText }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item\n *ngFor=\"let tabButton of tabButtons\"\n class=\"sky-tab-dropdown-menu-item\"\n >\n <div\n class=\"sky-tab-dropdown-item\"\n [ngClass]=\"{\n 'sky-tab-dropdown-item-selected': tabButton.active\n }\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n tabButtonTemplate;\n context: {\n $implicit: tabButton\n }\n \"\n ></ng-container>\n </div>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </span>\n <span class=\"sky-tabset-tabs\">\n <ng-container *ngFor=\"let tabButton of tabButtons\">\n <ng-container\n *ngTemplateOutlet=\"\n tabButtonTemplate;\n context: {\n $implicit: tabButton\n }\n \"\n ></ng-container>\n </ng-container>\n </span>\n <span class=\"sky-tabset-btns\">\n <button\n *ngIf=\"newTab.observers.length > 0\"\n class=\"sky-btn sky-btn-icon sky-tabset-btn-new sky-margin-inline-compact\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_tab_add' | skyLibResources\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-sm': 'modern'\n }\"\n (click)=\"onNewTabClick()\"\n >\n <sky-icon icon=\"plus-circle\" size=\"lg\"> </sky-icon>\n </button>\n <button\n *ngIf=\"openTab.observers.length > 0\"\n class=\"sky-btn sky-btn-icon sky-tabset-btn-open sky-margin-inline-compact\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_tab_open' | skyLibResources\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-sm': 'modern'\n }\"\n (click)=\"onOpenTabClick()\"\n >\n <sky-icon icon=\"folder-open-o\" size=\"lg\"> </sky-icon>\n </button>\n </span>\n</div>\n<ng-content></ng-content>\n\n<ng-template let-tabButton #tabButtonTemplate>\n <sky-tab-button\n [active]=\"tabButton.active\"\n [ariaControls]=\"tabButton.ariaControls\"\n [buttonHref]=\"tabButton.buttonHref\"\n [buttonId]=\"tabButton.buttonId\"\n [buttonText]=\"tabButton.buttonText\"\n [buttonTextCount]=\"tabButton.buttonTextCount\"\n [closeable]=\"tabButton.closeable\"\n [disabled]=\"tabButton.disabled\"\n [tabStyle]=\"tabStyle\"\n (buttonClick)=\"onTabButtonClick(tabButton)\"\n (closeClick)=\"onTabCloseClick(tabButton)\"\n ></sky-tab-button>\n</ng-template>\n", styles: [".sky-tabset{align-items:center;border-bottom:2px solid #0974a1;display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0 0 0 15px;white-space:nowrap}.sky-tabset.sky-tabset-style-wizard{border-bottom:none;padding-bottom:10px;padding-left:0}.sky-tabset-btns{order:1;padding-left:10px}.sky-tabset-dropdown{order:0;max-width:100%}.sky-tabset-mode-dropdown{line-height:0}.sky-tabset-mode-dropdown .sky-tabset-tabs{visibility:hidden;order:2}.sky-tab-dropdown-menu-item sky-tab-button{display:flex;min-width:300px}.sky-tab-dropdown-menu-item .sky-dropdown-item{margin:0}.sky-tab-dropdown-menu-item .sky-btn-tab-wrapper{width:100%;margin-right:0}.sky-tab-dropdown-menu-item .sky-btn-tab{margin:0;border-radius:0;width:100%;display:flex}.sky-tab-dropdown-menu-item .sky-btn-tab>.sky-tab-heading{flex:1 1 auto}.sky-tab-dropdown-menu-item .sky-btn-tab>.sky-btn-tab-close{flex:0 1 auto}.sky-tabset-tabs{order:0;white-space:nowrap}.sky-tabset-btn-new,.sky-tabset-btn-open{color:#0974a1}.sky-theme-modern .sky-tabset{border-bottom:1px solid #d2d2d2;overflow:visible}.sky-theme-modern .sky-tab-dropdown-menu-item .sky-btn-tab-wrapper{margin-right:0}\n"], components: [{ type: i4__namespace$1.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i4__namespace$1.λ2, selector: "sky-dropdown-button" }, { type: i4__namespace$1.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }, { type: i4__namespace$1.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }, { type: i4__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: SkyTabButtonComponent, selector: "sky-tab-button", inputs: ["active", "ariaControls", "buttonHref", "buttonId", "buttonText", "buttonTextCount", "closeable", "disabled", "tabStyle"], outputs: ["buttonClick", "closeClick"] }], directives: [{ type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], pipes: { "skyLibResources": i3__namespace.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
2154
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsetComponent, decorators: [{
|
|
2181
2155
|
type: i0.Component,
|
|
2182
2156
|
args: [{
|
|
2183
2157
|
selector: 'sky-tabset',
|
|
2184
2158
|
styles: [".sky-tabset{align-items:center;border-bottom:2px solid #0974a1;display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0 0 0 15px;white-space:nowrap}.sky-tabset.sky-tabset-style-wizard{border-bottom:none;padding-bottom:10px;padding-left:0}.sky-tabset-btns{order:1;padding-left:10px}.sky-tabset-dropdown{order:0;max-width:100%}.sky-tabset-mode-dropdown{line-height:0}.sky-tabset-mode-dropdown .sky-tabset-tabs{visibility:hidden;order:2}.sky-tab-dropdown-menu-item sky-tab-button{display:flex;min-width:300px}.sky-tab-dropdown-menu-item .sky-dropdown-item{margin:0}.sky-tab-dropdown-menu-item .sky-btn-tab-wrapper{width:100%;margin-right:0}.sky-tab-dropdown-menu-item .sky-btn-tab{margin:0;border-radius:0;width:100%;display:flex}.sky-tab-dropdown-menu-item .sky-btn-tab>.sky-tab-heading{flex:1 1 auto}.sky-tab-dropdown-menu-item .sky-btn-tab>.sky-btn-tab-close{flex:0 1 auto}.sky-tabset-tabs{order:0;white-space:nowrap}.sky-tabset-btn-new,.sky-tabset-btn-open{color:#0974a1}.sky-theme-modern .sky-tabset{border-bottom:1px solid #d2d2d2;overflow:visible}.sky-theme-modern .sky-tab-dropdown-menu-item .sky-btn-tab-wrapper{margin-right:0}\n"],
|
|
2185
|
-
template: "<div\n class=\"sky-tabset\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [ngClass]=\"'sky-tabset-mode-' + tabDisplayMode + ' sky-tabset-style-' + tabStyle\"\n (window:resize)=\"onWindowResize()\"\n>\n <span class=\"sky-tabset-dropdown\">\n <sky-dropdown *ngIf=\"tabDisplayMode === 'dropdown'\"
|
|
2159
|
+
template: "<div\n class=\"sky-tabset\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [ngClass]=\"\n 'sky-tabset-mode-' + tabDisplayMode + ' sky-tabset-style-' + tabStyle\n \"\n (window:resize)=\"onWindowResize()\"\n>\n <span class=\"sky-tabset-dropdown\">\n <sky-dropdown *ngIf=\"tabDisplayMode === 'dropdown'\" buttonType=\"tab\">\n <sky-dropdown-button>\n {{ dropdownTriggerButtonText }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item\n *ngFor=\"let tabButton of tabButtons\"\n class=\"sky-tab-dropdown-menu-item\"\n >\n <div\n class=\"sky-tab-dropdown-item\"\n [ngClass]=\"{\n 'sky-tab-dropdown-item-selected': tabButton.active\n }\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n tabButtonTemplate;\n context: {\n $implicit: tabButton\n }\n \"\n ></ng-container>\n </div>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </span>\n <span class=\"sky-tabset-tabs\">\n <ng-container *ngFor=\"let tabButton of tabButtons\">\n <ng-container\n *ngTemplateOutlet=\"\n tabButtonTemplate;\n context: {\n $implicit: tabButton\n }\n \"\n ></ng-container>\n </ng-container>\n </span>\n <span class=\"sky-tabset-btns\">\n <button\n *ngIf=\"newTab.observers.length > 0\"\n class=\"sky-btn sky-btn-icon sky-tabset-btn-new sky-margin-inline-compact\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_tab_add' | skyLibResources\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-sm': 'modern'\n }\"\n (click)=\"onNewTabClick()\"\n >\n <sky-icon icon=\"plus-circle\" size=\"lg\"> </sky-icon>\n </button>\n <button\n *ngIf=\"openTab.observers.length > 0\"\n class=\"sky-btn sky-btn-icon sky-tabset-btn-open sky-margin-inline-compact\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_tab_open' | skyLibResources\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-sm': 'modern'\n }\"\n (click)=\"onOpenTabClick()\"\n >\n <sky-icon icon=\"folder-open-o\" size=\"lg\"> </sky-icon>\n </button>\n </span>\n</div>\n<ng-content></ng-content>\n\n<ng-template let-tabButton #tabButtonTemplate>\n <sky-tab-button\n [active]=\"tabButton.active\"\n [ariaControls]=\"tabButton.ariaControls\"\n [buttonHref]=\"tabButton.buttonHref\"\n [buttonId]=\"tabButton.buttonId\"\n [buttonText]=\"tabButton.buttonText\"\n [buttonTextCount]=\"tabButton.buttonTextCount\"\n [closeable]=\"tabButton.closeable\"\n [disabled]=\"tabButton.disabled\"\n [tabStyle]=\"tabStyle\"\n (buttonClick)=\"onTabButtonClick(tabButton)\"\n (closeClick)=\"onTabCloseClick(tabButton)\"\n ></sky-tab-button>\n</ng-template>\n",
|
|
2186
2160
|
providers: [
|
|
2187
2161
|
SkyTabsetAdapterService,
|
|
2188
2162
|
SkyTabsetPermalinkService,
|
|
2189
|
-
SkyTabsetService
|
|
2163
|
+
SkyTabsetService,
|
|
2190
2164
|
],
|
|
2191
2165
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2192
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
2166
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
2193
2167
|
}]
|
|
2194
2168
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }, { type: SkyTabsetAdapterService }, { type: SkyTabsetPermalinkService }, { type: SkyTabsetService }]; }, propDecorators: { active: [{
|
|
2195
2169
|
type: i0.Input
|
|
@@ -2219,51 +2193,45 @@
|
|
|
2219
2193
|
}
|
|
2220
2194
|
return SkyTabsModule;
|
|
2221
2195
|
}());
|
|
2222
|
-
SkyTabsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
2223
|
-
SkyTabsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
2196
|
+
SkyTabsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2197
|
+
SkyTabsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsModule, declarations: [SkyTabButtonComponent,
|
|
2224
2198
|
SkyTabComponent,
|
|
2225
2199
|
SkyTabsetComponent,
|
|
2226
2200
|
SkyTabsetNavButtonComponent], imports: [i2.CommonModule,
|
|
2227
2201
|
i1$1.RouterModule,
|
|
2228
|
-
i4$
|
|
2202
|
+
i4$1.SkyDropdownModule,
|
|
2229
2203
|
i3.SkyI18nModule,
|
|
2230
2204
|
i4.SkyIconModule,
|
|
2231
2205
|
SkyTabsResourcesModule,
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
SkyTabsetNavButtonComponent] });
|
|
2235
|
-
SkyTabsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyTabsModule, imports: [[
|
|
2206
|
+
i8.SkyThemeModule], exports: [SkyTabComponent, SkyTabsetComponent, SkyTabsetNavButtonComponent] });
|
|
2207
|
+
SkyTabsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsModule, imports: [[
|
|
2236
2208
|
i2.CommonModule,
|
|
2237
2209
|
i1$1.RouterModule,
|
|
2238
|
-
i4$
|
|
2210
|
+
i4$1.SkyDropdownModule,
|
|
2239
2211
|
i3.SkyI18nModule,
|
|
2240
2212
|
i4.SkyIconModule,
|
|
2241
2213
|
SkyTabsResourcesModule,
|
|
2242
|
-
|
|
2214
|
+
i8.SkyThemeModule,
|
|
2243
2215
|
]] });
|
|
2244
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
2216
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyTabsModule, decorators: [{
|
|
2245
2217
|
type: i0.NgModule,
|
|
2246
2218
|
args: [{
|
|
2247
2219
|
declarations: [
|
|
2248
2220
|
SkyTabButtonComponent,
|
|
2249
2221
|
SkyTabComponent,
|
|
2250
2222
|
SkyTabsetComponent,
|
|
2251
|
-
SkyTabsetNavButtonComponent
|
|
2223
|
+
SkyTabsetNavButtonComponent,
|
|
2252
2224
|
],
|
|
2253
2225
|
imports: [
|
|
2254
2226
|
i2.CommonModule,
|
|
2255
2227
|
i1$1.RouterModule,
|
|
2256
|
-
i4$
|
|
2228
|
+
i4$1.SkyDropdownModule,
|
|
2257
2229
|
i3.SkyI18nModule,
|
|
2258
2230
|
i4.SkyIconModule,
|
|
2259
2231
|
SkyTabsResourcesModule,
|
|
2260
|
-
|
|
2232
|
+
i8.SkyThemeModule,
|
|
2261
2233
|
],
|
|
2262
|
-
exports: [
|
|
2263
|
-
SkyTabComponent,
|
|
2264
|
-
SkyTabsetComponent,
|
|
2265
|
-
SkyTabsetNavButtonComponent
|
|
2266
|
-
]
|
|
2234
|
+
exports: [SkyTabComponent, SkyTabsetComponent, SkyTabsetNavButtonComponent],
|
|
2267
2235
|
}]
|
|
2268
2236
|
}] });
|
|
2269
2237
|
|