@skyux/popovers 5.7.2 → 6.0.0-beta.2
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/documentation.json +2 -2
- package/esm2020/index.mjs +23 -0
- package/esm2020/lib/modules/dropdown/dropdown-button.component.mjs +14 -0
- package/esm2020/lib/modules/dropdown/dropdown-extensions.mjs +14 -0
- package/esm2020/lib/modules/dropdown/dropdown-item.component.mjs +69 -0
- package/esm2020/lib/modules/dropdown/dropdown-menu.component.mjs +305 -0
- package/esm2020/lib/modules/dropdown/dropdown.component.mjs +359 -0
- package/esm2020/lib/modules/dropdown/dropdown.module.mjs +60 -0
- package/esm2020/lib/modules/dropdown/types/dropdown-horizontal-alignment.mjs +2 -0
- package/esm2020/lib/modules/dropdown/types/dropdown-menu-change.mjs +2 -0
- package/esm2020/lib/modules/dropdown/types/dropdown-message-type.mjs +40 -0
- package/esm2020/lib/modules/dropdown/types/dropdown-message.mjs +2 -0
- package/esm2020/lib/modules/dropdown/types/dropdown-trigger-type.mjs +2 -0
- package/esm2020/lib/modules/popover/popover-adapter.service.mjs +74 -0
- package/esm2020/lib/modules/popover/popover-animation-state.mjs +2 -0
- package/esm2020/lib/modules/popover/popover-animation.mjs +19 -0
- package/esm2020/lib/modules/popover/popover-content.component.mjs +261 -0
- package/esm2020/lib/modules/popover/popover-context.mjs +10 -0
- package/esm2020/lib/modules/popover/popover-extensions.mjs +29 -0
- package/esm2020/lib/modules/popover/popover.component.mjs +198 -0
- package/esm2020/lib/modules/popover/popover.directive.mjs +176 -0
- package/esm2020/lib/modules/popover/popover.module.mjs +55 -0
- package/esm2020/lib/modules/popover/types/popover-adapter-arrow-coordinates.mjs +2 -0
- package/esm2020/lib/modules/popover/types/popover-adapter-elements.mjs +2 -0
- package/esm2020/lib/modules/popover/types/popover-alignment.mjs +2 -0
- package/esm2020/lib/modules/popover/types/popover-message-type.mjs +24 -0
- package/esm2020/lib/modules/popover/types/popover-message.mjs +2 -0
- package/esm2020/lib/modules/popover/types/popover-placement.mjs +2 -0
- package/esm2020/lib/modules/popover/types/popover-position.mjs +2 -0
- package/esm2020/lib/modules/popover/types/popover-trigger.mjs +2 -0
- package/esm2020/lib/modules/shared/sky-popovers-resources.module.mjs +47 -0
- package/esm2020/skyux-popovers.mjs +5 -0
- package/esm2020/testing/dropdown/dropdown-fixture.mjs +133 -0
- package/esm2020/testing/dropdown/dropdown-testing.module.mjs +15 -0
- package/esm2020/testing/dropdown/popovers-fixture-dropdown-item.mjs +2 -0
- package/esm2020/testing/dropdown/popovers-fixture-dropdown-menu.mjs +2 -0
- package/esm2020/testing/dropdown/popovers-fixture-dropdown.mjs +2 -0
- package/esm2020/testing/popover/popover-fixture.mjs +86 -0
- package/esm2020/testing/popover/popover-testing.module.mjs +29 -0
- package/esm2020/testing/public-api.mjs +8 -0
- package/esm2020/testing/skyux-popovers-testing.mjs +5 -0
- package/fesm2015/{skyux-popovers-testing.js → skyux-popovers-testing.mjs} +9 -9
- package/fesm2015/skyux-popovers-testing.mjs.map +1 -0
- package/fesm2015/skyux-popovers.mjs +1705 -0
- package/fesm2015/skyux-popovers.mjs.map +1 -0
- package/fesm2020/skyux-popovers-testing.mjs +266 -0
- package/fesm2020/skyux-popovers-testing.mjs.map +1 -0
- package/{fesm2015/skyux-popovers.js → fesm2020/skyux-popovers.mjs} +53 -88
- package/fesm2020/skyux-popovers.mjs.map +1 -0
- package/package.json +40 -16
- package/testing/package.json +5 -5
- package/bundles/skyux-popovers-testing.umd.js +0 -682
- package/bundles/skyux-popovers.umd.js +0 -1889
- package/esm2015/index.js +0 -23
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/modules/dropdown/dropdown-button.component.js +0 -17
- package/esm2015/lib/modules/dropdown/dropdown-button.component.js.map +0 -1
- package/esm2015/lib/modules/dropdown/dropdown-extensions.js +0 -14
- package/esm2015/lib/modules/dropdown/dropdown-extensions.js.map +0 -1
- package/esm2015/lib/modules/dropdown/dropdown-item.component.js +0 -75
- package/esm2015/lib/modules/dropdown/dropdown-item.component.js.map +0 -1
- package/esm2015/lib/modules/dropdown/dropdown-menu.component.js +0 -311
- package/esm2015/lib/modules/dropdown/dropdown-menu.component.js.map +0 -1
- package/esm2015/lib/modules/dropdown/dropdown.component.js +0 -363
- package/esm2015/lib/modules/dropdown/dropdown.component.js.map +0 -1
- package/esm2015/lib/modules/dropdown/dropdown.module.js +0 -60
- package/esm2015/lib/modules/dropdown/dropdown.module.js.map +0 -1
- package/esm2015/lib/modules/dropdown/types/dropdown-horizontal-alignment.js +0 -2
- package/esm2015/lib/modules/dropdown/types/dropdown-horizontal-alignment.js.map +0 -1
- package/esm2015/lib/modules/dropdown/types/dropdown-menu-change.js +0 -2
- package/esm2015/lib/modules/dropdown/types/dropdown-menu-change.js.map +0 -1
- package/esm2015/lib/modules/dropdown/types/dropdown-message-type.js +0 -40
- package/esm2015/lib/modules/dropdown/types/dropdown-message-type.js.map +0 -1
- package/esm2015/lib/modules/dropdown/types/dropdown-message.js +0 -2
- package/esm2015/lib/modules/dropdown/types/dropdown-message.js.map +0 -1
- package/esm2015/lib/modules/dropdown/types/dropdown-trigger-type.js +0 -2
- package/esm2015/lib/modules/dropdown/types/dropdown-trigger-type.js.map +0 -1
- package/esm2015/lib/modules/popover/popover-adapter.service.js +0 -74
- package/esm2015/lib/modules/popover/popover-adapter.service.js.map +0 -1
- package/esm2015/lib/modules/popover/popover-animation-state.js +0 -2
- package/esm2015/lib/modules/popover/popover-animation-state.js.map +0 -1
- package/esm2015/lib/modules/popover/popover-animation.js +0 -19
- package/esm2015/lib/modules/popover/popover-animation.js.map +0 -1
- package/esm2015/lib/modules/popover/popover-content.component.js +0 -271
- package/esm2015/lib/modules/popover/popover-content.component.js.map +0 -1
- package/esm2015/lib/modules/popover/popover-context.js +0 -10
- package/esm2015/lib/modules/popover/popover-context.js.map +0 -1
- package/esm2015/lib/modules/popover/popover-extensions.js +0 -29
- package/esm2015/lib/modules/popover/popover-extensions.js.map +0 -1
- package/esm2015/lib/modules/popover/popover.component.js +0 -203
- package/esm2015/lib/modules/popover/popover.component.js.map +0 -1
- package/esm2015/lib/modules/popover/popover.directive.js +0 -176
- package/esm2015/lib/modules/popover/popover.directive.js.map +0 -1
- package/esm2015/lib/modules/popover/popover.module.js +0 -56
- package/esm2015/lib/modules/popover/popover.module.js.map +0 -1
- package/esm2015/lib/modules/popover/types/popover-adapter-arrow-coordinates.js +0 -2
- package/esm2015/lib/modules/popover/types/popover-adapter-arrow-coordinates.js.map +0 -1
- package/esm2015/lib/modules/popover/types/popover-adapter-elements.js +0 -2
- package/esm2015/lib/modules/popover/types/popover-adapter-elements.js.map +0 -1
- package/esm2015/lib/modules/popover/types/popover-alignment.js +0 -2
- package/esm2015/lib/modules/popover/types/popover-alignment.js.map +0 -1
- package/esm2015/lib/modules/popover/types/popover-message-type.js +0 -24
- package/esm2015/lib/modules/popover/types/popover-message-type.js.map +0 -1
- package/esm2015/lib/modules/popover/types/popover-message.js +0 -2
- package/esm2015/lib/modules/popover/types/popover-message.js.map +0 -1
- package/esm2015/lib/modules/popover/types/popover-placement.js +0 -2
- package/esm2015/lib/modules/popover/types/popover-placement.js.map +0 -1
- package/esm2015/lib/modules/popover/types/popover-position.js +0 -2
- package/esm2015/lib/modules/popover/types/popover-position.js.map +0 -1
- package/esm2015/lib/modules/popover/types/popover-trigger.js +0 -2
- package/esm2015/lib/modules/popover/types/popover-trigger.js.map +0 -1
- package/esm2015/lib/modules/shared/sky-popovers-resources.module.js +0 -47
- package/esm2015/lib/modules/shared/sky-popovers-resources.module.js.map +0 -1
- package/esm2015/skyux-popovers.js +0 -5
- package/esm2015/skyux-popovers.js.map +0 -1
- package/esm2015/testing/dropdown/dropdown-fixture.js +0 -138
- package/esm2015/testing/dropdown/dropdown-fixture.js.map +0 -1
- package/esm2015/testing/dropdown/dropdown-testing.module.js +0 -15
- package/esm2015/testing/dropdown/dropdown-testing.module.js.map +0 -1
- package/esm2015/testing/dropdown/popovers-fixture-dropdown-item.js +0 -2
- package/esm2015/testing/dropdown/popovers-fixture-dropdown-item.js.map +0 -1
- package/esm2015/testing/dropdown/popovers-fixture-dropdown-menu.js +0 -2
- package/esm2015/testing/dropdown/popovers-fixture-dropdown-menu.js.map +0 -1
- package/esm2015/testing/dropdown/popovers-fixture-dropdown.js +0 -2
- package/esm2015/testing/dropdown/popovers-fixture-dropdown.js.map +0 -1
- package/esm2015/testing/popover/popover-fixture.js +0 -86
- package/esm2015/testing/popover/popover-fixture.js.map +0 -1
- package/esm2015/testing/popover/popover-testing.module.js +0 -29
- package/esm2015/testing/popover/popover-testing.module.js.map +0 -1
- package/esm2015/testing/public-api.js +0 -8
- package/esm2015/testing/public-api.js.map +0 -1
- package/esm2015/testing/skyux-popovers-testing.js +0 -5
- package/esm2015/testing/skyux-popovers-testing.js.map +0 -1
- package/fesm2015/skyux-popovers-testing.js.map +0 -1
- package/fesm2015/skyux-popovers.js.map +0 -1
|
@@ -1,682 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@skyux/popovers'), require('@angular/platform-browser'), require('@skyux-sdk/testing'), require('@angular/platform-browser/animations'), require('@skyux/theme')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@skyux/popovers/testing', ['exports', '@angular/core', '@skyux/popovers', '@angular/platform-browser', '@skyux-sdk/testing', '@angular/platform-browser/animations', '@skyux/theme'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.popovers = global.skyux.popovers || {}, global.skyux.popovers.testing = {}), global.ng.core, global.skyux.popovers, global.ng.platformBrowser, global.testing, global.ng.platformBrowser.animations, global.theme));
|
|
5
|
-
})(this, (function (exports, i0, popovers, platformBrowser, testing, animations, theme) { 'use strict';
|
|
6
|
-
|
|
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 () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
|
|
27
|
-
var SkyDropdownTestingModule = /** @class */ (function () {
|
|
28
|
-
function SkyDropdownTestingModule() {
|
|
29
|
-
}
|
|
30
|
-
return SkyDropdownTestingModule;
|
|
31
|
-
}());
|
|
32
|
-
SkyDropdownTestingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDropdownTestingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
33
|
-
SkyDropdownTestingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDropdownTestingModule, exports: [popovers.SkyDropdownModule] });
|
|
34
|
-
SkyDropdownTestingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDropdownTestingModule, imports: [popovers.SkyDropdownModule] });
|
|
35
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyDropdownTestingModule, decorators: [{
|
|
36
|
-
type: i0.NgModule,
|
|
37
|
-
args: [{
|
|
38
|
-
exports: [popovers.SkyDropdownModule],
|
|
39
|
-
}]
|
|
40
|
-
}] });
|
|
41
|
-
|
|
42
|
-
/*! *****************************************************************************
|
|
43
|
-
Copyright (c) Microsoft Corporation.
|
|
44
|
-
|
|
45
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
46
|
-
purpose with or without fee is hereby granted.
|
|
47
|
-
|
|
48
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
49
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
50
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
51
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
52
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
53
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
54
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
55
|
-
***************************************************************************** */
|
|
56
|
-
/* global Reflect, Promise */
|
|
57
|
-
var extendStatics = function (d, b) {
|
|
58
|
-
extendStatics = Object.setPrototypeOf ||
|
|
59
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
60
|
-
function (d, b) { for (var p in b)
|
|
61
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
62
|
-
d[p] = b[p]; };
|
|
63
|
-
return extendStatics(d, b);
|
|
64
|
-
};
|
|
65
|
-
function __extends(d, b) {
|
|
66
|
-
if (typeof b !== "function" && b !== null)
|
|
67
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
68
|
-
extendStatics(d, b);
|
|
69
|
-
function __() { this.constructor = d; }
|
|
70
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
71
|
-
}
|
|
72
|
-
var __assign = function () {
|
|
73
|
-
__assign = Object.assign || function __assign(t) {
|
|
74
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
75
|
-
s = arguments[i];
|
|
76
|
-
for (var p in s)
|
|
77
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
78
|
-
t[p] = s[p];
|
|
79
|
-
}
|
|
80
|
-
return t;
|
|
81
|
-
};
|
|
82
|
-
return __assign.apply(this, arguments);
|
|
83
|
-
};
|
|
84
|
-
function __rest(s, e) {
|
|
85
|
-
var t = {};
|
|
86
|
-
for (var p in s)
|
|
87
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
88
|
-
t[p] = s[p];
|
|
89
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
90
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
91
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
92
|
-
t[p[i]] = s[p[i]];
|
|
93
|
-
}
|
|
94
|
-
return t;
|
|
95
|
-
}
|
|
96
|
-
function __decorate(decorators, target, key, desc) {
|
|
97
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
98
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
99
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
100
|
-
else
|
|
101
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
102
|
-
if (d = decorators[i])
|
|
103
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
104
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
105
|
-
}
|
|
106
|
-
function __param(paramIndex, decorator) {
|
|
107
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
108
|
-
}
|
|
109
|
-
function __metadata(metadataKey, metadataValue) {
|
|
110
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
111
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
112
|
-
}
|
|
113
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
114
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
115
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
116
|
-
function fulfilled(value) { try {
|
|
117
|
-
step(generator.next(value));
|
|
118
|
-
}
|
|
119
|
-
catch (e) {
|
|
120
|
-
reject(e);
|
|
121
|
-
} }
|
|
122
|
-
function rejected(value) { try {
|
|
123
|
-
step(generator["throw"](value));
|
|
124
|
-
}
|
|
125
|
-
catch (e) {
|
|
126
|
-
reject(e);
|
|
127
|
-
} }
|
|
128
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
129
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
function __generator(thisArg, body) {
|
|
133
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
134
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
135
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
136
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
137
|
-
function step(op) {
|
|
138
|
-
if (f)
|
|
139
|
-
throw new TypeError("Generator is already executing.");
|
|
140
|
-
while (_)
|
|
141
|
-
try {
|
|
142
|
-
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)
|
|
143
|
-
return t;
|
|
144
|
-
if (y = 0, t)
|
|
145
|
-
op = [op[0] & 2, t.value];
|
|
146
|
-
switch (op[0]) {
|
|
147
|
-
case 0:
|
|
148
|
-
case 1:
|
|
149
|
-
t = op;
|
|
150
|
-
break;
|
|
151
|
-
case 4:
|
|
152
|
-
_.label++;
|
|
153
|
-
return { value: op[1], done: false };
|
|
154
|
-
case 5:
|
|
155
|
-
_.label++;
|
|
156
|
-
y = op[1];
|
|
157
|
-
op = [0];
|
|
158
|
-
continue;
|
|
159
|
-
case 7:
|
|
160
|
-
op = _.ops.pop();
|
|
161
|
-
_.trys.pop();
|
|
162
|
-
continue;
|
|
163
|
-
default:
|
|
164
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
165
|
-
_ = 0;
|
|
166
|
-
continue;
|
|
167
|
-
}
|
|
168
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
169
|
-
_.label = op[1];
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
173
|
-
_.label = t[1];
|
|
174
|
-
t = op;
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
if (t && _.label < t[2]) {
|
|
178
|
-
_.label = t[2];
|
|
179
|
-
_.ops.push(op);
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
if (t[2])
|
|
183
|
-
_.ops.pop();
|
|
184
|
-
_.trys.pop();
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
op = body.call(thisArg, _);
|
|
188
|
-
}
|
|
189
|
-
catch (e) {
|
|
190
|
-
op = [6, e];
|
|
191
|
-
y = 0;
|
|
192
|
-
}
|
|
193
|
-
finally {
|
|
194
|
-
f = t = 0;
|
|
195
|
-
}
|
|
196
|
-
if (op[0] & 5)
|
|
197
|
-
throw op[1];
|
|
198
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
202
|
-
if (k2 === undefined)
|
|
203
|
-
k2 = k;
|
|
204
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
205
|
-
}) : (function (o, m, k, k2) {
|
|
206
|
-
if (k2 === undefined)
|
|
207
|
-
k2 = k;
|
|
208
|
-
o[k2] = m[k];
|
|
209
|
-
});
|
|
210
|
-
function __exportStar(m, o) {
|
|
211
|
-
for (var p in m)
|
|
212
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
213
|
-
__createBinding(o, m, p);
|
|
214
|
-
}
|
|
215
|
-
function __values(o) {
|
|
216
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
217
|
-
if (m)
|
|
218
|
-
return m.call(o);
|
|
219
|
-
if (o && typeof o.length === "number")
|
|
220
|
-
return {
|
|
221
|
-
next: function () {
|
|
222
|
-
if (o && i >= o.length)
|
|
223
|
-
o = void 0;
|
|
224
|
-
return { value: o && o[i++], done: !o };
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
228
|
-
}
|
|
229
|
-
function __read(o, n) {
|
|
230
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
231
|
-
if (!m)
|
|
232
|
-
return o;
|
|
233
|
-
var i = m.call(o), r, ar = [], e;
|
|
234
|
-
try {
|
|
235
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
236
|
-
ar.push(r.value);
|
|
237
|
-
}
|
|
238
|
-
catch (error) {
|
|
239
|
-
e = { error: error };
|
|
240
|
-
}
|
|
241
|
-
finally {
|
|
242
|
-
try {
|
|
243
|
-
if (r && !r.done && (m = i["return"]))
|
|
244
|
-
m.call(i);
|
|
245
|
-
}
|
|
246
|
-
finally {
|
|
247
|
-
if (e)
|
|
248
|
-
throw e.error;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return ar;
|
|
252
|
-
}
|
|
253
|
-
/** @deprecated */
|
|
254
|
-
function __spread() {
|
|
255
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
256
|
-
ar = ar.concat(__read(arguments[i]));
|
|
257
|
-
return ar;
|
|
258
|
-
}
|
|
259
|
-
/** @deprecated */
|
|
260
|
-
function __spreadArrays() {
|
|
261
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
262
|
-
s += arguments[i].length;
|
|
263
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
264
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
265
|
-
r[k] = a[j];
|
|
266
|
-
return r;
|
|
267
|
-
}
|
|
268
|
-
function __spreadArray(to, from, pack) {
|
|
269
|
-
if (pack || arguments.length === 2)
|
|
270
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
271
|
-
if (ar || !(i in from)) {
|
|
272
|
-
if (!ar)
|
|
273
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
274
|
-
ar[i] = from[i];
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
278
|
-
}
|
|
279
|
-
function __await(v) {
|
|
280
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
281
|
-
}
|
|
282
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
283
|
-
if (!Symbol.asyncIterator)
|
|
284
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
285
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
286
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
287
|
-
function verb(n) { if (g[n])
|
|
288
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
289
|
-
function resume(n, v) { try {
|
|
290
|
-
step(g[n](v));
|
|
291
|
-
}
|
|
292
|
-
catch (e) {
|
|
293
|
-
settle(q[0][3], e);
|
|
294
|
-
} }
|
|
295
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
296
|
-
function fulfill(value) { resume("next", value); }
|
|
297
|
-
function reject(value) { resume("throw", value); }
|
|
298
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
299
|
-
resume(q[0][0], q[0][1]); }
|
|
300
|
-
}
|
|
301
|
-
function __asyncDelegator(o) {
|
|
302
|
-
var i, p;
|
|
303
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
304
|
-
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; }
|
|
305
|
-
}
|
|
306
|
-
function __asyncValues(o) {
|
|
307
|
-
if (!Symbol.asyncIterator)
|
|
308
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
309
|
-
var m = o[Symbol.asyncIterator], i;
|
|
310
|
-
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);
|
|
311
|
-
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); }); }; }
|
|
312
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
313
|
-
}
|
|
314
|
-
function __makeTemplateObject(cooked, raw) {
|
|
315
|
-
if (Object.defineProperty) {
|
|
316
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
cooked.raw = raw;
|
|
320
|
-
}
|
|
321
|
-
return cooked;
|
|
322
|
-
}
|
|
323
|
-
;
|
|
324
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
325
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
326
|
-
}) : function (o, v) {
|
|
327
|
-
o["default"] = v;
|
|
328
|
-
};
|
|
329
|
-
function __importStar(mod) {
|
|
330
|
-
if (mod && mod.__esModule)
|
|
331
|
-
return mod;
|
|
332
|
-
var result = {};
|
|
333
|
-
if (mod != null)
|
|
334
|
-
for (var k in mod)
|
|
335
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
336
|
-
__createBinding(result, mod, k);
|
|
337
|
-
__setModuleDefault(result, mod);
|
|
338
|
-
return result;
|
|
339
|
-
}
|
|
340
|
-
function __importDefault(mod) {
|
|
341
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
342
|
-
}
|
|
343
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
344
|
-
if (kind === "a" && !f)
|
|
345
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
346
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
347
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
348
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
349
|
-
}
|
|
350
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
351
|
-
if (kind === "m")
|
|
352
|
-
throw new TypeError("Private method is not writable");
|
|
353
|
-
if (kind === "a" && !f)
|
|
354
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
355
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
356
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
357
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Provides information for and interaction with a SKY UX dropdown component.
|
|
362
|
-
* By using the fixture API, a test insulates itself against updates to the internals
|
|
363
|
-
* of a component, such as changing its DOM structure.
|
|
364
|
-
*/
|
|
365
|
-
var SkyDropdownFixture = /** @class */ (function () {
|
|
366
|
-
function SkyDropdownFixture(fixture, skyTestId) {
|
|
367
|
-
this.fixture = fixture;
|
|
368
|
-
this.debugEl = testing.SkyAppTestUtility.getDebugElementByTestId(fixture, skyTestId, 'sky-dropdown');
|
|
369
|
-
}
|
|
370
|
-
Object.defineProperty(SkyDropdownFixture.prototype, "dropdown", {
|
|
371
|
-
/**
|
|
372
|
-
* Returns information about the dropdown component.
|
|
373
|
-
*/
|
|
374
|
-
get: function () {
|
|
375
|
-
var button = this.buttonDebugElement;
|
|
376
|
-
if (!button) {
|
|
377
|
-
return;
|
|
378
|
-
}
|
|
379
|
-
return {
|
|
380
|
-
buttonStyle: this.getButtonStyle(button.classes),
|
|
381
|
-
buttonType: this.getButtonType(button.classes),
|
|
382
|
-
disabled: button.nativeElement.disabled,
|
|
383
|
-
label: button.nativeElement.getAttribute('aria-label'),
|
|
384
|
-
title: button.nativeElement.getAttribute('title'),
|
|
385
|
-
};
|
|
386
|
-
},
|
|
387
|
-
enumerable: false,
|
|
388
|
-
configurable: true
|
|
389
|
-
});
|
|
390
|
-
Object.defineProperty(SkyDropdownFixture.prototype, "dropdownButtonText", {
|
|
391
|
-
/**
|
|
392
|
-
* Returns the dropdown button's text.
|
|
393
|
-
*/
|
|
394
|
-
get: function () {
|
|
395
|
-
return testing.SkyAppTestUtility.getText(this.buttonDebugElement.nativeElement);
|
|
396
|
-
},
|
|
397
|
-
enumerable: false,
|
|
398
|
-
configurable: true
|
|
399
|
-
});
|
|
400
|
-
Object.defineProperty(SkyDropdownFixture.prototype, "dropdownMenu", {
|
|
401
|
-
/**
|
|
402
|
-
* Returns information about the dropdown menu component.
|
|
403
|
-
*/
|
|
404
|
-
get: function () {
|
|
405
|
-
var menu = this.getDropdownMenuContent();
|
|
406
|
-
if (!menu) {
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
return {
|
|
410
|
-
ariaLabelledBy: menu.getAttribute('aria-labelledby'),
|
|
411
|
-
ariaRole: menu.getAttribute('role'),
|
|
412
|
-
};
|
|
413
|
-
},
|
|
414
|
-
enumerable: false,
|
|
415
|
-
configurable: true
|
|
416
|
-
});
|
|
417
|
-
Object.defineProperty(SkyDropdownFixture.prototype, "dropdownMenuIsVisible", {
|
|
418
|
-
/**
|
|
419
|
-
* Indicates if the dropdown menu is open and visible.
|
|
420
|
-
*/
|
|
421
|
-
get: function () {
|
|
422
|
-
return this.getDropdownMenuContent() !== undefined;
|
|
423
|
-
},
|
|
424
|
-
enumerable: false,
|
|
425
|
-
configurable: true
|
|
426
|
-
});
|
|
427
|
-
Object.defineProperty(SkyDropdownFixture.prototype, "buttonDebugElement", {
|
|
428
|
-
get: function () {
|
|
429
|
-
return this.debugEl.query(platformBrowser.By.css('.sky-dropdown-button'));
|
|
430
|
-
},
|
|
431
|
-
enumerable: false,
|
|
432
|
-
configurable: true
|
|
433
|
-
});
|
|
434
|
-
/**
|
|
435
|
-
* Click the dropdown button to open or close the dropdown menu.
|
|
436
|
-
*/
|
|
437
|
-
SkyDropdownFixture.prototype.clickDropdownButton = function () {
|
|
438
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
439
|
-
return __generator(this, function (_a) {
|
|
440
|
-
this.buttonDebugElement.nativeElement.click();
|
|
441
|
-
this.fixture.detectChanges();
|
|
442
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
443
|
-
});
|
|
444
|
-
});
|
|
445
|
-
};
|
|
446
|
-
/**
|
|
447
|
-
* Click the dropdown item at the provided index.
|
|
448
|
-
*/
|
|
449
|
-
SkyDropdownFixture.prototype.clickDropdownItem = function (index) {
|
|
450
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
451
|
-
var itemEls;
|
|
452
|
-
return __generator(this, function (_a) {
|
|
453
|
-
itemEls = this.getDropdownItemEls();
|
|
454
|
-
if (index >= itemEls.length) {
|
|
455
|
-
throw new Error("There is no dropdown item at index " + index + ".");
|
|
456
|
-
}
|
|
457
|
-
itemEls[index].querySelector('button,a').click();
|
|
458
|
-
this.fixture.detectChanges();
|
|
459
|
-
return [2 /*return*/, this.fixture.whenStable()];
|
|
460
|
-
});
|
|
461
|
-
});
|
|
462
|
-
};
|
|
463
|
-
/**
|
|
464
|
-
* Returns information about the dropdown item at the provided index.
|
|
465
|
-
*/
|
|
466
|
-
SkyDropdownFixture.prototype.getDropdownItem = function (index) {
|
|
467
|
-
var itemEls = this.getDropdownItemEls();
|
|
468
|
-
if (index >= itemEls.length) {
|
|
469
|
-
throw new Error("There is no dropdown item at index " + index + ".");
|
|
470
|
-
}
|
|
471
|
-
var item = itemEls[index];
|
|
472
|
-
if (!item) {
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
return {
|
|
476
|
-
ariaRole: item.getAttribute('role'),
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
/**
|
|
480
|
-
* Returns the contents of the dropdown menu.
|
|
481
|
-
*/
|
|
482
|
-
SkyDropdownFixture.prototype.getDropdownMenuContent = function () {
|
|
483
|
-
var overlay = this.getOverlay();
|
|
484
|
-
if (!overlay) {
|
|
485
|
-
return;
|
|
486
|
-
}
|
|
487
|
-
return overlay.querySelector('.sky-dropdown-menu');
|
|
488
|
-
};
|
|
489
|
-
SkyDropdownFixture.prototype.getDropdownItemEls = function () {
|
|
490
|
-
var overlay = this.getOverlay();
|
|
491
|
-
if (!overlay) {
|
|
492
|
-
return;
|
|
493
|
-
}
|
|
494
|
-
return overlay.querySelectorAll('.sky-dropdown-item');
|
|
495
|
-
};
|
|
496
|
-
SkyDropdownFixture.prototype.getOverlay = function () {
|
|
497
|
-
return document.querySelector('sky-overlay');
|
|
498
|
-
};
|
|
499
|
-
SkyDropdownFixture.prototype.getButtonStyle = function (classNames) {
|
|
500
|
-
if (classNames['sky-btn-primary']) {
|
|
501
|
-
return 'primary';
|
|
502
|
-
}
|
|
503
|
-
if (classNames['sky-btn-default']) {
|
|
504
|
-
return 'default';
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
SkyDropdownFixture.prototype.getButtonType = function (classNames) {
|
|
508
|
-
var prefix = 'sky-dropdown-button-type-';
|
|
509
|
-
for (var i in classNames) {
|
|
510
|
-
if (classNames[i]) {
|
|
511
|
-
if (i.indexOf(prefix) > -1) {
|
|
512
|
-
return i.replace(prefix, '');
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
return undefined;
|
|
517
|
-
};
|
|
518
|
-
return SkyDropdownFixture;
|
|
519
|
-
}());
|
|
520
|
-
|
|
521
|
-
var SkyPopoverTestingModule = /** @class */ (function () {
|
|
522
|
-
function SkyPopoverTestingModule() {
|
|
523
|
-
}
|
|
524
|
-
return SkyPopoverTestingModule;
|
|
525
|
-
}());
|
|
526
|
-
SkyPopoverTestingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPopoverTestingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
527
|
-
SkyPopoverTestingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPopoverTestingModule, imports: [theme.SkyThemeModule], exports: [popovers.SkyPopoverModule,
|
|
528
|
-
// The noop animations module needs to be loaded last to avoid
|
|
529
|
-
// subsequent modules adding animations and overriding this.
|
|
530
|
-
animations.NoopAnimationsModule] });
|
|
531
|
-
SkyPopoverTestingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPopoverTestingModule, imports: [[theme.SkyThemeModule], popovers.SkyPopoverModule,
|
|
532
|
-
// The noop animations module needs to be loaded last to avoid
|
|
533
|
-
// subsequent modules adding animations and overriding this.
|
|
534
|
-
animations.NoopAnimationsModule] });
|
|
535
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyPopoverTestingModule, decorators: [{
|
|
536
|
-
type: i0.NgModule,
|
|
537
|
-
args: [{
|
|
538
|
-
exports: [
|
|
539
|
-
popovers.SkyPopoverModule,
|
|
540
|
-
// The noop animations module needs to be loaded last to avoid
|
|
541
|
-
// subsequent modules adding animations and overriding this.
|
|
542
|
-
animations.NoopAnimationsModule,
|
|
543
|
-
],
|
|
544
|
-
imports: [theme.SkyThemeModule],
|
|
545
|
-
}]
|
|
546
|
-
}] });
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* Provides information for and interaction with a SKY UX popover component.
|
|
550
|
-
* By using the fixture API, a test insulates itself against updates to the internals
|
|
551
|
-
* of a component, such as changing its DOM structure.
|
|
552
|
-
*/
|
|
553
|
-
var SkyPopoverFixture = /** @class */ (function () {
|
|
554
|
-
function SkyPopoverFixture(fixture) {
|
|
555
|
-
this.fixture = fixture;
|
|
556
|
-
}
|
|
557
|
-
Object.defineProperty(SkyPopoverFixture.prototype, "alignment", {
|
|
558
|
-
/**
|
|
559
|
-
* Returns the popover alignment if the popover is open, otherwise undefined.
|
|
560
|
-
*/
|
|
561
|
-
get: function () {
|
|
562
|
-
return this.getClassSuffixByClassPrefix(this.containerElement, 'sky-popover-alignment-');
|
|
563
|
-
},
|
|
564
|
-
enumerable: false,
|
|
565
|
-
configurable: true
|
|
566
|
-
});
|
|
567
|
-
Object.defineProperty(SkyPopoverFixture.prototype, "body", {
|
|
568
|
-
/**
|
|
569
|
-
* Returns the popover body element if the popover is open, otherwise undefined.
|
|
570
|
-
*/
|
|
571
|
-
get: function () {
|
|
572
|
-
return this.bodyElement;
|
|
573
|
-
},
|
|
574
|
-
enumerable: false,
|
|
575
|
-
configurable: true
|
|
576
|
-
});
|
|
577
|
-
Object.defineProperty(SkyPopoverFixture.prototype, "placement", {
|
|
578
|
-
/**
|
|
579
|
-
* Returns the popover position if the popover is open, otherwise undefined.
|
|
580
|
-
*/
|
|
581
|
-
get: function () {
|
|
582
|
-
return this.getClassSuffixByClassPrefix(this.containerElement, 'sky-popover-placement-');
|
|
583
|
-
},
|
|
584
|
-
enumerable: false,
|
|
585
|
-
configurable: true
|
|
586
|
-
});
|
|
587
|
-
Object.defineProperty(SkyPopoverFixture.prototype, "popoverTitle", {
|
|
588
|
-
/**
|
|
589
|
-
* Returns the popover title text if the popover is open, otherwise undefined.
|
|
590
|
-
*/
|
|
591
|
-
get: function () {
|
|
592
|
-
return testing.SkyAppTestUtility.getText(this.titleElement);
|
|
593
|
-
},
|
|
594
|
-
enumerable: false,
|
|
595
|
-
configurable: true
|
|
596
|
-
});
|
|
597
|
-
Object.defineProperty(SkyPopoverFixture.prototype, "popoverIsVisible", {
|
|
598
|
-
/**
|
|
599
|
-
* Indicates if the popover is open and visible.
|
|
600
|
-
*/
|
|
601
|
-
get: function () {
|
|
602
|
-
return this.contentElement !== undefined;
|
|
603
|
-
},
|
|
604
|
-
enumerable: false,
|
|
605
|
-
configurable: true
|
|
606
|
-
});
|
|
607
|
-
/**
|
|
608
|
-
* Triggers the blur event for the popover.
|
|
609
|
-
*/
|
|
610
|
-
SkyPopoverFixture.prototype.blur = function () {
|
|
611
|
-
// close the popover by changing focus to the body element
|
|
612
|
-
testing.SkyAppTestUtility.fireDomEvent(window.document.body, 'click');
|
|
613
|
-
this.fixture.detectChanges();
|
|
614
|
-
return this.fixture.whenStable();
|
|
615
|
-
};
|
|
616
|
-
Object.defineProperty(SkyPopoverFixture.prototype, "contentElement", {
|
|
617
|
-
//#region helpers
|
|
618
|
-
get: function () {
|
|
619
|
-
return this.queryOverlay('sky-popover-content');
|
|
620
|
-
},
|
|
621
|
-
enumerable: false,
|
|
622
|
-
configurable: true
|
|
623
|
-
});
|
|
624
|
-
Object.defineProperty(SkyPopoverFixture.prototype, "containerElement", {
|
|
625
|
-
get: function () {
|
|
626
|
-
return this.queryOverlay('.sky-popover-container');
|
|
627
|
-
},
|
|
628
|
-
enumerable: false,
|
|
629
|
-
configurable: true
|
|
630
|
-
});
|
|
631
|
-
Object.defineProperty(SkyPopoverFixture.prototype, "titleElement", {
|
|
632
|
-
get: function () {
|
|
633
|
-
return this.queryOverlay('.sky-popover-title');
|
|
634
|
-
},
|
|
635
|
-
enumerable: false,
|
|
636
|
-
configurable: true
|
|
637
|
-
});
|
|
638
|
-
Object.defineProperty(SkyPopoverFixture.prototype, "bodyElement", {
|
|
639
|
-
get: function () {
|
|
640
|
-
return this.queryOverlay('.sky-popover-body');
|
|
641
|
-
},
|
|
642
|
-
enumerable: false,
|
|
643
|
-
configurable: true
|
|
644
|
-
});
|
|
645
|
-
SkyPopoverFixture.prototype.getOverlay = function () {
|
|
646
|
-
return document.querySelector('sky-overlay');
|
|
647
|
-
};
|
|
648
|
-
SkyPopoverFixture.prototype.queryOverlay = function (query) {
|
|
649
|
-
var overlay = this.getOverlay();
|
|
650
|
-
return !overlay ? undefined : overlay.querySelector(query);
|
|
651
|
-
};
|
|
652
|
-
/**
|
|
653
|
-
* Searches the element's class names for a class which matches a given prefix.
|
|
654
|
-
* If a match is found, the prefix is trimmed from the class name and the suffix is returned.
|
|
655
|
-
* If no class matching the prefix is found, undefined is returned.
|
|
656
|
-
*
|
|
657
|
-
* Example:
|
|
658
|
-
* For a class 'sky-popover-placement-right', passing the prefix 'sky-popover-placement-'
|
|
659
|
-
* should return the value 'right'.
|
|
660
|
-
* @param prefix
|
|
661
|
-
*/
|
|
662
|
-
SkyPopoverFixture.prototype.getClassSuffixByClassPrefix = function (element, prefix) {
|
|
663
|
-
var containerClasses = element === null || element === void 0 ? void 0 : element.className.split(' ');
|
|
664
|
-
var prefixedClass = containerClasses === null || containerClasses === void 0 ? void 0 : containerClasses.find(function (x) { return x.startsWith(prefix); });
|
|
665
|
-
return !prefixedClass ? undefined : prefixedClass.slice(prefix.length);
|
|
666
|
-
};
|
|
667
|
-
return SkyPopoverFixture;
|
|
668
|
-
}());
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* Generated bundle index. Do not edit.
|
|
672
|
-
*/
|
|
673
|
-
|
|
674
|
-
exports.SkyDropdownFixture = SkyDropdownFixture;
|
|
675
|
-
exports.SkyDropdownTestingModule = SkyDropdownTestingModule;
|
|
676
|
-
exports.SkyPopoverFixture = SkyPopoverFixture;
|
|
677
|
-
exports.SkyPopoverTestingModule = SkyPopoverTestingModule;
|
|
678
|
-
|
|
679
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
680
|
-
|
|
681
|
-
}));
|
|
682
|
-
//# sourceMappingURL=skyux-popovers-testing.umd.js.map
|