Comparing version 0.4.0-alpha.0 to 0.4.1-alpha.0
@@ -141,3 +141,3 @@ module.exports = | ||
*/ | ||
var version = __webpack_require__("8bbf").version || __webpack_require__("8bbf").version.default; | ||
var version = __webpack_require__("8bbf").version || __webpack_require__("8bbf").default.version; | ||
@@ -200,2 +200,6 @@ var isVue3 = /^3\./.test(version); | ||
var VPrimitive = { | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VPrimitive", | ||
@@ -223,3 +227,3 @@ props: { | ||
}; | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEye.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEye.vue?vue&type=script&lang=js& | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
@@ -238,2 +242,6 @@ | ||
/* harmony default export */ var VEyevue_type_script_lang_js_ = ({ | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VEye", | ||
@@ -365,3 +373,3 @@ inject: { | ||
/* harmony default export */ var components_VEyevue_type_script_lang_js_ = (VEyevue_type_script_lang_js_); | ||
// CONCATENATED MODULE: ../node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
// CONCATENATED MODULE: ../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
@@ -486,3 +494,3 @@ | ||
/* harmony default export */ var VEye = (VEye_component.exports); | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeManager.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeManager.vue?vue&type=script&lang=js& | ||
function VEyeManagervue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
@@ -520,2 +528,6 @@ | ||
/* harmony default export */ var VEyeManagervue_type_script_lang_js_ = ({ | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VEyeManager", | ||
@@ -916,10 +928,10 @@ emits: ["change", "update:active", "mounted"], | ||
/* harmony default export */ var VEyeManager = (VEyeManager_component.exports); | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75974368-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeContent.vue?vue&type=template&id=2aa7ca4c& | ||
var VEyeContentvue_type_template_id_2aa7ca4c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.eye.api.isActive)?_c('v-primitive',_vm._b({},'v-primitive',{ asTemplate: _vm.asTemplate },false),[_vm._t("default",null,null,{ toggle: _vm.eye.api.toggle })],2):_vm._e()} | ||
var VEyeContentvue_type_template_id_2aa7ca4c_staticRenderFns = [] | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75974368-vue-loader-template"}!../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeContent.vue?vue&type=template&id=139fa69c& | ||
var VEyeContentvue_type_template_id_139fa69c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.eye.api.isActive)?_c('v-primitive',_vm._b({},'v-primitive',{ asTemplate: _vm.asTemplate },false),[_vm._t("default",null,null,{ toggle: _vm.eye.api.toggle })],2):_vm._e()} | ||
var VEyeContentvue_type_template_id_139fa69c_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./src/components/VEyeContent.vue?vue&type=template&id=2aa7ca4c& | ||
// CONCATENATED MODULE: ./src/components/VEyeContent.vue?vue&type=template&id=139fa69c& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeContent.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeContent.vue?vue&type=script&lang=js& | ||
// | ||
@@ -933,2 +945,6 @@ // | ||
/* harmony default export */ var VEyeContentvue_type_script_lang_js_ = ({ | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VEyeContent", | ||
@@ -955,4 +971,4 @@ components: { | ||
components_VEyeContentvue_type_script_lang_js_, | ||
VEyeContentvue_type_template_id_2aa7ca4c_render, | ||
VEyeContentvue_type_template_id_2aa7ca4c_staticRenderFns, | ||
VEyeContentvue_type_template_id_139fa69c_render, | ||
VEyeContentvue_type_template_id_139fa69c_staticRenderFns, | ||
false, | ||
@@ -966,4 +982,4 @@ null, | ||
/* harmony default export */ var VEyeContent = (VEyeContent_component.exports); | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75974368-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeSwitch.vue?vue&type=template&id=652df26a& | ||
var VEyeSwitchvue_type_template_id_652df26a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-primitive',_vm._b({on:{"click":_vm.eye.api.toggle}},'v-primitive',{ | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75974368-vue-loader-template"}!../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeSwitch.vue?vue&type=template&id=4d1caa6e& | ||
var VEyeSwitchvue_type_template_id_4d1caa6e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-primitive',_vm._b({on:{"click":_vm.eye.api.toggle}},'v-primitive',{ | ||
asTemplate: _vm.asTemplate, | ||
@@ -973,8 +989,8 @@ tagName: 'button', | ||
},false),[_vm._t("default",null,null,_vm.eye.api)],2)} | ||
var VEyeSwitchvue_type_template_id_652df26a_staticRenderFns = [] | ||
var VEyeSwitchvue_type_template_id_4d1caa6e_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./src/components/VEyeSwitch.vue?vue&type=template&id=652df26a& | ||
// CONCATENATED MODULE: ./src/components/VEyeSwitch.vue?vue&type=template&id=4d1caa6e& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeSwitch.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeSwitch.vue?vue&type=script&lang=js& | ||
// | ||
@@ -995,2 +1011,6 @@ // | ||
/* harmony default export */ var VEyeSwitchvue_type_script_lang_js_ = ({ | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VEyeSwitch", | ||
@@ -1017,4 +1037,4 @@ components: { | ||
components_VEyeSwitchvue_type_script_lang_js_, | ||
VEyeSwitchvue_type_template_id_652df26a_render, | ||
VEyeSwitchvue_type_template_id_652df26a_staticRenderFns, | ||
VEyeSwitchvue_type_template_id_4d1caa6e_render, | ||
VEyeSwitchvue_type_template_id_4d1caa6e_staticRenderFns, | ||
false, | ||
@@ -1021,0 +1041,0 @@ null, |
@@ -150,3 +150,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
*/ | ||
var version = __webpack_require__("8bbf").version || __webpack_require__("8bbf").version.default; | ||
var version = __webpack_require__("8bbf").version || __webpack_require__("8bbf").default.version; | ||
@@ -209,2 +209,6 @@ var isVue3 = /^3\./.test(version); | ||
var VPrimitive = { | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VPrimitive", | ||
@@ -232,3 +236,3 @@ props: { | ||
}; | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEye.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEye.vue?vue&type=script&lang=js& | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
@@ -247,2 +251,6 @@ | ||
/* harmony default export */ var VEyevue_type_script_lang_js_ = ({ | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VEye", | ||
@@ -374,3 +382,3 @@ inject: { | ||
/* harmony default export */ var components_VEyevue_type_script_lang_js_ = (VEyevue_type_script_lang_js_); | ||
// CONCATENATED MODULE: ../node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
// CONCATENATED MODULE: ../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
@@ -495,3 +503,3 @@ | ||
/* harmony default export */ var VEye = (VEye_component.exports); | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeManager.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeManager.vue?vue&type=script&lang=js& | ||
function VEyeManagervue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
@@ -529,2 +537,6 @@ | ||
/* harmony default export */ var VEyeManagervue_type_script_lang_js_ = ({ | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VEyeManager", | ||
@@ -925,10 +937,10 @@ emits: ["change", "update:active", "mounted"], | ||
/* harmony default export */ var VEyeManager = (VEyeManager_component.exports); | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75974368-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeContent.vue?vue&type=template&id=2aa7ca4c& | ||
var VEyeContentvue_type_template_id_2aa7ca4c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.eye.api.isActive)?_c('v-primitive',_vm._b({},'v-primitive',{ asTemplate: _vm.asTemplate },false),[_vm._t("default",null,null,{ toggle: _vm.eye.api.toggle })],2):_vm._e()} | ||
var VEyeContentvue_type_template_id_2aa7ca4c_staticRenderFns = [] | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75974368-vue-loader-template"}!../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeContent.vue?vue&type=template&id=139fa69c& | ||
var VEyeContentvue_type_template_id_139fa69c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.eye.api.isActive)?_c('v-primitive',_vm._b({},'v-primitive',{ asTemplate: _vm.asTemplate },false),[_vm._t("default",null,null,{ toggle: _vm.eye.api.toggle })],2):_vm._e()} | ||
var VEyeContentvue_type_template_id_139fa69c_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./src/components/VEyeContent.vue?vue&type=template&id=2aa7ca4c& | ||
// CONCATENATED MODULE: ./src/components/VEyeContent.vue?vue&type=template&id=139fa69c& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeContent.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeContent.vue?vue&type=script&lang=js& | ||
// | ||
@@ -942,2 +954,6 @@ // | ||
/* harmony default export */ var VEyeContentvue_type_script_lang_js_ = ({ | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VEyeContent", | ||
@@ -964,4 +980,4 @@ components: { | ||
components_VEyeContentvue_type_script_lang_js_, | ||
VEyeContentvue_type_template_id_2aa7ca4c_render, | ||
VEyeContentvue_type_template_id_2aa7ca4c_staticRenderFns, | ||
VEyeContentvue_type_template_id_139fa69c_render, | ||
VEyeContentvue_type_template_id_139fa69c_staticRenderFns, | ||
false, | ||
@@ -975,4 +991,4 @@ null, | ||
/* harmony default export */ var VEyeContent = (VEyeContent_component.exports); | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75974368-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeSwitch.vue?vue&type=template&id=652df26a& | ||
var VEyeSwitchvue_type_template_id_652df26a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-primitive',_vm._b({on:{"click":_vm.eye.api.toggle}},'v-primitive',{ | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75974368-vue-loader-template"}!../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeSwitch.vue?vue&type=template&id=4d1caa6e& | ||
var VEyeSwitchvue_type_template_id_4d1caa6e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-primitive',_vm._b({on:{"click":_vm.eye.api.toggle}},'v-primitive',{ | ||
asTemplate: _vm.asTemplate, | ||
@@ -982,8 +998,8 @@ tagName: 'button', | ||
},false),[_vm._t("default",null,null,_vm.eye.api)],2)} | ||
var VEyeSwitchvue_type_template_id_652df26a_staticRenderFns = [] | ||
var VEyeSwitchvue_type_template_id_4d1caa6e_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./src/components/VEyeSwitch.vue?vue&type=template&id=652df26a& | ||
// CONCATENATED MODULE: ./src/components/VEyeSwitch.vue?vue&type=template&id=4d1caa6e& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeSwitch.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/VEyeSwitch.vue?vue&type=script&lang=js& | ||
// | ||
@@ -1004,2 +1020,6 @@ // | ||
/* harmony default export */ var VEyeSwitchvue_type_script_lang_js_ = ({ | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VEyeSwitch", | ||
@@ -1026,4 +1046,4 @@ components: { | ||
components_VEyeSwitchvue_type_script_lang_js_, | ||
VEyeSwitchvue_type_template_id_652df26a_render, | ||
VEyeSwitchvue_type_template_id_652df26a_staticRenderFns, | ||
VEyeSwitchvue_type_template_id_4d1caa6e_render, | ||
VEyeSwitchvue_type_template_id_4d1caa6e_staticRenderFns, | ||
false, | ||
@@ -1030,0 +1050,0 @@ null, |
@@ -1,2 +0,2 @@ | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["v-eye"]=t(require("vue")):e["v-eye"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="4447")}({4447:function(e,t,n){"use strict";n.r(t),n.d(t,"VEye",(function(){return P})),n.d(t,"VEyeManager",(function(){return z})),n.d(t,"VEyeContent",(function(){return F})),n.d(t,"VEyeSwitch",(function(){return Z}));var i={};if(n.r(i),n.d(i,"VEye",(function(){return P})),n.d(i,"VEyeManager",(function(){return z})),n.d(i,"VEyeContent",(function(){return F})),n.d(i,"VEyeSwitch",(function(){return Z})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("dc36");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}var u=n("8bbf").version||n("8bbf").version.default,c=/^3\./.test(u),l=function(e){var t=s(e);return t};function s(e){return c?e.$slots:e.$scopedSlots}var d=0;function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"v-eye-",t=++d;return"".concat(e).concat(t)}var p=n("8bbf"),h={type:Boolean,default:!1},m={name:"VPrimitive",props:{asTemplate:h,tagName:{type:String,default:"div"}},render:function(){var e=l(this);return this.asTemplate?e.default():c?Object(p["h"])(this.tagName,e.default()):Object(p["h"])(this.tagName,{on:this.$listeners},e.default())}};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b,_,j={name:"VEye",inject:{manager:{default:null}},emits:["toggle","update:active"],model:{prop:"active",event:"toggle"},props:{asTemplate:h,uid:{type:[String,Number],default:null},active:{type:Boolean,default:!1}},data:function(){return{internalActive:this.active}},computed:{$_uid:function(){return null===this.uid||void 0===this.uid?f():this.uid},$_independent:function(){return!this.manager},$_active:function(){return this.$_independent?this.internalActive:this.manager.getIsActive(this.$_uid)},api:function(){return{isActive:this.$_active,toggle:this.toggle}}},watch:{active:function(e){this.internalActive=e}},mounted:function(){this.$_independent||this.manager.track(this.$_uid,this.$el),this.$_independent||!1===this.active||console.log("\n This eye can't control himself, it's under manager scope.\n The prop has no effect\n ")},beforeDestroy:function(){this.$_independent||this.manager.untrack(this.$_uid)},methods:{toggle:function(){if(this.$_independent)return this.internalActive=!this.internalActive,this.$emit("toggle",this.internalActive),void this.$emit("update:active",this.internalActive);this.manager.toggle(this.$_uid)}},render:function(){var e=this,t={"data-active":this.$_active?"":null,"data-uid":this.$_uid},n=l(this),i=function(){return n.default(y(y({},e.api),{},{attrs:t}))},r={asTemplate:this.asTemplate};return Object(p["h"])(m,y({},c?r:{props:r}),c?function(){return i()}:i())},provide:function(){return{eye:this}}},V=j;function $(e,t,n,i,r,o,a,u){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):r&&(c=u?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var s=l.render;l.render=function(e,t){return c.call(t),s(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}var O=$(V,b,_,!1,null,null,null),P=O.exports;function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return D(e)||T(e)||M(e)||A()}function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M(e,t){if(e){if("string"===typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function T(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function D(e){if(Array.isArray(e))return k(e)}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var I,C,N=function(e){return void 0===e||null===e},W={name:"VEyeManager",emits:["change","update:active","mounted"],model:{prop:"active",event:"change"},props:{asTemplate:h,active:{type:[String,Array,Number]},defaultActive:{type:[String,Array,Number]},mandatory:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},watchPropsWithModelSideEffects:{type:Boolean,default:!1}},data:function(){return{injected:[],injectedElMap:{},modelValueInternal:this.defaultActive,api:{track:this.track,untrack:this.untrack,getIsActive:this.getIsActive,toggle:this.toggle}}},computed:{$_modelValueProxy:{get:function(){return this.active||0===this.active?this.serializeModelValue(this.active):this.serializeModelValue(this.modelValueInternal)},set:function(e){this.syncModelValue(e)}}},watch:{active:function(){this._preventActiveWatcher?this._preventActiveWatcher=!1:this.emitModelValueWithDetails(["change"])},mandatory:{immediate:!0,handler:"execMandatorySideEffects"},multiple:{immediate:!0,handler:"execMultipleSideEffects"}},created:function(){!this.multiple||N(this.active)||Array.isArray(this.active)||N(this.defaultActive)||Array.isArray(this.defaultActive)||console.warn("[v-eye]: when using multiple, active/defaultActive must be an array if provided"),this.mandatory&&N(this.active)&&N(this.defaultActive)&&console.warn("[v-eye]: mandatory mode expects an not nil 'active' or 'defaultActive' value")},mounted:function(){this.emitModelValueWithDetails(["mounted"])},methods:{syncModelValue:function(e){this.modelValueInternal=e,this.emitModelValueWithDetails(["change","update:active"],e),this._preventActiveWatcher=!0},serializeModelValue:function(e){return Array.isArray(e)?e:e||0===e?[e]:[]},deserializeModelValue:function(e){return this.multiple?e:e.length?e[e.length-1]:null},emitModelValueWithDetails:function(e,t){var n=this,i=this.getEventParams(null!==t&&void 0!==t?t:this.$_modelValueProxy),r=i.emitValue,o=i.details;e.forEach((function(e){return n.$emit(e,r,o)}))},getEventDetails:function(e){var t=this;return{elements:e.map((function(e){return t.injectedElMap[e]}))}},getEventParams:function(e){return{emitValue:this.deserializeModelValue(e),details:this.getEventDetails(e)}},execMandatorySideEffects:function(e){this.watchPropsWithModelSideEffects&&e&&!this.$_modelValueProxy.length&&(this.$_modelValueProxy=[this.injected[0]])},execMultipleSideEffects:function(e){this.watchPropsWithModelSideEffects&&(!e&&this.$_modelValueProxy.length>1?this.$_modelValueProxy=this.$_modelValueProxy.slice(-1):this.syncModelValue(this.$_modelValueProxy))},track:function(e,t){this.injected.includes(e)||(this.injected.push(e),c?this.injectedElMap[e]=t:this.$set(this.injectedElMap,e,t))},untrack:function(e){this.injected=this.injected.filter((function(t){return e!==t})),c?delete this.injectedElMap[e]:this.$delete(this.injectedElMap,e),this.getIsActive(e)&&this.deactivate(e,!0)},getIsActive:function(e){return this.$_modelValueProxy.includes(e)},activate:function(e){this.multiple?this.$_modelValueProxy=[].concat(S(this.$_modelValueProxy),[e]):this.$_modelValueProxy=[e]},deactivate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!this.multiple||this.mandatory&&1===this.$_modelValueProxy.length?(t&&this.mandatory&&(this.$_modelValueProxy=this.injected.slice(-1)),this.$_modelValueProxy.length>1?this.$_modelValueProxy=[e]:this.mandatory||(this.$_modelValueProxy=[])):this.$_modelValueProxy=this.$_modelValueProxy.filter((function(t){return t!==e}))},toggle:function(e){var t=this.getIsActive(e);t?this.deactivate(e):this.activate(e)}},render:function(){var e=l(this),t=function(){return e.default()},n={asTemplate:this.asTemplate};return Object(p["h"])(m,E({},c?n:{props:n}),c?function(){return t()}:e.default())},provide:function(){return{manager:this.api}}},B=W,R=$(B,I,C,!1,null,null,null),z=R.exports,H=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.eye.api.isActive?n("v-primitive",e._b({},"v-primitive",{asTemplate:e.asTemplate},!1),[e._t("default",null,null,{toggle:e.eye.api.toggle})],2):e._e()},L=[],U={name:"VEyeContent",components:{VPrimitive:m},inject:["eye"],props:{asTemplate:h}},q=U,X=$(q,H,L,!1,null,null,null),F=X.exports,K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-primitive",e._b({on:{click:e.eye.api.toggle}},"v-primitive",{asTemplate:e.asTemplate,tagName:"button",type:"button"},!1),[e._t("default",null,null,e.eye.api)],2)},G=[],J={name:"VEyeSwitch",components:{VPrimitive:m},inject:["eye"],props:{asTemplate:h}},Q=J,Y=$(Q,K,G,!1,null,null,null),Z=Y.exports,ee={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.installed)for(var n in this.installed=!0,i){var r=n.moduleKey,o=n.component;e.component(t.componentName||r,o)}}};"undefined"!==typeof window&&window.Vue&&window.Vue.use(ee);var te=ee;t["default"]=te},"8bbf":function(t,n){t.exports=e},dc36:function(e,t,n){var i,r,o;(function(n,a){r=[],i=a,o="function"===typeof i?i.apply(t,r):i,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,i,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,u=o.exec(p.stack)||a.exec(p.stack),c=u&&u[1]||!1,l=u&&u[2]||!1,s=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");c===s&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var f=0;f<d.length;f++){if("interactive"===d[f].readyState)return d[f];if(d[f].src===c)return d[f];if(c===s&&d[f].innerHTML&&d[f].innerHTML.trim()===r)return d[f]}return null}}return e}))}})})); | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["v-eye"]=t(require("vue")):e["v-eye"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="4447")}({4447:function(e,t,n){"use strict";n.r(t),n.d(t,"VEye",(function(){return P})),n.d(t,"VEyeManager",(function(){return z})),n.d(t,"VEyeContent",(function(){return F})),n.d(t,"VEyeSwitch",(function(){return Z}));var i={};if(n.r(i),n.d(i,"VEye",(function(){return P})),n.d(i,"VEyeManager",(function(){return z})),n.d(i,"VEyeContent",(function(){return F})),n.d(i,"VEyeSwitch",(function(){return Z})),"undefined"!==typeof window){var r=window.document.currentScript,o=n("dc36");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}var u=n("8bbf").version||n("8bbf").default.version,c=/^3\./.test(u),l=function(e){var t=s(e);return t};function s(e){return c?e.$slots:e.$scopedSlots}var d=0;function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"v-eye-",t=++d;return"".concat(e).concat(t)}var p=n("8bbf"),h={type:Boolean,default:!1},m={compatConfig:{MODE:3},name:"VPrimitive",props:{asTemplate:h,tagName:{type:String,default:"div"}},render:function(){var e=l(this);return this.asTemplate?e.default():c?Object(p["h"])(this.tagName,e.default()):Object(p["h"])(this.tagName,{on:this.$listeners},e.default())}};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b,_,j={compatConfig:{MODE:3},name:"VEye",inject:{manager:{default:null}},emits:["toggle","update:active"],model:{prop:"active",event:"toggle"},props:{asTemplate:h,uid:{type:[String,Number],default:null},active:{type:Boolean,default:!1}},data:function(){return{internalActive:this.active}},computed:{$_uid:function(){return null===this.uid||void 0===this.uid?f():this.uid},$_independent:function(){return!this.manager},$_active:function(){return this.$_independent?this.internalActive:this.manager.getIsActive(this.$_uid)},api:function(){return{isActive:this.$_active,toggle:this.toggle}}},watch:{active:function(e){this.internalActive=e}},mounted:function(){this.$_independent||this.manager.track(this.$_uid,this.$el),this.$_independent||!1===this.active||console.log("\n This eye can't control himself, it's under manager scope.\n The prop has no effect\n ")},beforeDestroy:function(){this.$_independent||this.manager.untrack(this.$_uid)},methods:{toggle:function(){if(this.$_independent)return this.internalActive=!this.internalActive,this.$emit("toggle",this.internalActive),void this.$emit("update:active",this.internalActive);this.manager.toggle(this.$_uid)}},render:function(){var e=this,t={"data-active":this.$_active?"":null,"data-uid":this.$_uid},n=l(this),i=function(){return n.default(y(y({},e.api),{},{attrs:t}))},r={asTemplate:this.asTemplate};return Object(p["h"])(m,y({},c?r:{props:r}),c?function(){return i()}:i())},provide:function(){return{eye:this}}},O=j;function V(e,t,n,i,r,o,a,u){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):r&&(c=u?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var s=l.render;l.render=function(e,t){return c.call(t),s(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}var $=V(O,b,_,!1,null,null,null),P=$.exports;function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return D(e)||T(e)||A(e)||M()}function M(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(e,t){if(e){if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function T(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function D(e){if(Array.isArray(e))return C(e)}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var k,I,N=function(e){return void 0===e||null===e},W={compatConfig:{MODE:3},name:"VEyeManager",emits:["change","update:active","mounted"],model:{prop:"active",event:"change"},props:{asTemplate:h,active:{type:[String,Array,Number]},defaultActive:{type:[String,Array,Number]},mandatory:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},watchPropsWithModelSideEffects:{type:Boolean,default:!1}},data:function(){return{injected:[],injectedElMap:{},modelValueInternal:this.defaultActive,api:{track:this.track,untrack:this.untrack,getIsActive:this.getIsActive,toggle:this.toggle}}},computed:{$_modelValueProxy:{get:function(){return this.active||0===this.active?this.serializeModelValue(this.active):this.serializeModelValue(this.modelValueInternal)},set:function(e){this.syncModelValue(e)}}},watch:{active:function(){this._preventActiveWatcher?this._preventActiveWatcher=!1:this.emitModelValueWithDetails(["change"])},mandatory:{immediate:!0,handler:"execMandatorySideEffects"},multiple:{immediate:!0,handler:"execMultipleSideEffects"}},created:function(){!this.multiple||N(this.active)||Array.isArray(this.active)||N(this.defaultActive)||Array.isArray(this.defaultActive)||console.warn("[v-eye]: when using multiple, active/defaultActive must be an array if provided"),this.mandatory&&N(this.active)&&N(this.defaultActive)&&console.warn("[v-eye]: mandatory mode expects an not nil 'active' or 'defaultActive' value")},mounted:function(){this.emitModelValueWithDetails(["mounted"])},methods:{syncModelValue:function(e){this.modelValueInternal=e,this.emitModelValueWithDetails(["change","update:active"],e),this._preventActiveWatcher=!0},serializeModelValue:function(e){return Array.isArray(e)?e:e||0===e?[e]:[]},deserializeModelValue:function(e){return this.multiple?e:e.length?e[e.length-1]:null},emitModelValueWithDetails:function(e,t){var n=this,i=this.getEventParams(null!==t&&void 0!==t?t:this.$_modelValueProxy),r=i.emitValue,o=i.details;e.forEach((function(e){return n.$emit(e,r,o)}))},getEventDetails:function(e){var t=this;return{elements:e.map((function(e){return t.injectedElMap[e]}))}},getEventParams:function(e){return{emitValue:this.deserializeModelValue(e),details:this.getEventDetails(e)}},execMandatorySideEffects:function(e){this.watchPropsWithModelSideEffects&&e&&!this.$_modelValueProxy.length&&(this.$_modelValueProxy=[this.injected[0]])},execMultipleSideEffects:function(e){this.watchPropsWithModelSideEffects&&(!e&&this.$_modelValueProxy.length>1?this.$_modelValueProxy=this.$_modelValueProxy.slice(-1):this.syncModelValue(this.$_modelValueProxy))},track:function(e,t){this.injected.includes(e)||(this.injected.push(e),c?this.injectedElMap[e]=t:this.$set(this.injectedElMap,e,t))},untrack:function(e){this.injected=this.injected.filter((function(t){return e!==t})),c?delete this.injectedElMap[e]:this.$delete(this.injectedElMap,e),this.getIsActive(e)&&this.deactivate(e,!0)},getIsActive:function(e){return this.$_modelValueProxy.includes(e)},activate:function(e){this.multiple?this.$_modelValueProxy=[].concat(S(this.$_modelValueProxy),[e]):this.$_modelValueProxy=[e]},deactivate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!this.multiple||this.mandatory&&1===this.$_modelValueProxy.length?(t&&this.mandatory&&(this.$_modelValueProxy=this.injected.slice(-1)),this.$_modelValueProxy.length>1?this.$_modelValueProxy=[e]:this.mandatory||(this.$_modelValueProxy=[])):this.$_modelValueProxy=this.$_modelValueProxy.filter((function(t){return t!==e}))},toggle:function(e){var t=this.getIsActive(e);t?this.deactivate(e):this.activate(e)}},render:function(){var e=l(this),t=function(){return e.default()},n={asTemplate:this.asTemplate};return Object(p["h"])(m,x({},c?n:{props:n}),c?function(){return t()}:e.default())},provide:function(){return{manager:this.api}}},B=W,R=V(B,k,I,!1,null,null,null),z=R.exports,H=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.eye.api.isActive?n("v-primitive",e._b({},"v-primitive",{asTemplate:e.asTemplate},!1),[e._t("default",null,null,{toggle:e.eye.api.toggle})],2):e._e()},L=[],U={compatConfig:{MODE:3},name:"VEyeContent",components:{VPrimitive:m},inject:["eye"],props:{asTemplate:h}},q=U,X=V(q,H,L,!1,null,null,null),F=X.exports,K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-primitive",e._b({on:{click:e.eye.api.toggle}},"v-primitive",{asTemplate:e.asTemplate,tagName:"button",type:"button"},!1),[e._t("default",null,null,e.eye.api)],2)},G=[],J={compatConfig:{MODE:3},name:"VEyeSwitch",components:{VPrimitive:m},inject:["eye"],props:{asTemplate:h}},Q=J,Y=V(Q,K,G,!1,null,null,null),Z=Y.exports,ee={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.installed)for(var n in this.installed=!0,i){var r=n.moduleKey,o=n.component;e.component(t.componentName||r,o)}}};"undefined"!==typeof window&&window.Vue&&window.Vue.use(ee);var te=ee;t["default"]=te},"8bbf":function(t,n){t.exports=e},dc36:function(e,t,n){var i,r,o;(function(n,a){r=[],i=a,o="function"===typeof i?i.apply(t,r):i,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,i,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,u=o.exec(p.stack)||a.exec(p.stack),c=u&&u[1]||!1,l=u&&u[2]||!1,s=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");c===s&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var f=0;f<d.length;f++){if("interactive"===d[f].readyState)return d[f];if(d[f].src===c)return d[f];if(c===s&&d[f].innerHTML&&d[f].innerHTML.trim()===r)return d[f]}return null}}return e}))}})})); | ||
//# sourceMappingURL=v-eye.umd.min.js.map |
{ | ||
"name": "v-eye", | ||
"version": "0.4.0-alpha.0", | ||
"version": "0.4.1-alpha.0", | ||
"license": "MIT", | ||
@@ -54,3 +54,4 @@ "repository": "https://github.com/renatodeleao/v-eye", | ||
] | ||
} | ||
}, | ||
"gitHead": "9f5387edeaa8542a5ca8237af3c1bde2e730c7e0" | ||
} |
@@ -22,2 +22,5 @@ import { isVue3, useSlots } from "../utils"; | ||
export const VPrimitive = { | ||
compatConfig: { | ||
MODE: 3 // opt-in to Vue 3 if in compat mode | ||
}, | ||
name: "VPrimitive", | ||
@@ -24,0 +27,0 @@ props: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
261837
18
2169