@vuesimple/vs-tag 1.4.15 → 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.
package/README.md CHANGED
@@ -29,19 +29,13 @@ Code Sandbox: [Link](https://codesandbox.io/s/vs-tag-l7q3d)
29
29
  npm i @vuesimple/vs-tag
30
30
  ```
31
31
 
32
- ```bash
33
- yarn add @vuesimple/vs-tag
34
- ```
35
-
36
32
  <br />
37
33
 
38
34
  ### 🚀 Usage
39
35
 
40
36
  ```html
41
37
  <template>
42
- <vs-tag variant="primary">
43
- Primary
44
- </vs-tag>
38
+ <vs-tag variant="primary"> Primary </vs-tag>
45
39
  </template>
46
40
 
47
41
  <script>
@@ -63,11 +57,14 @@ yarn add @vuesimple/vs-tag
63
57
  <script src="https://unpkg.com/@vuesimple/vs-tag@<version>/dist/vs-tag.min.js"></script>
64
58
  ```
65
59
 
60
+ ```javascript
61
+ // Main/Entry file
62
+ app.use(VsTag);
63
+ ```
64
+
66
65
  ```html
67
66
  <template>
68
- <vs-tag variant="primary">
69
- Primary
70
- </vs-tag>
67
+ <vs-tag variant="primary"> Primary </vs-tag>
71
68
  </template>
72
69
  ```
73
70
 
@@ -104,9 +101,7 @@ After installation,
104
101
 
105
102
  ```html
106
103
  <template>
107
- <vs-tag variant="primary">
108
- Primary
109
- </vs-tag>
104
+ <vs-tag variant="primary"> Primary </vs-tag>
110
105
  </template>
111
106
  ```
112
107
 
@@ -0,0 +1,33 @@
1
+ import vue from '@vitejs/plugin-vue';
2
+ import VitePluginStyleInject from 'vite-plugin-style-inject';
3
+
4
+ export default {
5
+ plugins: [vue(), VitePluginStyleInject()],
6
+ build: {
7
+ // separate css file or not
8
+ cssCodeSplit: false,
9
+ lib: {
10
+ entry: './src/index.js',
11
+ formats: ['es', 'umd', 'iife'],
12
+ name: 'VsTag',
13
+ fileName: format => {
14
+ if (format === 'es') {
15
+ return 'index.js';
16
+ }
17
+ if (format === 'umd') {
18
+ return 'index.umd.js';
19
+ }
20
+ return 'index.min.js';
21
+ },
22
+ },
23
+ rollupOptions: {
24
+ // Not to bundle vue core in this plugin
25
+ external: ['vue'],
26
+ output: {
27
+ globals: {
28
+ vue: 'Vue',
29
+ },
30
+ },
31
+ },
32
+ },
33
+ };
package/dist/index.js ADDED
@@ -0,0 +1,99 @@
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".vs-tag{--vs-tag-bg-color: #e9ebed;--vs-tag-text-color: #49545c;--vs-tag-primary: #1f73b7;--vs-tag-success: #186146;--vs-tag-danger: #cc3340;--vs-tag-warning: #ffb057;--vs-tag-secondary: #3a3a3a;--vs-tag-font-bold: 600;background-color:var(--vs-tag-bg-color);color:var(--vs-tag-text-color);max-width:100%;display:inline-flex;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-items:center;justify-content:center;line-height:19px}.vs-tag__button{display:inline-flex;margin-left:5px;border:none;padding:0;cursor:pointer;color:inherit;background:transparent;opacity:.85;margin-right:-3px}.vs-tag__button:focus-visible{box-shadow:0 0 0 2px #1f73b759;outline:none}.vs-tag__primary{background:var(--vs-tag-primary);color:#fff}.vs-tag__success{background:var(--vs-tag-success);color:#fff}.vs-tag__danger{background:var(--vs-tag-danger);color:#fff}.vs-tag__warning{background:var(--vs-tag-warning);color:#703815}.vs-tag__secondary{background:var(--vs-tag-secondary);color:#fff}.vs-tag__size-small{padding:2px 5px;font-size:10px;border-radius:2px}.vs-tag__size-medium{font-size:12px;min-width:calc(16px + 1ch);padding:4px 8px;border-radius:2px}.vs-tag__size-large{font-size:12px;min-width:calc(24px + 1ch);padding:8px 13px;border-radius:4px}.vs-tag--bold{font-weight:var(--vs-tag-font-bold)}.vs-tag--pill{border-radius:100px;min-width:20px;text-align:center}.vs-tag--round{border-radius:50%;min-width:9px;text-align:center}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();import { openBlock as i, createElementBlock as c, normalizeClass as u, normalizeStyle as d, createElementVNode as o, renderSlot as n, withModifiers as g, createCommentVNode as p } from "vue";
2
+ const _ = (t, s) => {
3
+ const e = t.__vccOpts || t;
4
+ for (const [l, a] of s)
5
+ e[l] = a;
6
+ return e;
7
+ }, v = {
8
+ name: "VsTag",
9
+ props: {
10
+ variant: {
11
+ type: String
12
+ },
13
+ size: {
14
+ type: String,
15
+ default: "medium"
16
+ },
17
+ isBold: {
18
+ type: Boolean,
19
+ default: !0
20
+ },
21
+ isPill: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ isRound: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ bgColor: {
30
+ type: String
31
+ },
32
+ textColor: {
33
+ type: String
34
+ },
35
+ isClose: {
36
+ type: Boolean,
37
+ default: !1
38
+ }
39
+ },
40
+ computed: {
41
+ classList() {
42
+ return [
43
+ this.variant ? `vs-tag__${this.variant}` : "",
44
+ `vs-tag__size-${this.size}`,
45
+ { "vs-tag--bold": this.isBold },
46
+ { "vs-tag--pill": this.isPill },
47
+ { "vs-tag--round": this.isRound }
48
+ ];
49
+ },
50
+ cssVars() {
51
+ return {
52
+ "--vs-tag-bg-color": this.bgColor,
53
+ "--vs-tag-text-color": this.textColor
54
+ };
55
+ },
56
+ isCssVars() {
57
+ return this.bgColor || this.textColor ? this.cssVars : "";
58
+ }
59
+ }
60
+ }, f = /* @__PURE__ */ o("svg", {
61
+ xmlns: "http://www.w3.org/2000/svg",
62
+ width: "12",
63
+ height: "12",
64
+ viewBox: "0 0 12 12",
65
+ focusable: "false",
66
+ role: "presentation"
67
+ }, [
68
+ /* @__PURE__ */ o("path", {
69
+ stroke: "currentColor",
70
+ "stroke-linecap": "round",
71
+ d: "M3 9l6-6m0 6L3 3"
72
+ })
73
+ ], -1), h = [
74
+ f
75
+ ];
76
+ function m(t, s, e, l, a, r) {
77
+ return i(), c("span", {
78
+ class: u(["vs-tag", r.classList]),
79
+ style: d(r.isCssVars)
80
+ }, [
81
+ o("span", null, [
82
+ n(t.$slots, "default")
83
+ ]),
84
+ e.isClose ? n(t.$slots, "close", { key: 0 }, () => [
85
+ o("button", {
86
+ class: "vs-tag__button",
87
+ onClick: s[0] || (s[0] = g((C) => t.$emit("click", !0), ["stop"]))
88
+ }, h)
89
+ ]) : p("", !0)
90
+ ], 6);
91
+ }
92
+ const y = /* @__PURE__ */ _(v, [["render", m]]), V = {
93
+ install(t) {
94
+ t.component("VsTag", y);
95
+ }
96
+ };
97
+ export {
98
+ V as default
99
+ };
@@ -0,0 +1 @@
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".vs-tag{--vs-tag-bg-color: #e9ebed;--vs-tag-text-color: #49545c;--vs-tag-primary: #1f73b7;--vs-tag-success: #186146;--vs-tag-danger: #cc3340;--vs-tag-warning: #ffb057;--vs-tag-secondary: #3a3a3a;--vs-tag-font-bold: 600;background-color:var(--vs-tag-bg-color);color:var(--vs-tag-text-color);max-width:100%;display:inline-flex;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-items:center;justify-content:center;line-height:19px}.vs-tag__button{display:inline-flex;margin-left:5px;border:none;padding:0;cursor:pointer;color:inherit;background:transparent;opacity:.85;margin-right:-3px}.vs-tag__button:focus-visible{box-shadow:0 0 0 2px #1f73b759;outline:none}.vs-tag__primary{background:var(--vs-tag-primary);color:#fff}.vs-tag__success{background:var(--vs-tag-success);color:#fff}.vs-tag__danger{background:var(--vs-tag-danger);color:#fff}.vs-tag__warning{background:var(--vs-tag-warning);color:#703815}.vs-tag__secondary{background:var(--vs-tag-secondary);color:#fff}.vs-tag__size-small{padding:2px 5px;font-size:10px;border-radius:2px}.vs-tag__size-medium{font-size:12px;min-width:calc(16px + 1ch);padding:4px 8px;border-radius:2px}.vs-tag__size-large{font-size:12px;min-width:calc(24px + 1ch);padding:8px 13px;border-radius:4px}.vs-tag--bold{font-weight:var(--vs-tag-font-bold)}.vs-tag--pill{border-radius:100px;min-width:20px;text-align:center}.vs-tag--round{border-radius:50%;min-width:9px;text-align:center}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();var VsTag=function(t){"use strict";const p="",a=(s,e)=>{const o=s.__vccOpts||s;for(const[l,n]of e)o[l]=n;return o},i={name:"VsTag",props:{variant:{type:String},size:{type:String,default:"medium"},isBold:{type:Boolean,default:!0},isPill:{type:Boolean,default:!1},isRound:{type:Boolean,default:!1},bgColor:{type:String},textColor:{type:String},isClose:{type:Boolean,default:!1}},computed:{classList(){return[this.variant?`vs-tag__${this.variant}`:"",`vs-tag__size-${this.size}`,{"vs-tag--bold":this.isBold},{"vs-tag--pill":this.isPill},{"vs-tag--round":this.isRound}]},cssVars(){return{"--vs-tag-bg-color":this.bgColor,"--vs-tag-text-color":this.textColor}},isCssVars(){return this.bgColor||this.textColor?this.cssVars:""}}},c=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",focusable:"false",role:"presentation"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round",d:"M3 9l6-6m0 6L3 3"})],-1)];function d(s,e,o,l,n,r){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["vs-tag",r.classList]),style:t.normalizeStyle(r.isCssVars)},[t.createElementVNode("span",null,[t.renderSlot(s.$slots,"default")]),o.isClose?t.renderSlot(s.$slots,"close",{key:0},()=>[t.createElementVNode("button",{class:"vs-tag__button",onClick:e[0]||(e[0]=t.withModifiers(h=>s.$emit("click",!0),["stop"]))},c)]):t.createCommentVNode("",!0)],6)}const g=a(i,[["render",d]]);return{install(s){s.component("VsTag",g)}}}(Vue);
@@ -0,0 +1 @@
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode(".vs-tag{--vs-tag-bg-color: #e9ebed;--vs-tag-text-color: #49545c;--vs-tag-primary: #1f73b7;--vs-tag-success: #186146;--vs-tag-danger: #cc3340;--vs-tag-warning: #ffb057;--vs-tag-secondary: #3a3a3a;--vs-tag-font-bold: 600;background-color:var(--vs-tag-bg-color);color:var(--vs-tag-text-color);max-width:100%;display:inline-flex;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-items:center;justify-content:center;line-height:19px}.vs-tag__button{display:inline-flex;margin-left:5px;border:none;padding:0;cursor:pointer;color:inherit;background:transparent;opacity:.85;margin-right:-3px}.vs-tag__button:focus-visible{box-shadow:0 0 0 2px #1f73b759;outline:none}.vs-tag__primary{background:var(--vs-tag-primary);color:#fff}.vs-tag__success{background:var(--vs-tag-success);color:#fff}.vs-tag__danger{background:var(--vs-tag-danger);color:#fff}.vs-tag__warning{background:var(--vs-tag-warning);color:#703815}.vs-tag__secondary{background:var(--vs-tag-secondary);color:#fff}.vs-tag__size-small{padding:2px 5px;font-size:10px;border-radius:2px}.vs-tag__size-medium{font-size:12px;min-width:calc(16px + 1ch);padding:4px 8px;border-radius:2px}.vs-tag__size-large{font-size:12px;min-width:calc(24px + 1ch);padding:8px 13px;border-radius:4px}.vs-tag--bold{font-weight:var(--vs-tag-font-bold)}.vs-tag--pill{border-radius:100px;min-width:20px;text-align:center}.vs-tag--round{border-radius:50%;min-width:9px;text-align:center}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();(function(t,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("vue")):typeof define=="function"&&define.amd?define(["vue"],s):(t=typeof globalThis<"u"?globalThis:t||self,t.VsTag=s(t.Vue))})(this,function(t){"use strict";const s="",a=(e,o)=>{const n=e.__vccOpts||e;for(const[l,i]of o)n[l]=i;return n},d={name:"VsTag",props:{variant:{type:String},size:{type:String,default:"medium"},isBold:{type:Boolean,default:!0},isPill:{type:Boolean,default:!1},isRound:{type:Boolean,default:!1},bgColor:{type:String},textColor:{type:String},isClose:{type:Boolean,default:!1}},computed:{classList(){return[this.variant?`vs-tag__${this.variant}`:"",`vs-tag__size-${this.size}`,{"vs-tag--bold":this.isBold},{"vs-tag--pill":this.isPill},{"vs-tag--round":this.isRound}]},cssVars(){return{"--vs-tag-bg-color":this.bgColor,"--vs-tag-text-color":this.textColor}},isCssVars(){return this.bgColor||this.textColor?this.cssVars:""}}},c=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",focusable:"false",role:"presentation"},[t.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round",d:"M3 9l6-6m0 6L3 3"})],-1)];function u(e,o,n,l,i,r){return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["vs-tag",r.classList]),style:t.normalizeStyle(r.isCssVars)},[t.createElementVNode("span",null,[t.renderSlot(e.$slots,"default")]),n.isClose?t.renderSlot(e.$slots,"close",{key:0},()=>[t.createElementVNode("button",{class:"vs-tag__button",onClick:o[0]||(o[0]=t.withModifiers(_=>e.$emit("click",!0),["stop"]))},c)]):t.createCommentVNode("",!0)],6)}const p=a(d,[["render",u]]);return{install(e){e.component("VsTag",p)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuesimple/vs-tag",
3
- "version": "1.4.15",
3
+ "version": "3.0.0",
4
4
  "description": "A simple vue tag. Perfect for all your tag scenarios.",
5
5
  "main": "dist/vs-tag.umd.js",
6
6
  "module": "dist/vs-tag.esm.js",
@@ -9,20 +9,14 @@
9
9
  "./sfc": "src/vs-tag.vue"
10
10
  },
11
11
  "scripts": {
12
- "build": "rm -rfv dist && npm run build:umd & npm run build:es & npm run build:unpkg",
13
- "build:umd": "rollup --config build/rollup.config.js --format umd --file dist/vs-tag.umd.js",
14
- "build:es": "rollup --config build/rollup.config.js --format es --file dist/vs-tag.esm.js",
15
- "build:unpkg": "rollup --config build/rollup.config.js --format iife --file dist/vs-tag.min.js"
12
+ "build": "rm -rfv dist && vite build --config build/vite.config.js"
16
13
  },
17
14
  "devDependencies": {
18
- "@rollup/plugin-buble": "0.21.3",
19
- "@rollup/plugin-image": "2.0.5",
20
- "minimist": "1.2.5",
21
- "rollup": "1.32.0",
22
- "rollup-plugin-terser": "6.1.0",
23
- "rollup-plugin-vue": "5.1.9",
24
- "vue": "2.6.10",
25
- "vue-template-compiler": "2.6.10"
15
+ "@vitejs/plugin-vue": "^3.0.1",
16
+ "sass": "^1.54.4",
17
+ "vite": "^3.0.5",
18
+ "vite-plugin-style-inject": "0.0.1",
19
+ "vue": "^3.2.37"
26
20
  },
27
21
  "private": false,
28
22
  "repository": {
@@ -52,5 +46,5 @@
52
46
  "url": "https://github.com/ashwinkshenoy/vue-simple/issues"
53
47
  },
54
48
  "homepage": "https://github.com/ashwinkshenoy/vue-simple/tree/master/packages/vs-tag",
55
- "gitHead": "e3d2d8adc6417d73ef774c0321eaa1ae10f24589"
49
+ "gitHead": "c666ac905df7e5b10f9198cd056cdd3fa88e212e"
56
50
  }
package/src/index.js CHANGED
@@ -1,28 +1,9 @@
1
- // Import vue component
2
1
  import VsTag from './vs-tag.vue';
3
2
 
4
- // Declare install function executed by Vue.use()
5
- export function install(Vue) {
6
- if (install.installed) return;
7
- install.installed = true;
8
- Vue.component('VsTag', VsTag);
9
- }
10
-
11
- // Create module definition for Vue.use()
12
3
  const plugin = {
13
- install,
4
+ install(Vue) {
5
+ Vue.component('VsTag', VsTag);
6
+ },
14
7
  };
15
8
 
16
- // Auto-install when vue is found (eg. in browser via <script> tag)
17
- let GlobalVue = null;
18
- if (typeof window !== 'undefined') {
19
- GlobalVue = window.Vue;
20
- } else if (typeof global !== 'undefined') {
21
- GlobalVue = global.Vue;
22
- }
23
- if (GlobalVue) {
24
- GlobalVue.use(plugin);
25
- }
26
-
27
- // To allow use as module (npm/webpack/etc.) export component
28
- export default VsTag;
9
+ export default plugin;
package/src/vs-tag.vue CHANGED
@@ -2,7 +2,7 @@
2
2
  <span :class="['vs-tag', classList]" :style="isCssVars">
3
3
  <span><slot></slot></span>
4
4
  <slot name="close" v-if="isClose">
5
- <button class="vs-tag__button" @click="$emit('click', true)">
5
+ <button class="vs-tag__button" @click.stop="$emit('click', true)">
6
6
  <svg
7
7
  xmlns="http://www.w3.org/2000/svg"
8
8
  width="12"
@@ -1,327 +0,0 @@
1
- //
2
- //
3
- //
4
- //
5
- //
6
- //
7
- //
8
- //
9
- //
10
- //
11
- //
12
- //
13
- //
14
- //
15
- //
16
- //
17
- //
18
- //
19
- //
20
- //
21
-
22
- var script = {
23
- name: 'VsTag',
24
-
25
- props: {
26
- // `primary`, `secondary`, `warning`, `danger`
27
- variant: {
28
- type: String,
29
- },
30
- // `small`. `medium`, `large`
31
- size: {
32
- type: String,
33
- default: 'medium',
34
- },
35
- isBold: {
36
- type: Boolean,
37
- default: true,
38
- },
39
- isPill: {
40
- type: Boolean,
41
- default: false,
42
- },
43
- isRound: {
44
- type: Boolean,
45
- default: false,
46
- },
47
- bgColor: {
48
- type: String,
49
- },
50
- textColor: {
51
- type: String,
52
- },
53
- isClose: {
54
- type: Boolean,
55
- default: false,
56
- },
57
- },
58
-
59
- computed: {
60
- classList: function classList() {
61
- return [
62
- this.variant ? ("vs-tag__" + (this.variant)) : '',
63
- ("vs-tag__size-" + (this.size)),
64
- { 'vs-tag--bold': this.isBold },
65
- { 'vs-tag--pill': this.isPill },
66
- { 'vs-tag--round': this.isRound } ];
67
- },
68
-
69
- cssVars: function cssVars() {
70
- return {
71
- '--vs-tag-bg-color': this.bgColor,
72
- '--vs-tag-text-color': this.textColor,
73
- };
74
- },
75
-
76
- isCssVars: function isCssVars() {
77
- return this.bgColor || this.textColor ? this.cssVars : '';
78
- },
79
- },
80
- };
81
-
82
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
83
- if (typeof shadowMode !== 'boolean') {
84
- createInjectorSSR = createInjector;
85
- createInjector = shadowMode;
86
- shadowMode = false;
87
- }
88
- // Vue.extend constructor export interop.
89
- var options = typeof script === 'function' ? script.options : script;
90
- // render functions
91
- if (template && template.render) {
92
- options.render = template.render;
93
- options.staticRenderFns = template.staticRenderFns;
94
- options._compiled = true;
95
- // functional template
96
- if (isFunctionalTemplate) {
97
- options.functional = true;
98
- }
99
- }
100
- // scopedId
101
- if (scopeId) {
102
- options._scopeId = scopeId;
103
- }
104
- var hook;
105
- if (moduleIdentifier) {
106
- // server build
107
- hook = function (context) {
108
- // 2.3 injection
109
- context =
110
- context || // cached call
111
- (this.$vnode && this.$vnode.ssrContext) || // stateful
112
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
113
- // 2.2 with runInNewContext: true
114
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
115
- context = __VUE_SSR_CONTEXT__;
116
- }
117
- // inject component styles
118
- if (style) {
119
- style.call(this, createInjectorSSR(context));
120
- }
121
- // register component module identifier for async chunk inference
122
- if (context && context._registeredComponents) {
123
- context._registeredComponents.add(moduleIdentifier);
124
- }
125
- };
126
- // used by ssr in case component is cached and beforeCreate
127
- // never gets called
128
- options._ssrRegister = hook;
129
- }
130
- else if (style) {
131
- hook = shadowMode
132
- ? function (context) {
133
- style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
134
- }
135
- : function (context) {
136
- style.call(this, createInjector(context));
137
- };
138
- }
139
- if (hook) {
140
- if (options.functional) {
141
- // register for functional component in vue file
142
- var originalRender = options.render;
143
- options.render = function renderWithStyleInjection(h, context) {
144
- hook.call(context);
145
- return originalRender(h, context);
146
- };
147
- }
148
- else {
149
- // inject component registration as beforeCreate hook
150
- var existing = options.beforeCreate;
151
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
152
- }
153
- }
154
- return script;
155
- }
156
-
157
- var isOldIE = typeof navigator !== 'undefined' &&
158
- /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
159
- function createInjector(context) {
160
- return function (id, style) { return addStyle(id, style); };
161
- }
162
- var HEAD;
163
- var styles = {};
164
- function addStyle(id, css) {
165
- var group = isOldIE ? css.media || 'default' : id;
166
- var style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
167
- if (!style.ids.has(id)) {
168
- style.ids.add(id);
169
- var code = css.source;
170
- if (css.map) {
171
- // https://developer.chrome.com/devtools/docs/javascript-debugging
172
- // this makes source maps inside style tags work properly in Chrome
173
- code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
174
- // http://stackoverflow.com/a/26603875
175
- code +=
176
- '\n/*# sourceMappingURL=data:application/json;base64,' +
177
- btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
178
- ' */';
179
- }
180
- if (!style.element) {
181
- style.element = document.createElement('style');
182
- style.element.type = 'text/css';
183
- if (css.media)
184
- { style.element.setAttribute('media', css.media); }
185
- if (HEAD === undefined) {
186
- HEAD = document.head || document.getElementsByTagName('head')[0];
187
- }
188
- HEAD.appendChild(style.element);
189
- }
190
- if ('styleSheet' in style.element) {
191
- style.styles.push(code);
192
- style.element.styleSheet.cssText = style.styles
193
- .filter(Boolean)
194
- .join('\n');
195
- }
196
- else {
197
- var index = style.ids.size - 1;
198
- var textNode = document.createTextNode(code);
199
- var nodes = style.element.childNodes;
200
- if (nodes[index])
201
- { style.element.removeChild(nodes[index]); }
202
- if (nodes.length)
203
- { style.element.insertBefore(textNode, nodes[index]); }
204
- else
205
- { style.element.appendChild(textNode); }
206
- }
207
- }
208
- }
209
-
210
- /* script */
211
- var __vue_script__ = script;
212
-
213
- /* template */
214
- var __vue_render__ = function() {
215
- var _vm = this;
216
- var _h = _vm.$createElement;
217
- var _c = _vm._self._c || _h;
218
- return _c(
219
- "span",
220
- { class: ["vs-tag", _vm.classList], style: _vm.isCssVars },
221
- [
222
- _c("span", [_vm._t("default")], 2),
223
- _vm._v(" "),
224
- _vm.isClose
225
- ? _vm._t("close", [
226
- _c(
227
- "button",
228
- {
229
- staticClass: "vs-tag__button",
230
- on: {
231
- click: function($event) {
232
- return _vm.$emit("click", true)
233
- }
234
- }
235
- },
236
- [
237
- _c(
238
- "svg",
239
- {
240
- attrs: {
241
- xmlns: "http://www.w3.org/2000/svg",
242
- width: "12",
243
- height: "12",
244
- viewBox: "0 0 12 12",
245
- focusable: "false",
246
- role: "presentation"
247
- }
248
- },
249
- [
250
- _c("path", {
251
- attrs: {
252
- stroke: "currentColor",
253
- "stroke-linecap": "round",
254
- d: "M3 9l6-6m0 6L3 3"
255
- }
256
- })
257
- ]
258
- )
259
- ]
260
- )
261
- ])
262
- : _vm._e()
263
- ],
264
- 2
265
- )
266
- };
267
- var __vue_staticRenderFns__ = [];
268
- __vue_render__._withStripped = true;
269
-
270
- /* style */
271
- var __vue_inject_styles__ = function (inject) {
272
- if (!inject) { return }
273
- inject("data-v-04c7755e_0", { source: ".vs-tag {\n --vs-tag-bg-color: #e9ebed;\n --vs-tag-text-color: #49545c;\n --vs-tag-primary: #1f73b7;\n --vs-tag-success: #186146;\n --vs-tag-danger: #cc3340;\n --vs-tag-warning: #ffb057;\n --vs-tag-secondary: #3a3a3a;\n --vs-tag-font-bold: 600;\n background-color: var(--vs-tag-bg-color);\n color: var(--vs-tag-text-color);\n max-width: 100%;\n display: inline-flex;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n align-items: center;\n justify-content: center;\n line-height: 19px;\n}\n.vs-tag__button {\n display: inline-flex;\n margin-left: 5px;\n border: none;\n padding: 0;\n cursor: pointer;\n color: inherit;\n background: transparent;\n opacity: 0.85;\n margin-right: -3px;\n}\n.vs-tag__button:focus-visible {\n box-shadow: 0 0 0 2px rgba(31, 115, 183, 0.35);\n outline: none;\n}\n.vs-tag__primary {\n background: var(--vs-tag-primary);\n color: #ffffff;\n}\n.vs-tag__success {\n background: var(--vs-tag-success);\n color: #ffffff;\n}\n.vs-tag__danger {\n background: var(--vs-tag-danger);\n color: #ffffff;\n}\n.vs-tag__warning {\n background: var(--vs-tag-warning);\n color: #703815;\n}\n.vs-tag__secondary {\n background: var(--vs-tag-secondary);\n color: #ffffff;\n}\n.vs-tag__size-small {\n padding: 2px 5px;\n font-size: 10px;\n border-radius: 2px;\n}\n.vs-tag__size-medium {\n font-size: 12px;\n min-width: calc(16px + 1ch);\n padding: 4px 8px;\n border-radius: 2px;\n}\n.vs-tag__size-large {\n font-size: 12px;\n min-width: calc(24px + 1ch);\n padding: 8px 13px;\n border-radius: 4px;\n}\n.vs-tag--bold {\n font-weight: var(--vs-tag-font-bold);\n}\n.vs-tag--pill {\n border-radius: 100px;\n min-width: 20px;\n text-align: center;\n}\n.vs-tag--round {\n border-radius: 50%;\n min-width: 9px;\n text-align: center;\n}", map: undefined, media: undefined });
274
-
275
- };
276
- /* scoped */
277
- var __vue_scope_id__ = undefined;
278
- /* module identifier */
279
- var __vue_module_identifier__ = undefined;
280
- /* functional template */
281
- var __vue_is_functional_template__ = false;
282
- /* style inject SSR */
283
-
284
- /* style inject shadow dom */
285
-
286
-
287
-
288
- var __vue_component__ = /*#__PURE__*/normalizeComponent(
289
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
290
- __vue_inject_styles__,
291
- __vue_script__,
292
- __vue_scope_id__,
293
- __vue_is_functional_template__,
294
- __vue_module_identifier__,
295
- false,
296
- createInjector,
297
- undefined,
298
- undefined
299
- );
300
-
301
- // Import vue component
302
-
303
- // Declare install function executed by Vue.use()
304
- function install(Vue) {
305
- if (install.installed) { return; }
306
- install.installed = true;
307
- Vue.component('VsTag', __vue_component__);
308
- }
309
-
310
- // Create module definition for Vue.use()
311
- var plugin = {
312
- install: install,
313
- };
314
-
315
- // Auto-install when vue is found (eg. in browser via <script> tag)
316
- var GlobalVue = null;
317
- if (typeof window !== 'undefined') {
318
- GlobalVue = window.Vue;
319
- } else if (typeof global !== 'undefined') {
320
- GlobalVue = global.Vue;
321
- }
322
- if (GlobalVue) {
323
- GlobalVue.use(plugin);
324
- }
325
-
326
- export default __vue_component__;
327
- export { install };
@@ -1 +0,0 @@
1
- var VsTag=function(n){"use strict";var e={name:"VsTag",props:{variant:{type:String},size:{type:String,default:"medium"},isBold:{type:Boolean,default:!0},isPill:{type:Boolean,default:!1},isRound:{type:Boolean,default:!1},bgColor:{type:String},textColor:{type:String},isClose:{type:Boolean,default:!1}},computed:{classList:function(){return[this.variant?"vs-tag__"+this.variant:"","vs-tag__size-"+this.size,{"vs-tag--bold":this.isBold},{"vs-tag--pill":this.isPill},{"vs-tag--round":this.isRound}]},cssVars:function(){return{"--vs-tag-bg-color":this.bgColor,"--vs-tag-text-color":this.textColor}},isCssVars:function(){return this.bgColor||this.textColor?this.cssVars:""}}};function t(n,e,t,s,a,o,i,r,l,d){"boolean"!=typeof i&&(l=r,r=i,i=!1);var c,g="function"==typeof t?t.options:t;if(n&&n.render&&(g.render=n.render,g.staticRenderFns=n.staticRenderFns,g._compiled=!0,a&&(g.functional=!0)),s&&(g._scopeId=s),o?(c=function(n){(n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__),e&&e.call(this,l(n)),n&&n._registeredComponents&&n._registeredComponents.add(o)},g._ssrRegister=c):e&&(c=i?function(n){e.call(this,d(n,this.$root.$options.shadowRoot))}:function(n){e.call(this,r(n))}),c)if(g.functional){var u=g.render;g.render=function(n,e){return c.call(e),u(n,e)}}else{var f=g.beforeCreate;g.beforeCreate=f?[].concat(f,c):[c]}return t}var s,a="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function o(n){return function(n,e){return function(n,e){var t=a?e.media||"default":n,o=i[t]||(i[t]={ids:new Set,styles:[]});if(!o.ids.has(n)){o.ids.add(n);var r=e.source;if(e.map&&(r+="\n/*# sourceURL="+e.map.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),o.element||(o.element=document.createElement("style"),o.element.type="text/css",e.media&&o.element.setAttribute("media",e.media),void 0===s&&(s=document.head||document.getElementsByTagName("head")[0]),s.appendChild(o.element)),"styleSheet"in o.element)o.styles.push(r),o.element.styleSheet.cssText=o.styles.filter(Boolean).join("\n");else{var l=o.ids.size-1,d=document.createTextNode(r),c=o.element.childNodes;c[l]&&o.element.removeChild(c[l]),c.length?o.element.insertBefore(d,c[l]):o.element.appendChild(d)}}}(n,e)}}var i={};var r=e,l=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("span",{class:["vs-tag",n.classList],style:n.isCssVars},[t("span",[n._t("default")],2),n._v(" "),n.isClose?n._t("close",[t("button",{staticClass:"vs-tag__button",on:{click:function(e){return n.$emit("click",!0)}}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",focusable:"false",role:"presentation"}},[t("path",{attrs:{stroke:"currentColor","stroke-linecap":"round",d:"M3 9l6-6m0 6L3 3"}})])])]):n._e()],2)};l._withStripped=!0;var d=t({render:l,staticRenderFns:[]},(function(n){n&&n("data-v-04c7755e_0",{source:".vs-tag {\n --vs-tag-bg-color: #e9ebed;\n --vs-tag-text-color: #49545c;\n --vs-tag-primary: #1f73b7;\n --vs-tag-success: #186146;\n --vs-tag-danger: #cc3340;\n --vs-tag-warning: #ffb057;\n --vs-tag-secondary: #3a3a3a;\n --vs-tag-font-bold: 600;\n background-color: var(--vs-tag-bg-color);\n color: var(--vs-tag-text-color);\n max-width: 100%;\n display: inline-flex;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n align-items: center;\n justify-content: center;\n line-height: 19px;\n}\n.vs-tag__button {\n display: inline-flex;\n margin-left: 5px;\n border: none;\n padding: 0;\n cursor: pointer;\n color: inherit;\n background: transparent;\n opacity: 0.85;\n margin-right: -3px;\n}\n.vs-tag__button:focus-visible {\n box-shadow: 0 0 0 2px rgba(31, 115, 183, 0.35);\n outline: none;\n}\n.vs-tag__primary {\n background: var(--vs-tag-primary);\n color: #ffffff;\n}\n.vs-tag__success {\n background: var(--vs-tag-success);\n color: #ffffff;\n}\n.vs-tag__danger {\n background: var(--vs-tag-danger);\n color: #ffffff;\n}\n.vs-tag__warning {\n background: var(--vs-tag-warning);\n color: #703815;\n}\n.vs-tag__secondary {\n background: var(--vs-tag-secondary);\n color: #ffffff;\n}\n.vs-tag__size-small {\n padding: 2px 5px;\n font-size: 10px;\n border-radius: 2px;\n}\n.vs-tag__size-medium {\n font-size: 12px;\n min-width: calc(16px + 1ch);\n padding: 4px 8px;\n border-radius: 2px;\n}\n.vs-tag__size-large {\n font-size: 12px;\n min-width: calc(24px + 1ch);\n padding: 8px 13px;\n border-radius: 4px;\n}\n.vs-tag--bold {\n font-weight: var(--vs-tag-font-bold);\n}\n.vs-tag--pill {\n border-radius: 100px;\n min-width: 20px;\n text-align: center;\n}\n.vs-tag--round {\n border-radius: 50%;\n min-width: 9px;\n text-align: center;\n}",map:void 0,media:void 0})}),r,void 0,!1,void 0,!1,o,void 0,void 0);function c(n){c.installed||(c.installed=!0,n.component("VsTag",d))}var g={install:c},u=null;return"undefined"!=typeof window?u=window.Vue:"undefined"!=typeof global&&(u=global.Vue),u&&u.use(g),n.default=d,n.install=c,n}({});
@@ -1,337 +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.VsTag = {}));
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
- var script = {
29
- name: 'VsTag',
30
-
31
- props: {
32
- // `primary`, `secondary`, `warning`, `danger`
33
- variant: {
34
- type: String,
35
- },
36
- // `small`. `medium`, `large`
37
- size: {
38
- type: String,
39
- default: 'medium',
40
- },
41
- isBold: {
42
- type: Boolean,
43
- default: true,
44
- },
45
- isPill: {
46
- type: Boolean,
47
- default: false,
48
- },
49
- isRound: {
50
- type: Boolean,
51
- default: false,
52
- },
53
- bgColor: {
54
- type: String,
55
- },
56
- textColor: {
57
- type: String,
58
- },
59
- isClose: {
60
- type: Boolean,
61
- default: false,
62
- },
63
- },
64
-
65
- computed: {
66
- classList: function classList() {
67
- return [
68
- this.variant ? ("vs-tag__" + (this.variant)) : '',
69
- ("vs-tag__size-" + (this.size)),
70
- { 'vs-tag--bold': this.isBold },
71
- { 'vs-tag--pill': this.isPill },
72
- { 'vs-tag--round': this.isRound } ];
73
- },
74
-
75
- cssVars: function cssVars() {
76
- return {
77
- '--vs-tag-bg-color': this.bgColor,
78
- '--vs-tag-text-color': this.textColor,
79
- };
80
- },
81
-
82
- isCssVars: function isCssVars() {
83
- return this.bgColor || this.textColor ? this.cssVars : '';
84
- },
85
- },
86
- };
87
-
88
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
89
- if (typeof shadowMode !== 'boolean') {
90
- createInjectorSSR = createInjector;
91
- createInjector = shadowMode;
92
- shadowMode = false;
93
- }
94
- // Vue.extend constructor export interop.
95
- var options = typeof script === 'function' ? script.options : script;
96
- // render functions
97
- if (template && template.render) {
98
- options.render = template.render;
99
- options.staticRenderFns = template.staticRenderFns;
100
- options._compiled = true;
101
- // functional template
102
- if (isFunctionalTemplate) {
103
- options.functional = true;
104
- }
105
- }
106
- // scopedId
107
- if (scopeId) {
108
- options._scopeId = scopeId;
109
- }
110
- var hook;
111
- if (moduleIdentifier) {
112
- // server build
113
- hook = function (context) {
114
- // 2.3 injection
115
- context =
116
- context || // cached call
117
- (this.$vnode && this.$vnode.ssrContext) || // stateful
118
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
119
- // 2.2 with runInNewContext: true
120
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
121
- context = __VUE_SSR_CONTEXT__;
122
- }
123
- // inject component styles
124
- if (style) {
125
- style.call(this, createInjectorSSR(context));
126
- }
127
- // register component module identifier for async chunk inference
128
- if (context && context._registeredComponents) {
129
- context._registeredComponents.add(moduleIdentifier);
130
- }
131
- };
132
- // used by ssr in case component is cached and beforeCreate
133
- // never gets called
134
- options._ssrRegister = hook;
135
- }
136
- else if (style) {
137
- hook = shadowMode
138
- ? function (context) {
139
- style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
140
- }
141
- : function (context) {
142
- style.call(this, createInjector(context));
143
- };
144
- }
145
- if (hook) {
146
- if (options.functional) {
147
- // register for functional component in vue file
148
- var originalRender = options.render;
149
- options.render = function renderWithStyleInjection(h, context) {
150
- hook.call(context);
151
- return originalRender(h, context);
152
- };
153
- }
154
- else {
155
- // inject component registration as beforeCreate hook
156
- var existing = options.beforeCreate;
157
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
158
- }
159
- }
160
- return script;
161
- }
162
-
163
- var isOldIE = typeof navigator !== 'undefined' &&
164
- /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
165
- function createInjector(context) {
166
- return function (id, style) { return addStyle(id, style); };
167
- }
168
- var HEAD;
169
- var styles = {};
170
- function addStyle(id, css) {
171
- var group = isOldIE ? css.media || 'default' : id;
172
- var style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
173
- if (!style.ids.has(id)) {
174
- style.ids.add(id);
175
- var code = css.source;
176
- if (css.map) {
177
- // https://developer.chrome.com/devtools/docs/javascript-debugging
178
- // this makes source maps inside style tags work properly in Chrome
179
- code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
180
- // http://stackoverflow.com/a/26603875
181
- code +=
182
- '\n/*# sourceMappingURL=data:application/json;base64,' +
183
- btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
184
- ' */';
185
- }
186
- if (!style.element) {
187
- style.element = document.createElement('style');
188
- style.element.type = 'text/css';
189
- if (css.media)
190
- { style.element.setAttribute('media', css.media); }
191
- if (HEAD === undefined) {
192
- HEAD = document.head || document.getElementsByTagName('head')[0];
193
- }
194
- HEAD.appendChild(style.element);
195
- }
196
- if ('styleSheet' in style.element) {
197
- style.styles.push(code);
198
- style.element.styleSheet.cssText = style.styles
199
- .filter(Boolean)
200
- .join('\n');
201
- }
202
- else {
203
- var index = style.ids.size - 1;
204
- var textNode = document.createTextNode(code);
205
- var nodes = style.element.childNodes;
206
- if (nodes[index])
207
- { style.element.removeChild(nodes[index]); }
208
- if (nodes.length)
209
- { style.element.insertBefore(textNode, nodes[index]); }
210
- else
211
- { style.element.appendChild(textNode); }
212
- }
213
- }
214
- }
215
-
216
- /* script */
217
- var __vue_script__ = script;
218
-
219
- /* template */
220
- var __vue_render__ = function() {
221
- var _vm = this;
222
- var _h = _vm.$createElement;
223
- var _c = _vm._self._c || _h;
224
- return _c(
225
- "span",
226
- { class: ["vs-tag", _vm.classList], style: _vm.isCssVars },
227
- [
228
- _c("span", [_vm._t("default")], 2),
229
- _vm._v(" "),
230
- _vm.isClose
231
- ? _vm._t("close", [
232
- _c(
233
- "button",
234
- {
235
- staticClass: "vs-tag__button",
236
- on: {
237
- click: function($event) {
238
- return _vm.$emit("click", true)
239
- }
240
- }
241
- },
242
- [
243
- _c(
244
- "svg",
245
- {
246
- attrs: {
247
- xmlns: "http://www.w3.org/2000/svg",
248
- width: "12",
249
- height: "12",
250
- viewBox: "0 0 12 12",
251
- focusable: "false",
252
- role: "presentation"
253
- }
254
- },
255
- [
256
- _c("path", {
257
- attrs: {
258
- stroke: "currentColor",
259
- "stroke-linecap": "round",
260
- d: "M3 9l6-6m0 6L3 3"
261
- }
262
- })
263
- ]
264
- )
265
- ]
266
- )
267
- ])
268
- : _vm._e()
269
- ],
270
- 2
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-04c7755e_0", { source: ".vs-tag {\n --vs-tag-bg-color: #e9ebed;\n --vs-tag-text-color: #49545c;\n --vs-tag-primary: #1f73b7;\n --vs-tag-success: #186146;\n --vs-tag-danger: #cc3340;\n --vs-tag-warning: #ffb057;\n --vs-tag-secondary: #3a3a3a;\n --vs-tag-font-bold: 600;\n background-color: var(--vs-tag-bg-color);\n color: var(--vs-tag-text-color);\n max-width: 100%;\n display: inline-flex;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n align-items: center;\n justify-content: center;\n line-height: 19px;\n}\n.vs-tag__button {\n display: inline-flex;\n margin-left: 5px;\n border: none;\n padding: 0;\n cursor: pointer;\n color: inherit;\n background: transparent;\n opacity: 0.85;\n margin-right: -3px;\n}\n.vs-tag__button:focus-visible {\n box-shadow: 0 0 0 2px rgba(31, 115, 183, 0.35);\n outline: none;\n}\n.vs-tag__primary {\n background: var(--vs-tag-primary);\n color: #ffffff;\n}\n.vs-tag__success {\n background: var(--vs-tag-success);\n color: #ffffff;\n}\n.vs-tag__danger {\n background: var(--vs-tag-danger);\n color: #ffffff;\n}\n.vs-tag__warning {\n background: var(--vs-tag-warning);\n color: #703815;\n}\n.vs-tag__secondary {\n background: var(--vs-tag-secondary);\n color: #ffffff;\n}\n.vs-tag__size-small {\n padding: 2px 5px;\n font-size: 10px;\n border-radius: 2px;\n}\n.vs-tag__size-medium {\n font-size: 12px;\n min-width: calc(16px + 1ch);\n padding: 4px 8px;\n border-radius: 2px;\n}\n.vs-tag__size-large {\n font-size: 12px;\n min-width: calc(24px + 1ch);\n padding: 8px 13px;\n border-radius: 4px;\n}\n.vs-tag--bold {\n font-weight: var(--vs-tag-font-bold);\n}\n.vs-tag--pill {\n border-radius: 100px;\n min-width: 20px;\n text-align: center;\n}\n.vs-tag--round {\n border-radius: 50%;\n min-width: 9px;\n text-align: center;\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
- // Import vue component
308
-
309
- // Declare install function executed by Vue.use()
310
- function install(Vue) {
311
- if (install.installed) { return; }
312
- install.installed = true;
313
- Vue.component('VsTag', __vue_component__);
314
- }
315
-
316
- // Create module definition for Vue.use()
317
- var plugin = {
318
- install: install,
319
- };
320
-
321
- // Auto-install when vue is found (eg. in browser via <script> tag)
322
- var GlobalVue = null;
323
- if (typeof window !== 'undefined') {
324
- GlobalVue = window.Vue;
325
- } else if (typeof global !== 'undefined') {
326
- GlobalVue = global.Vue;
327
- }
328
- if (GlobalVue) {
329
- GlobalVue.use(plugin);
330
- }
331
-
332
- exports.default = __vue_component__;
333
- exports.install = install;
334
-
335
- Object.defineProperty(exports, '__esModule', { value: true });
336
-
337
- })));