@vuesimple/vs-modal 1.4.18 → 3.0.0

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.
@@ -1,821 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = global || self, factory(global.VsModal = {}));
5
- }(this, (function (exports) { 'use strict';
6
-
7
- //
8
- //
9
- //
10
- //
11
- //
12
- //
13
- //
14
- //
15
- //
16
- //
17
- //
18
- //
19
- //
20
- //
21
- //
22
- //
23
- //
24
- //
25
- //
26
- //
27
- //
28
- //
29
- //
30
- //
31
- //
32
- //
33
- //
34
- //
35
- //
36
-
37
- var script = {
38
- name: 'VsFocusContainer',
39
-
40
- props: {
41
- containFocus: {
42
- type: Boolean,
43
- default: true,
44
- },
45
- focusRedirector: Function,
46
- disabled: {
47
- type: Boolean,
48
- default: false,
49
- },
50
- tag: {
51
- type: String,
52
- default: 'div',
53
- },
54
- lazy: {
55
- type: Boolean,
56
- default: false,
57
- },
58
- },
59
-
60
- computed: {
61
- renderRedirector: function renderRedirector() {
62
- if (this.disabled) {
63
- return false;
64
- }
65
- return this.lazy ? this.containFocus : true;
66
- },
67
- },
68
-
69
- methods: {
70
- focus: function focus() {
71
- this.$refs.content.focus();
72
- },
73
- redirectFocus: function redirectFocus(e, options) {
74
- if (!this.containFocus) {
75
- this.$emit('focus-overflow', e, options);
76
- return;
77
- }
78
- e.stopPropagation();
79
- if (this.focusRedirector) {
80
- this.focusRedirector(e, options);
81
- return;
82
- }
83
- if (options.isTabbingForward) {
84
- this.$refs.content.focus();
85
- } else {
86
- this.$refs.lastFocusable.focus();
87
- }
88
- },
89
- },
90
- };
91
-
92
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
93
- if (typeof shadowMode !== 'boolean') {
94
- createInjectorSSR = createInjector;
95
- createInjector = shadowMode;
96
- shadowMode = false;
97
- }
98
- // Vue.extend constructor export interop.
99
- var options = typeof script === 'function' ? script.options : script;
100
- // render functions
101
- if (template && template.render) {
102
- options.render = template.render;
103
- options.staticRenderFns = template.staticRenderFns;
104
- options._compiled = true;
105
- // functional template
106
- if (isFunctionalTemplate) {
107
- options.functional = true;
108
- }
109
- }
110
- // scopedId
111
- if (scopeId) {
112
- options._scopeId = scopeId;
113
- }
114
- var hook;
115
- if (moduleIdentifier) {
116
- // server build
117
- hook = function (context) {
118
- // 2.3 injection
119
- context =
120
- context || // cached call
121
- (this.$vnode && this.$vnode.ssrContext) || // stateful
122
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
123
- // 2.2 with runInNewContext: true
124
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
125
- context = __VUE_SSR_CONTEXT__;
126
- }
127
- // inject component styles
128
- if (style) {
129
- style.call(this, createInjectorSSR(context));
130
- }
131
- // register component module identifier for async chunk inference
132
- if (context && context._registeredComponents) {
133
- context._registeredComponents.add(moduleIdentifier);
134
- }
135
- };
136
- // used by ssr in case component is cached and beforeCreate
137
- // never gets called
138
- options._ssrRegister = hook;
139
- }
140
- else if (style) {
141
- hook = shadowMode
142
- ? function (context) {
143
- style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
144
- }
145
- : function (context) {
146
- style.call(this, createInjector(context));
147
- };
148
- }
149
- if (hook) {
150
- if (options.functional) {
151
- // register for functional component in vue file
152
- var originalRender = options.render;
153
- options.render = function renderWithStyleInjection(h, context) {
154
- hook.call(context);
155
- return originalRender(h, context);
156
- };
157
- }
158
- else {
159
- // inject component registration as beforeCreate hook
160
- var existing = options.beforeCreate;
161
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
162
- }
163
- }
164
- return script;
165
- }
166
-
167
- var isOldIE = typeof navigator !== 'undefined' &&
168
- /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
169
- function createInjector(context) {
170
- return function (id, style) { return addStyle(id, style); };
171
- }
172
- var HEAD;
173
- var styles = {};
174
- function addStyle(id, css) {
175
- var group = isOldIE ? css.media || 'default' : id;
176
- var style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
177
- if (!style.ids.has(id)) {
178
- style.ids.add(id);
179
- var code = css.source;
180
- if (css.map) {
181
- // https://developer.chrome.com/devtools/docs/javascript-debugging
182
- // this makes source maps inside style tags work properly in Chrome
183
- code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
184
- // http://stackoverflow.com/a/26603875
185
- code +=
186
- '\n/*# sourceMappingURL=data:application/json;base64,' +
187
- btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
188
- ' */';
189
- }
190
- if (!style.element) {
191
- style.element = document.createElement('style');
192
- style.element.type = 'text/css';
193
- if (css.media)
194
- { style.element.setAttribute('media', css.media); }
195
- if (HEAD === undefined) {
196
- HEAD = document.head || document.getElementsByTagName('head')[0];
197
- }
198
- HEAD.appendChild(style.element);
199
- }
200
- if ('styleSheet' in style.element) {
201
- style.styles.push(code);
202
- style.element.styleSheet.cssText = style.styles
203
- .filter(Boolean)
204
- .join('\n');
205
- }
206
- else {
207
- var index = style.ids.size - 1;
208
- var textNode = document.createTextNode(code);
209
- var nodes = style.element.childNodes;
210
- if (nodes[index])
211
- { style.element.removeChild(nodes[index]); }
212
- if (nodes.length)
213
- { style.element.insertBefore(textNode, nodes[index]); }
214
- else
215
- { style.element.appendChild(textNode); }
216
- }
217
- }
218
- }
219
-
220
- /* script */
221
- var __vue_script__ = script;
222
-
223
- /* template */
224
- var __vue_render__ = function() {
225
- var _vm = this;
226
- var _h = _vm.$createElement;
227
- var _c = _vm._self._c || _h;
228
- return _c(_vm.tag, { tag: "component", staticClass: "vs-focus-container" }, [
229
- _vm.renderRedirector
230
- ? _c("span", {
231
- staticClass: "vs-focus-container__focus-redirector",
232
- attrs: { tabindex: "0" },
233
- on: {
234
- focus: function($event) {
235
- return _vm.redirectFocus($event, { isTabbingForward: false })
236
- }
237
- }
238
- })
239
- : _vm._e(),
240
- _vm._v(" "),
241
- _c(
242
- "div",
243
- {
244
- ref: "content",
245
- staticClass: "vs-focus-container__content",
246
- attrs: { tabindex: "-1" }
247
- },
248
- [_vm._t("default")],
249
- 2
250
- ),
251
- _vm._v(" "),
252
- !_vm.disabled && _vm.containFocus
253
- ? _c("span", {
254
- ref: "lastFocusable",
255
- staticClass: "vs-focus-container__last-focusable",
256
- attrs: { tabindex: "-1" }
257
- })
258
- : _vm._e(),
259
- _vm._v(" "),
260
- _vm.renderRedirector
261
- ? _c("span", {
262
- staticClass: "vs-focus-container__focus-redirector",
263
- attrs: { tabindex: "0" },
264
- on: {
265
- focus: function($event) {
266
- return _vm.redirectFocus($event, { isTabbingForward: true })
267
- }
268
- }
269
- })
270
- : _vm._e()
271
- ])
272
- };
273
- var __vue_staticRenderFns__ = [];
274
- __vue_render__._withStripped = true;
275
-
276
- /* style */
277
- var __vue_inject_styles__ = function (inject) {
278
- if (!inject) { return }
279
- inject("data-v-798e8f34_0", { source: ".vs-focus-container__focus-redirector, .vs-focus-container__last-focusable {\n opacity: 0;\n position: absolute;\n}\n.vs-focus-container__content {\n outline: none;\n}", map: undefined, media: undefined });
280
-
281
- };
282
- /* scoped */
283
- var __vue_scope_id__ = undefined;
284
- /* module identifier */
285
- var __vue_module_identifier__ = undefined;
286
- /* functional template */
287
- var __vue_is_functional_template__ = false;
288
- /* style inject SSR */
289
-
290
- /* style inject shadow dom */
291
-
292
-
293
-
294
- var __vue_component__ = /*#__PURE__*/normalizeComponent(
295
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
296
- __vue_inject_styles__,
297
- __vue_script__,
298
- __vue_scope_id__,
299
- __vue_is_functional_template__,
300
- __vue_module_identifier__,
301
- false,
302
- createInjector,
303
- undefined,
304
- undefined
305
- );
306
-
307
- /**
308
- * Shamlessly adapted from dominus v6.0.1 :)
309
- * https://github.com/bevacqua/dominus/blob/master/src/classes.js
310
- */
311
-
312
- var trim = /^\s+|\s+$/g;
313
- var whitespace = /\s+/g;
314
-
315
- function isElementObject(o) {
316
- return o && typeof o === 'object' && typeof o.nodeName === 'string' && o.nodeType === 1;
317
- }
318
-
319
- function isElement(o) {
320
- var elementObjects = typeof HTMLElement === 'object';
321
- return elementObjects ? o instanceof HTMLElement : isElementObject(o);
322
- }
323
-
324
- function classes(el) {
325
- if (isElement(el)) {
326
- return (el.getAttribute('class') || '').replace(trim, '').split(whitespace);
327
- }
328
- return [];
329
- }
330
-
331
- function interpret(input) {
332
- return typeof input === 'string' ? input.replace(trim, '').split(whitespace) : input;
333
- }
334
-
335
- function set(el, input) {
336
- if (isElement(el)) {
337
- el.setAttribute('class', interpret(input).join(' '));
338
- }
339
- }
340
-
341
- function remove(el, input) {
342
- var current = classes(el);
343
- var values = interpret(input);
344
- values.forEach(function (value) {
345
- var i = current.indexOf(value);
346
- if (i !== -1) {
347
- current.splice(i, 1);
348
- }
349
- });
350
- set(el, current);
351
- return current;
352
- }
353
-
354
- function add(el, input) {
355
- var current = remove(el, input);
356
- var values = interpret(input);
357
- current.push.apply(current, values);
358
- set(el, current);
359
- return current;
360
- }
361
-
362
- function contains(el, input) {
363
- var current = classes(el);
364
- var values = interpret(input);
365
- return values.every(function (value) {
366
- return current.indexOf(value) !== -1;
367
- });
368
- }
369
-
370
- var classlist = {
371
- add: add,
372
- remove: remove,
373
- contains: contains,
374
- has: contains,
375
- set: set,
376
- get: classes,
377
- };
378
-
379
- //
380
-
381
- var script$1 = {
382
- name: 'VsModal',
383
-
384
- components: {
385
- VsFocusContainer: __vue_component__,
386
- },
387
-
388
- props: {
389
- title: {
390
- type: String,
391
- default: 'Modal title',
392
- },
393
- alignTop: {
394
- type: Boolean,
395
- default: false,
396
- },
397
- alignTopMargin: {
398
- type: Number,
399
- default: 60,
400
- },
401
- size: {
402
- type: String,
403
- default: 'm',
404
- },
405
- role: {
406
- type: String,
407
- default: 'dialog',
408
- },
409
- transition: {
410
- type: String,
411
- default: 'slide-up',
412
- },
413
- removeHeader: {
414
- type: Boolean,
415
- default: false,
416
- },
417
- removeCloseButton: {
418
- type: Boolean,
419
- default: false,
420
- },
421
- preventShift: {
422
- type: Boolean,
423
- default: false,
424
- },
425
- dismissible: {
426
- type: Boolean,
427
- default: true,
428
- },
429
- dismissOn: {
430
- type: String,
431
- default: 'backdrop esc close-button',
432
- },
433
- backdropBlur: {
434
- type: Boolean,
435
- default: false,
436
- },
437
- },
438
-
439
- data: function data() {
440
- return {
441
- isOpen: false,
442
- lastFocusedElement: null,
443
- };
444
- },
445
-
446
- computed: {
447
- classes: function classes() {
448
- return [
449
- ("vs-modal--size-" + (this.size)),
450
- { 'has-footer': this.hasFooter },
451
- { 'is-open': this.isOpen },
452
- { 'is-aligned-top': this.alignTop },
453
- { 'is-backdrop-blur': this.backdropBlur } ];
454
- },
455
-
456
- alignTopStyle: function alignTopStyle() {
457
- if (this.alignTop) {
458
- return { 'padding-top': ((this.alignTopMargin) + "px") };
459
- }
460
- return null;
461
- },
462
-
463
- toggleTransition: function toggleTransition() {
464
- return ("vs-modal--transition-" + (this.transition));
465
- },
466
-
467
- hasFooter: function hasFooter() {
468
- return Boolean(this.$slots.footer);
469
- },
470
-
471
- dismissOnBackdrop: function dismissOnBackdrop() {
472
- return this.dismissOn.indexOf('backdrop') > -1;
473
- },
474
-
475
- dismissOnCloseButton: function dismissOnCloseButton() {
476
- return this.dismissOn.indexOf('close-button') > -1;
477
- },
478
-
479
- dismissOnEsc: function dismissOnEsc() {
480
- return this.dismissOn.indexOf('esc') > -1;
481
- },
482
- },
483
-
484
- watch: {
485
- isOpen: function isOpen() {
486
- var this$1 = this;
487
-
488
- this.$nextTick(function () {
489
- this$1[this$1.isOpen ? 'onOpen' : 'onClose']();
490
- });
491
- },
492
- },
493
-
494
- beforeDestroy: function beforeDestroy() {
495
- if (this.isOpen) {
496
- this.returnFocus();
497
- }
498
- },
499
-
500
- methods: {
501
- open: function open() {
502
- this.isOpen = true;
503
- },
504
-
505
- close: function close() {
506
- if (!this.dismissible) {
507
- return;
508
- }
509
- this.isOpen = false;
510
- },
511
-
512
- /**
513
- * ccessabiliy fix
514
- */
515
- redirectFocus: function redirectFocus() {
516
- this.$refs.focusContainer.focus();
517
- },
518
-
519
- returnFocus: function returnFocus() {
520
- if (this.lastFocusedElement) {
521
- this.lastFocusedElement.focus();
522
- }
523
- },
524
-
525
- /**
526
- * Dismiss modal on backdrop click
527
- */
528
- onBackdropClick: function onBackdropClick() {
529
- if (this.dismissOnBackdrop) {
530
- this.close();
531
- } else {
532
- this.redirectFocus();
533
- }
534
- },
535
-
536
- /**
537
- * Dismiss modal on esc key
538
- */
539
- onEsc: function onEsc() {
540
- if (this.dismissOnEsc) {
541
- this.close();
542
- }
543
- },
544
-
545
- /*
546
- * Add modal open class on body tag (good for future cases if modications are required)
547
- */
548
- onOpen: function onOpen() {
549
- this.lastFocusedElement = document.activeElement;
550
- this.$refs.focusContainer.focus();
551
-
552
- classlist.add(document.body, 'vs-modal--is-open');
553
- this.incrementOpenModalCount();
554
-
555
- this.$emit('open');
556
- },
557
-
558
- /**
559
- * Emitted when modal starts to close
560
- */
561
- onClose: function onClose() {
562
- this.$emit('close');
563
- this.returnFocus();
564
- },
565
-
566
- /**
567
- * Emitted after transition is done and opened
568
- */
569
- onEnter: function onEnter() {
570
- this.$emit('reveal');
571
- },
572
-
573
- /**
574
- * Emitted after transition is done and closes
575
- */
576
- onLeave: function onLeave() {
577
- this.$emit('hide');
578
- var newCount = this.decrementOpenModalCount();
579
-
580
- // Remove modal open class on body tag
581
- if (newCount === 0) {
582
- classlist.remove(document.body, 'vs-modal--is-open');
583
- }
584
- },
585
-
586
- getOpenModalCount: function getOpenModalCount() {
587
- var count = document.body.getAttribute('data-open-modals');
588
- return count === undefined ? 0 : Number(count);
589
- },
590
-
591
- /**
592
- * Set no. of modals open data attribute
593
- */
594
- setOpenModalCount: function setOpenModalCount(count) {
595
- var normalizedCount = Math.max(0, count);
596
- if (normalizedCount === 0) {
597
- document.body.removeAttribute('data-open-modals');
598
- } else {
599
- document.body.setAttribute('data-open-modals', normalizedCount);
600
- }
601
- return normalizedCount;
602
- },
603
-
604
- /**
605
- * Used if nested modals get activated
606
- */
607
- incrementOpenModalCount: function incrementOpenModalCount() {
608
- return this.setOpenModalCount(this.getOpenModalCount() + 1);
609
- },
610
-
611
- decrementOpenModalCount: function decrementOpenModalCount() {
612
- return this.setOpenModalCount(this.getOpenModalCount() - 1);
613
- },
614
- },
615
- };
616
-
617
- var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWNxwqAAAAB3RSTlMAJeTmmCIcbPbyAQAAAOtJREFUSMeF1ksKwjAURuE6cF50BY4cC4oLEHQquAVXYIVs3wiFn3C4nA76SG+/PpLc2+l9fk7lsr3dp0c71QH79p2ubZmr85t+sgshCHTh1UIQaJe+DkFgmddNBZyyLYGRIAACAAgA2SeAAwI5OowBu/WaEJ95AI4BQBD4N6xEgFyQFsSTYDgJAmgkkFYCIACAAABiAEgAABGgIAIURICCCFAQAEAQYIDewh9SX9M/lH5q7yztbh8wOuR80Oqw94mjU88nr05/TyCagjyJaRr0RKqp2JO5lgMvKFqStKhpWbTC6qVZi7v+HvwAcK2oz9BduqwAAAAASUVORK5CYII=";
618
-
619
- /* script */
620
- var __vue_script__$1 = script$1;
621
- var __vue_render__$1 = function() {
622
- var _vm = this;
623
- var _h = _vm.$createElement;
624
- var _c = _vm._self._c || _h;
625
- return _c(
626
- "transition",
627
- {
628
- attrs: { name: _vm.toggleTransition },
629
- on: { "after-enter": _vm.onEnter, "after-leave": _vm.onLeave }
630
- },
631
- [
632
- _c(
633
- "div",
634
- {
635
- directives: [
636
- {
637
- name: "show",
638
- rawName: "v-show",
639
- value: _vm.isOpen,
640
- expression: "isOpen"
641
- }
642
- ],
643
- staticClass: "vs-modal vs-modal__mask",
644
- class: _vm.classes,
645
- attrs: { role: _vm.role },
646
- on: {
647
- click: function($event) {
648
- if ($event.target !== $event.currentTarget) {
649
- return null
650
- }
651
- return _vm.onBackdropClick($event)
652
- }
653
- }
654
- },
655
- [
656
- _c(
657
- "div",
658
- {
659
- staticClass: "vs-modal__wrapper",
660
- class: { "has-dummy-scrollbar": _vm.preventShift },
661
- style: _vm.alignTopStyle,
662
- on: {
663
- click: function($event) {
664
- if ($event.target !== $event.currentTarget) {
665
- return null
666
- }
667
- return _vm.onBackdropClick($event)
668
- }
669
- }
670
- },
671
- [
672
- _c(
673
- "vs-focus-container",
674
- {
675
- ref: "focusContainer",
676
- staticClass: "vs-modal__container",
677
- attrs: { tabindex: "-1" },
678
- nativeOn: {
679
- keydown: function($event) {
680
- if (
681
- !$event.type.indexOf("key") &&
682
- _vm._k($event.keyCode, "esc", 27, $event.key, [
683
- "Esc",
684
- "Escape"
685
- ])
686
- ) {
687
- return null
688
- }
689
- $event.stopPropagation();
690
- return _vm.onEsc($event)
691
- }
692
- }
693
- },
694
- [
695
- !_vm.removeHeader
696
- ? _c(
697
- "div",
698
- { staticClass: "vs-modal__header" },
699
- [
700
- _vm._t("header", [
701
- _c("h2", { staticClass: "vs-modal__header-text" }, [
702
- _vm._v(_vm._s(_vm.title))
703
- ])
704
- ])
705
- ],
706
- 2
707
- )
708
- : _vm._e(),
709
- _vm._v(" "),
710
- _c(
711
- "div",
712
- { staticClass: "vs-modal__close-button" },
713
- [
714
- _vm._t("close", [
715
- _vm.dismissOnCloseButton &&
716
- !_vm.removeCloseButton &&
717
- _vm.dismissible
718
- ? _c("button", { on: { click: _vm.close } }, [
719
- _c("img", {
720
- attrs: {
721
- src: img,
722
- alt: "close"
723
- }
724
- })
725
- ])
726
- : _vm._e()
727
- ])
728
- ],
729
- 2
730
- ),
731
- _vm._v(" "),
732
- _c(
733
- "div",
734
- { staticClass: "vs-modal__body" },
735
- [_vm._t("default")],
736
- 2
737
- ),
738
- _vm._v(" "),
739
- _vm.hasFooter
740
- ? _c(
741
- "div",
742
- { staticClass: "vs-modal__footer" },
743
- [_vm._t("footer")],
744
- 2
745
- )
746
- : _vm._e()
747
- ]
748
- )
749
- ],
750
- 1
751
- )
752
- ]
753
- )
754
- ]
755
- )
756
- };
757
- var __vue_staticRenderFns__$1 = [];
758
- __vue_render__$1._withStripped = true;
759
-
760
- /* style */
761
- var __vue_inject_styles__$1 = function (inject) {
762
- if (!inject) { return }
763
- inject("data-v-8b4650e6_0", { source: ".vs-modal {\n font-size: 0.875em;\n}\n.vs-modal.is-aligned-top .vs-modal__wrapper {\n vertical-align: initial;\n}\n.vs-modal.is-aligned-top.has-footer .vs-modal__body {\n max-height: calc(100vh - 125px);\n}\n.vs-modal.has-footer .vs-modal__body {\n max-height: calc(100vh - 125px);\n}\n.vs-modal:not(.has-footer) .vs-modal__body {\n padding: 21px 24px;\n}\n.vs-modal--is-open {\n overflow: hidden;\n}\n.vs-modal.is-backdrop-blur {\n backdrop-filter: blur(3px);\n}\n.vs-modal__mask {\n display: table;\n position: fixed;\n z-index: 800;\n top: 0;\n left: 0;\n width: 100%;\n height: 100vh;\n transition: opacity 0.3s ease;\n background-color: rgba(51, 51, 51, 0.5);\n}\n.vs-modal__wrapper {\n display: table-cell;\n overflow-x: hidden;\n text-align: center;\n vertical-align: middle;\n}\n.vs-modal__wrapper.has-dummy-scrollbar {\n overflow-y: scroll;\n}\n.vs-modal__container {\n display: inline-block;\n position: relative;\n width: 530px;\n max-width: 100vw;\n max-height: 100vh;\n margin: 0 auto;\n padding: 0;\n overflow: hidden;\n transition: all 0.3s ease;\n border-radius: 3px;\n outline: none;\n background-color: #ffffff;\n box-shadow: 0 2px 8px rgba(51, 51, 51, 0.33);\n text-align: initial;\n}\n.vs-modal__header {\n display: flex;\n position: relative;\n z-index: 1;\n align-items: center;\n min-height: 55px;\n padding: 0 24px;\n}\n.vs-modal__header-text {\n display: flex;\n flex-grow: 1;\n align-items: center;\n margin: 0;\n font-size: 1.125em;\n font-weight: normal;\n}\n.vs-modal__close-button button {\n position: absolute;\n z-index: 100;\n top: 20px;\n right: 20px;\n background: none;\n border: none;\n text-align: right;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n.vs-modal__close-button button img {\n width: 12px;\n height: 12px;\n}\n.vs-modal__body {\n max-height: calc(100vh - 55px);\n padding: 16px 24px;\n overflow-y: auto;\n}\n.vs-modal__footer {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n height: 70px;\n padding: 0 24px;\n}\n.vs-modal--size-s > .vs-modal__wrapper > .vs-modal__container {\n width: 320px;\n}\n.vs-modal--size-l > .vs-modal__wrapper > .vs-modal__container {\n width: 850px;\n}\n.vs-modal--size-fullscreen > .vs-modal__wrapper > .vs-modal__container {\n width: 100vw;\n border-radius: 0;\n}\n.vs-modal--size-fullscreen > .vs-modal__wrapper > .vs-modal__container .vs-modal__body {\n height: 100vh;\n max-height: 100vh;\n}\n.vs-modal--size-auto > .vs-modal__wrapper > .vs-modal__container {\n width: initial;\n}\n.vs-modal--transition-fade-enter, .vs-modal--transition-fade-leave-active {\n opacity: 0;\n}\n.vs-modal--transition-slide-up-enter, .vs-modal--transition-slide-up-leave-active {\n opacity: 0;\n}\n.vs-modal--transition-slide-up-enter .vs-modal__container, .vs-modal--transition-slide-up-leave-active .vs-modal__container {\n transform: translateY(20px);\n}\n.vs-modal--transition-slide-down-enter, .vs-modal--transition-slide-down-leave-active {\n opacity: 0;\n}\n.vs-modal--transition-slide-down-enter .vs-modal__container, .vs-modal--transition-slide-down-leave-active .vs-modal__container {\n transform: translateY(-20px);\n}", map: undefined, media: undefined });
764
-
765
- };
766
- /* scoped */
767
- var __vue_scope_id__$1 = undefined;
768
- /* module identifier */
769
- var __vue_module_identifier__$1 = undefined;
770
- /* functional template */
771
- var __vue_is_functional_template__$1 = false;
772
- /* style inject SSR */
773
-
774
- /* style inject shadow dom */
775
-
776
-
777
-
778
- var __vue_component__$1 = /*#__PURE__*/normalizeComponent(
779
- { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
780
- __vue_inject_styles__$1,
781
- __vue_script__$1,
782
- __vue_scope_id__$1,
783
- __vue_is_functional_template__$1,
784
- __vue_module_identifier__$1,
785
- false,
786
- createInjector,
787
- undefined,
788
- undefined
789
- );
790
-
791
- // Import vue component
792
-
793
- // Declare install function executed by Vue.use()
794
- function install(Vue) {
795
- if (install.installed) { return; }
796
- install.installed = true;
797
- Vue.component('VsModal', __vue_component__$1);
798
- }
799
-
800
- // Create module definition for Vue.use()
801
- var plugin = {
802
- install: install,
803
- };
804
-
805
- // Auto-install when vue is found (eg. in browser via <script> tag)
806
- var GlobalVue = null;
807
- if (typeof window !== 'undefined') {
808
- GlobalVue = window.Vue;
809
- } else if (typeof global !== 'undefined') {
810
- GlobalVue = global.Vue;
811
- }
812
- if (GlobalVue) {
813
- GlobalVue.use(plugin);
814
- }
815
-
816
- exports.default = __vue_component__$1;
817
- exports.install = install;
818
-
819
- Object.defineProperty(exports, '__esModule', { value: true });
820
-
821
- })));