New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opentiny/vue-float-button

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-float-button - npm Package Compare versions

Comparing version 2.14.0 to 3.14.0

2

lib/index.js

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

});
var version = "2.14.0";
var version = "3.14.0";
FloatButton.install = function(Vue) {

@@ -123,0 +123,0 @@ Vue.component(FloatButton.name, FloatButton);

@@ -5,57 +5,49 @@ import { renderless, api } from "@opentiny/vue-renderless/float-button/vue";

import "@opentiny/vue-theme/float-button/index.css";
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
if (render) {
options.render = render;
options.staticRenderFns = staticRenderFns;
options._compiled = true;
}
if (functionalTemplate) {
options.functional = true;
}
if (scopeId) {
options._scopeId = "data-v-" + scopeId;
}
var hook;
if (moduleIdentifier) {
hook = function hook2(context) {
context = context || // cached call
this.$vnode && this.$vnode.ssrContext || // stateful
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
context = __VUE_SSR_CONTEXT__;
}
if (injectStyles) {
injectStyles.call(this, context);
}
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
import { resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, resolveDynamicComponent, toDisplayString, renderSlot, vShow } from "vue";
function _createForOfIteratorHelperLoose_tiny(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 (it)
o = it;
var i = 0;
return function() {
if (i >= o.length)
return { done: true };
return { done: false, value: o[i++] };
};
options._ssrRegister = hook;
} else if (injectStyles) {
hook = shadowMode ? function() {
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
} : injectStyles;
}
if (hook) {
if (options.functional) {
options._injectStyles = hook;
var originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
} else {
var existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _unsupportedIterableToArray_tiny(o, minLen) {
if (!o)
return;
if (typeof o === "string")
return _arrayLikeToArray_tiny(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_tiny(o, minLen);
}
function _arrayLikeToArray_tiny(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;
}
var _export_sfc = function _export_sfc2(sfc, props) {
var target = sfc.__vccOpts || sfc;
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) {
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
target[key] = val;
}
return {
exports: scriptExports,
options
};
}
return target;
};
var __vue2_script = defineComponent({
var _sfc_main = defineComponent({
emits: ["click", "mouseout", "mouseover"],

@@ -76,57 +68,65 @@ props: [].concat(props, ["type", "open", "description", "size", "icon", "resetTime", "tooltip", "loading", "disabled", "href", "target", "top", "bottom", "right", "left", "trigger", "shape", "backTop", "visibilityHeight", "element"]),

});
var render = function render2() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
return _c("button", {
directives: [{
name: "show",
rawName: "v-show",
value: _vm.state.show,
expression: "state.show"
}],
ref: "tinyFloatButton",
staticClass: "tiny-float-button",
class: [_vm.type ? "tiny-float-button--" + _vm.type : "", _vm.size ? "tiny-float-button--" + _vm.size : "", {
"is-disabled": _vm.state.buttonDisabled,
"is-loading": _vm.loading,
"is-icon": _vm.icon && !_vm.loading && (_vm.description || _vm.slots.default),
"is-only-icon": _vm.icon && !_vm.loading && !(_vm.description || _vm.slots.default),
"is-circle": _vm.shape === "circle",
"is-square": _vm.shape === "square"
}],
style: {
top: _vm.top,
bottom: _vm.bottom,
right: _vm.right,
left: _vm.left
var _hoisted_1 = {
key: 3
};
var _hoisted_2 = {
key: 4,
ref: "tinyFloatButtonOpen",
class: "tiny-float-button--open"
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
var _component_icon_loading = resolveComponent("icon-loading");
var _component_icon_close = resolveComponent("icon-close");
return withDirectives((openBlock(), createElementBlock(
"button",
{
ref: "tinyFloatButton",
class: normalizeClass(["tiny-float-button", [_ctx.type ? "tiny-float-button--" + _ctx.type : "", _ctx.size ? "tiny-float-button--" + _ctx.size : "", {
"is-disabled": _ctx.state.buttonDisabled,
"is-loading": _ctx.loading,
"is-icon": _ctx.icon && !_ctx.loading && (_ctx.description || _ctx.slots.default),
"is-only-icon": _ctx.icon && !_ctx.loading && !(_ctx.description || _ctx.slots.default),
"is-circle": _ctx.shape === "circle",
"is-square": _ctx.shape === "square"
}]]),
onClick: _cache[0] || (_cache[0] = function() {
return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
}),
style: normalizeStyle({
top: _ctx.top,
bottom: _ctx.bottom,
right: _ctx.right,
left: _ctx.left
})
},
on: {
"click": _vm.handleClick
}
}, [_vm.loading ? _c("icon-loading", {
staticClass: "tiny-icon-loading tiny-svg-size"
}) : _vm._e(), _vm.icon && !_vm.loading && !_vm.state.open ? _c(_vm.icon, {
tag: "component",
class: {
"is-text": _vm.description || _vm.slots.default
}
}) : _vm._e(), !_vm.loading && _vm.state.open ? _c("icon-close") : _vm._e(), _vm.description && !_vm.state.open ? _c("div", [_vm._v(_vm._s(_vm.description))]) : _vm._e(), _vm.state.open ? _c("div", {
ref: "tinyFloatButtonOpen",
staticClass: "tiny-float-button--open"
}, [_vm._t("default")], 2) : _vm._e()], 1);
};
var staticRenderFns = [];
var __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
function __vue2_injectStyles(context) {
for (var o in __cssModules) {
this[o] = __cssModules[o];
}
[_ctx.loading ? (openBlock(), createBlock(_component_icon_loading, {
key: 0,
class: "tiny-icon-loading tiny-svg-size"
})) : createCommentVNode("v-if", true), _ctx.icon && !_ctx.loading && !_ctx.state.open ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
key: 1,
class: normalizeClass({
"is-text": _ctx.description || _ctx.slots.default
})
}, null, 8, ["class"])) : createCommentVNode("v-if", true), !_ctx.loading && _ctx.state.open ? (openBlock(), createBlock(_component_icon_close, {
key: 2
})) : createCommentVNode("v-if", true), _ctx.description && !_ctx.state.open ? (openBlock(), createElementBlock(
"div",
_hoisted_1,
toDisplayString(_ctx.description),
1
/* TEXT */
)) : createCommentVNode("v-if", true), _ctx.state.open ? (openBlock(), createElementBlock(
"div",
_hoisted_2,
[renderSlot(_ctx.$slots, "default")],
512
/* NEED_PATCH */
)) : createCommentVNode("v-if", true)],
6
/* CLASS, STYLE */
)), [[vShow, _ctx.state.show]]);
}
var pc = /* @__PURE__ */ function() {
return __component__.exports;
}();
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
pc as default
};
{
"name": "@opentiny/vue-float-button",
"version": "2.14.0",
"version": "3.14.0",
"description": "",

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

"dependencies": {
"@opentiny/vue-common": "~2.14.0",
"@opentiny/vue-icon": "~2.14.0",
"@opentiny/vue-common": "~3.14.0",
"@opentiny/vue-icon": "~3.14.0",
"@opentiny/vue-renderless": "~3.14.0"

@@ -14,0 +14,0 @@ },

@@ -83,3 +83,189 @@ export declare const floatButtonProps: {

};
declare const _default: any;
declare const _default: import("@vue/runtime-core").DefineComponent<{
trigger: {
default: string;
type: StringConstructor;
validator(val: string): boolean;
};
open: BooleanConstructor;
shape: {
type: StringConstructor;
default: string;
validator(val: string): boolean;
};
top: {
type: StringConstructor;
default: string;
};
bottom: {
type: StringConstructor;
default: string;
};
right: {
type: StringConstructor;
default: string;
};
left: {
type: StringConstructor;
default: string;
};
href: {
type: StringConstructor;
default: string;
};
target: {
type: StringConstructor;
default: string;
};
type: {
type: StringConstructor;
default: string;
};
icon: {
type: (ObjectConstructor | StringConstructor)[];
default: string;
};
description: {
type: StringConstructor;
default: string;
};
tooltip: {
type: StringConstructor;
default: string;
};
resetTime: {
type: NumberConstructor;
default: number;
};
size: {
type: StringConstructor;
default: string;
validator(val: string): boolean;
};
loading: BooleanConstructor;
disabled: BooleanConstructor;
backTop: BooleanConstructor;
visibilityHeight: {
default: number;
type: NumberConstructor;
};
element: {
default: HTMLElement;
type: {
new (): HTMLElement;
prototype: HTMLElement;
};
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
trigger: {
default: string;
type: StringConstructor;
validator(val: string): boolean;
};
open: BooleanConstructor;
shape: {
type: StringConstructor;
default: string;
validator(val: string): boolean;
};
top: {
type: StringConstructor;
default: string;
};
bottom: {
type: StringConstructor;
default: string;
};
right: {
type: StringConstructor;
default: string;
};
left: {
type: StringConstructor;
default: string;
};
href: {
type: StringConstructor;
default: string;
};
target: {
type: StringConstructor;
default: string;
};
type: {
type: StringConstructor;
default: string;
};
icon: {
type: (ObjectConstructor | StringConstructor)[];
default: string;
};
description: {
type: StringConstructor;
default: string;
};
tooltip: {
type: StringConstructor;
default: string;
};
resetTime: {
type: NumberConstructor;
default: number;
};
size: {
type: StringConstructor;
default: string;
validator(val: string): boolean;
};
loading: BooleanConstructor;
disabled: BooleanConstructor;
backTop: BooleanConstructor;
visibilityHeight: {
default: number;
type: NumberConstructor;
};
element: {
default: HTMLElement;
type: {
new (): HTMLElement;
prototype: HTMLElement;
};
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}>>, {
type: string;
left: string;
right: string;
top: string;
bottom: string;
disabled: boolean;
tiny_mode_root: boolean;
trigger: string;
size: string;
icon: string | Record<string, any>;
target: string;
resetTime: number;
href: string;
loading: boolean;
description: string;
shape: string;
open: boolean;
tooltip: string;
backTop: boolean;
visibilityHeight: number;
element: HTMLElement;
}, {}>;
export default _default;

@@ -1,2 +0,91 @@

declare const _default: any;
import type { IFloatButtonApi } from '@opentiny/vue-renderless/types/float-button.type';
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
type?: any;
left?: any;
right?: any;
top?: any;
bottom?: any;
disabled?: any;
tiny_mode?: any;
tiny_mode_root?: any;
tiny_template?: any;
tiny_renderless?: any;
_constants?: any;
tiny_theme?: any;
tiny_chart_theme?: any;
trigger?: any;
size?: any;
icon?: any;
target?: any;
resetTime?: any;
href?: any;
loading?: any;
description?: any;
shape?: any;
open?: any;
tooltip?: any;
backTop?: any;
visibilityHeight?: any;
element?: any;
}>, IFloatButtonApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("click" | "mouseout" | "mouseover")[], "click" | "mouseout" | "mouseover", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
type?: any;
left?: any;
right?: any;
top?: any;
bottom?: any;
disabled?: any;
tiny_mode?: any;
tiny_mode_root?: any;
tiny_template?: any;
tiny_renderless?: any;
_constants?: any;
tiny_theme?: any;
tiny_chart_theme?: any;
trigger?: any;
size?: any;
icon?: any;
target?: any;
resetTime?: any;
href?: any;
loading?: any;
description?: any;
shape?: any;
open?: any;
tooltip?: any;
backTop?: any;
visibilityHeight?: any;
element?: any;
}>>> & {
onClick?: ((...args: any[]) => any) | undefined;
onMouseout?: ((...args: any[]) => any) | undefined;
onMouseover?: ((...args: any[]) => any) | undefined;
}, {
readonly type?: any;
readonly left?: any;
readonly right?: any;
readonly top?: any;
readonly bottom?: any;
readonly disabled?: any;
readonly tiny_mode?: any;
readonly tiny_mode_root?: any;
readonly tiny_template?: any;
readonly tiny_renderless?: any;
readonly _constants?: any;
readonly tiny_theme?: any;
readonly tiny_chart_theme?: any;
readonly trigger?: any;
readonly size?: any;
readonly icon?: any;
readonly target?: any;
readonly resetTime?: any;
readonly href?: any;
readonly loading?: any;
readonly description?: any;
readonly shape?: any;
readonly open?: any;
readonly tooltip?: any;
readonly backTop?: any;
readonly visibilityHeight?: any;
readonly element?: 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