@skyux/modals 5.0.0-beta.5 → 5.0.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/bundles/skyux-modals-testing.umd.js +4 -6
- package/bundles/skyux-modals-testing.umd.js.map +1 -1
- package/bundles/skyux-modals.umd.js +207 -218
- package/bundles/skyux-modals.umd.js.map +1 -1
- package/documentation.json +468 -374
- 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 +15 -43
- 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 +39 -23
- 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 -12
- package/esm2015/modules/shared/sky-modals-resources.module.js +25 -12
- package/esm2015/public-api.js +3 -1
- 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 +186 -198
- package/fesm2015/skyux-modals.js.map +1 -1
- package/modules/modal/modal-component-adapter.service.d.ts +3 -4
- package/modules/modal/modal-configuration.d.ts +1 -0
- package/modules/modal/modal.component.d.ts +8 -4
- package/modules/modal/modal.interface.d.ts +5 -0
- package/package.json +9 -9
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
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
|
-
(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.
|
|
5
|
-
}(this, (function (exports, i0, i6, i1, i2, i5, i3, operators,
|
|
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';
|
|
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
|
|
|
@@ -29,8 +27,8 @@
|
|
|
29
27
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
28
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
29
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
32
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
33
|
-
var
|
|
30
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3);
|
|
31
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
34
32
|
|
|
35
33
|
var SkyConfirmInstance = /** @class */ (function () {
|
|
36
34
|
function SkyConfirmInstance() {
|
|
@@ -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.13", ngImport: i0__namespace, type: SkyModalsResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
112
|
+
SkyModalsResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalsResourcesModule, exports: [i3.SkyI18nModule] });
|
|
113
|
+
SkyModalsResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", ngImport: i0__namespace, type: SkyModalContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
143
|
+
SkyModalContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", ngImport: i0__namespace, type: SkyModalFooterComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
163
|
+
SkyModalFooterComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", ngImport: i0__namespace, type: SkyModalHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
182
|
+
SkyModalHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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,11 +227,11 @@
|
|
|
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.13", 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.13", ngImport: i0__namespace, type: SkyModalAdapterService });
|
|
232
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalAdapterService, decorators: [{
|
|
224
233
|
type: i0.Injectable
|
|
225
|
-
}], ctorParameters: function () { return [{ type:
|
|
234
|
+
}], ctorParameters: function () { return [{ type: i3__namespace.SkyAppWindowRef }]; } });
|
|
226
235
|
|
|
227
236
|
/**
|
|
228
237
|
* @internal
|
|
@@ -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.13", ngImport: i0__namespace, type: SkyModalHostService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
302
|
+
SkyModalHostService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalHostService, providedIn: 'root' });
|
|
303
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", 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.13", ngImport: i0__namespace, type: SkyModalConfiguration, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
321
|
+
SkyModalConfiguration.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalConfiguration, providedIn: 'any' });
|
|
322
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", 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.13", 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,17 +524,17 @@
|
|
|
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.13", 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.13", 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.13", 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: [{
|
|
530
536
|
type: i0.Optional
|
|
531
|
-
}] }, { type:
|
|
537
|
+
}] }, { type: i3__namespace.MutationObserverService }, { type: i0__namespace.NgZone }];
|
|
532
538
|
}, propDecorators: { skyModalScrollShadow: [{
|
|
533
539
|
type: i0.Output
|
|
534
540
|
}], windowResize: [{
|
|
@@ -539,16 +545,12 @@
|
|
|
539
545
|
args: ['scroll']
|
|
540
546
|
}] } });
|
|
541
547
|
|
|
542
|
-
/* tslint:disable */
|
|
543
|
-
var tabbableSelector = 'a[href], area[href], input:not([disabled]):not([tabindex=\'-1\']), ' +
|
|
544
|
-
'button:not([disabled]):not([tabindex=\'-1\']),select:not([disabled]):not([tabindex=\'-1\']), textarea:not([disabled]):not([tabindex=\'-1\']), ' +
|
|
545
|
-
'iframe, object, embed, *[tabindex]:not([tabindex=\'-1\']), *[contenteditable=true]';
|
|
546
|
-
/* tslint:enable */
|
|
547
548
|
/**
|
|
548
549
|
* @internal
|
|
549
550
|
*/
|
|
550
551
|
var SkyModalComponentAdapterService = /** @class */ (function () {
|
|
551
|
-
function SkyModalComponentAdapterService() {
|
|
552
|
+
function SkyModalComponentAdapterService(coreAdapter) {
|
|
553
|
+
this.coreAdapter = coreAdapter;
|
|
552
554
|
}
|
|
553
555
|
SkyModalComponentAdapterService.prototype.handleWindowChange = function (modalEl) {
|
|
554
556
|
var boundedHeightEl = modalEl.nativeElement.querySelector('.sky-modal');
|
|
@@ -571,9 +573,6 @@
|
|
|
571
573
|
modalContentEl.style.maxHeight = contentHeight.toString() + 'px';
|
|
572
574
|
}
|
|
573
575
|
};
|
|
574
|
-
SkyModalComponentAdapterService.prototype.loadFocusElementList = function (modalEl) {
|
|
575
|
-
return this.loadFocusableChildren(modalEl.nativeElement);
|
|
576
|
-
};
|
|
577
576
|
SkyModalComponentAdapterService.prototype.isFocusInFirstItem = function (event, list) {
|
|
578
577
|
/* istanbul ignore next */
|
|
579
578
|
/* sanity check */
|
|
@@ -590,8 +589,8 @@
|
|
|
590
589
|
/* istanbul ignore next */
|
|
591
590
|
/* sanity check */
|
|
592
591
|
var eventTarget = event.target || event.srcElement;
|
|
593
|
-
return modalEl &&
|
|
594
|
-
eventTarget === modalEl.nativeElement.querySelector('.sky-modal-dialog');
|
|
592
|
+
return (modalEl &&
|
|
593
|
+
eventTarget === modalEl.nativeElement.querySelector('.sky-modal-dialog'));
|
|
595
594
|
};
|
|
596
595
|
SkyModalComponentAdapterService.prototype.focusLastElement = function (list) {
|
|
597
596
|
if (list.length > 0) {
|
|
@@ -610,7 +609,8 @@
|
|
|
610
609
|
SkyModalComponentAdapterService.prototype.modalOpened = function (modalEl) {
|
|
611
610
|
/* istanbul ignore else */
|
|
612
611
|
/* handle the case where somehow there is a focused element already in the modal */
|
|
613
|
-
if (!(document.activeElement &&
|
|
612
|
+
if (!(document.activeElement &&
|
|
613
|
+
modalEl.nativeElement.contains(document.activeElement))) {
|
|
614
614
|
var currentScrollX = window.pageXOffset;
|
|
615
615
|
var currentScrollY = window.pageYOffset;
|
|
616
616
|
var inputWithAutofocus = modalEl.nativeElement.querySelector('[autofocus]');
|
|
@@ -618,63 +618,33 @@
|
|
|
618
618
|
inputWithAutofocus.focus();
|
|
619
619
|
}
|
|
620
620
|
else {
|
|
621
|
-
|
|
622
|
-
var focusableChildren = this.loadFocusableChildren(focusEl);
|
|
623
|
-
// Focus first focusable child if available. Otherwise focus content pane.
|
|
624
|
-
if (!this.focusFirstElement(focusableChildren)) {
|
|
625
|
-
focusEl.focus();
|
|
626
|
-
}
|
|
621
|
+
this.coreAdapter.getFocusableChildrenAndApplyFocus(modalEl, '.sky-modal-content', true);
|
|
627
622
|
}
|
|
628
623
|
window.scrollTo(currentScrollX, currentScrollY);
|
|
629
624
|
}
|
|
630
625
|
};
|
|
631
|
-
SkyModalComponentAdapterService.prototype.loadFocusableChildren = function (elem) {
|
|
632
|
-
var _this = this;
|
|
633
|
-
var elements = Array.prototype.slice.call(elem.querySelectorAll(tabbableSelector));
|
|
634
|
-
return elements.filter(function (element) {
|
|
635
|
-
return _this.isVisible(element);
|
|
636
|
-
});
|
|
637
|
-
};
|
|
638
|
-
SkyModalComponentAdapterService.prototype.isVisible = function (element) {
|
|
639
|
-
var style = window.getComputedStyle(element);
|
|
640
|
-
var isHidden = style.display === 'none' || style.visibility === 'hidden';
|
|
641
|
-
if (isHidden) {
|
|
642
|
-
return false;
|
|
643
|
-
}
|
|
644
|
-
var hasBounds = !!(element.offsetWidth ||
|
|
645
|
-
/* istanbul ignore next */
|
|
646
|
-
element.offsetHeight ||
|
|
647
|
-
/* istanbul ignore next */
|
|
648
|
-
element.getClientRects().length);
|
|
649
|
-
return hasBounds;
|
|
650
|
-
};
|
|
651
626
|
SkyModalComponentAdapterService.prototype.setFullPageHeight = function (fullPageModalEl) {
|
|
652
627
|
var windowHeight = window.innerHeight;
|
|
653
628
|
var fullPageModalStyle = getComputedStyle(fullPageModalEl);
|
|
654
629
|
var marginTopBottom = parseInt(fullPageModalStyle.marginTop, 10) +
|
|
655
630
|
parseInt(fullPageModalStyle.marginBottom, 10);
|
|
656
|
-
var fullPageModalHeight =
|
|
631
|
+
var fullPageModalHeight = windowHeight - marginTopBottom + 'px';
|
|
657
632
|
fullPageModalEl.style.height = fullPageModalHeight;
|
|
658
633
|
fullPageModalEl.style.maxHeight = fullPageModalHeight;
|
|
659
634
|
};
|
|
660
635
|
return SkyModalComponentAdapterService;
|
|
661
636
|
}());
|
|
662
|
-
SkyModalComponentAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
663
|
-
SkyModalComponentAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
664
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
637
|
+
SkyModalComponentAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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.13", ngImport: i0__namespace, type: SkyModalComponentAdapterService });
|
|
639
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalComponentAdapterService, decorators: [{
|
|
665
640
|
type: i0.Injectable
|
|
666
|
-
}], ctorParameters: function () { return []; } });
|
|
641
|
+
}], ctorParameters: function () { return [{ type: i3__namespace.SkyCoreAdapterService }]; } });
|
|
667
642
|
|
|
668
643
|
var skyAnimationModalState = animations.trigger('modalState', [
|
|
669
644
|
animations.state('in', animations.style({ opacity: '1.0' })),
|
|
670
645
|
animations.state('out', animations.style({ opacity: '0.0' })),
|
|
671
|
-
animations.transition('void => *', [
|
|
672
|
-
|
|
673
|
-
animations.animate(150)
|
|
674
|
-
]),
|
|
675
|
-
animations.transition('* => void', [
|
|
676
|
-
animations.animate(150, animations.style({ opacity: '0.0' }))
|
|
677
|
-
])
|
|
646
|
+
animations.transition('void => *', [animations.style({ opacity: '0.0' }), animations.animate(150)]),
|
|
647
|
+
animations.transition('* => void', [animations.animate(150, animations.style({ opacity: '0.0' }))]),
|
|
678
648
|
]);
|
|
679
649
|
|
|
680
650
|
var skyModalUniqueIdentifier = 0;
|
|
@@ -685,16 +655,25 @@
|
|
|
685
655
|
* [write unit tests for modals](https://developer.blackbaud.com/skyux/learn/get-started/advanced/unit-test-modals).
|
|
686
656
|
*/
|
|
687
657
|
var SkyModalComponent = /** @class */ (function () {
|
|
688
|
-
function SkyModalComponent(hostService, config, elRef, windowRef, componentAdapter) {
|
|
658
|
+
function SkyModalComponent(hostService, config, elRef, windowRef, componentAdapter, coreAdapter, dockService) {
|
|
689
659
|
this.hostService = hostService;
|
|
690
660
|
this.config = config;
|
|
691
661
|
this.elRef = elRef;
|
|
692
662
|
this.windowRef = windowRef;
|
|
693
663
|
this.componentAdapter = componentAdapter;
|
|
664
|
+
this.coreAdapter = coreAdapter;
|
|
665
|
+
this.dockService = dockService;
|
|
694
666
|
this.modalState = 'in';
|
|
695
667
|
this.modalContentId = 'sky-modal-content-id-' + skyModalUniqueIdentifier.toString();
|
|
696
668
|
this.modalHeaderId = 'sky-modal-header-id-' + skyModalUniqueIdentifier.toString();
|
|
697
669
|
}
|
|
670
|
+
Object.defineProperty(SkyModalComponent.prototype, "wrapperClass", {
|
|
671
|
+
get: function () {
|
|
672
|
+
return this.config.wrapperClass;
|
|
673
|
+
},
|
|
674
|
+
enumerable: false,
|
|
675
|
+
configurable: true
|
|
676
|
+
});
|
|
698
677
|
Object.defineProperty(SkyModalComponent.prototype, "ariaRole", {
|
|
699
678
|
/**
|
|
700
679
|
* @internal
|
|
@@ -787,7 +766,8 @@
|
|
|
787
766
|
if (SkyModalHostService.openModalCount > 0) {
|
|
788
767
|
var topModal = SkyModalHostService.topModal;
|
|
789
768
|
if (topModal && topModal === this.hostService) {
|
|
790
|
-
if (event.which === 27) {
|
|
769
|
+
if (event.which === 27) {
|
|
770
|
+
// Escape key up
|
|
791
771
|
event.preventDefault();
|
|
792
772
|
this.closeButtonClick();
|
|
793
773
|
}
|
|
@@ -800,16 +780,20 @@
|
|
|
800
780
|
if (SkyModalHostService.openModalCount > 0) {
|
|
801
781
|
var topModal = SkyModalHostService.topModal;
|
|
802
782
|
if (topModal && topModal === this.hostService) {
|
|
803
|
-
if (event.which === 9) {
|
|
783
|
+
if (event.which === 9) {
|
|
784
|
+
// Tab pressed
|
|
804
785
|
var focusChanged = false;
|
|
805
|
-
var focusElementList = this.
|
|
786
|
+
var focusElementList = this.coreAdapter.getFocusableChildren(this.elRef.nativeElement);
|
|
806
787
|
if (event.shiftKey &&
|
|
807
788
|
(this.componentAdapter.isFocusInFirstItem(event, focusElementList) ||
|
|
808
789
|
this.componentAdapter.isModalFocused(event, this.elRef))) {
|
|
809
|
-
focusChanged =
|
|
790
|
+
focusChanged =
|
|
791
|
+
this.componentAdapter.focusLastElement(focusElementList);
|
|
810
792
|
}
|
|
811
|
-
else if (!event.shiftKey &&
|
|
812
|
-
|
|
793
|
+
else if (!event.shiftKey &&
|
|
794
|
+
this.componentAdapter.isFocusInLastItem(event, focusElementList)) {
|
|
795
|
+
focusChanged =
|
|
796
|
+
this.componentAdapter.focusFirstElement(focusElementList);
|
|
813
797
|
}
|
|
814
798
|
if (focusChanged) {
|
|
815
799
|
event.preventDefault();
|
|
@@ -828,6 +812,11 @@
|
|
|
828
812
|
this.windowRef.nativeWindow.setTimeout(function () {
|
|
829
813
|
_this.componentAdapter.modalOpened(_this.elRef);
|
|
830
814
|
});
|
|
815
|
+
this.dockService.setDockOptions({
|
|
816
|
+
location: i3$1.SkyDockLocation.ElementBottom,
|
|
817
|
+
referenceEl: this.modalContentWrapperElement.nativeElement,
|
|
818
|
+
zIndex: 5,
|
|
819
|
+
});
|
|
831
820
|
};
|
|
832
821
|
SkyModalComponent.prototype.helpButtonClick = function () {
|
|
833
822
|
this.hostService.onOpenHelp(this.helpKey);
|
|
@@ -846,29 +835,31 @@
|
|
|
846
835
|
};
|
|
847
836
|
return SkyModalComponent;
|
|
848
837
|
}());
|
|
849
|
-
SkyModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
850
|
-
SkyModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
851
|
-
|
|
852
|
-
], 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 >\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}: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}.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}: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.SkyLibResourcesPipe }, animations: [
|
|
853
|
-
skyAnimationModalState
|
|
854
|
-
] });
|
|
855
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: SkyModalComponent, decorators: [{
|
|
838
|
+
SkyModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", ngImport: i0__namespace, type: SkyModalComponent, decorators: [{
|
|
856
841
|
type: i0.Component,
|
|
857
842
|
args: [{
|
|
858
843
|
selector: 'sky-modal',
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
animations: [
|
|
862
|
-
|
|
863
|
-
],
|
|
864
|
-
providers: [
|
|
865
|
-
SkyModalComponentAdapterService
|
|
866
|
-
]
|
|
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],
|
|
846
|
+
animations: [skyAnimationModalState],
|
|
847
|
+
providers: [SkyModalComponentAdapterService, i3$1.SkyDockService],
|
|
867
848
|
}]
|
|
868
|
-
}], ctorParameters: function () {
|
|
849
|
+
}], ctorParameters: function () {
|
|
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: [{
|
|
851
|
+
type: i0.Host
|
|
852
|
+
}] }];
|
|
853
|
+
}, propDecorators: { wrapperClass: [{
|
|
854
|
+
type: i0.HostBinding,
|
|
855
|
+
args: ['class']
|
|
856
|
+
}], ariaRole: [{
|
|
869
857
|
type: i0.Input
|
|
870
858
|
}], tiledBody: [{
|
|
871
859
|
type: i0.Input
|
|
860
|
+
}], modalContentWrapperElement: [{
|
|
861
|
+
type: i0.ViewChild,
|
|
862
|
+
args: ['modalContentWrapper', { read: i0.ElementRef }]
|
|
872
863
|
}], onDocumentKeyUp: [{
|
|
873
864
|
type: i0.HostListener,
|
|
874
865
|
args: ['document:keyup', ['$event']]
|
|
@@ -882,8 +873,8 @@
|
|
|
882
873
|
}
|
|
883
874
|
return SkyModalModule;
|
|
884
875
|
}());
|
|
885
|
-
SkyModalModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
886
|
-
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.13", ngImport: i0__namespace, type: SkyModalModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
877
|
+
SkyModalModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalModule, declarations: [SkyModalComponent,
|
|
887
878
|
SkyModalContentComponent,
|
|
888
879
|
SkyModalFooterComponent,
|
|
889
880
|
SkyModalHeaderComponent,
|
|
@@ -896,14 +887,14 @@
|
|
|
896
887
|
SkyModalContentComponent,
|
|
897
888
|
SkyModalFooterComponent,
|
|
898
889
|
SkyModalHeaderComponent] });
|
|
899
|
-
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.13", ngImport: i0__namespace, type: SkyModalModule, imports: [[
|
|
900
891
|
i6.CommonModule,
|
|
901
892
|
i2.RouterModule,
|
|
902
893
|
i5.SkyIconModule,
|
|
903
894
|
SkyModalsResourcesModule,
|
|
904
|
-
i1.SkyThemeModule
|
|
895
|
+
i1.SkyThemeModule,
|
|
905
896
|
]] });
|
|
906
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
897
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalModule, decorators: [{
|
|
907
898
|
type: i0.NgModule,
|
|
908
899
|
args: [{
|
|
909
900
|
declarations: [
|
|
@@ -912,24 +903,22 @@
|
|
|
912
903
|
SkyModalFooterComponent,
|
|
913
904
|
SkyModalHeaderComponent,
|
|
914
905
|
SkyModalHostComponent,
|
|
915
|
-
SkyModalScrollShadowDirective
|
|
906
|
+
SkyModalScrollShadowDirective,
|
|
916
907
|
],
|
|
917
908
|
imports: [
|
|
918
909
|
i6.CommonModule,
|
|
919
910
|
i2.RouterModule,
|
|
920
911
|
i5.SkyIconModule,
|
|
921
912
|
SkyModalsResourcesModule,
|
|
922
|
-
i1.SkyThemeModule
|
|
913
|
+
i1.SkyThemeModule,
|
|
923
914
|
],
|
|
924
915
|
exports: [
|
|
925
916
|
SkyModalComponent,
|
|
926
917
|
SkyModalContentComponent,
|
|
927
918
|
SkyModalFooterComponent,
|
|
928
|
-
SkyModalHeaderComponent
|
|
919
|
+
SkyModalHeaderComponent,
|
|
929
920
|
],
|
|
930
|
-
entryComponents: [
|
|
931
|
-
SkyModalHostComponent
|
|
932
|
-
]
|
|
921
|
+
entryComponents: [SkyModalHostComponent],
|
|
933
922
|
}]
|
|
934
923
|
}] });
|
|
935
924
|
|
|
@@ -1073,7 +1062,8 @@
|
|
|
1073
1062
|
}
|
|
1074
1063
|
SkyConfirmComponent.prototype.ngOnInit = function () {
|
|
1075
1064
|
var _this = this;
|
|
1076
|
-
if (this.config.type === exports.SkyConfirmType.Custom &&
|
|
1065
|
+
if (this.config.type === exports.SkyConfirmType.Custom &&
|
|
1066
|
+
this.config.buttons.length > 0) {
|
|
1077
1067
|
this.buttons = this.getCustomButtons(this.config.buttons);
|
|
1078
1068
|
}
|
|
1079
1069
|
else {
|
|
@@ -1087,7 +1077,7 @@
|
|
|
1087
1077
|
};
|
|
1088
1078
|
SkyConfirmComponent.prototype.close = function (button) {
|
|
1089
1079
|
var result = {
|
|
1090
|
-
action: button.action
|
|
1080
|
+
action: button.action,
|
|
1091
1081
|
};
|
|
1092
1082
|
this.modal.close(result);
|
|
1093
1083
|
};
|
|
@@ -1096,15 +1086,16 @@
|
|
|
1096
1086
|
switch (this.config.type) {
|
|
1097
1087
|
default:
|
|
1098
1088
|
case exports.SkyConfirmType.OK:
|
|
1099
|
-
this.resourcesService
|
|
1089
|
+
this.resourcesService
|
|
1090
|
+
.getString('skyux_confirm_dialog_default_ok_text')
|
|
1100
1091
|
.subscribe(function (value) {
|
|
1101
1092
|
emitter.next([
|
|
1102
1093
|
{
|
|
1103
1094
|
text: value,
|
|
1104
1095
|
autofocus: true,
|
|
1105
1096
|
styleType: 'primary',
|
|
1106
|
-
action: 'ok'
|
|
1107
|
-
}
|
|
1097
|
+
action: 'ok',
|
|
1098
|
+
},
|
|
1108
1099
|
]);
|
|
1109
1100
|
});
|
|
1110
1101
|
break;
|
|
@@ -1115,18 +1106,18 @@
|
|
|
1115
1106
|
text: values[0],
|
|
1116
1107
|
autofocus: true,
|
|
1117
1108
|
styleType: 'primary',
|
|
1118
|
-
action: 'yes'
|
|
1109
|
+
action: 'yes',
|
|
1119
1110
|
},
|
|
1120
1111
|
{
|
|
1121
1112
|
text: values[1],
|
|
1122
1113
|
styleType: 'default',
|
|
1123
|
-
action: 'no'
|
|
1114
|
+
action: 'no',
|
|
1124
1115
|
},
|
|
1125
1116
|
{
|
|
1126
1117
|
text: values[2],
|
|
1127
1118
|
styleType: 'link',
|
|
1128
|
-
action: 'cancel'
|
|
1129
|
-
}
|
|
1119
|
+
action: 'cancel',
|
|
1120
|
+
},
|
|
1130
1121
|
]);
|
|
1131
1122
|
});
|
|
1132
1123
|
break;
|
|
@@ -1137,13 +1128,13 @@
|
|
|
1137
1128
|
text: values[0],
|
|
1138
1129
|
autofocus: true,
|
|
1139
1130
|
styleType: 'primary',
|
|
1140
|
-
action: 'yes'
|
|
1131
|
+
action: 'yes',
|
|
1141
1132
|
},
|
|
1142
1133
|
{
|
|
1143
1134
|
text: values[1],
|
|
1144
1135
|
styleType: 'link',
|
|
1145
|
-
action: 'cancel'
|
|
1146
|
-
}
|
|
1136
|
+
action: 'cancel',
|
|
1137
|
+
},
|
|
1147
1138
|
]);
|
|
1148
1139
|
});
|
|
1149
1140
|
break;
|
|
@@ -1157,24 +1148,24 @@
|
|
|
1157
1148
|
text: config.text,
|
|
1158
1149
|
action: config.action,
|
|
1159
1150
|
styleType: config.styleType || 'default',
|
|
1160
|
-
autofocus: config.autofocus || false
|
|
1151
|
+
autofocus: config.autofocus || false,
|
|
1161
1152
|
});
|
|
1162
1153
|
});
|
|
1163
1154
|
return buttons;
|
|
1164
1155
|
};
|
|
1165
1156
|
return SkyConfirmComponent;
|
|
1166
1157
|
}());
|
|
1167
|
-
SkyConfirmComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1168
|
-
SkyConfirmComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.
|
|
1169
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1158
|
+
SkyConfirmComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", ngImport: i0__namespace, type: SkyConfirmComponent, decorators: [{
|
|
1170
1161
|
type: i0.Component,
|
|
1171
1162
|
args: [{
|
|
1172
1163
|
selector: 'sky-confirm',
|
|
1173
|
-
|
|
1174
|
-
|
|
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"],
|
|
1175
1166
|
}]
|
|
1176
1167
|
}], ctorParameters: function () {
|
|
1177
|
-
return [{ type: SkyConfirmModalContext }, { type: SkyModalInstance }, { type: i3__namespace.SkyLibResourcesService, decorators: [{
|
|
1168
|
+
return [{ type: SkyConfirmModalContext }, { type: SkyModalInstance }, { type: i3__namespace$1.SkyLibResourcesService, decorators: [{
|
|
1178
1169
|
type: i0.Optional
|
|
1179
1170
|
}] }];
|
|
1180
1171
|
} });
|
|
@@ -1184,35 +1175,29 @@
|
|
|
1184
1175
|
}
|
|
1185
1176
|
return SkyConfirmModule;
|
|
1186
1177
|
}());
|
|
1187
|
-
SkyConfirmModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1188
|
-
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.13", ngImport: i0__namespace, type: SkyConfirmModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1179
|
+
SkyConfirmModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyConfirmModule, declarations: [SkyConfirmComponent], imports: [i6.CommonModule,
|
|
1189
1180
|
SkyModalModule,
|
|
1190
1181
|
SkyModalsResourcesModule,
|
|
1191
1182
|
i1.SkyThemeModule], exports: [SkyConfirmComponent] });
|
|
1192
|
-
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.13", ngImport: i0__namespace, type: SkyConfirmModule, imports: [[
|
|
1193
1184
|
i6.CommonModule,
|
|
1194
1185
|
SkyModalModule,
|
|
1195
1186
|
SkyModalsResourcesModule,
|
|
1196
|
-
i1.SkyThemeModule
|
|
1187
|
+
i1.SkyThemeModule,
|
|
1197
1188
|
]] });
|
|
1198
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1189
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyConfirmModule, decorators: [{
|
|
1199
1190
|
type: i0.NgModule,
|
|
1200
1191
|
args: [{
|
|
1201
|
-
declarations: [
|
|
1202
|
-
SkyConfirmComponent
|
|
1203
|
-
],
|
|
1192
|
+
declarations: [SkyConfirmComponent],
|
|
1204
1193
|
imports: [
|
|
1205
1194
|
i6.CommonModule,
|
|
1206
1195
|
SkyModalModule,
|
|
1207
1196
|
SkyModalsResourcesModule,
|
|
1208
|
-
i1.SkyThemeModule
|
|
1209
|
-
],
|
|
1210
|
-
exports: [
|
|
1211
|
-
SkyConfirmComponent
|
|
1197
|
+
i1.SkyThemeModule,
|
|
1212
1198
|
],
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
]
|
|
1199
|
+
exports: [SkyConfirmComponent],
|
|
1200
|
+
entryComponents: [SkyConfirmComponent],
|
|
1216
1201
|
}]
|
|
1217
1202
|
}] });
|
|
1218
1203
|
|
|
@@ -1252,24 +1237,26 @@
|
|
|
1252
1237
|
var params = this.getConfigFromParameter(config);
|
|
1253
1238
|
params.providers.push({
|
|
1254
1239
|
provide: SkyModalInstance,
|
|
1255
|
-
useValue: modalInstance
|
|
1240
|
+
useValue: modalInstance,
|
|
1256
1241
|
});
|
|
1257
1242
|
SkyModalService.host.instance.open(modalInstance, component, params);
|
|
1258
1243
|
return modalInstance;
|
|
1259
1244
|
};
|
|
1260
1245
|
SkyModalService.prototype.getConfigFromParameter = function (providersOrConfig) {
|
|
1261
1246
|
var defaultParams = {
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1247
|
+
providers: [],
|
|
1248
|
+
fullPage: false,
|
|
1249
|
+
size: 'medium',
|
|
1250
|
+
tiledBody: false,
|
|
1266
1251
|
};
|
|
1267
1252
|
var params = undefined;
|
|
1268
1253
|
var method = undefined;
|
|
1269
1254
|
// Object Literal Lookup for backwards compatability.
|
|
1270
1255
|
method = {
|
|
1271
|
-
'providers?': Object.assign({}, defaultParams, {
|
|
1272
|
-
|
|
1256
|
+
'providers?': Object.assign({}, defaultParams, {
|
|
1257
|
+
providers: providersOrConfig,
|
|
1258
|
+
}),
|
|
1259
|
+
config: Object.assign({}, defaultParams, providersOrConfig),
|
|
1273
1260
|
};
|
|
1274
1261
|
if (Array.isArray(providersOrConfig) === true) {
|
|
1275
1262
|
params = method['providers?'];
|
|
@@ -1286,17 +1273,17 @@
|
|
|
1286
1273
|
};
|
|
1287
1274
|
return SkyModalService;
|
|
1288
1275
|
}());
|
|
1289
|
-
SkyModalService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1290
|
-
SkyModalService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1291
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1276
|
+
SkyModalService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalService, deps: [{ token: i3__namespace.SkyDynamicComponentService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1277
|
+
SkyModalService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalService, providedIn: 'any' });
|
|
1278
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyModalService, decorators: [{
|
|
1292
1279
|
type: i0.Injectable,
|
|
1293
1280
|
args: [{
|
|
1294
1281
|
// Must be 'any' so that the modal component is created in the context of its module's injector.
|
|
1295
1282
|
// If set to 'root', the component's dependency injections would only be derived from the root
|
|
1296
1283
|
// injector and may loose context if the modal was opened from within a lazy-loaded module.
|
|
1297
|
-
providedIn: 'any'
|
|
1284
|
+
providedIn: 'any',
|
|
1298
1285
|
}]
|
|
1299
|
-
}], ctorParameters: function () { return [{ type:
|
|
1286
|
+
}], ctorParameters: function () { return [{ type: i3__namespace.SkyDynamicComponentService }]; } });
|
|
1300
1287
|
|
|
1301
1288
|
/**
|
|
1302
1289
|
* The `SkyConfirmService` provider launches the confirmation dialog.
|
|
@@ -1312,10 +1299,12 @@
|
|
|
1312
1299
|
*/
|
|
1313
1300
|
SkyConfirmService.prototype.open = function (config) {
|
|
1314
1301
|
var modalInstance = this.modalService.open(SkyConfirmComponent, {
|
|
1315
|
-
providers: [
|
|
1302
|
+
providers: [
|
|
1303
|
+
{
|
|
1316
1304
|
provide: SkyConfirmModalContext,
|
|
1317
|
-
useValue: config
|
|
1318
|
-
}
|
|
1305
|
+
useValue: config,
|
|
1306
|
+
},
|
|
1307
|
+
],
|
|
1319
1308
|
});
|
|
1320
1309
|
var confirmInstance = new SkyConfirmInstance();
|
|
1321
1310
|
modalInstance.closed.subscribe(function (args) {
|
|
@@ -1323,7 +1312,7 @@
|
|
|
1323
1312
|
// The modal was closed using the ESC key.
|
|
1324
1313
|
if (result === undefined) {
|
|
1325
1314
|
result = {
|
|
1326
|
-
action: 'cancel'
|
|
1315
|
+
action: 'cancel',
|
|
1327
1316
|
};
|
|
1328
1317
|
}
|
|
1329
1318
|
confirmInstance.closed.emit(result);
|
|
@@ -1333,12 +1322,12 @@
|
|
|
1333
1322
|
};
|
|
1334
1323
|
return SkyConfirmService;
|
|
1335
1324
|
}());
|
|
1336
|
-
SkyConfirmService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.
|
|
1337
|
-
SkyConfirmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.
|
|
1338
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.
|
|
1325
|
+
SkyConfirmService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyConfirmService, deps: [{ token: SkyModalService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1326
|
+
SkyConfirmService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyConfirmService, providedIn: 'root' });
|
|
1327
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyConfirmService, decorators: [{
|
|
1339
1328
|
type: i0.Injectable,
|
|
1340
1329
|
args: [{
|
|
1341
|
-
providedIn: 'root'
|
|
1330
|
+
providedIn: 'root',
|
|
1342
1331
|
}]
|
|
1343
1332
|
}], ctorParameters: function () { return [{ type: SkyModalService }]; } });
|
|
1344
1333
|
|
|
@@ -1357,13 +1346,13 @@
|
|
|
1357
1346
|
exports.SkyModalInstance = SkyModalInstance;
|
|
1358
1347
|
exports.SkyModalModule = SkyModalModule;
|
|
1359
1348
|
exports.SkyModalService = SkyModalService;
|
|
1360
|
-
exports
|
|
1361
|
-
exports
|
|
1362
|
-
exports
|
|
1363
|
-
exports
|
|
1364
|
-
exports
|
|
1349
|
+
exports["λ1"] = SkyConfirmComponent;
|
|
1350
|
+
exports["λ2"] = SkyModalContentComponent;
|
|
1351
|
+
exports["λ3"] = SkyModalFooterComponent;
|
|
1352
|
+
exports["λ4"] = SkyModalHeaderComponent;
|
|
1353
|
+
exports["λ5"] = SkyModalComponent;
|
|
1365
1354
|
|
|
1366
1355
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1367
1356
|
|
|
1368
|
-
}))
|
|
1357
|
+
}));
|
|
1369
1358
|
//# sourceMappingURL=skyux-modals.umd.js.map
|