sprintify-ui 0.0.90 → 0.0.92
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/sprintify-ui.es.js
CHANGED
|
@@ -2284,18 +2284,16 @@ const ds = { class: "relative" }, fs = { class: "relative" }, ms = ["value", "pl
|
|
|
2284
2284
|
() => I.value,
|
|
2285
2285
|
() => {
|
|
2286
2286
|
var W;
|
|
2287
|
-
if (
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
(
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
} else
|
|
2298
|
-
m.value = 0, j("");
|
|
2287
|
+
if (I.value) {
|
|
2288
|
+
const ce = t.value.findIndex(
|
|
2289
|
+
(me) => {
|
|
2290
|
+
var Ie;
|
|
2291
|
+
return me.value === ((Ie = I.value) == null ? void 0 : Ie.value);
|
|
2292
|
+
}
|
|
2293
|
+
);
|
|
2294
|
+
ce >= 0 && (m.value = ce), l.modelValueShow && j((W = I.value) == null ? void 0 : W.label);
|
|
2295
|
+
} else
|
|
2296
|
+
m.value = 0, l.modelValueShow && j("");
|
|
2299
2297
|
},
|
|
2300
2298
|
{ immediate: !0 }
|
|
2301
2299
|
), xe(() => {
|
|
@@ -10674,7 +10672,7 @@ const Zm = /* @__PURE__ */ ze(Km, [["render", Jm]]), Xm = { role: "presentation"
|
|
|
10674
10672
|
]);
|
|
10675
10673
|
};
|
|
10676
10674
|
}
|
|
10677
|
-
}), rp = ["value", "name", "placeholder", "disabled", "required"], op = /* @__PURE__ */ H({
|
|
10675
|
+
}), rp = ["value", "name", "placeholder", "disabled", "required", "rows"], op = /* @__PURE__ */ H({
|
|
10678
10676
|
__name: "BaseTextareaAutoresize",
|
|
10679
10677
|
props: {
|
|
10680
10678
|
modelValue: {
|
|
@@ -10697,6 +10695,10 @@ const Zm = /* @__PURE__ */ ze(Km, [["render", Jm]]), Xm = { role: "presentation"
|
|
|
10697
10695
|
default: 100,
|
|
10698
10696
|
type: Number
|
|
10699
10697
|
},
|
|
10698
|
+
rows: {
|
|
10699
|
+
default: 1,
|
|
10700
|
+
type: Number
|
|
10701
|
+
},
|
|
10700
10702
|
submitOnEnter: {
|
|
10701
10703
|
default: !1,
|
|
10702
10704
|
type: Boolean
|
|
@@ -10749,7 +10751,7 @@ const Zm = /* @__PURE__ */ ze(Km, [["render", Jm]]), Xm = { role: "presentation"
|
|
|
10749
10751
|
h(m) ? "border-red-500" : "border-slate-300"
|
|
10750
10752
|
]]),
|
|
10751
10753
|
style: De({ maxHeight: e.maxHeight + "px", gridArea: o }),
|
|
10752
|
-
rows:
|
|
10754
|
+
rows: e.rows,
|
|
10753
10755
|
onInput: E,
|
|
10754
10756
|
onKeyup: $,
|
|
10755
10757
|
onKeydown: L,
|
|
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
default: number;
|
|
20
20
|
type: NumberConstructor;
|
|
21
21
|
};
|
|
22
|
+
rows: {
|
|
23
|
+
default: number;
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
};
|
|
22
26
|
/**
|
|
23
27
|
* Setting this to true will trigger the 'submit' event while pressing Enter.
|
|
24
28
|
* Users will be able to add a line break while pressing Shift + Enter.
|
|
@@ -56,6 +60,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
60
|
default: number;
|
|
57
61
|
type: NumberConstructor;
|
|
58
62
|
};
|
|
63
|
+
rows: {
|
|
64
|
+
default: number;
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
};
|
|
59
67
|
/**
|
|
60
68
|
* Setting this to true will trigger the 'submit' event while pressing Enter.
|
|
61
69
|
* Users will be able to add a line break while pressing Shift + Enter.
|
|
@@ -84,6 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
92
|
disabled: boolean;
|
|
85
93
|
hasError: boolean;
|
|
86
94
|
maxHeight: number;
|
|
95
|
+
rows: number;
|
|
87
96
|
submitOnEnter: boolean;
|
|
88
97
|
}>;
|
|
89
98
|
export default _default;
|
package/package.json
CHANGED
|
@@ -290,24 +290,25 @@ const optionActive = computed(() => {
|
|
|
290
290
|
);
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
-
// Update the keywords when the model value changes
|
|
293
|
+
// Update the keywords + selectionIndex when the model value changes
|
|
294
294
|
watch(
|
|
295
295
|
() => normalizedModelValue.value,
|
|
296
296
|
() => {
|
|
297
|
-
if (props.modelValueShow === false) {
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
297
|
if (normalizedModelValue.value) {
|
|
301
|
-
setKeywords(normalizedModelValue.value?.label);
|
|
302
298
|
const index = filteredNormalizedOptions.value.findIndex(
|
|
303
299
|
(option) => option.value === normalizedModelValue.value?.value
|
|
304
300
|
);
|
|
305
301
|
if (index >= 0) {
|
|
306
302
|
selectionIndex.value = index;
|
|
307
303
|
}
|
|
304
|
+
if (props.modelValueShow) {
|
|
305
|
+
setKeywords(normalizedModelValue.value?.label);
|
|
306
|
+
}
|
|
308
307
|
} else {
|
|
309
308
|
selectionIndex.value = 0;
|
|
310
|
-
|
|
309
|
+
if (props.modelValueShow) {
|
|
310
|
+
setKeywords('');
|
|
311
|
+
}
|
|
311
312
|
}
|
|
312
313
|
},
|
|
313
314
|
{ immediate: true }
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
hasErrorInternal ? 'border-red-500' : 'border-slate-300',
|
|
17
17
|
]"
|
|
18
18
|
:style="{ maxHeight: maxHeight + 'px', gridArea: BASE_GRID_AREA }"
|
|
19
|
-
rows="
|
|
19
|
+
:rows="rows"
|
|
20
20
|
@input="onInput"
|
|
21
21
|
@keyup="onKeyUp"
|
|
22
22
|
@keydown="onKeyDown"
|
|
@@ -72,6 +72,10 @@ const props = defineProps({
|
|
|
72
72
|
default: 100,
|
|
73
73
|
type: Number,
|
|
74
74
|
},
|
|
75
|
+
rows: {
|
|
76
|
+
default: 1,
|
|
77
|
+
type: Number,
|
|
78
|
+
},
|
|
75
79
|
/**
|
|
76
80
|
* Setting this to true will trigger the 'submit' event while pressing Enter.
|
|
77
81
|
* Users will be able to add a line break while pressing Shift + Enter.
|