wave-ui 2.42.1 → 2.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wave-ui.es.js
CHANGED
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createElementVNode, withKeys, createBlock, withModifiers, createCommentVNode, renderSlot, createVNode, withCtx, mergeProps, toHandlers, createTextVNode, toDisplayString, TransitionGroup, Transition, normalizeStyle, resolveDynamicComponent, withDirectives, createSlots, vShow, vModelText, vModelDynamic, resolveDirective, KeepAlive } from "vue";
|
|
7
|
+
import { reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createElementVNode, withKeys, createBlock, withModifiers, createCommentVNode, renderSlot, createVNode, withCtx, mergeProps, toHandlers, createTextVNode, toDisplayString, TransitionGroup, Transition, normalizeStyle, resolveDynamicComponent, normalizeProps, withDirectives, createSlots, vShow, vModelText, vModelDynamic, resolveDirective, KeepAlive } from "vue";
|
|
8
8
|
const config = reactive({
|
|
9
9
|
breakpoints: {
|
|
10
10
|
xs: 600,
|
|
@@ -666,7 +666,7 @@ function render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
666
666
|
return $data.show ? (openBlock(), createElementBlock("div", mergeProps({
|
|
667
667
|
key: 0,
|
|
668
668
|
class: "w-alert"
|
|
669
|
-
}, toHandlers(_ctx.$attrs), { class: $options.classes }), [
|
|
669
|
+
}, toHandlers(_ctx.$attrs, true), { class: $options.classes }), [
|
|
670
670
|
$options.type || $props.icon || $props.dismiss ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
671
671
|
$options.type || $props.icon ? (openBlock(), createBlock(_component_w_icon, {
|
|
672
672
|
key: 0,
|
|
@@ -1046,7 +1046,7 @@ const _sfc_main$M = {
|
|
|
1046
1046
|
};
|
|
1047
1047
|
var wApp = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", render$M]]);
|
|
1048
1048
|
function render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1049
|
-
return openBlock(), createElementBlock("div", mergeProps({ class: "w-badge-wrap" }, toHandlers(_ctx.$attrs)), [
|
|
1049
|
+
return openBlock(), createElementBlock("div", mergeProps({ class: "w-badge-wrap" }, toHandlers(_ctx.$attrs, true)), [
|
|
1050
1050
|
renderSlot(_ctx.$slots, "default"),
|
|
1051
1051
|
createVNode(Transition, {
|
|
1052
1052
|
name: `${$props.transition}`
|
|
@@ -1248,12 +1248,12 @@ function render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1248
1248
|
disabled: !!$props.disabled || null
|
|
1249
1249
|
}, toHandlers($options.listeners), _ctx.$attrs, { style: $options.styles }), {
|
|
1250
1250
|
default: withCtx(() => [
|
|
1251
|
-
$props.icon ? (openBlock(), createBlock(_component_w_icon, { key: 0 }, {
|
|
1251
|
+
$props.icon ? (openBlock(), createBlock(_component_w_icon, normalizeProps(mergeProps({ key: 0 }, $props.iconProps || {})), {
|
|
1252
1252
|
default: withCtx(() => [
|
|
1253
1253
|
createTextVNode(toDisplayString($props.icon), 1)
|
|
1254
1254
|
]),
|
|
1255
1255
|
_: 1
|
|
1256
|
-
})) : renderSlot(_ctx.$slots, "default", { key: 1 }),
|
|
1256
|
+
}, 16)) : renderSlot(_ctx.$slots, "default", { key: 1 }),
|
|
1257
1257
|
createVNode(Transition, { name: "scale-fade" }, {
|
|
1258
1258
|
default: withCtx(() => [
|
|
1259
1259
|
$props.loading ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
@@ -1286,6 +1286,7 @@ const _sfc_main$J = {
|
|
|
1286
1286
|
disabled: { type: Boolean },
|
|
1287
1287
|
loading: { type: Boolean },
|
|
1288
1288
|
icon: { type: String, default: null },
|
|
1289
|
+
iconProps: { type: Object, default: () => ({}) },
|
|
1289
1290
|
absolute: { type: Boolean },
|
|
1290
1291
|
fixed: { type: Boolean },
|
|
1291
1292
|
top: { type: Boolean },
|
|
@@ -1331,7 +1332,7 @@ const _sfc_main$J = {
|
|
|
1331
1332
|
];
|
|
1332
1333
|
},
|
|
1333
1334
|
externalLink() {
|
|
1334
|
-
return /^(https?:)
|
|
1335
|
+
return /^(https?:)?\/\/|mailto:|tel:/.test(this.route);
|
|
1335
1336
|
},
|
|
1336
1337
|
classes() {
|
|
1337
1338
|
return {
|
|
@@ -1960,13 +1961,15 @@ function render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1960
1961
|
name: "title",
|
|
1961
1962
|
fn: withCtx(() => [
|
|
1962
1963
|
renderSlot(_ctx.$slots, "title")
|
|
1963
|
-
])
|
|
1964
|
+
]),
|
|
1965
|
+
key: "0"
|
|
1964
1966
|
} : void 0,
|
|
1965
1967
|
_ctx.$slots.actions ? {
|
|
1966
1968
|
name: "actions",
|
|
1967
1969
|
fn: withCtx(() => [
|
|
1968
1970
|
renderSlot(_ctx.$slots, "actions")
|
|
1969
|
-
])
|
|
1971
|
+
]),
|
|
1972
|
+
key: "1"
|
|
1970
1973
|
} : void 0
|
|
1971
1974
|
]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
|
|
1972
1975
|
[vShow, $data.showContent]
|
|
@@ -2982,7 +2985,7 @@ function render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2982
2985
|
class: "w-input__input",
|
|
2983
2986
|
ref: "input",
|
|
2984
2987
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.inputValue = $event)
|
|
2985
|
-
}, toHandlers($options.listeners), {
|
|
2988
|
+
}, toHandlers($options.listeners, true), {
|
|
2986
2989
|
onInput: _cache[3] || (_cache[3] = (...args) => $options.onInput && $options.onInput(...args)),
|
|
2987
2990
|
onFocus: _cache[4] || (_cache[4] = (...args) => $options.onFocus && $options.onFocus(...args)),
|
|
2988
2991
|
onBlur: _cache[5] || (_cache[5] = (...args) => $options.onBlur && $options.onBlur(...args)),
|
|
@@ -3377,7 +3380,8 @@ function render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3377
3380
|
index: index2,
|
|
3378
3381
|
selected
|
|
3379
3382
|
})
|
|
3380
|
-
])
|
|
3383
|
+
]),
|
|
3384
|
+
key: "0"
|
|
3381
3385
|
} : {
|
|
3382
3386
|
name: "default",
|
|
3383
3387
|
fn: withCtx(({ item, index: index2, selected }) => [
|
|
@@ -3388,7 +3392,8 @@ function render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3388
3392
|
}, () => [
|
|
3389
3393
|
createTextVNode(toDisplayString(item[$props.itemLabelKey]), 1)
|
|
3390
3394
|
])
|
|
3391
|
-
])
|
|
3395
|
+
]),
|
|
3396
|
+
key: "1"
|
|
3392
3397
|
}
|
|
3393
3398
|
]), 1040, ["items", "depth"])) : createCommentVNode("", true)
|
|
3394
3399
|
], 2);
|
|
@@ -3660,7 +3665,7 @@ var DetachableMixin = {
|
|
|
3660
3665
|
alignRight: { type: Boolean },
|
|
3661
3666
|
noPosition: { type: Boolean },
|
|
3662
3667
|
zIndex: { type: [Number, String, Boolean] },
|
|
3663
|
-
activator: { type: [String, Object
|
|
3668
|
+
activator: { type: [String, Object] }
|
|
3664
3669
|
},
|
|
3665
3670
|
inject: {
|
|
3666
3671
|
detachableDefaultRoot: { default: null }
|
|
@@ -3942,13 +3947,15 @@ function render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3942
3947
|
name: "title",
|
|
3943
3948
|
fn: withCtx(() => [
|
|
3944
3949
|
renderSlot(_ctx.$slots, "title")
|
|
3945
|
-
])
|
|
3950
|
+
]),
|
|
3951
|
+
key: "0"
|
|
3946
3952
|
} : void 0,
|
|
3947
3953
|
_ctx.$slots.actions ? {
|
|
3948
3954
|
name: "actions",
|
|
3949
3955
|
fn: withCtx(() => [
|
|
3950
3956
|
renderSlot(_ctx.$slots, "actions")
|
|
3951
|
-
])
|
|
3957
|
+
]),
|
|
3958
|
+
key: "1"
|
|
3952
3959
|
} : void 0
|
|
3953
3960
|
]), 1040, ["tile", "title-class", "content-class", "shadow", "no-border", "class", "style"])) : createCommentVNode("", true)
|
|
3954
3961
|
]),
|
|
@@ -5679,7 +5686,7 @@ function render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5679
5686
|
_ctx.$refs.input.focus();
|
|
5680
5687
|
_ctx.$refs.input.click();
|
|
5681
5688
|
})
|
|
5682
|
-
}, toHandlers(_ctx.$attrs), { class: $options.inputClasses }), [
|
|
5689
|
+
}, toHandlers(_ctx.$attrs, true), { class: $options.inputClasses }), [
|
|
5683
5690
|
_ctx.$slots.track ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
5684
5691
|
renderSlot(_ctx.$slots, "track")
|
|
5685
5692
|
])) : createCommentVNode("", true),
|
|
@@ -6589,7 +6596,7 @@ const _sfc_main$d = {
|
|
|
6589
6596
|
var wTable = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", render$d]]);
|
|
6590
6597
|
const _hoisted_1$2 = ["role", "aria-pressed", "tabindex"];
|
|
6591
6598
|
function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6592
|
-
return openBlock(), createElementBlock("span", mergeProps({ class: "w-tag" }, toHandlers(_ctx.$attrs), {
|
|
6599
|
+
return openBlock(), createElementBlock("span", mergeProps({ class: "w-tag" }, toHandlers(_ctx.$attrs, true), {
|
|
6593
6600
|
onClick: _cache[1] || (_cache[1] = ($event) => {
|
|
6594
6601
|
_ctx.$emit("update:modelValue", !$props.modelValue);
|
|
6595
6602
|
_ctx.$emit("input", !$props.modelValue);
|
|
@@ -6714,7 +6721,7 @@ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6714
6721
|
class: "w-textarea__textarea",
|
|
6715
6722
|
ref: "textarea",
|
|
6716
6723
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.inputValue = $event)
|
|
6717
|
-
}, toHandlers($options.listeners), {
|
|
6724
|
+
}, toHandlers($options.listeners, true), {
|
|
6718
6725
|
onInput: _cache[2] || (_cache[2] = (...args) => $options.onInput && $options.onInput(...args)),
|
|
6719
6726
|
onFocus: _cache[3] || (_cache[3] = (...args) => $options.onFocus && $options.onFocus(...args)),
|
|
6720
6727
|
onBlur: _cache[4] || (_cache[4] = (...args) => $options.onBlur && $options.onBlur(...args)),
|