@weni/unnnic-system 2.0.14 → 2.0.16
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/style.css +1 -1
- package/dist/unnnic.mjs +22 -12
- package/dist/unnnic.umd.js +4 -4
- package/package.json +1 -1
- package/src/components/Icon.vue +2 -2
- package/src/components/SelectSmart/SelectSmart.vue +6 -2
- package/src/components/Tag/DefaultTag.vue +14 -7
- package/src/stories/SelectSmart2.stories.js +0 -59
package/dist/unnnic.mjs
CHANGED
|
@@ -3981,8 +3981,8 @@ const ON = {
|
|
|
3981
3981
|
}
|
|
3982
3982
|
},
|
|
3983
3983
|
methods: {
|
|
3984
|
-
onClick() {
|
|
3985
|
-
this.clickable && this.$emit("click");
|
|
3984
|
+
onClick(e) {
|
|
3985
|
+
this.clickable && this.$emit("click", e);
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
3988
|
};
|
|
@@ -4015,7 +4015,7 @@ function VN(e, i, n, s, r, o) {
|
|
|
4015
4015
|
])
|
|
4016
4016
|
}, null, 40, ["onClick", "class"]));
|
|
4017
4017
|
}
|
|
4018
|
-
const G = /* @__PURE__ */ C(ON, [["render", VN], ["__scopeId", "data-v-
|
|
4018
|
+
const G = /* @__PURE__ */ C(ON, [["render", VN], ["__scopeId", "data-v-ae4ee88c"]]);
|
|
4019
4019
|
const FN = {
|
|
4020
4020
|
components: {
|
|
4021
4021
|
BaseInput: Qc,
|
|
@@ -12955,6 +12955,9 @@ const eU = {
|
|
|
12955
12955
|
methods: {
|
|
12956
12956
|
closeClicked() {
|
|
12957
12957
|
this.closeClicked && this.$emit("close-click");
|
|
12958
|
+
},
|
|
12959
|
+
emitClose() {
|
|
12960
|
+
this.$emit("close");
|
|
12958
12961
|
}
|
|
12959
12962
|
}
|
|
12960
12963
|
};
|
|
@@ -12970,17 +12973,20 @@ function nU(e, i, n, s, r, o) {
|
|
|
12970
12973
|
${n.hasCloseIcon ? "unnnic-tag__label--hasIcon" : ""}
|
|
12971
12974
|
${n.disabled ? "unnnic-tag__label--disabled" : ""}`)
|
|
12972
12975
|
}, D(n.text), 3),
|
|
12973
|
-
n.hasCloseIcon ? (u(),
|
|
12976
|
+
n.hasCloseIcon ? (u(), m("div", {
|
|
12974
12977
|
key: 0,
|
|
12975
|
-
|
|
12976
|
-
class: "unnnic-tag__icon"
|
|
12977
|
-
|
|
12978
|
-
|
|
12979
|
-
|
|
12980
|
-
|
|
12978
|
+
onClick: i[0] || (i[0] = Ke((...h) => o.emitClose && o.emitClose(...h), ["stop"])),
|
|
12979
|
+
class: "unnnic-tag__icon"
|
|
12980
|
+
}, [
|
|
12981
|
+
O(l, {
|
|
12982
|
+
icon: "close-1",
|
|
12983
|
+
scheme: "neutral-darkest",
|
|
12984
|
+
size: "xs"
|
|
12985
|
+
})
|
|
12986
|
+
])) : B("", !0)
|
|
12981
12987
|
], 2);
|
|
12982
12988
|
}
|
|
12983
|
-
const iU = /* @__PURE__ */ C(eU, [["render", nU], ["__scopeId", "data-v-
|
|
12989
|
+
const iU = /* @__PURE__ */ C(eU, [["render", nU], ["__scopeId", "data-v-9aecc72a"]]);
|
|
12984
12990
|
const tU = {
|
|
12985
12991
|
name: "unnnic-tag",
|
|
12986
12992
|
components: {
|
|
@@ -14945,6 +14951,10 @@ const NY = {
|
|
|
14945
14951
|
selectFirst: {
|
|
14946
14952
|
type: Boolean,
|
|
14947
14953
|
default: !0
|
|
14954
|
+
},
|
|
14955
|
+
placeholder: {
|
|
14956
|
+
type: String,
|
|
14957
|
+
default: null
|
|
14948
14958
|
}
|
|
14949
14959
|
},
|
|
14950
14960
|
data() {
|
|
@@ -15190,7 +15200,7 @@ function EY(e, i, n, s, r, o) {
|
|
|
15190
15200
|
class: "unnnic-select-smart__input",
|
|
15191
15201
|
ref: "selectSmartInput",
|
|
15192
15202
|
modelValue: o.inputValue,
|
|
15193
|
-
placeholder: o.autocompletePlaceholder || o.selectedLabel,
|
|
15203
|
+
placeholder: n.placeholder || o.autocompletePlaceholder || o.selectedLabel,
|
|
15194
15204
|
type: n.type,
|
|
15195
15205
|
size: n.size,
|
|
15196
15206
|
disabled: n.disabled,
|