@opentiny/vue-switch
Advanced tools
Comparing version 2.13.0 to 2.14.0
@@ -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", |
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
26854
717
4
+ Added@opentiny/vue-theme@~3.14.0
+ Added@opentiny/vue-common@2.14.0(transitive)
+ Added@opentiny/vue-locale@2.14.0(transitive)
+ Added@opentiny/vue-renderless@3.14.1(transitive)
+ Added@opentiny/vue-theme@3.14.1(transitive)
+ Added@opentiny/vue-theme-mobile@3.14.2(transitive)
+ Added@vue/composition-api@1.7.2(transitive)
+ Addedvue@2.6.14(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@opentiny/vue-common@2.13.1(transitive)
- Removed@opentiny/vue-locale@2.13.0(transitive)
- Removed@opentiny/vue-renderless@3.13.2(transitive)
- Removed@opentiny/vue-theme@3.13.3(transitive)
- Removed@opentiny/vue-theme-mobile@3.13.0(transitive)
- Removed@vue/compiler-sfc@2.7.16(transitive)
- Removed@vue/composition-api@1.2.4(transitive)
- Removedcsstype@3.1.3(transitive)
- Removednanoid@3.3.8(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.4.49(transitive)
- Removedprettier@2.8.8(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedtslib@2.8.1(transitive)
- Removedvue@2.7.16(transitive)
Updated@opentiny/vue-common@~2.14.0