update deps

This commit is contained in:
s2
2019-12-20 20:02:44 +01:00
parent 14c1b72301
commit b7fa481dcb
833 changed files with 68364 additions and 18390 deletions

View File

@@ -1,4 +1,4 @@
/* src/PNotifyConfirm.html generated by Svelte v2.15.3 */
/* src/PNotifyConfirm.html generated by Svelte v2.16.1 */
import PNotify from "./PNotify.js";
function data() {
@@ -14,13 +14,18 @@ var methods = {
},
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)
)
) {
const buttons = this.get().buttons;
if (buttons.length) {
let i = buttons.length - 1;
@@ -72,6 +77,8 @@ function setup(Component) {
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.