update deps
This commit is contained in:
8
node_modules/pnotify/lib/iife/PNotifyConfirm.js
generated
vendored
8
node_modules/pnotify/lib/iife/PNotifyConfirm.js
generated
vendored
@@ -2,7 +2,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
||||
|
||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||
|
||||
/* src/PNotifyConfirm.html generated by Svelte v2.15.3 */
|
||||
/* src/PNotifyConfirm.html generated by Svelte v2.16.1 */
|
||||
var PNotifyConfirm = function (PNotify) {
|
||||
"use strict";
|
||||
|
||||
@@ -20,13 +20,13 @@ var PNotifyConfirm = function (PNotify) {
|
||||
this.set(options);
|
||||
},
|
||||
afterOpen: function afterOpen() {
|
||||
if (this.get().prompt) {
|
||||
if (this.get().prompt && this.get().focus !== false) {
|
||||
if (this.get().promptMultiLine) {
|
||||
this.refs.promptMulti.focus();
|
||||
} else {
|
||||
this.refs.promptSingle.focus();
|
||||
}
|
||||
} else if (this.get().confirm && this.get()._options.stack.modal) {
|
||||
} else if (this.get().confirm && (this.get().focus === true || this.get().focus === null && this.get()._options.stack.modal)) {
|
||||
var buttons = this.get().buttons;
|
||||
if (buttons.length) {
|
||||
var i = buttons.length - 1;
|
||||
@@ -79,6 +79,8 @@ var PNotifyConfirm = function (PNotify) {
|
||||
promptValue: '',
|
||||
// Whether the prompt should accept multiple lines of text.
|
||||
promptMultiLine: false,
|
||||
// For confirmation boxes, true means the first button or the button with promptTrigger will be focused, and null means focus will change only for modal notices. For prompts, true or null means focus the prompt. When false, focus will not change.
|
||||
focus: null,
|
||||
// Where to align the buttons. (flex-start, center, flex-end, space-around, space-between)
|
||||
align: 'flex-end',
|
||||
// The buttons to display, and their callbacks.
|
||||
|
Reference in New Issue
Block a user