@skyux/indicators 5.0.0-beta.1 → 5.0.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/LICENSE +21 -0
- package/bundles/skyux-indicators-testing.umd.js +15 -11
- package/bundles/skyux-indicators-testing.umd.js.map +1 -1
- package/bundles/skyux-indicators.umd.js +1113 -858
- package/bundles/skyux-indicators.umd.js.map +1 -1
- package/documentation.json +6097 -0
- package/esm2015/modules/alert/alert.component.js +27 -24
- package/esm2015/modules/alert/alert.module.js +31 -18
- package/esm2015/modules/chevron/chevron.component.js +24 -24
- package/esm2015/modules/chevron/chevron.module.js +29 -18
- package/esm2015/modules/help-inline/help-inline.component.js +20 -15
- package/esm2015/modules/help-inline/help-inline.module.js +31 -18
- package/esm2015/modules/icon/icon-class-list.pipe.js +13 -14
- package/esm2015/modules/icon/icon-resolver.service.js +11 -15
- package/esm2015/modules/icon/icon-stack-item.js +2 -1
- package/esm2015/modules/icon/icon-stack.component.js +22 -21
- package/esm2015/modules/icon/icon.component.js +27 -28
- package/esm2015/modules/icon/icon.module.js +30 -20
- package/esm2015/modules/icon/types/icon-type.js +2 -1
- package/esm2015/modules/icon/types/icon-variant-type.js +2 -1
- package/esm2015/modules/key-info/key-info-label.component.js +13 -11
- package/esm2015/modules/key-info/key-info-value.component.js +13 -11
- package/esm2015/modules/key-info/key-info.component.js +17 -15
- package/esm2015/modules/key-info/key-info.module.js +30 -21
- package/esm2015/modules/label/label-type.js +2 -1
- package/esm2015/modules/label/label.component.js +19 -15
- package/esm2015/modules/label/label.module.js +24 -17
- package/esm2015/modules/shared/indicator-description-type.js +2 -1
- package/esm2015/modules/shared/indicator-icon-type.js +2 -1
- package/esm2015/modules/shared/indicator-icon-utility.js +1 -1
- package/esm2015/modules/shared/indicator-icon.js +2 -1
- package/esm2015/modules/shared/sky-indicators-resources.module.js +41 -0
- package/esm2015/modules/status-indicator/status-indicator.component.js +26 -28
- package/esm2015/modules/status-indicator/status-indicator.module.js +29 -18
- package/esm2015/modules/text-highlight/text-highlight.directive.js +25 -25
- package/esm2015/modules/text-highlight/text-highlight.module.js +23 -18
- package/esm2015/modules/tokens/token.component.js +32 -40
- package/esm2015/modules/tokens/tokens.component.js +86 -74
- package/esm2015/modules/tokens/tokens.module.js +33 -20
- package/esm2015/modules/tokens/types/token-selected-event-args.js +2 -1
- package/esm2015/modules/tokens/types/token.js +2 -1
- package/esm2015/modules/tokens/types/tokens-message-type.js +1 -1
- package/esm2015/modules/tokens/types/tokens-message.js +2 -1
- package/esm2015/modules/wait/wait-adapter.service.js +29 -27
- package/esm2015/modules/wait/wait-page-adapter.service.js +15 -12
- package/esm2015/modules/wait/wait-page.component.js +19 -18
- package/esm2015/modules/wait/wait.component.js +35 -36
- package/esm2015/modules/wait/wait.module.js +32 -23
- package/esm2015/modules/wait/wait.service.js +37 -46
- package/esm2015/public-api.js +36 -0
- package/esm2015/skyux-indicators.js +2 -23
- package/esm2015/testing/alert-fixture.js +1 -1
- package/esm2015/testing/label-fixture.js +1 -1
- package/esm2015/testing/public-api.js +4 -0
- package/esm2015/testing/skyux-indicators-testing.js +2 -2
- package/esm2015/testing/wait-fixture.js +1 -1
- package/fesm2015/skyux-indicators-testing.js.map +1 -1
- package/fesm2015/skyux-indicators.js +752 -616
- package/fesm2015/skyux-indicators.js.map +1 -1
- package/modules/alert/alert.component.d.ts +3 -0
- package/modules/alert/alert.module.d.ts +10 -0
- package/modules/chevron/chevron.component.d.ts +4 -1
- package/modules/chevron/chevron.module.d.ts +9 -0
- package/modules/help-inline/help-inline.component.d.ts +3 -0
- package/modules/help-inline/help-inline.module.d.ts +10 -0
- package/modules/icon/icon-class-list.pipe.d.ts +3 -0
- package/modules/icon/icon-resolver.service.d.ts +3 -0
- package/modules/icon/icon-stack.component.d.ts +3 -0
- package/modules/icon/icon.component.d.ts +3 -0
- package/modules/icon/icon.module.d.ts +9 -0
- package/modules/key-info/key-info-label.component.d.ts +3 -0
- package/modules/key-info/key-info-value.component.d.ts +3 -0
- package/modules/key-info/key-info.component.d.ts +3 -0
- package/modules/key-info/key-info.module.d.ts +8 -0
- package/modules/label/label.component.d.ts +3 -0
- package/modules/label/label.module.d.ts +7 -0
- package/modules/shared/sky-indicators-resources.module.d.ts +14 -0
- package/modules/status-indicator/status-indicator.component.d.ts +3 -0
- package/modules/status-indicator/status-indicator.module.d.ts +9 -0
- package/modules/text-highlight/text-highlight.directive.d.ts +3 -0
- package/modules/text-highlight/text-highlight.module.d.ts +5 -0
- package/modules/tokens/token.component.d.ts +4 -1
- package/modules/tokens/tokens.component.d.ts +3 -0
- package/modules/tokens/tokens.module.d.ts +10 -0
- package/modules/wait/wait-adapter.service.d.ts +3 -0
- package/modules/wait/wait-page-adapter.service.d.ts +3 -0
- package/modules/wait/wait-page.component.d.ts +3 -0
- package/modules/wait/wait.component.d.ts +3 -0
- package/modules/wait/wait.module.d.ts +9 -0
- package/modules/wait/wait.service.d.ts +3 -0
- package/package.json +12 -27
- package/public-api.d.ts +33 -0
- package/skyux-indicators.d.ts +2 -22
- package/testing/package.json +2 -5
- package/testing/{public_api.d.ts → public-api.d.ts} +0 -0
- package/testing/skyux-indicators-testing.d.ts +2 -1
- package/CHANGELOG.md +0 -203
- package/bundles/skyux-indicators-testing.umd.min.js +0 -2
- package/bundles/skyux-indicators-testing.umd.min.js.map +0 -1
- package/bundles/skyux-indicators.umd.min.js +0 -16
- package/bundles/skyux-indicators.umd.min.js.map +0 -1
- package/esm2015/modules/shared/indicators-resources.module.js +0 -17
- package/esm2015/plugin-resources/indicators-resources-provider.js +0 -16
- package/esm2015/public_api.js +0 -13
- package/esm2015/testing/public_api.js +0 -4
- package/esm5/modules/alert/alert.component.js +0 -62
- package/esm5/modules/alert/alert.module.js +0 -32
- package/esm5/modules/chevron/chevron.component.js +0 -35
- package/esm5/modules/chevron/chevron.module.js +0 -30
- package/esm5/modules/help-inline/help-inline.component.js +0 -26
- package/esm5/modules/help-inline/help-inline.module.js +0 -32
- package/esm5/modules/icon/icon-class-list.pipe.js +0 -39
- package/esm5/modules/icon/icon-resolver.service.js +0 -57
- package/esm5/modules/icon/icon-stack-item.js +0 -1
- package/esm5/modules/icon/icon-stack.component.js +0 -25
- package/esm5/modules/icon/icon.component.js +0 -38
- package/esm5/modules/icon/icon.module.js +0 -31
- package/esm5/modules/icon/types/icon-type.js +0 -1
- package/esm5/modules/icon/types/icon-variant-type.js +0 -1
- package/esm5/modules/key-info/key-info-label.component.js +0 -19
- package/esm5/modules/key-info/key-info-value.component.js +0 -19
- package/esm5/modules/key-info/key-info.component.js +0 -25
- package/esm5/modules/key-info/key-info.module.js +0 -30
- package/esm5/modules/label/label-type.js +0 -1
- package/esm5/modules/label/label.component.js +0 -41
- package/esm5/modules/label/label.module.js +0 -26
- package/esm5/modules/shared/indicator-description-type.js +0 -1
- package/esm5/modules/shared/indicator-icon-type.js +0 -1
- package/esm5/modules/shared/indicator-icon-utility.js +0 -45
- package/esm5/modules/shared/indicator-icon.js +0 -1
- package/esm5/modules/shared/indicators-resources.module.js +0 -20
- package/esm5/modules/status-indicator/status-indicator.component.js +0 -111
- package/esm5/modules/status-indicator/status-indicator.module.js +0 -30
- package/esm5/modules/text-highlight/text-highlight.directive.js +0 -134
- package/esm5/modules/text-highlight/text-highlight.module.js +0 -24
- package/esm5/modules/tokens/token.component.js +0 -134
- package/esm5/modules/tokens/tokens.component.js +0 -325
- package/esm5/modules/tokens/tokens.module.js +0 -33
- package/esm5/modules/tokens/types/token-selected-event-args.js +0 -1
- package/esm5/modules/tokens/types/token.js +0 -1
- package/esm5/modules/tokens/types/tokens-message-type.js +0 -24
- package/esm5/modules/tokens/types/tokens-message.js +0 -1
- package/esm5/modules/wait/wait-adapter.service.js +0 -219
- package/esm5/modules/wait/wait-page-adapter.service.js +0 -25
- package/esm5/modules/wait/wait-page.component.js +0 -25
- package/esm5/modules/wait/wait.component.js +0 -107
- package/esm5/modules/wait/wait.module.js +0 -34
- package/esm5/modules/wait/wait.service.js +0 -176
- package/esm5/plugin-resources/indicators-resources-provider.js +0 -17
- package/esm5/public_api.js +0 -13
- package/esm5/skyux-indicators.js +0 -26
- package/esm5/testing/alert-fixture.js +0 -85
- package/esm5/testing/label-fixture.js +0 -50
- package/esm5/testing/public_api.js +0 -4
- package/esm5/testing/skyux-indicators-testing.js +0 -5
- package/esm5/testing/wait-fixture.js +0 -42
- package/fesm5/skyux-indicators-testing.js +0 -178
- package/fesm5/skyux-indicators-testing.js.map +0 -1
- package/fesm5/skyux-indicators.js +0 -1892
- package/fesm5/skyux-indicators.js.map +0 -1
- package/modules/shared/indicators-resources.module.d.ts +0 -2
- package/plugin-resources/indicators-resources-provider.d.ts +0 -5
- package/public_api.d.ts +0 -19
- package/skyux-indicators.metadata.json +0 -1
- package/src/assets/img/guidelines/alert/alert-anatomy.png +0 -0
- package/src/assets/img/guidelines/alert/alert-layout-1.png +0 -0
- package/src/assets/img/guidelines/alert/alert-layout-2.png +0 -0
- package/src/assets/img/guidelines/alert/alert-layout-3.png +0 -0
- package/src/assets/img/guidelines/alert/alert-option-1.png +0 -0
- package/src/assets/img/guidelines/alert/alert-type-1.png +0 -0
- package/src/assets/img/guidelines/alert/alert-type-2.png +0 -0
- package/src/assets/img/guidelines/alert/alert-type-3.png +0 -0
- package/src/assets/img/guidelines/alert/alert-type-4.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-1.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-2.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-3.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-4.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-5.png +0 -0
- package/src/assets/img/guidelines/alert/alert-usage-6.png +0 -0
- package/src/assets/img/guidelines/key-info/horizontal-layout.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-anatomy.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-1.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-2.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-3.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-4.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-5.png +0 -0
- package/src/assets/img/guidelines/key-info/key-info-usage-6.png +0 -0
- package/src/assets/img/guidelines/key-info/vertical-layout.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-anatomy.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-1.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-2-5.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-2.5.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-2.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-3.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-4.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-5.png +0 -0
- package/src/assets/img/guidelines/status-indicator/status-indicator-usage-6.png +0 -0
- package/src/assets/locales/resources_en_US.json +0 -54
- package/testing/skyux-indicators-testing.metadata.json +0 -1
|
@@ -1,94 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgModule, Injectable, Pipe, Component, ChangeDetectionStrategy, Input, EventEmitter, Output, Directive, ViewChildren, Optional } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@angular/common';
|
|
3
4
|
import { CommonModule } from '@angular/common';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import * as i1$2 from '@skyux/i18n';
|
|
6
|
+
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
|
|
7
|
+
import * as i1 from '@skyux/theme';
|
|
8
|
+
import { SkyThemeIconManifestModule, SkyThemeModule } from '@skyux/theme';
|
|
9
|
+
import * as i1$3 from '@skyux/core';
|
|
10
|
+
import { MutationObserverService } from '@skyux/core';
|
|
7
11
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
8
12
|
import { Subject, BehaviorSubject, defer } from 'rxjs';
|
|
9
13
|
import { takeUntil, finalize } from 'rxjs/operators';
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
SkyIndicatorsResourcesProvider = __decorate([
|
|
20
|
-
Injectable()
|
|
21
|
-
], SkyIndicatorsResourcesProvider);
|
|
22
|
-
|
|
23
|
-
let SkyIndicatorsResourcesModule = class SkyIndicatorsResourcesModule {
|
|
15
|
+
/**
|
|
16
|
+
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
17
|
+
* The contents of this file were automatically generated by
|
|
18
|
+
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-indicators' schematic.
|
|
19
|
+
* To update this file, simply rerun the command.
|
|
20
|
+
*/
|
|
21
|
+
const RESOURCES = {
|
|
22
|
+
'EN-US': { "skyux_alert_close": { "message": "Close the alert" }, "skyux_chevron_collapse": { "message": "Collapse" }, "skyux_chevron_expand": { "message": "Expand" }, "skyux_help_inline_button_title": { "message": "Show help content" }, "skyux_status_indicator_sr_completed": { "message": "Completed:" }, "skyux_status_indicator_sr_error": { "message": "Error:" }, "skyux_status_indicator_sr_important_info": { "message": "Important information:" }, "skyux_status_indicator_sr_warning": { "message": "Warning:" }, "skyux_tokens_dismiss_button_title": { "message": "Remove item" }, "skyux_wait_aria_alt_text": { "message": "Loading." }, "skyux_wait_blocking_aria_alt_text": { "message": "Loading. Please wait." }, "skyux_wait_page_aria_alt_text": { "message": "Page loading." }, "skyux_wait_page_blocking_aria_alt_text": { "message": "Page loading. Please wait." } },
|
|
24
23
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
29
|
-
useClass: SkyIndicatorsResourcesProvider,
|
|
30
|
-
multi: true
|
|
31
|
-
}]
|
|
32
|
-
})
|
|
33
|
-
], SkyIndicatorsResourcesModule);
|
|
34
|
-
|
|
35
|
-
let SkyIconComponent = class SkyIconComponent {
|
|
36
|
-
constructor() {
|
|
37
|
-
/**
|
|
38
|
-
* Specifies the type of icon to display. Specifying `fa` will display a Font Awesome icon,
|
|
39
|
-
* while specifying `skyux` will display an icon from the custom SKY UX icon font. Note that
|
|
40
|
-
* the custom SKY UX icon font is currently in beta.
|
|
41
|
-
*/
|
|
42
|
-
this.iconType = 'fa';
|
|
24
|
+
class SkyIndicatorsResourcesProvider {
|
|
25
|
+
getString(localeInfo, name) {
|
|
26
|
+
return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
43
27
|
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
],
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
]
|
|
68
|
-
|
|
69
|
-
let SkyIconStackComponent = class SkyIconStackComponent {
|
|
70
|
-
};
|
|
71
|
-
__decorate([
|
|
72
|
-
Input()
|
|
73
|
-
], SkyIconStackComponent.prototype, "size", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
Input()
|
|
76
|
-
], SkyIconStackComponent.prototype, "baseIcon", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
Input()
|
|
79
|
-
], SkyIconStackComponent.prototype, "topIcon", void 0);
|
|
80
|
-
SkyIconStackComponent = __decorate([
|
|
81
|
-
Component({
|
|
82
|
-
selector: 'sky-icon-stack',
|
|
83
|
-
template: "<span\n aria-hidden=\"true\"\n class=\"sky-icon-stack fa-stack\"\n [ngClass]=\"size ? 'fa-' + size + ' sky-icon-stack-size-' + size : ''\"\n>\n <i *ngIf=\"baseIcon\"\n class=\"sky-icon fa-stack-2x\"\n [ngClass]=\"baseIcon.icon | skyIconClassList:baseIcon.iconType\"\n ></i>\n <i *ngIf=\"topIcon\"\n class=\"sky-icon fa-stack-1x fa-inverse sky-icon-inverse\"\n [ngClass]=\"topIcon.icon | skyIconClassList:topIcon.iconType\"\n ></i>\n</span>\n",
|
|
84
|
-
styles: [":host{display:inline-block;vertical-align:bottom}.sky-icon-stack-size-xs.fa-stack{width:1.25em;height:1.25em;line-height:1.25em}.sky-icon-stack-size-xs .fa-stack-2x{font-size:1.25em}.sky-icon-stack-size-xs .fa-stack-1x{font-size:.625em}.fa-stack-1x.sky-i-check:before{position:relative;top:1px}.fa-stack-1x.sky-i-exclamation:before{position:relative;top:2px;left:-.5px}.sky-theme-modern.sky-theme-mode-dark .sky-icon-inverse,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-icon-inverse{color:#121212}"]
|
|
85
|
-
})
|
|
86
|
-
], SkyIconStackComponent);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Import into any component library module that needs to use resource strings.
|
|
31
|
+
*/
|
|
32
|
+
class SkyIndicatorsResourcesModule {
|
|
33
|
+
}
|
|
34
|
+
SkyIndicatorsResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIndicatorsResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
35
|
+
SkyIndicatorsResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIndicatorsResourcesModule, exports: [SkyI18nModule] });
|
|
36
|
+
SkyIndicatorsResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIndicatorsResourcesModule, providers: [{
|
|
37
|
+
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
38
|
+
useClass: SkyIndicatorsResourcesProvider,
|
|
39
|
+
multi: true
|
|
40
|
+
}], imports: [SkyI18nModule] });
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIndicatorsResourcesModule, decorators: [{
|
|
42
|
+
type: NgModule,
|
|
43
|
+
args: [{
|
|
44
|
+
exports: [SkyI18nModule],
|
|
45
|
+
providers: [{
|
|
46
|
+
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
47
|
+
useClass: SkyIndicatorsResourcesProvider,
|
|
48
|
+
multi: true
|
|
49
|
+
}]
|
|
50
|
+
}]
|
|
51
|
+
}] });
|
|
87
52
|
|
|
88
53
|
/**
|
|
89
54
|
* @internal
|
|
90
55
|
*/
|
|
91
|
-
|
|
56
|
+
class SkyIconResolverService {
|
|
92
57
|
constructor(manifestSvc) {
|
|
93
58
|
this.glyphMap = new Map();
|
|
94
59
|
// Map the icons by name for more efficient lookup.
|
|
@@ -113,21 +78,20 @@ let SkyIconResolverService = class SkyIconResolverService {
|
|
|
113
78
|
// Fall back to the icon name as-is.
|
|
114
79
|
return iconName;
|
|
115
80
|
}
|
|
116
|
-
}
|
|
117
|
-
SkyIconResolverService
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
], SkyIconResolverService);
|
|
81
|
+
}
|
|
82
|
+
SkyIconResolverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconResolverService, deps: [{ token: i1.SkyThemeIconManifestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
83
|
+
SkyIconResolverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconResolverService, providedIn: 'root' });
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconResolverService, decorators: [{
|
|
85
|
+
type: Injectable,
|
|
86
|
+
args: [{
|
|
87
|
+
providedIn: 'root'
|
|
88
|
+
}]
|
|
89
|
+
}], ctorParameters: function () { return [{ type: i1.SkyThemeIconManifestService }]; } });
|
|
126
90
|
|
|
127
91
|
/**
|
|
128
92
|
* @internal
|
|
129
93
|
*/
|
|
130
|
-
|
|
94
|
+
class SkyIconClassListPipe {
|
|
131
95
|
constructor(resolver) {
|
|
132
96
|
this.resolver = resolver;
|
|
133
97
|
}
|
|
@@ -148,35 +112,97 @@ let SkyIconClassListPipe = class SkyIconClassListPipe {
|
|
|
148
112
|
}
|
|
149
113
|
return classList;
|
|
150
114
|
}
|
|
151
|
-
}
|
|
152
|
-
SkyIconClassListPipe
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
],
|
|
115
|
+
}
|
|
116
|
+
SkyIconClassListPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconClassListPipe, deps: [{ token: SkyIconResolverService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
117
|
+
SkyIconClassListPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconClassListPipe, name: "skyIconClassList" });
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconClassListPipe, decorators: [{
|
|
119
|
+
type: Pipe,
|
|
120
|
+
args: [{
|
|
121
|
+
name: 'skyIconClassList'
|
|
122
|
+
}]
|
|
123
|
+
}], ctorParameters: function () { return [{ type: SkyIconResolverService }]; } });
|
|
160
124
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
125
|
+
class SkyIconComponent {
|
|
126
|
+
constructor() {
|
|
127
|
+
/**
|
|
128
|
+
* Specifies the type of icon to display. Specifying `fa` will display a Font Awesome icon,
|
|
129
|
+
* while specifying `skyux` will display an icon from the custom SKY UX icon font. Note that
|
|
130
|
+
* the custom SKY UX icon font is currently in beta.
|
|
131
|
+
*/
|
|
132
|
+
this.iconType = 'fa';
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
SkyIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
136
|
+
SkyIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyIconComponent, selector: "sky-icon", inputs: { icon: "icon", iconType: "iconType", size: "size", fixedWidth: "fixedWidth", variant: "variant" }, ngImport: i0, template: "<i *ngIf=\"icon\"\n aria-hidden=\"true\"\n class=\"sky-icon\"\n [ngClass]=\"icon | skyIconClassList:iconType:size:fixedWidth:variant\"\n>\n</i>\n", styles: [":host{display:inline-block}i{display:inherit}\n"], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "skyIconClassList": SkyIconClassListPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconComponent, decorators: [{
|
|
138
|
+
type: Component,
|
|
139
|
+
args: [{
|
|
140
|
+
selector: 'sky-icon',
|
|
141
|
+
templateUrl: './icon.component.html',
|
|
142
|
+
styleUrls: ['./icon.component.scss'],
|
|
143
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
144
|
+
}]
|
|
145
|
+
}], propDecorators: { icon: [{
|
|
146
|
+
type: Input
|
|
147
|
+
}], iconType: [{
|
|
148
|
+
type: Input
|
|
149
|
+
}], size: [{
|
|
150
|
+
type: Input
|
|
151
|
+
}], fixedWidth: [{
|
|
152
|
+
type: Input
|
|
153
|
+
}], variant: [{
|
|
154
|
+
type: Input
|
|
155
|
+
}] } });
|
|
156
|
+
|
|
157
|
+
class SkyIconStackComponent {
|
|
158
|
+
}
|
|
159
|
+
SkyIconStackComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
160
|
+
SkyIconStackComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyIconStackComponent, selector: "sky-icon-stack", inputs: { size: "size", baseIcon: "baseIcon", topIcon: "topIcon" }, ngImport: i0, template: "<span\n aria-hidden=\"true\"\n class=\"sky-icon-stack fa-stack\"\n [ngClass]=\"size ? 'fa-' + size + ' sky-icon-stack-size-' + size : ''\"\n>\n <i *ngIf=\"baseIcon\"\n class=\"sky-icon fa-stack-2x\"\n [ngClass]=\"baseIcon.icon | skyIconClassList:baseIcon.iconType\"\n ></i>\n <i *ngIf=\"topIcon\"\n class=\"sky-icon fa-stack-1x fa-inverse sky-icon-inverse\"\n [ngClass]=\"topIcon.icon | skyIconClassList:topIcon.iconType\"\n ></i>\n</span>\n", styles: [":host{display:inline-block;vertical-align:bottom}.sky-icon-stack-size-xs.fa-stack{width:1.25em;height:1.25em;line-height:1.25em}.sky-icon-stack-size-xs .fa-stack-2x{font-size:1.25em}.sky-icon-stack-size-xs .fa-stack-1x{font-size:.625em}.fa-stack-1x.sky-i-check:before{position:relative;top:1px}.fa-stack-1x.sky-i-exclamation:before{position:relative;top:2px;left:-.5px}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-icon-inverse{color:#121212}.sky-theme-modern.sky-theme-mode-dark .sky-icon-inverse{color:#121212}\n"], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyIconClassList": SkyIconClassListPipe } });
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconStackComponent, decorators: [{
|
|
162
|
+
type: Component,
|
|
163
|
+
args: [{
|
|
164
|
+
selector: 'sky-icon-stack',
|
|
165
|
+
templateUrl: './icon-stack.component.html',
|
|
166
|
+
styleUrls: ['./icon-stack.component.scss']
|
|
167
|
+
}]
|
|
168
|
+
}], propDecorators: { size: [{
|
|
169
|
+
type: Input
|
|
170
|
+
}], baseIcon: [{
|
|
171
|
+
type: Input
|
|
172
|
+
}], topIcon: [{
|
|
173
|
+
type: Input
|
|
174
|
+
}] } });
|
|
175
|
+
|
|
176
|
+
class SkyIconModule {
|
|
177
|
+
}
|
|
178
|
+
SkyIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
179
|
+
SkyIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconModule, declarations: [SkyIconClassListPipe,
|
|
180
|
+
SkyIconComponent,
|
|
181
|
+
SkyIconStackComponent], imports: [CommonModule,
|
|
182
|
+
SkyThemeIconManifestModule], exports: [SkyIconComponent,
|
|
183
|
+
SkyIconStackComponent] });
|
|
184
|
+
SkyIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconModule, imports: [[
|
|
171
185
|
CommonModule,
|
|
172
186
|
SkyThemeIconManifestModule
|
|
173
|
-
]
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
187
|
+
]] });
|
|
188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyIconModule, decorators: [{
|
|
189
|
+
type: NgModule,
|
|
190
|
+
args: [{
|
|
191
|
+
declarations: [
|
|
192
|
+
SkyIconClassListPipe,
|
|
193
|
+
SkyIconComponent,
|
|
194
|
+
SkyIconStackComponent
|
|
195
|
+
],
|
|
196
|
+
imports: [
|
|
197
|
+
CommonModule,
|
|
198
|
+
SkyThemeIconManifestModule
|
|
199
|
+
],
|
|
200
|
+
exports: [
|
|
201
|
+
SkyIconComponent,
|
|
202
|
+
SkyIconStackComponent
|
|
203
|
+
]
|
|
204
|
+
}]
|
|
205
|
+
}] });
|
|
180
206
|
|
|
181
207
|
/**
|
|
182
208
|
* @internl
|
|
@@ -220,7 +246,7 @@ class SkyIndicatorIconUtility {
|
|
|
220
246
|
}
|
|
221
247
|
|
|
222
248
|
const ALERT_TYPE_DEFAULT = 'warning';
|
|
223
|
-
|
|
249
|
+
class SkyAlertComponent {
|
|
224
250
|
constructor() {
|
|
225
251
|
/**
|
|
226
252
|
* Fires when users close the alert.
|
|
@@ -251,98 +277,121 @@ let SkyAlertComponent = class SkyAlertComponent {
|
|
|
251
277
|
this.alertBaseIcon = indicatorIcon.modernThemeBaseIcon;
|
|
252
278
|
this.alertTopIcon = indicatorIcon.modernThemeTopIcon;
|
|
253
279
|
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
]
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
],
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
], SkyAlertComponent);
|
|
280
|
+
}
|
|
281
|
+
SkyAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
282
|
+
SkyAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyAlertComponent, selector: "sky-alert", inputs: { alertType: "alertType", closeable: "closeable", closed: "closed" }, outputs: { closedChange: "closedChange" }, ngImport: i0, template: "<div\n class=\"sky-alert\"\n [skyThemeClass]= \"{\n 'sky-rounded-corners': 'default',\n 'sky-box sky-elevation-1': 'modern'\n }\"\n role=\"alert\"\n [hidden]=\"closed\"\n [ngClass]=\"{\n 'sky-alert-info': alertType === 'info',\n 'sky-alert-success': alertType === 'success',\n 'sky-alert-warning': alertType === 'warning',\n 'sky-alert-danger': alertType === 'danger',\n 'sky-alert-closeable': closeable\n }\"\n>\n <div\n aria-hidden=\"true\"\n class=\"sky-alert-icon-theme-modern\"\n >\n <sky-icon-stack\n [baseIcon]=\"alertBaseIcon\"\n [topIcon]=\"alertTopIcon\"\n >\n </sky-icon-stack>\n </div>\n <div\n class=\"sky-alert-content\"\n >\n <ng-content></ng-content>\n </div>\n <button\n class=\"sky-alert-close\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_alert_close' | skyLibResources\"\n [hidden]=\"!closeable\"\n (click)=\"close()\"\n >\n <span\n aria-hidden=\"true\"\n >\n <sky-icon\n class=\"sky-alert-close-icon-theme-default\"\n icon=\"close\"\n >\n </sky-icon>\n <sky-icon\n class=\"sky-alert-close-icon-theme-modern\"\n icon=\"close\"\n iconType=\"skyux\"\n size=\"2x\"\n >\n </sky-icon>\n </span>\n </button>\n</div>\n", styles: ["@charset \"UTF-8\";.sky-alert{padding:0 10px;margin-bottom:20px;border-left:solid 30px;color:#212327;display:flex;flex-direction:row;align-items:center}.sky-alert .sky-alert-content{padding-top:10px;padding-bottom:10px;width:100%}.sky-alert .sky-alert-content ::ng-deep a{color:#212327cc;text-decoration:underline}.sky-alert .sky-alert-content ::ng-deep a:hover{color:#212327}.sky-alert button{margin-left:auto;width:32px;height:32px}.sky-alert.sky-alert-info{background-color:#81d4f7;border-color:#00b4f1}.sky-alert.sky-alert-info:before{content:\"\\f06a\";font-family:FontAwesome;margin-left:-31px;margin-right:20px;color:#fff}.sky-alert.sky-alert-success{background-color:#b7da9b;border-color:#72bf44}.sky-alert.sky-alert-success:before{content:\"\\f00c\";font-family:FontAwesome;margin-left:-32px;margin-right:19px;color:#fff}.sky-alert.sky-alert-warning{background-color:#ffd597;border-color:#fbb034}.sky-alert.sky-alert-warning:before{content:\"\\f071\";font-family:FontAwesome;margin-left:-32px;margin-right:19px;color:#fff}.sky-alert.sky-alert-danger{background-color:#f7a08f;border-color:#ef4044}.sky-alert.sky-alert-danger:before{content:\"\\f071\";font-family:FontAwesome;margin-left:-32px;margin-right:19px;color:#fff}.sky-alert-close{cursor:pointer;font-weight:bold;line-height:1;margin:0;padding:0;color:#212327;opacity:.8;border:none;background-color:transparent;display:none}.sky-alert-close:hover{opacity:1}.sky-alert-closeable .sky-alert-close{display:block}.sky-alert-close-icon-theme-modern,.sky-alert-icon-theme-modern{display:none}:host-context(.sky-theme-modern) .sky-alert{border-left-width:7px}:host-context(.sky-theme-modern) .sky-alert .sky-alert-content{padding:15px}:host-context(.sky-theme-modern) .sky-alert.sky-alert-info{background-color:#c1e8fb}:host-context(.sky-theme-modern) .sky-alert-info:before,:host-context(.sky-theme-modern) .sky-alert-success:before,:host-context(.sky-theme-modern) .sky-alert-warning:before,:host-context(.sky-theme-modern) .sky-alert-danger:before{display:none}:host-context(.sky-theme-modern) .sky-alert-info .sky-alert-icon-theme-modern{color:#00b4f1}:host-context(.sky-theme-modern) .sky-alert-success .sky-alert-icon-theme-modern{color:#72bf44}:host-context(.sky-theme-modern) .sky-alert-warning .sky-alert-icon-theme-modern{color:#fbb034}:host-context(.sky-theme-modern) .sky-alert-danger .sky-alert-icon-theme-modern{color:#ef4044}:host-context(.sky-theme-modern) .sky-alert-icon-theme-modern{display:block}:host-context(.sky-theme-modern) .sky-alert-close-icon-theme-default{display:none}:host-context(.sky-theme-modern) .sky-alert-close-icon-theme-modern{display:inline}.sky-theme-modern .sky-alert{border-left-width:7px}.sky-theme-modern .sky-alert .sky-alert-content{padding:15px}.sky-theme-modern .sky-alert.sky-alert-info{background-color:#c1e8fb}.sky-theme-modern .sky-alert-info:before,.sky-theme-modern .sky-alert-success:before,.sky-theme-modern .sky-alert-warning:before,.sky-theme-modern .sky-alert-danger:before{display:none}.sky-theme-modern .sky-alert-info .sky-alert-icon-theme-modern{color:#00b4f1}.sky-theme-modern .sky-alert-success .sky-alert-icon-theme-modern{color:#72bf44}.sky-theme-modern .sky-alert-warning .sky-alert-icon-theme-modern{color:#fbb034}.sky-theme-modern .sky-alert-danger .sky-alert-icon-theme-modern{color:#ef4044}.sky-theme-modern .sky-alert-icon-theme-modern{display:block}.sky-theme-modern .sky-alert-close-icon-theme-default{display:none}.sky-theme-modern .sky-alert-close-icon-theme-modern{display:inline}\n"], components: [{ type: SkyIconStackComponent, selector: "sky-icon-stack", inputs: ["size", "baseIcon", "topIcon"] }, { type: SkyIconComponent, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "skyLibResources": i1$2.SkyLibResourcesPipe } });
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAlertComponent, decorators: [{
|
|
284
|
+
type: Component,
|
|
285
|
+
args: [{
|
|
286
|
+
selector: 'sky-alert',
|
|
287
|
+
styleUrls: ['./alert.component.scss'],
|
|
288
|
+
templateUrl: './alert.component.html'
|
|
289
|
+
}]
|
|
290
|
+
}], propDecorators: { alertType: [{
|
|
291
|
+
type: Input
|
|
292
|
+
}], closeable: [{
|
|
293
|
+
type: Input
|
|
294
|
+
}], closed: [{
|
|
295
|
+
type: Input
|
|
296
|
+
}], closedChange: [{
|
|
297
|
+
type: Output
|
|
298
|
+
}] } });
|
|
274
299
|
|
|
275
|
-
|
|
276
|
-
}
|
|
277
|
-
SkyAlertModule =
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
300
|
+
class SkyAlertModule {
|
|
301
|
+
}
|
|
302
|
+
SkyAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
303
|
+
SkyAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAlertModule, declarations: [SkyAlertComponent], imports: [CommonModule,
|
|
304
|
+
SkyI18nModule,
|
|
305
|
+
SkyIconModule,
|
|
306
|
+
SkyIndicatorsResourcesModule,
|
|
307
|
+
SkyThemeModule], exports: [SkyAlertComponent] });
|
|
308
|
+
SkyAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAlertModule, imports: [[
|
|
283
309
|
CommonModule,
|
|
284
310
|
SkyI18nModule,
|
|
285
311
|
SkyIconModule,
|
|
286
312
|
SkyIndicatorsResourcesModule,
|
|
287
313
|
SkyThemeModule
|
|
288
|
-
]
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
314
|
+
]] });
|
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyAlertModule, decorators: [{
|
|
316
|
+
type: NgModule,
|
|
317
|
+
args: [{
|
|
318
|
+
declarations: [
|
|
319
|
+
SkyAlertComponent
|
|
320
|
+
],
|
|
321
|
+
imports: [
|
|
322
|
+
CommonModule,
|
|
323
|
+
SkyI18nModule,
|
|
324
|
+
SkyIconModule,
|
|
325
|
+
SkyIndicatorsResourcesModule,
|
|
326
|
+
SkyThemeModule
|
|
327
|
+
],
|
|
328
|
+
exports: [
|
|
329
|
+
SkyAlertComponent
|
|
330
|
+
]
|
|
331
|
+
}]
|
|
332
|
+
}] });
|
|
294
333
|
|
|
295
|
-
|
|
334
|
+
class SkyChevronComponent {
|
|
296
335
|
constructor() {
|
|
297
336
|
this.directionChange = new EventEmitter();
|
|
298
337
|
this.direction = 'up';
|
|
299
338
|
this.disabled = false;
|
|
300
339
|
}
|
|
301
340
|
chevronClick(event) {
|
|
302
|
-
|
|
303
|
-
event.stopPropagation();
|
|
304
|
-
}
|
|
341
|
+
event.stopPropagation();
|
|
305
342
|
this.direction = this.direction === 'up' ? 'down' : 'up';
|
|
306
343
|
this.directionChange.emit(this.direction);
|
|
307
344
|
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
]
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
]
|
|
345
|
+
}
|
|
346
|
+
SkyChevronComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyChevronComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
347
|
+
SkyChevronComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyChevronComponent, selector: "sky-chevron", inputs: { direction: "direction", disabled: "disabled" }, outputs: { directionChange: "directionChange" }, ngImport: i0, template: "<button\n class=\"sky-chevron\"\n type=\"button\"\n [attr.aria-label]=\"(direction === 'down' ? 'skyux_chevron_expand' : 'skyux_chevron_collapse') | skyLibResources\"\n [disabled]=\"disabled\"\n [ngClass]=\"['sky-chevron-' + direction]\"\n [skyThemeClass]=\"{\n 'sky-btn sky-btn-icon-borderless' : 'modern'\n }\"\n (click)=\"chevronClick($event)\"\n>\n <ng-container *skyThemeIf=\"'default'\">\n <ng-container *ngTemplateOutlet=\"icon\"></ng-container>\n </ng-container>\n <ng-container *skyThemeIf=\"'modern'\">\n <span\n class=\"chevron-glyph-container\"\n >\n <ng-container *ngTemplateOutlet=\"icon\"></ng-container>\n </span>\n </ng-container>\n</button>\n\n<ng-template #icon>\n <i\n aria-hidden=\"true\"\n class=\"sky-chevron-part sky-chevron-left\"\n >\n </i>\n <i\n aria-hidden=\"true\"\n class=\"sky-chevron-part sky-chevron-right\"\n >\n </i>\n</ng-template>\n", styles: ["button{background:lightblue}.sky-chevron{border:none;background-color:transparent;flex-shrink:0;height:24px;margin:0;overflow:hidden;width:24px;cursor:pointer;position:relative;vertical-align:top}.sky-chevron:hover .sky-chevron-part{border-color:#979ba2}.sky-chevron-part{border-color:#cdcfd2;border-style:solid;border-width:3px 0 0 0;display:inline-block;height:10px;position:absolute;top:10px;transition:transform .25s,left .25s;vertical-align:top;width:10px}.sky-chevron-up .sky-chevron-left{left:7px;transform:rotate(-45deg)}.sky-chevron-up .sky-chevron-right{left:7px;transform:rotate(45deg)}.sky-chevron-down .sky-chevron-left{left:2px;transform:rotate(45deg)}.sky-chevron-down .sky-chevron-right{left:12px;transform:rotate(-45deg)}:host-context(.sky-theme-modern) .sky-chevron{height:26px;width:26px}:host-context(.sky-theme-modern) .sky-chevron-part{background:#686c73;border:none;height:2px;width:11px;top:13px}:host-context(.sky-theme-modern) .chevron-glyph-container{transform:scale(.68);display:inline-block;position:absolute;top:3.5px;left:4px}:host-context(.sky-theme-modern) .sky-chevron-left{border-radius:1px 0 0 1px}:host-context(.sky-theme-modern) .sky-chevron-right{border-radius:0 1px 1px 0}:host-context(.sky-theme-modern) .sky-chevron-left{left:4px}:host-context(.sky-theme-modern) .sky-chevron-right{left:10.5px}.sky-theme-modern .sky-chevron{height:26px;width:26px}.sky-theme-modern .sky-chevron-part{background:#686c73;border:none;height:2px;width:11px;top:13px}.sky-theme-modern .chevron-glyph-container{transform:scale(.68);display:inline-block;position:absolute;top:3.5px;left:4px}.sky-theme-modern .sky-chevron-left{border-radius:1px 0 0 1px}.sky-theme-modern .sky-chevron-right{border-radius:0 1px 1px 0}.sky-theme-modern .sky-chevron-left{left:4px}.sky-theme-modern .sky-chevron-right{left:10.5px}\n"], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i1.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i1$2.SkyLibResourcesPipe } });
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyChevronComponent, decorators: [{
|
|
349
|
+
type: Component,
|
|
350
|
+
args: [{
|
|
351
|
+
selector: 'sky-chevron',
|
|
352
|
+
styleUrls: ['./chevron.component.scss'],
|
|
353
|
+
templateUrl: './chevron.component.html'
|
|
354
|
+
}]
|
|
355
|
+
}], propDecorators: { directionChange: [{
|
|
356
|
+
type: Output
|
|
357
|
+
}], direction: [{
|
|
358
|
+
type: Input
|
|
359
|
+
}], disabled: [{
|
|
360
|
+
type: Input
|
|
361
|
+
}] } });
|
|
325
362
|
|
|
326
|
-
|
|
327
|
-
}
|
|
328
|
-
SkyChevronModule =
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
],
|
|
333
|
-
|
|
363
|
+
class SkyChevronModule {
|
|
364
|
+
}
|
|
365
|
+
SkyChevronModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyChevronModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
366
|
+
SkyChevronModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyChevronModule, declarations: [SkyChevronComponent], imports: [CommonModule,
|
|
367
|
+
SkyI18nModule,
|
|
368
|
+
SkyIndicatorsResourcesModule,
|
|
369
|
+
SkyThemeModule], exports: [SkyChevronComponent] });
|
|
370
|
+
SkyChevronModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyChevronModule, imports: [[
|
|
334
371
|
CommonModule,
|
|
335
372
|
SkyI18nModule,
|
|
336
373
|
SkyIndicatorsResourcesModule,
|
|
337
374
|
SkyThemeModule
|
|
338
|
-
]
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
375
|
+
]] });
|
|
376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyChevronModule, decorators: [{
|
|
377
|
+
type: NgModule,
|
|
378
|
+
args: [{
|
|
379
|
+
declarations: [
|
|
380
|
+
SkyChevronComponent
|
|
381
|
+
],
|
|
382
|
+
imports: [
|
|
383
|
+
CommonModule,
|
|
384
|
+
SkyI18nModule,
|
|
385
|
+
SkyIndicatorsResourcesModule,
|
|
386
|
+
SkyThemeModule
|
|
387
|
+
],
|
|
388
|
+
exports: [
|
|
389
|
+
SkyChevronComponent
|
|
390
|
+
]
|
|
391
|
+
}]
|
|
392
|
+
}] });
|
|
344
393
|
|
|
345
|
-
|
|
394
|
+
class SkyHelpInlineComponent {
|
|
346
395
|
constructor() {
|
|
347
396
|
/**
|
|
348
397
|
* Fires when the user clicks the help inline button.
|
|
@@ -352,65 +401,87 @@ let SkyHelpInlineComponent = class SkyHelpInlineComponent {
|
|
|
352
401
|
onClick() {
|
|
353
402
|
this.actionClick.emit();
|
|
354
403
|
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
],
|
|
404
|
+
}
|
|
405
|
+
SkyHelpInlineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyHelpInlineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
406
|
+
SkyHelpInlineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyHelpInlineComponent, selector: "sky-help-inline", outputs: { actionClick: "actionClick" }, ngImport: i0, template: "<button\n class=\"sky-help-inline\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_help_inline_button_title' | skyLibResources\"\n (click)=\"onClick()\"\n>\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"info-circle\"\n >\n </sky-icon>\n <sky-icon-stack *skyThemeIf=\"'modern'\"\n size=\"xs\"\n [baseIcon]=\"{\n icon: 'circle-solid',\n iconType: 'skyux'\n }\"\n [topIcon]=\"{\n icon: 'help-i',\n iconType: 'skyux'\n }\"\n >\n </sky-icon-stack>\n</button>\n", styles: [".sky-help-inline{color:#0974a1;font-size:15px;background-color:transparent;border:none;display:inline-block}.sky-help-inline:hover{color:#065171;transition:color .15s;cursor:pointer}:host-context(.sky-theme-modern) .sky-help-inline ::ng-deep .fa-stack-2x{font-size:16px}:host-context(.sky-theme-modern) .sky-help-inline ::ng-deep .fa-stack-1x{font-size:10px}.sky-theme-modern .sky-help-inline ::ng-deep .fa-stack-2x{font-size:16px}.sky-theme-modern .sky-help-inline ::ng-deep .fa-stack-1x{font-size:10px}\n"], components: [{ type: SkyIconComponent, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: SkyIconStackComponent, selector: "sky-icon-stack", inputs: ["size", "baseIcon", "topIcon"] }], directives: [{ type: i1.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }], pipes: { "skyLibResources": i1$2.SkyLibResourcesPipe } });
|
|
407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyHelpInlineComponent, decorators: [{
|
|
408
|
+
type: Component,
|
|
409
|
+
args: [{
|
|
410
|
+
selector: 'sky-help-inline',
|
|
411
|
+
templateUrl: './help-inline.component.html',
|
|
412
|
+
styleUrls: ['./help-inline.component.scss']
|
|
413
|
+
}]
|
|
414
|
+
}], propDecorators: { actionClick: [{
|
|
415
|
+
type: Output
|
|
416
|
+
}] } });
|
|
366
417
|
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
SkyHelpInlineModule =
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
418
|
+
class SkyHelpInlineModule {
|
|
419
|
+
}
|
|
420
|
+
SkyHelpInlineModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyHelpInlineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
421
|
+
SkyHelpInlineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyHelpInlineModule, declarations: [SkyHelpInlineComponent], imports: [CommonModule,
|
|
422
|
+
SkyI18nModule,
|
|
423
|
+
SkyIconModule,
|
|
424
|
+
SkyIndicatorsResourcesModule,
|
|
425
|
+
SkyThemeModule], exports: [SkyHelpInlineComponent] });
|
|
426
|
+
SkyHelpInlineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyHelpInlineModule, imports: [[
|
|
375
427
|
CommonModule,
|
|
376
428
|
SkyI18nModule,
|
|
377
429
|
SkyIconModule,
|
|
378
430
|
SkyIndicatorsResourcesModule,
|
|
379
431
|
SkyThemeModule
|
|
380
|
-
]
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
432
|
+
]] });
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyHelpInlineModule, decorators: [{
|
|
434
|
+
type: NgModule,
|
|
435
|
+
args: [{
|
|
436
|
+
declarations: [
|
|
437
|
+
SkyHelpInlineComponent
|
|
438
|
+
],
|
|
439
|
+
imports: [
|
|
440
|
+
CommonModule,
|
|
441
|
+
SkyI18nModule,
|
|
442
|
+
SkyIconModule,
|
|
443
|
+
SkyIndicatorsResourcesModule,
|
|
444
|
+
SkyThemeModule
|
|
445
|
+
],
|
|
446
|
+
exports: [
|
|
447
|
+
SkyHelpInlineComponent
|
|
448
|
+
]
|
|
449
|
+
}]
|
|
450
|
+
}] });
|
|
386
451
|
|
|
387
452
|
/**
|
|
388
453
|
* Specifies a label to display in smaller, plain text under or beside the value.
|
|
389
454
|
* @required
|
|
390
455
|
*/
|
|
391
|
-
|
|
392
|
-
}
|
|
393
|
-
SkyKeyInfoLabelComponent =
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
456
|
+
class SkyKeyInfoLabelComponent {
|
|
457
|
+
}
|
|
458
|
+
SkyKeyInfoLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
459
|
+
SkyKeyInfoLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyKeyInfoLabelComponent, selector: "sky-key-info-label", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoLabelComponent, decorators: [{
|
|
461
|
+
type: Component,
|
|
462
|
+
args: [{
|
|
463
|
+
selector: 'sky-key-info-label',
|
|
464
|
+
template: '<ng-content></ng-content>'
|
|
465
|
+
}]
|
|
466
|
+
}] });
|
|
399
467
|
|
|
400
468
|
/**
|
|
401
469
|
* Specifies a value to display in larger, bold text.
|
|
402
470
|
* @required
|
|
403
471
|
*/
|
|
404
|
-
|
|
405
|
-
}
|
|
406
|
-
SkyKeyInfoValueComponent =
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
472
|
+
class SkyKeyInfoValueComponent {
|
|
473
|
+
}
|
|
474
|
+
SkyKeyInfoValueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
475
|
+
SkyKeyInfoValueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyKeyInfoValueComponent, selector: "sky-key-info-value", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoValueComponent, decorators: [{
|
|
477
|
+
type: Component,
|
|
478
|
+
args: [{
|
|
479
|
+
selector: 'sky-key-info-value',
|
|
480
|
+
template: '<ng-content></ng-content>'
|
|
481
|
+
}]
|
|
482
|
+
}] });
|
|
412
483
|
|
|
413
|
-
|
|
484
|
+
class SkyKeyInfoComponent {
|
|
414
485
|
constructor() {
|
|
415
486
|
/**
|
|
416
487
|
* Specifies whether to display key info in a `vertical` layout with the label under the
|
|
@@ -419,39 +490,51 @@ let SkyKeyInfoComponent = class SkyKeyInfoComponent {
|
|
|
419
490
|
*/
|
|
420
491
|
this.layout = 'vertical';
|
|
421
492
|
}
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
],
|
|
493
|
+
}
|
|
494
|
+
SkyKeyInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
495
|
+
SkyKeyInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyKeyInfoComponent, selector: "sky-key-info", inputs: { layout: "layout" }, ngImport: i0, template: "<div\n class=\"sky-key-info\"\n [ngClass]=\"{\n 'sky-key-info-horizontal': layout === 'horizontal'\n }\"\n>\n <div\n class=\"sky-key-info-value sky-headline\"\n >\n <ng-content\n select=\"sky-key-info-value\"\n >\n </ng-content>\n </div>\n <div\n class=\"sky-key-info-label sky-field-label sky-font-data-label\"\n >\n <ng-content\n select=\"sky-key-info-label\"\n >\n </ng-content>\n </div>\n</div>\n", styles: [".sky-key-info{display:inline-block}.sky-key-info.sky-key-info-horizontal .sky-key-info-value,.sky-key-info.sky-key-info-horizontal .sky-key-info-label{display:inline-block}.sky-key-info.sky-key-info-horizontal .sky-key-info-label{padding:0 0 0 5px}:host-context(.sky-theme-modern) .sky-key-info.sky-key-info-horizontal .sky-key-info-label{padding:0 0 0 5px}.sky-theme-modern .sky-key-info.sky-key-info-horizontal .sky-key-info-label{padding:0 0 0 5px}\n"], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
496
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoComponent, decorators: [{
|
|
497
|
+
type: Component,
|
|
498
|
+
args: [{
|
|
499
|
+
selector: 'sky-key-info',
|
|
500
|
+
templateUrl: './key-info.component.html',
|
|
501
|
+
styleUrls: ['./key-info.component.scss']
|
|
502
|
+
}]
|
|
503
|
+
}], propDecorators: { layout: [{
|
|
504
|
+
type: Input
|
|
505
|
+
}] } });
|
|
433
506
|
|
|
434
|
-
|
|
435
|
-
}
|
|
436
|
-
SkyKeyInfoModule =
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
imports: [
|
|
507
|
+
class SkyKeyInfoModule {
|
|
508
|
+
}
|
|
509
|
+
SkyKeyInfoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
510
|
+
SkyKeyInfoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoModule, declarations: [SkyKeyInfoComponent,
|
|
511
|
+
SkyKeyInfoLabelComponent,
|
|
512
|
+
SkyKeyInfoValueComponent], imports: [CommonModule], exports: [SkyKeyInfoComponent,
|
|
513
|
+
SkyKeyInfoLabelComponent,
|
|
514
|
+
SkyKeyInfoValueComponent] });
|
|
515
|
+
SkyKeyInfoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoModule, imports: [[
|
|
444
516
|
CommonModule
|
|
445
|
-
]
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
517
|
+
]] });
|
|
518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyKeyInfoModule, decorators: [{
|
|
519
|
+
type: NgModule,
|
|
520
|
+
args: [{
|
|
521
|
+
declarations: [
|
|
522
|
+
SkyKeyInfoComponent,
|
|
523
|
+
SkyKeyInfoLabelComponent,
|
|
524
|
+
SkyKeyInfoValueComponent
|
|
525
|
+
],
|
|
526
|
+
imports: [
|
|
527
|
+
CommonModule
|
|
528
|
+
],
|
|
529
|
+
exports: [
|
|
530
|
+
SkyKeyInfoComponent,
|
|
531
|
+
SkyKeyInfoLabelComponent,
|
|
532
|
+
SkyKeyInfoValueComponent
|
|
533
|
+
]
|
|
534
|
+
}]
|
|
535
|
+
}] });
|
|
453
536
|
|
|
454
|
-
|
|
537
|
+
class SkyLabelComponent {
|
|
455
538
|
/**
|
|
456
539
|
* The type of label to display.
|
|
457
540
|
* @required
|
|
@@ -469,37 +552,47 @@ let SkyLabelComponent = class SkyLabelComponent {
|
|
|
469
552
|
this.baseIcon = indicatorIcon.modernThemeBaseIcon;
|
|
470
553
|
this.topIcon = indicatorIcon.modernThemeTopIcon;
|
|
471
554
|
}
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
],
|
|
555
|
+
}
|
|
556
|
+
SkyLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
557
|
+
SkyLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyLabelComponent, selector: "sky-label", inputs: { labelType: "labelType" }, ngImport: i0, template: "<span\n class=\"sky-label\"\n [ngClass]=\"'sky-label-' + labelType\"\n>\n <span\n class=\"sky-label-icon-theme-default\"\n >\n <sky-icon\n [icon]=\"icon\"\n ></sky-icon>\n </span>\n <span\n class=\"sky-label-icon-theme-modern\"\n >\n <sky-icon-stack\n size=\"xs\"\n [baseIcon]=\"baseIcon\"\n [topIcon]=\"topIcon\"\n >\n </sky-icon-stack>\n </span>\n <span class=\"sky-label-text\">\n <ng-content></ng-content>\n </span>\n</span>\n", styles: [".sky-label{color:#212327;display:inline;border-radius:10rem;font-weight:400;line-height:2.2;margin:0 3px;padding:.3em .6em;white-space:nowrap}.sky-label-success{background-color:#b7da9b}.sky-label-info{background-color:#81d4f7}.sky-label-warning{background-color:#ffd597}.sky-label-danger{background-color:#f7a08f}.sky-label-text{display:inline-block;padding-left:5px}.sky-label-icon-theme-modern{display:none}:host-context(.sky-theme-modern) .sky-label{align-items:center;display:inline-flex;line-height:1}:host-context(.sky-theme-modern) .sky-label.sky-label-info{background-color:#c1e8fb}:host-context(.sky-theme-modern) .sky-label.sky-label-info,:host-context(.sky-theme-modern) .sky-label.sky-label-success{padding:4px 15px 4px 6px}:host-context(.sky-theme-modern) .sky-label.sky-label-warning,:host-context(.sky-theme-modern) .sky-label.sky-label-danger{padding:4px 15px 4px 9px}:host-context(.sky-theme-modern) .sky-label-icon-theme-default{display:none}:host-context(.sky-theme-modern) .sky-label-icon-theme-modern{display:block}:host-context(.sky-theme-modern) .sky-label-info .sky-label-icon-theme-modern{color:#00b4f1}:host-context(.sky-theme-modern) .sky-label-success .sky-label-icon-theme-modern{color:#72bf44}:host-context(.sky-theme-modern) .sky-label-warning .sky-label-icon-theme-modern{color:#fbb034}:host-context(.sky-theme-modern) .sky-label-danger .sky-label-icon-theme-modern{color:#ef4044}.sky-theme-modern .sky-label{align-items:center;display:inline-flex;line-height:1}.sky-theme-modern .sky-label.sky-label-info{background-color:#c1e8fb}.sky-theme-modern .sky-label.sky-label-info,.sky-theme-modern .sky-label.sky-label-success{padding:4px 15px 4px 6px}.sky-theme-modern .sky-label.sky-label-warning,.sky-theme-modern .sky-label.sky-label-danger{padding:4px 15px 4px 9px}.sky-theme-modern .sky-label-icon-theme-default{display:none}.sky-theme-modern .sky-label-icon-theme-modern{display:block}.sky-theme-modern .sky-label-info .sky-label-icon-theme-modern{color:#00b4f1}.sky-theme-modern .sky-label-success .sky-label-icon-theme-modern{color:#72bf44}.sky-theme-modern .sky-label-warning .sky-label-icon-theme-modern{color:#fbb034}.sky-theme-modern .sky-label-danger .sky-label-icon-theme-modern{color:#ef4044}\n"], components: [{ type: SkyIconComponent, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: SkyIconStackComponent, selector: "sky-icon-stack", inputs: ["size", "baseIcon", "topIcon"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLabelComponent, decorators: [{
|
|
559
|
+
type: Component,
|
|
560
|
+
args: [{
|
|
561
|
+
selector: 'sky-label',
|
|
562
|
+
templateUrl: './label.component.html',
|
|
563
|
+
styleUrls: ['./label.component.scss']
|
|
564
|
+
}]
|
|
565
|
+
}], propDecorators: { labelType: [{
|
|
566
|
+
type: Input
|
|
567
|
+
}] } });
|
|
483
568
|
|
|
484
|
-
|
|
485
|
-
}
|
|
486
|
-
SkyLabelModule =
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
],
|
|
491
|
-
imports: [
|
|
569
|
+
class SkyLabelModule {
|
|
570
|
+
}
|
|
571
|
+
SkyLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
572
|
+
SkyLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLabelModule, declarations: [SkyLabelComponent], imports: [CommonModule,
|
|
573
|
+
SkyIconModule], exports: [SkyLabelComponent] });
|
|
574
|
+
SkyLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLabelModule, imports: [[
|
|
492
575
|
CommonModule,
|
|
493
576
|
SkyIconModule
|
|
494
|
-
]
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
577
|
+
]] });
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyLabelModule, decorators: [{
|
|
579
|
+
type: NgModule,
|
|
580
|
+
args: [{
|
|
581
|
+
declarations: [
|
|
582
|
+
SkyLabelComponent
|
|
583
|
+
],
|
|
584
|
+
imports: [
|
|
585
|
+
CommonModule,
|
|
586
|
+
SkyIconModule
|
|
587
|
+
],
|
|
588
|
+
exports: [
|
|
589
|
+
SkyLabelComponent
|
|
590
|
+
]
|
|
591
|
+
}]
|
|
592
|
+
}] });
|
|
500
593
|
|
|
501
594
|
const INDICATOR_TYPE_DEFAULT = 'warning';
|
|
502
|
-
|
|
595
|
+
class SkyStatusIndicatorComponent {
|
|
503
596
|
constructor(changeDetector, resources) {
|
|
504
597
|
this.changeDetector = changeDetector;
|
|
505
598
|
this.resources = resources;
|
|
@@ -567,49 +660,56 @@ let SkyStatusIndicatorComponent = class SkyStatusIndicatorComponent {
|
|
|
567
660
|
this.descriptionComputed = undefined;
|
|
568
661
|
}
|
|
569
662
|
}
|
|
570
|
-
}
|
|
571
|
-
SkyStatusIndicatorComponent
|
|
572
|
-
{ type:
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
]
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
],
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
589
|
-
styles: [".sky-status-indicator{align-items:baseline;display:flex}.sky-status-indicator-icon{flex-shrink:1}.sky-status-indicator-icon-modern{display:none}.sky-status-indicator-icon-info{color:#00b4f1}.sky-status-indicator-icon-success{color:#72bf44}.sky-status-indicator-icon-warning{color:#fbb034}.sky-status-indicator-icon-danger{color:#ef4044}.sky-theme-modern .sky-status-indicator-icon-default,:host-context(.sky-theme-modern) .sky-status-indicator-icon-default{display:none}.sky-theme-modern .sky-status-indicator-icon-modern,:host-context(.sky-theme-modern) .sky-status-indicator-icon-modern{display:inline}"]
|
|
590
|
-
})
|
|
591
|
-
], SkyStatusIndicatorComponent);
|
|
663
|
+
}
|
|
664
|
+
SkyStatusIndicatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyStatusIndicatorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
665
|
+
SkyStatusIndicatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyStatusIndicatorComponent, selector: "sky-status-indicator", inputs: { indicatorType: "indicatorType", descriptionType: "descriptionType", customDescription: "customDescription" }, ngImport: i0, template: "<div *ngIf=\"descriptionType\"\n class=\"sky-status-indicator\"\n>\n <div\n aria-hidden=\"true\"\n class=\"sky-margin-inline-xs sky-status-indicator-icon\"\n [ngClass]=\"'sky-status-indicator-icon-' + indicatorType\"\n >\n <span\n class=\"sky-status-indicator-icon-default\"\n >\n <sky-icon\n [icon]=\"icon\"\n ></sky-icon>\n </span>\n <span\n class=\"sky-status-indicator-icon-modern\"\n >\n <sky-icon-stack\n size=\"xs\"\n [baseIcon]=\"baseIcon\"\n [topIcon]=\"topIcon\"\n >\n </sky-icon-stack>\n </span>\n </div>\n <div\n class=\"sky-status-indicator-message-wrapper\"\n >\n <span *ngIf=\"descriptionComputed\"\n class=\"sky-screen-reader-only\"\n >\n {{ descriptionComputed }}\n </span>\n <span\n class=\"sky-status-indicator-message\"\n >\n <ng-content></ng-content>\n </span>\n </div>\n</div>\n", styles: [".sky-status-indicator{align-items:baseline;display:flex}.sky-status-indicator-icon{flex-shrink:1}.sky-status-indicator-icon-modern{display:none}.sky-status-indicator-icon-info{color:#00b4f1}.sky-status-indicator-icon-success{color:#72bf44}.sky-status-indicator-icon-warning{color:#fbb034}.sky-status-indicator-icon-danger{color:#ef4044}:host-context(.sky-theme-modern) .sky-status-indicator-icon-default{display:none}:host-context(.sky-theme-modern) .sky-status-indicator-icon-modern{display:inline}.sky-theme-modern .sky-status-indicator-icon-default{display:none}.sky-theme-modern .sky-status-indicator-icon-modern{display:inline}\n"], components: [{ type: SkyIconComponent, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }, { type: SkyIconStackComponent, selector: "sky-icon-stack", inputs: ["size", "baseIcon", "topIcon"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyStatusIndicatorComponent, decorators: [{
|
|
667
|
+
type: Component,
|
|
668
|
+
args: [{
|
|
669
|
+
selector: 'sky-status-indicator',
|
|
670
|
+
templateUrl: './status-indicator.component.html',
|
|
671
|
+
styleUrls: ['./status-indicator.component.scss'],
|
|
672
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
673
|
+
}]
|
|
674
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$2.SkyLibResourcesService }]; }, propDecorators: { indicatorType: [{
|
|
675
|
+
type: Input
|
|
676
|
+
}], descriptionType: [{
|
|
677
|
+
type: Input
|
|
678
|
+
}], customDescription: [{
|
|
679
|
+
type: Input
|
|
680
|
+
}] } });
|
|
592
681
|
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
SkyStatusIndicatorModule =
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
],
|
|
600
|
-
|
|
682
|
+
class SkyStatusIndicatorModule {
|
|
683
|
+
}
|
|
684
|
+
SkyStatusIndicatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyStatusIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
685
|
+
SkyStatusIndicatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyStatusIndicatorModule, declarations: [SkyStatusIndicatorComponent], imports: [CommonModule,
|
|
686
|
+
SkyI18nModule,
|
|
687
|
+
SkyIconModule,
|
|
688
|
+
SkyIndicatorsResourcesModule], exports: [SkyStatusIndicatorComponent] });
|
|
689
|
+
SkyStatusIndicatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyStatusIndicatorModule, imports: [[
|
|
601
690
|
CommonModule,
|
|
602
691
|
SkyI18nModule,
|
|
603
692
|
SkyIconModule,
|
|
604
693
|
SkyIndicatorsResourcesModule
|
|
605
|
-
]
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
694
|
+
]] });
|
|
695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyStatusIndicatorModule, decorators: [{
|
|
696
|
+
type: NgModule,
|
|
697
|
+
args: [{
|
|
698
|
+
declarations: [
|
|
699
|
+
SkyStatusIndicatorComponent
|
|
700
|
+
],
|
|
701
|
+
imports: [
|
|
702
|
+
CommonModule,
|
|
703
|
+
SkyI18nModule,
|
|
704
|
+
SkyIconModule,
|
|
705
|
+
SkyIndicatorsResourcesModule
|
|
706
|
+
],
|
|
707
|
+
exports: [
|
|
708
|
+
SkyStatusIndicatorComponent
|
|
709
|
+
]
|
|
710
|
+
}]
|
|
711
|
+
}] });
|
|
611
712
|
|
|
612
|
-
var SkyTextHighlightDirective_1;
|
|
613
713
|
const className = 'sky-highlight-mark';
|
|
614
714
|
// Need to add the following to classes which contain static methods.
|
|
615
715
|
// See: https://github.com/ng-packagr/ng-packagr/issues/641
|
|
@@ -619,7 +719,7 @@ const className = 'sky-highlight-mark';
|
|
|
619
719
|
* The directive is only valid for elements that contain content, so you
|
|
620
720
|
* cannot place it on `ng-template`, `ng-content`, or `ng-container` tags.
|
|
621
721
|
*/
|
|
622
|
-
|
|
722
|
+
class SkyTextHighlightDirective {
|
|
623
723
|
constructor(el, observerService) {
|
|
624
724
|
this.el = el;
|
|
625
725
|
this.observerService = observerService;
|
|
@@ -641,6 +741,7 @@ let SkyTextHighlightDirective = SkyTextHighlightDirective_1 = class SkyTextHighl
|
|
|
641
741
|
}
|
|
642
742
|
}
|
|
643
743
|
ngOnDestroy() {
|
|
744
|
+
/* istanbul ignore else */
|
|
644
745
|
if (this.observer) {
|
|
645
746
|
this.observer.disconnect();
|
|
646
747
|
}
|
|
@@ -649,22 +750,25 @@ let SkyTextHighlightDirective = SkyTextHighlightDirective_1 = class SkyTextHighl
|
|
|
649
750
|
return searchText && this.el.nativeElement;
|
|
650
751
|
}
|
|
651
752
|
highlight() {
|
|
753
|
+
/* istanbul ignore else */
|
|
652
754
|
if (this.observer) {
|
|
653
755
|
this.observer.disconnect();
|
|
654
756
|
}
|
|
655
757
|
const searchText = this.skyHighlight;
|
|
656
758
|
if (this.existingHighlight) {
|
|
657
|
-
|
|
759
|
+
SkyTextHighlightDirective.removeHighlight(this.el);
|
|
658
760
|
}
|
|
761
|
+
/* istanbul ignore else */
|
|
659
762
|
if (this.readyForHighlight(searchText)) {
|
|
660
763
|
const node = this.el.nativeElement;
|
|
661
764
|
// mark all matched text in the DOM
|
|
662
|
-
|
|
765
|
+
SkyTextHighlightDirective.markTextNodes(node, searchText);
|
|
663
766
|
this.existingHighlight = true;
|
|
664
767
|
}
|
|
665
768
|
this.observeDom();
|
|
666
769
|
}
|
|
667
770
|
observeDom() {
|
|
771
|
+
/* istanbul ignore else */
|
|
668
772
|
if (this.observer) {
|
|
669
773
|
const config = { attributes: false, childList: true, characterData: true };
|
|
670
774
|
this.observer.observe(this.el.nativeElement, config);
|
|
@@ -680,7 +784,7 @@ let SkyTextHighlightDirective = SkyTextHighlightDirective_1 = class SkyTextHighl
|
|
|
680
784
|
return searchRegex.exec(text);
|
|
681
785
|
}
|
|
682
786
|
static markNode(node, searchText) {
|
|
683
|
-
const regexMatch =
|
|
787
|
+
const regexMatch = SkyTextHighlightDirective.getRegexMatch(node, searchText);
|
|
684
788
|
// found match
|
|
685
789
|
if (regexMatch && regexMatch.length > 0) {
|
|
686
790
|
// split apart text node with mark tags in the middle on the search term
|
|
@@ -700,12 +804,12 @@ let SkyTextHighlightDirective = SkyTextHighlightDirective_1 = class SkyTextHighl
|
|
|
700
804
|
}
|
|
701
805
|
static markTextNodes(node, searchText) {
|
|
702
806
|
if (node.nodeType === 3) {
|
|
703
|
-
return
|
|
807
|
+
return SkyTextHighlightDirective.markNode(node, searchText);
|
|
704
808
|
}
|
|
705
809
|
else if (node.nodeType === 1 && node.childNodes) {
|
|
706
810
|
for (let i = 0; i < node.childNodes.length; i++) {
|
|
707
811
|
const childNode = node.childNodes[i];
|
|
708
|
-
i +=
|
|
812
|
+
i += SkyTextHighlightDirective.markTextNodes(childNode, searchText);
|
|
709
813
|
}
|
|
710
814
|
}
|
|
711
815
|
return 0;
|
|
@@ -723,37 +827,41 @@ let SkyTextHighlightDirective = SkyTextHighlightDirective_1 = class SkyTextHighl
|
|
|
723
827
|
}
|
|
724
828
|
}
|
|
725
829
|
}
|
|
726
|
-
}
|
|
727
|
-
SkyTextHighlightDirective
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
]
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
})
|
|
738
|
-
], SkyTextHighlightDirective);
|
|
830
|
+
}
|
|
831
|
+
SkyTextHighlightDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTextHighlightDirective, deps: [{ token: i0.ElementRef }, { token: i1$3.MutationObserverService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
832
|
+
SkyTextHighlightDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyTextHighlightDirective, selector: "[skyHighlight]", inputs: { skyHighlight: "skyHighlight" }, usesOnChanges: true, ngImport: i0 });
|
|
833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTextHighlightDirective, decorators: [{
|
|
834
|
+
type: Directive,
|
|
835
|
+
args: [{
|
|
836
|
+
selector: '[skyHighlight]'
|
|
837
|
+
}]
|
|
838
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$3.MutationObserverService }]; }, propDecorators: { skyHighlight: [{
|
|
839
|
+
type: Input
|
|
840
|
+
}] } });
|
|
739
841
|
|
|
740
|
-
|
|
741
|
-
}
|
|
742
|
-
SkyTextHighlightModule =
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
842
|
+
class SkyTextHighlightModule {
|
|
843
|
+
}
|
|
844
|
+
SkyTextHighlightModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTextHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
845
|
+
SkyTextHighlightModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTextHighlightModule, declarations: [SkyTextHighlightDirective], exports: [SkyTextHighlightDirective] });
|
|
846
|
+
SkyTextHighlightModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTextHighlightModule, providers: [
|
|
847
|
+
MutationObserverService
|
|
848
|
+
] });
|
|
849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTextHighlightModule, decorators: [{
|
|
850
|
+
type: NgModule,
|
|
851
|
+
args: [{
|
|
852
|
+
declarations: [
|
|
853
|
+
SkyTextHighlightDirective
|
|
854
|
+
],
|
|
855
|
+
exports: [
|
|
856
|
+
SkyTextHighlightDirective
|
|
857
|
+
],
|
|
858
|
+
providers: [
|
|
859
|
+
MutationObserverService
|
|
860
|
+
]
|
|
861
|
+
}]
|
|
862
|
+
}] });
|
|
755
863
|
|
|
756
|
-
|
|
864
|
+
class SkyTokenComponent {
|
|
757
865
|
constructor(elementRef, resourcesService) {
|
|
758
866
|
this.elementRef = elementRef;
|
|
759
867
|
this.resourcesService = resourcesService;
|
|
@@ -818,9 +926,7 @@ let SkyTokenComponent = class SkyTokenComponent {
|
|
|
818
926
|
return (this.focusable) ? 0 : -1;
|
|
819
927
|
}
|
|
820
928
|
dismissToken(event) {
|
|
821
|
-
|
|
822
|
-
event.stopPropagation();
|
|
823
|
-
}
|
|
929
|
+
event.stopPropagation();
|
|
824
930
|
this.dismiss.emit();
|
|
825
931
|
}
|
|
826
932
|
focusElement() {
|
|
@@ -830,37 +936,30 @@ let SkyTokenComponent = class SkyTokenComponent {
|
|
|
830
936
|
// TODO: Need to implement the async `getString` method in a breaking change.
|
|
831
937
|
return this.resourcesService.getStringForLocale({ locale: 'en-US' }, key);
|
|
832
938
|
}
|
|
833
|
-
}
|
|
834
|
-
SkyTokenComponent
|
|
835
|
-
{ type:
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
]
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
],
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
],
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
Component({
|
|
858
|
-
selector: 'sky-token',
|
|
859
|
-
template: "<div\n class=\"sky-token sky-btn sky-btn-default\"\n role=\"button\"\n [attr.aria-disabled]=\"disabled\"\n [attr.tabindex]=\"tabIndex\"\n [ngClass]=\"{\n 'sky-btn-disabled': disabled,\n 'sky-token-dismissable': dismissible,\n 'sky-token-active': tokenActive && !closeActive\n }\"\n (document:mouseup)=\"tokenActive = false;\"\n (focus)=\"tokenFocus.emit()\"\n (mousedown)=\"tokenActive = true;\"\n >\n <ng-content>\n </ng-content>\n <button *ngIf=\"dismissible\"\n class=\"sky-btn sky-token-btn-close\"\n type=\"button\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"tabIndex\"\n [attr.title]=\"ariaLabel\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n 'sky-token-btn-close-active': closeActive\n }\"\n (click)=\"dismissToken($event)\"\n (document:mouseup)=\"closeActive = false;\"\n (mousedown)=\"closeActive = true;\"\n >\n <sky-icon\n class=\"sky-token-btn-close-icon-default\"\n icon=\"times\"\n >\n </sky-icon>\n <sky-icon\n class=\"sky-token-btn-close-icon-modern\"\n icon=\"close\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n</div>\n",
|
|
860
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
861
|
-
styles: [".sky-token{background-color:#c1e8fb;border:1px solid #00b4f1;overflow:hidden;padding:2px 8px;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sky-token:focus,.sky-token:hover{background-color:#91d6f8;border-color:#008ebe;cursor:pointer}.sky-token:focus{box-shadow:0 0 8px rgba(0,180,241,.6);border:1px solid #00b4f1;outline:0}.sky-btn-disabled{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sky-token-btn-close{background:0 0;padding:0;border:0;margin-left:2px;opacity:.9}.sky-token-btn-close:focus,.sky-token-btn-close:hover{opacity:1}.sky-token-btn-close-icon-modern{display:none}.sky-theme-modern .sky-token,:host-context(.sky-theme-modern) .sky-token{align-items:center;display:inline-flex;padding:1px 5px;font-size:14px}.sky-theme-modern .sky-token.sky-btn-disabled,:host-context(.sky-theme-modern) .sky-token.sky-btn-disabled{color:#212327}.sky-theme-modern .sky-token:not(.sky-btn-disabled),:host-context(.sky-theme-modern) .sky-token:not(.sky-btn-disabled){border:none;box-shadow:inset 0 0 0 1px #81d4f7}.sky-theme-modern .sky-token.sky-token-dismissable,:host-context(.sky-theme-modern) .sky-token.sky-token-dismissable{padding-right:1px}.sky-theme-modern .sky-token:hover:not(:active),:host-context(.sky-theme-modern) .sky-token:hover:not(:active){border:none;box-shadow:inset 0 0 0 1px #1870b8}.sky-theme-modern .sky-token.sky-token-active,:host-context(.sky-theme-modern) .sky-token.sky-token-active{border:none;box-shadow:inset 0 0 0 2px #1870b8}.sky-theme-modern .sky-token:focus:not(:active),:host-context(.sky-theme-modern) .sky-token:focus:not(:active){border:none;box-shadow:inset 0 0 0 2px #1870b8,0 1px 3px 0 rgba(0,0,0,.3)}.sky-theme-modern .sky-token:focus,.sky-theme-modern .sky-token:hover,:host-context(.sky-theme-modern) .sky-token:focus,:host-context(.sky-theme-modern) .sky-token:hover{background-color:#c1e8fb}.sky-theme-modern .sky-token-btn-close,:host-context(.sky-theme-modern) .sky-token-btn-close{align-items:center;border-radius:5px;display:flex;height:20px;margin-left:5px;width:20px}.sky-theme-modern .sky-token-btn-close:hover,:host-context(.sky-theme-modern) .sky-token-btn-close:hover{border:none;box-shadow:inset 0 0 0 1px transparent}.sky-theme-modern .sky-token-btn-close.sky-token-btn-close-active,:host-context(.sky-theme-modern) .sky-token-btn-close.sky-token-btn-close-active{border:none;box-shadow:inset 0 0 0 2px #1870b8}.sky-theme-modern .sky-token-btn-close:focus,:host-context(.sky-theme-modern) .sky-token-btn-close:focus{outline:0}.sky-theme-modern .sky-token-btn-close:focus:not(:active),:host-context(.sky-theme-modern) .sky-token-btn-close:focus:not(:active){border:none;box-shadow:inset 0 0 0 2px #1870b8,0 1px 3px 0 rgba(0,0,0,.3)}.sky-theme-modern .sky-token-btn-close-icon-default,:host-context(.sky-theme-modern) .sky-token-btn-close-icon-default{display:none}.sky-theme-modern .sky-token-btn-close-icon-modern,:host-context(.sky-theme-modern) .sky-token-btn-close-icon-modern{display:inline-block;width:100%}.sky-theme-modern.sky-theme-mode-dark .sky-token,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-token{background-color:#c1e8fb}.sky-theme-modern.sky-theme-mode-dark .sky-token,.sky-theme-modern.sky-theme-mode-dark .sky-token-btn-close,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-token,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-token-btn-close{color:#212327}"]
|
|
862
|
-
})
|
|
863
|
-
], SkyTokenComponent);
|
|
939
|
+
}
|
|
940
|
+
SkyTokenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTokenComponent, deps: [{ token: i0.ElementRef }, { token: i1$2.SkyLibResourcesService }], target: i0.ɵɵFactoryTarget.Component });
|
|
941
|
+
SkyTokenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyTokenComponent, selector: "sky-token", inputs: { disabled: "disabled", ariaLabel: "ariaLabel", dismissible: "dismissible", focusable: "focusable" }, outputs: { dismiss: "dismiss", tokenFocus: "tokenFocus" }, ngImport: i0, template: "<div\n class=\"sky-token sky-btn sky-btn-default\"\n role=\"button\"\n [attr.aria-disabled]=\"disabled\"\n [attr.tabindex]=\"tabIndex\"\n [ngClass]=\"{\n 'sky-btn-disabled': disabled,\n 'sky-token-dismissable': dismissible,\n 'sky-token-active': tokenActive && !closeActive\n }\"\n (document:mouseup)=\"tokenActive = false;\"\n (focus)=\"tokenFocus.emit()\"\n (mousedown)=\"tokenActive = true;\"\n >\n <ng-content>\n </ng-content>\n <button *ngIf=\"dismissible\"\n class=\"sky-btn sky-token-btn-close\"\n type=\"button\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"tabIndex\"\n [attr.title]=\"ariaLabel\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n 'sky-token-btn-close-active': closeActive\n }\"\n (click)=\"dismissToken($event)\"\n (document:mouseup)=\"closeActive = false;\"\n (mousedown)=\"closeActive = true;\"\n >\n <sky-icon\n class=\"sky-token-btn-close-icon-default\"\n icon=\"times\"\n >\n </sky-icon>\n <sky-icon\n class=\"sky-token-btn-close-icon-modern\"\n icon=\"close\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n</div>\n", styles: [".sky-token{background-color:#c1e8fb;border:1px solid #00b4f1;overflow:hidden;padding:2px 8px;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sky-token:hover,.sky-token:focus{background-color:#91d6f8;border-color:#008ebe;cursor:pointer}.sky-token:focus{box-shadow:0 0 8px #00b4f199;border:1px solid #00b4f1;outline:none}.sky-btn-disabled{cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sky-token-btn-close{background:transparent;padding:0;border:0;margin-left:2px;opacity:.9}.sky-token-btn-close:hover,.sky-token-btn-close:focus{opacity:1}.sky-token-btn-close-icon-modern{display:none}:host-context(.sky-theme-modern) .sky-token{align-items:center;display:inline-flex;padding:1px 5px;font-size:14px}:host-context(.sky-theme-modern) .sky-token.sky-btn-disabled{color:#212327}:host-context(.sky-theme-modern) .sky-token:not(.sky-btn-disabled){border:none;box-shadow:inset 0 0 0 1px #81d4f7}:host-context(.sky-theme-modern) .sky-token.sky-token-dismissable{padding-right:1px}:host-context(.sky-theme-modern) .sky-token:hover:not(:active){border:none;box-shadow:inset 0 0 0 1px #1870b8}:host-context(.sky-theme-modern) .sky-token.sky-token-active{border:none;box-shadow:inset 0 0 0 2px #1870b8}:host-context(.sky-theme-modern) .sky-token:focus:not(:active){border:none;box-shadow:inset 0 0 0 2px #1870b8,0 1px 3px #0000004d}:host-context(.sky-theme-modern) .sky-token:focus,:host-context(.sky-theme-modern) .sky-token:hover{background-color:#c1e8fb}:host-context(.sky-theme-modern) .sky-token-btn-close{align-items:center;border-radius:5px;display:flex;height:20px;margin-left:5px;width:20px}:host-context(.sky-theme-modern) .sky-token-btn-close:hover{border:none;box-shadow:inset 0 0 0 1px transparent}:host-context(.sky-theme-modern) .sky-token-btn-close.sky-token-btn-close-active{border:none;box-shadow:inset 0 0 0 2px #1870b8}:host-context(.sky-theme-modern) .sky-token-btn-close:focus{outline:none}:host-context(.sky-theme-modern) .sky-token-btn-close:focus:not(:active){border:none;box-shadow:inset 0 0 0 2px #1870b8,0 1px 3px #0000004d}:host-context(.sky-theme-modern) .sky-token-btn-close-icon-default{display:none}:host-context(.sky-theme-modern) .sky-token-btn-close-icon-modern{display:inline-block;width:100%}.sky-theme-modern .sky-token{align-items:center;display:inline-flex;padding:1px 5px;font-size:14px}.sky-theme-modern .sky-token.sky-btn-disabled{color:#212327}.sky-theme-modern .sky-token:not(.sky-btn-disabled){border:none;box-shadow:inset 0 0 0 1px #81d4f7}.sky-theme-modern .sky-token.sky-token-dismissable{padding-right:1px}.sky-theme-modern .sky-token:hover:not(:active){border:none;box-shadow:inset 0 0 0 1px #1870b8}.sky-theme-modern .sky-token.sky-token-active{border:none;box-shadow:inset 0 0 0 2px #1870b8}.sky-theme-modern .sky-token:focus:not(:active){border:none;box-shadow:inset 0 0 0 2px #1870b8,0 1px 3px #0000004d}.sky-theme-modern .sky-token:focus,.sky-theme-modern .sky-token:hover{background-color:#c1e8fb}.sky-theme-modern .sky-token-btn-close{align-items:center;border-radius:5px;display:flex;height:20px;margin-left:5px;width:20px}.sky-theme-modern .sky-token-btn-close:hover{border:none;box-shadow:inset 0 0 0 1px transparent}.sky-theme-modern .sky-token-btn-close.sky-token-btn-close-active{border:none;box-shadow:inset 0 0 0 2px #1870b8}.sky-theme-modern .sky-token-btn-close:focus{outline:none}.sky-theme-modern .sky-token-btn-close:focus:not(:active){border:none;box-shadow:inset 0 0 0 2px #1870b8,0 1px 3px #0000004d}.sky-theme-modern .sky-token-btn-close-icon-default{display:none}.sky-theme-modern .sky-token-btn-close-icon-modern{display:inline-block;width:100%}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-token{background-color:#c1e8fb}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-token,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-token-btn-close{color:#212327}.sky-theme-modern.sky-theme-mode-dark .sky-token{background-color:#c1e8fb}.sky-theme-modern.sky-theme-mode-dark .sky-token,.sky-theme-modern.sky-theme-mode-dark .sky-token-btn-close{color:#212327}\n"], components: [{ type: SkyIconComponent, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTokenComponent, decorators: [{
|
|
943
|
+
type: Component,
|
|
944
|
+
args: [{
|
|
945
|
+
selector: 'sky-token',
|
|
946
|
+
templateUrl: './token.component.html',
|
|
947
|
+
styleUrls: ['./token.component.scss'],
|
|
948
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
949
|
+
}]
|
|
950
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$2.SkyLibResourcesService }]; }, propDecorators: { disabled: [{
|
|
951
|
+
type: Input
|
|
952
|
+
}], ariaLabel: [{
|
|
953
|
+
type: Input
|
|
954
|
+
}], dismissible: [{
|
|
955
|
+
type: Input
|
|
956
|
+
}], focusable: [{
|
|
957
|
+
type: Input
|
|
958
|
+
}], dismiss: [{
|
|
959
|
+
type: Output
|
|
960
|
+
}], tokenFocus: [{
|
|
961
|
+
type: Output
|
|
962
|
+
}] } });
|
|
864
963
|
|
|
865
964
|
var SkyTokensMessageType;
|
|
866
965
|
(function (SkyTokensMessageType) {
|
|
@@ -886,7 +985,7 @@ var SkyTokensMessageType;
|
|
|
886
985
|
SkyTokensMessageType[SkyTokensMessageType["RemoveActiveToken"] = 4] = "RemoveActiveToken";
|
|
887
986
|
})(SkyTokensMessageType || (SkyTokensMessageType = {}));
|
|
888
987
|
|
|
889
|
-
|
|
988
|
+
class SkyTokensComponent {
|
|
890
989
|
constructor(changeDetector) {
|
|
891
990
|
this.changeDetector = changeDetector;
|
|
892
991
|
/**
|
|
@@ -1099,107 +1198,131 @@ let SkyTokensComponent = class SkyTokensComponent {
|
|
|
1099
1198
|
token
|
|
1100
1199
|
});
|
|
1101
1200
|
}
|
|
1102
|
-
}
|
|
1103
|
-
SkyTokensComponent
|
|
1104
|
-
{ type:
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
__decorate([
|
|
1119
|
-
Input()
|
|
1120
|
-
], SkyTokensComponent.prototype, "focusable", null);
|
|
1121
|
-
__decorate([
|
|
1122
|
-
Input()
|
|
1123
|
-
], SkyTokensComponent.prototype, "tokens", null);
|
|
1124
|
-
__decorate([
|
|
1125
|
-
Input()
|
|
1126
|
-
], SkyTokensComponent.prototype, "messageStream", null);
|
|
1127
|
-
__decorate([
|
|
1128
|
-
Output()
|
|
1129
|
-
], SkyTokensComponent.prototype, "focusIndexOverRange", void 0);
|
|
1130
|
-
__decorate([
|
|
1131
|
-
Output()
|
|
1132
|
-
], SkyTokensComponent.prototype, "focusIndexUnderRange", void 0);
|
|
1133
|
-
__decorate([
|
|
1134
|
-
Output()
|
|
1135
|
-
], SkyTokensComponent.prototype, "tokenSelected", void 0);
|
|
1136
|
-
__decorate([
|
|
1137
|
-
Output()
|
|
1138
|
-
], SkyTokensComponent.prototype, "tokensChange", void 0);
|
|
1139
|
-
__decorate([
|
|
1140
|
-
ViewChildren(SkyTokenComponent)
|
|
1141
|
-
], SkyTokensComponent.prototype, "tokenComponents", void 0);
|
|
1142
|
-
SkyTokensComponent = __decorate([
|
|
1143
|
-
Component({
|
|
1144
|
-
selector: 'sky-tokens',
|
|
1145
|
-
template: "<div *ngIf=\"tokens\"\n class=\"sky-tokens\"\n [@blockAnimationOnLoad]\n [attr.role]=\"(tokens && tokens.length) ? 'list' : null\"\n>\n <sky-token *ngFor=\"let token of tokens; let i = index; trackBy: trackTokenFn\"\n role=\"listitem\"\n [@.disabled]=\"!trackWith\"\n [@dismiss]\n [disabled]=\"disabled\"\n [dismissible]=\"dismissible\"\n [focusable]=\"focusable\"\n (dismiss)=\"removeToken(token)\"\n (click)=\"onTokenClick(token)\"\n (keydown)=\"onTokenKeyDown($event)\"\n (keyup.enter)=\"selectToken(token);$event.preventDefault();\"\n (tokenFocus)=\"activeIndex = i\"\n >\n {{ token.value[displayWith] }}\n </sky-token>\n <div\n class=\"sky-tokens-content\"\n >\n <ng-content></ng-content>\n </div>\n</div>\n",
|
|
1146
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1147
|
-
animations: [
|
|
1148
|
-
trigger('blockAnimationOnLoad', [
|
|
1149
|
-
transition(':enter', [])
|
|
1201
|
+
}
|
|
1202
|
+
SkyTokensComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTokensComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1203
|
+
SkyTokensComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyTokensComponent, selector: "sky-tokens", inputs: { disabled: "disabled", dismissible: "dismissible", displayWith: "displayWith", trackWith: "trackWith", focusable: "focusable", tokens: "tokens", messageStream: "messageStream" }, outputs: { focusIndexOverRange: "focusIndexOverRange", focusIndexUnderRange: "focusIndexUnderRange", tokenSelected: "tokenSelected", tokensChange: "tokensChange" }, viewQueries: [{ propertyName: "tokenComponents", predicate: SkyTokenComponent, descendants: true }], ngImport: i0, template: "<div *ngIf=\"tokens\"\n class=\"sky-tokens\"\n [@blockAnimationOnLoad]\n [attr.role]=\"(tokens && tokens.length) ? 'list' : null\"\n>\n <sky-token *ngFor=\"let token of tokens; let i = index; trackBy: trackTokenFn\"\n role=\"listitem\"\n [@.disabled]=\"!trackWith\"\n [@dismiss]\n [disabled]=\"disabled\"\n [dismissible]=\"dismissible\"\n [focusable]=\"focusable\"\n (dismiss)=\"removeToken(token)\"\n (click)=\"onTokenClick(token)\"\n (keydown)=\"onTokenKeyDown($event)\"\n (keyup.enter)=\"selectToken(token);$event.preventDefault();\"\n (tokenFocus)=\"activeIndex = i\"\n >\n {{ token.value[displayWith] }}\n </sky-token>\n <div\n class=\"sky-tokens-content\"\n >\n <ng-content></ng-content>\n </div>\n</div>\n", styles: ["@charset \"UTF-8\";.sky-tokens{display:flex;flex-wrap:wrap;align-items:baseline;margin:-2px}.sky-tokens .sky-tokens-content,.sky-tokens ::ng-deep sky-token{flex:0 0 auto;display:inline-flex;padding:2px}.sky-tokens .sky-tokens-content{flex-grow:1;flex-basis:0px}.sky-tokens .sky-tokens-content:before{content:\"\\200b\"}\n"], components: [{ type: SkyTokenComponent, selector: "sky-token", inputs: ["disabled", "ariaLabel", "dismissible", "focusable"], outputs: ["dismiss", "tokenFocus"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], animations: [
|
|
1204
|
+
trigger('blockAnimationOnLoad', [
|
|
1205
|
+
transition(':enter', [])
|
|
1206
|
+
]),
|
|
1207
|
+
trigger('dismiss', [
|
|
1208
|
+
transition(':enter', [
|
|
1209
|
+
style({
|
|
1210
|
+
opacity: 0,
|
|
1211
|
+
width: 0
|
|
1212
|
+
}),
|
|
1213
|
+
animate('150ms ease-in', style({
|
|
1214
|
+
opacity: 1,
|
|
1215
|
+
width: '*'
|
|
1216
|
+
}))
|
|
1150
1217
|
]),
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
}),
|
|
1157
|
-
animate('150ms ease-in', style({
|
|
1158
|
-
opacity: 1,
|
|
1159
|
-
width: '*'
|
|
1160
|
-
}))
|
|
1161
|
-
]),
|
|
1162
|
-
transition(':leave', [
|
|
1163
|
-
animate('150ms ease-in', style({
|
|
1164
|
-
opacity: 0,
|
|
1165
|
-
width: 0
|
|
1166
|
-
}))
|
|
1167
|
-
])
|
|
1218
|
+
transition(':leave', [
|
|
1219
|
+
animate('150ms ease-in', style({
|
|
1220
|
+
opacity: 0,
|
|
1221
|
+
width: 0
|
|
1222
|
+
}))
|
|
1168
1223
|
])
|
|
1169
|
-
]
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1224
|
+
])
|
|
1225
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTokensComponent, decorators: [{
|
|
1227
|
+
type: Component,
|
|
1228
|
+
args: [{
|
|
1229
|
+
selector: 'sky-tokens',
|
|
1230
|
+
templateUrl: './tokens.component.html',
|
|
1231
|
+
styleUrls: ['./tokens.component.scss'],
|
|
1232
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1233
|
+
animations: [
|
|
1234
|
+
trigger('blockAnimationOnLoad', [
|
|
1235
|
+
transition(':enter', [])
|
|
1236
|
+
]),
|
|
1237
|
+
trigger('dismiss', [
|
|
1238
|
+
transition(':enter', [
|
|
1239
|
+
style({
|
|
1240
|
+
opacity: 0,
|
|
1241
|
+
width: 0
|
|
1242
|
+
}),
|
|
1243
|
+
animate('150ms ease-in', style({
|
|
1244
|
+
opacity: 1,
|
|
1245
|
+
width: '*'
|
|
1246
|
+
}))
|
|
1247
|
+
]),
|
|
1248
|
+
transition(':leave', [
|
|
1249
|
+
animate('150ms ease-in', style({
|
|
1250
|
+
opacity: 0,
|
|
1251
|
+
width: 0
|
|
1252
|
+
}))
|
|
1253
|
+
])
|
|
1254
|
+
])
|
|
1255
|
+
]
|
|
1256
|
+
}]
|
|
1257
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { disabled: [{
|
|
1258
|
+
type: Input
|
|
1259
|
+
}], dismissible: [{
|
|
1260
|
+
type: Input
|
|
1261
|
+
}], displayWith: [{
|
|
1262
|
+
type: Input
|
|
1263
|
+
}], trackWith: [{
|
|
1264
|
+
type: Input
|
|
1265
|
+
}], focusable: [{
|
|
1266
|
+
type: Input
|
|
1267
|
+
}], tokens: [{
|
|
1268
|
+
type: Input
|
|
1269
|
+
}], messageStream: [{
|
|
1270
|
+
type: Input
|
|
1271
|
+
}], focusIndexOverRange: [{
|
|
1272
|
+
type: Output
|
|
1273
|
+
}], focusIndexUnderRange: [{
|
|
1274
|
+
type: Output
|
|
1275
|
+
}], tokenSelected: [{
|
|
1276
|
+
type: Output
|
|
1277
|
+
}], tokensChange: [{
|
|
1278
|
+
type: Output
|
|
1279
|
+
}], tokenComponents: [{
|
|
1280
|
+
type: ViewChildren,
|
|
1281
|
+
args: [SkyTokenComponent]
|
|
1282
|
+
}] } });
|
|
1173
1283
|
|
|
1174
|
-
|
|
1175
|
-
}
|
|
1176
|
-
SkyTokensModule =
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
],
|
|
1182
|
-
|
|
1284
|
+
class SkyTokensModule {
|
|
1285
|
+
}
|
|
1286
|
+
SkyTokensModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTokensModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1287
|
+
SkyTokensModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTokensModule, declarations: [SkyTokenComponent,
|
|
1288
|
+
SkyTokensComponent], imports: [CommonModule,
|
|
1289
|
+
SkyI18nModule,
|
|
1290
|
+
SkyIconModule,
|
|
1291
|
+
SkyIndicatorsResourcesModule], exports: [SkyTokenComponent,
|
|
1292
|
+
SkyTokensComponent] });
|
|
1293
|
+
SkyTokensModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTokensModule, imports: [[
|
|
1183
1294
|
CommonModule,
|
|
1184
1295
|
SkyI18nModule,
|
|
1185
1296
|
SkyIconModule,
|
|
1186
1297
|
SkyIndicatorsResourcesModule
|
|
1187
|
-
]
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1298
|
+
]] });
|
|
1299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyTokensModule, decorators: [{
|
|
1300
|
+
type: NgModule,
|
|
1301
|
+
args: [{
|
|
1302
|
+
declarations: [
|
|
1303
|
+
SkyTokenComponent,
|
|
1304
|
+
SkyTokensComponent
|
|
1305
|
+
],
|
|
1306
|
+
imports: [
|
|
1307
|
+
CommonModule,
|
|
1308
|
+
SkyI18nModule,
|
|
1309
|
+
SkyIconModule,
|
|
1310
|
+
SkyIndicatorsResourcesModule
|
|
1311
|
+
],
|
|
1312
|
+
exports: [
|
|
1313
|
+
SkyTokenComponent,
|
|
1314
|
+
SkyTokensComponent
|
|
1315
|
+
]
|
|
1316
|
+
}]
|
|
1317
|
+
}] });
|
|
1194
1318
|
|
|
1195
|
-
var SkyWaitAdapterService_1;
|
|
1196
1319
|
// Need to add the following to classes which contain static methods.
|
|
1197
1320
|
// See: https://github.com/ng-packagr/ng-packagr/issues/641
|
|
1198
1321
|
/**
|
|
1199
1322
|
* @internal
|
|
1200
1323
|
* @dynamic
|
|
1201
1324
|
*/
|
|
1202
|
-
|
|
1325
|
+
class SkyWaitAdapterService {
|
|
1203
1326
|
constructor(rendererFactory) {
|
|
1204
1327
|
this.rendererFactory = rendererFactory;
|
|
1205
1328
|
this.renderer = this.rendererFactory.createRenderer(undefined, undefined);
|
|
@@ -1223,10 +1346,11 @@ let SkyWaitAdapterService = SkyWaitAdapterService_1 = class SkyWaitAdapterServic
|
|
|
1223
1346
|
this.clearDocumentFocus();
|
|
1224
1347
|
}
|
|
1225
1348
|
if (isFullPage) {
|
|
1226
|
-
|
|
1349
|
+
SkyWaitAdapterService.isPageWaitActive = true;
|
|
1227
1350
|
const endListenerFunc = this.renderer.listen(document.body, 'keydown', (event) => {
|
|
1228
1351
|
/*istanbul ignore else */
|
|
1229
1352
|
if (event.key) {
|
|
1353
|
+
/* istanbul ignore else */
|
|
1230
1354
|
if (event.key.toLowerCase() === 'tab') {
|
|
1231
1355
|
event.target.blur();
|
|
1232
1356
|
event.preventDefault();
|
|
@@ -1236,18 +1360,19 @@ let SkyWaitAdapterService = SkyWaitAdapterService_1 = class SkyWaitAdapterServic
|
|
|
1236
1360
|
}
|
|
1237
1361
|
}
|
|
1238
1362
|
});
|
|
1239
|
-
|
|
1363
|
+
SkyWaitAdapterService.busyElements[waitComponentId] = {
|
|
1240
1364
|
listener: endListenerFunc,
|
|
1241
1365
|
busyEl: undefined
|
|
1242
1366
|
};
|
|
1243
1367
|
}
|
|
1244
1368
|
else {
|
|
1245
1369
|
const endListenerFunc = this.renderer.listen(busyEl, 'focusin', (event) => {
|
|
1370
|
+
/* istanbul ignore else */
|
|
1246
1371
|
if (!isNonBlocking) {
|
|
1247
1372
|
event.preventDefault();
|
|
1248
1373
|
event.stopPropagation();
|
|
1249
1374
|
event.stopImmediatePropagation();
|
|
1250
|
-
if (
|
|
1375
|
+
if (SkyWaitAdapterService.isPageWaitActive) {
|
|
1251
1376
|
this.clearDocumentFocus();
|
|
1252
1377
|
}
|
|
1253
1378
|
else {
|
|
@@ -1258,7 +1383,7 @@ let SkyWaitAdapterService = SkyWaitAdapterService_1 = class SkyWaitAdapterServic
|
|
|
1258
1383
|
}
|
|
1259
1384
|
}
|
|
1260
1385
|
});
|
|
1261
|
-
|
|
1386
|
+
SkyWaitAdapterService.busyElements[waitComponentId] = {
|
|
1262
1387
|
listener: endListenerFunc,
|
|
1263
1388
|
busyEl: busyEl
|
|
1264
1389
|
};
|
|
@@ -1267,11 +1392,11 @@ let SkyWaitAdapterService = SkyWaitAdapterService_1 = class SkyWaitAdapterServic
|
|
|
1267
1392
|
else {
|
|
1268
1393
|
this.renderer.removeAttribute(busyEl, 'aria-busy');
|
|
1269
1394
|
if (isFullPage) {
|
|
1270
|
-
|
|
1395
|
+
SkyWaitAdapterService.isPageWaitActive = false;
|
|
1271
1396
|
}
|
|
1272
|
-
if (waitComponentId in
|
|
1273
|
-
|
|
1274
|
-
delete
|
|
1397
|
+
if (waitComponentId in SkyWaitAdapterService.busyElements) {
|
|
1398
|
+
SkyWaitAdapterService.busyElements[waitComponentId].listener();
|
|
1399
|
+
delete SkyWaitAdapterService.busyElements[waitComponentId];
|
|
1275
1400
|
}
|
|
1276
1401
|
}
|
|
1277
1402
|
}
|
|
@@ -1291,6 +1416,8 @@ let SkyWaitAdapterService = SkyWaitAdapterService_1 = class SkyWaitAdapterServic
|
|
|
1291
1416
|
}
|
|
1292
1417
|
else {
|
|
1293
1418
|
// Try wrapping the navigation
|
|
1419
|
+
/* istanbul ignore next */
|
|
1420
|
+
/* sanity check */
|
|
1294
1421
|
curIndex = modifier > 0 ? 0 : focussable.length - 1;
|
|
1295
1422
|
while (curIndex !== startingIndex &&
|
|
1296
1423
|
focussable[curIndex] &&
|
|
@@ -1330,8 +1457,8 @@ let SkyWaitAdapterService = SkyWaitAdapterService_1 = class SkyWaitAdapterServic
|
|
|
1330
1457
|
if (this.isElementHidden(element)) {
|
|
1331
1458
|
return true;
|
|
1332
1459
|
}
|
|
1333
|
-
for (const key of Object.keys(
|
|
1334
|
-
const parentElement =
|
|
1460
|
+
for (const key of Object.keys(SkyWaitAdapterService.busyElements)) {
|
|
1461
|
+
const parentElement = SkyWaitAdapterService.busyElements[key].busyEl;
|
|
1335
1462
|
if (parentElement && parentElement.contains(element)) {
|
|
1336
1463
|
return true;
|
|
1337
1464
|
}
|
|
@@ -1339,6 +1466,7 @@ let SkyWaitAdapterService = SkyWaitAdapterService_1 = class SkyWaitAdapterServic
|
|
|
1339
1466
|
return false;
|
|
1340
1467
|
}
|
|
1341
1468
|
clearDocumentFocus() {
|
|
1469
|
+
/* istanbul ignore else */
|
|
1342
1470
|
if (document.activeElement && document.activeElement.blur) {
|
|
1343
1471
|
document.activeElement.blur();
|
|
1344
1472
|
}
|
|
@@ -1365,24 +1493,23 @@ let SkyWaitAdapterService = SkyWaitAdapterService_1 = class SkyWaitAdapterServic
|
|
|
1365
1493
|
return this.focussableElements;
|
|
1366
1494
|
}
|
|
1367
1495
|
clearListeners() {
|
|
1368
|
-
|
|
1369
|
-
for (const key of Object.keys(
|
|
1370
|
-
|
|
1371
|
-
delete
|
|
1496
|
+
SkyWaitAdapterService.isPageWaitActive = false;
|
|
1497
|
+
for (const key of Object.keys(SkyWaitAdapterService.busyElements)) {
|
|
1498
|
+
SkyWaitAdapterService.busyElements[key].listener();
|
|
1499
|
+
delete SkyWaitAdapterService.busyElements[key];
|
|
1372
1500
|
}
|
|
1373
1501
|
}
|
|
1374
|
-
}
|
|
1502
|
+
}
|
|
1375
1503
|
SkyWaitAdapterService.isPageWaitActive = false;
|
|
1376
1504
|
SkyWaitAdapterService.busyElements = {};
|
|
1377
|
-
SkyWaitAdapterService
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
], SkyWaitAdapterService);
|
|
1505
|
+
SkyWaitAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitAdapterService, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1506
|
+
SkyWaitAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitAdapterService });
|
|
1507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitAdapterService, decorators: [{
|
|
1508
|
+
type: Injectable
|
|
1509
|
+
}], ctorParameters: function () { return [{ type: i0.RendererFactory2 }]; } });
|
|
1383
1510
|
|
|
1384
1511
|
let nextId = 0;
|
|
1385
|
-
|
|
1512
|
+
class SkyWaitComponent {
|
|
1386
1513
|
constructor(elRef, adapterService, resourceService) {
|
|
1387
1514
|
this.elRef = elRef;
|
|
1388
1515
|
this.adapterService = adapterService;
|
|
@@ -1417,7 +1544,7 @@ let SkyWaitComponent = class SkyWaitComponent {
|
|
|
1417
1544
|
if (value) {
|
|
1418
1545
|
this.adapterService.removeWaitBounds(this.elRef);
|
|
1419
1546
|
}
|
|
1420
|
-
else if (!value && this._isWaiting) {
|
|
1547
|
+
else /* istanbul ignore if: untestable */ if (!value && this._isWaiting) {
|
|
1421
1548
|
this.adapterService.setWaitBounds(this.elRef);
|
|
1422
1549
|
}
|
|
1423
1550
|
this._isFullPage = value;
|
|
@@ -1433,6 +1560,7 @@ let SkyWaitComponent = class SkyWaitComponent {
|
|
|
1433
1560
|
this.ariaLabelStream.next(this.ariaLabel);
|
|
1434
1561
|
return;
|
|
1435
1562
|
}
|
|
1563
|
+
/* istanbul ignore else */
|
|
1436
1564
|
if (this.resourceService) {
|
|
1437
1565
|
const type = (this.isFullPage) ? '_page' : '';
|
|
1438
1566
|
const blocking = (this.isNonBlocking) ? '' : '_blocking';
|
|
@@ -1442,101 +1570,113 @@ let SkyWaitComponent = class SkyWaitComponent {
|
|
|
1442
1570
|
});
|
|
1443
1571
|
}
|
|
1444
1572
|
}
|
|
1445
|
-
}
|
|
1446
|
-
SkyWaitComponent
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
{ type:
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
]
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
]
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
}),
|
|
1472
|
-
__param(2, Optional())
|
|
1473
|
-
], SkyWaitComponent);
|
|
1573
|
+
}
|
|
1574
|
+
SkyWaitComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitComponent, deps: [{ token: i0.ElementRef }, { token: SkyWaitAdapterService }, { token: i1$2.SkyLibResourcesService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1575
|
+
SkyWaitComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyWaitComponent, selector: "sky-wait", inputs: { ariaLabel: "ariaLabel", isWaiting: "isWaiting", isFullPage: "isFullPage", isNonBlocking: "isNonBlocking" }, providers: [
|
|
1576
|
+
SkyWaitAdapterService
|
|
1577
|
+
], ngImport: i0, template: "<div\n class=\"sky-wait-container\"\n>\n <div *ngIf=\"isWaiting\"\n class=\"sky-wait-mask\"\n [attr.aria-label]=\"ariaLabelStream | async\"\n [ngClass]=\"{\n 'sky-wait-mask-loading-fixed': isFullPage,\n 'sky-wait-mask-loading-non-blocking': isNonBlocking,\n 'sky-wait-mask-loading-blocking': !isNonBlocking\n }\"\n >\n <div\n class=\"sky-wait\"\n >\n <div\n class=\"sky-wait-double-bounce1\"\n >\n </div>\n <div\n class=\"sky-wait-double-bounce2\"\n >\n </div>\n </div>\n </div>\n</div>\n\n", styles: [".sky-wait-mask-loading-blocking{margin:auto;position:absolute;top:0;right:0;left:0;bottom:0;background-color:#ffffffb3;z-index:1000}.sky-wait-mask-loading-fixed{position:fixed}.sky-wait{width:50px;height:50px;margin-top:-25px;margin-left:-25px;position:absolute;top:50%;left:50%}.sky-wait-mask-loading-non-blocking{bottom:0}.sky-wait-mask-loading-non-blocking .sky-wait{top:auto;right:auto;bottom:0;left:0;margin-left:auto;margin-right:auto}.sky-wait-double-bounce1,.sky-wait-double-bounce2{width:100%;height:100%;border-radius:50%;background-color:#72bf44;opacity:.6;position:absolute;top:0;left:0;-webkit-animation:sk-bounce 2s infinite ease-in-out;animation:sk-bounce 2s infinite ease-in-out}.sky-wait-double-bounce2{-webkit-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes sk-bounce{0%,to{-webkit-transform:scale(0)}50%{-webkit-transform:scale(1)}}@keyframes sk-bounce{0%,to{transform:scale(0);-webkit-transform:scale(0)}50%{transform:scale(1);-webkit-transform:scale(1)}}.sky-wait-container.sky-wait-active{position:relative}\n"], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i1$1.AsyncPipe } });
|
|
1578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitComponent, decorators: [{
|
|
1579
|
+
type: Component,
|
|
1580
|
+
args: [{
|
|
1581
|
+
selector: 'sky-wait',
|
|
1582
|
+
templateUrl: './wait.component.html',
|
|
1583
|
+
styleUrls: ['./wait.component.scss'],
|
|
1584
|
+
providers: [
|
|
1585
|
+
SkyWaitAdapterService
|
|
1586
|
+
]
|
|
1587
|
+
}]
|
|
1588
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: SkyWaitAdapterService }, { type: i1$2.SkyLibResourcesService, decorators: [{
|
|
1589
|
+
type: Optional
|
|
1590
|
+
}] }]; }, propDecorators: { ariaLabel: [{
|
|
1591
|
+
type: Input
|
|
1592
|
+
}], isWaiting: [{
|
|
1593
|
+
type: Input
|
|
1594
|
+
}], isFullPage: [{
|
|
1595
|
+
type: Input
|
|
1596
|
+
}], isNonBlocking: [{
|
|
1597
|
+
type: Input
|
|
1598
|
+
}] } });
|
|
1474
1599
|
|
|
1475
1600
|
/**
|
|
1476
1601
|
* @internal
|
|
1477
1602
|
*/
|
|
1478
|
-
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1603
|
+
class SkyWaitPageComponent {
|
|
1604
|
+
}
|
|
1605
|
+
SkyWaitPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1606
|
+
SkyWaitPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyWaitPageComponent, selector: "sky-wait-page", inputs: { hasBlockingWait: "hasBlockingWait", hasNonBlockingWait: "hasNonBlockingWait" }, ngImport: i0, template: "<div\n class=\"sky-wait-page\"\n>\n <sky-wait\n [isFullPage]=\"true\"\n [isNonBlocking]=\"true\"\n [isWaiting]=\"hasNonBlockingWait\"\n >\n </sky-wait>\n <sky-wait\n [isFullPage]=\"true\"\n [isWaiting]=\"hasBlockingWait\"\n >\n </sky-wait>\n</div>\n", styles: [".sky-wait-page ::ng-deep .sky-wait-mask-loading-fixed{z-index:2000}\n"], components: [{ type: SkyWaitComponent, selector: "sky-wait", inputs: ["ariaLabel", "isWaiting", "isFullPage", "isNonBlocking"] }] });
|
|
1607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitPageComponent, decorators: [{
|
|
1608
|
+
type: Component,
|
|
1609
|
+
args: [{
|
|
1610
|
+
selector: 'sky-wait-page',
|
|
1611
|
+
templateUrl: './wait-page.component.html',
|
|
1612
|
+
styleUrls: ['./wait-page.component.scss']
|
|
1613
|
+
}]
|
|
1614
|
+
}], propDecorators: { hasBlockingWait: [{
|
|
1615
|
+
type: Input
|
|
1616
|
+
}], hasNonBlockingWait: [{
|
|
1617
|
+
type: Input
|
|
1618
|
+
}] } });
|
|
1493
1619
|
|
|
1494
|
-
|
|
1495
|
-
}
|
|
1496
|
-
SkyWaitModule =
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
imports: [
|
|
1620
|
+
class SkyWaitModule {
|
|
1621
|
+
}
|
|
1622
|
+
SkyWaitModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1623
|
+
SkyWaitModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitModule, declarations: [SkyWaitComponent,
|
|
1624
|
+
SkyWaitPageComponent], imports: [CommonModule,
|
|
1625
|
+
SkyI18nModule,
|
|
1626
|
+
SkyIndicatorsResourcesModule], exports: [SkyWaitComponent] });
|
|
1627
|
+
SkyWaitModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitModule, imports: [[
|
|
1503
1628
|
CommonModule,
|
|
1504
1629
|
SkyI18nModule,
|
|
1505
1630
|
SkyIndicatorsResourcesModule
|
|
1506
|
-
]
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1631
|
+
]] });
|
|
1632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitModule, decorators: [{
|
|
1633
|
+
type: NgModule,
|
|
1634
|
+
args: [{
|
|
1635
|
+
declarations: [
|
|
1636
|
+
SkyWaitComponent,
|
|
1637
|
+
SkyWaitPageComponent
|
|
1638
|
+
],
|
|
1639
|
+
imports: [
|
|
1640
|
+
CommonModule,
|
|
1641
|
+
SkyI18nModule,
|
|
1642
|
+
SkyIndicatorsResourcesModule
|
|
1643
|
+
],
|
|
1644
|
+
exports: [
|
|
1645
|
+
SkyWaitComponent
|
|
1646
|
+
],
|
|
1647
|
+
entryComponents: [
|
|
1648
|
+
SkyWaitPageComponent
|
|
1649
|
+
]
|
|
1650
|
+
}]
|
|
1651
|
+
}] });
|
|
1516
1652
|
|
|
1517
1653
|
/**
|
|
1518
1654
|
* @internal
|
|
1519
1655
|
*/
|
|
1520
|
-
|
|
1656
|
+
class SkyWaitPageAdapterService {
|
|
1521
1657
|
addPageWaitEl() {
|
|
1522
1658
|
document.body.appendChild(document.createElement('sky-wait-page'));
|
|
1523
1659
|
}
|
|
1524
1660
|
removePageWaitEl() {
|
|
1525
|
-
document.
|
|
1661
|
+
const waitEl = document.querySelector('sky-wait-page');
|
|
1662
|
+
if (waitEl) {
|
|
1663
|
+
document.body.removeChild(waitEl);
|
|
1664
|
+
}
|
|
1526
1665
|
}
|
|
1527
|
-
}
|
|
1528
|
-
SkyWaitPageAdapterService.ɵ
|
|
1529
|
-
SkyWaitPageAdapterService =
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1666
|
+
}
|
|
1667
|
+
SkyWaitPageAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitPageAdapterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1668
|
+
SkyWaitPageAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitPageAdapterService, providedIn: 'root' });
|
|
1669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitPageAdapterService, decorators: [{
|
|
1670
|
+
type: Injectable,
|
|
1671
|
+
args: [{
|
|
1672
|
+
providedIn: 'root'
|
|
1673
|
+
}]
|
|
1674
|
+
}] });
|
|
1534
1675
|
|
|
1535
|
-
var SkyWaitService_1;
|
|
1536
1676
|
// Need to add the following to classes which contain static methods.
|
|
1537
1677
|
// See: https://github.com/ng-packagr/ng-packagr/issues/641
|
|
1538
1678
|
// @dynamic
|
|
1539
|
-
|
|
1679
|
+
class SkyWaitService {
|
|
1540
1680
|
constructor(resolver, appRef, waitAdapter, windowSvc) {
|
|
1541
1681
|
this.resolver = resolver;
|
|
1542
1682
|
this.appRef = appRef;
|
|
@@ -1580,10 +1720,10 @@ let SkyWaitService = SkyWaitService_1 = class SkyWaitService {
|
|
|
1580
1720
|
* @internal
|
|
1581
1721
|
*/
|
|
1582
1722
|
dispose() {
|
|
1583
|
-
if (
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1723
|
+
if (SkyWaitService.waitComponent) {
|
|
1724
|
+
SkyWaitService.waitComponent = undefined;
|
|
1725
|
+
SkyWaitService.pageWaitBlockingCount = 0;
|
|
1726
|
+
SkyWaitService.pageWaitNonBlockingCount = 0;
|
|
1587
1727
|
this.waitAdapter.removePageWaitEl();
|
|
1588
1728
|
}
|
|
1589
1729
|
}
|
|
@@ -1608,16 +1748,16 @@ let SkyWaitService = SkyWaitService_1 = class SkyWaitService {
|
|
|
1608
1748
|
}
|
|
1609
1749
|
setWaitComponentProperties(isBlocking) {
|
|
1610
1750
|
if (isBlocking) {
|
|
1611
|
-
|
|
1612
|
-
|
|
1751
|
+
SkyWaitService.waitComponent.hasBlockingWait = true;
|
|
1752
|
+
SkyWaitService.pageWaitBlockingCount++;
|
|
1613
1753
|
}
|
|
1614
1754
|
else {
|
|
1615
|
-
|
|
1616
|
-
|
|
1755
|
+
SkyWaitService.waitComponent.hasNonBlockingWait = true;
|
|
1756
|
+
SkyWaitService.pageWaitNonBlockingCount++;
|
|
1617
1757
|
}
|
|
1618
1758
|
}
|
|
1619
1759
|
beginPageWait(isBlocking) {
|
|
1620
|
-
if (!
|
|
1760
|
+
if (!SkyWaitService.waitComponent) {
|
|
1621
1761
|
/*
|
|
1622
1762
|
Dynamic component creation needs to be done in a timeout to prevent ApplicationRef from
|
|
1623
1763
|
crashing when wait service is called in Angular lifecycle functions.
|
|
@@ -1625,11 +1765,11 @@ let SkyWaitService = SkyWaitService_1 = class SkyWaitService {
|
|
|
1625
1765
|
this.windowSvc.nativeWindow.setTimeout(() => {
|
|
1626
1766
|
// Ensuring here that we recheck this after the setTimeout is over so that we don't clash
|
|
1627
1767
|
// with any other waits that are created.
|
|
1628
|
-
if (!
|
|
1768
|
+
if (!SkyWaitService.waitComponent) {
|
|
1629
1769
|
const factory = this.resolver.resolveComponentFactory(SkyWaitPageComponent);
|
|
1630
1770
|
this.waitAdapter.addPageWaitEl();
|
|
1631
1771
|
const cmpRef = this.appRef.bootstrap(factory);
|
|
1632
|
-
|
|
1772
|
+
SkyWaitService.waitComponent = cmpRef.instance;
|
|
1633
1773
|
}
|
|
1634
1774
|
this.setWaitComponentProperties(isBlocking);
|
|
1635
1775
|
});
|
|
@@ -1644,57 +1784,53 @@ let SkyWaitService = SkyWaitService_1 = class SkyWaitService {
|
|
|
1644
1784
|
before it is dismissed in the event of a race.
|
|
1645
1785
|
*/
|
|
1646
1786
|
this.windowSvc.nativeWindow.setTimeout(() => {
|
|
1647
|
-
if (
|
|
1787
|
+
if (SkyWaitService.waitComponent) {
|
|
1648
1788
|
if (isBlocking) {
|
|
1649
|
-
if (
|
|
1650
|
-
|
|
1789
|
+
if (SkyWaitService.pageWaitBlockingCount > 0) {
|
|
1790
|
+
SkyWaitService.pageWaitBlockingCount--;
|
|
1651
1791
|
}
|
|
1652
|
-
if (
|
|
1653
|
-
|
|
1792
|
+
if (SkyWaitService.pageWaitBlockingCount < 1) {
|
|
1793
|
+
SkyWaitService.waitComponent.hasBlockingWait = false;
|
|
1654
1794
|
}
|
|
1655
1795
|
}
|
|
1656
1796
|
else {
|
|
1657
|
-
if (
|
|
1658
|
-
|
|
1797
|
+
if (SkyWaitService.pageWaitNonBlockingCount > 0) {
|
|
1798
|
+
SkyWaitService.pageWaitNonBlockingCount--;
|
|
1659
1799
|
}
|
|
1660
|
-
if (
|
|
1661
|
-
|
|
1800
|
+
if (SkyWaitService.pageWaitNonBlockingCount < 1) {
|
|
1801
|
+
SkyWaitService.waitComponent.hasNonBlockingWait = false;
|
|
1662
1802
|
}
|
|
1663
1803
|
}
|
|
1664
1804
|
}
|
|
1665
1805
|
});
|
|
1666
1806
|
}
|
|
1667
1807
|
clearPageWait(isBlocking) {
|
|
1668
|
-
if (
|
|
1808
|
+
if (SkyWaitService.waitComponent) {
|
|
1669
1809
|
if (isBlocking) {
|
|
1670
|
-
|
|
1671
|
-
|
|
1810
|
+
SkyWaitService.pageWaitBlockingCount = 0;
|
|
1811
|
+
SkyWaitService.waitComponent.hasBlockingWait = false;
|
|
1672
1812
|
}
|
|
1673
1813
|
else {
|
|
1674
|
-
|
|
1675
|
-
|
|
1814
|
+
SkyWaitService.pageWaitNonBlockingCount = 0;
|
|
1815
|
+
SkyWaitService.waitComponent.hasNonBlockingWait = false;
|
|
1676
1816
|
}
|
|
1677
1817
|
}
|
|
1678
1818
|
}
|
|
1679
|
-
}
|
|
1819
|
+
}
|
|
1680
1820
|
SkyWaitService.pageWaitBlockingCount = 0;
|
|
1681
1821
|
SkyWaitService.pageWaitNonBlockingCount = 0;
|
|
1682
|
-
SkyWaitService
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
Injectable({
|
|
1691
|
-
providedIn: 'root'
|
|
1692
|
-
})
|
|
1693
|
-
], SkyWaitService);
|
|
1822
|
+
SkyWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: SkyWaitPageAdapterService }, { token: i1$3.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1823
|
+
SkyWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitService, providedIn: 'root' });
|
|
1824
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: SkyWaitService, decorators: [{
|
|
1825
|
+
type: Injectable,
|
|
1826
|
+
args: [{
|
|
1827
|
+
providedIn: 'root'
|
|
1828
|
+
}]
|
|
1829
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: SkyWaitPageAdapterService }, { type: i1$3.SkyAppWindowRef }]; } });
|
|
1694
1830
|
|
|
1695
1831
|
/**
|
|
1696
1832
|
* Generated bundle index. Do not edit.
|
|
1697
1833
|
*/
|
|
1698
1834
|
|
|
1699
|
-
export { SkyAlertModule, SkyChevronModule, SkyHelpInlineModule, SkyIconModule, SkyKeyInfoModule, SkyLabelModule, SkyStatusIndicatorModule, SkyTextHighlightModule, SkyTokensMessageType, SkyTokensModule, SkyWaitModule, SkyWaitService, SkyAlertComponent as
|
|
1835
|
+
export { SkyAlertModule, SkyChevronModule, SkyHelpInlineModule, SkyIconModule, SkyKeyInfoModule, SkyLabelModule, SkyStatusIndicatorModule, SkyTextHighlightModule, SkyTokensMessageType, SkyTokensModule, SkyWaitModule, SkyWaitService, SkyAlertComponent as λ1, SkyStatusIndicatorComponent as λ10, SkyTextHighlightDirective as λ11, SkyTokenComponent as λ12, SkyTokensComponent as λ13, SkyWaitComponent as λ14, SkyChevronComponent as λ2, SkyHelpInlineComponent as λ3, SkyIconComponent as λ4, SkyIconStackComponent as λ5, SkyKeyInfoLabelComponent as λ6, SkyKeyInfoValueComponent as λ7, SkyKeyInfoComponent as λ8, SkyLabelComponent as λ9 };
|
|
1700
1836
|
//# sourceMappingURL=skyux-indicators.js.map
|