Socket
Socket
Sign inDemoInstall

@opentiny/vue-numeric

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-numeric - npm Package Compare versions

Comparing version 3.10.0 to 3.11.0-alpha.0

193

lib/index.js

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

}
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common";
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common";
import PcTemplate from "./pc.js";

@@ -45,98 +45,99 @@ import MobileTemplate from "./mobile.js";

};
var numericProps = _extends({}, $props, {
_constants: {
type: Object,
default: function _default() {
return $constants;
}
},
allowEmpty: {
type: Boolean,
default: false
},
circulate: Boolean,
controls: {
type: Boolean,
default: true
},
controlsPosition: {
type: String,
default: ""
},
disabled: Boolean,
format: [Object, String],
hideUnit: {
type: Boolean,
default: false
},
holdZero: {
type: Boolean,
default: true
},
label: String,
max: {
type: [Number, String],
default: Infinity
},
min: {
type: [Number, String],
default: -Infinity
},
modelTruncation: {
type: Boolean,
default: true
},
modelValue: {},
mouseWheel: Boolean,
name: String,
placeholder: String,
plugin: Function,
precision: {
type: Number,
validator: function validator(val) {
return val >= 0 && val === parseInt(val, 10);
}
},
size: String,
step: {
type: [Number, String],
default: 1
},
stepStrictly: {
type: Boolean,
default: false
},
strictInput: {
type: Boolean,
default: false
},
stringMode: Boolean,
tabindex: {
type: String,
default: "1"
},
theme: {
type: String,
default: ""
},
unit: String,
unitCenter: {
type: Boolean,
default: false
},
validateEvent: {
type: Boolean,
default: true
},
displayOnly: {
type: Boolean,
default: false
},
showLeft: {
type: Boolean,
default: false
}
});
var Numeric = defineComponent({
name: $prefix + "Numeric",
props: _extends({}, $props, {
_constants: {
type: Object,
default: function _default() {
return $constants;
}
},
allowEmpty: {
type: Boolean,
default: false
},
circulate: Boolean,
controls: {
type: Boolean,
default: true
},
controlsPosition: {
type: String,
default: ""
},
disabled: Boolean,
format: [Object, String],
hideUnit: {
type: Boolean,
default: false
},
holdZero: {
type: Boolean,
default: true
},
label: String,
max: {
type: [Number, String],
default: Infinity
},
min: {
type: [Number, String],
default: -Infinity
},
modelTruncation: {
type: Boolean,
default: true
},
modelValue: {},
mouseWheel: Boolean,
name: String,
placeholder: String,
plugin: Function,
precision: {
type: Number,
validator: function validator(val) {
return val >= 0 && val === parseInt(val, 10);
}
},
size: String,
step: {
type: [Number, String],
default: 1
},
stepStrictly: {
type: Boolean,
default: false
},
strictInput: {
type: Boolean,
default: false
},
stringMode: Boolean,
tabindex: {
type: String,
default: "1"
},
theme: {
type: String,
default: ""
},
unit: String,
unitCenter: {
type: Boolean,
default: false
},
validateEvent: {
type: Boolean,
default: true
},
displayOnly: {
type: Boolean,
default: false
},
showLeft: {
type: Boolean,
default: false
}
}),
props: numericProps,
setup: function setup(props, context) {

@@ -150,3 +151,3 @@ return $setup({

});
var version = "3.10.0";
var version = "3.11.0-alpha.0";
Numeric.model = {

@@ -153,0 +154,0 @@ prop: "modelValue",

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

import { resolveDirective, openBlock, createElementBlock, createElementVNode, normalizeClass, withModifiers, withDirectives, withKeys, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];

@@ -45,3 +45,3 @@ if (it)

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

@@ -48,0 +48,0 @@ target[key] = val;

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

import { resolveDirective, openBlock, createElementBlock, withModifiers, normalizeClass, withDirectives, withKeys, createBlock, resolveDynamicComponent, createCommentVNode, createElementVNode } from "vue";
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];

@@ -46,3 +46,3 @@ if (it)

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

@@ -49,0 +49,0 @@ target[key] = val;

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

import { resolveDirective, openBlock, createElementBlock, withModifiers, normalizeClass, withDirectives, withKeys, createBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, createElementVNode } from "vue";
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];

@@ -46,3 +46,3 @@ if (it)

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

@@ -49,0 +49,0 @@ target[key] = val;

{
"name": "@opentiny/vue-numeric",
"version": "3.10.0",
"version": "3.11.0-alpha.0",
"description": "",

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

"dependencies": {
"@opentiny/vue-common": "~3.10.0",
"@opentiny/vue-icon": "~3.10.0",
"@opentiny/vue-renderless": "~3.10.0"
"@opentiny/vue-common": "~3.11.0-alpha.0",
"@opentiny/vue-icon": "~3.11.0-alpha.0",
"@opentiny/vue-renderless": "~3.11.0-alpha.0"
},

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

@@ -0,1 +1,122 @@

export declare const $constants: {
MAX: string;
MIN: string;
VALUENOW: string;
DISABLED: string;
KEY: string;
VALUE: string;
EVENT_NAME: {
blur: string;
change: string;
};
COMPONENT_NAME: string;
};
export declare const numericProps: {
_constants: {
type: ObjectConstructor;
default: () => {
MAX: string;
MIN: string;
VALUENOW: string;
DISABLED: string;
KEY: string;
VALUE: string;
EVENT_NAME: {
blur: string;
change: string;
};
COMPONENT_NAME: string;
};
};
allowEmpty: {
type: BooleanConstructor;
default: boolean;
};
circulate: BooleanConstructor;
controls: {
type: BooleanConstructor;
default: boolean;
};
controlsPosition: {
type: StringConstructor;
default: string;
};
disabled: BooleanConstructor;
format: (ObjectConstructor | StringConstructor)[];
hideUnit: {
type: BooleanConstructor;
default: boolean;
};
holdZero: {
type: BooleanConstructor;
default: boolean;
};
label: StringConstructor;
max: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
min: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
modelTruncation: {
type: BooleanConstructor;
default: boolean;
};
modelValue: {};
mouseWheel: BooleanConstructor;
name: StringConstructor;
placeholder: StringConstructor;
plugin: FunctionConstructor;
precision: {
type: NumberConstructor;
validator(val: any): boolean;
};
size: StringConstructor;
step: {
type: (StringConstructor | NumberConstructor)[];
default: number;
};
stepStrictly: {
type: BooleanConstructor;
default: boolean;
};
strictInput: {
type: BooleanConstructor;
default: boolean;
};
stringMode: BooleanConstructor;
tabindex: {
type: StringConstructor;
default: string;
};
theme: {
type: StringConstructor;
default: string;
};
unit: StringConstructor;
unitCenter: {
type: BooleanConstructor;
default: boolean;
};
validateEvent: {
type: BooleanConstructor;
default: boolean;
};
displayOnly: {
type: BooleanConstructor;
default: boolean;
};
showLeft: {
type: BooleanConstructor;
default: boolean;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
};
declare const _default: import("@vue/runtime-core").DefineComponent<{

@@ -61,3 +182,3 @@ _constants: {

type: NumberConstructor;
validator(val: unknown): boolean;
validator(val: any): boolean;
};

@@ -171,3 +292,3 @@ size: StringConstructor;

type: NumberConstructor;
validator(val: unknown): boolean;
validator(val: any): boolean;
};

@@ -174,0 +295,0 @@ size: StringConstructor;

declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
[x: string]: any;
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "focus" | "blur" | "change" | "paste-error")[], "update:modelValue" | "focus" | "blur" | "change" | "paste-error", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
[x: string]: any;
format?: any;
label?: any;
name?: 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;
modelValue?: any;
size?: any;
tabindex?: any;
placeholder?: any;
validateEvent?: any;
displayOnly?: any;
max?: any;
min?: any;
step?: any;
controls?: any;
plugin?: any;
precision?: any;
allowEmpty?: any;
stringMode?: any;
unit?: any;
stepStrictly?: any;
controlsPosition?: any;
circulate?: any;
mouseWheel?: any;
holdZero?: any;
modelTruncation?: any;
strictInput?: any;
hideUnit?: any;
unitCenter?: any;
}>, any, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "blur" | "change" | "focus" | "paste-error")[], "update:modelValue" | "blur" | "change" | "focus" | "paste-error", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
format?: any;
label?: any;
name?: 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;
modelValue?: any;
size?: any;
tabindex?: any;
placeholder?: any;
validateEvent?: any;
displayOnly?: any;
max?: any;
min?: any;
step?: any;
controls?: any;
plugin?: any;
precision?: any;
allowEmpty?: any;
stringMode?: any;
unit?: any;
stepStrictly?: any;
controlsPosition?: any;
circulate?: any;
mouseWheel?: any;
holdZero?: any;
modelTruncation?: any;
strictInput?: any;
hideUnit?: any;
unitCenter?: any;
}>>> & {

@@ -12,4 +80,38 @@ onFocus?: ((...args: any[]) => any) | undefined;

}, {
[x: string]: any;
readonly format?: any;
readonly label?: any;
readonly name?: 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 modelValue?: any;
readonly size?: any;
readonly tabindex?: any;
readonly placeholder?: any;
readonly validateEvent?: any;
readonly displayOnly?: any;
readonly max?: any;
readonly min?: any;
readonly step?: any;
readonly controls?: any;
readonly plugin?: any;
readonly precision?: any;
readonly allowEmpty?: any;
readonly stringMode?: any;
readonly unit?: any;
readonly stepStrictly?: any;
readonly controlsPosition?: any;
readonly circulate?: any;
readonly mouseWheel?: any;
readonly holdZero?: any;
readonly modelTruncation?: any;
readonly strictInput?: any;
readonly hideUnit?: any;
readonly unitCenter?: any;
}, {}>;
export default _default;
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
[x: string]: any;
label?: any;
name?: 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;
modelValue?: any;
size?: any;
placeholder?: any;
max?: any;
min?: any;
step?: any;
theme?: any;
controls?: any;
precision?: any;
stepStrictly?: any;
controlsPosition?: any;
circulate?: any;
}>, {

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

m: (...cssClasses: any[]) => string;
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "focus" | "blur" | "change")[], "update:modelValue" | "focus" | "blur" | "change", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
[x: string]: any;
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "blur" | "change" | "focus")[], "update:modelValue" | "blur" | "change" | "focus", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
label?: any;
name?: 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;
modelValue?: any;
size?: any;
placeholder?: any;
max?: any;
min?: any;
step?: any;
theme?: any;
controls?: any;
precision?: any;
stepStrictly?: any;
controlsPosition?: any;
circulate?: any;
}>>> & {

@@ -21,4 +63,25 @@ onFocus?: ((...args: any[]) => any) | undefined;

}, {
[x: string]: any;
readonly label?: any;
readonly name?: 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 modelValue?: any;
readonly size?: any;
readonly placeholder?: any;
readonly max?: any;
readonly min?: any;
readonly step?: any;
readonly theme?: any;
readonly controls?: any;
readonly precision?: any;
readonly stepStrictly?: any;
readonly controlsPosition?: any;
readonly circulate?: any;
}, {}>;
export default _default;
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
[x: string]: any;
}>, {
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "focus" | "blur" | "change" | "paste-error")[], "update:modelValue" | "focus" | "blur" | "change" | "paste-error", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
[x: string]: any;
format?: any;
label?: any;
name?: 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;
modelValue?: any;
size?: any;
tabindex?: any;
placeholder?: any;
validateEvent?: any;
displayOnly?: any;
max?: any;
showLeft?: any;
min?: any;
step?: any;
controls?: any;
plugin?: any;
precision?: any;
allowEmpty?: any;
stringMode?: any;
unit?: any;
stepStrictly?: any;
controlsPosition?: any;
circulate?: any;
mouseWheel?: any;
holdZero?: any;
modelTruncation?: any;
strictInput?: any;
hideUnit?: any;
unitCenter?: any;
}>, INumericApi, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "blur" | "change" | "focus" | "paste-error")[], "update:modelValue" | "blur" | "change" | "focus" | "paste-error", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
format?: any;
label?: any;
name?: 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;
modelValue?: any;
size?: any;
tabindex?: any;
placeholder?: any;
validateEvent?: any;
displayOnly?: any;
max?: any;
showLeft?: any;
min?: any;
step?: any;
controls?: any;
plugin?: any;
precision?: any;
allowEmpty?: any;
stringMode?: any;
unit?: any;
stepStrictly?: any;
controlsPosition?: any;
circulate?: any;
mouseWheel?: any;
holdZero?: any;
modelTruncation?: any;
strictInput?: any;
hideUnit?: any;
unitCenter?: any;
}>>> & {

@@ -21,4 +82,39 @@ onFocus?: ((...args: any[]) => any) | undefined;

}, {
[x: string]: any;
readonly format?: any;
readonly label?: any;
readonly name?: 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 modelValue?: any;
readonly size?: any;
readonly tabindex?: any;
readonly placeholder?: any;
readonly validateEvent?: any;
readonly displayOnly?: any;
readonly max?: any;
readonly showLeft?: any;
readonly min?: any;
readonly step?: any;
readonly controls?: any;
readonly plugin?: any;
readonly precision?: any;
readonly allowEmpty?: any;
readonly stringMode?: any;
readonly unit?: any;
readonly stepStrictly?: any;
readonly controlsPosition?: any;
readonly circulate?: any;
readonly mouseWheel?: any;
readonly holdZero?: any;
readonly modelTruncation?: any;
readonly strictInput?: any;
readonly hideUnit?: any;
readonly unitCenter?: 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