@opentiny/vue-checkbox
Advanced tools
Comparing version 3.16.0 to 3.17.0
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function(n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) | ||
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -109,3 +105,3 @@ import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common"; | ||
}); | ||
var version = "3.16.0"; | ||
var version = "3.17.0"; | ||
Checkbox.model = { | ||
@@ -112,0 +108,0 @@ prop: "modelValue", |
@@ -6,14 +6,11 @@ import { renderless, api } from '@opentiny/vue-renderless/checkbox/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(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) | ||
o = it; | ||
var i = 0; | ||
function _createForOfIteratorHelperLoose(r, e) { | ||
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (t) | ||
return (t = t.call(r)).next.bind(t); | ||
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { | ||
t && (r = t); | ||
var o = 0; | ||
return function() { | ||
if (i >= o.length) | ||
return { done: true }; | ||
return { done: false, value: o[i++] }; | ||
return o >= r.length ? { done: true } : { done: false, value: r[o++] }; | ||
}; | ||
@@ -23,21 +20,15 @@ } | ||
} | ||
function _unsupportedIterableToArray(o, minLen) { | ||
if (!o) | ||
return; | ||
if (typeof o === "string") | ||
return _arrayLikeToArray(o, minLen); | ||
var n = Object.prototype.toString.call(o).slice(8, -1); | ||
if (n === "Object" && o.constructor) | ||
n = o.constructor.name; | ||
if (n === "Map" || n === "Set") | ||
return Array.from(o); | ||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) | ||
return _arrayLikeToArray(o, minLen); | ||
function _unsupportedIterableToArray(r, a) { | ||
if (r) { | ||
if ("string" == typeof r) | ||
return _arrayLikeToArray(r, a); | ||
var t = {}.toString.call(r).slice(8, -1); | ||
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; | ||
} | ||
} | ||
function _arrayLikeToArray(arr, len) { | ||
if (len == null || len > arr.length) | ||
len = arr.length; | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) | ||
arr2[i] = arr[i]; | ||
return arr2; | ||
function _arrayLikeToArray(r, a) { | ||
(null == a || a > r.length) && (a = r.length); | ||
for (var e = 0, n = Array(a); e < a; e++) | ||
n[e] = r[e]; | ||
return n; | ||
} | ||
@@ -44,0 +35,0 @@ var _export_sfc = function _export_sfc2(sfc, props) { |
@@ -6,14 +6,11 @@ import { renderless, api } from '@opentiny/vue-renderless/checkbox/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(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) | ||
o = it; | ||
var i = 0; | ||
function _createForOfIteratorHelperLoose(r, e) { | ||
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (t) | ||
return (t = t.call(r)).next.bind(t); | ||
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { | ||
t && (r = t); | ||
var o = 0; | ||
return function() { | ||
if (i >= o.length) | ||
return { done: true }; | ||
return { done: false, value: o[i++] }; | ||
return o >= r.length ? { done: true } : { done: false, value: r[o++] }; | ||
}; | ||
@@ -23,21 +20,15 @@ } | ||
} | ||
function _unsupportedIterableToArray(o, minLen) { | ||
if (!o) | ||
return; | ||
if (typeof o === "string") | ||
return _arrayLikeToArray(o, minLen); | ||
var n = Object.prototype.toString.call(o).slice(8, -1); | ||
if (n === "Object" && o.constructor) | ||
n = o.constructor.name; | ||
if (n === "Map" || n === "Set") | ||
return Array.from(o); | ||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) | ||
return _arrayLikeToArray(o, minLen); | ||
function _unsupportedIterableToArray(r, a) { | ||
if (r) { | ||
if ("string" == typeof r) | ||
return _arrayLikeToArray(r, a); | ||
var t = {}.toString.call(r).slice(8, -1); | ||
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; | ||
} | ||
} | ||
function _arrayLikeToArray(arr, len) { | ||
if (len == null || len > arr.length) | ||
len = arr.length; | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) | ||
arr2[i] = arr[i]; | ||
return arr2; | ||
function _arrayLikeToArray(r, a) { | ||
(null == a || a > r.length) && (a = r.length); | ||
for (var e = 0, n = Array(a); e < a; e++) | ||
n[e] = r[e]; | ||
return n; | ||
} | ||
@@ -44,0 +35,0 @@ var _export_sfc = function _export_sfc2(sfc, props) { |
104
lib/pc.js
@@ -5,17 +5,14 @@ import { renderless, api } from '@opentiny/vue-renderless/checkbox/vue'; | ||
import { iconHalfselect, iconCheckedSur, iconCheck } from '@opentiny/vue-icon'; | ||
import Tooltip from '@opentiny/vue-tooltip'; | ||
import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, withDirectives, withModifiers, vModelCheckbox, createBlock, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode } from 'vue'; | ||
import { AutoTip } from '@opentiny/vue-directive'; | ||
import { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, withDirectives, withModifiers, vModelCheckbox, createBlock, 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(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) | ||
o = it; | ||
var i = 0; | ||
function _createForOfIteratorHelperLoose(r, e) { | ||
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (t) | ||
return (t = t.call(r)).next.bind(t); | ||
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { | ||
t && (r = t); | ||
var o = 0; | ||
return function() { | ||
if (i >= o.length) | ||
return { done: true }; | ||
return { done: false, value: o[i++] }; | ||
return o >= r.length ? { done: true } : { done: false, value: r[o++] }; | ||
}; | ||
@@ -25,21 +22,15 @@ } | ||
} | ||
function _unsupportedIterableToArray(o, minLen) { | ||
if (!o) | ||
return; | ||
if (typeof o === "string") | ||
return _arrayLikeToArray(o, minLen); | ||
var n = Object.prototype.toString.call(o).slice(8, -1); | ||
if (n === "Object" && o.constructor) | ||
n = o.constructor.name; | ||
if (n === "Map" || n === "Set") | ||
return Array.from(o); | ||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) | ||
return _arrayLikeToArray(o, minLen); | ||
function _unsupportedIterableToArray(r, a) { | ||
if (r) { | ||
if ("string" == typeof r) | ||
return _arrayLikeToArray(r, a); | ||
var t = {}.toString.call(r).slice(8, -1); | ||
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; | ||
} | ||
} | ||
function _arrayLikeToArray(arr, len) { | ||
if (len == null || len > arr.length) | ||
len = arr.length; | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) | ||
arr2[i] = arr[i]; | ||
return arr2; | ||
function _arrayLikeToArray(r, a) { | ||
(null == a || a > r.length) && (a = r.length); | ||
for (var e = 0, n = Array(a); e < a; e++) | ||
n[e] = r[e]; | ||
return n; | ||
} | ||
@@ -58,2 +49,5 @@ var _export_sfc = function _export_sfc2(sfc, props) { | ||
emits: ["update:modelValue", "change", "complete"], | ||
directives: { | ||
AutoTip | ||
}, | ||
props: [].concat(props, ["modelValue", "text", "events", "label", "indeterminate", "disabled", "checked", "name", "trueLabel", "falseLabel", "id", "controls", "size", "border", "validateEvent", "displayOnly", "shape", "tabindex"]), | ||
@@ -63,4 +57,3 @@ components: { | ||
IconCheckedSur: iconCheckedSur(), | ||
IconCheck: iconCheck(), | ||
TinyTooltip: Tooltip | ||
IconCheck: iconCheck() | ||
}, | ||
@@ -83,2 +76,6 @@ setup: function setup$1(props2, context) { | ||
}; | ||
var _hoisted_6 = { | ||
key: 0, | ||
class: "tiny-checkbox__label tiny-checkbox-display-only" | ||
}; | ||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | ||
@@ -88,3 +85,3 @@ var _component_icon_halfselect = resolveComponent("icon-halfselect"); | ||
var _component_icon_check = resolveComponent("icon-check"); | ||
var _component_tiny_tooltip = resolveComponent("tiny-tooltip"); | ||
var _directive_auto_tip = resolveDirective("auto-tip"); | ||
return openBlock(), createElementBlock("label", mergeProps({ | ||
@@ -171,34 +168,9 @@ class: ["tiny-checkbox", [_ctx.border && _ctx.state.checkboxSize ? "tiny-checkbox--" + _ctx.state.checkboxSize : "", { | ||
class: "tiny-svg-size icon-check" | ||
}))])], 10, _hoisted_2), _ctx.slots.default && _ctx.slots.default() || _ctx.state.isShowText ? (openBlock(), createElementBlock( | ||
"span", | ||
{ | ||
key: 0, | ||
class: "tiny-checkbox__label tiny-checkbox-display-only", | ||
onMouseenter: _cache[11] || (_cache[11] = function() { | ||
return _ctx.handleLabelMouseenter && _ctx.handleLabelMouseenter.apply(_ctx, arguments); | ||
}), | ||
onMouseleave: _cache[12] || (_cache[12] = function() { | ||
return _ctx.handleMouseleave && _ctx.handleMouseleave.apply(_ctx, arguments); | ||
}) | ||
}, | ||
[renderSlot(_ctx.$slots, "default", {}, function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.state.showText), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
}), createVNode(_component_tiny_tooltip, { | ||
ref: "tooltip", | ||
modelValue: _ctx.state.tooltipVisible, | ||
"onUpdate:modelValue": _cache[10] || (_cache[10] = function($event) { | ||
return _ctx.state.tooltipVisible = $event; | ||
}), | ||
manual: true, | ||
effect: "light", | ||
content: _ctx.state.displayedValue, | ||
placement: "top" | ||
}, null, 8, ["modelValue", "content"])], | ||
32 | ||
/* NEED_HYDRATION */ | ||
)) : createCommentVNode("v-if", true)], 16, _hoisted_1); | ||
}))])], 10, _hoisted_2), _ctx.slots.default && _ctx.slots.default() || _ctx.state.isShowText ? withDirectives((openBlock(), createElementBlock("span", _hoisted_6, [renderSlot(_ctx.$slots, "default", {}, function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.state.showText), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
})])), [[_directive_auto_tip]]) : createCommentVNode("v-if", true)], 16, _hoisted_1); | ||
} | ||
@@ -205,0 +177,0 @@ var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); |
{ | ||
"name": "@opentiny/vue-checkbox", | ||
"version": "3.16.0", | ||
"version": "3.17.0", | ||
"description": "", | ||
@@ -10,8 +10,8 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-common": "~3.16.0", | ||
"@opentiny/vue-renderless": "~3.16.0", | ||
"@opentiny/vue-tooltip": "~3.16.0", | ||
"@opentiny/vue-icon": "~3.16.0", | ||
"@opentiny/vue-theme-mobile": "~3.16.0", | ||
"@opentiny/vue-theme": "~3.16.0" | ||
"@opentiny/vue-common": "~3.17.0", | ||
"@opentiny/vue-renderless": "~3.17.0", | ||
"@opentiny/vue-directive": "~3.17.0", | ||
"@opentiny/vue-icon": "~3.17.0", | ||
"@opentiny/vue-theme-mobile": "~3.17.0", | ||
"@opentiny/vue-theme": "~3.17.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "license": "MIT", |
@@ -196,6 +196,6 @@ import type { PropType } from '@opentiny/vue-common'; | ||
border: boolean; | ||
events: Record<string, any>; | ||
validateEvent: boolean; | ||
displayOnly: boolean; | ||
shape: string; | ||
events: Record<string, any>; | ||
checked: boolean; | ||
@@ -202,0 +202,0 @@ indeterminate: boolean; |
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
name?: any; | ||
label?: any; | ||
disabled?: any; | ||
text?: any; | ||
label?: any; | ||
size?: any; | ||
disabled?: any; | ||
tiny_mode?: any; | ||
@@ -18,5 +18,5 @@ tiny_mode_root?: any; | ||
customClass?: any; | ||
events?: any; | ||
validateEvent?: any; | ||
displayOnly?: any; | ||
events?: any; | ||
checked?: any; | ||
@@ -37,6 +37,6 @@ indeterminate?: any; | ||
name?: any; | ||
label?: any; | ||
disabled?: any; | ||
text?: any; | ||
label?: any; | ||
size?: any; | ||
disabled?: any; | ||
tiny_mode?: any; | ||
@@ -53,5 +53,5 @@ tiny_mode_root?: any; | ||
customClass?: any; | ||
events?: any; | ||
validateEvent?: any; | ||
displayOnly?: any; | ||
events?: any; | ||
checked?: any; | ||
@@ -68,6 +68,6 @@ indeterminate?: any; | ||
readonly name?: any; | ||
readonly label?: any; | ||
readonly disabled?: any; | ||
readonly text?: any; | ||
readonly label?: any; | ||
readonly size?: any; | ||
readonly disabled?: any; | ||
readonly tiny_mode?: any; | ||
@@ -84,5 +84,5 @@ readonly tiny_mode_root?: any; | ||
readonly customClass?: any; | ||
readonly events?: any; | ||
readonly validateEvent?: any; | ||
readonly displayOnly?: any; | ||
readonly events?: any; | ||
readonly checked?: any; | ||
@@ -89,0 +89,0 @@ readonly indeterminate?: any; |
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
name?: any; | ||
text?: any; | ||
label?: any; | ||
disabled?: any; | ||
text?: any; | ||
tiny_mode?: any; | ||
@@ -31,5 +31,5 @@ tiny_mode_root?: any; | ||
name?: any; | ||
text?: any; | ||
label?: any; | ||
disabled?: any; | ||
text?: any; | ||
tiny_mode?: any; | ||
@@ -57,5 +57,5 @@ tiny_mode_root?: any; | ||
readonly name?: any; | ||
readonly text?: any; | ||
readonly label?: any; | ||
readonly disabled?: any; | ||
readonly text?: any; | ||
readonly tiny_mode?: any; | ||
@@ -62,0 +62,0 @@ readonly tiny_mode_root?: any; |
import type { ICheckboxApi } from '@opentiny/vue-renderless/types/checkbox.type'; | ||
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{ | ||
name?: any; | ||
label?: any; | ||
disabled?: any; | ||
text?: any; | ||
label?: any; | ||
size?: any; | ||
disabled?: any; | ||
tiny_mode?: any; | ||
@@ -19,6 +19,6 @@ tiny_mode_root?: any; | ||
id?: any; | ||
events?: any; | ||
validateEvent?: any; | ||
displayOnly?: any; | ||
shape?: any; | ||
events?: any; | ||
checked?: any; | ||
@@ -31,6 +31,6 @@ indeterminate?: any; | ||
name?: any; | ||
label?: any; | ||
disabled?: any; | ||
text?: any; | ||
label?: any; | ||
size?: any; | ||
disabled?: any; | ||
tiny_mode?: any; | ||
@@ -47,6 +47,6 @@ tiny_mode_root?: any; | ||
id?: any; | ||
events?: any; | ||
validateEvent?: any; | ||
displayOnly?: any; | ||
shape?: any; | ||
events?: any; | ||
checked?: any; | ||
@@ -63,6 +63,6 @@ indeterminate?: any; | ||
readonly name?: any; | ||
readonly label?: any; | ||
readonly disabled?: any; | ||
readonly text?: any; | ||
readonly label?: any; | ||
readonly size?: any; | ||
readonly disabled?: any; | ||
readonly tiny_mode?: any; | ||
@@ -79,6 +79,6 @@ readonly tiny_mode_root?: any; | ||
readonly id?: any; | ||
readonly events?: any; | ||
readonly validateEvent?: any; | ||
readonly displayOnly?: any; | ||
readonly shape?: any; | ||
readonly events?: any; | ||
readonly checked?: any; | ||
@@ -85,0 +85,0 @@ readonly indeterminate?: any; |
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
40775
1063
+ Added@opentiny/vue-common@3.17.0(transitive)
+ Added@opentiny/vue-directive@3.17.0(transitive)
+ Added@opentiny/vue-icon@3.17.0(transitive)
+ Added@opentiny/vue-locale@3.17.0(transitive)
+ Added@opentiny/vue-renderless@3.17.6(transitive)
+ Added@opentiny/vue-theme@3.17.5(transitive)
+ Added@opentiny/vue-theme-mobile@3.17.0(transitive)
+ Added@opentiny/vue-tooltip@3.17.0(transitive)
- Removed@opentiny/vue-tooltip@~3.16.0
- Removed@opentiny/vue-common@3.16.0(transitive)
- Removed@opentiny/vue-icon@3.16.0(transitive)
- Removed@opentiny/vue-locale@3.16.0(transitive)
- Removed@opentiny/vue-renderless@3.16.2(transitive)
- Removed@opentiny/vue-theme@3.16.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.16.0(transitive)
- Removed@opentiny/vue-tooltip@3.16.0(transitive)
Updated@opentiny/vue-common@~3.17.0
Updated@opentiny/vue-icon@~3.17.0
Updated@opentiny/vue-theme@~3.17.0