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 3.14.0 to 3.15.0

2

lib/index.js

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

});
var version = "3.14.0";
var version = "3.15.0";
Switch.model = {

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

@@ -1,9 +0,10 @@

import { renderless, api } from "@opentiny/vue-renderless/switch/vue";
import { defineComponent, props, setup as _setup } from "@opentiny/vue-common";
import { openBlock, createElementBlock, normalizeClass, withKeys, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from "vue";
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
import { renderless, api } from '@opentiny/vue-renderless/switch/vue';
import { defineComponent, props, setup } from '@opentiny/vue-common';
import { openBlock, createElementBlock, normalizeClass, withKeys, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it)
return (it = it.call(o)).next.bind(it);
if (Array.isArray(o) || (it = _unsupportedIterableToArray_tiny(o)) || allowArrayLike && o && typeof o.length === "number") {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it)

@@ -20,7 +21,7 @@ o = it;

}
function _unsupportedIterableToArray_tiny(o, minLen) {
function _unsupportedIterableToArray(o, minLen) {
if (!o)
return;
if (typeof o === "string")
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);

@@ -32,5 +33,5 @@ if (n === "Object" && o.constructor)

if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray_tiny(arr, len) {
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length)

@@ -44,3 +45,3 @@ len = arr.length;

var target = sfc.__vccOpts || sfc;
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) {
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];

@@ -103,4 +104,4 @@ target[key] = val;

props: [].concat(props, ["modelValue", "trueValue", "falseValue", "disabled", "size", "tabindex", "types"]),
setup: function setup(props2, context) {
return _setup({
setup: function setup$1(props2, context) {
return setup({
props: props2,

@@ -287,4 +288,3 @@ context,

var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
mobileFirst as default
};
export { mobileFirst as default };

@@ -1,10 +0,11 @@

import { renderless, api } from "@opentiny/vue-renderless/switch/vue";
import { defineComponent, props, setup as _setup } from "@opentiny/vue-common";
import "@opentiny/vue-theme-mobile/switch/index.css";
import { openBlock, createElementBlock, normalizeClass, withKeys, createCommentVNode, createElementVNode } from "vue";
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
import { renderless, api } from '@opentiny/vue-renderless/switch/vue';
import { defineComponent, props, setup } from '@opentiny/vue-common';
import '@opentiny/vue-theme-mobile/switch/index.css';
import { openBlock, createElementBlock, normalizeClass, withKeys, createCommentVNode, createElementVNode } from 'vue';
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it)
return (it = it.call(o)).next.bind(it);
if (Array.isArray(o) || (it = _unsupportedIterableToArray_tiny(o)) || allowArrayLike && o && typeof o.length === "number") {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it)

@@ -21,7 +22,7 @@ o = it;

}
function _unsupportedIterableToArray_tiny(o, minLen) {
function _unsupportedIterableToArray(o, minLen) {
if (!o)
return;
if (typeof o === "string")
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);

@@ -33,5 +34,5 @@ if (n === "Object" && o.constructor)

if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray_tiny(arr, len) {
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length)

@@ -45,3 +46,3 @@ len = arr.length;

var target = sfc.__vccOpts || sfc;
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) {
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];

@@ -55,4 +56,4 @@ target[key] = val;

props: [].concat(props, ["modelValue", "trueValue", "falseValue", "disabled", "loading", "mini"]),
setup: function setup(props2, context) {
return _setup({
setup: function setup$1(props2, context) {
return setup({
props: props2,

@@ -94,4 +95,3 @@ context,

var mobile = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
mobile as default
};
export { mobile as default };

@@ -1,10 +0,11 @@

import { renderless, api } from "@opentiny/vue-renderless/switch/vue";
import { defineComponent, props, setup as _setup } from "@opentiny/vue-common";
import "@opentiny/vue-theme/switch/index.css";
import { openBlock, createElementBlock, normalizeClass, withKeys, createElementVNode, renderSlot, createTextVNode, createCommentVNode, toDisplayString } from "vue";
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
import { renderless, api } from '@opentiny/vue-renderless/switch/vue';
import { defineComponent, props, setup } from '@opentiny/vue-common';
import '@opentiny/vue-theme/switch/index.css';
import { openBlock, createElementBlock, normalizeClass, withKeys, createElementVNode, renderSlot, createTextVNode, createCommentVNode, toDisplayString } from 'vue';
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it)
return (it = it.call(o)).next.bind(it);
if (Array.isArray(o) || (it = _unsupportedIterableToArray_tiny(o)) || allowArrayLike && o && typeof o.length === "number") {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it)

@@ -21,7 +22,7 @@ o = it;

}
function _unsupportedIterableToArray_tiny(o, minLen) {
function _unsupportedIterableToArray(o, minLen) {
if (!o)
return;
if (typeof o === "string")
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);

@@ -33,5 +34,5 @@ if (n === "Object" && o.constructor)

if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return _arrayLikeToArray_tiny(o, minLen);
return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray_tiny(arr, len) {
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length)

@@ -45,3 +46,3 @@ len = arr.length;

var target = sfc.__vccOpts || sfc;
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) {
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];

@@ -56,4 +57,4 @@ target[key] = val;

props: [].concat(props, ["modelValue", "trueValue", "falseValue", "disabled", "mini", "tabindex", "showText", "beforeChange", "displayOnly"]),
setup: function setup(props2, context) {
return _setup({
setup: function setup$1(props2, context) {
return setup({
props: props2,

@@ -121,4 +122,3 @@ context,

var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
pc as default
};
export { pc as default };
{
"name": "@opentiny/vue-switch",
"version": "3.14.0",
"version": "3.15.0",
"description": "",

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

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

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

@@ -30,3 +30,3 @@ export declare const $constants: {

falseValue: {
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: boolean;

@@ -39,3 +39,3 @@ };

modelValue: {
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: boolean;

@@ -50,3 +50,3 @@ };

trueValue: {
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: boolean;

@@ -93,3 +93,3 @@ };

falseValue: {
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: boolean;

@@ -102,3 +102,3 @@ };

modelValue: {
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: boolean;

@@ -113,3 +113,3 @@ };

trueValue: {
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: boolean;

@@ -157,3 +157,3 @@ };

falseValue: {
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: boolean;

@@ -166,3 +166,3 @@ };

modelValue: {
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: boolean;

@@ -177,3 +177,3 @@ };

trueValue: {
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: boolean;

@@ -206,5 +206,5 @@ };

showText: boolean;
trueValue: string | number | boolean;
falseValue: string | number | boolean;
trueValue: string | number | boolean;
}, {}>;
export default _default;

@@ -13,5 +13,5 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{

tabindex?: any;
trueValue?: any;
falseValue?: any;
types?: any;
falseValue?: any;
trueValue?: any;
}>, {

@@ -37,5 +37,5 @@ t: (this: any, path: any, options?: any) => any;

tabindex?: any;
trueValue?: any;
falseValue?: any;
types?: any;
falseValue?: any;
trueValue?: any;
}>>> & {

@@ -56,6 +56,6 @@ onChange?: ((...args: any[]) => any) | undefined;

readonly tabindex?: any;
readonly trueValue?: any;
readonly falseValue?: any;
readonly types?: any;
readonly falseValue?: any;
readonly trueValue?: any;
}, {}>;
export default _default;

@@ -13,4 +13,4 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{

loading?: any;
trueValue?: any;
falseValue?: any;
trueValue?: any;
}>, {

@@ -36,4 +36,4 @@ t: (this: any, path: any, options?: any) => any;

loading?: any;
trueValue?: any;
falseValue?: any;
trueValue?: any;
}>>>, {

@@ -51,5 +51,5 @@ readonly disabled?: any;

readonly loading?: any;
readonly trueValue?: any;
readonly falseValue?: any;
readonly trueValue?: any;
}, {}>;
export default _default;

@@ -16,4 +16,4 @@ import type { ISwitchApi } from '@opentiny/vue-renderless/types/switch.type';

showText?: any;
trueValue?: any;
falseValue?: any;
trueValue?: any;
beforeChange?: any;

@@ -34,4 +34,4 @@ }>, ISwitchApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{

showText?: any;
trueValue?: any;
falseValue?: any;
trueValue?: any;
beforeChange?: any;

@@ -55,6 +55,6 @@ }>>> & {

readonly showText?: any;
readonly trueValue?: any;
readonly falseValue?: any;
readonly trueValue?: any;
readonly beforeChange?: any;
}, {}>;
export default _default;
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