@opentiny/vue-user-contact
Advanced tools
Comparing version 3.6.7 to 3.8.0
@@ -21,2 +21,4 @@ function _extends() { | ||
return MobileTemplate; | ||
else if ("mobile-first" === (process.env.TINY_MODE || mode)) | ||
return MobileFirstTemplate; | ||
else | ||
@@ -23,0 +25,0 @@ return PcTemplate; |
@@ -5,5 +5,6 @@ import { renderless, api } from "@opentiny/vue-renderless/user-contact/vue"; | ||
import CardTemplate from "@opentiny/vue-card-template"; | ||
import Espace from "@opentiny/vue-espace"; | ||
import Popover from "@opentiny/vue-popover"; | ||
import { iconChevronUp, iconChevronDown } from "@opentiny/vue-icon"; | ||
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, withDirectives, vShow, toDisplayString, createBlock, resolveDynamicComponent, renderSlot, Fragment, renderList } from "vue"; | ||
import { IconChevronUp, IconChevronDown } from "@opentiny/vue-icon"; | ||
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, withDirectives, vShow, toDisplayString, createBlock, resolveDynamicComponent, renderSlot, Fragment, renderList, createCommentVNode } from "vue"; | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
@@ -54,10 +55,11 @@ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
var _sfc_main = /* @__PURE__ */ defineComponent({ | ||
props: [].concat(props, ["data", "showArrow", "showName", "showDescription", "showImg", "placement", "popperClass", "popperAppendToBody", "isNewImMode"]), | ||
var _sfc_main = defineComponent({ | ||
props: [].concat(props, ["data", "showArrow", "espace", "showName", "showNumber", "showImg", "placement", "popperClass", "popperAppendToBody", "isNewImMode"]), | ||
components: { | ||
UserHead, | ||
CardTemplate, | ||
Espace, | ||
Popover, | ||
IconChevronUp: iconChevronUp(), | ||
IconChevronDown: iconChevronDown() | ||
IconChevronUp: IconChevronUp(), | ||
IconChevronDown: IconChevronDown() | ||
}, | ||
@@ -101,9 +103,10 @@ setup: function setup(props2, context) { | ||
var _component_card_template = resolveComponent("card-template"); | ||
var _component_espace = resolveComponent("espace"); | ||
var _component_Popover = resolveComponent("Popover"); | ||
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_Popover, { | ||
placement: "bottom-start", | ||
onShow: _cache[2] || (_cache[2] = function($event) { | ||
onShow: _cache[3] || (_cache[3] = function($event) { | ||
return _ctx.show = true; | ||
}), | ||
onHide: _cache[3] || (_cache[3] = function($event) { | ||
onHide: _cache[4] || (_cache[4] = function($event) { | ||
return _ctx.show = false; | ||
@@ -119,2 +122,5 @@ }), | ||
href: _ctx.getUserHref(), | ||
onClick: _cache[1] || (_cache[1] = function() { | ||
return _ctx.doUserAction && _ctx.doUserAction.apply(_ctx, arguments); | ||
}), | ||
class: "dropdown-part" | ||
@@ -142,6 +148,6 @@ }, [withDirectives(createVNode(_component_user_head, { | ||
}, | ||
toDisplayString(_ctx.data.userDescription), | ||
toDisplayString(_ctx.data.roleNumber), | ||
513 | ||
/* TEXT, NEED_PATCH */ | ||
), [[vShow, _ctx.showDescription]])])], 8, _hoisted_2), (openBlock(), createBlock(resolveDynamicComponent(_ctx.show ? "icon-chevron-up" : "icon-chevron-down"), { | ||
), [[vShow, _ctx.showNumber]])])], 8, _hoisted_2), (openBlock(), createBlock(resolveDynamicComponent(_ctx.show ? "icon-chevron-up" : "icon-chevron-down"), { | ||
class: "tiny-svg-size tiny-user-contact__arrow" | ||
@@ -170,3 +176,3 @@ }))]; | ||
modelValue: _ctx.data.imgUrl, | ||
"onUpdate:modelValue": _cache[1] || (_cache[1] = function($event) { | ||
"onUpdate:modelValue": _cache[2] || (_cache[2] = function($event) { | ||
return _ctx.data.imgUrl = $event; | ||
@@ -188,6 +194,6 @@ }), | ||
}, | ||
toDisplayString(_ctx.data.userDescription), | ||
toDisplayString(_ctx.t("ui.usercard.empno")) + ":" + toDisplayString(_ctx.data.roleNumber), | ||
513 | ||
/* TEXT, NEED_PATCH */ | ||
), [[vShow, _ctx.showDescription]])])])])]; | ||
), [[vShow, _ctx.showNumber]])])])])]; | ||
}), | ||
@@ -218,3 +224,6 @@ default: withCtx(function() { | ||
/* KEYED_FRAGMENT */ | ||
))])])]; | ||
))]), _ctx.espace && _ctx.espace.length ? (openBlock(), createBlock(_component_espace, { | ||
key: 0, | ||
data: _ctx.espace | ||
}, null, 8, ["data"])) : createCommentVNode("v-if", true)])]; | ||
}), | ||
@@ -221,0 +230,0 @@ _: 1 |
{ | ||
"name": "@opentiny/vue-user-contact", | ||
"version": "3.6.7", | ||
"version": "3.8.0", | ||
"description": "", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.6.6", | ||
"@opentiny/vue-common": "~3.6.7", | ||
"@opentiny/vue-user-head": "~3.6.7", | ||
"@opentiny/vue-card-template": "~3.6.7", | ||
"@opentiny/vue-popover": "~3.6.7", | ||
"@opentiny/vue-icon": "~3.6.7" | ||
"@opentiny/vue-renderless": "~3.8.0", | ||
"@opentiny/vue-common": "~3.8.0", | ||
"@opentiny/vue-user-head": "~3.8.0", | ||
"@opentiny/vue-card-template": "~3.8.0", | ||
"@opentiny/vue-popover": "~3.8.0", | ||
"@opentiny/vue-icon": "~3.8.0" | ||
}, | ||
@@ -14,0 +15,0 @@ "license": "MIT", |
@@ -40,2 +40,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{ | ||
}; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (FunctionConstructor | ObjectConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { | ||
@@ -82,7 +88,14 @@ [key: string]: any; | ||
}; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (FunctionConstructor | ObjectConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}>>, { | ||
tiny_mode_root: boolean; | ||
popperAppendToBody: boolean; | ||
isNewImMode: boolean; | ||
showName: boolean; | ||
showArrow: boolean; | ||
showName: boolean; | ||
showDescription: boolean; | ||
@@ -89,0 +102,0 @@ showImg: boolean; |
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; | ||
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{ | ||
}>, any, 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; | ||
@@ -12,0 +5,0 @@ }>>>, { |
16144
441
3
+ Added@opentiny/vue-card-template@3.8.3(transitive)
+ Added@opentiny/vue-common@3.8.3(transitive)
+ Added@opentiny/vue-icon@3.8.3(transitive)
+ Added@opentiny/vue-locale@3.8.3(transitive)
+ Added@opentiny/vue-popover@3.8.3(transitive)
+ Added@opentiny/vue-renderless@3.8.4(transitive)
+ Added@opentiny/vue-theme@3.8.5(transitive)
+ Added@opentiny/vue-theme-mobile@3.8.3(transitive)
+ Added@opentiny/vue-user-head@3.8.3(transitive)
+ Addedtailwind-merge@1.14.0(transitive)
- Removed@opentiny/vue-card-template@3.6.7(transitive)
- Removed@opentiny/vue-common@3.6.7(transitive)
- Removed@opentiny/vue-icon@3.6.7(transitive)
- Removed@opentiny/vue-locale@3.6.7(transitive)
- Removed@opentiny/vue-popover@3.6.7(transitive)
- Removed@opentiny/vue-renderless@3.6.8(transitive)
- Removed@opentiny/vue-theme@3.6.7(transitive)
- Removed@opentiny/vue-theme-mobile@3.6.6(transitive)
- Removed@opentiny/vue-user-head@3.6.7(transitive)
Updated@opentiny/vue-common@~3.8.0
Updated@opentiny/vue-icon@~3.8.0
Updated@opentiny/vue-popover@~3.8.0