@jctrans-materials/comps-vue2 1.0.12 → 1.0.14
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/components/JcSearch/index.d.ts +9 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.js +4 -3
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1165,7 +1165,8 @@ const Zn = qr({
|
|
|
1165
1165
|
placeholder: { type: String, default: "" },
|
|
1166
1166
|
showSearchIcon: { type: Boolean, default: !0 },
|
|
1167
1167
|
showItemTag: { type: Boolean, default: !0 },
|
|
1168
|
-
showApplyData: { type: Boolean, default: !0 }
|
|
1168
|
+
showApplyData: { type: Boolean, default: !0 },
|
|
1169
|
+
disabled: { type: Boolean, default: !1 }
|
|
1169
1170
|
},
|
|
1170
1171
|
setup(n, { emit: e }) {
|
|
1171
1172
|
const r = Q(""), t = Q(!1), o = Q(""), c = Q(null), B = Q(null), f = Q(null), v = Q(null), a = Q(!1), { searchHistory: i, saveToHistory: p, clearHistory: s } = Ur(
|
|
@@ -1415,7 +1416,7 @@ function Re(n, e, r, t, o, c, B, f) {
|
|
|
1415
1416
|
}
|
|
1416
1417
|
var Jn = function() {
|
|
1417
1418
|
var e = this, r = e._self._c;
|
|
1418
|
-
return e._self._setupProxy, r("div", { staticClass: "search-container" }, [r("div", { ref: "referenceRef", staticClass: "search-input-wrapper", class: { "is-multiple": e.multiple }, on: { click: e.focusInput } }, [r("div", { staticClass: "selection-wrapper" }, [e.multiple && e.selectedItems.length > 0 ? [e._l(e.displayedTags, function(t, o) {
|
|
1419
|
+
return e._self._setupProxy, r("div", { staticClass: "search-container", class: { "is-disabled": e.disabled } }, [r("div", { ref: "referenceRef", staticClass: "search-input-wrapper", class: { "is-multiple": e.multiple }, on: { click: e.focusInput } }, [r("div", { staticClass: "selection-wrapper" }, [e.multiple && e.selectedItems.length > 0 ? [e._l(e.displayedTags, function(t, o) {
|
|
1419
1420
|
return r("div", { key: t.id || o, staticClass: "search-tag" }, [r("span", { staticClass: "tag-text" }, [e._v(e._s(e.getItemLabel(t)))]), r("span", { staticClass: "tag-close", on: { click: function(c) {
|
|
1420
1421
|
return c.stopPropagation(), e.removeItem(t);
|
|
1421
1422
|
} } }, [e._v("×")])]);
|
|
@@ -1460,7 +1461,7 @@ var Jn = function() {
|
|
|
1460
1461
|
ea,
|
|
1461
1462
|
!1,
|
|
1462
1463
|
null,
|
|
1463
|
-
"
|
|
1464
|
+
"b6754d09"
|
|
1464
1465
|
);
|
|
1465
1466
|
const gr = ta.exports, ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1466
1467
|
__proto__: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jctrans-materials/comps-vue2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "JCtrans Search Component compatible with Vue 2.6+ and Vue 3",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"jctrans-ui": "^2.15.15",
|
|
31
31
|
"nanoid": "^5.1.6",
|
|
32
32
|
"sass": "^1.94.2",
|
|
33
|
-
"@jctrans-materials/shared": "1.0.
|
|
33
|
+
"@jctrans-materials/shared": "1.0.14"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/crypto-js": "^4.2.2",
|