@skyux/modals 5.0.0 → 5.0.4
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/bundles/skyux-modals-testing.umd.js +4 -6
- package/bundles/skyux-modals.umd.js +181 -180
- package/documentation.json +417 -346
- package/esm2015/modules/confirm/confirm-button.js +1 -1
- package/esm2015/modules/confirm/confirm-config.js +1 -1
- package/esm2015/modules/confirm/confirm-instance.js +1 -1
- package/esm2015/modules/confirm/confirm-modal-context.js +1 -1
- package/esm2015/modules/confirm/confirm-type.js +1 -1
- package/esm2015/modules/confirm/confirm.component.js +20 -18
- package/esm2015/modules/confirm/confirm.module.js +10 -16
- package/esm2015/modules/confirm/confirm.service.js +11 -9
- package/esm2015/modules/modal/modal-adapter.service.js +4 -4
- package/esm2015/modules/modal/modal-before-close-handler.js +1 -1
- package/esm2015/modules/modal/modal-component-adapter.service.js +9 -8
- package/esm2015/modules/modal/modal-configuration.js +5 -5
- package/esm2015/modules/modal/modal-content.component.js +5 -5
- package/esm2015/modules/modal/modal-footer.component.js +5 -5
- package/esm2015/modules/modal/modal-header.component.js +5 -7
- package/esm2015/modules/modal/modal-host.component.js +11 -13
- package/esm2015/modules/modal/modal-host.service.js +8 -7
- package/esm2015/modules/modal/modal-instance.js +1 -1
- package/esm2015/modules/modal/modal-scroll-shadow-event-args.js +1 -1
- package/esm2015/modules/modal/modal-scroll-shadow.directive.js +11 -13
- package/esm2015/modules/modal/modal-state-animation.js +4 -9
- package/esm2015/modules/modal/modal.component.js +26 -25
- package/esm2015/modules/modal/modal.interface.js +1 -1
- package/esm2015/modules/modal/modal.module.js +10 -12
- package/esm2015/modules/modal/modal.service.js +14 -16
- package/esm2015/modules/shared/sky-modals-resources.module.js +25 -12
- package/esm2015/testing/modal-fixture.js +3 -5
- package/fesm2015/skyux-modals-testing.js +2 -4
- package/fesm2015/skyux-modals-testing.js.map +1 -1
- package/fesm2015/skyux-modals.js +161 -162
- package/fesm2015/skyux-modals.js.map +1 -1
- package/modules/modal/modal-before-close-handler.d.ts +1 -1
- package/modules/modal/modal-configuration.d.ts +1 -0
- package/modules/modal/modal.component.d.ts +1 -0
- package/modules/modal/modal.interface.d.ts +5 -0
- package/modules/modal/modal.service.d.ts +0 -4
- package/package.json +8 -8
- package/bundles/skyux-modals-testing.umd.js.map +0 -1
- package/bundles/skyux-modals.umd.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@skyux/theme'), require('@angular/router'), require('@skyux/indicators'), require('@skyux/i18n'), require('rxjs/operators'), require('@skyux/core'), require('rxjs'), require('@angular/animations')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@skyux/modals', ['exports', '@angular/core', '@angular/common', '@skyux/theme', '@angular/router', '@skyux/indicators', '@skyux/i18n', 'rxjs/operators', '@skyux/core', 'rxjs', '@angular/animations'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux.modals = {}), global.ng.core, global.ng.common, global.i1, global.ng.router, global.i5, global.i3, global.rxjs.operators, global.i3$1, global.rxjs, global.ng.animations));
|
|
5
|
-
}(this, (function (exports, i0, i6, i1, i2, i5, i3, operators, i3$1, rxjs, animations) { 'use strict';
|
|
5
|
+
})(this, (function (exports, i0, i6, i1, i2, i5, i3, operators, i3$1, rxjs, animations) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -83,7 +81,16 @@
|
|
|
83
81
|
* To update this file, simply rerun the command.
|
|
84
82
|
*/
|
|
85
83
|
var RESOURCES = {
|
|
86
|
-
'EN-US': {
|
|
84
|
+
'EN-US': {
|
|
85
|
+
skyux_confirm_dialog_default_ok_text: { message: 'OK' },
|
|
86
|
+
skyux_confirm_dialog_default_yes_text: { message: 'Yes' },
|
|
87
|
+
skyux_confirm_dialog_default_no_text: { message: 'No' },
|
|
88
|
+
skyux_confirm_dialog_default_cancel_text: { message: 'Cancel' },
|
|
89
|
+
skyux_modal_close: { message: 'Close modal' },
|
|
90
|
+
skyux_modal_open_help: { message: 'Open Help' },
|
|
91
|
+
skyux_modal_footer_cancel_button: { message: 'Cancel' },
|
|
92
|
+
skyux_modal_footer_primary_button: { message: 'Save' },
|
|
93
|
+
},
|
|
87
94
|
};
|
|
88
95
|
var SkyModalsResourcesProvider = /** @class */ (function () {
|
|
89
96
|
function SkyModalsResourcesProvider() {
|
|
@@ -101,22 +108,26 @@
|
|
|
101
108
|
}
|
|
102
109
|
return SkyModalsResourcesModule;
|
|
103
110
|
}());
|
|
104
|
-
SkyModalsResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
105
|
-
SkyModalsResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
106
|
-
SkyModalsResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
111
|
+
SkyModalsResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalsResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
112
|
+
SkyModalsResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalsResourcesModule, exports: [i3.SkyI18nModule] });
|
|
113
|
+
SkyModalsResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalsResourcesModule, providers: [
|
|
114
|
+
{
|
|
107
115
|
provide: i3.SKY_LIB_RESOURCES_PROVIDERS,
|
|
108
116
|
useClass: SkyModalsResourcesProvider,
|
|
109
|
-
multi: true
|
|
110
|
-
}
|
|
111
|
-
|
|
117
|
+
multi: true,
|
|
118
|
+
},
|
|
119
|
+
], imports: [i3.SkyI18nModule] });
|
|
120
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalsResourcesModule, decorators: [{
|
|
112
121
|
type: i0.NgModule,
|
|
113
122
|
args: [{
|
|
114
123
|
exports: [i3.SkyI18nModule],
|
|
115
|
-
providers: [
|
|
124
|
+
providers: [
|
|
125
|
+
{
|
|
116
126
|
provide: i3.SKY_LIB_RESOURCES_PROVIDERS,
|
|
117
127
|
useClass: SkyModalsResourcesProvider,
|
|
118
|
-
multi: true
|
|
119
|
-
}
|
|
128
|
+
multi: true,
|
|
129
|
+
},
|
|
130
|
+
],
|
|
120
131
|
}]
|
|
121
132
|
}] });
|
|
122
133
|
|
|
@@ -128,15 +139,15 @@
|
|
|
128
139
|
}
|
|
129
140
|
return SkyModalContentComponent;
|
|
130
141
|
}());
|
|
131
|
-
SkyModalContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
132
|
-
SkyModalContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
133
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
142
|
+
SkyModalContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
143
|
+
SkyModalContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyModalContentComponent, selector: "sky-modal-content", ngImport: i0__namespace, template: "<ng-content></ng-content>\n", styles: ["sky-modal-content{display:block;min-height:100%}.sky-theme-modern sky-modal-content{padding:10px 30px 30px}\n"], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
144
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalContentComponent, decorators: [{
|
|
134
145
|
type: i0.Component,
|
|
135
146
|
args: [{
|
|
136
147
|
selector: 'sky-modal-content',
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
148
|
+
template: "<ng-content></ng-content>\n",
|
|
149
|
+
styles: ["sky-modal-content{display:block;min-height:100%}.sky-theme-modern sky-modal-content{padding:10px 30px 30px}\n"],
|
|
150
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
140
151
|
}]
|
|
141
152
|
}] });
|
|
142
153
|
|
|
@@ -148,14 +159,14 @@
|
|
|
148
159
|
}
|
|
149
160
|
return SkyModalFooterComponent;
|
|
150
161
|
}());
|
|
151
|
-
SkyModalFooterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
152
|
-
SkyModalFooterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
153
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
162
|
+
SkyModalFooterComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalFooterComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
163
|
+
SkyModalFooterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyModalFooterComponent, selector: "sky-modal-footer", ngImport: i0__namespace, template: "<div class=\"sky-modal-footer-container sky-padding-even-large\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-modal-footer-container{background-color:#fff;border-top:1px solid #e2e3e4}.sky-modal-footer-container ::ng-deep .sky-btn-link:first-child{margin-left:-12px}:host-context(.sky-theme-modern) .sky-modal-footer-container{border-top:none;padding:20px 30px}.sky-theme-modern .sky-modal-footer-container{border-top:none;padding:20px 30px}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-footer-container{background-color:transparent}.sky-theme-modern.sky-theme-mode-dark .sky-modal-footer-container{background-color:transparent}\n"] });
|
|
164
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalFooterComponent, decorators: [{
|
|
154
165
|
type: i0.Component,
|
|
155
166
|
args: [{
|
|
156
167
|
selector: 'sky-modal-footer',
|
|
157
|
-
|
|
158
|
-
|
|
168
|
+
template: "<div class=\"sky-modal-footer-container sky-padding-even-large\">\n <ng-content></ng-content>\n</div>\n",
|
|
169
|
+
styles: [".sky-modal-footer-container{background-color:#fff;border-top:1px solid #e2e3e4}.sky-modal-footer-container ::ng-deep .sky-btn-link:first-child{margin-left:-12px}:host-context(.sky-theme-modern) .sky-modal-footer-container{border-top:none;padding:20px 30px}.sky-theme-modern .sky-modal-footer-container{border-top:none;padding:20px 30px}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-footer-container{background-color:transparent}.sky-theme-modern.sky-theme-mode-dark .sky-modal-footer-container{background-color:transparent}\n"],
|
|
159
170
|
}]
|
|
160
171
|
}] });
|
|
161
172
|
|
|
@@ -167,16 +178,14 @@
|
|
|
167
178
|
}
|
|
168
179
|
return SkyModalHeaderComponent;
|
|
169
180
|
}());
|
|
170
|
-
SkyModalHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
171
|
-
SkyModalHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
172
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
181
|
+
SkyModalHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
182
|
+
SkyModalHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyModalHeaderComponent, selector: "sky-modal-header", ngImport: i0__namespace, template: "<h1\n class=\"sky-emphasized\"\n [skyThemeClass]=\"{\n 'sky-font-display-3': 'modern'\n }\"\n>\n <ng-content></ng-content>\n</h1>\n", styles: ["h1{margin:0;line-height:1.2}:host-context(.sky-theme-modern.sky-theme-mode-dark) h1{color:#fbfcfe}.sky-theme-modern.sky-theme-mode-dark h1{color:#fbfcfe}\n"], directives: [{ type: i1__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }] });
|
|
183
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalHeaderComponent, decorators: [{
|
|
173
184
|
type: i0.Component,
|
|
174
185
|
args: [{
|
|
175
186
|
selector: 'sky-modal-header',
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
'./modal-header.component.scss'
|
|
179
|
-
]
|
|
187
|
+
template: "<h1\n class=\"sky-emphasized\"\n [skyThemeClass]=\"{\n 'sky-font-display-3': 'modern'\n }\"\n>\n <ng-content></ng-content>\n</h1>\n",
|
|
188
|
+
styles: ["h1{margin:0;line-height:1.2}:host-context(.sky-theme-modern.sky-theme-mode-dark) h1{color:#fbfcfe}.sky-theme-modern.sky-theme-mode-dark h1{color:#fbfcfe}\n"],
|
|
180
189
|
}]
|
|
181
190
|
}] });
|
|
182
191
|
|
|
@@ -218,9 +227,9 @@
|
|
|
218
227
|
}());
|
|
219
228
|
SkyModalAdapterService.MODAL_BODY_FULL_CLASS = 'sky-modal-body-full-page';
|
|
220
229
|
SkyModalAdapterService.MODAL_BODY_CLASS = 'sky-modal-body-open';
|
|
221
|
-
SkyModalAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
222
|
-
SkyModalAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
223
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
230
|
+
SkyModalAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalAdapterService, deps: [{ token: i3__namespace.SkyAppWindowRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
231
|
+
SkyModalAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalAdapterService });
|
|
232
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalAdapterService, decorators: [{
|
|
224
233
|
type: i0.Injectable
|
|
225
234
|
}], ctorParameters: function () { return [{ type: i3__namespace.SkyAppWindowRef }]; } });
|
|
226
235
|
|
|
@@ -259,7 +268,8 @@
|
|
|
259
268
|
});
|
|
260
269
|
Object.defineProperty(SkyModalHostService, "backdropZIndex", {
|
|
261
270
|
get: function () {
|
|
262
|
-
return SkyModalHostService.BASE_Z_INDEX +
|
|
271
|
+
return (SkyModalHostService.BASE_Z_INDEX +
|
|
272
|
+
SkyModalHostService.modalHosts.length * 10);
|
|
263
273
|
},
|
|
264
274
|
enumerable: false,
|
|
265
275
|
configurable: true
|
|
@@ -288,12 +298,12 @@
|
|
|
288
298
|
return SkyModalHostService;
|
|
289
299
|
}());
|
|
290
300
|
SkyModalHostService.modalHosts = [];
|
|
291
|
-
SkyModalHostService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
292
|
-
SkyModalHostService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
293
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
301
|
+
SkyModalHostService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalHostService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
302
|
+
SkyModalHostService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalHostService, providedIn: 'root' });
|
|
303
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalHostService, decorators: [{
|
|
294
304
|
type: i0.Injectable,
|
|
295
305
|
args: [{
|
|
296
|
-
providedIn: 'root'
|
|
306
|
+
providedIn: 'root',
|
|
297
307
|
}]
|
|
298
308
|
}], ctorParameters: function () { return []; } });
|
|
299
309
|
|
|
@@ -307,12 +317,12 @@
|
|
|
307
317
|
}
|
|
308
318
|
return SkyModalConfiguration;
|
|
309
319
|
}());
|
|
310
|
-
SkyModalConfiguration.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
311
|
-
SkyModalConfiguration.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
312
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
320
|
+
SkyModalConfiguration.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalConfiguration, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
321
|
+
SkyModalConfiguration.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalConfiguration, providedIn: 'any' });
|
|
322
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalConfiguration, decorators: [{
|
|
313
323
|
type: i0.Injectable,
|
|
314
324
|
args: [{
|
|
315
|
-
providedIn: 'any'
|
|
325
|
+
providedIn: 'any',
|
|
316
326
|
}]
|
|
317
327
|
}], ctorParameters: function () { return []; } });
|
|
318
328
|
|
|
@@ -351,18 +361,18 @@
|
|
|
351
361
|
var isOpen = true;
|
|
352
362
|
params.providers.push({
|
|
353
363
|
provide: SkyModalHostService,
|
|
354
|
-
useValue: hostService
|
|
364
|
+
useValue: hostService,
|
|
355
365
|
});
|
|
356
366
|
params.providers.push({
|
|
357
367
|
provide: SkyModalConfiguration,
|
|
358
|
-
useValue: params
|
|
368
|
+
useValue: params,
|
|
359
369
|
});
|
|
360
370
|
adapter.setPageScroll(SkyModalHostService.openModalCount > 0);
|
|
361
371
|
adapter.toggleFullPageModalClass(SkyModalHostService.fullPageModalCount > 0);
|
|
362
372
|
var providers = params.providers || /* istanbul ignore next */ [];
|
|
363
373
|
var injector = i0.Injector.create({
|
|
364
374
|
providers: providers,
|
|
365
|
-
parent: this.injector
|
|
375
|
+
parent: this.injector,
|
|
366
376
|
});
|
|
367
377
|
var modalComponentRef = this.target.createComponent(factory, undefined, injector);
|
|
368
378
|
modalInstance.componentInstance = modalComponentRef.instance;
|
|
@@ -383,9 +393,7 @@
|
|
|
383
393
|
hostService.close.subscribe(function () {
|
|
384
394
|
modalInstance.close();
|
|
385
395
|
});
|
|
386
|
-
this.router.events
|
|
387
|
-
.pipe(operators.takeWhile(function () { return isOpen; }))
|
|
388
|
-
.subscribe(function (event) {
|
|
396
|
+
this.router.events.pipe(operators.takeWhile(function () { return isOpen; })).subscribe(function (event) {
|
|
389
397
|
/* istanbul ignore else */
|
|
390
398
|
if (event instanceof i2.NavigationStart) {
|
|
391
399
|
modalInstance.close();
|
|
@@ -400,21 +408,21 @@
|
|
|
400
408
|
};
|
|
401
409
|
return SkyModalHostComponent;
|
|
402
410
|
}());
|
|
403
|
-
SkyModalHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
404
|
-
SkyModalHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
405
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
411
|
+
SkyModalHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalHostComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: SkyModalAdapterService }, { token: i0__namespace.Injector }, { token: i2__namespace.Router }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
412
|
+
SkyModalHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyModalHostComponent, selector: "sky-modal-host", viewQueries: [{ propertyName: "target", first: true, predicate: ["target"], descendants: true, read: i0.ViewContainerRef, static: true }], ngImport: i0__namespace, template: "<div\n class=\"sky-modal-host-backdrop\"\n [hidden]=\"!modalOpen\"\n [ngStyle]=\"{\n zIndex: backdropZIndex\n }\"\n></div>\n<div #target></div>\n", styles: [".sky-modal-host-backdrop{background-color:#00000080;position:fixed;top:0;left:0;bottom:0;right:0}\n"], directives: [{ type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], viewProviders: [SkyModalAdapterService] });
|
|
413
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalHostComponent, decorators: [{
|
|
406
414
|
type: i0.Component,
|
|
407
415
|
args: [{
|
|
408
416
|
selector: 'sky-modal-host',
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
viewProviders: [SkyModalAdapterService]
|
|
417
|
+
template: "<div\n class=\"sky-modal-host-backdrop\"\n [hidden]=\"!modalOpen\"\n [ngStyle]=\"{\n zIndex: backdropZIndex\n }\"\n></div>\n<div #target></div>\n",
|
|
418
|
+
styles: [".sky-modal-host-backdrop{background-color:#00000080;position:fixed;top:0;left:0;bottom:0;right:0}\n"],
|
|
419
|
+
viewProviders: [SkyModalAdapterService],
|
|
412
420
|
}]
|
|
413
421
|
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: SkyModalAdapterService }, { type: i0__namespace.Injector }, { type: i2__namespace.Router }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { target: [{
|
|
414
422
|
type: i0.ViewChild,
|
|
415
423
|
args: ['target', {
|
|
416
424
|
read: i0.ViewContainerRef,
|
|
417
|
-
static: true
|
|
425
|
+
static: true,
|
|
418
426
|
}]
|
|
419
427
|
}] } });
|
|
420
428
|
|
|
@@ -451,7 +459,7 @@
|
|
|
451
459
|
else {
|
|
452
460
|
_this.emitShadow({
|
|
453
461
|
bottomShadow: 'none',
|
|
454
|
-
topShadow: 'none'
|
|
462
|
+
topShadow: 'none',
|
|
455
463
|
});
|
|
456
464
|
_this.destroyMutationObserver();
|
|
457
465
|
}
|
|
@@ -478,7 +486,7 @@
|
|
|
478
486
|
attributes: true,
|
|
479
487
|
characterData: true,
|
|
480
488
|
childList: true,
|
|
481
|
-
subtree: true
|
|
489
|
+
subtree: true,
|
|
482
490
|
});
|
|
483
491
|
});
|
|
484
492
|
}
|
|
@@ -493,10 +501,10 @@
|
|
|
493
501
|
if (this.currentTheme === i1.SkyTheme.presets.modern) {
|
|
494
502
|
var el = this.elRef.nativeElement;
|
|
495
503
|
var topShadow = this.buildShadowStyle(el.scrollTop);
|
|
496
|
-
var bottomShadow = this.buildShadowStyle(
|
|
504
|
+
var bottomShadow = this.buildShadowStyle(el.scrollHeight - el.scrollTop - el.clientHeight);
|
|
497
505
|
this.emitShadow({
|
|
498
506
|
bottomShadow: bottomShadow,
|
|
499
|
-
topShadow: topShadow
|
|
507
|
+
topShadow: topShadow,
|
|
500
508
|
});
|
|
501
509
|
}
|
|
502
510
|
};
|
|
@@ -504,9 +512,7 @@
|
|
|
504
512
|
// Progressively darken the shadow until the user scrolls 30 pixels from the top or bottom
|
|
505
513
|
// of the scrollable element, with a max opacity of 0.3.
|
|
506
514
|
var opacity = Math.min(pixelsFromEnd / 30, 1) * 0.3;
|
|
507
|
-
return opacity > 0 ?
|
|
508
|
-
"0px 1px 8px 0px rgba(0, 0, 0, " + opacity + ")" :
|
|
509
|
-
'none';
|
|
515
|
+
return opacity > 0 ? "0px 1px 8px 0px rgba(0, 0, 0, " + opacity + ")" : 'none';
|
|
510
516
|
};
|
|
511
517
|
SkyModalScrollShadowDirective.prototype.emitShadow = function (shadow) {
|
|
512
518
|
if (!this.currentShadow ||
|
|
@@ -518,12 +524,12 @@
|
|
|
518
524
|
};
|
|
519
525
|
return SkyModalScrollShadowDirective;
|
|
520
526
|
}());
|
|
521
|
-
SkyModalScrollShadowDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
522
|
-
SkyModalScrollShadowDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.
|
|
523
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
527
|
+
SkyModalScrollShadowDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalScrollShadowDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace.SkyThemeService, optional: true }, { token: i3__namespace.MutationObserverService }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
528
|
+
SkyModalScrollShadowDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SkyModalScrollShadowDirective, selector: "[skyModalScrollShadow]", outputs: { skyModalScrollShadow: "skyModalScrollShadow" }, host: { listeners: { "window:resize": "windowResize()", "scroll": "scroll()" } }, ngImport: i0__namespace });
|
|
529
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalScrollShadowDirective, decorators: [{
|
|
524
530
|
type: i0.Directive,
|
|
525
531
|
args: [{
|
|
526
|
-
selector: '[skyModalScrollShadow]'
|
|
532
|
+
selector: '[skyModalScrollShadow]',
|
|
527
533
|
}]
|
|
528
534
|
}], ctorParameters: function () {
|
|
529
535
|
return [{ type: i0__namespace.ElementRef }, { type: i1__namespace.SkyThemeService, decorators: [{
|
|
@@ -583,8 +589,8 @@
|
|
|
583
589
|
/* istanbul ignore next */
|
|
584
590
|
/* sanity check */
|
|
585
591
|
var eventTarget = event.target || event.srcElement;
|
|
586
|
-
return modalEl &&
|
|
587
|
-
eventTarget === modalEl.nativeElement.querySelector('.sky-modal-dialog');
|
|
592
|
+
return (modalEl &&
|
|
593
|
+
eventTarget === modalEl.nativeElement.querySelector('.sky-modal-dialog'));
|
|
588
594
|
};
|
|
589
595
|
SkyModalComponentAdapterService.prototype.focusLastElement = function (list) {
|
|
590
596
|
if (list.length > 0) {
|
|
@@ -603,7 +609,8 @@
|
|
|
603
609
|
SkyModalComponentAdapterService.prototype.modalOpened = function (modalEl) {
|
|
604
610
|
/* istanbul ignore else */
|
|
605
611
|
/* handle the case where somehow there is a focused element already in the modal */
|
|
606
|
-
if (!(document.activeElement &&
|
|
612
|
+
if (!(document.activeElement &&
|
|
613
|
+
modalEl.nativeElement.contains(document.activeElement))) {
|
|
607
614
|
var currentScrollX = window.pageXOffset;
|
|
608
615
|
var currentScrollY = window.pageYOffset;
|
|
609
616
|
var inputWithAutofocus = modalEl.nativeElement.querySelector('[autofocus]');
|
|
@@ -621,28 +628,23 @@
|
|
|
621
628
|
var fullPageModalStyle = getComputedStyle(fullPageModalEl);
|
|
622
629
|
var marginTopBottom = parseInt(fullPageModalStyle.marginTop, 10) +
|
|
623
630
|
parseInt(fullPageModalStyle.marginBottom, 10);
|
|
624
|
-
var fullPageModalHeight =
|
|
631
|
+
var fullPageModalHeight = windowHeight - marginTopBottom + 'px';
|
|
625
632
|
fullPageModalEl.style.height = fullPageModalHeight;
|
|
626
633
|
fullPageModalEl.style.maxHeight = fullPageModalHeight;
|
|
627
634
|
};
|
|
628
635
|
return SkyModalComponentAdapterService;
|
|
629
636
|
}());
|
|
630
|
-
SkyModalComponentAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
631
|
-
SkyModalComponentAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
632
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
637
|
+
SkyModalComponentAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalComponentAdapterService, deps: [{ token: i3__namespace.SkyCoreAdapterService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
638
|
+
SkyModalComponentAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalComponentAdapterService });
|
|
639
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalComponentAdapterService, decorators: [{
|
|
633
640
|
type: i0.Injectable
|
|
634
641
|
}], ctorParameters: function () { return [{ type: i3__namespace.SkyCoreAdapterService }]; } });
|
|
635
642
|
|
|
636
643
|
var skyAnimationModalState = animations.trigger('modalState', [
|
|
637
644
|
animations.state('in', animations.style({ opacity: '1.0' })),
|
|
638
645
|
animations.state('out', animations.style({ opacity: '0.0' })),
|
|
639
|
-
animations.transition('void => *', [
|
|
640
|
-
|
|
641
|
-
animations.animate(150)
|
|
642
|
-
]),
|
|
643
|
-
animations.transition('* => void', [
|
|
644
|
-
animations.animate(150, animations.style({ opacity: '0.0' }))
|
|
645
|
-
])
|
|
646
|
+
animations.transition('void => *', [animations.style({ opacity: '0.0' }), animations.animate(150)]),
|
|
647
|
+
animations.transition('* => void', [animations.animate(150, animations.style({ opacity: '0.0' }))]),
|
|
646
648
|
]);
|
|
647
649
|
|
|
648
650
|
var skyModalUniqueIdentifier = 0;
|
|
@@ -665,6 +667,13 @@
|
|
|
665
667
|
this.modalContentId = 'sky-modal-content-id-' + skyModalUniqueIdentifier.toString();
|
|
666
668
|
this.modalHeaderId = 'sky-modal-header-id-' + skyModalUniqueIdentifier.toString();
|
|
667
669
|
}
|
|
670
|
+
Object.defineProperty(SkyModalComponent.prototype, "wrapperClass", {
|
|
671
|
+
get: function () {
|
|
672
|
+
return this.config.wrapperClass;
|
|
673
|
+
},
|
|
674
|
+
enumerable: false,
|
|
675
|
+
configurable: true
|
|
676
|
+
});
|
|
668
677
|
Object.defineProperty(SkyModalComponent.prototype, "ariaRole", {
|
|
669
678
|
/**
|
|
670
679
|
* @internal
|
|
@@ -757,7 +766,8 @@
|
|
|
757
766
|
if (SkyModalHostService.openModalCount > 0) {
|
|
758
767
|
var topModal = SkyModalHostService.topModal;
|
|
759
768
|
if (topModal && topModal === this.hostService) {
|
|
760
|
-
if (event.which === 27) {
|
|
769
|
+
if (event.which === 27) {
|
|
770
|
+
// Escape key up
|
|
761
771
|
event.preventDefault();
|
|
762
772
|
this.closeButtonClick();
|
|
763
773
|
}
|
|
@@ -770,16 +780,20 @@
|
|
|
770
780
|
if (SkyModalHostService.openModalCount > 0) {
|
|
771
781
|
var topModal = SkyModalHostService.topModal;
|
|
772
782
|
if (topModal && topModal === this.hostService) {
|
|
773
|
-
if (event.which === 9) {
|
|
783
|
+
if (event.which === 9) {
|
|
784
|
+
// Tab pressed
|
|
774
785
|
var focusChanged = false;
|
|
775
786
|
var focusElementList = this.coreAdapter.getFocusableChildren(this.elRef.nativeElement);
|
|
776
787
|
if (event.shiftKey &&
|
|
777
788
|
(this.componentAdapter.isFocusInFirstItem(event, focusElementList) ||
|
|
778
789
|
this.componentAdapter.isModalFocused(event, this.elRef))) {
|
|
779
|
-
focusChanged =
|
|
790
|
+
focusChanged =
|
|
791
|
+
this.componentAdapter.focusLastElement(focusElementList);
|
|
780
792
|
}
|
|
781
|
-
else if (!event.shiftKey &&
|
|
782
|
-
|
|
793
|
+
else if (!event.shiftKey &&
|
|
794
|
+
this.componentAdapter.isFocusInLastItem(event, focusElementList)) {
|
|
795
|
+
focusChanged =
|
|
796
|
+
this.componentAdapter.focusFirstElement(focusElementList);
|
|
783
797
|
}
|
|
784
798
|
if (focusChanged) {
|
|
785
799
|
event.preventDefault();
|
|
@@ -801,7 +815,7 @@
|
|
|
801
815
|
this.dockService.setDockOptions({
|
|
802
816
|
location: i3$1.SkyDockLocation.ElementBottom,
|
|
803
817
|
referenceEl: this.modalContentWrapperElement.nativeElement,
|
|
804
|
-
zIndex: 5
|
|
818
|
+
zIndex: 5,
|
|
805
819
|
});
|
|
806
820
|
};
|
|
807
821
|
SkyModalComponent.prototype.helpButtonClick = function () {
|
|
@@ -821,32 +835,25 @@
|
|
|
821
835
|
};
|
|
822
836
|
return SkyModalComponent;
|
|
823
837
|
}());
|
|
824
|
-
SkyModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
825
|
-
SkyModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
826
|
-
|
|
827
|
-
i3$1.SkyDockService
|
|
828
|
-
], viewQueries: [{ propertyName: "modalContentWrapperElement", first: true, predicate: ["modalContentWrapper"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<!--\n Animations are broken in Chrome v52. Angular 2 RC5 will fix it.\n https://github.com/angular/angular/issues/10245\n-->\n<!--<div @modalState=\"modalState\">-->\n\n<div\n class=\"sky-modal-dialog\"\n aria-modal=\"true\"\n [attr.aria-describedby]=\"ariaDescribedBy\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.role]=\"ariaRole\"\n (window:resize)=\"windowResize()\"\n>\n <div\n class=\"sky-modal sky-shadow sky-box sky-elevation-16\"\n tabindex=\"-1\"\n [ngClass]=\"{\n 'sky-modal-full-page': modalFullPage,\n 'sky-modal-small' : isSmallSize,\n 'sky-modal-medium' : isMediumSize,\n 'sky-modal-large' : isLargeSize,\n 'sky-modal-tiled' : isTiledBody\n }\"\n [ngStyle]=\"{\n zIndex: modalZIndex\n }\">\n\n <div\n class=\"sky-modal-header\"\n [hidden]=\"!headerContent || !headerContent.children || headerContent.children.length < 1\"\n [ngStyle]=\"{\n 'box-shadow': scrollShadow?.topShadow\n }\"\n >\n <div\n class=\"sky-modal-header-content\"\n [attr.id]=\"modalHeaderId\"\n [ngClass]=\"{\n 'sky-section-heading': modalFullPage\n }\"\n #headerContent\n >\n <ng-content select=\"sky-modal-header\"></ng-content>\n </div>\n <div class=\"sky-modal-header-buttons\">\n <button *ngIf=\"helpKey\"\n class=\"sky-btn sky-modal-btn-help\"\n name=\"help-button\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_modal_open_help' | skyLibResources\"\n (click)=\"helpButtonClick()\"\n >\n <sky-icon icon=\"question-circle\"></sky-icon>\n </button>\n\n <button type=\"button\" class=\"sky-btn sky-modal-btn-close\" [attr.aria-label]=\"'skyux_modal_close' | skyLibResources\" (click)=\"closeButtonClick()\">\n <sky-icon icon=\"close\"></sky-icon>\n </button>\n </div>\n\n </div>\n <div\n class=\"sky-modal-content sky-padding-even-large\"\n role=\"region\"\n tabindex=\"0\"\n [attr.aria-labelledby]=\"modalHeaderId\"\n [attr.id]=\"modalContentId\"\n (skyModalScrollShadow)=\"scrollShadowChange($event)\"\n #modalContentWrapper\n >\n <ng-content select=\"sky-modal-content\"></ng-content>\n </div>\n <div\n class=\"sky-modal-footer\"\n [ngStyle]=\"{\n 'box-shadow': scrollShadow?.bottomShadow\n }\"\n >\n <ng-content select=\"sky-modal-footer\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [".sky-modal{border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;position:fixed;width:auto;left:0;right:0;top:20px;margin:10px;display:flex;flex-direction:column;overflow:hidden}.sky-modal:focus{outline:none}@media (min-width: 768px){.sky-modal:not(.sky-modal-large){margin:0 auto}.sky-modal-small{width:300px}.sky-modal-small .sky-modal-content,.sky-modal-small .sky-modal-header,.sky-modal-small .sky-modal-footer{max-width:300px}.sky-modal-medium{width:600px}.sky-modal-medium .sky-modal-content,.sky-modal-medium .sky-modal-header,.sky-modal-medium .sky-modal-footer{max-width:600px}}@media (min-width: 920px){.sky-modal-large{margin:0 auto;width:900px}.sky-modal-large .sky-modal-content,.sky-modal-large .sky-modal-header,.sky-modal-large .sky-modal-footer{max-width:900px}}.sky-modal-content{background-color:#fff}.sky-modal-content:focus{outline-style:dotted;outline-width:thin;outline-offset:-1px}.sky-modal-tiled .sky-modal-content{background-color:#eeeeef}.sky-modal-tiled .sky-modal-content ::ng-deep .sky-tile-title{font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#686c73;font-weight:300;font-size:19px}.sky-modal-header{padding:9px 3px 9px 15px;background-color:#fff;display:flex;align-items:baseline;border-bottom:1px solid #e2e3e4}.sky-modal-header-buttons{flex-shrink:.0001}.sky-modal-header-buttons .sky-btn{border:none;color:#cdcfd2;cursor:pointer}.sky-modal-header-buttons .sky-btn:hover{color:#979ba2;transition:color .15s}.sky-modal-header-content{flex-grow:1}.sky-modal-header{flex-shrink:0;z-index:2}.sky-modal-content{overflow-y:auto}.sky-modal-footer{flex-shrink:0;z-index:2}.sky-modal-footer ::ng-deep sky-tabset-nav-button+sky-tabset-nav-button{margin-left:10px}.sky-modal-footer ::ng-deep sky-tabset-nav-button+.sky-btn{margin-left:10px}.sky-modal-footer ::ng-deep .sky-btn+.sky-btn{margin-left:10px}.sky-modal-footer ::ng-deep .sky-btn+.sky-btn-link{margin-left:-2px}.sky-modal-full-page{width:100%;top:0;margin:0}.sky-modal-full-page .sky-modal-header-buttons sky-icon[icon=close]{font-size:20px}.sky-modal-full-page .sky-modal-content{flex-grow:1}:host ::ng-deep .sky-sectioned-form{min-height:460px;margin:-15px}.sky-modal-content>::ng-deep sky-dock{bottom:-15px;margin-left:-15px;margin-bottom:-15px;padding-top:15px;width:calc(100% + 30px)}:host-context(.sky-theme-modern) .sky-modal-header{border:none;padding:20px 30px}:host-context(.sky-theme-modern) .sky-modal-btn-help,:host-context(.sky-theme-modern) .sky-modal-btn-close{display:none}:host-context(.sky-theme-modern) .sky-modal-content{padding:0}:host-context(.sky-theme-modern) .sky-modal-full-page{width:calc(100% - (60px));margin:30px}:host-context(.sky-theme-modern) .sky-modal-content>::ng-deep sky-dock{bottom:0;margin-left:initial;margin-bottom:initial;padding-top:initial;width:100%}.sky-theme-modern .sky-modal-header{border:none;padding:20px 30px}.sky-theme-modern .sky-modal-btn-help,.sky-theme-modern .sky-modal-btn-close{display:none}.sky-theme-modern .sky-modal-content{padding:0}.sky-theme-modern .sky-modal-full-page{width:calc(100% - (60px));margin:30px}.sky-theme-modern .sky-modal-content>::ng-deep sky-dock{bottom:0;margin-left:initial;margin-bottom:initial;padding-top:initial;width:100%}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal{border-color:#121212}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-header{color:#fbfcfe}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-header,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-content{background-color:transparent}.sky-theme-modern.sky-theme-mode-dark .sky-modal{border-color:#121212}.sky-theme-modern.sky-theme-mode-dark .sky-modal-header{color:#fbfcfe}.sky-theme-modern.sky-theme-mode-dark .sky-modal-header,.sky-theme-modern.sky-theme-mode-dark .sky-modal-content{background-color:transparent}\n"], components: [{ type: i5__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SkyModalScrollShadowDirective, selector: "[skyModalScrollShadow]", outputs: ["skyModalScrollShadow"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe }, animations: [
|
|
829
|
-
skyAnimationModalState
|
|
830
|
-
] });
|
|
831
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyModalComponent, decorators: [{
|
|
838
|
+
SkyModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalComponent, deps: [{ token: SkyModalHostService }, { token: SkyModalConfiguration }, { token: i0__namespace.ElementRef }, { token: i3__namespace.SkyAppWindowRef }, { token: SkyModalComponentAdapterService }, { token: i3__namespace.SkyCoreAdapterService }, { token: i3__namespace.SkyDockService, host: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
839
|
+
SkyModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyModalComponent, selector: "sky-modal", inputs: { ariaRole: "ariaRole", tiledBody: "tiledBody" }, host: { listeners: { "document:keyup": "onDocumentKeyUp($event)", "document:keydown": "onDocumentKeyDown($event)" }, properties: { "class": "this.wrapperClass" } }, providers: [SkyModalComponentAdapterService, i3$1.SkyDockService], viewQueries: [{ propertyName: "modalContentWrapperElement", first: true, predicate: ["modalContentWrapper"], descendants: true, read: i0.ElementRef }], ngImport: i0__namespace, template: "<!--\n Animations are broken in Chrome v52. Angular 2 RC5 will fix it.\n https://github.com/angular/angular/issues/10245\n-->\n<!--<div @modalState=\"modalState\">-->\n\n<div\n class=\"sky-modal-dialog\"\n aria-modal=\"true\"\n [attr.aria-describedby]=\"ariaDescribedBy\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.role]=\"ariaRole\"\n (window:resize)=\"windowResize()\"\n>\n <div\n class=\"sky-modal sky-shadow sky-box sky-elevation-16\"\n tabindex=\"-1\"\n [ngClass]=\"{\n 'sky-modal-full-page': modalFullPage,\n 'sky-modal-small': isSmallSize,\n 'sky-modal-medium': isMediumSize,\n 'sky-modal-large': isLargeSize,\n 'sky-modal-tiled': isTiledBody\n }\"\n [ngStyle]=\"{\n zIndex: modalZIndex\n }\"\n >\n <div\n class=\"sky-modal-header\"\n [hidden]=\"!headerContent || !headerContent.children || headerContent.children.length < 1\"\n [ngStyle]=\"{\n 'box-shadow': scrollShadow?.topShadow\n }\"\n >\n <div\n class=\"sky-modal-header-content\"\n [attr.id]=\"modalHeaderId\"\n [ngClass]=\"{\n 'sky-section-heading': modalFullPage\n }\"\n #headerContent\n >\n <ng-content select=\"sky-modal-header\"></ng-content>\n </div>\n <div class=\"sky-modal-header-buttons\">\n <button\n *ngIf=\"helpKey\"\n class=\"sky-btn sky-modal-btn-help\"\n name=\"help-button\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_modal_open_help' | skyLibResources\"\n (click)=\"helpButtonClick()\"\n >\n <sky-icon icon=\"question-circle\"></sky-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"sky-btn sky-modal-btn-close\"\n [attr.aria-label]=\"'skyux_modal_close' | skyLibResources\"\n (click)=\"closeButtonClick()\"\n >\n <sky-icon icon=\"close\"></sky-icon>\n </button>\n </div>\n </div>\n <div\n class=\"sky-modal-content sky-padding-even-large\"\n role=\"region\"\n tabindex=\"0\"\n [attr.aria-labelledby]=\"modalHeaderId\"\n [attr.id]=\"modalContentId\"\n (skyModalScrollShadow)=\"scrollShadowChange($event)\"\n #modalContentWrapper\n >\n <ng-content select=\"sky-modal-content\"></ng-content>\n </div>\n <div\n class=\"sky-modal-footer\"\n [ngStyle]=\"{\n 'box-shadow': scrollShadow?.bottomShadow\n }\"\n >\n <ng-content select=\"sky-modal-footer\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [".sky-modal{border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;position:fixed;width:auto;left:0;right:0;top:20px;margin:10px;display:flex;flex-direction:column;overflow:hidden}.sky-modal:focus{outline:none}@media (min-width: 768px){.sky-modal:not(.sky-modal-large){margin:0 auto}.sky-modal-small{width:300px}.sky-modal-small .sky-modal-content,.sky-modal-small .sky-modal-header,.sky-modal-small .sky-modal-footer{max-width:300px}.sky-modal-medium{width:600px}.sky-modal-medium .sky-modal-content,.sky-modal-medium .sky-modal-header,.sky-modal-medium .sky-modal-footer{max-width:600px}}@media (min-width: 920px){.sky-modal-large{margin:0 auto;width:900px}.sky-modal-large .sky-modal-content,.sky-modal-large .sky-modal-header,.sky-modal-large .sky-modal-footer{max-width:900px}}.sky-modal-content{background-color:#fff}.sky-modal-content:focus{outline-style:dotted;outline-width:thin;outline-offset:-1px}.sky-modal-tiled .sky-modal-content{background-color:#eeeeef}.sky-modal-tiled .sky-modal-content ::ng-deep .sky-tile-title{font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#686c73;font-weight:300;font-size:19px}.sky-modal-header{padding:9px 3px 9px 15px;background-color:#fff;display:flex;align-items:baseline;border-bottom:1px solid #e2e3e4}.sky-modal-header-buttons{flex-shrink:.0001}.sky-modal-header-buttons .sky-btn{border:none;color:#cdcfd2;cursor:pointer}.sky-modal-header-buttons .sky-btn:hover{color:#979ba2;transition:color .15s}.sky-modal-header-content{flex-grow:1}.sky-modal-header{flex-shrink:0;z-index:2}.sky-modal-content{overflow-y:auto}.sky-modal-footer{flex-shrink:0;z-index:2}.sky-modal-footer ::ng-deep sky-tabset-nav-button+sky-tabset-nav-button{margin-left:10px}.sky-modal-footer ::ng-deep sky-tabset-nav-button+.sky-btn{margin-left:10px}.sky-modal-footer ::ng-deep .sky-btn+.sky-btn{margin-left:10px}.sky-modal-footer ::ng-deep .sky-btn+.sky-btn-link{margin-left:-2px}.sky-modal-full-page{width:100%;top:0;margin:0}.sky-modal-full-page .sky-modal-header-buttons sky-icon[icon=close]{font-size:20px}.sky-modal-full-page .sky-modal-content{flex-grow:1}:host ::ng-deep .sky-sectioned-form{min-height:460px;margin:-15px}.sky-modal-content>::ng-deep sky-dock{bottom:-15px;margin-left:-15px;margin-bottom:-15px;padding-top:15px;width:calc(100% + 30px)}:host-context(.sky-theme-modern) .sky-modal-header{border:none;padding:20px 30px}:host-context(.sky-theme-modern) .sky-modal-btn-help,:host-context(.sky-theme-modern) .sky-modal-btn-close{display:none}:host-context(.sky-theme-modern) .sky-modal-content{padding:0}:host-context(.sky-theme-modern) .sky-modal-full-page{width:calc(100% - (60px));margin:30px}:host-context(.sky-theme-modern) .sky-modal-content>::ng-deep sky-dock{bottom:0;margin-left:initial;margin-bottom:initial;padding-top:initial;width:100%}.sky-theme-modern .sky-modal-header{border:none;padding:20px 30px}.sky-theme-modern .sky-modal-btn-help,.sky-theme-modern .sky-modal-btn-close{display:none}.sky-theme-modern .sky-modal-content{padding:0}.sky-theme-modern .sky-modal-full-page{width:calc(100% - (60px));margin:30px}.sky-theme-modern .sky-modal-content>::ng-deep sky-dock{bottom:0;margin-left:initial;margin-bottom:initial;padding-top:initial;width:100%}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal{border-color:#121212}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-header{color:#fbfcfe}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-header,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-content{background-color:transparent}.sky-theme-modern.sky-theme-mode-dark .sky-modal{border-color:#121212}.sky-theme-modern.sky-theme-mode-dark .sky-modal-header{color:#fbfcfe}.sky-theme-modern.sky-theme-mode-dark .sky-modal-header,.sky-theme-modern.sky-theme-mode-dark .sky-modal-content{background-color:transparent}\n"], components: [{ type: i5__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: SkyModalScrollShadowDirective, selector: "[skyModalScrollShadow]", outputs: ["skyModalScrollShadow"] }], pipes: { "skyLibResources": i3__namespace$1.SkyLibResourcesPipe }, animations: [skyAnimationModalState] });
|
|
840
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalComponent, decorators: [{
|
|
832
841
|
type: i0.Component,
|
|
833
842
|
args: [{
|
|
834
843
|
selector: 'sky-modal',
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
animations: [
|
|
838
|
-
|
|
839
|
-
],
|
|
840
|
-
providers: [
|
|
841
|
-
SkyModalComponentAdapterService,
|
|
842
|
-
i3$1.SkyDockService
|
|
843
|
-
]
|
|
844
|
+
template: "<!--\n Animations are broken in Chrome v52. Angular 2 RC5 will fix it.\n https://github.com/angular/angular/issues/10245\n-->\n<!--<div @modalState=\"modalState\">-->\n\n<div\n class=\"sky-modal-dialog\"\n aria-modal=\"true\"\n [attr.aria-describedby]=\"ariaDescribedBy\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.role]=\"ariaRole\"\n (window:resize)=\"windowResize()\"\n>\n <div\n class=\"sky-modal sky-shadow sky-box sky-elevation-16\"\n tabindex=\"-1\"\n [ngClass]=\"{\n 'sky-modal-full-page': modalFullPage,\n 'sky-modal-small': isSmallSize,\n 'sky-modal-medium': isMediumSize,\n 'sky-modal-large': isLargeSize,\n 'sky-modal-tiled': isTiledBody\n }\"\n [ngStyle]=\"{\n zIndex: modalZIndex\n }\"\n >\n <div\n class=\"sky-modal-header\"\n [hidden]=\"!headerContent || !headerContent.children || headerContent.children.length < 1\"\n [ngStyle]=\"{\n 'box-shadow': scrollShadow?.topShadow\n }\"\n >\n <div\n class=\"sky-modal-header-content\"\n [attr.id]=\"modalHeaderId\"\n [ngClass]=\"{\n 'sky-section-heading': modalFullPage\n }\"\n #headerContent\n >\n <ng-content select=\"sky-modal-header\"></ng-content>\n </div>\n <div class=\"sky-modal-header-buttons\">\n <button\n *ngIf=\"helpKey\"\n class=\"sky-btn sky-modal-btn-help\"\n name=\"help-button\"\n type=\"button\"\n [attr.aria-label]=\"'skyux_modal_open_help' | skyLibResources\"\n (click)=\"helpButtonClick()\"\n >\n <sky-icon icon=\"question-circle\"></sky-icon>\n </button>\n\n <button\n type=\"button\"\n class=\"sky-btn sky-modal-btn-close\"\n [attr.aria-label]=\"'skyux_modal_close' | skyLibResources\"\n (click)=\"closeButtonClick()\"\n >\n <sky-icon icon=\"close\"></sky-icon>\n </button>\n </div>\n </div>\n <div\n class=\"sky-modal-content sky-padding-even-large\"\n role=\"region\"\n tabindex=\"0\"\n [attr.aria-labelledby]=\"modalHeaderId\"\n [attr.id]=\"modalContentId\"\n (skyModalScrollShadow)=\"scrollShadowChange($event)\"\n #modalContentWrapper\n >\n <ng-content select=\"sky-modal-content\"></ng-content>\n </div>\n <div\n class=\"sky-modal-footer\"\n [ngStyle]=\"{\n 'box-shadow': scrollShadow?.bottomShadow\n }\"\n >\n <ng-content select=\"sky-modal-footer\"></ng-content>\n </div>\n </div>\n</div>\n",
|
|
845
|
+
styles: [".sky-modal{border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;position:fixed;width:auto;left:0;right:0;top:20px;margin:10px;display:flex;flex-direction:column;overflow:hidden}.sky-modal:focus{outline:none}@media (min-width: 768px){.sky-modal:not(.sky-modal-large){margin:0 auto}.sky-modal-small{width:300px}.sky-modal-small .sky-modal-content,.sky-modal-small .sky-modal-header,.sky-modal-small .sky-modal-footer{max-width:300px}.sky-modal-medium{width:600px}.sky-modal-medium .sky-modal-content,.sky-modal-medium .sky-modal-header,.sky-modal-medium .sky-modal-footer{max-width:600px}}@media (min-width: 920px){.sky-modal-large{margin:0 auto;width:900px}.sky-modal-large .sky-modal-content,.sky-modal-large .sky-modal-header,.sky-modal-large .sky-modal-footer{max-width:900px}}.sky-modal-content{background-color:#fff}.sky-modal-content:focus{outline-style:dotted;outline-width:thin;outline-offset:-1px}.sky-modal-tiled .sky-modal-content{background-color:#eeeeef}.sky-modal-tiled .sky-modal-content ::ng-deep .sky-tile-title{font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#686c73;font-weight:300;font-size:19px}.sky-modal-header{padding:9px 3px 9px 15px;background-color:#fff;display:flex;align-items:baseline;border-bottom:1px solid #e2e3e4}.sky-modal-header-buttons{flex-shrink:.0001}.sky-modal-header-buttons .sky-btn{border:none;color:#cdcfd2;cursor:pointer}.sky-modal-header-buttons .sky-btn:hover{color:#979ba2;transition:color .15s}.sky-modal-header-content{flex-grow:1}.sky-modal-header{flex-shrink:0;z-index:2}.sky-modal-content{overflow-y:auto}.sky-modal-footer{flex-shrink:0;z-index:2}.sky-modal-footer ::ng-deep sky-tabset-nav-button+sky-tabset-nav-button{margin-left:10px}.sky-modal-footer ::ng-deep sky-tabset-nav-button+.sky-btn{margin-left:10px}.sky-modal-footer ::ng-deep .sky-btn+.sky-btn{margin-left:10px}.sky-modal-footer ::ng-deep .sky-btn+.sky-btn-link{margin-left:-2px}.sky-modal-full-page{width:100%;top:0;margin:0}.sky-modal-full-page .sky-modal-header-buttons sky-icon[icon=close]{font-size:20px}.sky-modal-full-page .sky-modal-content{flex-grow:1}:host ::ng-deep .sky-sectioned-form{min-height:460px;margin:-15px}.sky-modal-content>::ng-deep sky-dock{bottom:-15px;margin-left:-15px;margin-bottom:-15px;padding-top:15px;width:calc(100% + 30px)}:host-context(.sky-theme-modern) .sky-modal-header{border:none;padding:20px 30px}:host-context(.sky-theme-modern) .sky-modal-btn-help,:host-context(.sky-theme-modern) .sky-modal-btn-close{display:none}:host-context(.sky-theme-modern) .sky-modal-content{padding:0}:host-context(.sky-theme-modern) .sky-modal-full-page{width:calc(100% - (60px));margin:30px}:host-context(.sky-theme-modern) .sky-modal-content>::ng-deep sky-dock{bottom:0;margin-left:initial;margin-bottom:initial;padding-top:initial;width:100%}.sky-theme-modern .sky-modal-header{border:none;padding:20px 30px}.sky-theme-modern .sky-modal-btn-help,.sky-theme-modern .sky-modal-btn-close{display:none}.sky-theme-modern .sky-modal-content{padding:0}.sky-theme-modern .sky-modal-full-page{width:calc(100% - (60px));margin:30px}.sky-theme-modern .sky-modal-content>::ng-deep sky-dock{bottom:0;margin-left:initial;margin-bottom:initial;padding-top:initial;width:100%}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal{border-color:#121212}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-header{color:#fbfcfe}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-header,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-modal-content{background-color:transparent}.sky-theme-modern.sky-theme-mode-dark .sky-modal{border-color:#121212}.sky-theme-modern.sky-theme-mode-dark .sky-modal-header{color:#fbfcfe}.sky-theme-modern.sky-theme-mode-dark .sky-modal-header,.sky-theme-modern.sky-theme-mode-dark .sky-modal-content{background-color:transparent}\n"],
|
|
846
|
+
animations: [skyAnimationModalState],
|
|
847
|
+
providers: [SkyModalComponentAdapterService, i3$1.SkyDockService],
|
|
844
848
|
}]
|
|
845
849
|
}], ctorParameters: function () {
|
|
846
850
|
return [{ type: SkyModalHostService }, { type: SkyModalConfiguration }, { type: i0__namespace.ElementRef }, { type: i3__namespace.SkyAppWindowRef }, { type: SkyModalComponentAdapterService }, { type: i3__namespace.SkyCoreAdapterService }, { type: i3__namespace.SkyDockService, decorators: [{
|
|
847
851
|
type: i0.Host
|
|
848
852
|
}] }];
|
|
849
|
-
}, propDecorators: {
|
|
853
|
+
}, propDecorators: { wrapperClass: [{
|
|
854
|
+
type: i0.HostBinding,
|
|
855
|
+
args: ['class']
|
|
856
|
+
}], ariaRole: [{
|
|
850
857
|
type: i0.Input
|
|
851
858
|
}], tiledBody: [{
|
|
852
859
|
type: i0.Input
|
|
@@ -866,8 +873,8 @@
|
|
|
866
873
|
}
|
|
867
874
|
return SkyModalModule;
|
|
868
875
|
}());
|
|
869
|
-
SkyModalModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
870
|
-
SkyModalModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
876
|
+
SkyModalModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
877
|
+
SkyModalModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalModule, declarations: [SkyModalComponent,
|
|
871
878
|
SkyModalContentComponent,
|
|
872
879
|
SkyModalFooterComponent,
|
|
873
880
|
SkyModalHeaderComponent,
|
|
@@ -880,14 +887,14 @@
|
|
|
880
887
|
SkyModalContentComponent,
|
|
881
888
|
SkyModalFooterComponent,
|
|
882
889
|
SkyModalHeaderComponent] });
|
|
883
|
-
SkyModalModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
890
|
+
SkyModalModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalModule, imports: [[
|
|
884
891
|
i6.CommonModule,
|
|
885
892
|
i2.RouterModule,
|
|
886
893
|
i5.SkyIconModule,
|
|
887
894
|
SkyModalsResourcesModule,
|
|
888
|
-
i1.SkyThemeModule
|
|
895
|
+
i1.SkyThemeModule,
|
|
889
896
|
]] });
|
|
890
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
897
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalModule, decorators: [{
|
|
891
898
|
type: i0.NgModule,
|
|
892
899
|
args: [{
|
|
893
900
|
declarations: [
|
|
@@ -896,24 +903,22 @@
|
|
|
896
903
|
SkyModalFooterComponent,
|
|
897
904
|
SkyModalHeaderComponent,
|
|
898
905
|
SkyModalHostComponent,
|
|
899
|
-
SkyModalScrollShadowDirective
|
|
906
|
+
SkyModalScrollShadowDirective,
|
|
900
907
|
],
|
|
901
908
|
imports: [
|
|
902
909
|
i6.CommonModule,
|
|
903
910
|
i2.RouterModule,
|
|
904
911
|
i5.SkyIconModule,
|
|
905
912
|
SkyModalsResourcesModule,
|
|
906
|
-
i1.SkyThemeModule
|
|
913
|
+
i1.SkyThemeModule,
|
|
907
914
|
],
|
|
908
915
|
exports: [
|
|
909
916
|
SkyModalComponent,
|
|
910
917
|
SkyModalContentComponent,
|
|
911
918
|
SkyModalFooterComponent,
|
|
912
|
-
SkyModalHeaderComponent
|
|
919
|
+
SkyModalHeaderComponent,
|
|
913
920
|
],
|
|
914
|
-
entryComponents: [
|
|
915
|
-
SkyModalHostComponent
|
|
916
|
-
]
|
|
921
|
+
entryComponents: [SkyModalHostComponent],
|
|
917
922
|
}]
|
|
918
923
|
}] });
|
|
919
924
|
|
|
@@ -1057,7 +1062,8 @@
|
|
|
1057
1062
|
}
|
|
1058
1063
|
SkyConfirmComponent.prototype.ngOnInit = function () {
|
|
1059
1064
|
var _this = this;
|
|
1060
|
-
if (this.config.type === exports.SkyConfirmType.Custom &&
|
|
1065
|
+
if (this.config.type === exports.SkyConfirmType.Custom &&
|
|
1066
|
+
this.config.buttons.length > 0) {
|
|
1061
1067
|
this.buttons = this.getCustomButtons(this.config.buttons);
|
|
1062
1068
|
}
|
|
1063
1069
|
else {
|
|
@@ -1071,7 +1077,7 @@
|
|
|
1071
1077
|
};
|
|
1072
1078
|
SkyConfirmComponent.prototype.close = function (button) {
|
|
1073
1079
|
var result = {
|
|
1074
|
-
action: button.action
|
|
1080
|
+
action: button.action,
|
|
1075
1081
|
};
|
|
1076
1082
|
this.modal.close(result);
|
|
1077
1083
|
};
|
|
@@ -1080,15 +1086,16 @@
|
|
|
1080
1086
|
switch (this.config.type) {
|
|
1081
1087
|
default:
|
|
1082
1088
|
case exports.SkyConfirmType.OK:
|
|
1083
|
-
this.resourcesService
|
|
1089
|
+
this.resourcesService
|
|
1090
|
+
.getString('skyux_confirm_dialog_default_ok_text')
|
|
1084
1091
|
.subscribe(function (value) {
|
|
1085
1092
|
emitter.next([
|
|
1086
1093
|
{
|
|
1087
1094
|
text: value,
|
|
1088
1095
|
autofocus: true,
|
|
1089
1096
|
styleType: 'primary',
|
|
1090
|
-
action: 'ok'
|
|
1091
|
-
}
|
|
1097
|
+
action: 'ok',
|
|
1098
|
+
},
|
|
1092
1099
|
]);
|
|
1093
1100
|
});
|
|
1094
1101
|
break;
|
|
@@ -1099,18 +1106,18 @@
|
|
|
1099
1106
|
text: values[0],
|
|
1100
1107
|
autofocus: true,
|
|
1101
1108
|
styleType: 'primary',
|
|
1102
|
-
action: 'yes'
|
|
1109
|
+
action: 'yes',
|
|
1103
1110
|
},
|
|
1104
1111
|
{
|
|
1105
1112
|
text: values[1],
|
|
1106
1113
|
styleType: 'default',
|
|
1107
|
-
action: 'no'
|
|
1114
|
+
action: 'no',
|
|
1108
1115
|
},
|
|
1109
1116
|
{
|
|
1110
1117
|
text: values[2],
|
|
1111
1118
|
styleType: 'link',
|
|
1112
|
-
action: 'cancel'
|
|
1113
|
-
}
|
|
1119
|
+
action: 'cancel',
|
|
1120
|
+
},
|
|
1114
1121
|
]);
|
|
1115
1122
|
});
|
|
1116
1123
|
break;
|
|
@@ -1121,13 +1128,13 @@
|
|
|
1121
1128
|
text: values[0],
|
|
1122
1129
|
autofocus: true,
|
|
1123
1130
|
styleType: 'primary',
|
|
1124
|
-
action: 'yes'
|
|
1131
|
+
action: 'yes',
|
|
1125
1132
|
},
|
|
1126
1133
|
{
|
|
1127
1134
|
text: values[1],
|
|
1128
1135
|
styleType: 'link',
|
|
1129
|
-
action: 'cancel'
|
|
1130
|
-
}
|
|
1136
|
+
action: 'cancel',
|
|
1137
|
+
},
|
|
1131
1138
|
]);
|
|
1132
1139
|
});
|
|
1133
1140
|
break;
|
|
@@ -1141,21 +1148,21 @@
|
|
|
1141
1148
|
text: config.text,
|
|
1142
1149
|
action: config.action,
|
|
1143
1150
|
styleType: config.styleType || 'default',
|
|
1144
|
-
autofocus: config.autofocus || false
|
|
1151
|
+
autofocus: config.autofocus || false,
|
|
1145
1152
|
});
|
|
1146
1153
|
});
|
|
1147
1154
|
return buttons;
|
|
1148
1155
|
};
|
|
1149
1156
|
return SkyConfirmComponent;
|
|
1150
1157
|
}());
|
|
1151
|
-
SkyConfirmComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1152
|
-
SkyConfirmComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1153
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1158
|
+
SkyConfirmComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyConfirmComponent, deps: [{ token: SkyConfirmModalContext }, { token: SkyModalInstance }, { token: i3__namespace$1.SkyLibResourcesService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1159
|
+
SkyConfirmComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyConfirmComponent, selector: "sky-confirm", ngImport: i0__namespace, template: "<div class=\"sky-confirm\">\n <sky-modal ariaRole=\"alertdialog\">\n <sky-modal-content class=\"sky-confirm-content\">\n <div\n class=\"sky-confirm-message\"\n [ngClass]=\"{\n 'sky-confirm-preserve-white-space': preserveWhiteSpace\n }\"\n [skyThemeClass]=\"{\n 'sky-emphasized': 'default',\n 'sky-font-heading-1 sky-font-display-3': 'modern'\n }\"\n >\n {{ message }}\n </div>\n\n <div\n *ngIf=\"body\"\n class=\"sky-confirm-body\"\n [ngClass]=\"{\n 'sky-confirm-preserve-white-space': preserveWhiteSpace\n }\"\n >\n {{ body }}\n </div>\n\n <div class=\"sky-confirm-buttons\">\n <button\n *ngFor=\"let button of buttons\"\n type=\"button\"\n class=\"sky-btn\"\n [ngClass]=\"['sky-btn-' + button.styleType]\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-sm': 'modern',\n 'sky-margin-inline-compact': 'default'\n }\"\n (click)=\"close(button)\"\n [attr.autofocus]=\"button.autofocus ? 'autofocus' : null\"\n >\n {{ button.text }}\n </button>\n </div>\n </sky-modal-content>\n </sky-modal>\n</div>\n", styles: [".sky-confirm-message{margin-top:5px}.sky-confirm-body{margin-top:10px}.sky-confirm-buttons{margin-top:20px}.sky-confirm-preserve-white-space{white-space:pre-wrap}:host-context(.sky-theme-modern) .sky-confirm-content{padding:20px 30px}:host-context(.sky-theme-modern) .sky-confirm-message{padding-bottom:20px}:host-context(.sky-theme-modern) .sky-confirm-body{margin:0}.sky-theme-modern .sky-confirm-content{padding:20px 30px}.sky-theme-modern .sky-confirm-message{padding-bottom:20px}.sky-theme-modern .sky-confirm-body{margin:0}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-confirm-message{color:#fbfcfe}.sky-theme-modern.sky-theme-mode-dark .sky-confirm-message{color:#fbfcfe}\n"], components: [{ type: SkyModalComponent, selector: "sky-modal", inputs: ["ariaRole", "tiledBody"] }, { type: SkyModalContentComponent, selector: "sky-modal-content" }], directives: [{ type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1160
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyConfirmComponent, decorators: [{
|
|
1154
1161
|
type: i0.Component,
|
|
1155
1162
|
args: [{
|
|
1156
1163
|
selector: 'sky-confirm',
|
|
1157
|
-
|
|
1158
|
-
|
|
1164
|
+
template: "<div class=\"sky-confirm\">\n <sky-modal ariaRole=\"alertdialog\">\n <sky-modal-content class=\"sky-confirm-content\">\n <div\n class=\"sky-confirm-message\"\n [ngClass]=\"{\n 'sky-confirm-preserve-white-space': preserveWhiteSpace\n }\"\n [skyThemeClass]=\"{\n 'sky-emphasized': 'default',\n 'sky-font-heading-1 sky-font-display-3': 'modern'\n }\"\n >\n {{ message }}\n </div>\n\n <div\n *ngIf=\"body\"\n class=\"sky-confirm-body\"\n [ngClass]=\"{\n 'sky-confirm-preserve-white-space': preserveWhiteSpace\n }\"\n >\n {{ body }}\n </div>\n\n <div class=\"sky-confirm-buttons\">\n <button\n *ngFor=\"let button of buttons\"\n type=\"button\"\n class=\"sky-btn\"\n [ngClass]=\"['sky-btn-' + button.styleType]\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-sm': 'modern',\n 'sky-margin-inline-compact': 'default'\n }\"\n (click)=\"close(button)\"\n [attr.autofocus]=\"button.autofocus ? 'autofocus' : null\"\n >\n {{ button.text }}\n </button>\n </div>\n </sky-modal-content>\n </sky-modal>\n</div>\n",
|
|
1165
|
+
styles: [".sky-confirm-message{margin-top:5px}.sky-confirm-body{margin-top:10px}.sky-confirm-buttons{margin-top:20px}.sky-confirm-preserve-white-space{white-space:pre-wrap}:host-context(.sky-theme-modern) .sky-confirm-content{padding:20px 30px}:host-context(.sky-theme-modern) .sky-confirm-message{padding-bottom:20px}:host-context(.sky-theme-modern) .sky-confirm-body{margin:0}.sky-theme-modern .sky-confirm-content{padding:20px 30px}.sky-theme-modern .sky-confirm-message{padding-bottom:20px}.sky-theme-modern .sky-confirm-body{margin:0}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-confirm-message{color:#fbfcfe}.sky-theme-modern.sky-theme-mode-dark .sky-confirm-message{color:#fbfcfe}\n"],
|
|
1159
1166
|
}]
|
|
1160
1167
|
}], ctorParameters: function () {
|
|
1161
1168
|
return [{ type: SkyConfirmModalContext }, { type: SkyModalInstance }, { type: i3__namespace$1.SkyLibResourcesService, decorators: [{
|
|
@@ -1168,35 +1175,29 @@
|
|
|
1168
1175
|
}
|
|
1169
1176
|
return SkyConfirmModule;
|
|
1170
1177
|
}());
|
|
1171
|
-
SkyConfirmModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1172
|
-
SkyConfirmModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.
|
|
1178
|
+
SkyConfirmModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyConfirmModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1179
|
+
SkyConfirmModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyConfirmModule, declarations: [SkyConfirmComponent], imports: [i6.CommonModule,
|
|
1173
1180
|
SkyModalModule,
|
|
1174
1181
|
SkyModalsResourcesModule,
|
|
1175
1182
|
i1.SkyThemeModule], exports: [SkyConfirmComponent] });
|
|
1176
|
-
SkyConfirmModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.
|
|
1183
|
+
SkyConfirmModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyConfirmModule, imports: [[
|
|
1177
1184
|
i6.CommonModule,
|
|
1178
1185
|
SkyModalModule,
|
|
1179
1186
|
SkyModalsResourcesModule,
|
|
1180
|
-
i1.SkyThemeModule
|
|
1187
|
+
i1.SkyThemeModule,
|
|
1181
1188
|
]] });
|
|
1182
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1189
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyConfirmModule, decorators: [{
|
|
1183
1190
|
type: i0.NgModule,
|
|
1184
1191
|
args: [{
|
|
1185
|
-
declarations: [
|
|
1186
|
-
SkyConfirmComponent
|
|
1187
|
-
],
|
|
1192
|
+
declarations: [SkyConfirmComponent],
|
|
1188
1193
|
imports: [
|
|
1189
1194
|
i6.CommonModule,
|
|
1190
1195
|
SkyModalModule,
|
|
1191
1196
|
SkyModalsResourcesModule,
|
|
1192
|
-
i1.SkyThemeModule
|
|
1197
|
+
i1.SkyThemeModule,
|
|
1193
1198
|
],
|
|
1194
|
-
exports: [
|
|
1195
|
-
|
|
1196
|
-
],
|
|
1197
|
-
entryComponents: [
|
|
1198
|
-
SkyConfirmComponent
|
|
1199
|
-
]
|
|
1199
|
+
exports: [SkyConfirmComponent],
|
|
1200
|
+
entryComponents: [SkyConfirmComponent],
|
|
1200
1201
|
}]
|
|
1201
1202
|
}] });
|
|
1202
1203
|
|
|
@@ -1224,10 +1225,6 @@
|
|
|
1224
1225
|
/**
|
|
1225
1226
|
* Opens a modal using the specified component.
|
|
1226
1227
|
* @param component Determines the component to render.
|
|
1227
|
-
* Since the component generates dynamically instead of with HTML selectors, consumers must
|
|
1228
|
-
* register it with the `entryComponents` property in the `app-extras.module.ts` file.
|
|
1229
|
-
* For more information, see the
|
|
1230
|
-
* [entry components tutorial](https://developer.blackbaud.com/skyux/learn/get-started/advanced/entry-components).
|
|
1231
1228
|
* @param {SkyModalConfigurationInterface} config Populates the modal based on the `SkyModalConfigurationInterface` object.
|
|
1232
1229
|
*/
|
|
1233
1230
|
SkyModalService.prototype.open = function (component, config) {
|
|
@@ -1236,24 +1233,26 @@
|
|
|
1236
1233
|
var params = this.getConfigFromParameter(config);
|
|
1237
1234
|
params.providers.push({
|
|
1238
1235
|
provide: SkyModalInstance,
|
|
1239
|
-
useValue: modalInstance
|
|
1236
|
+
useValue: modalInstance,
|
|
1240
1237
|
});
|
|
1241
1238
|
SkyModalService.host.instance.open(modalInstance, component, params);
|
|
1242
1239
|
return modalInstance;
|
|
1243
1240
|
};
|
|
1244
1241
|
SkyModalService.prototype.getConfigFromParameter = function (providersOrConfig) {
|
|
1245
1242
|
var defaultParams = {
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1243
|
+
providers: [],
|
|
1244
|
+
fullPage: false,
|
|
1245
|
+
size: 'medium',
|
|
1246
|
+
tiledBody: false,
|
|
1250
1247
|
};
|
|
1251
1248
|
var params = undefined;
|
|
1252
1249
|
var method = undefined;
|
|
1253
1250
|
// Object Literal Lookup for backwards compatability.
|
|
1254
1251
|
method = {
|
|
1255
|
-
'providers?': Object.assign({}, defaultParams, {
|
|
1256
|
-
|
|
1252
|
+
'providers?': Object.assign({}, defaultParams, {
|
|
1253
|
+
providers: providersOrConfig,
|
|
1254
|
+
}),
|
|
1255
|
+
config: Object.assign({}, defaultParams, providersOrConfig),
|
|
1257
1256
|
};
|
|
1258
1257
|
if (Array.isArray(providersOrConfig) === true) {
|
|
1259
1258
|
params = method['providers?'];
|
|
@@ -1270,15 +1269,15 @@
|
|
|
1270
1269
|
};
|
|
1271
1270
|
return SkyModalService;
|
|
1272
1271
|
}());
|
|
1273
|
-
SkyModalService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1274
|
-
SkyModalService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1275
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1272
|
+
SkyModalService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalService, deps: [{ token: i3__namespace.SkyDynamicComponentService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1273
|
+
SkyModalService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalService, providedIn: 'any' });
|
|
1274
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyModalService, decorators: [{
|
|
1276
1275
|
type: i0.Injectable,
|
|
1277
1276
|
args: [{
|
|
1278
1277
|
// Must be 'any' so that the modal component is created in the context of its module's injector.
|
|
1279
1278
|
// If set to 'root', the component's dependency injections would only be derived from the root
|
|
1280
1279
|
// injector and may loose context if the modal was opened from within a lazy-loaded module.
|
|
1281
|
-
providedIn: 'any'
|
|
1280
|
+
providedIn: 'any',
|
|
1282
1281
|
}]
|
|
1283
1282
|
}], ctorParameters: function () { return [{ type: i3__namespace.SkyDynamicComponentService }]; } });
|
|
1284
1283
|
|
|
@@ -1296,10 +1295,12 @@
|
|
|
1296
1295
|
*/
|
|
1297
1296
|
SkyConfirmService.prototype.open = function (config) {
|
|
1298
1297
|
var modalInstance = this.modalService.open(SkyConfirmComponent, {
|
|
1299
|
-
providers: [
|
|
1298
|
+
providers: [
|
|
1299
|
+
{
|
|
1300
1300
|
provide: SkyConfirmModalContext,
|
|
1301
|
-
useValue: config
|
|
1302
|
-
}
|
|
1301
|
+
useValue: config,
|
|
1302
|
+
},
|
|
1303
|
+
],
|
|
1303
1304
|
});
|
|
1304
1305
|
var confirmInstance = new SkyConfirmInstance();
|
|
1305
1306
|
modalInstance.closed.subscribe(function (args) {
|
|
@@ -1307,7 +1308,7 @@
|
|
|
1307
1308
|
// The modal was closed using the ESC key.
|
|
1308
1309
|
if (result === undefined) {
|
|
1309
1310
|
result = {
|
|
1310
|
-
action: 'cancel'
|
|
1311
|
+
action: 'cancel',
|
|
1311
1312
|
};
|
|
1312
1313
|
}
|
|
1313
1314
|
confirmInstance.closed.emit(result);
|
|
@@ -1317,12 +1318,12 @@
|
|
|
1317
1318
|
};
|
|
1318
1319
|
return SkyConfirmService;
|
|
1319
1320
|
}());
|
|
1320
|
-
SkyConfirmService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1321
|
-
SkyConfirmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1322
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1321
|
+
SkyConfirmService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyConfirmService, deps: [{ token: SkyModalService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1322
|
+
SkyConfirmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyConfirmService, providedIn: 'root' });
|
|
1323
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyConfirmService, decorators: [{
|
|
1323
1324
|
type: i0.Injectable,
|
|
1324
1325
|
args: [{
|
|
1325
|
-
providedIn: 'root'
|
|
1326
|
+
providedIn: 'root',
|
|
1326
1327
|
}]
|
|
1327
1328
|
}], ctorParameters: function () { return [{ type: SkyModalService }]; } });
|
|
1328
1329
|
|
|
@@ -1341,13 +1342,13 @@
|
|
|
1341
1342
|
exports.SkyModalInstance = SkyModalInstance;
|
|
1342
1343
|
exports.SkyModalModule = SkyModalModule;
|
|
1343
1344
|
exports.SkyModalService = SkyModalService;
|
|
1344
|
-
exports
|
|
1345
|
-
exports
|
|
1346
|
-
exports
|
|
1347
|
-
exports
|
|
1348
|
-
exports
|
|
1345
|
+
exports["λ1"] = SkyConfirmComponent;
|
|
1346
|
+
exports["λ2"] = SkyModalContentComponent;
|
|
1347
|
+
exports["λ3"] = SkyModalFooterComponent;
|
|
1348
|
+
exports["λ4"] = SkyModalHeaderComponent;
|
|
1349
|
+
exports["λ5"] = SkyModalComponent;
|
|
1349
1350
|
|
|
1350
1351
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1351
1352
|
|
|
1352
|
-
}))
|
|
1353
|
+
}));
|
|
1353
1354
|
//# sourceMappingURL=skyux-modals.umd.js.map
|