@opentiny/vue-modal
Advanced tools
Comparing version 3.8.2 to 3.8.3
@@ -164,3 +164,3 @@ function _extends() { | ||
function Modal(options) { | ||
return new Promise(function(resolve) { | ||
var modalPromise = new Promise(function(resolve) { | ||
if (options && options.id && MsgQueue.some(function(comp) { | ||
@@ -186,4 +186,8 @@ return comp.id === options.id; | ||
$modal.open(); | ||
setTimeout(function() { | ||
return modalPromise.vm = $modal; | ||
}, 0); | ||
} | ||
}); | ||
return modalPromise; | ||
} | ||
@@ -190,0 +194,0 @@ var modal = Modal; |
{ | ||
"name": "@opentiny/vue-modal", | ||
"version": "3.8.2", | ||
"version": "3.8.3", | ||
"description": "", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.8.2", | ||
"@opentiny/vue-common": "~3.8.2", | ||
"@opentiny/vue-button": "~3.8.2", | ||
"@opentiny/vue-locale": "~3.8.2" | ||
"@opentiny/vue-renderless": "~3.8.3", | ||
"@opentiny/vue-common": "~3.8.3", | ||
"@opentiny/vue-button": "~3.8.3", | ||
"@opentiny/vue-locale": "~3.8.3" | ||
}, | ||
@@ -13,0 +14,0 @@ "license": "MIT", |
@@ -1,2 +0,235 @@ | ||
declare const _default: any; | ||
declare const _default: import("@vue/runtime-core").DefineComponent<{ | ||
_constants: { | ||
type: ObjectConstructor; | ||
default: () => { | ||
MODAL_STATUS: { | ||
INFO: string; | ||
SUCCESS: string; | ||
WARNING: string; | ||
ERROR: string; | ||
LOADING: string; | ||
}; | ||
NODAL_TYPE: { | ||
ALERT: string; | ||
CONFIRM: string; | ||
MESSAGE: string; | ||
}; | ||
STATUS_MAPPING_CLASSS: { | ||
INFO: string; | ||
SUCCESS: string; | ||
WARNING: string; | ||
ERROR: string; | ||
LOADING: string; | ||
}; | ||
}; | ||
}; | ||
animat: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
beforeClose: FunctionConstructor; | ||
duration: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
escClosable: BooleanConstructor; | ||
events: ObjectConstructor; | ||
fullscreen: BooleanConstructor; | ||
height: (NumberConstructor | StringConstructor)[]; | ||
id: StringConstructor; | ||
isFormReset: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
lockScroll: BooleanConstructor; | ||
lockView: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
marginSize: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: number; | ||
}; | ||
mask: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
maskClosable: BooleanConstructor; | ||
message: (ObjectConstructor | StringConstructor | FunctionConstructor)[]; | ||
minHeight: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
minWidth: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
modelValue: BooleanConstructor; | ||
resize: BooleanConstructor; | ||
showFooter: BooleanConstructor; | ||
showHeader: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
status: { | ||
type: (ObjectConstructor | StringConstructor)[]; | ||
default: string; | ||
}; | ||
title: StringConstructor; | ||
top: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: number; | ||
}; | ||
type: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
vSize: StringConstructor; | ||
width: (NumberConstructor | StringConstructor)[]; | ||
zIndex: (NumberConstructor | StringConstructor)[]; | ||
mode: null; | ||
description: StringConstructor; | ||
options: ArrayConstructor; | ||
showClose: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
confirmContent: StringConstructor; | ||
cancelContent: StringConstructor; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (ObjectConstructor | FunctionConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { | ||
[key: string]: any; | ||
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
_constants: { | ||
type: ObjectConstructor; | ||
default: () => { | ||
MODAL_STATUS: { | ||
INFO: string; | ||
SUCCESS: string; | ||
WARNING: string; | ||
ERROR: string; | ||
LOADING: string; | ||
}; | ||
NODAL_TYPE: { | ||
ALERT: string; | ||
CONFIRM: string; | ||
MESSAGE: string; | ||
}; | ||
STATUS_MAPPING_CLASSS: { | ||
INFO: string; | ||
SUCCESS: string; | ||
WARNING: string; | ||
ERROR: string; | ||
LOADING: string; | ||
}; | ||
}; | ||
}; | ||
animat: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
beforeClose: FunctionConstructor; | ||
duration: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
escClosable: BooleanConstructor; | ||
events: ObjectConstructor; | ||
fullscreen: BooleanConstructor; | ||
height: (NumberConstructor | StringConstructor)[]; | ||
id: StringConstructor; | ||
isFormReset: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
lockScroll: BooleanConstructor; | ||
lockView: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
marginSize: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: number; | ||
}; | ||
mask: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
maskClosable: BooleanConstructor; | ||
message: (ObjectConstructor | StringConstructor | FunctionConstructor)[]; | ||
minHeight: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
minWidth: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
modelValue: BooleanConstructor; | ||
resize: BooleanConstructor; | ||
showFooter: BooleanConstructor; | ||
showHeader: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
status: { | ||
type: (ObjectConstructor | StringConstructor)[]; | ||
default: string; | ||
}; | ||
title: StringConstructor; | ||
top: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: number; | ||
}; | ||
type: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
vSize: StringConstructor; | ||
width: (NumberConstructor | StringConstructor)[]; | ||
zIndex: (NumberConstructor | StringConstructor)[]; | ||
mode: null; | ||
description: StringConstructor; | ||
options: ArrayConstructor; | ||
showClose: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
confirmContent: StringConstructor; | ||
cancelContent: StringConstructor; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (ObjectConstructor | FunctionConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}>>, { | ||
type: string; | ||
modelValue: boolean; | ||
showHeader: boolean; | ||
showFooter: boolean; | ||
mask: boolean; | ||
maskClosable: boolean; | ||
tiny_mode_root: boolean; | ||
_constants: Record<string, any>; | ||
resize: boolean; | ||
status: string | Record<string, any>; | ||
fullscreen: boolean; | ||
isFormReset: boolean; | ||
lockScroll: boolean; | ||
showClose: boolean; | ||
top: string | number; | ||
duration: string | number; | ||
minHeight: string | number; | ||
animat: boolean; | ||
escClosable: boolean; | ||
lockView: boolean; | ||
marginSize: string | number; | ||
minWidth: string | number; | ||
}>; | ||
export default _default; |
@@ -1,2 +0,199 @@ | ||
declare const _sfc_main: any; | ||
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<{ | ||
animat: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
beforeClose: FunctionConstructor; | ||
duration: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
escClosable: BooleanConstructor; | ||
events: ObjectConstructor; | ||
fullscreen: BooleanConstructor; | ||
height: (NumberConstructor | StringConstructor)[]; | ||
id: StringConstructor; | ||
isFormReset: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
lockScroll: BooleanConstructor; | ||
lockView: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
marginSize: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: number; | ||
}; | ||
mask: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
maskClosable: BooleanConstructor; | ||
message: (StringConstructor | FunctionConstructor)[]; | ||
minHeight: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
minWidth: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
modelValue: BooleanConstructor; | ||
resize: BooleanConstructor; | ||
showFooter: BooleanConstructor; | ||
showHeader: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
status: { | ||
type: (ObjectConstructor | StringConstructor)[]; | ||
default: string; | ||
}; | ||
title: StringConstructor; | ||
top: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: number; | ||
}; | ||
type: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
vSize: StringConstructor; | ||
width: (NumberConstructor | StringConstructor)[]; | ||
zIndex: (NumberConstructor | StringConstructor)[]; | ||
description: StringConstructor; | ||
options: ArrayConstructor; | ||
showClose: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
confirmContent: StringConstructor; | ||
cancelContent: StringConstructor; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (ObjectConstructor | FunctionConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}, { | ||
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").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "zoom" | "show" | "hide" | "custom-mousedown" | "custom-mousemove" | "custom-mouseup")[], "update:modelValue" | "zoom" | "show" | "hide" | "custom-mousedown" | "custom-mousemove" | "custom-mouseup", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
animat: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
beforeClose: FunctionConstructor; | ||
duration: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
escClosable: BooleanConstructor; | ||
events: ObjectConstructor; | ||
fullscreen: BooleanConstructor; | ||
height: (NumberConstructor | StringConstructor)[]; | ||
id: StringConstructor; | ||
isFormReset: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
lockScroll: BooleanConstructor; | ||
lockView: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
marginSize: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: number; | ||
}; | ||
mask: { | ||
type: BooleanConstructor; | ||
default: () => boolean; | ||
}; | ||
maskClosable: BooleanConstructor; | ||
message: (StringConstructor | FunctionConstructor)[]; | ||
minHeight: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
minWidth: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: () => number; | ||
}; | ||
modelValue: BooleanConstructor; | ||
resize: BooleanConstructor; | ||
showFooter: BooleanConstructor; | ||
showHeader: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
status: { | ||
type: (ObjectConstructor | StringConstructor)[]; | ||
default: string; | ||
}; | ||
title: StringConstructor; | ||
top: { | ||
type: (NumberConstructor | StringConstructor)[]; | ||
default: number; | ||
}; | ||
type: { | ||
type: StringConstructor; | ||
default: string; | ||
}; | ||
vSize: StringConstructor; | ||
width: (NumberConstructor | StringConstructor)[]; | ||
zIndex: (NumberConstructor | StringConstructor)[]; | ||
description: StringConstructor; | ||
options: ArrayConstructor; | ||
showClose: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
confirmContent: StringConstructor; | ||
cancelContent: StringConstructor; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (ObjectConstructor | FunctionConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}>> & { | ||
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; | ||
onShow?: ((...args: any[]) => any) | undefined; | ||
onHide?: ((...args: any[]) => any) | undefined; | ||
onZoom?: ((...args: any[]) => any) | undefined; | ||
"onCustom-mousedown"?: ((...args: any[]) => any) | undefined; | ||
"onCustom-mousemove"?: ((...args: any[]) => any) | undefined; | ||
"onCustom-mouseup"?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
type: string; | ||
modelValue: boolean; | ||
showHeader: boolean; | ||
showFooter: boolean; | ||
mask: boolean; | ||
maskClosable: boolean; | ||
tiny_mode_root: boolean; | ||
resize: boolean; | ||
status: string | Record<string, any>; | ||
fullscreen: boolean; | ||
isFormReset: boolean; | ||
lockScroll: boolean; | ||
showClose: boolean; | ||
top: string | number; | ||
duration: string | number; | ||
minHeight: string | number; | ||
animat: boolean; | ||
escClosable: boolean; | ||
lockView: boolean; | ||
marginSize: string | number; | ||
minWidth: string | number; | ||
}>; | ||
export default _sfc_main; |
@@ -1,2 +0,17 @@ | ||
declare const _sfc_main: any; | ||
declare const _sfc_main: 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").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
[x: string]: any; | ||
}>>>, { | ||
[x: string]: any; | ||
}>; | ||
export default _sfc_main; |
@@ -1,2 +0,17 @@ | ||
declare const _sfc_main: any; | ||
declare const _sfc_main: 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").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
[x: string]: any; | ||
}>>>, { | ||
[x: string]: any; | ||
}>; | ||
export default _sfc_main; |
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
44289
1343
Updated@opentiny/vue-button@~3.8.3
Updated@opentiny/vue-common@~3.8.3
Updated@opentiny/vue-locale@~3.8.3