@skyux/modals 5.8.1 → 5.8.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.umd.js +19 -23
- package/documentation.json +156 -504
- package/esm2015/index.js +1 -1
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/modules/confirm/confirm-button-action.js.map +1 -1
- package/esm2015/lib/modules/confirm/confirm-button-config.js.map +1 -1
- package/esm2015/lib/modules/confirm/confirm-button.js.map +1 -1
- package/esm2015/lib/modules/confirm/confirm-closed-event-args.js.map +1 -1
- package/esm2015/lib/modules/confirm/confirm-config.js.map +1 -1
- package/esm2015/lib/modules/confirm/confirm-instance.js +2 -2
- package/esm2015/lib/modules/confirm/confirm-instance.js.map +1 -1
- package/esm2015/lib/modules/confirm/confirm-modal-context.js +3 -1
- package/esm2015/lib/modules/confirm/confirm-modal-context.js.map +1 -1
- package/esm2015/lib/modules/confirm/confirm-type.js +2 -3
- package/esm2015/lib/modules/confirm/confirm-type.js.map +1 -1
- package/esm2015/lib/modules/confirm/confirm.service.js +3 -4
- package/esm2015/lib/modules/confirm/confirm.service.js.map +1 -1
- package/esm2015/lib/modules/modal/modal-instance.js +0 -5
- package/esm2015/lib/modules/modal/modal-instance.js.map +1 -1
- package/esm2015/lib/modules/modal/modal.service.js +1 -1
- package/esm2015/lib/modules/modal/modal.service.js.map +1 -1
- package/fesm2015/skyux-modals.js +17 -20
- package/fesm2015/skyux-modals.js.map +1 -1
- package/index.d.ts +0 -1
- package/lib/modules/confirm/confirm-button-action.d.ts +3 -0
- package/lib/modules/confirm/confirm-button-config.d.ts +6 -7
- package/lib/modules/confirm/confirm-button.d.ts +4 -0
- package/lib/modules/confirm/confirm-closed-event-args.d.ts +1 -1
- package/lib/modules/confirm/confirm-config.d.ts +3 -5
- package/lib/modules/confirm/confirm-instance.d.ts +2 -2
- package/lib/modules/confirm/confirm-modal-context.d.ts +3 -0
- package/lib/modules/confirm/confirm-type.d.ts +2 -3
- package/lib/modules/confirm/confirm.service.d.ts +3 -4
- package/lib/modules/modal/modal-instance.d.ts +0 -3
- package/lib/modules/modal/modal.service.d.ts +1 -1
- package/package.json +5 -5
|
@@ -33,31 +33,23 @@
|
|
|
33
33
|
var SkyConfirmInstance = /** @class */ (function () {
|
|
34
34
|
function SkyConfirmInstance() {
|
|
35
35
|
/**
|
|
36
|
-
* Fires when users select an action to close the
|
|
36
|
+
* Fires when users select an action to close the dialog. This event
|
|
37
37
|
* returns a `SkyConfirmCloseEventArgs` object with information about the button that
|
|
38
|
-
* users select.
|
|
38
|
+
* users select. It returns the `'cancel'` action when users press the <kbd>Escape</kbd> key.
|
|
39
39
|
*/
|
|
40
40
|
this.closed = new i0.EventEmitter();
|
|
41
41
|
}
|
|
42
42
|
return SkyConfirmInstance;
|
|
43
43
|
}());
|
|
44
44
|
|
|
45
|
-
/* istanbul ignore next */
|
|
46
|
-
var SkyConfirmModalContext = /** @class */ (function () {
|
|
47
|
-
function SkyConfirmModalContext() {
|
|
48
|
-
}
|
|
49
|
-
return SkyConfirmModalContext;
|
|
50
|
-
}());
|
|
51
|
-
|
|
52
45
|
exports.SkyConfirmType = void 0;
|
|
53
46
|
(function (SkyConfirmType) {
|
|
54
47
|
/**
|
|
55
|
-
* Allows you to define your own
|
|
56
|
-
* specify an array of `SkyConfirmButtonConfig` objects.
|
|
48
|
+
* Allows you to define your own buttons using the `buttons` property of `SkyConfirmConfig`.
|
|
57
49
|
*/
|
|
58
50
|
SkyConfirmType[SkyConfirmType["Custom"] = 0] = "Custom";
|
|
59
51
|
/**
|
|
60
|
-
* Displays one button with an **OK** label.
|
|
52
|
+
* Displays one button with an **OK** label and an `'ok'` action.
|
|
61
53
|
*/
|
|
62
54
|
SkyConfirmType[SkyConfirmType["OK"] = 1] = "OK";
|
|
63
55
|
/**
|
|
@@ -950,6 +942,15 @@
|
|
|
950
942
|
}]
|
|
951
943
|
}] });
|
|
952
944
|
|
|
945
|
+
/**
|
|
946
|
+
* @internal
|
|
947
|
+
*/
|
|
948
|
+
var SkyConfirmModalContext = /** @class */ (function () {
|
|
949
|
+
function SkyConfirmModalContext() {
|
|
950
|
+
}
|
|
951
|
+
return SkyConfirmModalContext;
|
|
952
|
+
}());
|
|
953
|
+
|
|
953
954
|
/**
|
|
954
955
|
* Closes the modal instance using the `closeModal` method.
|
|
955
956
|
*/
|
|
@@ -971,11 +972,6 @@
|
|
|
971
972
|
return SkyModalCloseArgs;
|
|
972
973
|
}());
|
|
973
974
|
|
|
974
|
-
// TODO: this class won't show in the generated docs until this work is done:
|
|
975
|
-
// https://github.com/blackbaud/skyux-docs-tools/issues/30
|
|
976
|
-
/**
|
|
977
|
-
* Allows you to close the modal and return data from the launched modal.
|
|
978
|
-
*/
|
|
979
975
|
var SkyModalInstance = /** @class */ (function () {
|
|
980
976
|
function SkyModalInstance() {
|
|
981
977
|
this._beforeClose = new rxjs.Subject();
|
|
@@ -1260,7 +1256,7 @@
|
|
|
1260
1256
|
/**
|
|
1261
1257
|
* Opens a modal using the specified component.
|
|
1262
1258
|
* @param component Determines the component to render.
|
|
1263
|
-
* @param {SkyModalConfigurationInterface} config
|
|
1259
|
+
* @param {SkyModalConfigurationInterface} config Specifies configuration options for the modal.
|
|
1264
1260
|
*/
|
|
1265
1261
|
SkyModalService.prototype.open = function (component, config) {
|
|
1266
1262
|
var modalInstance = new SkyModalInstance();
|
|
@@ -1317,16 +1313,15 @@
|
|
|
1317
1313
|
}], ctorParameters: function () { return [{ type: i3__namespace.SkyDynamicComponentService }]; } });
|
|
1318
1314
|
|
|
1319
1315
|
/**
|
|
1320
|
-
*
|
|
1321
|
-
* Within the service, you can specify the dialog's message and customize the button text.
|
|
1316
|
+
* Launches a dialog.
|
|
1322
1317
|
*/
|
|
1323
1318
|
var SkyConfirmService = /** @class */ (function () {
|
|
1324
1319
|
function SkyConfirmService(modalService) {
|
|
1325
1320
|
this.modalService = modalService;
|
|
1326
1321
|
}
|
|
1327
1322
|
/**
|
|
1328
|
-
* Opens a
|
|
1329
|
-
*
|
|
1323
|
+
* Opens a dialog using the specified options.
|
|
1324
|
+
* @param config Specifies configuration options for the dialog.
|
|
1330
1325
|
*/
|
|
1331
1326
|
SkyConfirmService.prototype.open = function (config) {
|
|
1332
1327
|
var modalInstance = this.modalService.open(SkyConfirmComponent, {
|
|
@@ -1365,12 +1360,13 @@
|
|
|
1365
1360
|
}]
|
|
1366
1361
|
}], ctorParameters: function () { return [{ type: SkyModalService }]; } });
|
|
1367
1362
|
|
|
1363
|
+
// TODO: confirm-button is internal and should be removed in a future version
|
|
1364
|
+
|
|
1368
1365
|
/**
|
|
1369
1366
|
* Generated bundle index. Do not edit.
|
|
1370
1367
|
*/
|
|
1371
1368
|
|
|
1372
1369
|
exports.SkyConfirmInstance = SkyConfirmInstance;
|
|
1373
|
-
exports.SkyConfirmModalContext = SkyConfirmModalContext;
|
|
1374
1370
|
exports.SkyConfirmModule = SkyConfirmModule;
|
|
1375
1371
|
exports.SkyConfirmService = SkyConfirmService;
|
|
1376
1372
|
exports.SkyModalBeforeCloseHandler = SkyModalBeforeCloseHandler;
|