├── .envrc
├── .gitignore
├── yarn.lock
├── demo
├── index.js
├── build.config.js
├── index.html
├── App.vue
└── style.css
├── bin
└── publish
├── src
├── v-toaster.js
└── Toaster.vue
├── docs
├── index.html
├── client.b796f3ee.css
└── client.f1057fd2.js
├── dist
├── v-toaster.css
└── v-toaster.js
├── package.json
└── README.md
/.envrc:
--------------------------------------------------------------------------------
1 | PATH_add bin
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | npm-debug.log
4 | yarn-error.log
5 |
--------------------------------------------------------------------------------
/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 |
--------------------------------------------------------------------------------
/demo/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 |
3 | import App from './App.vue'
4 |
5 | new Vue({...App}).$mount('#app')
6 |
--------------------------------------------------------------------------------
/bin/publish:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | set -e
3 |
4 | git up
5 | npm version patch
6 | git push -v --progress
7 | git push --tags
8 | npm publish
9 |
--------------------------------------------------------------------------------
/src/v-toaster.js:
--------------------------------------------------------------------------------
1 | const Toaster = require('./Toaster.vue')
2 |
3 | Toaster.install = (Vue, options) => {
4 | Vue.prototype.$toaster = new (Vue.extend(Toaster))({propsData: options})
5 | Vue.toaster = Vue.prototype.$toaster
6 | if (process.env.NODE_ENV === 'development') window.$toaster = Vue.prototype.$toaster
7 | }
8 | module.exports = Toaster
9 |
--------------------------------------------------------------------------------
/demo/build.config.js:
--------------------------------------------------------------------------------
1 | const path = require('path')
2 |
3 | module.exports = {
4 | html: {
5 | template: path.resolve(__dirname, './index.html')
6 | },
7 | webpack: {
8 | devtool: false, // disable source-map
9 | output: {
10 | publicPath: '', // generate client.*.js relative to ./demo/index.html
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/demo/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
16 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
16 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/dist/v-toaster.css:
--------------------------------------------------------------------------------
1 | .v-toaster{position:fixed;top:50px;right:0;z-index:10000;width:300px;padding-left:10px;padding-right:10px}.v-toaster .v-toast{margin-bottom:10px;transition:all .3s ease;border:1px solid #454d5d;border-radius:8px;color:#fff;display:block;padding:1rem;background:rgba(69,77,93,.9);border-color:#454d5d}.v-toaster .v-toast.v-toast-enter,.v-toaster .v-toast.v-toast-leave-to{-webkit-transform:translate(100%);-ms-transform:translate(100%);transform:translate(100%)}.v-toaster .v-toast.v-toast-success{background:rgba(50,182,67,.9);border-color:#32b643}.v-toaster .v-toast.v-toast-warning{background:rgba(255,183,0,.9);border-color:#ffb700}.v-toaster .v-toast.v-toast-info{background:rgba(91,192,222,.9);border-color:#5bc0de}.v-toaster .v-toast.v-toast-error{background:rgba(232,86,0,.9);border-color:#e85600}.v-toaster .v-toast.v-toast-primary{background:rgba(66,139,202,.9);border-color:#428bca}.v-toaster .v-toast .v-toast-btn-clear{background:transparent;border:0;color:currentColor;opacity:.45;text-decoration:none;float:right;cursor:pointer}.v-toaster .v-toast .v-toast-btn-clear:hover{opacity:.85}.v-toaster .v-toast .v-toast-btn-clear:before{content:"\2715"}@media (max-width:300px){.v-toaster{width:100%}}
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "v-toaster",
3 | "version": "1.0.3",
4 | "description": "A Vue.js component",
5 | "author": "Marcos Paliari ",
6 | "main": "dist/v-toaster.js",
7 | "license": {
8 | "type": "MIT",
9 | "url": "http://www.opensource.org/licenses/mit-license.php"
10 | },
11 | "scripts": {
12 | "dist": "vue build ./src/v-toaster.js --config ./build.config.js --dist ./dist/ --prod --lib",
13 | "dist:demo": "vue build ./demo/index.js --config ./demo/build.config.js --dist ./docs/ --prod",
14 | "build": "npm run dist -- --disable-compress",
15 | "start": "npm run dev",
16 | "dev": "vue build ./demo/index.js --config ./demo/build.config.js",
17 | "demo:open": "open 'http://localhost:3000/'; serve ./demo/"
18 | },
19 | "files": [
20 | "dist/"
21 | ],
22 | "keywords": [
23 | "vue",
24 | "component",
25 | "v-toaster",
26 | "toast",
27 | "toaster",
28 | "vue-toast",
29 | "vue-toaster",
30 | "v-toast",
31 | "toaster-vue",
32 | "toast-vue"
33 | ],
34 | "repository": {
35 | "type": "git",
36 | "url": "git+https://github.com/paliari/v-toaster.git"
37 | },
38 | "bugs": {
39 | "url": "https://github.com/paliari/v-toaster/issues"
40 | },
41 | "homepage": "https://github.com/paliari/v-toaster#readme"
42 | }
43 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | v-toaster v-toaster
2 |
3 | v-toaster
4 | =========
5 |
6 | > A Vue.js component
7 |
8 | Installation
9 | ------------
10 |
11 | ### Using yarn
12 |
13 | `yarn add v-toaster`
14 |
15 | ### Using npm
16 |
17 | `npm i --save v-toaster`
18 |
19 | Demo
20 | ----
21 |
22 | [DEMO](http://paliari.github.io/v-toaster)
23 |
24 | Usage
25 | -----
26 |
27 | ### Bundler (Webpack, Rollup)
28 |
29 | ```js
30 | import Vue from 'vue'
31 |
32 | import Toaster from 'v-toaster'
33 |
34 | // You need a specific loader for CSS files like https://github.com/webpack/css-loader
35 | import 'v-toaster/dist/v-toaster.css'
36 |
37 | // optional set default imeout, the default is 10000 (10 seconds).
38 | Vue.use(Toaster, {timeout: 5000})
39 | ```
40 |
41 | ### Browser
42 |
43 | ```html
44 |
45 |
46 |
47 |
50 | ```
51 |
52 | ### Usage example
53 |
54 | ```js
55 | // in your component this.$toaster
56 | // ...
57 | this.$toaster.success('Your toaster success message.')
58 | // or custom timeout
59 | this.$toaster.success('Your toaster success message.', {timeout: 8000})
60 |
61 | this.$toaster.info('Your toaster info message.')
62 | this.$toaster.error('Your toaster error message.')
63 | this.$toaster.warning('Your toaster warning message.')
64 |
65 | // or custom add method
66 | this.$toaster.add('Your toaster theme message.', {theme: 'info', timeout: 10000})
67 | // ...
68 | ```
69 |
70 | License
71 | -------
72 |
73 | This project is licensed under [MIT License](http://en.wikipedia.org/wiki/MIT_License)
74 |
--------------------------------------------------------------------------------
/demo/App.vue:
--------------------------------------------------------------------------------
1 |
2 | div.toaster-demo(style='text-align: center;')
3 | p
4 | textarea(v-model='message')
5 | p
6 | select(v-model='theme', :class='{[theme]: true}')
7 | option(value='') default
8 | option(value='v-toast-info') info
9 | option(value='v-toast-success') success
10 | option(value='v-toast-warning') warning
11 | option(value='v-toast-error') error
12 | button.btn(@click='show', :class='{[theme]: true}') show
13 | p
14 | button.btn.v-toast-info(@click='$toaster.info(message, {})') info
15 | button.btn.v-toast-success(@click='$toaster.success(message)') success
16 | button.btn.v-toast-warning(@click='$toaster.warning(message)') warning
17 | button.btn.v-toast-error(@click='$toaster.error(message)') error
18 |
19 |
20 |
39 |
40 |
41 |
71 |
--------------------------------------------------------------------------------
/dist/v-toaster.js:
--------------------------------------------------------------------------------
1 | (function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VToaster=e():t.VToaster=e()})(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=".",e(e.s=6)}([function(t,e,n){var o=n(3);o.install=function(t,e){t.prototype.$toaster=new(t.extend(o))({propsData:e}),t.toaster=t.prototype.$toaster},t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{timeout:{type:Number,default:1e4}},methods:{success:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.add(t,{theme:"v-toast-success",timeout:e.timeout})},info:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.add(t,{theme:"v-toast-info",timeout:e.timeout})},warning:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.add(t,{theme:"v-toast-warning",timeout:e.timeout})},error:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.add(t,{theme:"v-toast-error",timeout:e.timeout})},add:function(t,e){var n=this,o=e.theme,r=e.timeout;this.$parent||(this.$mount(),document.body.appendChild(this.$el));var i={message:t,theme:o,key:Date.now()+"-"+Math.random()};this.items.push(i),setTimeout(function(){return n.remove(i)},r||this.timeout)},remove:function(t){var e=this.items.indexOf(t);e>=0&&this.items.splice(e,1)}},data:function(){return{items:[]}}}},function(t,e){},function(t,e,n){n(2);var o=n(4)(n(1),n(5),null,null);t.exports=o.exports},function(t,e){t.exports=function(t,e,n,o){var r,i=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(r=t,i=t.default);var u="function"==typeof i?i.options:i;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n),o){var a=u.computed||(u.computed={});Object.keys(o).forEach(function(t){var e=o[t];a[t]=function(){return e}})}return{esModule:r,exports:i,options:u}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-toaster"},[n("transition-group",{attrs:{name:"v-toast"}},t._l(t.items,function(e){return n("div",{key:e.key,staticClass:"v-toast",class:(o={},o[e.theme]=e.theme,o)},[n("a",{staticClass:"v-toast-btn-clear",on:{click:function(n){t.remove(e)}}}),t._v(t._s(e.message))]);var o}))],1)},staticRenderFns:[]}},function(t,e,n){t.exports=n(0)}])});
--------------------------------------------------------------------------------
/src/Toaster.vue:
--------------------------------------------------------------------------------
1 |
2 | .v-toaster
3 | transition-group(name='v-toast')
4 | .v-toast(:class="{[t.theme]: t.theme}", v-for='t in items', :key='t.key')
5 | a.v-toast-btn-clear(@click='remove(t)')
6 | | {{t.message}}
7 |
8 |
9 |
47 |
48 |
101 |
--------------------------------------------------------------------------------
/docs/client.b796f3ee.css:
--------------------------------------------------------------------------------
1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.highlight table td{padding:5px}.highlight table pre{margin:0}.highlight .cm{color:#998;font-style:italic}.highlight .cp{color:#999;font-weight:700}.highlight .c1{color:#998;font-style:italic}.highlight .cs{color:#999;font-weight:700;font-style:italic}.highlight .c,.highlight .cd{color:#998;font-style:italic}.highlight .err{color:#a61717;background-color:#e3d2d2}.highlight .gd{color:#000;background-color:#fdd}.highlight .ge{color:#000;font-style:italic}.highlight .gr{color:#a00}.highlight .gh{color:#999}.highlight .gi{color:#000;background-color:#dfd}.highlight .go{color:#888}.highlight .gp{color:#555}.highlight .gs{font-weight:700}.highlight .gu{color:#aaa}.highlight .gt{color:#a00}.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr{color:#000;font-weight:700}.highlight .kt{color:#458;font-weight:700}.highlight .k,.highlight .kv{color:#000;font-weight:700}.highlight .il,.highlight .m,.highlight .mb,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo,.highlight .mx{color:#099}.highlight .s2,.highlight .sb,.highlight .sc,.highlight .sd,.highlight .se,.highlight .sh,.highlight .si,.highlight .sx{color:#d14}.highlight .sr{color:#009926}.highlight .s1{color:#d14}.highlight .ss{color:#990073}.highlight .s{color:#d14}.highlight .na{color:teal}.highlight .bp{color:#999}.highlight .nb{color:#0086b3}.highlight .nc{color:#458;font-weight:700}.highlight .no{color:teal}.highlight .nd{color:#3c5d5d;font-weight:700}.highlight .ni{color:purple}.highlight .ne,.highlight .nf,.highlight .nl{color:#900;font-weight:700}.highlight .nn{color:#555}.highlight .nt{color:navy}.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:teal}.highlight .o,.highlight .ow{color:#000;font-weight:700}.highlight .w{color:#bbb}.highlight{background-color:#f8f8f8}*{box-sizing:border-box}body{padding:0;margin:0;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.5;color:#606c71}a{color:#1e6bb8;text-decoration:none}a:hover{text-decoration:underline}.btn{display:inline-block;margin-bottom:1rem;color:hsla(0,0%,100%,.7);background-color:hsla(0,0%,100%,.08);border:1px solid hsla(0,0%,100%,.2);border-radius:.3rem;transition:color .2s,background-color .2s,border-color .2s}.btn:hover{color:hsla(0,0%,100%,.8);text-decoration:none;background-color:hsla(0,0%,100%,.2);border-color:hsla(0,0%,100%,.3)}.btn+.btn{margin-left:1rem}@media screen and (min-width:64em){.btn{padding:.75rem 1rem}}@media screen and (min-width:42em) and (max-width:64em){.btn{padding:.6rem .9rem;font-size:.9rem}}@media screen and (max-width:42em){.btn{display:block;width:100%;padding:.75rem;font-size:.9rem}.btn+.btn{margin-top:1rem;margin-left:0}}.page-header{color:#fff;text-align:center;background-color:#159957;background-image:linear-gradient(120deg,#155799,#159957)}@media screen and (min-width:64em){.page-header{padding:5rem 6rem}}@media screen and (min-width:42em) and (max-width:64em){.page-header{padding:3rem 4rem}}@media screen and (max-width:42em){.page-header{padding:2rem 1rem}}.project-name{margin-top:0;margin-bottom:.1rem}@media screen and (min-width:64em){.project-name{font-size:3.25rem}}@media screen and (min-width:42em) and (max-width:64em){.project-name{font-size:2.25rem}}@media screen and (max-width:42em){.project-name{font-size:1.75rem}}.project-tagline{margin-bottom:2rem;font-weight:400;opacity:.7}@media screen and (min-width:64em){.project-tagline{font-size:1.25rem}}@media screen and (min-width:42em) and (max-width:64em){.project-tagline{font-size:1.15rem}}@media screen and (max-width:42em){.project-tagline{font-size:1rem}}.main-content{word-wrap:break-word}.main-content :first-child{margin-top:0}@media screen and (min-width:64em){.main-content{max-width:80rem;padding:2rem 6rem;margin:0 auto;font-size:1.1rem}}@media screen and (min-width:42em) and (max-width:64em){.main-content{padding:2rem 4rem;font-size:1.1rem}}@media screen and (max-width:42em){.main-content{padding:2rem 1rem;font-size:1rem}}.main-content img{max-width:100%}.main-content h1,.main-content h2,.main-content h3,.main-content h4,.main-content h5,.main-content h6{margin-top:2rem;margin-bottom:1rem;font-weight:400;color:#159957}.main-content p{margin-bottom:1em}.main-content code{padding:2px 4px;font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:.9rem;border-radius:.3rem}.main-content code,.main-content pre{color:#567482;background-color:#f3f6fa}.main-content pre{padding:.8rem;margin-top:0;margin-bottom:1rem;font:1rem Consolas,Liberation Mono,Menlo,Courier,monospace;word-wrap:normal;border:1px solid #dce6f0;border-radius:.3rem}.main-content pre>code{padding:0;margin:0;font-size:.9rem;color:#567482;word-break:normal;white-space:pre;background:transparent;border:0}.main-content .highlight{margin-bottom:1rem}.main-content .highlight pre{margin-bottom:0;word-break:normal}.main-content .highlight pre,.main-content pre{padding:.8rem;overflow:auto;font-size:.9rem;line-height:1.45;border-radius:.3rem;-webkit-overflow-scrolling:touch}.main-content pre code,.main-content pre tt{display:inline;max-width:none;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.main-content pre code:after,.main-content pre code:before,.main-content pre tt:after,.main-content pre tt:before{content:normal}.main-content ol,.main-content ul{margin-top:0}.main-content blockquote{padding:0 1rem;margin-left:0;color:#819198;border-left:.3rem solid #dce6f0}.main-content blockquote>:first-child{margin-top:0}.main-content blockquote>:last-child{margin-bottom:0}.main-content table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;-webkit-overflow-scrolling:touch}.main-content table th{font-weight:700}.main-content table td,.main-content table th{padding:.5rem 1rem;border:1px solid #e9ebec}.main-content dl{padding:0}.main-content dl dt{padding:0;margin-top:1rem;font-size:1rem;font-weight:700}.main-content dl dd{padding:0;margin-bottom:1rem}.main-content hr{height:2px;padding:0;margin:1rem 0;background-color:#eff0f1;border:0}.site-footer{padding-top:2rem;margin-top:2rem;border-top:1px solid #eff0f1}@media screen and (min-width:64em){.site-footer{font-size:1rem}}@media screen and (min-width:42em) and (max-width:64em){.site-footer{font-size:1rem}}@media screen and (max-width:42em){.site-footer{font-size:.9rem}}.site-footer-owner{display:block;font-weight:700}.site-footer-credits{color:#819198}.ui.form select{height:38px}.toaster-demo textarea{border-radius:5px;border:2px solid #155799;min-width:500px}.toaster-demo select{height:2.2em}.toaster-demo .btn,.toaster-demo select{background-color:#454d5d;font-size:1.5em;padding:10px;margin:10px}.toaster-demo .btn.v-toast-success,.toaster-demo select.v-toast-success{color:#fff;background-color:#32b643;border-color:#32b643}.toaster-demo .btn.v-toast-warning,.toaster-demo select.v-toast-warning{color:#fff;background-color:#ffb700;border-color:#ffb700}.toaster-demo .btn.v-toast-info,.toaster-demo select.v-toast-info{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.toaster-demo .btn.v-toast-error,.toaster-demo select.v-toast-error{color:#fff;background-color:#e85600;border-color:#e85600}.toaster-demo .btn.v-toast-primary,.toaster-demo select.v-toast-primary{color:#fff;background-color:#428bca;border-color:#428bca}.v-toaster{position:fixed;top:50px;right:0;z-index:10000;width:300px;padding-left:10px;padding-right:10px}.v-toaster .v-toast{margin-bottom:10px;transition:all .3s ease;border:1px solid #454d5d;border-radius:8px;color:#fff;display:block;padding:1rem;background:rgba(69,77,93,.9);border-color:#454d5d}.v-toaster .v-toast.v-toast-enter,.v-toaster .v-toast.v-toast-leave-to{-webkit-transform:translate(100%);-ms-transform:translate(100%);transform:translate(100%)}.v-toaster .v-toast.v-toast-success{background:rgba(50,182,67,.9);border-color:#32b643}.v-toaster .v-toast.v-toast-warning{background:rgba(255,183,0,.9);border-color:#ffb700}.v-toaster .v-toast.v-toast-info{background:rgba(91,192,222,.9);border-color:#5bc0de}.v-toaster .v-toast.v-toast-error{background:rgba(232,86,0,.9);border-color:#e85600}.v-toaster .v-toast.v-toast-primary{background:rgba(66,139,202,.9);border-color:#428bca}.v-toaster .v-toast .v-toast-btn-clear{background:transparent;border:0;color:currentColor;opacity:.45;text-decoration:none;float:right;cursor:pointer}.v-toaster .v-toast .v-toast-btn-clear:hover{opacity:.85}.v-toaster .v-toast .v-toast-btn-clear:before{content:"\2715"}@media (max-width:300px){.v-toaster{width:100%}}
--------------------------------------------------------------------------------
/demo/style.css:
--------------------------------------------------------------------------------
1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
2 | /** 1. Set default font family to sans-serif. 2. Prevent iOS text size adjust after orientation change, without disabling user zoom. */
3 | html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ }
4 |
5 | /** Remove default margin. */
6 | body { margin: 0; }
7 |
8 | /* HTML5 display definitions ========================================================================== */
9 | /** Correct `block` display not defined for any HTML5 element in IE 8/9. Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox. Correct `block` display not defined for `main` in IE 11. */
10 | article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; }
11 |
12 | /** 1. Correct `inline-block` display not defined in IE 8/9. 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */
13 | audio, canvas, progress, video { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ }
14 |
15 | /** Prevent modern browsers from displaying `audio` without controls. Remove excess height in iOS 5 devices. */
16 | audio:not([controls]) { display: none; height: 0; }
17 |
18 | /** Address `[hidden]` styling not present in IE 8/9/10. Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. */
19 | [hidden], template { display: none; }
20 |
21 | /* Links ========================================================================== */
22 | /** Remove the gray background color from active links in IE 10. */
23 | a { background-color: transparent; }
24 |
25 | /** Improve readability when focused and also mouse hovered in all browsers. */
26 | a:active, a:hover { outline: 0; }
27 |
28 | /* Text-level semantics ========================================================================== */
29 | /** Address styling not present in IE 8/9/10/11, Safari, and Chrome. */
30 | abbr[title] { border-bottom: 1px dotted; }
31 |
32 | /** Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */
33 | b, strong { font-weight: bold; }
34 |
35 | /** Address styling not present in Safari and Chrome. */
36 | dfn { font-style: italic; }
37 |
38 | /** Address variable `h1` font-size and margin within `section` and `article` contexts in Firefox 4+, Safari, and Chrome. */
39 | h1 { font-size: 2em; margin: 0.67em 0; }
40 |
41 | /** Address styling not present in IE 8/9. */
42 | mark { background: #ff0; color: #000; }
43 |
44 | /** Address inconsistent and variable font size in all browsers. */
45 | small { font-size: 80%; }
46 |
47 | /** Prevent `sub` and `sup` affecting `line-height` in all browsers. */
48 | sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
49 |
50 | sup { top: -0.5em; }
51 |
52 | sub { bottom: -0.25em; }
53 |
54 | /* Embedded content ========================================================================== */
55 | /** Remove border when inside `a` element in IE 8/9/10. */
56 | img { border: 0; }
57 |
58 | /** Correct overflow not hidden in IE 9/10/11. */
59 | svg:not(:root) { overflow: hidden; }
60 |
61 | /* Grouping content ========================================================================== */
62 | /** Address margin not present in IE 8/9 and Safari. */
63 | figure { margin: 1em 40px; }
64 |
65 | /** Address differences between Firefox and other browsers. */
66 | hr { box-sizing: content-box; height: 0; }
67 |
68 | /** Contain overflow in all browsers. */
69 | pre { overflow: auto; }
70 |
71 | /** Address odd `em`-unit font size rendering in all browsers. */
72 | code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; }
73 |
74 | /* Forms ========================================================================== */
75 | /** Known limitation: by default, Chrome and Safari on OS X allow very limited styling of `select`, unless a `border` property is set. */
76 | /** 1. Correct color not being inherited. Known issue: affects color of disabled elements. 2. Correct font properties not being inherited. 3. Address margins set differently in Firefox 4+, Safari, and Chrome. */
77 | button, input, optgroup, select, textarea { color: inherit; /* 1 */ font: inherit; /* 2 */ margin: 0; /* 3 */ }
78 |
79 | /** Address `overflow` set to `hidden` in IE 8/9/10/11. */
80 | button { overflow: visible; }
81 |
82 | /** Address inconsistent `text-transform` inheritance for `button` and `select`. All other form control elements do not inherit `text-transform` values. Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. Correct `select` style inheritance in Firefox. */
83 | button, select { text-transform: none; }
84 |
85 | /** 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls. 2. Correct inability to style clickable `input` types in iOS. 3. Improve usability and consistency of cursor style between image-type `input` and others. */
86 | button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ cursor: pointer; /* 3 */ }
87 |
88 | /** Re-set default cursor for disabled elements. */
89 | button[disabled], html input[disabled] { cursor: default; }
90 |
91 | /** Remove inner padding and border in Firefox 4+. */
92 | button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
93 |
94 | /** Address Firefox 4+ setting `line-height` on `input` using `!important` in the UA stylesheet. */
95 | input { line-height: normal; }
96 |
97 | /** It's recommended that you don't attempt to style these elements. Firefox's implementation doesn't respect box-sizing, padding, or width. 1. Address box sizing set to `content-box` in IE 8/9/10. 2. Remove excess padding in IE 8/9/10. */
98 | input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ }
99 |
100 | /** Fix the cursor style for Chrome's increment/decrement buttons. For certain `font-size` values of the `input`, it causes the cursor style of the decrement button to change from `default` to `text`. */
101 | input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; }
102 |
103 | /** 1. Address `appearance` set to `searchfield` in Safari and Chrome. 2. Address `box-sizing` set to `border-box` in Safari and Chrome (include `-moz` to future-proof). */
104 | input[type="search"] { -webkit-appearance: textfield; /* 1 */ /* 2 */ box-sizing: content-box; }
105 |
106 | /** Remove inner padding and search cancel button in Safari and Chrome on OS X. Safari (but not Chrome) clips the cancel button when the search input has padding (and `textfield` appearance). */
107 | input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
108 |
109 | /** Define consistent border, margin, and padding. */
110 | fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; }
111 |
112 | /** 1. Correct `color` not being inherited in IE 8/9/10/11. 2. Remove padding so people aren't caught out if they zero out fieldsets. */
113 | legend { border: 0; /* 1 */ padding: 0; /* 2 */ }
114 |
115 | /** Remove default vertical scrollbar in IE 8/9/10/11. */
116 | textarea { overflow: auto; }
117 |
118 | /** Don't inherit the `font-weight` (applied by a rule above). NOTE: the default cannot safely be changed in Chrome and Safari on OS X. */
119 | optgroup { font-weight: bold; }
120 |
121 | /* Tables ========================================================================== */
122 | /** Remove most spacing between table cells. */
123 | table { border-collapse: collapse; border-spacing: 0; }
124 |
125 | td, th { padding: 0; }
126 |
127 | .highlight table td { padding: 5px; }
128 |
129 | .highlight table pre { margin: 0; }
130 |
131 | .highlight .cm { color: #999988; font-style: italic; }
132 |
133 | .highlight .cp { color: #999999; font-weight: bold; }
134 |
135 | .highlight .c1 { color: #999988; font-style: italic; }
136 |
137 | .highlight .cs { color: #999999; font-weight: bold; font-style: italic; }
138 |
139 | .highlight .c, .highlight .cd { color: #999988; font-style: italic; }
140 |
141 | .highlight .err { color: #a61717; background-color: #e3d2d2; }
142 |
143 | .highlight .gd { color: #000000; background-color: #ffdddd; }
144 |
145 | .highlight .ge { color: #000000; font-style: italic; }
146 |
147 | .highlight .gr { color: #aa0000; }
148 |
149 | .highlight .gh { color: #999999; }
150 |
151 | .highlight .gi { color: #000000; background-color: #ddffdd; }
152 |
153 | .highlight .go { color: #888888; }
154 |
155 | .highlight .gp { color: #555555; }
156 |
157 | .highlight .gs { font-weight: bold; }
158 |
159 | .highlight .gu { color: #aaaaaa; }
160 |
161 | .highlight .gt { color: #aa0000; }
162 |
163 | .highlight .kc { color: #000000; font-weight: bold; }
164 |
165 | .highlight .kd { color: #000000; font-weight: bold; }
166 |
167 | .highlight .kn { color: #000000; font-weight: bold; }
168 |
169 | .highlight .kp { color: #000000; font-weight: bold; }
170 |
171 | .highlight .kr { color: #000000; font-weight: bold; }
172 |
173 | .highlight .kt { color: #445588; font-weight: bold; }
174 |
175 | .highlight .k, .highlight .kv { color: #000000; font-weight: bold; }
176 |
177 | .highlight .mf { color: #009999; }
178 |
179 | .highlight .mh { color: #009999; }
180 |
181 | .highlight .il { color: #009999; }
182 |
183 | .highlight .mi { color: #009999; }
184 |
185 | .highlight .mo { color: #009999; }
186 |
187 | .highlight .m, .highlight .mb, .highlight .mx { color: #009999; }
188 |
189 | .highlight .sb { color: #d14; }
190 |
191 | .highlight .sc { color: #d14; }
192 |
193 | .highlight .sd { color: #d14; }
194 |
195 | .highlight .s2 { color: #d14; }
196 |
197 | .highlight .se { color: #d14; }
198 |
199 | .highlight .sh { color: #d14; }
200 |
201 | .highlight .si { color: #d14; }
202 |
203 | .highlight .sx { color: #d14; }
204 |
205 | .highlight .sr { color: #009926; }
206 |
207 | .highlight .s1 { color: #d14; }
208 |
209 | .highlight .ss { color: #990073; }
210 |
211 | .highlight .s { color: #d14; }
212 |
213 | .highlight .na { color: #008080; }
214 |
215 | .highlight .bp { color: #999999; }
216 |
217 | .highlight .nb { color: #0086B3; }
218 |
219 | .highlight .nc { color: #445588; font-weight: bold; }
220 |
221 | .highlight .no { color: #008080; }
222 |
223 | .highlight .nd { color: #3c5d5d; font-weight: bold; }
224 |
225 | .highlight .ni { color: #800080; }
226 |
227 | .highlight .ne { color: #990000; font-weight: bold; }
228 |
229 | .highlight .nf { color: #990000; font-weight: bold; }
230 |
231 | .highlight .nl { color: #990000; font-weight: bold; }
232 |
233 | .highlight .nn { color: #555555; }
234 |
235 | .highlight .nt { color: #000080; }
236 |
237 | .highlight .vc { color: #008080; }
238 |
239 | .highlight .vg { color: #008080; }
240 |
241 | .highlight .vi { color: #008080; }
242 |
243 | .highlight .nv { color: #008080; }
244 |
245 | .highlight .ow { color: #000000; font-weight: bold; }
246 |
247 | .highlight .o { color: #000000; font-weight: bold; }
248 |
249 | .highlight .w { color: #bbbbbb; }
250 |
251 | .highlight { background-color: #f8f8f8; }
252 |
253 | * { box-sizing: border-box; }
254 |
255 | body { padding: 0; margin: 0; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #606c71; }
256 |
257 | a { color: #1e6bb8; text-decoration: none; }
258 | a:hover { text-decoration: underline; }
259 |
260 | .btn { display: inline-block; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.7); background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); border-style: solid; border-width: 1px; border-radius: 0.3rem; transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
261 | .btn:hover { color: rgba(255, 255, 255, 0.8); text-decoration: none; background-color: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); }
262 | .btn + .btn { margin-left: 1rem; }
263 | @media screen and (min-width: 64em) { .btn { padding: 0.75rem 1rem; } }
264 | @media screen and (min-width: 42em) and (max-width: 64em) { .btn { padding: 0.6rem 0.9rem; font-size: 0.9rem; } }
265 | @media screen and (max-width: 42em) { .btn { display: block; width: 100%; padding: 0.75rem; font-size: 0.9rem; }
266 | .btn + .btn { margin-top: 1rem; margin-left: 0; } }
267 |
268 | .page-header { color: #fff; text-align: center; background-color: #159957; background-image: linear-gradient(120deg, #155799, #159957); }
269 | @media screen and (min-width: 64em) { .page-header { padding: 5rem 6rem; } }
270 | @media screen and (min-width: 42em) and (max-width: 64em) { .page-header { padding: 3rem 4rem; } }
271 | @media screen and (max-width: 42em) { .page-header { padding: 2rem 1rem; } }
272 |
273 | .project-name { margin-top: 0; margin-bottom: 0.1rem; }
274 | @media screen and (min-width: 64em) { .project-name { font-size: 3.25rem; } }
275 | @media screen and (min-width: 42em) and (max-width: 64em) { .project-name { font-size: 2.25rem; } }
276 | @media screen and (max-width: 42em) { .project-name { font-size: 1.75rem; } }
277 |
278 | .project-tagline { margin-bottom: 2rem; font-weight: normal; opacity: 0.7; }
279 | @media screen and (min-width: 64em) { .project-tagline { font-size: 1.25rem; } }
280 | @media screen and (min-width: 42em) and (max-width: 64em) { .project-tagline { font-size: 1.15rem; } }
281 | @media screen and (max-width: 42em) { .project-tagline { font-size: 1rem; } }
282 |
283 | .main-content { word-wrap: break-word; }
284 | .main-content :first-child { margin-top: 0; }
285 | @media screen and (min-width: 64em) { .main-content { max-width: 80rem; padding: 2rem 6rem; margin: 0 auto; font-size: 1.1rem; } }
286 | @media screen and (min-width: 42em) and (max-width: 64em) { .main-content { padding: 2rem 4rem; font-size: 1.1rem; } }
287 | @media screen and (max-width: 42em) { .main-content { padding: 2rem 1rem; font-size: 1rem; } }
288 | .main-content img { max-width: 100%; }
289 | .main-content h1, .main-content h2, .main-content h3, .main-content h4, .main-content h5, .main-content h6 { margin-top: 2rem; margin-bottom: 1rem; font-weight: normal; color: #159957; }
290 | .main-content p { margin-bottom: 1em; }
291 | .main-content code { padding: 2px 4px; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 0.9rem; color: #567482; background-color: #f3f6fa; border-radius: 0.3rem; }
292 | .main-content pre { padding: 0.8rem; margin-top: 0; margin-bottom: 1rem; font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace; color: #567482; word-wrap: normal; background-color: #f3f6fa; border: solid 1px #dce6f0; border-radius: 0.3rem; }
293 | .main-content pre > code { padding: 0; margin: 0; font-size: 0.9rem; color: #567482; word-break: normal; white-space: pre; background: transparent; border: 0; }
294 | .main-content .highlight { margin-bottom: 1rem; }
295 | .main-content .highlight pre { margin-bottom: 0; word-break: normal; }
296 | .main-content .highlight pre, .main-content pre { padding: 0.8rem; overflow: auto; font-size: 0.9rem; line-height: 1.45; border-radius: 0.3rem; -webkit-overflow-scrolling: touch; }
297 | .main-content pre code, .main-content pre tt { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; }
298 | .main-content pre code:before, .main-content pre code:after, .main-content pre tt:before, .main-content pre tt:after { content: normal; }
299 | .main-content ul, .main-content ol { margin-top: 0; }
300 | .main-content blockquote { padding: 0 1rem; margin-left: 0; color: #819198; border-left: 0.3rem solid #dce6f0; }
301 | .main-content blockquote > :first-child { margin-top: 0; }
302 | .main-content blockquote > :last-child { margin-bottom: 0; }
303 | .main-content table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; -webkit-overflow-scrolling: touch; }
304 | .main-content table th { font-weight: bold; }
305 | .main-content table th, .main-content table td { padding: 0.5rem 1rem; border: 1px solid #e9ebec; }
306 | .main-content dl { padding: 0; }
307 | .main-content dl dt { padding: 0; margin-top: 1rem; font-size: 1rem; font-weight: bold; }
308 | .main-content dl dd { padding: 0; margin-bottom: 1rem; }
309 | .main-content hr { height: 2px; padding: 0; margin: 1rem 0; background-color: #eff0f1; border: 0; }
310 |
311 | .site-footer { padding-top: 2rem; margin-top: 2rem; border-top: solid 1px #eff0f1; }
312 | @media screen and (min-width: 64em) { .site-footer { font-size: 1rem; } }
313 | @media screen and (min-width: 42em) and (max-width: 64em) { .site-footer { font-size: 1rem; } }
314 | @media screen and (max-width: 42em) { .site-footer { font-size: 0.9rem; } }
315 |
316 | .site-footer-owner { display: block; font-weight: bold; }
317 |
318 | .site-footer-credits { color: #819198; }
319 | .ui.form select {
320 | height: 38px;
321 | }
322 |
--------------------------------------------------------------------------------
/docs/client.f1057fd2.js:
--------------------------------------------------------------------------------
1 | (function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=14)})([function(t,e){t.exports=function(t,e,n,r){var o,i=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(o=t,i=t.default);var s="function"==typeof i?i.options:i;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var c=s.computed||(s.computed={});Object.keys(r).forEach(function(t){var e=r[t];c[t]=function(){return e}})}return{esModule:o,exports:i,options:s}}},function(t,e,n){"use strict";(function(t){function n(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function r(t){var e=parseFloat(t);return isNaN(e)?t:e}function o(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}function a(t,e){return Vn.call(t,e)}function s(t){return"string"==typeof t||"number"==typeof t}function c(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function u(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function l(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function f(t,e){for(var n in e)t[n]=e[n];return t}function p(t){return null!==t&&"object"==typeof t}function d(t){return qn.call(t)===Wn}function v(t){for(var e={},n=0;n=0&&Sr[n].id>t.id;)n--;Sr.splice(Math.max(n,Ir)+1,0,t)}else Sr.push(t);jr||(jr=!0,lr(ht))}}function yt(t){Pr.clear(),_t(t,Pr)}function _t(t,e){var n,r,o=Array.isArray(t);if((o||p(t))&&Object.isExtensible(t)){if(t.__ob__){var i=t.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(o)for(n=t.length;n--;)_t(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)_t(t[r[n]],e)}}function gt(t,e,n){Mr.get=function(){return this[e][n]},Mr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Mr)}function bt(t){t._watchers=[];var e=t.$options;e.props&&wt(t,e.props),e.methods&&Ot(t,e.methods),e.data?Ct(t):O(t._data={},!0),e.computed&&xt(t,e.computed),e.watch&&St(t,e.watch)}function wt(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[],i=!t.$parent;_r.shouldConvert=i;for(var a in e)(function(i){o.push(i);var a=U(i,e,n,t);S(r,i,a),i in t||gt(t,"_props",i)})(a);_r.shouldConvert=!0}function Ct(t){var e=t.$options.data;e=t._data="function"==typeof e?$t(e,t):e||{},d(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,o=n.length;o--;)r&&a(r,n[o])||g(n[o])||gt(t,"_data",n[o]);O(e,!0)}function $t(t,e){try{return t.call(e)}catch(t){return H(t,e,"data()"),{}}}function xt(t,e){var n=t._computedWatchers=Object.create(null);for(var r in e){var o=e[r],i="function"==typeof o?o:o.get;n[r]=new Nr(t,i,h,Lr),r in t||kt(t,r,o)}}function kt(t,e,n){"function"==typeof n?(Mr.get=At(e),Mr.set=h):(Mr.get=n.get?!1!==n.cache?At(e):n.get:h,Mr.set=n.set?n.set:h),Object.defineProperty(t,e,Mr)}function At(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),dr.target&&e.depend(),e.value}}function Ot(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?h:u(e[n],t)}function St(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o-1:t instanceof RegExp&&t.test(e)}function de(t,e){for(var n in t){var r=t[n];if(r){var o=fe(r.componentOptions);o&&!e(o)&&(ve(r),t[n]=null)}}}function ve(t){t&&(t.componentInstance._inactive||dt(t.componentInstance,"deactivated"),t.componentInstance.$destroy())}function he(t){for(var e=t.data,n=t,r=t;r.componentInstance;)r=r.componentInstance._vnode,r.data&&(e=me(r.data,e));for(;n=n.parent;)n.data&&(e=me(e,n.data));return ye(e)}function me(t,e){return{staticClass:_e(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function ye(t){var e=t.class,n=t.staticClass;return n||e?_e(n,ge(e)):""}function _e(t,e){return t?e?t+" "+e:t:e||""}function ge(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,r=0,o=t.length;r-1?ao[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ao[t]=/HTMLUnknownElement/.test(e.toString())}function Ce(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function $e(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function xe(t,e){return document.createElementNS(no[t],e)}function ke(t){return document.createTextNode(t)}function Ae(t){return document.createComment(t)}function Oe(t,e,n){t.insertBefore(e,n)}function Se(t,e){t.removeChild(e)}function Ee(t,e){t.appendChild(e)}function je(t){return t.parentNode}function Te(t){return t.nextSibling}function Ie(t){return t.tagName}function De(t,e){t.textContent=e}function Ne(t,e,n){t.setAttribute(e,n)}function Pe(t,e){var n=t.data.ref;if(n){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?i(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])&&a[n].indexOf(o)<0?a[n].push(o):a[n]=[o]:a[n]=o}}function Me(t){return void 0===t||null===t}function Le(t){return void 0!==t&&null!==t}function Re(t){return!0===t}function Ue(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&Le(t.data)===Le(e.data)&&Be(t,e)}function Be(t,e){if("input"!==t.tag)return!0;var n;return(Le(n=t.data)&&Le(n=n.attrs)&&n.type)===(Le(n=e.data)&&Le(n=n.attrs)&&n.type)}function Ve(t,e,n){var r,o,i={};for(r=e;r<=n;++r)o=t[r].key,Le(o)&&(i[o]=r);return i}function Fe(t,e){(t.data.directives||e.data.directives)&&He(t,e)}function He(t,e){var n,r,o,i=t===uo,a=e===uo,s=ze(t.data.directives,t.context),c=ze(e.data.directives,e.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,We(o,"update",e,t),o.def&&o.def.componentUpdated&&l.push(o)):(We(o,"bind",e,t),o.def&&o.def.inserted&&u.push(o));if(u.length){var f=function(){for(var n=0;n-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ln(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function fn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&f(e,So(t.name||"v")),f(e,t),e}return"string"==typeof t?So(t):void 0}}function pn(t){Mo(function(){Mo(t)})}function dn(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),un(t,e)}function vn(t,e){t._transitionClasses&&i(t._transitionClasses,e),ln(t,e)}function hn(t,e,n){var r=mn(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===jo?Do:Po,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=jo,l=a,f=i.length):e===To?u>0&&(n=To,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?jo:To:null,f=n?n===jo?i.length:c.length:0),{type:n,timeout:l,propCount:f,hasTransform:n===jo&&Lo.test(r[Io+"Property"])}}function yn(t,e){for(;t.length1}function $n(t,e){e.data.show||gn(e)}function xn(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,s=0,c=t.options.length;s-1,a.selected!==i&&(a.selected=i);else if(m(An(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));o||(t.selectedIndex=-1)}}function kn(t,e){for(var n=0,r=e.length;n0,rr=tr&&tr.indexOf("edge/")>0,or=tr&&tr.indexOf("android")>0,ir=tr&&/iphone|ipad|ipod|ios/.test(tr),ar=tr&&/chrome\/\d+/.test(tr)&&!rr,sr=function(){return void 0===Un&&(Un=!Yn&&void 0!==t&&"server"===t.process.env.VUE_ENV),Un},cr=Yn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,ur="undefined"!=typeof Symbol&&C(Symbol)&&"undefined"!=typeof Reflect&&C(Reflect.ownKeys),lr=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?l(n):n;for(var r=l(arguments,1),o=0,i=n.length;o1&&(e[n[0].trim()]=n[1].trim())}}),e}),Co=/^--/,$o=/\s*!important$/,xo=function(t,e,n){Co.test(e)?t.style.setProperty(e,n):$o.test(n)?t.style.setProperty(e,n.replace($o,""),"important"):t.style[Ao(e)]=n},ko=["Webkit","Moz","ms"],Ao=c(function(t){if(Kr=Kr||document.createElement("div"),"filter"!==(t=Fn(t))&&t in Kr.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;np?(u=Me(n[m+1])?null:n[m+1].elm,h(t,u,n,f,m,r)):f>m&&y(t,e,l,p)}function b(t,e,n,r){if(t!==e){if(Re(e.isStatic)&&Re(t.isStatic)&&e.key===t.key&&(Re(e.isCloned)||Re(e.isOnce)))return e.elm=t.elm,void(e.componentInstance=t.componentInstance);var o,i=e.data;Le(i)&&Le(o=i.hook)&&Le(o=o.prepatch)&&o(t,e);var a=e.elm=t.elm,s=t.children,c=e.children;if(Le(i)&&p(e)){for(o=0;o1&&void 0!==arguments[1]?arguments[1]:{};this.add(t,{theme:"v-toast-success",timeout:e.timeout})},info:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.add(t,{theme:"v-toast-info",timeout:e.timeout})},warning:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.add(t,{theme:"v-toast-warning",timeout:e.timeout})},error:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.add(t,{theme:"v-toast-error",timeout:e.timeout})},add:function(t,e){var n=this,r=e.theme,o=e.timeout;this.$parent||(this.$mount(),document.body.appendChild(this.$el));var i={message:t,theme:r,key:Date.now()+"-"+Math.random()};this.items.push(i),setTimeout(function(){return n.remove(i)},o||this.timeout)},remove:function(t){var e=this.items.indexOf(t);e>=0&&this.items.splice(e,1)}},data:function(){return{items:[]}}}},function(t,e,n){var r=n(10);r.install=function(t,e){t.prototype.$toaster=new(t.extend(r))({propsData:e})},t.exports=r},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){n(8),n(7);var r=n(0)(n(3),n(12),null,null);t.exports=r.exports},function(t,e,n){n(6);var r=n(0)(n(4),n(11),null,null);t.exports=r.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-toaster"},[n("transition-group",{attrs:{name:"v-toast"}},t._l(t.items,function(e){return n("div",{key:e.key,staticClass:"v-toast",class:(r={},r[e.theme]=e.theme,r)},[n("a",{staticClass:"v-toast-btn-clear",on:{click:function(n){t.remove(e)}}}),t._v(t._s(e.message))]);var r}))],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"toaster-demo",staticStyle:{"text-align":"center"}},[n("p",[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.message,expression:"message"}],domProps:{value:t.message},on:{input:function(e){e.target.composing||(t.message=e.target.value)}}})]),n("p",[n("select",{directives:[{name:"model",rawName:"v-model",value:t.theme,expression:"theme"}],class:(r={},r[t.theme]=!0,r),on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.theme=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:""}},[t._v("default")]),n("option",{attrs:{value:"v-toast-info"}},[t._v("info")]),n("option",{attrs:{value:"v-toast-success"}},[t._v("success")]),n("option",{attrs:{value:"v-toast-warning"}},[t._v("warning")]),n("option",{attrs:{value:"v-toast-error"}},[t._v("error")])]),n("button",{staticClass:"btn",class:(o={},o[t.theme]=!0,o),on:{click:t.show}},[t._v("show")])]),n("p",[n("button",{staticClass:"btn v-toast-info",on:{click:function(e){t.$toaster.info(t.message,{})}}},[t._v("info")]),n("button",{staticClass:"btn v-toast-success",on:{click:function(e){t.$toaster.success(t.message)}}},[t._v("success")]),n("button",{staticClass:"btn v-toast-warning",on:{click:function(e){t.$toaster.warning(t.message)}}},[t._v("warning")]),n("button",{staticClass:"btn v-toast-error",on:{click:function(e){t.$toaster.error(t.message)}}},[t._v("error")])])]);var r,o},staticRenderFns:[]}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){t.exports=n(2)}]);
--------------------------------------------------------------------------------