@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,312 +1,396 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@skyux/i18n'), require('@skyux/theme'), require('@skyux/core'), require('@angular/animations'), require('rxjs'), require('rxjs/operators')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@skyux/indicators', ['exports', '@angular/core', '@angular/common', '@skyux/i18n', '@skyux/theme', '@skyux/core', '@angular/animations', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
-
(global = global || self, factory((global.skyux = global.skyux || {}, global.skyux.indicators = {}), global.ng.core, global.ng.common, global.
|
|
5
|
-
}(this, (function (exports,
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.indicators = {}), global.ng.core, global.ng.common, global.i1, global.i1$1, global.i1$3, global.ng.animations, global.rxjs, global.rxjs.operators));
|
|
5
|
+
}(this, (function (exports, i0, i1$2, i1, i1$1, i1$3, animations, rxjs, operators) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
26
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
27
|
-
return extendStatics(d, b);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
extendStatics(d, b);
|
|
32
|
-
function __() { this.constructor = d; }
|
|
33
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
var __assign = function() {
|
|
37
|
-
__assign = Object.assign || function __assign(t) {
|
|
38
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
39
|
-
s = arguments[i];
|
|
40
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
41
|
-
}
|
|
42
|
-
return t;
|
|
43
|
-
};
|
|
44
|
-
return __assign.apply(this, arguments);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
function __rest(s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function __decorate(decorators, target, key, desc) {
|
|
60
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
61
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
62
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
63
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function __param(paramIndex, decorator) {
|
|
67
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function __metadata(metadataKey, metadataValue) {
|
|
71
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
75
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
76
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
77
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
78
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
79
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
80
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function __generator(thisArg, body) {
|
|
85
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
86
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
87
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
88
|
-
function step(op) {
|
|
89
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
90
|
-
while (_) try {
|
|
91
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
92
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
93
|
-
switch (op[0]) {
|
|
94
|
-
case 0: case 1: t = op; break;
|
|
95
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
96
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
97
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
98
|
-
default:
|
|
99
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
100
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
101
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
102
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
103
|
-
if (t[2]) _.ops.pop();
|
|
104
|
-
_.trys.pop(); continue;
|
|
105
|
-
}
|
|
106
|
-
op = body.call(thisArg, _);
|
|
107
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
108
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function __createBinding(o, m, k, k2) {
|
|
113
|
-
if (k2 === undefined) k2 = k;
|
|
114
|
-
o[k2] = m[k];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function __exportStar(m, exports) {
|
|
118
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function __values(o) {
|
|
122
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
123
|
-
if (m) return m.call(o);
|
|
124
|
-
if (o && typeof o.length === "number") return {
|
|
125
|
-
next: function () {
|
|
126
|
-
if (o && i >= o.length) o = void 0;
|
|
127
|
-
return { value: o && o[i++], done: !o };
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function __read(o, n) {
|
|
134
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
135
|
-
if (!m) return o;
|
|
136
|
-
var i = m.call(o), r, ar = [], e;
|
|
137
|
-
try {
|
|
138
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
139
|
-
}
|
|
140
|
-
catch (error) { e = { error: error }; }
|
|
141
|
-
finally {
|
|
142
|
-
try {
|
|
143
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
144
|
-
}
|
|
145
|
-
finally { if (e) throw e.error; }
|
|
146
|
-
}
|
|
147
|
-
return ar;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
function __spread() {
|
|
151
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
152
|
-
ar = ar.concat(__read(arguments[i]));
|
|
153
|
-
return ar;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function __spreadArrays() {
|
|
157
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
158
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
159
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
160
|
-
r[k] = a[j];
|
|
161
|
-
return r;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
function __await(v) {
|
|
165
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
169
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
170
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
171
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
172
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
173
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
174
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
175
|
-
function fulfill(value) { resume("next", value); }
|
|
176
|
-
function reject(value) { resume("throw", value); }
|
|
177
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function __asyncDelegator(o) {
|
|
181
|
-
var i, p;
|
|
182
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
183
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function __asyncValues(o) {
|
|
187
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
188
|
-
var m = o[Symbol.asyncIterator], i;
|
|
189
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
190
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
191
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function __makeTemplateObject(cooked, raw) {
|
|
195
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
196
|
-
return cooked;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
function __importStar(mod) {
|
|
200
|
-
if (mod && mod.__esModule) return mod;
|
|
201
|
-
var result = {};
|
|
202
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
203
|
-
result.default = mod;
|
|
204
|
-
return result;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
function __importDefault(mod) {
|
|
208
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
|
212
|
-
if (!privateMap.has(receiver)) {
|
|
213
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
214
|
-
}
|
|
215
|
-
return privateMap.get(receiver);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
219
|
-
if (!privateMap.has(receiver)) {
|
|
220
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
221
|
-
}
|
|
222
|
-
privateMap.set(receiver, value);
|
|
223
|
-
return value;
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return e[k];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n['default'] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
224
25
|
}
|
|
225
26
|
|
|
27
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
29
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1);
|
|
30
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
31
|
+
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
35
|
+
* The contents of this file were automatically generated by
|
|
36
|
+
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-indicators' schematic.
|
|
37
|
+
* To update this file, simply rerun the command.
|
|
38
|
+
*/
|
|
39
|
+
var RESOURCES = {
|
|
40
|
+
'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." } },
|
|
41
|
+
};
|
|
226
42
|
var SkyIndicatorsResourcesProvider = /** @class */ (function () {
|
|
227
43
|
function SkyIndicatorsResourcesProvider() {
|
|
228
|
-
this.resources = { "EN-US": { "skyux_alert_close": "Close the alert", "skyux_chevron_collapse": "Collapse", "skyux_chevron_expand": "Expand", "skyux_help_inline_button_title": "Show help content", "skyux_status_indicator_sr_completed": "Completed:", "skyux_status_indicator_sr_error": "Error:", "skyux_status_indicator_sr_important_info": "Important information:", "skyux_status_indicator_sr_warning": "Warning:", "skyux_tokens_dismiss_button_title": "Remove item", "skyux_wait_aria_alt_text": "Loading.", "skyux_wait_blocking_aria_alt_text": "Loading. Please wait.", "skyux_wait_page_aria_alt_text": "Page loading.", "skyux_wait_page_blocking_aria_alt_text": "Page loading. Please wait." } };
|
|
229
44
|
}
|
|
230
45
|
SkyIndicatorsResourcesProvider.prototype.getString = function (localeInfo, name) {
|
|
231
|
-
return
|
|
46
|
+
return i1.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
232
47
|
};
|
|
233
|
-
SkyIndicatorsResourcesProvider = __decorate([
|
|
234
|
-
core.Injectable()
|
|
235
|
-
], SkyIndicatorsResourcesProvider);
|
|
236
48
|
return SkyIndicatorsResourcesProvider;
|
|
237
49
|
}());
|
|
238
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Import into any component library module that needs to use resource strings.
|
|
52
|
+
*/
|
|
239
53
|
var SkyIndicatorsResourcesModule = /** @class */ (function () {
|
|
240
54
|
function SkyIndicatorsResourcesModule() {
|
|
241
55
|
}
|
|
242
|
-
SkyIndicatorsResourcesModule = __decorate([
|
|
243
|
-
core.NgModule({
|
|
244
|
-
providers: [{
|
|
245
|
-
provide: i18n.SKY_LIB_RESOURCES_PROVIDERS,
|
|
246
|
-
useClass: SkyIndicatorsResourcesProvider,
|
|
247
|
-
multi: true
|
|
248
|
-
}]
|
|
249
|
-
})
|
|
250
|
-
], SkyIndicatorsResourcesModule);
|
|
251
56
|
return SkyIndicatorsResourcesModule;
|
|
252
57
|
}());
|
|
58
|
+
SkyIndicatorsResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIndicatorsResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
59
|
+
SkyIndicatorsResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIndicatorsResourcesModule, exports: [i1.SkyI18nModule] });
|
|
60
|
+
SkyIndicatorsResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIndicatorsResourcesModule, providers: [{
|
|
61
|
+
provide: i1.SKY_LIB_RESOURCES_PROVIDERS,
|
|
62
|
+
useClass: SkyIndicatorsResourcesProvider,
|
|
63
|
+
multi: true
|
|
64
|
+
}], imports: [i1.SkyI18nModule] });
|
|
65
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIndicatorsResourcesModule, decorators: [{
|
|
66
|
+
type: i0.NgModule,
|
|
67
|
+
args: [{
|
|
68
|
+
exports: [i1.SkyI18nModule],
|
|
69
|
+
providers: [{
|
|
70
|
+
provide: i1.SKY_LIB_RESOURCES_PROVIDERS,
|
|
71
|
+
useClass: SkyIndicatorsResourcesProvider,
|
|
72
|
+
multi: true
|
|
73
|
+
}]
|
|
74
|
+
}]
|
|
75
|
+
}] });
|
|
253
76
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Specifies the type of icon to display. Specifying `fa` will display a Font Awesome icon,
|
|
258
|
-
* while specifying `skyux` will display an icon from the custom SKY UX icon font. Note that
|
|
259
|
-
* the custom SKY UX icon font is currently in beta.
|
|
260
|
-
*/
|
|
261
|
-
this.iconType = 'fa';
|
|
262
|
-
}
|
|
263
|
-
__decorate([
|
|
264
|
-
core.Input()
|
|
265
|
-
], SkyIconComponent.prototype, "icon", void 0);
|
|
266
|
-
__decorate([
|
|
267
|
-
core.Input()
|
|
268
|
-
], SkyIconComponent.prototype, "iconType", void 0);
|
|
269
|
-
__decorate([
|
|
270
|
-
core.Input()
|
|
271
|
-
], SkyIconComponent.prototype, "size", void 0);
|
|
272
|
-
__decorate([
|
|
273
|
-
core.Input()
|
|
274
|
-
], SkyIconComponent.prototype, "fixedWidth", void 0);
|
|
275
|
-
__decorate([
|
|
276
|
-
core.Input()
|
|
277
|
-
], SkyIconComponent.prototype, "variant", void 0);
|
|
278
|
-
SkyIconComponent = __decorate([
|
|
279
|
-
core.Component({
|
|
280
|
-
selector: 'sky-icon',
|
|
281
|
-
template: "<i *ngIf=\"icon\"\n aria-hidden=\"true\"\n class=\"sky-icon\"\n [ngClass]=\"icon | skyIconClassList:iconType:size:fixedWidth:variant\"\n>\n</i>\n",
|
|
282
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
283
|
-
styles: [":host{display:inline-block}i{display:inherit}"]
|
|
284
|
-
})
|
|
285
|
-
], SkyIconComponent);
|
|
286
|
-
return SkyIconComponent;
|
|
287
|
-
}());
|
|
77
|
+
/*! *****************************************************************************
|
|
78
|
+
Copyright (c) Microsoft Corporation.
|
|
288
79
|
|
|
289
|
-
|
|
290
|
-
|
|
80
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
81
|
+
purpose with or without fee is hereby granted.
|
|
82
|
+
|
|
83
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
84
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
85
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
86
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
87
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
88
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
89
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
90
|
+
***************************************************************************** */
|
|
91
|
+
/* global Reflect, Promise */
|
|
92
|
+
var extendStatics = function (d, b) {
|
|
93
|
+
extendStatics = Object.setPrototypeOf ||
|
|
94
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
95
|
+
function (d, b) { for (var p in b)
|
|
96
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
97
|
+
d[p] = b[p]; };
|
|
98
|
+
return extendStatics(d, b);
|
|
99
|
+
};
|
|
100
|
+
function __extends(d, b) {
|
|
101
|
+
if (typeof b !== "function" && b !== null)
|
|
102
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
103
|
+
extendStatics(d, b);
|
|
104
|
+
function __() { this.constructor = d; }
|
|
105
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
106
|
+
}
|
|
107
|
+
var __assign = function () {
|
|
108
|
+
__assign = Object.assign || function __assign(t) {
|
|
109
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
110
|
+
s = arguments[i];
|
|
111
|
+
for (var p in s)
|
|
112
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
113
|
+
t[p] = s[p];
|
|
114
|
+
}
|
|
115
|
+
return t;
|
|
116
|
+
};
|
|
117
|
+
return __assign.apply(this, arguments);
|
|
118
|
+
};
|
|
119
|
+
function __rest(s, e) {
|
|
120
|
+
var t = {};
|
|
121
|
+
for (var p in s)
|
|
122
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
123
|
+
t[p] = s[p];
|
|
124
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
125
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
126
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
127
|
+
t[p[i]] = s[p[i]];
|
|
128
|
+
}
|
|
129
|
+
return t;
|
|
130
|
+
}
|
|
131
|
+
function __decorate(decorators, target, key, desc) {
|
|
132
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
133
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
134
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
135
|
+
else
|
|
136
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
137
|
+
if (d = decorators[i])
|
|
138
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
139
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
140
|
+
}
|
|
141
|
+
function __param(paramIndex, decorator) {
|
|
142
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
143
|
+
}
|
|
144
|
+
function __metadata(metadataKey, metadataValue) {
|
|
145
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
146
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
147
|
+
}
|
|
148
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
149
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
150
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
151
|
+
function fulfilled(value) { try {
|
|
152
|
+
step(generator.next(value));
|
|
153
|
+
}
|
|
154
|
+
catch (e) {
|
|
155
|
+
reject(e);
|
|
156
|
+
} }
|
|
157
|
+
function rejected(value) { try {
|
|
158
|
+
step(generator["throw"](value));
|
|
159
|
+
}
|
|
160
|
+
catch (e) {
|
|
161
|
+
reject(e);
|
|
162
|
+
} }
|
|
163
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
164
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function __generator(thisArg, body) {
|
|
168
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
169
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
170
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
171
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
172
|
+
function step(op) {
|
|
173
|
+
if (f)
|
|
174
|
+
throw new TypeError("Generator is already executing.");
|
|
175
|
+
while (_)
|
|
176
|
+
try {
|
|
177
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
178
|
+
return t;
|
|
179
|
+
if (y = 0, t)
|
|
180
|
+
op = [op[0] & 2, t.value];
|
|
181
|
+
switch (op[0]) {
|
|
182
|
+
case 0:
|
|
183
|
+
case 1:
|
|
184
|
+
t = op;
|
|
185
|
+
break;
|
|
186
|
+
case 4:
|
|
187
|
+
_.label++;
|
|
188
|
+
return { value: op[1], done: false };
|
|
189
|
+
case 5:
|
|
190
|
+
_.label++;
|
|
191
|
+
y = op[1];
|
|
192
|
+
op = [0];
|
|
193
|
+
continue;
|
|
194
|
+
case 7:
|
|
195
|
+
op = _.ops.pop();
|
|
196
|
+
_.trys.pop();
|
|
197
|
+
continue;
|
|
198
|
+
default:
|
|
199
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
200
|
+
_ = 0;
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
204
|
+
_.label = op[1];
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
208
|
+
_.label = t[1];
|
|
209
|
+
t = op;
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
if (t && _.label < t[2]) {
|
|
213
|
+
_.label = t[2];
|
|
214
|
+
_.ops.push(op);
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
if (t[2])
|
|
218
|
+
_.ops.pop();
|
|
219
|
+
_.trys.pop();
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
op = body.call(thisArg, _);
|
|
223
|
+
}
|
|
224
|
+
catch (e) {
|
|
225
|
+
op = [6, e];
|
|
226
|
+
y = 0;
|
|
227
|
+
}
|
|
228
|
+
finally {
|
|
229
|
+
f = t = 0;
|
|
230
|
+
}
|
|
231
|
+
if (op[0] & 5)
|
|
232
|
+
throw op[1];
|
|
233
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
291
234
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
]
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
235
|
+
}
|
|
236
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
237
|
+
if (k2 === undefined)
|
|
238
|
+
k2 = k;
|
|
239
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
240
|
+
}) : (function (o, m, k, k2) {
|
|
241
|
+
if (k2 === undefined)
|
|
242
|
+
k2 = k;
|
|
243
|
+
o[k2] = m[k];
|
|
244
|
+
});
|
|
245
|
+
function __exportStar(m, o) {
|
|
246
|
+
for (var p in m)
|
|
247
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
248
|
+
__createBinding(o, m, p);
|
|
249
|
+
}
|
|
250
|
+
function __values(o) {
|
|
251
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
252
|
+
if (m)
|
|
253
|
+
return m.call(o);
|
|
254
|
+
if (o && typeof o.length === "number")
|
|
255
|
+
return {
|
|
256
|
+
next: function () {
|
|
257
|
+
if (o && i >= o.length)
|
|
258
|
+
o = void 0;
|
|
259
|
+
return { value: o && o[i++], done: !o };
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
263
|
+
}
|
|
264
|
+
function __read(o, n) {
|
|
265
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
266
|
+
if (!m)
|
|
267
|
+
return o;
|
|
268
|
+
var i = m.call(o), r, ar = [], e;
|
|
269
|
+
try {
|
|
270
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
271
|
+
ar.push(r.value);
|
|
272
|
+
}
|
|
273
|
+
catch (error) {
|
|
274
|
+
e = { error: error };
|
|
275
|
+
}
|
|
276
|
+
finally {
|
|
277
|
+
try {
|
|
278
|
+
if (r && !r.done && (m = i["return"]))
|
|
279
|
+
m.call(i);
|
|
280
|
+
}
|
|
281
|
+
finally {
|
|
282
|
+
if (e)
|
|
283
|
+
throw e.error;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return ar;
|
|
287
|
+
}
|
|
288
|
+
/** @deprecated */
|
|
289
|
+
function __spread() {
|
|
290
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
291
|
+
ar = ar.concat(__read(arguments[i]));
|
|
292
|
+
return ar;
|
|
293
|
+
}
|
|
294
|
+
/** @deprecated */
|
|
295
|
+
function __spreadArrays() {
|
|
296
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
297
|
+
s += arguments[i].length;
|
|
298
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
299
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
300
|
+
r[k] = a[j];
|
|
301
|
+
return r;
|
|
302
|
+
}
|
|
303
|
+
function __spreadArray(to, from, pack) {
|
|
304
|
+
if (pack || arguments.length === 2)
|
|
305
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
306
|
+
if (ar || !(i in from)) {
|
|
307
|
+
if (!ar)
|
|
308
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
309
|
+
ar[i] = from[i];
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
313
|
+
}
|
|
314
|
+
function __await(v) {
|
|
315
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
316
|
+
}
|
|
317
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
318
|
+
if (!Symbol.asyncIterator)
|
|
319
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
320
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
321
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
322
|
+
function verb(n) { if (g[n])
|
|
323
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
324
|
+
function resume(n, v) { try {
|
|
325
|
+
step(g[n](v));
|
|
326
|
+
}
|
|
327
|
+
catch (e) {
|
|
328
|
+
settle(q[0][3], e);
|
|
329
|
+
} }
|
|
330
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
331
|
+
function fulfill(value) { resume("next", value); }
|
|
332
|
+
function reject(value) { resume("throw", value); }
|
|
333
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
334
|
+
resume(q[0][0], q[0][1]); }
|
|
335
|
+
}
|
|
336
|
+
function __asyncDelegator(o) {
|
|
337
|
+
var i, p;
|
|
338
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
339
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
340
|
+
}
|
|
341
|
+
function __asyncValues(o) {
|
|
342
|
+
if (!Symbol.asyncIterator)
|
|
343
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
344
|
+
var m = o[Symbol.asyncIterator], i;
|
|
345
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
346
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
347
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
348
|
+
}
|
|
349
|
+
function __makeTemplateObject(cooked, raw) {
|
|
350
|
+
if (Object.defineProperty) {
|
|
351
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
352
|
+
}
|
|
353
|
+
else {
|
|
354
|
+
cooked.raw = raw;
|
|
355
|
+
}
|
|
356
|
+
return cooked;
|
|
357
|
+
}
|
|
358
|
+
;
|
|
359
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
360
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
361
|
+
}) : function (o, v) {
|
|
362
|
+
o["default"] = v;
|
|
363
|
+
};
|
|
364
|
+
function __importStar(mod) {
|
|
365
|
+
if (mod && mod.__esModule)
|
|
366
|
+
return mod;
|
|
367
|
+
var result = {};
|
|
368
|
+
if (mod != null)
|
|
369
|
+
for (var k in mod)
|
|
370
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
371
|
+
__createBinding(result, mod, k);
|
|
372
|
+
__setModuleDefault(result, mod);
|
|
373
|
+
return result;
|
|
374
|
+
}
|
|
375
|
+
function __importDefault(mod) {
|
|
376
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
377
|
+
}
|
|
378
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
379
|
+
if (kind === "a" && !f)
|
|
380
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
381
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
382
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
383
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
384
|
+
}
|
|
385
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
386
|
+
if (kind === "m")
|
|
387
|
+
throw new TypeError("Private method is not writable");
|
|
388
|
+
if (kind === "a" && !f)
|
|
389
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
390
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
391
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
392
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
393
|
+
}
|
|
310
394
|
|
|
311
395
|
/**
|
|
312
396
|
* @internal
|
|
@@ -347,17 +431,16 @@
|
|
|
347
431
|
// Fall back to the icon name as-is.
|
|
348
432
|
return iconName;
|
|
349
433
|
};
|
|
350
|
-
SkyIconResolverService.ctorParameters = function () { return [
|
|
351
|
-
{ type: theme.SkyThemeIconManifestService }
|
|
352
|
-
]; };
|
|
353
|
-
SkyIconResolverService.ɵprov = core.ɵɵdefineInjectable({ factory: function SkyIconResolverService_Factory() { return new SkyIconResolverService(core.ɵɵinject(theme.SkyThemeIconManifestService)); }, token: SkyIconResolverService, providedIn: "root" });
|
|
354
|
-
SkyIconResolverService = __decorate([
|
|
355
|
-
core.Injectable({
|
|
356
|
-
providedIn: 'root'
|
|
357
|
-
})
|
|
358
|
-
], SkyIconResolverService);
|
|
359
434
|
return SkyIconResolverService;
|
|
360
435
|
}());
|
|
436
|
+
SkyIconResolverService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconResolverService, deps: [{ token: i1__namespace.SkyThemeIconManifestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
437
|
+
SkyIconResolverService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconResolverService, providedIn: 'root' });
|
|
438
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconResolverService, decorators: [{
|
|
439
|
+
type: i0.Injectable,
|
|
440
|
+
args: [{
|
|
441
|
+
providedIn: 'root'
|
|
442
|
+
}]
|
|
443
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.SkyThemeIconManifestService }]; } });
|
|
361
444
|
|
|
362
445
|
/**
|
|
363
446
|
* @internal
|
|
@@ -383,39 +466,105 @@
|
|
|
383
466
|
}
|
|
384
467
|
return classList;
|
|
385
468
|
};
|
|
386
|
-
SkyIconClassListPipe.ctorParameters = function () { return [
|
|
387
|
-
{ type: SkyIconResolverService }
|
|
388
|
-
]; };
|
|
389
|
-
SkyIconClassListPipe = __decorate([
|
|
390
|
-
core.Pipe({
|
|
391
|
-
name: 'skyIconClassList'
|
|
392
|
-
})
|
|
393
|
-
], SkyIconClassListPipe);
|
|
394
469
|
return SkyIconClassListPipe;
|
|
395
470
|
}());
|
|
471
|
+
SkyIconClassListPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconClassListPipe, deps: [{ token: SkyIconResolverService }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
472
|
+
SkyIconClassListPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconClassListPipe, name: "skyIconClassList" });
|
|
473
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconClassListPipe, decorators: [{
|
|
474
|
+
type: i0.Pipe,
|
|
475
|
+
args: [{
|
|
476
|
+
name: 'skyIconClassList'
|
|
477
|
+
}]
|
|
478
|
+
}], ctorParameters: function () { return [{ type: SkyIconResolverService }]; } });
|
|
479
|
+
|
|
480
|
+
var SkyIconComponent = /** @class */ (function () {
|
|
481
|
+
function SkyIconComponent() {
|
|
482
|
+
/**
|
|
483
|
+
* Specifies the type of icon to display. Specifying `fa` will display a Font Awesome icon,
|
|
484
|
+
* while specifying `skyux` will display an icon from the custom SKY UX icon font. Note that
|
|
485
|
+
* the custom SKY UX icon font is currently in beta.
|
|
486
|
+
*/
|
|
487
|
+
this.iconType = 'fa';
|
|
488
|
+
}
|
|
489
|
+
return SkyIconComponent;
|
|
490
|
+
}());
|
|
491
|
+
SkyIconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
492
|
+
SkyIconComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "skyIconClassList": SkyIconClassListPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
493
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconComponent, decorators: [{
|
|
494
|
+
type: i0.Component,
|
|
495
|
+
args: [{
|
|
496
|
+
selector: 'sky-icon',
|
|
497
|
+
templateUrl: './icon.component.html',
|
|
498
|
+
styleUrls: ['./icon.component.scss'],
|
|
499
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
500
|
+
}]
|
|
501
|
+
}], propDecorators: { icon: [{
|
|
502
|
+
type: i0.Input
|
|
503
|
+
}], iconType: [{
|
|
504
|
+
type: i0.Input
|
|
505
|
+
}], size: [{
|
|
506
|
+
type: i0.Input
|
|
507
|
+
}], fixedWidth: [{
|
|
508
|
+
type: i0.Input
|
|
509
|
+
}], variant: [{
|
|
510
|
+
type: i0.Input
|
|
511
|
+
}] } });
|
|
512
|
+
|
|
513
|
+
var SkyIconStackComponent = /** @class */ (function () {
|
|
514
|
+
function SkyIconStackComponent() {
|
|
515
|
+
}
|
|
516
|
+
return SkyIconStackComponent;
|
|
517
|
+
}());
|
|
518
|
+
SkyIconStackComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconStackComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
519
|
+
SkyIconStackComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyIconStackComponent, selector: "sky-icon-stack", inputs: { size: "size", baseIcon: "baseIcon", topIcon: "topIcon" }, ngImport: i0__namespace, 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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyIconClassList": SkyIconClassListPipe } });
|
|
520
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconStackComponent, decorators: [{
|
|
521
|
+
type: i0.Component,
|
|
522
|
+
args: [{
|
|
523
|
+
selector: 'sky-icon-stack',
|
|
524
|
+
templateUrl: './icon-stack.component.html',
|
|
525
|
+
styleUrls: ['./icon-stack.component.scss']
|
|
526
|
+
}]
|
|
527
|
+
}], propDecorators: { size: [{
|
|
528
|
+
type: i0.Input
|
|
529
|
+
}], baseIcon: [{
|
|
530
|
+
type: i0.Input
|
|
531
|
+
}], topIcon: [{
|
|
532
|
+
type: i0.Input
|
|
533
|
+
}] } });
|
|
396
534
|
|
|
397
535
|
var SkyIconModule = /** @class */ (function () {
|
|
398
536
|
function SkyIconModule() {
|
|
399
537
|
}
|
|
400
|
-
SkyIconModule = __decorate([
|
|
401
|
-
core.NgModule({
|
|
402
|
-
declarations: [
|
|
403
|
-
SkyIconClassListPipe,
|
|
404
|
-
SkyIconComponent,
|
|
405
|
-
SkyIconStackComponent
|
|
406
|
-
],
|
|
407
|
-
imports: [
|
|
408
|
-
common.CommonModule,
|
|
409
|
-
theme.SkyThemeIconManifestModule
|
|
410
|
-
],
|
|
411
|
-
exports: [
|
|
412
|
-
SkyIconComponent,
|
|
413
|
-
SkyIconStackComponent
|
|
414
|
-
]
|
|
415
|
-
})
|
|
416
|
-
], SkyIconModule);
|
|
417
538
|
return SkyIconModule;
|
|
418
539
|
}());
|
|
540
|
+
SkyIconModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
541
|
+
SkyIconModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconModule, declarations: [SkyIconClassListPipe,
|
|
542
|
+
SkyIconComponent,
|
|
543
|
+
SkyIconStackComponent], imports: [i1$2.CommonModule,
|
|
544
|
+
i1$1.SkyThemeIconManifestModule], exports: [SkyIconComponent,
|
|
545
|
+
SkyIconStackComponent] });
|
|
546
|
+
SkyIconModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconModule, imports: [[
|
|
547
|
+
i1$2.CommonModule,
|
|
548
|
+
i1$1.SkyThemeIconManifestModule
|
|
549
|
+
]] });
|
|
550
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyIconModule, decorators: [{
|
|
551
|
+
type: i0.NgModule,
|
|
552
|
+
args: [{
|
|
553
|
+
declarations: [
|
|
554
|
+
SkyIconClassListPipe,
|
|
555
|
+
SkyIconComponent,
|
|
556
|
+
SkyIconStackComponent
|
|
557
|
+
],
|
|
558
|
+
imports: [
|
|
559
|
+
i1$2.CommonModule,
|
|
560
|
+
i1$1.SkyThemeIconManifestModule
|
|
561
|
+
],
|
|
562
|
+
exports: [
|
|
563
|
+
SkyIconComponent,
|
|
564
|
+
SkyIconStackComponent
|
|
565
|
+
]
|
|
566
|
+
}]
|
|
567
|
+
}] });
|
|
419
568
|
|
|
420
569
|
/**
|
|
421
570
|
* @internl
|
|
@@ -467,7 +616,7 @@
|
|
|
467
616
|
/**
|
|
468
617
|
* Fires when users close the alert.
|
|
469
618
|
*/
|
|
470
|
-
this.closedChange = new
|
|
619
|
+
this.closedChange = new i0.EventEmitter();
|
|
471
620
|
}
|
|
472
621
|
Object.defineProperty(SkyAlertComponent.prototype, "alertType", {
|
|
473
622
|
get: function () {
|
|
@@ -482,7 +631,7 @@
|
|
|
482
631
|
this._alertType = value;
|
|
483
632
|
this.updateAlertIcon();
|
|
484
633
|
},
|
|
485
|
-
enumerable:
|
|
634
|
+
enumerable: false,
|
|
486
635
|
configurable: true
|
|
487
636
|
});
|
|
488
637
|
SkyAlertComponent.prototype.ngOnInit = function () {
|
|
@@ -497,150 +646,189 @@
|
|
|
497
646
|
this.alertBaseIcon = indicatorIcon.modernThemeBaseIcon;
|
|
498
647
|
this.alertTopIcon = indicatorIcon.modernThemeTopIcon;
|
|
499
648
|
};
|
|
500
|
-
__decorate([
|
|
501
|
-
core.Input()
|
|
502
|
-
], SkyAlertComponent.prototype, "alertType", null);
|
|
503
|
-
__decorate([
|
|
504
|
-
core.Input()
|
|
505
|
-
], SkyAlertComponent.prototype, "closeable", void 0);
|
|
506
|
-
__decorate([
|
|
507
|
-
core.Input()
|
|
508
|
-
], SkyAlertComponent.prototype, "closed", void 0);
|
|
509
|
-
__decorate([
|
|
510
|
-
core.Output()
|
|
511
|
-
], SkyAlertComponent.prototype, "closedChange", void 0);
|
|
512
|
-
SkyAlertComponent = __decorate([
|
|
513
|
-
core.Component({
|
|
514
|
-
selector: 'sky-alert',
|
|
515
|
-
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",
|
|
516
|
-
styles: ["@charset \"UTF-8\";.sky-alert{padding:0 10px;margin-bottom:20px;border-left:30px solid;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:rgba(33,35,39,.8);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:\"\uF06A\";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:\"\uF00C\";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:\"\uF071\";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:\"\uF071\";font-family:FontAwesome;margin-left:-32px;margin-right:19px;color:#fff}.sky-alert-close{cursor:pointer;font-weight:700;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}.sky-theme-modern .sky-alert,:host-context(.sky-theme-modern) .sky-alert{border-left-width:7px}.sky-theme-modern .sky-alert .sky-alert-content,:host-context(.sky-theme-modern) .sky-alert .sky-alert-content{padding:15px}.sky-theme-modern .sky-alert.sky-alert-info,:host-context(.sky-theme-modern) .sky-alert.sky-alert-info{background-color:#c1e8fb}.sky-theme-modern .sky-alert-danger:before,.sky-theme-modern .sky-alert-info:before,.sky-theme-modern .sky-alert-success:before,.sky-theme-modern .sky-alert-warning:before,:host-context(.sky-theme-modern) .sky-alert-danger:before,: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{display:none}.sky-theme-modern .sky-alert-info .sky-alert-icon-theme-modern,:host-context(.sky-theme-modern) .sky-alert-info .sky-alert-icon-theme-modern{color:#00b4f1}.sky-theme-modern .sky-alert-success .sky-alert-icon-theme-modern,:host-context(.sky-theme-modern) .sky-alert-success .sky-alert-icon-theme-modern{color:#72bf44}.sky-theme-modern .sky-alert-warning .sky-alert-icon-theme-modern,:host-context(.sky-theme-modern) .sky-alert-warning .sky-alert-icon-theme-modern{color:#fbb034}.sky-theme-modern .sky-alert-danger .sky-alert-icon-theme-modern,:host-context(.sky-theme-modern) .sky-alert-danger .sky-alert-icon-theme-modern{color:#ef4044}.sky-theme-modern .sky-alert-icon-theme-modern,:host-context(.sky-theme-modern) .sky-alert-icon-theme-modern{display:block}.sky-theme-modern .sky-alert-close-icon-theme-default,:host-context(.sky-theme-modern) .sky-alert-close-icon-theme-default{display:none}.sky-theme-modern .sky-alert-close-icon-theme-modern,:host-context(.sky-theme-modern) .sky-alert-close-icon-theme-modern{display:inline}"]
|
|
517
|
-
})
|
|
518
|
-
], SkyAlertComponent);
|
|
519
649
|
return SkyAlertComponent;
|
|
520
650
|
}());
|
|
651
|
+
SkyAlertComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyAlertComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
652
|
+
SkyAlertComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "skyLibResources": i1__namespace$2.SkyLibResourcesPipe } });
|
|
653
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyAlertComponent, decorators: [{
|
|
654
|
+
type: i0.Component,
|
|
655
|
+
args: [{
|
|
656
|
+
selector: 'sky-alert',
|
|
657
|
+
styleUrls: ['./alert.component.scss'],
|
|
658
|
+
templateUrl: './alert.component.html'
|
|
659
|
+
}]
|
|
660
|
+
}], propDecorators: { alertType: [{
|
|
661
|
+
type: i0.Input
|
|
662
|
+
}], closeable: [{
|
|
663
|
+
type: i0.Input
|
|
664
|
+
}], closed: [{
|
|
665
|
+
type: i0.Input
|
|
666
|
+
}], closedChange: [{
|
|
667
|
+
type: i0.Output
|
|
668
|
+
}] } });
|
|
521
669
|
|
|
522
670
|
var SkyAlertModule = /** @class */ (function () {
|
|
523
671
|
function SkyAlertModule() {
|
|
524
672
|
}
|
|
525
|
-
SkyAlertModule = __decorate([
|
|
526
|
-
core.NgModule({
|
|
527
|
-
declarations: [
|
|
528
|
-
SkyAlertComponent
|
|
529
|
-
],
|
|
530
|
-
imports: [
|
|
531
|
-
common.CommonModule,
|
|
532
|
-
i18n.SkyI18nModule,
|
|
533
|
-
SkyIconModule,
|
|
534
|
-
SkyIndicatorsResourcesModule,
|
|
535
|
-
theme.SkyThemeModule
|
|
536
|
-
],
|
|
537
|
-
exports: [
|
|
538
|
-
SkyAlertComponent
|
|
539
|
-
]
|
|
540
|
-
})
|
|
541
|
-
], SkyAlertModule);
|
|
542
673
|
return SkyAlertModule;
|
|
543
674
|
}());
|
|
675
|
+
SkyAlertModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyAlertModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
676
|
+
SkyAlertModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyAlertModule, declarations: [SkyAlertComponent], imports: [i1$2.CommonModule,
|
|
677
|
+
i1.SkyI18nModule,
|
|
678
|
+
SkyIconModule,
|
|
679
|
+
SkyIndicatorsResourcesModule,
|
|
680
|
+
i1$1.SkyThemeModule], exports: [SkyAlertComponent] });
|
|
681
|
+
SkyAlertModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyAlertModule, imports: [[
|
|
682
|
+
i1$2.CommonModule,
|
|
683
|
+
i1.SkyI18nModule,
|
|
684
|
+
SkyIconModule,
|
|
685
|
+
SkyIndicatorsResourcesModule,
|
|
686
|
+
i1$1.SkyThemeModule
|
|
687
|
+
]] });
|
|
688
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyAlertModule, decorators: [{
|
|
689
|
+
type: i0.NgModule,
|
|
690
|
+
args: [{
|
|
691
|
+
declarations: [
|
|
692
|
+
SkyAlertComponent
|
|
693
|
+
],
|
|
694
|
+
imports: [
|
|
695
|
+
i1$2.CommonModule,
|
|
696
|
+
i1.SkyI18nModule,
|
|
697
|
+
SkyIconModule,
|
|
698
|
+
SkyIndicatorsResourcesModule,
|
|
699
|
+
i1$1.SkyThemeModule
|
|
700
|
+
],
|
|
701
|
+
exports: [
|
|
702
|
+
SkyAlertComponent
|
|
703
|
+
]
|
|
704
|
+
}]
|
|
705
|
+
}] });
|
|
544
706
|
|
|
545
707
|
var SkyChevronComponent = /** @class */ (function () {
|
|
546
708
|
function SkyChevronComponent() {
|
|
547
|
-
this.directionChange = new
|
|
709
|
+
this.directionChange = new i0.EventEmitter();
|
|
548
710
|
this.direction = 'up';
|
|
549
711
|
this.disabled = false;
|
|
550
712
|
}
|
|
551
713
|
SkyChevronComponent.prototype.chevronClick = function (event) {
|
|
552
|
-
|
|
553
|
-
event.stopPropagation();
|
|
554
|
-
}
|
|
714
|
+
event.stopPropagation();
|
|
555
715
|
this.direction = this.direction === 'up' ? 'down' : 'up';
|
|
556
716
|
this.directionChange.emit(this.direction);
|
|
557
717
|
};
|
|
558
|
-
__decorate([
|
|
559
|
-
core.Output()
|
|
560
|
-
], SkyChevronComponent.prototype, "directionChange", void 0);
|
|
561
|
-
__decorate([
|
|
562
|
-
core.Input()
|
|
563
|
-
], SkyChevronComponent.prototype, "direction", void 0);
|
|
564
|
-
__decorate([
|
|
565
|
-
core.Input()
|
|
566
|
-
], SkyChevronComponent.prototype, "disabled", void 0);
|
|
567
|
-
SkyChevronComponent = __decorate([
|
|
568
|
-
core.Component({
|
|
569
|
-
selector: 'sky-chevron',
|
|
570
|
-
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",
|
|
571
|
-
styles: ["button{background:#add8e6}.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;display:inline-block;height:10px;position:absolute;top:10px;transition:transform 250ms,left 250ms;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)}.sky-theme-modern .sky-chevron,:host-context(.sky-theme-modern) .sky-chevron{height:26px;width:26px}.sky-theme-modern .sky-chevron-part,:host-context(.sky-theme-modern) .sky-chevron-part{background:#686c73;border:none;height:2px;width:11px;top:13px}.sky-theme-modern .chevron-glyph-container,:host-context(.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,:host-context(.sky-theme-modern) .sky-chevron-left{border-radius:1px 0 0 1px;left:4px}.sky-theme-modern .sky-chevron-right,:host-context(.sky-theme-modern) .sky-chevron-right{border-radius:0 1px 1px 0;left:10.5px}"]
|
|
572
|
-
})
|
|
573
|
-
], SkyChevronComponent);
|
|
574
718
|
return SkyChevronComponent;
|
|
575
719
|
}());
|
|
720
|
+
SkyChevronComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyChevronComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
721
|
+
SkyChevronComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyChevronComponent, selector: "sky-chevron", inputs: { direction: "direction", disabled: "disabled" }, outputs: { directionChange: "directionChange" }, ngImport: i0__namespace, 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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i1__namespace.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }, { type: i1__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i1__namespace$2.SkyLibResourcesPipe } });
|
|
722
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyChevronComponent, decorators: [{
|
|
723
|
+
type: i0.Component,
|
|
724
|
+
args: [{
|
|
725
|
+
selector: 'sky-chevron',
|
|
726
|
+
styleUrls: ['./chevron.component.scss'],
|
|
727
|
+
templateUrl: './chevron.component.html'
|
|
728
|
+
}]
|
|
729
|
+
}], propDecorators: { directionChange: [{
|
|
730
|
+
type: i0.Output
|
|
731
|
+
}], direction: [{
|
|
732
|
+
type: i0.Input
|
|
733
|
+
}], disabled: [{
|
|
734
|
+
type: i0.Input
|
|
735
|
+
}] } });
|
|
576
736
|
|
|
577
737
|
var SkyChevronModule = /** @class */ (function () {
|
|
578
738
|
function SkyChevronModule() {
|
|
579
739
|
}
|
|
580
|
-
SkyChevronModule = __decorate([
|
|
581
|
-
core.NgModule({
|
|
582
|
-
declarations: [
|
|
583
|
-
SkyChevronComponent
|
|
584
|
-
],
|
|
585
|
-
imports: [
|
|
586
|
-
common.CommonModule,
|
|
587
|
-
i18n.SkyI18nModule,
|
|
588
|
-
SkyIndicatorsResourcesModule,
|
|
589
|
-
theme.SkyThemeModule
|
|
590
|
-
],
|
|
591
|
-
exports: [
|
|
592
|
-
SkyChevronComponent
|
|
593
|
-
]
|
|
594
|
-
})
|
|
595
|
-
], SkyChevronModule);
|
|
596
740
|
return SkyChevronModule;
|
|
597
741
|
}());
|
|
742
|
+
SkyChevronModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyChevronModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
743
|
+
SkyChevronModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyChevronModule, declarations: [SkyChevronComponent], imports: [i1$2.CommonModule,
|
|
744
|
+
i1.SkyI18nModule,
|
|
745
|
+
SkyIndicatorsResourcesModule,
|
|
746
|
+
i1$1.SkyThemeModule], exports: [SkyChevronComponent] });
|
|
747
|
+
SkyChevronModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyChevronModule, imports: [[
|
|
748
|
+
i1$2.CommonModule,
|
|
749
|
+
i1.SkyI18nModule,
|
|
750
|
+
SkyIndicatorsResourcesModule,
|
|
751
|
+
i1$1.SkyThemeModule
|
|
752
|
+
]] });
|
|
753
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyChevronModule, decorators: [{
|
|
754
|
+
type: i0.NgModule,
|
|
755
|
+
args: [{
|
|
756
|
+
declarations: [
|
|
757
|
+
SkyChevronComponent
|
|
758
|
+
],
|
|
759
|
+
imports: [
|
|
760
|
+
i1$2.CommonModule,
|
|
761
|
+
i1.SkyI18nModule,
|
|
762
|
+
SkyIndicatorsResourcesModule,
|
|
763
|
+
i1$1.SkyThemeModule
|
|
764
|
+
],
|
|
765
|
+
exports: [
|
|
766
|
+
SkyChevronComponent
|
|
767
|
+
]
|
|
768
|
+
}]
|
|
769
|
+
}] });
|
|
598
770
|
|
|
599
771
|
var SkyHelpInlineComponent = /** @class */ (function () {
|
|
600
772
|
function SkyHelpInlineComponent() {
|
|
601
773
|
/**
|
|
602
774
|
* Fires when the user clicks the help inline button.
|
|
603
775
|
*/
|
|
604
|
-
this.actionClick = new
|
|
776
|
+
this.actionClick = new i0.EventEmitter();
|
|
605
777
|
}
|
|
606
778
|
SkyHelpInlineComponent.prototype.onClick = function () {
|
|
607
779
|
this.actionClick.emit();
|
|
608
780
|
};
|
|
609
|
-
__decorate([
|
|
610
|
-
core.Output()
|
|
611
|
-
], SkyHelpInlineComponent.prototype, "actionClick", void 0);
|
|
612
|
-
SkyHelpInlineComponent = __decorate([
|
|
613
|
-
core.Component({
|
|
614
|
-
selector: 'sky-help-inline',
|
|
615
|
-
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",
|
|
616
|
-
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 150ms;cursor:pointer}.sky-theme-modern .sky-help-inline ::ng-deep .fa-stack-2x,:host-context(.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,:host-context(.sky-theme-modern) .sky-help-inline ::ng-deep .fa-stack-1x{font-size:10px}"]
|
|
617
|
-
})
|
|
618
|
-
], SkyHelpInlineComponent);
|
|
619
781
|
return SkyHelpInlineComponent;
|
|
620
782
|
}());
|
|
783
|
+
SkyHelpInlineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyHelpInlineComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
784
|
+
SkyHelpInlineComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyHelpInlineComponent, selector: "sky-help-inline", outputs: { actionClick: "actionClick" }, ngImport: i0__namespace, 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__namespace.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }], pipes: { "skyLibResources": i1__namespace$2.SkyLibResourcesPipe } });
|
|
785
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyHelpInlineComponent, decorators: [{
|
|
786
|
+
type: i0.Component,
|
|
787
|
+
args: [{
|
|
788
|
+
selector: 'sky-help-inline',
|
|
789
|
+
templateUrl: './help-inline.component.html',
|
|
790
|
+
styleUrls: ['./help-inline.component.scss']
|
|
791
|
+
}]
|
|
792
|
+
}], propDecorators: { actionClick: [{
|
|
793
|
+
type: i0.Output
|
|
794
|
+
}] } });
|
|
621
795
|
|
|
622
796
|
var SkyHelpInlineModule = /** @class */ (function () {
|
|
623
797
|
function SkyHelpInlineModule() {
|
|
624
798
|
}
|
|
625
|
-
SkyHelpInlineModule = __decorate([
|
|
626
|
-
core.NgModule({
|
|
627
|
-
declarations: [
|
|
628
|
-
SkyHelpInlineComponent
|
|
629
|
-
],
|
|
630
|
-
imports: [
|
|
631
|
-
common.CommonModule,
|
|
632
|
-
i18n.SkyI18nModule,
|
|
633
|
-
SkyIconModule,
|
|
634
|
-
SkyIndicatorsResourcesModule,
|
|
635
|
-
theme.SkyThemeModule
|
|
636
|
-
],
|
|
637
|
-
exports: [
|
|
638
|
-
SkyHelpInlineComponent
|
|
639
|
-
]
|
|
640
|
-
})
|
|
641
|
-
], SkyHelpInlineModule);
|
|
642
799
|
return SkyHelpInlineModule;
|
|
643
800
|
}());
|
|
801
|
+
SkyHelpInlineModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyHelpInlineModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
802
|
+
SkyHelpInlineModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyHelpInlineModule, declarations: [SkyHelpInlineComponent], imports: [i1$2.CommonModule,
|
|
803
|
+
i1.SkyI18nModule,
|
|
804
|
+
SkyIconModule,
|
|
805
|
+
SkyIndicatorsResourcesModule,
|
|
806
|
+
i1$1.SkyThemeModule], exports: [SkyHelpInlineComponent] });
|
|
807
|
+
SkyHelpInlineModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyHelpInlineModule, imports: [[
|
|
808
|
+
i1$2.CommonModule,
|
|
809
|
+
i1.SkyI18nModule,
|
|
810
|
+
SkyIconModule,
|
|
811
|
+
SkyIndicatorsResourcesModule,
|
|
812
|
+
i1$1.SkyThemeModule
|
|
813
|
+
]] });
|
|
814
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyHelpInlineModule, decorators: [{
|
|
815
|
+
type: i0.NgModule,
|
|
816
|
+
args: [{
|
|
817
|
+
declarations: [
|
|
818
|
+
SkyHelpInlineComponent
|
|
819
|
+
],
|
|
820
|
+
imports: [
|
|
821
|
+
i1$2.CommonModule,
|
|
822
|
+
i1.SkyI18nModule,
|
|
823
|
+
SkyIconModule,
|
|
824
|
+
SkyIndicatorsResourcesModule,
|
|
825
|
+
i1$1.SkyThemeModule
|
|
826
|
+
],
|
|
827
|
+
exports: [
|
|
828
|
+
SkyHelpInlineComponent
|
|
829
|
+
]
|
|
830
|
+
}]
|
|
831
|
+
}] });
|
|
644
832
|
|
|
645
833
|
/**
|
|
646
834
|
* Specifies a label to display in smaller, plain text under or beside the value.
|
|
@@ -649,14 +837,17 @@
|
|
|
649
837
|
var SkyKeyInfoLabelComponent = /** @class */ (function () {
|
|
650
838
|
function SkyKeyInfoLabelComponent() {
|
|
651
839
|
}
|
|
652
|
-
SkyKeyInfoLabelComponent = __decorate([
|
|
653
|
-
core.Component({
|
|
654
|
-
selector: 'sky-key-info-label',
|
|
655
|
-
template: '<ng-content></ng-content>'
|
|
656
|
-
})
|
|
657
|
-
], SkyKeyInfoLabelComponent);
|
|
658
840
|
return SkyKeyInfoLabelComponent;
|
|
659
841
|
}());
|
|
842
|
+
SkyKeyInfoLabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoLabelComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
843
|
+
SkyKeyInfoLabelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyKeyInfoLabelComponent, selector: "sky-key-info-label", ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true });
|
|
844
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoLabelComponent, decorators: [{
|
|
845
|
+
type: i0.Component,
|
|
846
|
+
args: [{
|
|
847
|
+
selector: 'sky-key-info-label',
|
|
848
|
+
template: '<ng-content></ng-content>'
|
|
849
|
+
}]
|
|
850
|
+
}] });
|
|
660
851
|
|
|
661
852
|
/**
|
|
662
853
|
* Specifies a value to display in larger, bold text.
|
|
@@ -665,14 +856,17 @@
|
|
|
665
856
|
var SkyKeyInfoValueComponent = /** @class */ (function () {
|
|
666
857
|
function SkyKeyInfoValueComponent() {
|
|
667
858
|
}
|
|
668
|
-
SkyKeyInfoValueComponent = __decorate([
|
|
669
|
-
core.Component({
|
|
670
|
-
selector: 'sky-key-info-value',
|
|
671
|
-
template: '<ng-content></ng-content>'
|
|
672
|
-
})
|
|
673
|
-
], SkyKeyInfoValueComponent);
|
|
674
859
|
return SkyKeyInfoValueComponent;
|
|
675
860
|
}());
|
|
861
|
+
SkyKeyInfoValueComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoValueComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
862
|
+
SkyKeyInfoValueComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyKeyInfoValueComponent, selector: "sky-key-info-value", ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true });
|
|
863
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoValueComponent, decorators: [{
|
|
864
|
+
type: i0.Component,
|
|
865
|
+
args: [{
|
|
866
|
+
selector: 'sky-key-info-value',
|
|
867
|
+
template: '<ng-content></ng-content>'
|
|
868
|
+
}]
|
|
869
|
+
}] });
|
|
676
870
|
|
|
677
871
|
var SkyKeyInfoComponent = /** @class */ (function () {
|
|
678
872
|
function SkyKeyInfoComponent() {
|
|
@@ -683,41 +877,53 @@
|
|
|
683
877
|
*/
|
|
684
878
|
this.layout = 'vertical';
|
|
685
879
|
}
|
|
686
|
-
__decorate([
|
|
687
|
-
core.Input()
|
|
688
|
-
], SkyKeyInfoComponent.prototype, "layout", void 0);
|
|
689
|
-
SkyKeyInfoComponent = __decorate([
|
|
690
|
-
core.Component({
|
|
691
|
-
selector: 'sky-key-info',
|
|
692
|
-
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",
|
|
693
|
-
styles: [".sky-key-info,.sky-key-info.sky-key-info-horizontal .sky-key-info-label,.sky-key-info.sky-key-info-horizontal .sky-key-info-value{display:inline-block}.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,:host-context(.sky-theme-modern) .sky-key-info.sky-key-info-horizontal .sky-key-info-label{padding:0 0 0 5px}"]
|
|
694
|
-
})
|
|
695
|
-
], SkyKeyInfoComponent);
|
|
696
880
|
return SkyKeyInfoComponent;
|
|
697
881
|
}());
|
|
882
|
+
SkyKeyInfoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
883
|
+
SkyKeyInfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyKeyInfoComponent, selector: "sky-key-info", inputs: { layout: "layout" }, ngImport: i0__namespace, 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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
884
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoComponent, decorators: [{
|
|
885
|
+
type: i0.Component,
|
|
886
|
+
args: [{
|
|
887
|
+
selector: 'sky-key-info',
|
|
888
|
+
templateUrl: './key-info.component.html',
|
|
889
|
+
styleUrls: ['./key-info.component.scss']
|
|
890
|
+
}]
|
|
891
|
+
}], propDecorators: { layout: [{
|
|
892
|
+
type: i0.Input
|
|
893
|
+
}] } });
|
|
698
894
|
|
|
699
895
|
var SkyKeyInfoModule = /** @class */ (function () {
|
|
700
896
|
function SkyKeyInfoModule() {
|
|
701
897
|
}
|
|
702
|
-
SkyKeyInfoModule = __decorate([
|
|
703
|
-
core.NgModule({
|
|
704
|
-
declarations: [
|
|
705
|
-
SkyKeyInfoComponent,
|
|
706
|
-
SkyKeyInfoLabelComponent,
|
|
707
|
-
SkyKeyInfoValueComponent
|
|
708
|
-
],
|
|
709
|
-
imports: [
|
|
710
|
-
common.CommonModule
|
|
711
|
-
],
|
|
712
|
-
exports: [
|
|
713
|
-
SkyKeyInfoComponent,
|
|
714
|
-
SkyKeyInfoLabelComponent,
|
|
715
|
-
SkyKeyInfoValueComponent
|
|
716
|
-
]
|
|
717
|
-
})
|
|
718
|
-
], SkyKeyInfoModule);
|
|
719
898
|
return SkyKeyInfoModule;
|
|
720
899
|
}());
|
|
900
|
+
SkyKeyInfoModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
901
|
+
SkyKeyInfoModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoModule, declarations: [SkyKeyInfoComponent,
|
|
902
|
+
SkyKeyInfoLabelComponent,
|
|
903
|
+
SkyKeyInfoValueComponent], imports: [i1$2.CommonModule], exports: [SkyKeyInfoComponent,
|
|
904
|
+
SkyKeyInfoLabelComponent,
|
|
905
|
+
SkyKeyInfoValueComponent] });
|
|
906
|
+
SkyKeyInfoModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoModule, imports: [[
|
|
907
|
+
i1$2.CommonModule
|
|
908
|
+
]] });
|
|
909
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyKeyInfoModule, decorators: [{
|
|
910
|
+
type: i0.NgModule,
|
|
911
|
+
args: [{
|
|
912
|
+
declarations: [
|
|
913
|
+
SkyKeyInfoComponent,
|
|
914
|
+
SkyKeyInfoLabelComponent,
|
|
915
|
+
SkyKeyInfoValueComponent
|
|
916
|
+
],
|
|
917
|
+
imports: [
|
|
918
|
+
i1$2.CommonModule
|
|
919
|
+
],
|
|
920
|
+
exports: [
|
|
921
|
+
SkyKeyInfoComponent,
|
|
922
|
+
SkyKeyInfoLabelComponent,
|
|
923
|
+
SkyKeyInfoValueComponent
|
|
924
|
+
]
|
|
925
|
+
}]
|
|
926
|
+
}] });
|
|
721
927
|
|
|
722
928
|
var SkyLabelComponent = /** @class */ (function () {
|
|
723
929
|
function SkyLabelComponent() {
|
|
@@ -734,7 +940,7 @@
|
|
|
734
940
|
this._labelType = value;
|
|
735
941
|
this.updateIcon();
|
|
736
942
|
},
|
|
737
|
-
enumerable:
|
|
943
|
+
enumerable: false,
|
|
738
944
|
configurable: true
|
|
739
945
|
});
|
|
740
946
|
SkyLabelComponent.prototype.updateIcon = function () {
|
|
@@ -743,38 +949,48 @@
|
|
|
743
949
|
this.baseIcon = indicatorIcon.modernThemeBaseIcon;
|
|
744
950
|
this.topIcon = indicatorIcon.modernThemeTopIcon;
|
|
745
951
|
};
|
|
746
|
-
__decorate([
|
|
747
|
-
core.Input()
|
|
748
|
-
], SkyLabelComponent.prototype, "labelType", null);
|
|
749
|
-
SkyLabelComponent = __decorate([
|
|
750
|
-
core.Component({
|
|
751
|
-
selector: 'sky-label',
|
|
752
|
-
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",
|
|
753
|
-
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}.sky-theme-modern .sky-label,:host-context(.sky-theme-modern) .sky-label{align-items:center;display:inline-flex;line-height:1}.sky-theme-modern .sky-label.sky-label-info,:host-context(.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,: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}.sky-theme-modern .sky-label.sky-label-danger,.sky-theme-modern .sky-label.sky-label-warning,:host-context(.sky-theme-modern) .sky-label.sky-label-danger,:host-context(.sky-theme-modern) .sky-label.sky-label-warning{padding:4px 15px 4px 9px}.sky-theme-modern .sky-label-icon-theme-default,:host-context(.sky-theme-modern) .sky-label-icon-theme-default{display:none}.sky-theme-modern .sky-label-icon-theme-modern,:host-context(.sky-theme-modern) .sky-label-icon-theme-modern{display:block}.sky-theme-modern .sky-label-info .sky-label-icon-theme-modern,:host-context(.sky-theme-modern) .sky-label-info .sky-label-icon-theme-modern{color:#00b4f1}.sky-theme-modern .sky-label-success .sky-label-icon-theme-modern,:host-context(.sky-theme-modern) .sky-label-success .sky-label-icon-theme-modern{color:#72bf44}.sky-theme-modern .sky-label-warning .sky-label-icon-theme-modern,:host-context(.sky-theme-modern) .sky-label-warning .sky-label-icon-theme-modern{color:#fbb034}.sky-theme-modern .sky-label-danger .sky-label-icon-theme-modern,:host-context(.sky-theme-modern) .sky-label-danger .sky-label-icon-theme-modern{color:#ef4044}"]
|
|
754
|
-
})
|
|
755
|
-
], SkyLabelComponent);
|
|
756
952
|
return SkyLabelComponent;
|
|
757
953
|
}());
|
|
954
|
+
SkyLabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyLabelComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
955
|
+
SkyLabelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyLabelComponent, selector: "sky-label", inputs: { labelType: "labelType" }, ngImport: i0__namespace, 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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
956
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyLabelComponent, decorators: [{
|
|
957
|
+
type: i0.Component,
|
|
958
|
+
args: [{
|
|
959
|
+
selector: 'sky-label',
|
|
960
|
+
templateUrl: './label.component.html',
|
|
961
|
+
styleUrls: ['./label.component.scss']
|
|
962
|
+
}]
|
|
963
|
+
}], propDecorators: { labelType: [{
|
|
964
|
+
type: i0.Input
|
|
965
|
+
}] } });
|
|
758
966
|
|
|
759
967
|
var SkyLabelModule = /** @class */ (function () {
|
|
760
968
|
function SkyLabelModule() {
|
|
761
969
|
}
|
|
762
|
-
SkyLabelModule = __decorate([
|
|
763
|
-
core.NgModule({
|
|
764
|
-
declarations: [
|
|
765
|
-
SkyLabelComponent
|
|
766
|
-
],
|
|
767
|
-
imports: [
|
|
768
|
-
common.CommonModule,
|
|
769
|
-
SkyIconModule
|
|
770
|
-
],
|
|
771
|
-
exports: [
|
|
772
|
-
SkyLabelComponent
|
|
773
|
-
]
|
|
774
|
-
})
|
|
775
|
-
], SkyLabelModule);
|
|
776
970
|
return SkyLabelModule;
|
|
777
971
|
}());
|
|
972
|
+
SkyLabelModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyLabelModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
973
|
+
SkyLabelModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyLabelModule, declarations: [SkyLabelComponent], imports: [i1$2.CommonModule,
|
|
974
|
+
SkyIconModule], exports: [SkyLabelComponent] });
|
|
975
|
+
SkyLabelModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyLabelModule, imports: [[
|
|
976
|
+
i1$2.CommonModule,
|
|
977
|
+
SkyIconModule
|
|
978
|
+
]] });
|
|
979
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyLabelModule, decorators: [{
|
|
980
|
+
type: i0.NgModule,
|
|
981
|
+
args: [{
|
|
982
|
+
declarations: [
|
|
983
|
+
SkyLabelComponent
|
|
984
|
+
],
|
|
985
|
+
imports: [
|
|
986
|
+
i1$2.CommonModule,
|
|
987
|
+
SkyIconModule
|
|
988
|
+
],
|
|
989
|
+
exports: [
|
|
990
|
+
SkyLabelComponent
|
|
991
|
+
]
|
|
992
|
+
}]
|
|
993
|
+
}] });
|
|
778
994
|
|
|
779
995
|
var INDICATOR_TYPE_DEFAULT = 'warning';
|
|
780
996
|
var SkyStatusIndicatorComponent = /** @class */ (function () {
|
|
@@ -795,7 +1011,7 @@
|
|
|
795
1011
|
this._indicatorType = value;
|
|
796
1012
|
this.updateIcon();
|
|
797
1013
|
},
|
|
798
|
-
enumerable:
|
|
1014
|
+
enumerable: false,
|
|
799
1015
|
configurable: true
|
|
800
1016
|
});
|
|
801
1017
|
Object.defineProperty(SkyStatusIndicatorComponent.prototype, "descriptionType", {
|
|
@@ -812,7 +1028,7 @@
|
|
|
812
1028
|
this._descriptionType = value;
|
|
813
1029
|
this.updateDescriptionComputed();
|
|
814
1030
|
},
|
|
815
|
-
enumerable:
|
|
1031
|
+
enumerable: false,
|
|
816
1032
|
configurable: true
|
|
817
1033
|
});
|
|
818
1034
|
Object.defineProperty(SkyStatusIndicatorComponent.prototype, "customDescription", {
|
|
@@ -827,7 +1043,7 @@
|
|
|
827
1043
|
this._customDescription = value;
|
|
828
1044
|
this.updateDescriptionComputed();
|
|
829
1045
|
},
|
|
830
|
-
enumerable:
|
|
1046
|
+
enumerable: false,
|
|
831
1047
|
configurable: true
|
|
832
1048
|
});
|
|
833
1049
|
SkyStatusIndicatorComponent.prototype.updateIcon = function () {
|
|
@@ -858,51 +1074,59 @@
|
|
|
858
1074
|
this.descriptionComputed = undefined;
|
|
859
1075
|
}
|
|
860
1076
|
};
|
|
861
|
-
SkyStatusIndicatorComponent.ctorParameters = function () { return [
|
|
862
|
-
{ type: core.ChangeDetectorRef },
|
|
863
|
-
{ type: i18n.SkyLibResourcesService }
|
|
864
|
-
]; };
|
|
865
|
-
__decorate([
|
|
866
|
-
core.Input()
|
|
867
|
-
], SkyStatusIndicatorComponent.prototype, "indicatorType", null);
|
|
868
|
-
__decorate([
|
|
869
|
-
core.Input()
|
|
870
|
-
], SkyStatusIndicatorComponent.prototype, "descriptionType", null);
|
|
871
|
-
__decorate([
|
|
872
|
-
core.Input()
|
|
873
|
-
], SkyStatusIndicatorComponent.prototype, "customDescription", null);
|
|
874
|
-
SkyStatusIndicatorComponent = __decorate([
|
|
875
|
-
core.Component({
|
|
876
|
-
selector: 'sky-status-indicator',
|
|
877
|
-
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",
|
|
878
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
879
|
-
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}"]
|
|
880
|
-
})
|
|
881
|
-
], SkyStatusIndicatorComponent);
|
|
882
1077
|
return SkyStatusIndicatorComponent;
|
|
883
1078
|
}());
|
|
1079
|
+
SkyStatusIndicatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyStatusIndicatorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$2.SkyLibResourcesService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1080
|
+
SkyStatusIndicatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyStatusIndicatorComponent, selector: "sky-status-indicator", inputs: { indicatorType: "indicatorType", descriptionType: "descriptionType", customDescription: "customDescription" }, ngImport: i0__namespace, 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__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1081
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyStatusIndicatorComponent, decorators: [{
|
|
1082
|
+
type: i0.Component,
|
|
1083
|
+
args: [{
|
|
1084
|
+
selector: 'sky-status-indicator',
|
|
1085
|
+
templateUrl: './status-indicator.component.html',
|
|
1086
|
+
styleUrls: ['./status-indicator.component.scss'],
|
|
1087
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1088
|
+
}]
|
|
1089
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$2.SkyLibResourcesService }]; }, propDecorators: { indicatorType: [{
|
|
1090
|
+
type: i0.Input
|
|
1091
|
+
}], descriptionType: [{
|
|
1092
|
+
type: i0.Input
|
|
1093
|
+
}], customDescription: [{
|
|
1094
|
+
type: i0.Input
|
|
1095
|
+
}] } });
|
|
884
1096
|
|
|
885
1097
|
var SkyStatusIndicatorModule = /** @class */ (function () {
|
|
886
1098
|
function SkyStatusIndicatorModule() {
|
|
887
1099
|
}
|
|
888
|
-
SkyStatusIndicatorModule = __decorate([
|
|
889
|
-
core.NgModule({
|
|
890
|
-
declarations: [
|
|
891
|
-
SkyStatusIndicatorComponent
|
|
892
|
-
],
|
|
893
|
-
imports: [
|
|
894
|
-
common.CommonModule,
|
|
895
|
-
i18n.SkyI18nModule,
|
|
896
|
-
SkyIconModule,
|
|
897
|
-
SkyIndicatorsResourcesModule
|
|
898
|
-
],
|
|
899
|
-
exports: [
|
|
900
|
-
SkyStatusIndicatorComponent
|
|
901
|
-
]
|
|
902
|
-
})
|
|
903
|
-
], SkyStatusIndicatorModule);
|
|
904
1100
|
return SkyStatusIndicatorModule;
|
|
905
1101
|
}());
|
|
1102
|
+
SkyStatusIndicatorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyStatusIndicatorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1103
|
+
SkyStatusIndicatorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyStatusIndicatorModule, declarations: [SkyStatusIndicatorComponent], imports: [i1$2.CommonModule,
|
|
1104
|
+
i1.SkyI18nModule,
|
|
1105
|
+
SkyIconModule,
|
|
1106
|
+
SkyIndicatorsResourcesModule], exports: [SkyStatusIndicatorComponent] });
|
|
1107
|
+
SkyStatusIndicatorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyStatusIndicatorModule, imports: [[
|
|
1108
|
+
i1$2.CommonModule,
|
|
1109
|
+
i1.SkyI18nModule,
|
|
1110
|
+
SkyIconModule,
|
|
1111
|
+
SkyIndicatorsResourcesModule
|
|
1112
|
+
]] });
|
|
1113
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyStatusIndicatorModule, decorators: [{
|
|
1114
|
+
type: i0.NgModule,
|
|
1115
|
+
args: [{
|
|
1116
|
+
declarations: [
|
|
1117
|
+
SkyStatusIndicatorComponent
|
|
1118
|
+
],
|
|
1119
|
+
imports: [
|
|
1120
|
+
i1$2.CommonModule,
|
|
1121
|
+
i1.SkyI18nModule,
|
|
1122
|
+
SkyIconModule,
|
|
1123
|
+
SkyIndicatorsResourcesModule
|
|
1124
|
+
],
|
|
1125
|
+
exports: [
|
|
1126
|
+
SkyStatusIndicatorComponent
|
|
1127
|
+
]
|
|
1128
|
+
}]
|
|
1129
|
+
}] });
|
|
906
1130
|
|
|
907
1131
|
var className = 'sky-highlight-mark';
|
|
908
1132
|
// Need to add the following to classes which contain static methods.
|
|
@@ -919,7 +1143,6 @@
|
|
|
919
1143
|
this.observerService = observerService;
|
|
920
1144
|
this.existingHighlight = false;
|
|
921
1145
|
}
|
|
922
|
-
SkyTextHighlightDirective_1 = SkyTextHighlightDirective;
|
|
923
1146
|
SkyTextHighlightDirective.prototype.ngOnChanges = function (changes) {
|
|
924
1147
|
if (changes.skyHighlight && !changes.skyHighlight.firstChange) {
|
|
925
1148
|
this.highlight();
|
|
@@ -936,6 +1159,7 @@
|
|
|
936
1159
|
}
|
|
937
1160
|
};
|
|
938
1161
|
SkyTextHighlightDirective.prototype.ngOnDestroy = function () {
|
|
1162
|
+
/* istanbul ignore else */
|
|
939
1163
|
if (this.observer) {
|
|
940
1164
|
this.observer.disconnect();
|
|
941
1165
|
}
|
|
@@ -944,22 +1168,25 @@
|
|
|
944
1168
|
return searchText && this.el.nativeElement;
|
|
945
1169
|
};
|
|
946
1170
|
SkyTextHighlightDirective.prototype.highlight = function () {
|
|
1171
|
+
/* istanbul ignore else */
|
|
947
1172
|
if (this.observer) {
|
|
948
1173
|
this.observer.disconnect();
|
|
949
1174
|
}
|
|
950
1175
|
var searchText = this.skyHighlight;
|
|
951
1176
|
if (this.existingHighlight) {
|
|
952
|
-
|
|
1177
|
+
SkyTextHighlightDirective.removeHighlight(this.el);
|
|
953
1178
|
}
|
|
1179
|
+
/* istanbul ignore else */
|
|
954
1180
|
if (this.readyForHighlight(searchText)) {
|
|
955
1181
|
var node = this.el.nativeElement;
|
|
956
1182
|
// mark all matched text in the DOM
|
|
957
|
-
|
|
1183
|
+
SkyTextHighlightDirective.markTextNodes(node, searchText);
|
|
958
1184
|
this.existingHighlight = true;
|
|
959
1185
|
}
|
|
960
1186
|
this.observeDom();
|
|
961
1187
|
};
|
|
962
1188
|
SkyTextHighlightDirective.prototype.observeDom = function () {
|
|
1189
|
+
/* istanbul ignore else */
|
|
963
1190
|
if (this.observer) {
|
|
964
1191
|
var config = { attributes: false, childList: true, characterData: true };
|
|
965
1192
|
this.observer.observe(this.el.nativeElement, config);
|
|
@@ -975,7 +1202,7 @@
|
|
|
975
1202
|
return searchRegex.exec(text);
|
|
976
1203
|
};
|
|
977
1204
|
SkyTextHighlightDirective.markNode = function (node, searchText) {
|
|
978
|
-
var regexMatch =
|
|
1205
|
+
var regexMatch = SkyTextHighlightDirective.getRegexMatch(node, searchText);
|
|
979
1206
|
// found match
|
|
980
1207
|
if (regexMatch && regexMatch.length > 0) {
|
|
981
1208
|
// split apart text node with mark tags in the middle on the search term
|
|
@@ -995,12 +1222,12 @@
|
|
|
995
1222
|
};
|
|
996
1223
|
SkyTextHighlightDirective.markTextNodes = function (node, searchText) {
|
|
997
1224
|
if (node.nodeType === 3) {
|
|
998
|
-
return
|
|
1225
|
+
return SkyTextHighlightDirective.markNode(node, searchText);
|
|
999
1226
|
}
|
|
1000
1227
|
else if (node.nodeType === 1 && node.childNodes) {
|
|
1001
1228
|
for (var i = 0; i < node.childNodes.length; i++) {
|
|
1002
1229
|
var childNode = node.childNodes[i];
|
|
1003
|
-
i +=
|
|
1230
|
+
i += SkyTextHighlightDirective.markTextNodes(childNode, searchText);
|
|
1004
1231
|
}
|
|
1005
1232
|
}
|
|
1006
1233
|
return 0;
|
|
@@ -1018,40 +1245,43 @@
|
|
|
1018
1245
|
}
|
|
1019
1246
|
}
|
|
1020
1247
|
};
|
|
1021
|
-
var SkyTextHighlightDirective_1;
|
|
1022
|
-
SkyTextHighlightDirective.ctorParameters = function () { return [
|
|
1023
|
-
{ type: core.ElementRef },
|
|
1024
|
-
{ type: core$1.MutationObserverService }
|
|
1025
|
-
]; };
|
|
1026
|
-
__decorate([
|
|
1027
|
-
core.Input()
|
|
1028
|
-
], SkyTextHighlightDirective.prototype, "skyHighlight", void 0);
|
|
1029
|
-
SkyTextHighlightDirective = SkyTextHighlightDirective_1 = __decorate([
|
|
1030
|
-
core.Directive({
|
|
1031
|
-
selector: '[skyHighlight]'
|
|
1032
|
-
})
|
|
1033
|
-
], SkyTextHighlightDirective);
|
|
1034
1248
|
return SkyTextHighlightDirective;
|
|
1035
1249
|
}());
|
|
1250
|
+
SkyTextHighlightDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextHighlightDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$3.MutationObserverService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1251
|
+
SkyTextHighlightDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.7", type: SkyTextHighlightDirective, selector: "[skyHighlight]", inputs: { skyHighlight: "skyHighlight" }, usesOnChanges: true, ngImport: i0__namespace });
|
|
1252
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextHighlightDirective, decorators: [{
|
|
1253
|
+
type: i0.Directive,
|
|
1254
|
+
args: [{
|
|
1255
|
+
selector: '[skyHighlight]'
|
|
1256
|
+
}]
|
|
1257
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$3.MutationObserverService }]; }, propDecorators: { skyHighlight: [{
|
|
1258
|
+
type: i0.Input
|
|
1259
|
+
}] } });
|
|
1036
1260
|
|
|
1037
1261
|
var SkyTextHighlightModule = /** @class */ (function () {
|
|
1038
1262
|
function SkyTextHighlightModule() {
|
|
1039
1263
|
}
|
|
1040
|
-
SkyTextHighlightModule = __decorate([
|
|
1041
|
-
core.NgModule({
|
|
1042
|
-
declarations: [
|
|
1043
|
-
SkyTextHighlightDirective
|
|
1044
|
-
],
|
|
1045
|
-
exports: [
|
|
1046
|
-
SkyTextHighlightDirective
|
|
1047
|
-
],
|
|
1048
|
-
providers: [
|
|
1049
|
-
core$1.MutationObserverService
|
|
1050
|
-
]
|
|
1051
|
-
})
|
|
1052
|
-
], SkyTextHighlightModule);
|
|
1053
1264
|
return SkyTextHighlightModule;
|
|
1054
1265
|
}());
|
|
1266
|
+
SkyTextHighlightModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextHighlightModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1267
|
+
SkyTextHighlightModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextHighlightModule, declarations: [SkyTextHighlightDirective], exports: [SkyTextHighlightDirective] });
|
|
1268
|
+
SkyTextHighlightModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextHighlightModule, providers: [
|
|
1269
|
+
i1$3.MutationObserverService
|
|
1270
|
+
] });
|
|
1271
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextHighlightModule, decorators: [{
|
|
1272
|
+
type: i0.NgModule,
|
|
1273
|
+
args: [{
|
|
1274
|
+
declarations: [
|
|
1275
|
+
SkyTextHighlightDirective
|
|
1276
|
+
],
|
|
1277
|
+
exports: [
|
|
1278
|
+
SkyTextHighlightDirective
|
|
1279
|
+
],
|
|
1280
|
+
providers: [
|
|
1281
|
+
i1$3.MutationObserverService
|
|
1282
|
+
]
|
|
1283
|
+
}]
|
|
1284
|
+
}] });
|
|
1055
1285
|
|
|
1056
1286
|
var SkyTokenComponent = /** @class */ (function () {
|
|
1057
1287
|
function SkyTokenComponent(elementRef, resourcesService) {
|
|
@@ -1060,11 +1290,11 @@
|
|
|
1060
1290
|
/**
|
|
1061
1291
|
* Fires when users click the close button or press the `Backspace` key to dismiss the token.
|
|
1062
1292
|
*/
|
|
1063
|
-
this.dismiss = new
|
|
1293
|
+
this.dismiss = new i0.EventEmitter();
|
|
1064
1294
|
/**
|
|
1065
1295
|
* Fires when users place focus on the token by navigating to it with the `Tab` key.
|
|
1066
1296
|
*/
|
|
1067
|
-
this.tokenFocus = new
|
|
1297
|
+
this.tokenFocus = new i0.EventEmitter();
|
|
1068
1298
|
}
|
|
1069
1299
|
Object.defineProperty(SkyTokenComponent.prototype, "disabled", {
|
|
1070
1300
|
get: function () {
|
|
@@ -1079,7 +1309,7 @@
|
|
|
1079
1309
|
set: function (value) {
|
|
1080
1310
|
this._disabled = value;
|
|
1081
1311
|
},
|
|
1082
|
-
enumerable:
|
|
1312
|
+
enumerable: false,
|
|
1083
1313
|
configurable: true
|
|
1084
1314
|
});
|
|
1085
1315
|
Object.defineProperty(SkyTokenComponent.prototype, "ariaLabel", {
|
|
@@ -1094,7 +1324,7 @@
|
|
|
1094
1324
|
set: function (value) {
|
|
1095
1325
|
this._ariaLabel = value;
|
|
1096
1326
|
},
|
|
1097
|
-
enumerable:
|
|
1327
|
+
enumerable: false,
|
|
1098
1328
|
configurable: true
|
|
1099
1329
|
});
|
|
1100
1330
|
Object.defineProperty(SkyTokenComponent.prototype, "dismissible", {
|
|
@@ -1109,7 +1339,7 @@
|
|
|
1109
1339
|
set: function (value) {
|
|
1110
1340
|
this._dismissible = value;
|
|
1111
1341
|
},
|
|
1112
|
-
enumerable:
|
|
1342
|
+
enumerable: false,
|
|
1113
1343
|
configurable: true
|
|
1114
1344
|
});
|
|
1115
1345
|
Object.defineProperty(SkyTokenComponent.prototype, "focusable", {
|
|
@@ -1124,7 +1354,7 @@
|
|
|
1124
1354
|
set: function (value) {
|
|
1125
1355
|
this._focusable = value;
|
|
1126
1356
|
},
|
|
1127
|
-
enumerable:
|
|
1357
|
+
enumerable: false,
|
|
1128
1358
|
configurable: true
|
|
1129
1359
|
});
|
|
1130
1360
|
Object.defineProperty(SkyTokenComponent.prototype, "tabIndex", {
|
|
@@ -1134,13 +1364,11 @@
|
|
|
1134
1364
|
get: function () {
|
|
1135
1365
|
return (this.focusable) ? 0 : -1;
|
|
1136
1366
|
},
|
|
1137
|
-
enumerable:
|
|
1367
|
+
enumerable: false,
|
|
1138
1368
|
configurable: true
|
|
1139
1369
|
});
|
|
1140
1370
|
SkyTokenComponent.prototype.dismissToken = function (event) {
|
|
1141
|
-
|
|
1142
|
-
event.stopPropagation();
|
|
1143
|
-
}
|
|
1371
|
+
event.stopPropagation();
|
|
1144
1372
|
this.dismiss.emit();
|
|
1145
1373
|
};
|
|
1146
1374
|
SkyTokenComponent.prototype.focusElement = function () {
|
|
@@ -1150,40 +1378,33 @@
|
|
|
1150
1378
|
// TODO: Need to implement the async `getString` method in a breaking change.
|
|
1151
1379
|
return this.resourcesService.getStringForLocale({ locale: 'en-US' }, key);
|
|
1152
1380
|
};
|
|
1153
|
-
SkyTokenComponent.ctorParameters = function () { return [
|
|
1154
|
-
{ type: core.ElementRef },
|
|
1155
|
-
{ type: i18n.SkyLibResourcesService }
|
|
1156
|
-
]; };
|
|
1157
|
-
__decorate([
|
|
1158
|
-
core.Input()
|
|
1159
|
-
], SkyTokenComponent.prototype, "disabled", null);
|
|
1160
|
-
__decorate([
|
|
1161
|
-
core.Input()
|
|
1162
|
-
], SkyTokenComponent.prototype, "ariaLabel", null);
|
|
1163
|
-
__decorate([
|
|
1164
|
-
core.Input()
|
|
1165
|
-
], SkyTokenComponent.prototype, "dismissible", null);
|
|
1166
|
-
__decorate([
|
|
1167
|
-
core.Input()
|
|
1168
|
-
], SkyTokenComponent.prototype, "focusable", null);
|
|
1169
|
-
__decorate([
|
|
1170
|
-
core.Output()
|
|
1171
|
-
], SkyTokenComponent.prototype, "dismiss", void 0);
|
|
1172
|
-
__decorate([
|
|
1173
|
-
core.Output()
|
|
1174
|
-
], SkyTokenComponent.prototype, "tokenFocus", void 0);
|
|
1175
|
-
SkyTokenComponent = __decorate([
|
|
1176
|
-
core.Component({
|
|
1177
|
-
selector: 'sky-token',
|
|
1178
|
-
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",
|
|
1179
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
1180
|
-
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}"]
|
|
1181
|
-
})
|
|
1182
|
-
], SkyTokenComponent);
|
|
1183
1381
|
return SkyTokenComponent;
|
|
1184
1382
|
}());
|
|
1383
|
+
SkyTokenComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTokenComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$2.SkyLibResourcesService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1384
|
+
SkyTokenComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1385
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTokenComponent, decorators: [{
|
|
1386
|
+
type: i0.Component,
|
|
1387
|
+
args: [{
|
|
1388
|
+
selector: 'sky-token',
|
|
1389
|
+
templateUrl: './token.component.html',
|
|
1390
|
+
styleUrls: ['./token.component.scss'],
|
|
1391
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1392
|
+
}]
|
|
1393
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$2.SkyLibResourcesService }]; }, propDecorators: { disabled: [{
|
|
1394
|
+
type: i0.Input
|
|
1395
|
+
}], ariaLabel: [{
|
|
1396
|
+
type: i0.Input
|
|
1397
|
+
}], dismissible: [{
|
|
1398
|
+
type: i0.Input
|
|
1399
|
+
}], focusable: [{
|
|
1400
|
+
type: i0.Input
|
|
1401
|
+
}], dismiss: [{
|
|
1402
|
+
type: i0.Output
|
|
1403
|
+
}], tokenFocus: [{
|
|
1404
|
+
type: i0.Output
|
|
1405
|
+
}] } });
|
|
1185
1406
|
|
|
1186
|
-
|
|
1407
|
+
exports.SkyTokensMessageType = void 0;
|
|
1187
1408
|
(function (SkyTokensMessageType) {
|
|
1188
1409
|
/**
|
|
1189
1410
|
* Places focus on the last token in the list.
|
|
@@ -1215,21 +1436,21 @@
|
|
|
1215
1436
|
* Fires when users navigate through the tokens list with the `Tab` key
|
|
1216
1437
|
* and attempt to move past the final token in the list.
|
|
1217
1438
|
*/
|
|
1218
|
-
this.focusIndexOverRange = new
|
|
1439
|
+
this.focusIndexOverRange = new i0.EventEmitter();
|
|
1219
1440
|
/**
|
|
1220
1441
|
* Fires when usersnavigate through the tokens list with the `Tab` key
|
|
1221
1442
|
* and attempt to move before the first token in the list.
|
|
1222
1443
|
*/
|
|
1223
|
-
this.focusIndexUnderRange = new
|
|
1444
|
+
this.focusIndexUnderRange = new i0.EventEmitter();
|
|
1224
1445
|
/**
|
|
1225
1446
|
* Fires when users select a token in the list. This event emits the selected token.
|
|
1226
1447
|
*/
|
|
1227
|
-
this.tokenSelected = new
|
|
1448
|
+
this.tokenSelected = new i0.EventEmitter();
|
|
1228
1449
|
/**
|
|
1229
1450
|
* Fires when the tokens in the list change.
|
|
1230
1451
|
* This event emits an array of the tokens in the updated list.
|
|
1231
1452
|
*/
|
|
1232
|
-
this.tokensChange = new
|
|
1453
|
+
this.tokensChange = new i0.EventEmitter();
|
|
1233
1454
|
this.ngUnsubscribe = new rxjs.Subject();
|
|
1234
1455
|
// Angular calls the trackBy function without applying the component instance's scope.
|
|
1235
1456
|
// Use a fat-arrow function so the current component instance's trackWith property can
|
|
@@ -1254,7 +1475,7 @@
|
|
|
1254
1475
|
set: function (value) {
|
|
1255
1476
|
this._disabled = value;
|
|
1256
1477
|
},
|
|
1257
|
-
enumerable:
|
|
1478
|
+
enumerable: false,
|
|
1258
1479
|
configurable: true
|
|
1259
1480
|
});
|
|
1260
1481
|
Object.defineProperty(SkyTokensComponent.prototype, "dismissible", {
|
|
@@ -1269,7 +1490,7 @@
|
|
|
1269
1490
|
set: function (value) {
|
|
1270
1491
|
this._dismissible = value;
|
|
1271
1492
|
},
|
|
1272
|
-
enumerable:
|
|
1493
|
+
enumerable: false,
|
|
1273
1494
|
configurable: true
|
|
1274
1495
|
});
|
|
1275
1496
|
Object.defineProperty(SkyTokensComponent.prototype, "displayWith", {
|
|
@@ -1283,7 +1504,7 @@
|
|
|
1283
1504
|
set: function (value) {
|
|
1284
1505
|
this._displayWith = value;
|
|
1285
1506
|
},
|
|
1286
|
-
enumerable:
|
|
1507
|
+
enumerable: false,
|
|
1287
1508
|
configurable: true
|
|
1288
1509
|
});
|
|
1289
1510
|
Object.defineProperty(SkyTokensComponent.prototype, "focusable", {
|
|
@@ -1299,7 +1520,7 @@
|
|
|
1299
1520
|
set: function (value) {
|
|
1300
1521
|
this._focusable = value;
|
|
1301
1522
|
},
|
|
1302
|
-
enumerable:
|
|
1523
|
+
enumerable: false,
|
|
1303
1524
|
configurable: true
|
|
1304
1525
|
});
|
|
1305
1526
|
Object.defineProperty(SkyTokensComponent.prototype, "tokens", {
|
|
@@ -1313,7 +1534,7 @@
|
|
|
1313
1534
|
this._tokens = value;
|
|
1314
1535
|
this.tokensChange.emit(this._tokens);
|
|
1315
1536
|
},
|
|
1316
|
-
enumerable:
|
|
1537
|
+
enumerable: false,
|
|
1317
1538
|
configurable: true
|
|
1318
1539
|
});
|
|
1319
1540
|
Object.defineProperty(SkyTokensComponent.prototype, "messageStream", {
|
|
@@ -1328,7 +1549,7 @@
|
|
|
1328
1549
|
this._messageStream = value;
|
|
1329
1550
|
this.initMessageStream();
|
|
1330
1551
|
},
|
|
1331
|
-
enumerable:
|
|
1552
|
+
enumerable: false,
|
|
1332
1553
|
configurable: true
|
|
1333
1554
|
});
|
|
1334
1555
|
Object.defineProperty(SkyTokensComponent.prototype, "activeIndex", {
|
|
@@ -1349,7 +1570,7 @@
|
|
|
1349
1570
|
}
|
|
1350
1571
|
this._activeIndex = value;
|
|
1351
1572
|
},
|
|
1352
|
-
enumerable:
|
|
1573
|
+
enumerable: false,
|
|
1353
1574
|
configurable: true
|
|
1354
1575
|
});
|
|
1355
1576
|
SkyTokensComponent.prototype.ngOnDestroy = function () {
|
|
@@ -1451,102 +1672,127 @@
|
|
|
1451
1672
|
token: token
|
|
1452
1673
|
});
|
|
1453
1674
|
};
|
|
1454
|
-
SkyTokensComponent.ctorParameters = function () { return [
|
|
1455
|
-
{ type: core.ChangeDetectorRef }
|
|
1456
|
-
]; };
|
|
1457
|
-
__decorate([
|
|
1458
|
-
core.Input()
|
|
1459
|
-
], SkyTokensComponent.prototype, "disabled", null);
|
|
1460
|
-
__decorate([
|
|
1461
|
-
core.Input()
|
|
1462
|
-
], SkyTokensComponent.prototype, "dismissible", null);
|
|
1463
|
-
__decorate([
|
|
1464
|
-
core.Input()
|
|
1465
|
-
], SkyTokensComponent.prototype, "displayWith", null);
|
|
1466
|
-
__decorate([
|
|
1467
|
-
core.Input()
|
|
1468
|
-
], SkyTokensComponent.prototype, "trackWith", void 0);
|
|
1469
|
-
__decorate([
|
|
1470
|
-
core.Input()
|
|
1471
|
-
], SkyTokensComponent.prototype, "focusable", null);
|
|
1472
|
-
__decorate([
|
|
1473
|
-
core.Input()
|
|
1474
|
-
], SkyTokensComponent.prototype, "tokens", null);
|
|
1475
|
-
__decorate([
|
|
1476
|
-
core.Input()
|
|
1477
|
-
], SkyTokensComponent.prototype, "messageStream", null);
|
|
1478
|
-
__decorate([
|
|
1479
|
-
core.Output()
|
|
1480
|
-
], SkyTokensComponent.prototype, "focusIndexOverRange", void 0);
|
|
1481
|
-
__decorate([
|
|
1482
|
-
core.Output()
|
|
1483
|
-
], SkyTokensComponent.prototype, "focusIndexUnderRange", void 0);
|
|
1484
|
-
__decorate([
|
|
1485
|
-
core.Output()
|
|
1486
|
-
], SkyTokensComponent.prototype, "tokenSelected", void 0);
|
|
1487
|
-
__decorate([
|
|
1488
|
-
core.Output()
|
|
1489
|
-
], SkyTokensComponent.prototype, "tokensChange", void 0);
|
|
1490
|
-
__decorate([
|
|
1491
|
-
core.ViewChildren(SkyTokenComponent)
|
|
1492
|
-
], SkyTokensComponent.prototype, "tokenComponents", void 0);
|
|
1493
|
-
SkyTokensComponent = __decorate([
|
|
1494
|
-
core.Component({
|
|
1495
|
-
selector: 'sky-tokens',
|
|
1496
|
-
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",
|
|
1497
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
1498
|
-
animations: [
|
|
1499
|
-
animations.trigger('blockAnimationOnLoad', [
|
|
1500
|
-
animations.transition(':enter', [])
|
|
1501
|
-
]),
|
|
1502
|
-
animations.trigger('dismiss', [
|
|
1503
|
-
animations.transition(':enter', [
|
|
1504
|
-
animations.style({
|
|
1505
|
-
opacity: 0,
|
|
1506
|
-
width: 0
|
|
1507
|
-
}),
|
|
1508
|
-
animations.animate('150ms ease-in', animations.style({
|
|
1509
|
-
opacity: 1,
|
|
1510
|
-
width: '*'
|
|
1511
|
-
}))
|
|
1512
|
-
]),
|
|
1513
|
-
animations.transition(':leave', [
|
|
1514
|
-
animations.animate('150ms ease-in', animations.style({
|
|
1515
|
-
opacity: 0,
|
|
1516
|
-
width: 0
|
|
1517
|
-
}))
|
|
1518
|
-
])
|
|
1519
|
-
])
|
|
1520
|
-
],
|
|
1521
|
-
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:\"\u200B\"}"]
|
|
1522
|
-
})
|
|
1523
|
-
], SkyTokensComponent);
|
|
1524
1675
|
return SkyTokensComponent;
|
|
1525
1676
|
}());
|
|
1677
|
+
SkyTokensComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTokensComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1678
|
+
SkyTokensComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], animations: [
|
|
1679
|
+
animations.trigger('blockAnimationOnLoad', [
|
|
1680
|
+
animations.transition(':enter', [])
|
|
1681
|
+
]),
|
|
1682
|
+
animations.trigger('dismiss', [
|
|
1683
|
+
animations.transition(':enter', [
|
|
1684
|
+
animations.style({
|
|
1685
|
+
opacity: 0,
|
|
1686
|
+
width: 0
|
|
1687
|
+
}),
|
|
1688
|
+
animations.animate('150ms ease-in', animations.style({
|
|
1689
|
+
opacity: 1,
|
|
1690
|
+
width: '*'
|
|
1691
|
+
}))
|
|
1692
|
+
]),
|
|
1693
|
+
animations.transition(':leave', [
|
|
1694
|
+
animations.animate('150ms ease-in', animations.style({
|
|
1695
|
+
opacity: 0,
|
|
1696
|
+
width: 0
|
|
1697
|
+
}))
|
|
1698
|
+
])
|
|
1699
|
+
])
|
|
1700
|
+
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1701
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTokensComponent, decorators: [{
|
|
1702
|
+
type: i0.Component,
|
|
1703
|
+
args: [{
|
|
1704
|
+
selector: 'sky-tokens',
|
|
1705
|
+
templateUrl: './tokens.component.html',
|
|
1706
|
+
styleUrls: ['./tokens.component.scss'],
|
|
1707
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1708
|
+
animations: [
|
|
1709
|
+
animations.trigger('blockAnimationOnLoad', [
|
|
1710
|
+
animations.transition(':enter', [])
|
|
1711
|
+
]),
|
|
1712
|
+
animations.trigger('dismiss', [
|
|
1713
|
+
animations.transition(':enter', [
|
|
1714
|
+
animations.style({
|
|
1715
|
+
opacity: 0,
|
|
1716
|
+
width: 0
|
|
1717
|
+
}),
|
|
1718
|
+
animations.animate('150ms ease-in', animations.style({
|
|
1719
|
+
opacity: 1,
|
|
1720
|
+
width: '*'
|
|
1721
|
+
}))
|
|
1722
|
+
]),
|
|
1723
|
+
animations.transition(':leave', [
|
|
1724
|
+
animations.animate('150ms ease-in', animations.style({
|
|
1725
|
+
opacity: 0,
|
|
1726
|
+
width: 0
|
|
1727
|
+
}))
|
|
1728
|
+
])
|
|
1729
|
+
])
|
|
1730
|
+
]
|
|
1731
|
+
}]
|
|
1732
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { disabled: [{
|
|
1733
|
+
type: i0.Input
|
|
1734
|
+
}], dismissible: [{
|
|
1735
|
+
type: i0.Input
|
|
1736
|
+
}], displayWith: [{
|
|
1737
|
+
type: i0.Input
|
|
1738
|
+
}], trackWith: [{
|
|
1739
|
+
type: i0.Input
|
|
1740
|
+
}], focusable: [{
|
|
1741
|
+
type: i0.Input
|
|
1742
|
+
}], tokens: [{
|
|
1743
|
+
type: i0.Input
|
|
1744
|
+
}], messageStream: [{
|
|
1745
|
+
type: i0.Input
|
|
1746
|
+
}], focusIndexOverRange: [{
|
|
1747
|
+
type: i0.Output
|
|
1748
|
+
}], focusIndexUnderRange: [{
|
|
1749
|
+
type: i0.Output
|
|
1750
|
+
}], tokenSelected: [{
|
|
1751
|
+
type: i0.Output
|
|
1752
|
+
}], tokensChange: [{
|
|
1753
|
+
type: i0.Output
|
|
1754
|
+
}], tokenComponents: [{
|
|
1755
|
+
type: i0.ViewChildren,
|
|
1756
|
+
args: [SkyTokenComponent]
|
|
1757
|
+
}] } });
|
|
1526
1758
|
|
|
1527
1759
|
var SkyTokensModule = /** @class */ (function () {
|
|
1528
1760
|
function SkyTokensModule() {
|
|
1529
1761
|
}
|
|
1530
|
-
SkyTokensModule = __decorate([
|
|
1531
|
-
core.NgModule({
|
|
1532
|
-
declarations: [
|
|
1533
|
-
SkyTokenComponent,
|
|
1534
|
-
SkyTokensComponent
|
|
1535
|
-
],
|
|
1536
|
-
imports: [
|
|
1537
|
-
common.CommonModule,
|
|
1538
|
-
i18n.SkyI18nModule,
|
|
1539
|
-
SkyIconModule,
|
|
1540
|
-
SkyIndicatorsResourcesModule
|
|
1541
|
-
],
|
|
1542
|
-
exports: [
|
|
1543
|
-
SkyTokenComponent,
|
|
1544
|
-
SkyTokensComponent
|
|
1545
|
-
]
|
|
1546
|
-
})
|
|
1547
|
-
], SkyTokensModule);
|
|
1548
1762
|
return SkyTokensModule;
|
|
1549
1763
|
}());
|
|
1764
|
+
SkyTokensModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTokensModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1765
|
+
SkyTokensModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTokensModule, declarations: [SkyTokenComponent,
|
|
1766
|
+
SkyTokensComponent], imports: [i1$2.CommonModule,
|
|
1767
|
+
i1.SkyI18nModule,
|
|
1768
|
+
SkyIconModule,
|
|
1769
|
+
SkyIndicatorsResourcesModule], exports: [SkyTokenComponent,
|
|
1770
|
+
SkyTokensComponent] });
|
|
1771
|
+
SkyTokensModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTokensModule, imports: [[
|
|
1772
|
+
i1$2.CommonModule,
|
|
1773
|
+
i1.SkyI18nModule,
|
|
1774
|
+
SkyIconModule,
|
|
1775
|
+
SkyIndicatorsResourcesModule
|
|
1776
|
+
]] });
|
|
1777
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTokensModule, decorators: [{
|
|
1778
|
+
type: i0.NgModule,
|
|
1779
|
+
args: [{
|
|
1780
|
+
declarations: [
|
|
1781
|
+
SkyTokenComponent,
|
|
1782
|
+
SkyTokensComponent
|
|
1783
|
+
],
|
|
1784
|
+
imports: [
|
|
1785
|
+
i1$2.CommonModule,
|
|
1786
|
+
i1.SkyI18nModule,
|
|
1787
|
+
SkyIconModule,
|
|
1788
|
+
SkyIndicatorsResourcesModule
|
|
1789
|
+
],
|
|
1790
|
+
exports: [
|
|
1791
|
+
SkyTokenComponent,
|
|
1792
|
+
SkyTokensComponent
|
|
1793
|
+
]
|
|
1794
|
+
}]
|
|
1795
|
+
}] });
|
|
1550
1796
|
|
|
1551
1797
|
// Need to add the following to classes which contain static methods.
|
|
1552
1798
|
// See: https://github.com/ng-packagr/ng-packagr/issues/641
|
|
@@ -1559,7 +1805,6 @@
|
|
|
1559
1805
|
this.rendererFactory = rendererFactory;
|
|
1560
1806
|
this.renderer = this.rendererFactory.createRenderer(undefined, undefined);
|
|
1561
1807
|
}
|
|
1562
|
-
SkyWaitAdapterService_1 = SkyWaitAdapterService;
|
|
1563
1808
|
SkyWaitAdapterService.prototype.ngOnDestroy = function () {
|
|
1564
1809
|
this.clearListeners();
|
|
1565
1810
|
};
|
|
@@ -1581,10 +1826,11 @@
|
|
|
1581
1826
|
this.clearDocumentFocus();
|
|
1582
1827
|
}
|
|
1583
1828
|
if (isFullPage) {
|
|
1584
|
-
|
|
1829
|
+
SkyWaitAdapterService.isPageWaitActive = true;
|
|
1585
1830
|
var endListenerFunc = this.renderer.listen(document.body, 'keydown', function (event) {
|
|
1586
1831
|
/*istanbul ignore else */
|
|
1587
1832
|
if (event.key) {
|
|
1833
|
+
/* istanbul ignore else */
|
|
1588
1834
|
if (event.key.toLowerCase() === 'tab') {
|
|
1589
1835
|
event.target.blur();
|
|
1590
1836
|
event.preventDefault();
|
|
@@ -1594,18 +1840,19 @@
|
|
|
1594
1840
|
}
|
|
1595
1841
|
}
|
|
1596
1842
|
});
|
|
1597
|
-
|
|
1843
|
+
SkyWaitAdapterService.busyElements[waitComponentId] = {
|
|
1598
1844
|
listener: endListenerFunc,
|
|
1599
1845
|
busyEl: undefined
|
|
1600
1846
|
};
|
|
1601
1847
|
}
|
|
1602
1848
|
else {
|
|
1603
1849
|
var endListenerFunc = this.renderer.listen(busyEl, 'focusin', function (event) {
|
|
1850
|
+
/* istanbul ignore else */
|
|
1604
1851
|
if (!isNonBlocking) {
|
|
1605
1852
|
event.preventDefault();
|
|
1606
1853
|
event.stopPropagation();
|
|
1607
1854
|
event.stopImmediatePropagation();
|
|
1608
|
-
if (
|
|
1855
|
+
if (SkyWaitAdapterService.isPageWaitActive) {
|
|
1609
1856
|
_this.clearDocumentFocus();
|
|
1610
1857
|
}
|
|
1611
1858
|
else {
|
|
@@ -1616,7 +1863,7 @@
|
|
|
1616
1863
|
}
|
|
1617
1864
|
}
|
|
1618
1865
|
});
|
|
1619
|
-
|
|
1866
|
+
SkyWaitAdapterService.busyElements[waitComponentId] = {
|
|
1620
1867
|
listener: endListenerFunc,
|
|
1621
1868
|
busyEl: busyEl
|
|
1622
1869
|
};
|
|
@@ -1625,11 +1872,11 @@
|
|
|
1625
1872
|
else {
|
|
1626
1873
|
this.renderer.removeAttribute(busyEl, 'aria-busy');
|
|
1627
1874
|
if (isFullPage) {
|
|
1628
|
-
|
|
1875
|
+
SkyWaitAdapterService.isPageWaitActive = false;
|
|
1629
1876
|
}
|
|
1630
|
-
if (waitComponentId in
|
|
1631
|
-
|
|
1632
|
-
delete
|
|
1877
|
+
if (waitComponentId in SkyWaitAdapterService.busyElements) {
|
|
1878
|
+
SkyWaitAdapterService.busyElements[waitComponentId].listener();
|
|
1879
|
+
delete SkyWaitAdapterService.busyElements[waitComponentId];
|
|
1633
1880
|
}
|
|
1634
1881
|
}
|
|
1635
1882
|
}
|
|
@@ -1649,6 +1896,8 @@
|
|
|
1649
1896
|
}
|
|
1650
1897
|
else {
|
|
1651
1898
|
// Try wrapping the navigation
|
|
1899
|
+
/* istanbul ignore next */
|
|
1900
|
+
/* sanity check */
|
|
1652
1901
|
curIndex = modifier > 0 ? 0 : focussable.length - 1;
|
|
1653
1902
|
while (curIndex !== startingIndex &&
|
|
1654
1903
|
focussable[curIndex] &&
|
|
@@ -1691,9 +1940,9 @@
|
|
|
1691
1940
|
return true;
|
|
1692
1941
|
}
|
|
1693
1942
|
try {
|
|
1694
|
-
for (var _b = __values(Object.keys(
|
|
1943
|
+
for (var _b = __values(Object.keys(SkyWaitAdapterService.busyElements)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1695
1944
|
var key = _c.value;
|
|
1696
|
-
var parentElement =
|
|
1945
|
+
var parentElement = SkyWaitAdapterService.busyElements[key].busyEl;
|
|
1697
1946
|
if (parentElement && parentElement.contains(element)) {
|
|
1698
1947
|
return true;
|
|
1699
1948
|
}
|
|
@@ -1709,6 +1958,7 @@
|
|
|
1709
1958
|
return false;
|
|
1710
1959
|
};
|
|
1711
1960
|
SkyWaitAdapterService.prototype.clearDocumentFocus = function () {
|
|
1961
|
+
/* istanbul ignore else */
|
|
1712
1962
|
if (document.activeElement && document.activeElement.blur) {
|
|
1713
1963
|
document.activeElement.blur();
|
|
1714
1964
|
}
|
|
@@ -1736,12 +1986,12 @@
|
|
|
1736
1986
|
};
|
|
1737
1987
|
SkyWaitAdapterService.prototype.clearListeners = function () {
|
|
1738
1988
|
var e_2, _a;
|
|
1739
|
-
|
|
1989
|
+
SkyWaitAdapterService.isPageWaitActive = false;
|
|
1740
1990
|
try {
|
|
1741
|
-
for (var _b = __values(Object.keys(
|
|
1991
|
+
for (var _b = __values(Object.keys(SkyWaitAdapterService.busyElements)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
1742
1992
|
var key = _c.value;
|
|
1743
|
-
|
|
1744
|
-
delete
|
|
1993
|
+
SkyWaitAdapterService.busyElements[key].listener();
|
|
1994
|
+
delete SkyWaitAdapterService.busyElements[key];
|
|
1745
1995
|
}
|
|
1746
1996
|
}
|
|
1747
1997
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
@@ -1752,17 +2002,15 @@
|
|
|
1752
2002
|
finally { if (e_2) throw e_2.error; }
|
|
1753
2003
|
}
|
|
1754
2004
|
};
|
|
1755
|
-
var SkyWaitAdapterService_1;
|
|
1756
|
-
SkyWaitAdapterService.isPageWaitActive = false;
|
|
1757
|
-
SkyWaitAdapterService.busyElements = {};
|
|
1758
|
-
SkyWaitAdapterService.ctorParameters = function () { return [
|
|
1759
|
-
{ type: core.RendererFactory2 }
|
|
1760
|
-
]; };
|
|
1761
|
-
SkyWaitAdapterService = SkyWaitAdapterService_1 = __decorate([
|
|
1762
|
-
core.Injectable()
|
|
1763
|
-
], SkyWaitAdapterService);
|
|
1764
2005
|
return SkyWaitAdapterService;
|
|
1765
2006
|
}());
|
|
2007
|
+
SkyWaitAdapterService.isPageWaitActive = false;
|
|
2008
|
+
SkyWaitAdapterService.busyElements = {};
|
|
2009
|
+
SkyWaitAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitAdapterService, deps: [{ token: i0__namespace.RendererFactory2 }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2010
|
+
SkyWaitAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitAdapterService });
|
|
2011
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitAdapterService, decorators: [{
|
|
2012
|
+
type: i0.Injectable
|
|
2013
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.RendererFactory2 }]; } });
|
|
1766
2014
|
|
|
1767
2015
|
var nextId = 0;
|
|
1768
2016
|
var SkyWaitComponent = /** @class */ (function () {
|
|
@@ -1790,7 +2038,7 @@
|
|
|
1790
2038
|
this.adapterService.setBusyState(this.elRef, this.isFullPage, value, this.isNonBlocking, this.id);
|
|
1791
2039
|
this._isWaiting = value;
|
|
1792
2040
|
},
|
|
1793
|
-
enumerable:
|
|
2041
|
+
enumerable: false,
|
|
1794
2042
|
configurable: true
|
|
1795
2043
|
});
|
|
1796
2044
|
Object.defineProperty(SkyWaitComponent.prototype, "isFullPage", {
|
|
@@ -1808,12 +2056,12 @@
|
|
|
1808
2056
|
if (value) {
|
|
1809
2057
|
this.adapterService.removeWaitBounds(this.elRef);
|
|
1810
2058
|
}
|
|
1811
|
-
else if (!value && this._isWaiting) {
|
|
2059
|
+
else /* istanbul ignore if: untestable */ if (!value && this._isWaiting) {
|
|
1812
2060
|
this.adapterService.setWaitBounds(this.elRef);
|
|
1813
2061
|
}
|
|
1814
2062
|
this._isFullPage = value;
|
|
1815
2063
|
},
|
|
1816
|
-
enumerable:
|
|
2064
|
+
enumerable: false,
|
|
1817
2065
|
configurable: true
|
|
1818
2066
|
});
|
|
1819
2067
|
SkyWaitComponent.prototype.ngOnInit = function () {
|
|
@@ -1825,6 +2073,7 @@
|
|
|
1825
2073
|
this.ariaLabelStream.next(this.ariaLabel);
|
|
1826
2074
|
return;
|
|
1827
2075
|
}
|
|
2076
|
+
/* istanbul ignore else */
|
|
1828
2077
|
if (this.resourceService) {
|
|
1829
2078
|
var type = (this.isFullPage) ? '_page' : '';
|
|
1830
2079
|
var blocking = (this.isNonBlocking) ? '' : '_blocking';
|
|
@@ -1834,36 +2083,35 @@
|
|
|
1834
2083
|
});
|
|
1835
2084
|
}
|
|
1836
2085
|
};
|
|
1837
|
-
SkyWaitComponent.ctorParameters = function () { return [
|
|
1838
|
-
{ type: core.ElementRef },
|
|
1839
|
-
{ type: SkyWaitAdapterService },
|
|
1840
|
-
{ type: i18n.SkyLibResourcesService, decorators: [{ type: core.Optional }] }
|
|
1841
|
-
]; };
|
|
1842
|
-
__decorate([
|
|
1843
|
-
core.Input()
|
|
1844
|
-
], SkyWaitComponent.prototype, "ariaLabel", void 0);
|
|
1845
|
-
__decorate([
|
|
1846
|
-
core.Input()
|
|
1847
|
-
], SkyWaitComponent.prototype, "isWaiting", null);
|
|
1848
|
-
__decorate([
|
|
1849
|
-
core.Input()
|
|
1850
|
-
], SkyWaitComponent.prototype, "isFullPage", null);
|
|
1851
|
-
__decorate([
|
|
1852
|
-
core.Input()
|
|
1853
|
-
], SkyWaitComponent.prototype, "isNonBlocking", void 0);
|
|
1854
|
-
SkyWaitComponent = __decorate([
|
|
1855
|
-
core.Component({
|
|
1856
|
-
selector: 'sky-wait',
|
|
1857
|
-
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",
|
|
1858
|
-
providers: [
|
|
1859
|
-
SkyWaitAdapterService
|
|
1860
|
-
],
|
|
1861
|
-
styles: [".sky-wait-mask-loading-blocking{margin:auto;position:absolute;top:0;right:0;left:0;bottom:0;background-color:rgba(255,255,255,.7);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:2s ease-in-out infinite sk-bounce;animation:2s ease-in-out infinite sk-bounce}.sky-wait-double-bounce2{-webkit-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes sk-bounce{0%,100%{-webkit-transform:scale(0)}50%{-webkit-transform:scale(1)}}@keyframes sk-bounce{0%,100%{transform:scale(0);-webkit-transform:scale(0)}50%{transform:scale(1);-webkit-transform:scale(1)}}.sky-wait-container.sky-wait-active{position:relative}"]
|
|
1862
|
-
}),
|
|
1863
|
-
__param(2, core.Optional())
|
|
1864
|
-
], SkyWaitComponent);
|
|
1865
2086
|
return SkyWaitComponent;
|
|
1866
2087
|
}());
|
|
2088
|
+
SkyWaitComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitComponent, deps: [{ token: i0__namespace.ElementRef }, { token: SkyWaitAdapterService }, { token: i1__namespace$2.SkyLibResourcesService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2089
|
+
SkyWaitComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyWaitComponent, selector: "sky-wait", inputs: { ariaLabel: "ariaLabel", isWaiting: "isWaiting", isFullPage: "isFullPage", isNonBlocking: "isNonBlocking" }, providers: [
|
|
2090
|
+
SkyWaitAdapterService
|
|
2091
|
+
], ngImport: i0__namespace, 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__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i1__namespace$1.AsyncPipe } });
|
|
2092
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitComponent, decorators: [{
|
|
2093
|
+
type: i0.Component,
|
|
2094
|
+
args: [{
|
|
2095
|
+
selector: 'sky-wait',
|
|
2096
|
+
templateUrl: './wait.component.html',
|
|
2097
|
+
styleUrls: ['./wait.component.scss'],
|
|
2098
|
+
providers: [
|
|
2099
|
+
SkyWaitAdapterService
|
|
2100
|
+
]
|
|
2101
|
+
}]
|
|
2102
|
+
}], ctorParameters: function () {
|
|
2103
|
+
return [{ type: i0__namespace.ElementRef }, { type: SkyWaitAdapterService }, { type: i1__namespace$2.SkyLibResourcesService, decorators: [{
|
|
2104
|
+
type: i0.Optional
|
|
2105
|
+
}] }];
|
|
2106
|
+
}, propDecorators: { ariaLabel: [{
|
|
2107
|
+
type: i0.Input
|
|
2108
|
+
}], isWaiting: [{
|
|
2109
|
+
type: i0.Input
|
|
2110
|
+
}], isFullPage: [{
|
|
2111
|
+
type: i0.Input
|
|
2112
|
+
}], isNonBlocking: [{
|
|
2113
|
+
type: i0.Input
|
|
2114
|
+
}] } });
|
|
1867
2115
|
|
|
1868
2116
|
/**
|
|
1869
2117
|
* @internal
|
|
@@ -1871,47 +2119,58 @@
|
|
|
1871
2119
|
var SkyWaitPageComponent = /** @class */ (function () {
|
|
1872
2120
|
function SkyWaitPageComponent() {
|
|
1873
2121
|
}
|
|
1874
|
-
__decorate([
|
|
1875
|
-
core.Input()
|
|
1876
|
-
], SkyWaitPageComponent.prototype, "hasBlockingWait", void 0);
|
|
1877
|
-
__decorate([
|
|
1878
|
-
core.Input()
|
|
1879
|
-
], SkyWaitPageComponent.prototype, "hasNonBlockingWait", void 0);
|
|
1880
|
-
SkyWaitPageComponent = __decorate([
|
|
1881
|
-
core.Component({
|
|
1882
|
-
selector: 'sky-wait-page',
|
|
1883
|
-
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",
|
|
1884
|
-
styles: [".sky-wait-page ::ng-deep .sky-wait-mask-loading-fixed{z-index:2000}"]
|
|
1885
|
-
})
|
|
1886
|
-
], SkyWaitPageComponent);
|
|
1887
2122
|
return SkyWaitPageComponent;
|
|
1888
2123
|
}());
|
|
2124
|
+
SkyWaitPageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitPageComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2125
|
+
SkyWaitPageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyWaitPageComponent, selector: "sky-wait-page", inputs: { hasBlockingWait: "hasBlockingWait", hasNonBlockingWait: "hasNonBlockingWait" }, ngImport: i0__namespace, 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"] }] });
|
|
2126
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitPageComponent, decorators: [{
|
|
2127
|
+
type: i0.Component,
|
|
2128
|
+
args: [{
|
|
2129
|
+
selector: 'sky-wait-page',
|
|
2130
|
+
templateUrl: './wait-page.component.html',
|
|
2131
|
+
styleUrls: ['./wait-page.component.scss']
|
|
2132
|
+
}]
|
|
2133
|
+
}], propDecorators: { hasBlockingWait: [{
|
|
2134
|
+
type: i0.Input
|
|
2135
|
+
}], hasNonBlockingWait: [{
|
|
2136
|
+
type: i0.Input
|
|
2137
|
+
}] } });
|
|
1889
2138
|
|
|
1890
2139
|
var SkyWaitModule = /** @class */ (function () {
|
|
1891
2140
|
function SkyWaitModule() {
|
|
1892
2141
|
}
|
|
1893
|
-
SkyWaitModule = __decorate([
|
|
1894
|
-
core.NgModule({
|
|
1895
|
-
declarations: [
|
|
1896
|
-
SkyWaitComponent,
|
|
1897
|
-
SkyWaitPageComponent
|
|
1898
|
-
],
|
|
1899
|
-
imports: [
|
|
1900
|
-
common.CommonModule,
|
|
1901
|
-
i18n.SkyI18nModule,
|
|
1902
|
-
SkyIndicatorsResourcesModule
|
|
1903
|
-
],
|
|
1904
|
-
exports: [
|
|
1905
|
-
SkyWaitComponent,
|
|
1906
|
-
SkyWaitPageComponent
|
|
1907
|
-
],
|
|
1908
|
-
entryComponents: [
|
|
1909
|
-
SkyWaitPageComponent
|
|
1910
|
-
]
|
|
1911
|
-
})
|
|
1912
|
-
], SkyWaitModule);
|
|
1913
2142
|
return SkyWaitModule;
|
|
1914
2143
|
}());
|
|
2144
|
+
SkyWaitModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2145
|
+
SkyWaitModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitModule, declarations: [SkyWaitComponent,
|
|
2146
|
+
SkyWaitPageComponent], imports: [i1$2.CommonModule,
|
|
2147
|
+
i1.SkyI18nModule,
|
|
2148
|
+
SkyIndicatorsResourcesModule], exports: [SkyWaitComponent] });
|
|
2149
|
+
SkyWaitModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitModule, imports: [[
|
|
2150
|
+
i1$2.CommonModule,
|
|
2151
|
+
i1.SkyI18nModule,
|
|
2152
|
+
SkyIndicatorsResourcesModule
|
|
2153
|
+
]] });
|
|
2154
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitModule, decorators: [{
|
|
2155
|
+
type: i0.NgModule,
|
|
2156
|
+
args: [{
|
|
2157
|
+
declarations: [
|
|
2158
|
+
SkyWaitComponent,
|
|
2159
|
+
SkyWaitPageComponent
|
|
2160
|
+
],
|
|
2161
|
+
imports: [
|
|
2162
|
+
i1$2.CommonModule,
|
|
2163
|
+
i1.SkyI18nModule,
|
|
2164
|
+
SkyIndicatorsResourcesModule
|
|
2165
|
+
],
|
|
2166
|
+
exports: [
|
|
2167
|
+
SkyWaitComponent
|
|
2168
|
+
],
|
|
2169
|
+
entryComponents: [
|
|
2170
|
+
SkyWaitPageComponent
|
|
2171
|
+
]
|
|
2172
|
+
}]
|
|
2173
|
+
}] });
|
|
1915
2174
|
|
|
1916
2175
|
/**
|
|
1917
2176
|
* @internal
|
|
@@ -1923,16 +2182,21 @@
|
|
|
1923
2182
|
document.body.appendChild(document.createElement('sky-wait-page'));
|
|
1924
2183
|
};
|
|
1925
2184
|
SkyWaitPageAdapterService.prototype.removePageWaitEl = function () {
|
|
1926
|
-
document.
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
providedIn: 'root'
|
|
1932
|
-
})
|
|
1933
|
-
], SkyWaitPageAdapterService);
|
|
2185
|
+
var waitEl = document.querySelector('sky-wait-page');
|
|
2186
|
+
if (waitEl) {
|
|
2187
|
+
document.body.removeChild(waitEl);
|
|
2188
|
+
}
|
|
2189
|
+
};
|
|
1934
2190
|
return SkyWaitPageAdapterService;
|
|
1935
2191
|
}());
|
|
2192
|
+
SkyWaitPageAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitPageAdapterService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2193
|
+
SkyWaitPageAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitPageAdapterService, providedIn: 'root' });
|
|
2194
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitPageAdapterService, decorators: [{
|
|
2195
|
+
type: i0.Injectable,
|
|
2196
|
+
args: [{
|
|
2197
|
+
providedIn: 'root'
|
|
2198
|
+
}]
|
|
2199
|
+
}] });
|
|
1936
2200
|
|
|
1937
2201
|
// Need to add the following to classes which contain static methods.
|
|
1938
2202
|
// See: https://github.com/ng-packagr/ng-packagr/issues/641
|
|
@@ -1944,7 +2208,6 @@
|
|
|
1944
2208
|
this.waitAdapter = waitAdapter;
|
|
1945
2209
|
this.windowSvc = windowSvc;
|
|
1946
2210
|
}
|
|
1947
|
-
SkyWaitService_1 = SkyWaitService;
|
|
1948
2211
|
/**
|
|
1949
2212
|
* Starts a blocking page wait on the page.
|
|
1950
2213
|
*/
|
|
@@ -1982,10 +2245,10 @@
|
|
|
1982
2245
|
* @internal
|
|
1983
2246
|
*/
|
|
1984
2247
|
SkyWaitService.prototype.dispose = function () {
|
|
1985
|
-
if (
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
2248
|
+
if (SkyWaitService.waitComponent) {
|
|
2249
|
+
SkyWaitService.waitComponent = undefined;
|
|
2250
|
+
SkyWaitService.pageWaitBlockingCount = 0;
|
|
2251
|
+
SkyWaitService.pageWaitNonBlockingCount = 0;
|
|
1989
2252
|
this.waitAdapter.removePageWaitEl();
|
|
1990
2253
|
}
|
|
1991
2254
|
};
|
|
@@ -2012,17 +2275,17 @@
|
|
|
2012
2275
|
};
|
|
2013
2276
|
SkyWaitService.prototype.setWaitComponentProperties = function (isBlocking) {
|
|
2014
2277
|
if (isBlocking) {
|
|
2015
|
-
|
|
2016
|
-
|
|
2278
|
+
SkyWaitService.waitComponent.hasBlockingWait = true;
|
|
2279
|
+
SkyWaitService.pageWaitBlockingCount++;
|
|
2017
2280
|
}
|
|
2018
2281
|
else {
|
|
2019
|
-
|
|
2020
|
-
|
|
2282
|
+
SkyWaitService.waitComponent.hasNonBlockingWait = true;
|
|
2283
|
+
SkyWaitService.pageWaitNonBlockingCount++;
|
|
2021
2284
|
}
|
|
2022
2285
|
};
|
|
2023
2286
|
SkyWaitService.prototype.beginPageWait = function (isBlocking) {
|
|
2024
2287
|
var _this = this;
|
|
2025
|
-
if (!
|
|
2288
|
+
if (!SkyWaitService.waitComponent) {
|
|
2026
2289
|
/*
|
|
2027
2290
|
Dynamic component creation needs to be done in a timeout to prevent ApplicationRef from
|
|
2028
2291
|
crashing when wait service is called in Angular lifecycle functions.
|
|
@@ -2030,11 +2293,11 @@
|
|
|
2030
2293
|
this.windowSvc.nativeWindow.setTimeout(function () {
|
|
2031
2294
|
// Ensuring here that we recheck this after the setTimeout is over so that we don't clash
|
|
2032
2295
|
// with any other waits that are created.
|
|
2033
|
-
if (!
|
|
2296
|
+
if (!SkyWaitService.waitComponent) {
|
|
2034
2297
|
var factory = _this.resolver.resolveComponentFactory(SkyWaitPageComponent);
|
|
2035
2298
|
_this.waitAdapter.addPageWaitEl();
|
|
2036
2299
|
var cmpRef = _this.appRef.bootstrap(factory);
|
|
2037
|
-
|
|
2300
|
+
SkyWaitService.waitComponent = cmpRef.instance;
|
|
2038
2301
|
}
|
|
2039
2302
|
_this.setWaitComponentProperties(isBlocking);
|
|
2040
2303
|
});
|
|
@@ -2049,55 +2312,54 @@
|
|
|
2049
2312
|
before it is dismissed in the event of a race.
|
|
2050
2313
|
*/
|
|
2051
2314
|
this.windowSvc.nativeWindow.setTimeout(function () {
|
|
2052
|
-
if (
|
|
2315
|
+
if (SkyWaitService.waitComponent) {
|
|
2053
2316
|
if (isBlocking) {
|
|
2054
|
-
if (
|
|
2055
|
-
|
|
2317
|
+
if (SkyWaitService.pageWaitBlockingCount > 0) {
|
|
2318
|
+
SkyWaitService.pageWaitBlockingCount--;
|
|
2056
2319
|
}
|
|
2057
|
-
if (
|
|
2058
|
-
|
|
2320
|
+
if (SkyWaitService.pageWaitBlockingCount < 1) {
|
|
2321
|
+
SkyWaitService.waitComponent.hasBlockingWait = false;
|
|
2059
2322
|
}
|
|
2060
2323
|
}
|
|
2061
2324
|
else {
|
|
2062
|
-
if (
|
|
2063
|
-
|
|
2325
|
+
if (SkyWaitService.pageWaitNonBlockingCount > 0) {
|
|
2326
|
+
SkyWaitService.pageWaitNonBlockingCount--;
|
|
2064
2327
|
}
|
|
2065
|
-
if (
|
|
2066
|
-
|
|
2328
|
+
if (SkyWaitService.pageWaitNonBlockingCount < 1) {
|
|
2329
|
+
SkyWaitService.waitComponent.hasNonBlockingWait = false;
|
|
2067
2330
|
}
|
|
2068
2331
|
}
|
|
2069
2332
|
}
|
|
2070
2333
|
});
|
|
2071
2334
|
};
|
|
2072
2335
|
SkyWaitService.prototype.clearPageWait = function (isBlocking) {
|
|
2073
|
-
if (
|
|
2336
|
+
if (SkyWaitService.waitComponent) {
|
|
2074
2337
|
if (isBlocking) {
|
|
2075
|
-
|
|
2076
|
-
|
|
2338
|
+
SkyWaitService.pageWaitBlockingCount = 0;
|
|
2339
|
+
SkyWaitService.waitComponent.hasBlockingWait = false;
|
|
2077
2340
|
}
|
|
2078
2341
|
else {
|
|
2079
|
-
|
|
2080
|
-
|
|
2342
|
+
SkyWaitService.pageWaitNonBlockingCount = 0;
|
|
2343
|
+
SkyWaitService.waitComponent.hasNonBlockingWait = false;
|
|
2081
2344
|
}
|
|
2082
2345
|
}
|
|
2083
2346
|
};
|
|
2084
|
-
var SkyWaitService_1;
|
|
2085
|
-
SkyWaitService.pageWaitBlockingCount = 0;
|
|
2086
|
-
SkyWaitService.pageWaitNonBlockingCount = 0;
|
|
2087
|
-
SkyWaitService.ctorParameters = function () { return [
|
|
2088
|
-
{ type: core.ComponentFactoryResolver },
|
|
2089
|
-
{ type: core.ApplicationRef },
|
|
2090
|
-
{ type: SkyWaitPageAdapterService },
|
|
2091
|
-
{ type: core$1.SkyAppWindowRef }
|
|
2092
|
-
]; };
|
|
2093
|
-
SkyWaitService.ɵprov = core.ɵɵdefineInjectable({ factory: function SkyWaitService_Factory() { return new SkyWaitService(core.ɵɵinject(core.ComponentFactoryResolver), core.ɵɵinject(core.ApplicationRef), core.ɵɵinject(SkyWaitPageAdapterService), core.ɵɵinject(core$1.SkyAppWindowRef)); }, token: SkyWaitService, providedIn: "root" });
|
|
2094
|
-
SkyWaitService = SkyWaitService_1 = __decorate([
|
|
2095
|
-
core.Injectable({
|
|
2096
|
-
providedIn: 'root'
|
|
2097
|
-
})
|
|
2098
|
-
], SkyWaitService);
|
|
2099
2347
|
return SkyWaitService;
|
|
2100
2348
|
}());
|
|
2349
|
+
SkyWaitService.pageWaitBlockingCount = 0;
|
|
2350
|
+
SkyWaitService.pageWaitNonBlockingCount = 0;
|
|
2351
|
+
SkyWaitService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitService, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ApplicationRef }, { token: SkyWaitPageAdapterService }, { token: i1__namespace$3.SkyAppWindowRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2352
|
+
SkyWaitService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitService, providedIn: 'root' });
|
|
2353
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyWaitService, decorators: [{
|
|
2354
|
+
type: i0.Injectable,
|
|
2355
|
+
args: [{
|
|
2356
|
+
providedIn: 'root'
|
|
2357
|
+
}]
|
|
2358
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ApplicationRef }, { type: SkyWaitPageAdapterService }, { type: i1__namespace$3.SkyAppWindowRef }]; } });
|
|
2359
|
+
|
|
2360
|
+
/**
|
|
2361
|
+
* Generated bundle index. Do not edit.
|
|
2362
|
+
*/
|
|
2101
2363
|
|
|
2102
2364
|
exports.SkyAlertModule = SkyAlertModule;
|
|
2103
2365
|
exports.SkyChevronModule = SkyChevronModule;
|
|
@@ -2110,27 +2372,20 @@
|
|
|
2110
2372
|
exports.SkyTokensModule = SkyTokensModule;
|
|
2111
2373
|
exports.SkyWaitModule = SkyWaitModule;
|
|
2112
2374
|
exports.SkyWaitService = SkyWaitService;
|
|
2113
|
-
exports
|
|
2114
|
-
exports
|
|
2115
|
-
exports
|
|
2116
|
-
exports
|
|
2117
|
-
exports
|
|
2118
|
-
exports
|
|
2119
|
-
exports
|
|
2120
|
-
exports
|
|
2121
|
-
exports
|
|
2122
|
-
exports
|
|
2123
|
-
exports
|
|
2124
|
-
exports
|
|
2125
|
-
exports
|
|
2126
|
-
exports
|
|
2127
|
-
exports.ɵo = SkyTextHighlightDirective;
|
|
2128
|
-
exports.ɵp = SkyTokenComponent;
|
|
2129
|
-
exports.ɵq = SkyTokensComponent;
|
|
2130
|
-
exports.ɵr = SkyWaitComponent;
|
|
2131
|
-
exports.ɵs = SkyWaitAdapterService;
|
|
2132
|
-
exports.ɵt = SkyWaitPageComponent;
|
|
2133
|
-
exports.ɵu = SkyWaitPageAdapterService;
|
|
2375
|
+
exports.λ1 = SkyAlertComponent;
|
|
2376
|
+
exports.λ10 = SkyStatusIndicatorComponent;
|
|
2377
|
+
exports.λ11 = SkyTextHighlightDirective;
|
|
2378
|
+
exports.λ12 = SkyTokenComponent;
|
|
2379
|
+
exports.λ13 = SkyTokensComponent;
|
|
2380
|
+
exports.λ14 = SkyWaitComponent;
|
|
2381
|
+
exports.λ2 = SkyChevronComponent;
|
|
2382
|
+
exports.λ3 = SkyHelpInlineComponent;
|
|
2383
|
+
exports.λ4 = SkyIconComponent;
|
|
2384
|
+
exports.λ5 = SkyIconStackComponent;
|
|
2385
|
+
exports.λ6 = SkyKeyInfoLabelComponent;
|
|
2386
|
+
exports.λ7 = SkyKeyInfoValueComponent;
|
|
2387
|
+
exports.λ8 = SkyKeyInfoComponent;
|
|
2388
|
+
exports.λ9 = SkyLabelComponent;
|
|
2134
2389
|
|
|
2135
2390
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2136
2391
|
|