Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentiny/vue-switch

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-switch - npm Package Compare versions

Comparing version 2.13.0 to 2.14.0

2

lib/index.js

@@ -103,3 +103,3 @@ function _extends() {

});
var version = "2.13.0";
var version = "2.14.0";
Switch.model = {

@@ -106,0 +106,0 @@ prop: "modelValue",

@@ -152,5 +152,5 @@ import { renderless, api } from "@opentiny/vue-renderless/switch/vue";

}, [_vm.state.currentValue === _vm.trueValue ? _vm._t("open", function() {
return [_vm._v("A")];
return [_vm._v(_vm._s(_vm.t("yes")))];
}) : _vm._e(), _vm.state.currentValue === _vm.falseValue ? _vm._t("close", function() {
return [_vm._v("B")];
return [_vm._v(_vm._s(_vm.t("no")))];
}) : _vm._e()], 2) : _vm._e(), _vm.types === "icon" ? _c("div", {

@@ -157,0 +157,0 @@ attrs: {

@@ -74,3 +74,3 @@ import { renderless, api } from "@opentiny/vue-renderless/switch/vue";

var _c = _vm._self._c || _h;
return _c("span", {
return !_vm.state.isDisplayOnly ? _c("span", {
class: [_vm.state.wrapClasses, _vm.state.showText ? "tiny-switch__text" : ""],

@@ -82,7 +82,11 @@ attrs: {

"click": _vm.toggle,
"keydown": function keydown($event) {
"keydown": [function($event) {
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"]))
return null;
return _vm.toggle.apply(null, arguments);
}
}, function($event) {
if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter"))
return null;
return _vm.toggle.apply(null, arguments);
}]
}

@@ -95,3 +99,7 @@ }, [_c("span", {

return [_vm._v("OFF")];
}) : _vm._e()], 2) : _vm._e()])]);
}) : _vm._e()], 2) : _vm._e()])]) : _c("span", [_vm.state.currentValue === _vm.trueValue ? _vm._t("open", function() {
return [_vm._v(_vm._s(_vm.t("yes")))];
}) : _vm._e(), _vm.state.currentValue === _vm.falseValue ? _vm._t("close", function() {
return [_vm._v(_vm._s(_vm.t("no")))];
}) : _vm._e()], 2);
};

@@ -98,0 +106,0 @@ var staticRenderFns = [];

{
"name": "@opentiny/vue-switch",
"version": "2.13.0",
"version": "2.14.0",
"description": "",

@@ -10,4 +10,6 @@ "main": "./lib/index.js",

"dependencies": {
"@opentiny/vue-renderless": "~3.13.0",
"@opentiny/vue-common": "~2.13.0"
"@opentiny/vue-renderless": "~3.14.0",
"@opentiny/vue-common": "~2.14.0",
"@opentiny/vue-theme-mobile": "~3.14.0",
"@opentiny/vue-theme": "~3.14.0"
},

@@ -14,0 +16,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc