@opentiny/vue-popconfirm
Advanced tools
Comparing version 3.17.0 to 3.18.0
@@ -89,3 +89,3 @@ function _extends() { | ||
}); | ||
var version = "3.17.0"; | ||
var version = "3.18.0"; | ||
Popconfirm.install = function(Vue) { | ||
@@ -92,0 +92,0 @@ Vue.component(Popconfirm.name, Popconfirm); |
@@ -38,3 +38,3 @@ import { defineComponent, $prefix, setup } from '@opentiny/vue-common'; | ||
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) { | ||
var _step$value = _step.value, key = _step$value[0], val = _step$value[1]; | ||
var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1]; | ||
target[key] = val; | ||
@@ -148,142 +148,178 @@ } | ||
var _component_tiny_popover = resolveComponent("tiny-popover"); | ||
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_tiny_popover, { | ||
ref: "popover", | ||
tiny_mode: "mobile-first", | ||
modelValue: _ctx.state.showPopover, | ||
"onUpdate:modelValue": _cache[2] || (_cache[2] = function($event) { | ||
return _ctx.state.showPopover = $event; | ||
}), | ||
placement: _ctx.placement, | ||
trigger: "manual", | ||
width: _ctx.width, | ||
title: _ctx.title, | ||
"popper-class": _ctx.m("min-w-[theme(spacing.44)] max-w-[theme(spacing.96)]", _ctx.customClass), | ||
"append-to-body": _ctx.popperAppendToBody, | ||
reference: _ctx.reference, | ||
onShow: _cache[3] || (_cache[3] = function($event) { | ||
return _ctx.handleEmit("show"); | ||
}), | ||
onHide: _cache[4] || (_cache[4] = function($event) { | ||
return _ctx.handleEmit("hide"); | ||
}) | ||
}, { | ||
header: withCtx(function() { | ||
return [createElementVNode("div", _hoisted_2, [_ctx.type ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.state.getIcon), { | ||
key: 0, | ||
class: normalizeClass(_ctx.m("h-6 w-6 mr-2", { | ||
"fill-color-info-secondary": _ctx.type === "info" | ||
}, { | ||
"fill-color-error": _ctx.type === "error" | ||
}, { | ||
"fill-color-warning": _ctx.type === "warning" | ||
}, { | ||
"fill-color-success": _ctx.type === "success" | ||
})) | ||
}, null, 8, ["class"])) : createCommentVNode("v-if", true), createElementVNode( | ||
"div", | ||
_hoisted_3, | ||
toDisplayString(_ctx.title), | ||
1 | ||
/* TEXT */ | ||
)])]; | ||
}), | ||
default: withCtx(function() { | ||
return [createElementVNode("div", _hoisted_4, [createElementVNode( | ||
"div", | ||
_hoisted_5, | ||
toDisplayString(_ctx.message), | ||
1 | ||
/* TEXT */ | ||
)])]; | ||
}), | ||
footer: withCtx(function() { | ||
return [createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [renderSlot(_ctx.$slots, "footer", {}, function() { | ||
return [_ctx.cancelButton ? (openBlock(), createBlock(_component_tiny_button, { | ||
key: 0, | ||
class: "mr-2 w-16", | ||
size: "mini", | ||
tiny_mode: "mobile-first", | ||
onClick: _ctx.hide | ||
}, { | ||
default: withCtx(function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.t("ui.buttonMessage.cancel")), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
}), | ||
_: 1 | ||
/* STABLE */ | ||
}, 8, ["onClick"])) : createCommentVNode("v-if", true), createVNode(_component_tiny_button, { | ||
class: "w-16", | ||
size: "mini", | ||
tiny_mode: "mobile-first", | ||
type: "primary", | ||
onClick: _ctx.confirm | ||
}, { | ||
default: withCtx(function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.t("ui.buttonMessage.confirm")), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
}), | ||
_: 1 | ||
/* STABLE */ | ||
}, 8, ["onClick"])]; | ||
})]), createElementVNode("div", _hoisted_8, [renderSlot(_ctx.$slots, "footer", {}, function() { | ||
return [_ctx.cancelButton ? (openBlock(), createBlock(_component_tiny_button, { | ||
key: 0, | ||
"custom-class": "flex-1 text-color-text-secondary", | ||
tiny_mode: "mobile-first", | ||
type: "text", | ||
onClick: _ctx.hide | ||
}, { | ||
default: withCtx(function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.t("ui.buttonMessage.cancel")), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
}), | ||
_: 1 | ||
/* STABLE */ | ||
}, 8, ["onClick"])) : createCommentVNode("v-if", true), _ctx.cancelButton ? (openBlock(), createElementBlock("span", _hoisted_9)) : createCommentVNode("v-if", true), createVNode(_component_tiny_button, { | ||
"custom-class": "flex-1 text-color-brand tiny-modal-mf-button", | ||
tiny_mode: "mobile-first", | ||
type: "text", | ||
onClick: _ctx.confirm | ||
}, { | ||
default: withCtx(function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.t("ui.buttonMessage.confirm")), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
}), | ||
_: 1 | ||
/* STABLE */ | ||
}, 8, ["onClick"])]; | ||
})])])]; | ||
}), | ||
reference: withCtx(function() { | ||
return [createElementVNode( | ||
"div", | ||
{ | ||
class: "inline-block", | ||
onClick: _cache[0] || (_cache[0] = function($event) { | ||
return _ctx.show("click"); | ||
}), | ||
onMouseover: _cache[1] || (_cache[1] = function($event) { | ||
return _ctx.show("hover"); | ||
}) | ||
}, | ||
[renderSlot(_ctx.$slots, "reference")], | ||
32 | ||
/* NEED_HYDRATION */ | ||
)]; | ||
}), | ||
_: 3 | ||
/* FORWARDED */ | ||
}, 8, ["modelValue", "placement", "width", "title", "popper-class", "append-to-body", "reference"])]); | ||
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode( | ||
_component_tiny_popover, | ||
{ | ||
ref: "popover", | ||
tiny_mode: "mobile-first", | ||
modelValue: _ctx.state.showPopover, | ||
"onUpdate:modelValue": _cache[2] || (_cache[2] = function($event) { | ||
return _ctx.state.showPopover = $event; | ||
}), | ||
placement: _ctx.placement, | ||
trigger: "manual", | ||
width: _ctx.width, | ||
title: _ctx.title, | ||
"popper-class": _ctx.m("min-w-[theme(spacing.44)] max-w-[theme(spacing.96)]", _ctx.customClass), | ||
"append-to-body": _ctx.popperAppendToBody, | ||
reference: _ctx.reference, | ||
onShow: _cache[3] || (_cache[3] = function($event) { | ||
return _ctx.handleEmit("show"); | ||
}), | ||
onHide: _cache[4] || (_cache[4] = function($event) { | ||
return _ctx.handleEmit("hide"); | ||
}) | ||
}, | ||
{ | ||
header: withCtx(function() { | ||
return [createElementVNode("div", _hoisted_2, [_ctx.type ? (openBlock(), createBlock( | ||
resolveDynamicComponent(_ctx.state.getIcon), | ||
{ | ||
key: 0, | ||
class: normalizeClass(_ctx.m("h-6 w-6 mr-2", { | ||
"fill-color-info-secondary": _ctx.type === "info" | ||
}, { | ||
"fill-color-error": _ctx.type === "error" | ||
}, { | ||
"fill-color-warning": _ctx.type === "warning" | ||
}, { | ||
"fill-color-success": _ctx.type === "success" | ||
})) | ||
}, | ||
null, | ||
8, | ||
["class"] | ||
)) : createCommentVNode("v-if", true), createElementVNode( | ||
"div", | ||
_hoisted_3, | ||
toDisplayString(_ctx.title), | ||
1 | ||
/* TEXT */ | ||
)])]; | ||
}), | ||
default: withCtx(function() { | ||
return [createElementVNode("div", _hoisted_4, [createElementVNode( | ||
"div", | ||
_hoisted_5, | ||
toDisplayString(_ctx.message), | ||
1 | ||
/* TEXT */ | ||
)])]; | ||
}), | ||
footer: withCtx(function() { | ||
return [createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [renderSlot(_ctx.$slots, "footer", {}, function() { | ||
return [_ctx.cancelButton ? (openBlock(), createBlock( | ||
_component_tiny_button, | ||
{ | ||
key: 0, | ||
class: "mr-2 w-16", | ||
size: "mini", | ||
tiny_mode: "mobile-first", | ||
onClick: _ctx.hide | ||
}, | ||
{ | ||
default: withCtx(function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.t("ui.buttonMessage.cancel")), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
}), | ||
_: 1 | ||
/* STABLE */ | ||
}, | ||
8, | ||
["onClick"] | ||
)) : createCommentVNode("v-if", true), createVNode( | ||
_component_tiny_button, | ||
{ | ||
class: "w-16", | ||
size: "mini", | ||
tiny_mode: "mobile-first", | ||
type: "primary", | ||
onClick: _ctx.confirm | ||
}, | ||
{ | ||
default: withCtx(function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.t("ui.buttonMessage.confirm")), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
}), | ||
_: 1 | ||
/* STABLE */ | ||
}, | ||
8, | ||
["onClick"] | ||
)]; | ||
})]), createElementVNode("div", _hoisted_8, [renderSlot(_ctx.$slots, "footer", {}, function() { | ||
return [_ctx.cancelButton ? (openBlock(), createBlock( | ||
_component_tiny_button, | ||
{ | ||
key: 0, | ||
"custom-class": "flex-1 text-color-text-secondary", | ||
tiny_mode: "mobile-first", | ||
type: "text", | ||
onClick: _ctx.hide | ||
}, | ||
{ | ||
default: withCtx(function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.t("ui.buttonMessage.cancel")), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
}), | ||
_: 1 | ||
/* STABLE */ | ||
}, | ||
8, | ||
["onClick"] | ||
)) : createCommentVNode("v-if", true), _ctx.cancelButton ? (openBlock(), createElementBlock("span", _hoisted_9)) : createCommentVNode("v-if", true), createVNode( | ||
_component_tiny_button, | ||
{ | ||
"custom-class": "flex-1 text-color-brand tiny-modal-mf-button", | ||
tiny_mode: "mobile-first", | ||
type: "text", | ||
onClick: _ctx.confirm | ||
}, | ||
{ | ||
default: withCtx(function() { | ||
return [createTextVNode( | ||
toDisplayString(_ctx.t("ui.buttonMessage.confirm")), | ||
1 | ||
/* TEXT */ | ||
)]; | ||
}), | ||
_: 1 | ||
/* STABLE */ | ||
}, | ||
8, | ||
["onClick"] | ||
)]; | ||
})])])]; | ||
}), | ||
reference: withCtx(function() { | ||
return [createElementVNode( | ||
"div", | ||
{ | ||
class: "inline-block", | ||
onClick: _cache[0] || (_cache[0] = function($event) { | ||
return _ctx.show("click"); | ||
}), | ||
onMouseover: _cache[1] || (_cache[1] = function($event) { | ||
return _ctx.show("hover"); | ||
}) | ||
}, | ||
[renderSlot(_ctx.$slots, "reference")], | ||
32 | ||
/* NEED_HYDRATION */ | ||
)]; | ||
}), | ||
_: 3 | ||
/* FORWARDED */ | ||
}, | ||
8, | ||
["modelValue", "placement", "width", "title", "popper-class", "append-to-body", "reference"] | ||
)]); | ||
} | ||
@@ -290,0 +326,0 @@ var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); |
@@ -39,3 +39,3 @@ import { defineComponent, $prefix, setup } from '@opentiny/vue-common'; | ||
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) { | ||
var _step$value = _step.value, key = _step$value[0], val = _step$value[1]; | ||
var _step$value2 = _step.value, key = _step$value2[0], val = _step$value2[1]; | ||
target[key] = val; | ||
@@ -139,3 +139,3 @@ } | ||
title: _ctx.title, | ||
"popper-class": _ctx.m("tiny-popconfirm-popover", _ctx.customClass), | ||
"popper-class": "tiny-popconfirm-popover " + (_ctx.customClass || ""), | ||
"popper-options": _ctx.popperOptions, | ||
@@ -142,0 +142,0 @@ "append-to-body": _ctx.popperAppendToBody, |
{ | ||
"name": "@opentiny/vue-popconfirm", | ||
"version": "3.17.0", | ||
"version": "3.18.0", | ||
"description": "", | ||
@@ -10,8 +10,8 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-button": "~3.17.0", | ||
"@opentiny/vue-common": "~3.17.0", | ||
"@opentiny/vue-icon": "~3.17.0", | ||
"@opentiny/vue-popover": "~3.17.0", | ||
"@opentiny/vue-renderless": "~3.17.0", | ||
"@opentiny/vue-theme": "~3.17.0" | ||
"@opentiny/vue-button": "~3.18.0", | ||
"@opentiny/vue-common": "~3.18.0", | ||
"@opentiny/vue-icon": "~3.18.0", | ||
"@opentiny/vue-popover": "~3.18.0", | ||
"@opentiny/vue-renderless": "~3.18.0", | ||
"@opentiny/vue-theme": "~3.18.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "license": "MIT", |
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
29727
913
+ Added@opentiny/vue-button@3.18.0(transitive)
+ Added@opentiny/vue-common@3.18.0(transitive)
+ Added@opentiny/vue-icon@3.18.0(transitive)
+ Added@opentiny/vue-locale@3.18.0(transitive)
+ Added@opentiny/vue-popover@3.18.0(transitive)
+ Added@opentiny/vue-renderless@3.18.7(transitive)
+ Added@opentiny/vue-theme@3.18.4(transitive)
+ Added@opentiny/vue-theme-mobile@3.18.0(transitive)
- Removed@opentiny/vue-button@3.17.0(transitive)
- Removed@opentiny/vue-common@3.17.0(transitive)
- Removed@opentiny/vue-icon@3.17.0(transitive)
- Removed@opentiny/vue-locale@3.17.0(transitive)
- Removed@opentiny/vue-popover@3.17.0(transitive)
- Removed@opentiny/vue-renderless@3.17.6(transitive)
- Removed@opentiny/vue-theme@3.17.5(transitive)
- Removed@opentiny/vue-theme-mobile@3.17.0(transitive)
Updated@opentiny/vue-button@~3.18.0
Updated@opentiny/vue-common@~3.18.0
Updated@opentiny/vue-icon@~3.18.0
Updated@opentiny/vue-theme@~3.18.0