@avakhula/ui 0.0.510-alpha-spa.5 → 0.0.510-alpha-spa.6
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/App.js
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
1
|
+
import t from "./components/TreeSelect/Select.js";
|
|
2
|
+
import { resolveComponent as o, createElementBlock as s, openBlock as n, createVNode as c } from "vue";
|
|
3
|
+
import { _ as r } from "./chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const i = {
|
|
5
5
|
components: {
|
|
6
|
-
|
|
6
|
+
IbSelect: t
|
|
7
7
|
}
|
|
8
|
-
},
|
|
9
|
-
function d
|
|
10
|
-
const e =
|
|
11
|
-
return
|
|
8
|
+
}, p = { style: { display: "flex", "flex-direction": "column", "align-items": "center", "justify-content": "center", height: "100vh" } };
|
|
9
|
+
function a(d, l, _, f, m, u) {
|
|
10
|
+
const e = o("ib-select");
|
|
11
|
+
return n(), s("div", p, [
|
|
12
12
|
c(e, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
]),
|
|
18
|
-
_: 1
|
|
13
|
+
"data-testid": "tests",
|
|
14
|
+
"data-foo": "sdf",
|
|
15
|
+
dusk: "asd",
|
|
16
|
+
options: []
|
|
19
17
|
})
|
|
20
18
|
]);
|
|
21
19
|
}
|
|
22
|
-
const
|
|
20
|
+
const b = /* @__PURE__ */ r(i, [["render", a]]);
|
|
23
21
|
export {
|
|
24
|
-
|
|
22
|
+
b as default
|
|
25
23
|
};
|
|
@@ -88,7 +88,7 @@ function v(e, w, t, k, C, s) {
|
|
|
88
88
|
]), 1040, ["horizontal", "vertical", "isOpened", "closeOnClick", "disabled", "onAll"])
|
|
89
89
|
], 2);
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const P = /* @__PURE__ */ y(O, [["render", v]]);
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
P as default
|
|
94
94
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import b from "../../../helpers/generateUID.js";
|
|
2
2
|
import p from "../../Alert/Alert.js";
|
|
3
3
|
import _ from "../CharactersCount.js";
|
|
4
|
-
import { resolveComponent as o, createElementBlock as L, openBlock as c, normalizeClass as x, createBlock as
|
|
4
|
+
import { resolveComponent as o, createElementBlock as L, openBlock as c, normalizeClass as x, createBlock as y, createCommentVNode as I, withDirectives as s, createElementVNode as u, createVNode as d, withCtx as h, createTextVNode as m, toDisplayString as f, vShow as v, mergeProps as M, vModelText as S, renderSlot as C } from "vue";
|
|
5
5
|
import { _ as O } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const w = {
|
|
7
7
|
name: "IbTextarea",
|
|
@@ -80,11 +80,11 @@ function N(t, r, e, T, l, a) {
|
|
|
80
80
|
class: x(["textarea-wrapper", { disabled: e.disabled, hasActins: t.$slots.actions }]),
|
|
81
81
|
onFocusout: r[2] || (r[2] = (...i) => a.onFocusOut && a.onFocusOut(...i))
|
|
82
82
|
}, [
|
|
83
|
-
e.characterLimit ? (c(),
|
|
83
|
+
e.characterLimit ? (c(), y(g, {
|
|
84
84
|
key: 0,
|
|
85
85
|
"character-limit": e.characterLimit,
|
|
86
86
|
"character-length": l.val.length
|
|
87
|
-
}, null, 8, ["character-limit", "character-length"])) :
|
|
87
|
+
}, null, 8, ["character-limit", "character-length"])) : I("", !0),
|
|
88
88
|
s(d(n, null, {
|
|
89
89
|
default: h(() => [
|
|
90
90
|
m(f(e.errorMessage), 1)
|
package/dist/components/List.js
CHANGED
|
@@ -5,8 +5,8 @@ import E from "../Icon.js";
|
|
|
5
5
|
import S from "../IconButton/IconButton.js";
|
|
6
6
|
import { TooltipDirective as A } from "../../directives/tooltip/tooltip.js";
|
|
7
7
|
import O from "../../helpers/generateUID.js";
|
|
8
|
-
import
|
|
9
|
-
import { SPACE_KEY_CODE as
|
|
8
|
+
import L from "../../helpers/multiLineOverflows.js";
|
|
9
|
+
import { SPACE_KEY_CODE as N, ARROW_RIGHT_KEY_CODE as K, ARROW_LEFT_KEY_CODE as x } from "../../constants/keyCodes.js";
|
|
10
10
|
import { resolveComponent as d, resolveDirective as H, createElementBlock as l, openBlock as n, withDirectives as r, withModifiers as u, normalizeClass as f, createElementVNode as _, createCommentVNode as v, createVNode as p, withCtx as C, vShow as m, createBlock as c, resolveDynamicComponent as P, toDisplayString as b, Fragment as T, createTextVNode as R, renderList as F } from "vue";
|
|
11
11
|
import { _ as Y } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const z = {
|
|
@@ -62,7 +62,7 @@ const z = {
|
|
|
62
62
|
},
|
|
63
63
|
updated() {
|
|
64
64
|
this.$nextTick(() => {
|
|
65
|
-
this.option.showTooltipByDefault ? this.showTooltip = !0 :
|
|
65
|
+
this.option.showTooltipByDefault ? this.showTooltip = !0 : L(this.$el.querySelector(".option-label")) && (this.showTooltip = !0);
|
|
66
66
|
});
|
|
67
67
|
},
|
|
68
68
|
data() {
|
|
@@ -73,7 +73,7 @@ const z = {
|
|
|
73
73
|
},
|
|
74
74
|
methods: {
|
|
75
75
|
onKeydown(t) {
|
|
76
|
-
t.keyCode ===
|
|
76
|
+
t.keyCode === N && (t.preventDefault(), this.onChange()), this.hasVisibleChildren && (t.keyCode === K && (this.option.isChildrenVisible = !0), t.keyCode === x && (this.option.isChildrenVisible = !1));
|
|
77
77
|
},
|
|
78
78
|
onChange() {
|
|
79
79
|
var t, i;
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avakhula/ui",
|
|
3
|
-
"version": "0.0.510-alpha-spa.
|
|
3
|
+
"version": "0.0.510-alpha-spa.06",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
|
-
"sideEffects": false,
|
|
7
6
|
"private": false,
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"*.css",
|
|
9
|
+
"*.scss"
|
|
10
|
+
],
|
|
8
11
|
"files": [ "dist", "src" ],
|
|
9
12
|
"publishConfig": {
|
|
10
13
|
"access": "public",
|
package/src/App.vue
CHANGED
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh;">
|
|
3
|
-
|
|
4
|
-
<ib-textarea
|
|
5
|
-
@blur="console.log('test')"
|
|
6
|
-
>
|
|
7
|
-
|
|
8
|
-
<template #actions>
|
|
9
|
-
<button>test</button>
|
|
10
|
-
</template>
|
|
11
|
-
</ib-textarea>
|
|
3
|
+
<ib-select data-testid="tests" data-foo="sdf" dusk="asd" :options="[]" />
|
|
12
4
|
</div>
|
|
13
5
|
|
|
14
6
|
</template>
|
|
15
7
|
|
|
16
8
|
<script>
|
|
17
|
-
import
|
|
9
|
+
import IbSelect from "./components/TreeSelect/Select.vue";
|
|
18
10
|
|
|
19
11
|
export default {
|
|
20
12
|
components: {
|
|
21
|
-
|
|
13
|
+
IbSelect,
|
|
22
14
|
},
|
|
23
15
|
};
|
|
24
16
|
</script>
|