@idds/vue 1.4.22 → 1.4.24
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/PasswordInput.vue.d.ts +5 -2
- package/dist/components/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/PhoneInput.vue.d.ts +4 -3
- package/dist/components/PhoneInput.vue.d.ts.map +1 -1
- package/dist/components/TextArea.vue.d.ts +2 -1
- package/dist/components/TextArea.vue.d.ts.map +1 -1
- package/dist/components/TextField.vue.d.ts +3 -2
- package/dist/components/TextField.vue.d.ts.map +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +34 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +217 -130
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -413,7 +413,7 @@ const _hoisted_1$K = ["id", "aria-expanded", "aria-controls", "disabled"];
|
|
|
413
413
|
const _hoisted_2$E = { class: "ina-accordion__title" };
|
|
414
414
|
const _hoisted_3$A = { class: "ina-accordion__toggler" };
|
|
415
415
|
const _hoisted_4$u = ["id", "aria-labelledby"];
|
|
416
|
-
const _hoisted_5$
|
|
416
|
+
const _hoisted_5$p = { class: "ina-accordion__body" };
|
|
417
417
|
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
418
418
|
__name: "Accordion",
|
|
419
419
|
props: {
|
|
@@ -547,7 +547,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
547
547
|
class: normalizeClass(["ina-accordion__content", { "ina-accordion__content--open": isOpen.value }]),
|
|
548
548
|
"aria-labelledby": headerId.value
|
|
549
549
|
}, [
|
|
550
|
-
createElementVNode("div", _hoisted_5$
|
|
550
|
+
createElementVNode("div", _hoisted_5$p, [
|
|
551
551
|
renderSlot(_ctx.$slots, "default")
|
|
552
552
|
])
|
|
553
553
|
], 10, _hoisted_4$u)
|
|
@@ -562,13 +562,13 @@ const _hoisted_4$t = {
|
|
|
562
562
|
key: 0,
|
|
563
563
|
class: "ina-accordion-card__icon"
|
|
564
564
|
};
|
|
565
|
-
const _hoisted_5$
|
|
565
|
+
const _hoisted_5$o = { class: "ina-accordion-card__title-section" };
|
|
566
566
|
const _hoisted_6$k = { class: "ina-accordion-card__title" };
|
|
567
|
-
const _hoisted_7$
|
|
567
|
+
const _hoisted_7$k = {
|
|
568
568
|
key: 0,
|
|
569
569
|
class: "ina-accordion-card__subtitle"
|
|
570
570
|
};
|
|
571
|
-
const _hoisted_8$
|
|
571
|
+
const _hoisted_8$f = ["id", "aria-labelledby"];
|
|
572
572
|
const _hoisted_9$b = { class: "ina-accordion-card__body" };
|
|
573
573
|
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
574
574
|
__name: "AccordionCard",
|
|
@@ -626,13 +626,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
626
626
|
__props.icon ? (openBlock(), createElementBlock("div", _hoisted_4$t, [
|
|
627
627
|
(openBlock(), createBlock(resolveDynamicComponent(__props.icon), { size: 20 }))
|
|
628
628
|
])) : createCommentVNode("", true),
|
|
629
|
-
createElementVNode("div", _hoisted_5$
|
|
629
|
+
createElementVNode("div", _hoisted_5$o, [
|
|
630
630
|
createElementVNode("h3", _hoisted_6$k, [
|
|
631
631
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
632
632
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
633
633
|
], true)
|
|
634
634
|
]),
|
|
635
|
-
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_7$
|
|
635
|
+
__props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_7$k, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
636
636
|
])
|
|
637
637
|
]),
|
|
638
638
|
(openBlock(), createElementBlock("svg", {
|
|
@@ -663,7 +663,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
663
663
|
createElementVNode("div", _hoisted_9$b, [
|
|
664
664
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
665
665
|
])
|
|
666
|
-
], 8, _hoisted_8$
|
|
666
|
+
], 8, _hoisted_8$f)) : createCommentVNode("", true)
|
|
667
667
|
]),
|
|
668
668
|
_: 3
|
|
669
669
|
})
|
|
@@ -1194,7 +1194,7 @@ const _hoisted_4$s = {
|
|
|
1194
1194
|
key: 0,
|
|
1195
1195
|
class: "ina-alert__title"
|
|
1196
1196
|
};
|
|
1197
|
-
const _hoisted_5$
|
|
1197
|
+
const _hoisted_5$n = {
|
|
1198
1198
|
key: 1,
|
|
1199
1199
|
class: "ina-alert__description"
|
|
1200
1200
|
};
|
|
@@ -1202,7 +1202,7 @@ const _hoisted_6$j = {
|
|
|
1202
1202
|
key: 2,
|
|
1203
1203
|
class: "ina-alert__actions"
|
|
1204
1204
|
};
|
|
1205
|
-
const _hoisted_7$
|
|
1205
|
+
const _hoisted_7$j = ["aria-label"];
|
|
1206
1206
|
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
1207
1207
|
__name: "Alert",
|
|
1208
1208
|
props: {
|
|
@@ -1260,7 +1260,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1260
1260
|
createElementVNode("div", _hoisted_2$B, [
|
|
1261
1261
|
createElementVNode("div", _hoisted_3$x, [
|
|
1262
1262
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_4$s, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
1263
|
-
_ctx.$slots.default || __props.message ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1263
|
+
_ctx.$slots.default || __props.message ? (openBlock(), createElementBlock("div", _hoisted_5$n, [
|
|
1264
1264
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1265
1265
|
createTextVNode(toDisplayString(__props.message), 1)
|
|
1266
1266
|
])
|
|
@@ -1292,7 +1292,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1292
1292
|
"stroke-linejoin": "round"
|
|
1293
1293
|
})
|
|
1294
1294
|
], -1)
|
|
1295
|
-
])], 8, _hoisted_7$
|
|
1295
|
+
])], 8, _hoisted_7$j)) : createCommentVNode("", true)
|
|
1296
1296
|
], 2);
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
@@ -1701,13 +1701,13 @@ const _hoisted_3$v = {
|
|
|
1701
1701
|
class: "ina-card__media"
|
|
1702
1702
|
};
|
|
1703
1703
|
const _hoisted_4$q = ["src", "alt"];
|
|
1704
|
-
const _hoisted_5$
|
|
1704
|
+
const _hoisted_5$m = { class: "ina-card__content" };
|
|
1705
1705
|
const _hoisted_6$i = {
|
|
1706
1706
|
key: 0,
|
|
1707
1707
|
class: "ina-card__avatar"
|
|
1708
1708
|
};
|
|
1709
|
-
const _hoisted_7$
|
|
1710
|
-
const _hoisted_8$
|
|
1709
|
+
const _hoisted_7$i = ["src", "alt"];
|
|
1710
|
+
const _hoisted_8$e = {
|
|
1711
1711
|
key: 0,
|
|
1712
1712
|
class: "ina-card__title"
|
|
1713
1713
|
};
|
|
@@ -1715,11 +1715,11 @@ const _hoisted_9$a = {
|
|
|
1715
1715
|
key: 1,
|
|
1716
1716
|
class: "ina-card__description"
|
|
1717
1717
|
};
|
|
1718
|
-
const _hoisted_10$
|
|
1718
|
+
const _hoisted_10$a = {
|
|
1719
1719
|
key: 1,
|
|
1720
1720
|
class: "ina-card__button"
|
|
1721
1721
|
};
|
|
1722
|
-
const _hoisted_11$
|
|
1722
|
+
const _hoisted_11$a = {
|
|
1723
1723
|
key: 2,
|
|
1724
1724
|
class: "ina-card__media"
|
|
1725
1725
|
};
|
|
@@ -1729,11 +1729,11 @@ const _hoisted_13$6 = {
|
|
|
1729
1729
|
class: "ina-card__media"
|
|
1730
1730
|
};
|
|
1731
1731
|
const _hoisted_14$5 = ["src", "alt"];
|
|
1732
|
-
const _hoisted_15$
|
|
1732
|
+
const _hoisted_15$5 = {
|
|
1733
1733
|
key: 4,
|
|
1734
1734
|
class: "ina-card__media"
|
|
1735
1735
|
};
|
|
1736
|
-
const _hoisted_16$
|
|
1736
|
+
const _hoisted_16$4 = ["src", "alt"];
|
|
1737
1737
|
const _hoisted_17$3 = {
|
|
1738
1738
|
key: 0,
|
|
1739
1739
|
class: "ina-card__header"
|
|
@@ -1841,18 +1841,18 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1841
1841
|
}, null, 8, _hoisted_4$q)) : createCommentVNode("", true)
|
|
1842
1842
|
])
|
|
1843
1843
|
])) : createCommentVNode("", true),
|
|
1844
|
-
createElementVNode("div", _hoisted_5$
|
|
1844
|
+
createElementVNode("div", _hoisted_5$m, [
|
|
1845
1845
|
__props.avatar || _ctx.$slots.avatar ? (openBlock(), createElementBlock("div", _hoisted_6$i, [
|
|
1846
1846
|
renderSlot(_ctx.$slots, "avatar", {}, () => [
|
|
1847
1847
|
__props.avatar ? (openBlock(), createElementBlock("img", {
|
|
1848
1848
|
key: 0,
|
|
1849
1849
|
src: __props.avatar,
|
|
1850
1850
|
alt: __props.avatarAlt || "Avatar"
|
|
1851
|
-
}, null, 8, _hoisted_7$
|
|
1851
|
+
}, null, 8, _hoisted_7$i)) : createCommentVNode("", true)
|
|
1852
1852
|
])
|
|
1853
1853
|
])) : createCommentVNode("", true),
|
|
1854
1854
|
createElementVNode("div", null, [
|
|
1855
|
-
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("h3", _hoisted_8$
|
|
1855
|
+
__props.title || _ctx.$slots.title ? (openBlock(), createElementBlock("h3", _hoisted_8$e, [
|
|
1856
1856
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
1857
1857
|
typeof __props.title !== "string" && __props.title ? (openBlock(), createBlock(resolveDynamicComponent(__props.title), { key: 0 })) : typeof __props.title === "string" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1858
1858
|
createTextVNode(toDisplayString(__props.title), 1)
|
|
@@ -1867,7 +1867,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1867
1867
|
])
|
|
1868
1868
|
])) : createCommentVNode("", true)
|
|
1869
1869
|
]),
|
|
1870
|
-
__props.showButton || _ctx.$slots.button ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
1870
|
+
__props.showButton || _ctx.$slots.button ? (openBlock(), createElementBlock("div", _hoisted_10$a, [
|
|
1871
1871
|
renderSlot(_ctx.$slots, "button", {}, () => [
|
|
1872
1872
|
__props.showButton && __props.buttonText ? (openBlock(), createBlock(_sfc_main$G, {
|
|
1873
1873
|
key: 0,
|
|
@@ -1883,7 +1883,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1883
1883
|
])
|
|
1884
1884
|
])) : createCommentVNode("", true)
|
|
1885
1885
|
]),
|
|
1886
|
-
__props.variant === "basic" && computedMediaPosition.value === "bottom" ? (openBlock(), createElementBlock("div", _hoisted_11$
|
|
1886
|
+
__props.variant === "basic" && computedMediaPosition.value === "bottom" ? (openBlock(), createElementBlock("div", _hoisted_11$a, [
|
|
1887
1887
|
renderSlot(_ctx.$slots, "media", {}, () => [
|
|
1888
1888
|
__props.mediaSrc ? (openBlock(), createElementBlock("img", {
|
|
1889
1889
|
key: 0,
|
|
@@ -1901,13 +1901,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1901
1901
|
}, null, 8, _hoisted_14$5)) : createCommentVNode("", true)
|
|
1902
1902
|
])
|
|
1903
1903
|
])) : createCommentVNode("", true),
|
|
1904
|
-
__props.variant === "horizontal" && computedMediaPosition.value === "right" ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
1904
|
+
__props.variant === "horizontal" && computedMediaPosition.value === "right" ? (openBlock(), createElementBlock("div", _hoisted_15$5, [
|
|
1905
1905
|
renderSlot(_ctx.$slots, "media", {}, () => [
|
|
1906
1906
|
__props.mediaSrc ? (openBlock(), createElementBlock("img", {
|
|
1907
1907
|
key: 0,
|
|
1908
1908
|
src: __props.mediaSrc,
|
|
1909
1909
|
alt: __props.mediaAlt || "Card media"
|
|
1910
|
-
}, null, 8, _hoisted_16$
|
|
1910
|
+
}, null, 8, _hoisted_16$4)) : createCommentVNode("", true)
|
|
1911
1911
|
])
|
|
1912
1912
|
])) : createCommentVNode("", true),
|
|
1913
1913
|
__props.variant !== "basic" && __props.variant !== "horizontal" && __props.variant !== "overlay" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
@@ -1961,12 +1961,12 @@ const _hoisted_4$p = {
|
|
|
1961
1961
|
fill: "none",
|
|
1962
1962
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1963
1963
|
};
|
|
1964
|
-
const _hoisted_5$
|
|
1964
|
+
const _hoisted_5$l = { class: "ina-checkbox__content" };
|
|
1965
1965
|
const _hoisted_6$h = {
|
|
1966
1966
|
key: 0,
|
|
1967
1967
|
class: "ina-checkbox__label"
|
|
1968
1968
|
};
|
|
1969
|
-
const _hoisted_7$
|
|
1969
|
+
const _hoisted_7$h = {
|
|
1970
1970
|
key: 1,
|
|
1971
1971
|
class: "ina-checkbox__subtext"
|
|
1972
1972
|
};
|
|
@@ -2101,13 +2101,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
2101
2101
|
}, null, -1)
|
|
2102
2102
|
])])) : createCommentVNode("", true)
|
|
2103
2103
|
], 2),
|
|
2104
|
-
createElementVNode("div", _hoisted_5$
|
|
2104
|
+
createElementVNode("div", _hoisted_5$l, [
|
|
2105
2105
|
_ctx.$slots.default || __props.label ? (openBlock(), createElementBlock("span", _hoisted_6$h, [
|
|
2106
2106
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2107
2107
|
createTextVNode(toDisplayString(__props.label), 1)
|
|
2108
2108
|
])
|
|
2109
2109
|
])) : createCommentVNode("", true),
|
|
2110
|
-
__props.subtext ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
2110
|
+
__props.subtext ? (openBlock(), createElementBlock("span", _hoisted_7$h, toDisplayString(__props.subtext), 1)) : createCommentVNode("", true)
|
|
2111
2111
|
])
|
|
2112
2112
|
], 10, _hoisted_1$z),
|
|
2113
2113
|
__props.statusMessage ? (openBlock(), createElementBlock("div", {
|
|
@@ -2326,24 +2326,27 @@ function sanitizeFileName(fileName) {
|
|
|
2326
2326
|
}
|
|
2327
2327
|
const _hoisted_1$y = { class: "ina-text-field" };
|
|
2328
2328
|
const _hoisted_2$v = ["for"];
|
|
2329
|
-
const _hoisted_3$t = {
|
|
2330
|
-
|
|
2329
|
+
const _hoisted_3$t = { key: 1 };
|
|
2330
|
+
const _hoisted_4$o = {
|
|
2331
|
+
key: 2,
|
|
2331
2332
|
class: "ina-text-field__required"
|
|
2332
2333
|
};
|
|
2333
|
-
const
|
|
2334
|
+
const _hoisted_5$k = {
|
|
2334
2335
|
key: 0,
|
|
2335
2336
|
class: "ina-text-field__prefix-icon"
|
|
2336
2337
|
};
|
|
2337
|
-
const
|
|
2338
|
-
const
|
|
2338
|
+
const _hoisted_6$g = ["id", "name", "type", "placeholder", "disabled", "readonly", "maxlength", "autocomplete", "spellcheck", "autocapitalize", "autocorrect", "inputmode", "dir"];
|
|
2339
|
+
const _hoisted_7$g = {
|
|
2339
2340
|
key: 1,
|
|
2340
2341
|
class: "ina-text-field__char-count"
|
|
2341
2342
|
};
|
|
2343
|
+
const _hoisted_8$d = { key: 1 };
|
|
2342
2344
|
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
2343
2345
|
__name: "TextField",
|
|
2344
2346
|
props: {
|
|
2345
2347
|
modelValue: { default: "" },
|
|
2346
2348
|
label: {},
|
|
2349
|
+
helperText: {},
|
|
2347
2350
|
placeholder: {},
|
|
2348
2351
|
type: { default: "text" },
|
|
2349
2352
|
size: { default: "md" },
|
|
@@ -2390,11 +2393,28 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2390
2393
|
if (providedId) {
|
|
2391
2394
|
return String(providedId);
|
|
2392
2395
|
}
|
|
2393
|
-
if (props.label) {
|
|
2396
|
+
if (props.label && typeof props.label === "string") {
|
|
2394
2397
|
return String(props.label).toLowerCase();
|
|
2395
2398
|
}
|
|
2396
2399
|
return `text-field-${Math.random().toString(36).substr(2, 9)}`;
|
|
2397
2400
|
});
|
|
2401
|
+
const labelComponent = computed(() => {
|
|
2402
|
+
if (!props.label) return null;
|
|
2403
|
+
if (typeof props.label === "string") return null;
|
|
2404
|
+
return props.label;
|
|
2405
|
+
});
|
|
2406
|
+
const bottomText = computed(() => {
|
|
2407
|
+
if (props.status !== "neutral" && props.statusMessage) {
|
|
2408
|
+
return props.statusMessage;
|
|
2409
|
+
}
|
|
2410
|
+
return props.statusMessage || props.helperText;
|
|
2411
|
+
});
|
|
2412
|
+
const bottomTextComponent = computed(() => {
|
|
2413
|
+
const text = bottomText.value;
|
|
2414
|
+
if (!text) return null;
|
|
2415
|
+
if (typeof text === "string") return null;
|
|
2416
|
+
return text;
|
|
2417
|
+
});
|
|
2398
2418
|
const filteredAttrs = computed(() => {
|
|
2399
2419
|
const { id, name, ...rest } = attrs;
|
|
2400
2420
|
return rest;
|
|
@@ -2558,13 +2578,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2558
2578
|
for: inputId.value,
|
|
2559
2579
|
class: "ina-text-field__label"
|
|
2560
2580
|
}, [
|
|
2561
|
-
|
|
2562
|
-
__props.required ? (openBlock(), createElementBlock("span",
|
|
2581
|
+
labelComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(labelComponent.value), { key: 0 })) : __props.label && typeof __props.label === "string" ? (openBlock(), createElementBlock("span", _hoisted_3$t, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
2582
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_4$o, "*")) : createCommentVNode("", true)
|
|
2563
2583
|
], 8, _hoisted_2$v)) : createCommentVNode("", true),
|
|
2564
2584
|
createElementVNode("div", {
|
|
2565
2585
|
class: normalizeClass(wrapperClasses.value)
|
|
2566
2586
|
}, [
|
|
2567
|
-
__props.prefixIcon ? (openBlock(), createElementBlock("div",
|
|
2587
|
+
__props.prefixIcon ? (openBlock(), createElementBlock("div", _hoisted_5$k, [
|
|
2568
2588
|
(openBlock(), createBlock(resolveDynamicComponent(__props.prefixIcon), { size: 16 }))
|
|
2569
2589
|
])) : createCommentVNode("", true),
|
|
2570
2590
|
withDirectives(createElementVNode("input", mergeProps(filteredAttrs.value, {
|
|
@@ -2588,10 +2608,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2588
2608
|
onInput: handleInput,
|
|
2589
2609
|
onBlur: handleBlur,
|
|
2590
2610
|
onFocus: handleFocus
|
|
2591
|
-
}), null, 16,
|
|
2611
|
+
}), null, 16, _hoisted_6$g), [
|
|
2592
2612
|
[vModelDynamic, inputValue.value]
|
|
2593
2613
|
]),
|
|
2594
|
-
__props.showCharCount && __props.maxLength ? (openBlock(), createElementBlock("div",
|
|
2614
|
+
__props.showCharCount && __props.maxLength ? (openBlock(), createElementBlock("div", _hoisted_7$g, toDisplayString(inputValue.value.length) + "/" + toDisplayString(__props.maxLength), 1)) : createCommentVNode("", true),
|
|
2595
2615
|
__props.showClearButton && !__props.disabled && inputValue.value ? (openBlock(), createElementBlock("button", {
|
|
2596
2616
|
key: 2,
|
|
2597
2617
|
type: "button",
|
|
@@ -2601,10 +2621,16 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
2601
2621
|
createVNode(unref(IconX), { size: 16 })
|
|
2602
2622
|
])) : createCommentVNode("", true)
|
|
2603
2623
|
], 2),
|
|
2604
|
-
|
|
2624
|
+
bottomText.value || validationError.value ? (openBlock(), createElementBlock("div", {
|
|
2605
2625
|
key: 1,
|
|
2606
2626
|
class: normalizeClass(statusClasses.value)
|
|
2607
|
-
},
|
|
2627
|
+
}, [
|
|
2628
|
+
validationError.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2629
|
+
createTextVNode(toDisplayString(validationError.value), 1)
|
|
2630
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2631
|
+
bottomTextComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(bottomTextComponent.value), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_8$d, toDisplayString(bottomText.value), 1))
|
|
2632
|
+
], 64))
|
|
2633
|
+
], 2)) : createCommentVNode("", true)
|
|
2608
2634
|
]);
|
|
2609
2635
|
};
|
|
2610
2636
|
}
|
|
@@ -2616,7 +2642,7 @@ const _hoisted_3$s = {
|
|
|
2616
2642
|
class: "ina-chip__custom-field"
|
|
2617
2643
|
};
|
|
2618
2644
|
const _hoisted_4$n = { key: 0 };
|
|
2619
|
-
const _hoisted_5$
|
|
2645
|
+
const _hoisted_5$j = { key: 1 };
|
|
2620
2646
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
2621
2647
|
__name: "Chip",
|
|
2622
2648
|
props: {
|
|
@@ -2730,7 +2756,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
2730
2756
|
__props.showCustomization && showInput.value ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
|
|
2731
2757
|
__props.customizationComponent ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
|
|
2732
2758
|
(openBlock(), createBlock(resolveDynamicComponent(__props.customizationComponent)))
|
|
2733
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_5$
|
|
2759
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_5$j, [
|
|
2734
2760
|
createVNode(_sfc_main$C, {
|
|
2735
2761
|
"model-value": tempValue.value,
|
|
2736
2762
|
class: "ina-chip__input",
|
|
@@ -3444,13 +3470,13 @@ const _hoisted_1$r = {
|
|
|
3444
3470
|
const _hoisted_2$q = { key: 1 };
|
|
3445
3471
|
const _hoisted_3$o = ["id", "accept", "multiple", "disabled"];
|
|
3446
3472
|
const _hoisted_4$k = { class: "ina-file-upload__content" };
|
|
3447
|
-
const _hoisted_5$
|
|
3473
|
+
const _hoisted_5$i = { class: "ina-file-upload__icon" };
|
|
3448
3474
|
const _hoisted_6$f = { class: "ina-file-upload__text" };
|
|
3449
3475
|
const _hoisted_7$f = { class: "ina-file-upload__title" };
|
|
3450
3476
|
const _hoisted_8$c = { class: "ina-file-upload__description" };
|
|
3451
3477
|
const _hoisted_9$9 = ["disabled"];
|
|
3452
|
-
const _hoisted_10$
|
|
3453
|
-
const _hoisted_11$
|
|
3478
|
+
const _hoisted_10$9 = { class: "ina-file-upload__files" };
|
|
3479
|
+
const _hoisted_11$9 = { class: "ina-file-upload__file-indicator" };
|
|
3454
3480
|
const _hoisted_12$7 = {
|
|
3455
3481
|
key: 0,
|
|
3456
3482
|
class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--uploading"
|
|
@@ -3463,11 +3489,11 @@ const _hoisted_14$4 = {
|
|
|
3463
3489
|
key: 2,
|
|
3464
3490
|
class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--error"
|
|
3465
3491
|
};
|
|
3466
|
-
const _hoisted_15$
|
|
3492
|
+
const _hoisted_15$4 = {
|
|
3467
3493
|
key: 3,
|
|
3468
3494
|
class: "ina-file-upload__file-icon-wrapper ina-file-upload__file-icon-wrapper--success"
|
|
3469
3495
|
};
|
|
3470
|
-
const _hoisted_16$
|
|
3496
|
+
const _hoisted_16$3 = { class: "ina-file-upload__file-info" };
|
|
3471
3497
|
const _hoisted_17$2 = { class: "ina-file-upload__file-name" };
|
|
3472
3498
|
const _hoisted_18$2 = { class: "ina-file-upload__file-size" };
|
|
3473
3499
|
const _hoisted_19$2 = {
|
|
@@ -3739,7 +3765,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3739
3765
|
onChange: handleFileChange
|
|
3740
3766
|
}), null, 16, _hoisted_3$o),
|
|
3741
3767
|
createElementVNode("div", _hoisted_4$k, [
|
|
3742
|
-
createElementVNode("div", _hoisted_5$
|
|
3768
|
+
createElementVNode("div", _hoisted_5$i, [
|
|
3743
3769
|
createVNode(unref(IconUpload), { size: 24 })
|
|
3744
3770
|
]),
|
|
3745
3771
|
createElementVNode("div", _hoisted_6$f, [
|
|
@@ -3755,7 +3781,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3755
3781
|
])
|
|
3756
3782
|
], 34),
|
|
3757
3783
|
files.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
3758
|
-
createElementVNode("div", _hoisted_10$
|
|
3784
|
+
createElementVNode("div", _hoisted_10$9, [
|
|
3759
3785
|
(openBlock(true), createElementBlock(Fragment, null, renderList(displayedFiles.value, (uploadedFile, displayIndex) => {
|
|
3760
3786
|
return openBlock(), createElementBlock("div", {
|
|
3761
3787
|
key: `${uploadedFile.file.name}-${getOriginalIndex(uploadedFile)}`,
|
|
@@ -3765,7 +3791,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3765
3791
|
"ina-file-upload__file--uploading": uploadedFile.status === "uploading"
|
|
3766
3792
|
}])
|
|
3767
3793
|
}, [
|
|
3768
|
-
createElementVNode("div", _hoisted_11$
|
|
3794
|
+
createElementVNode("div", _hoisted_11$9, [
|
|
3769
3795
|
uploadedFile.status === "uploading" ? (openBlock(), createElementBlock("div", _hoisted_12$7, [
|
|
3770
3796
|
createVNode(unref(IconLoader2), {
|
|
3771
3797
|
size: 20,
|
|
@@ -3781,14 +3807,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3781
3807
|
size: 20,
|
|
3782
3808
|
stroke: "2"
|
|
3783
3809
|
})
|
|
3784
|
-
])) : uploadedFile.status === "idle" ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
3810
|
+
])) : uploadedFile.status === "idle" ? (openBlock(), createElementBlock("div", _hoisted_15$4, [
|
|
3785
3811
|
createVNode(unref(IconCircleCheck), {
|
|
3786
3812
|
size: 20,
|
|
3787
3813
|
stroke: "2"
|
|
3788
3814
|
})
|
|
3789
3815
|
])) : createCommentVNode("", true)
|
|
3790
3816
|
]),
|
|
3791
|
-
createElementVNode("div", _hoisted_16$
|
|
3817
|
+
createElementVNode("div", _hoisted_16$3, [
|
|
3792
3818
|
createElementVNode("div", _hoisted_17$2, toDisplayString(unref(sanitizeFileName)(uploadedFile.file.name)), 1),
|
|
3793
3819
|
createElementVNode("div", _hoisted_18$2, toDisplayString(unref(formatFileSize)(uploadedFile.file.size)), 1),
|
|
3794
3820
|
uploadedFile.error ? (openBlock(), createElementBlock("div", _hoisted_19$2, toDisplayString(uploadedFile.error), 1)) : createCommentVNode("", true)
|
|
@@ -4078,7 +4104,7 @@ const _hoisted_3$m = {
|
|
|
4078
4104
|
class: "ina-modal__header"
|
|
4079
4105
|
};
|
|
4080
4106
|
const _hoisted_4$i = ["id"];
|
|
4081
|
-
const _hoisted_5$
|
|
4107
|
+
const _hoisted_5$h = ["aria-label"];
|
|
4082
4108
|
const _hoisted_6$e = { class: "ina-modal__body" };
|
|
4083
4109
|
const _hoisted_7$e = ["id"];
|
|
4084
4110
|
const _hoisted_8$b = {
|
|
@@ -4209,7 +4235,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
4209
4235
|
size: 24,
|
|
4210
4236
|
class: "ina-modal__close-icon"
|
|
4211
4237
|
})
|
|
4212
|
-
], 8, _hoisted_5$
|
|
4238
|
+
], 8, _hoisted_5$h)) : createCommentVNode("", true)
|
|
4213
4239
|
])) : createCommentVNode("", true),
|
|
4214
4240
|
createElementVNode("div", _hoisted_6$e, [
|
|
4215
4241
|
__props.description ? (openBlock(), createElementBlock("div", {
|
|
@@ -4256,7 +4282,7 @@ const _hoisted_4$h = {
|
|
|
4256
4282
|
key: 0,
|
|
4257
4283
|
class: "ina-month-picker__prefix-icon"
|
|
4258
4284
|
};
|
|
4259
|
-
const _hoisted_5$
|
|
4285
|
+
const _hoisted_5$g = { class: "ina-month-picker__trigger-text" };
|
|
4260
4286
|
const _hoisted_6$d = { class: "ina-month-picker__grid" };
|
|
4261
4287
|
const _hoisted_7$d = ["disabled", "onClick", "onMouseenter"];
|
|
4262
4288
|
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
@@ -4524,7 +4550,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
4524
4550
|
__props.showIcon ? (openBlock(), createElementBlock("div", _hoisted_4$h, [..._cache[1] || (_cache[1] = [
|
|
4525
4551
|
createStaticVNode('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-f53ade24><rect x="3" y="4" width="18" height="18" rx="2" ry="2" stroke="currentColor" stroke-width="2" data-v-f53ade24></rect><line x1="16" y1="2" x2="16" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-f53ade24></line><line x1="8" y1="2" x2="8" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-f53ade24></line><line x1="3" y1="10" x2="21" y2="10" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-f53ade24></line></svg>', 1)
|
|
4526
4552
|
])])) : createCommentVNode("", true),
|
|
4527
|
-
createElementVNode("span", _hoisted_5$
|
|
4553
|
+
createElementVNode("span", _hoisted_5$g, toDisplayString(selectedMonthDisplay.value || __props.placeholder), 1),
|
|
4528
4554
|
__props.showClearButton && selectedMonth.value !== void 0 && !__props.disabled && !__props.readonly ? (openBlock(), createElementBlock("button", {
|
|
4529
4555
|
key: 1,
|
|
4530
4556
|
type: "button",
|
|
@@ -4613,7 +4639,7 @@ const _hoisted_2$m = {
|
|
|
4613
4639
|
};
|
|
4614
4640
|
const _hoisted_3$k = { class: "ina-multiple-choice-grid__container" };
|
|
4615
4641
|
const _hoisted_4$g = { class: "ina-multiple-choice-grid__grid" };
|
|
4616
|
-
const _hoisted_5$
|
|
4642
|
+
const _hoisted_5$f = { class: "ina-multiple-choice-grid__header-row" };
|
|
4617
4643
|
const _hoisted_6$c = { class: "ina-multiple-choice-grid__row-label" };
|
|
4618
4644
|
const _hoisted_7$c = ["id", "name", "value", "disabled"];
|
|
4619
4645
|
const _hoisted_8$a = ["for"];
|
|
@@ -4670,7 +4696,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
4670
4696
|
__props.subtitle ? (openBlock(), createElementBlock("div", _hoisted_2$m, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true),
|
|
4671
4697
|
createElementVNode("div", _hoisted_3$k, [
|
|
4672
4698
|
createElementVNode("div", _hoisted_4$g, [
|
|
4673
|
-
createElementVNode("div", _hoisted_5$
|
|
4699
|
+
createElementVNode("div", _hoisted_5$f, [
|
|
4674
4700
|
_cache[1] || (_cache[1] = createElementVNode("div", { class: "ina-multiple-choice-grid__header-cell ina-multiple-choice-grid__header-cell--empty" }, null, -1)),
|
|
4675
4701
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column, colIndex) => {
|
|
4676
4702
|
return openBlock(), createElementBlock("div", {
|
|
@@ -4726,16 +4752,16 @@ const _hoisted_1$m = ["aria-label"];
|
|
|
4726
4752
|
const _hoisted_2$l = { class: "ina-pagination__nav-container" };
|
|
4727
4753
|
const _hoisted_3$j = { class: "ina-pagination__page-info" };
|
|
4728
4754
|
const _hoisted_4$f = { class: "ina-pagination__nav-buttons" };
|
|
4729
|
-
const _hoisted_5$
|
|
4755
|
+
const _hoisted_5$e = ["disabled"];
|
|
4730
4756
|
const _hoisted_6$b = ["disabled", "aria-label"];
|
|
4731
4757
|
const _hoisted_7$b = ["onClick", "disabled", "aria-label", "aria-current"];
|
|
4732
4758
|
const _hoisted_8$9 = ["disabled", "aria-label"];
|
|
4733
4759
|
const _hoisted_9$8 = ["disabled"];
|
|
4734
|
-
const _hoisted_10$
|
|
4760
|
+
const _hoisted_10$8 = {
|
|
4735
4761
|
key: 0,
|
|
4736
4762
|
class: "ina-pagination__page-size-container"
|
|
4737
4763
|
};
|
|
4738
|
-
const _hoisted_11$
|
|
4764
|
+
const _hoisted_11$8 = ["value", "disabled"];
|
|
4739
4765
|
const _hoisted_12$6 = ["value"];
|
|
4740
4766
|
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
4741
4767
|
__name: "Pagination",
|
|
@@ -4878,7 +4904,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
4878
4904
|
"stroke-linejoin": "round"
|
|
4879
4905
|
})
|
|
4880
4906
|
], -1)
|
|
4881
|
-
])], 10, _hoisted_5$
|
|
4907
|
+
])], 10, _hoisted_5$e),
|
|
4882
4908
|
createElementVNode("button", {
|
|
4883
4909
|
type: "button",
|
|
4884
4910
|
class: normalizeClass(["ina-pagination__nav-button", {
|
|
@@ -4973,7 +4999,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
4973
4999
|
])], 10, _hoisted_9$8)
|
|
4974
5000
|
])
|
|
4975
5001
|
]),
|
|
4976
|
-
__props.showPageSize ? (openBlock(), createElementBlock("div", _hoisted_10$
|
|
5002
|
+
__props.showPageSize ? (openBlock(), createElementBlock("div", _hoisted_10$8, [
|
|
4977
5003
|
_cache[4] || (_cache[4] = createElementVNode("span", { class: "ina-pagination__page-size-label" }, " Baris per halaman ", -1)),
|
|
4978
5004
|
createElementVNode("select", {
|
|
4979
5005
|
value: __props.pageSize,
|
|
@@ -4989,7 +5015,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
4989
5015
|
value: opt
|
|
4990
5016
|
}, toDisplayString(opt), 9, _hoisted_12$6);
|
|
4991
5017
|
}), 128))
|
|
4992
|
-
], 42, _hoisted_11$
|
|
5018
|
+
], 42, _hoisted_11$8)
|
|
4993
5019
|
])) : createCommentVNode("", true)
|
|
4994
5020
|
], 10, _hoisted_1$m)) : createCommentVNode("", true);
|
|
4995
5021
|
};
|
|
@@ -4997,13 +5023,14 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
4997
5023
|
});
|
|
4998
5024
|
const _hoisted_1$l = { class: "ina-password-input" };
|
|
4999
5025
|
const _hoisted_2$k = ["for"];
|
|
5000
|
-
const _hoisted_3$i = {
|
|
5001
|
-
|
|
5026
|
+
const _hoisted_3$i = { key: 1 };
|
|
5027
|
+
const _hoisted_4$e = {
|
|
5028
|
+
key: 2,
|
|
5002
5029
|
class: "ina-password-input__required"
|
|
5003
5030
|
};
|
|
5004
|
-
const
|
|
5005
|
-
const
|
|
5006
|
-
const
|
|
5031
|
+
const _hoisted_5$d = ["id", "type", "placeholder", "disabled", "readonly", "maxlength"];
|
|
5032
|
+
const _hoisted_6$a = ["disabled"];
|
|
5033
|
+
const _hoisted_7$a = {
|
|
5007
5034
|
key: 0,
|
|
5008
5035
|
width: "16",
|
|
5009
5036
|
height: "16",
|
|
@@ -5011,7 +5038,7 @@ const _hoisted_6$a = {
|
|
|
5011
5038
|
fill: "none",
|
|
5012
5039
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5013
5040
|
};
|
|
5014
|
-
const
|
|
5041
|
+
const _hoisted_8$8 = {
|
|
5015
5042
|
key: 1,
|
|
5016
5043
|
width: "16",
|
|
5017
5044
|
height: "16",
|
|
@@ -5019,11 +5046,12 @@ const _hoisted_7$a = {
|
|
|
5019
5046
|
fill: "none",
|
|
5020
5047
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5021
5048
|
};
|
|
5022
|
-
const
|
|
5049
|
+
const _hoisted_9$7 = {
|
|
5023
5050
|
key: 1,
|
|
5024
5051
|
class: "ina-password-input__status-area"
|
|
5025
5052
|
};
|
|
5026
|
-
const
|
|
5053
|
+
const _hoisted_10$7 = { key: 1 };
|
|
5054
|
+
const _hoisted_11$7 = {
|
|
5027
5055
|
key: 0,
|
|
5028
5056
|
class: "ina-password-input__character-count"
|
|
5029
5057
|
};
|
|
@@ -5032,6 +5060,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5032
5060
|
props: {
|
|
5033
5061
|
modelValue: { default: "" },
|
|
5034
5062
|
label: {},
|
|
5063
|
+
helperText: {},
|
|
5035
5064
|
placeholder: {},
|
|
5036
5065
|
size: { default: "md" },
|
|
5037
5066
|
status: { default: "neutral" },
|
|
@@ -5049,7 +5078,23 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5049
5078
|
const inputRef = ref();
|
|
5050
5079
|
const inputValue = ref(props.modelValue);
|
|
5051
5080
|
const showPassword = ref(false);
|
|
5052
|
-
const
|
|
5081
|
+
const bottomText = computed(() => {
|
|
5082
|
+
if (props.status !== "neutral" && props.statusMessage) {
|
|
5083
|
+
return props.statusMessage;
|
|
5084
|
+
}
|
|
5085
|
+
return props.statusMessage || props.helperText;
|
|
5086
|
+
});
|
|
5087
|
+
const labelComponent = computed(() => {
|
|
5088
|
+
if (!props.label) return null;
|
|
5089
|
+
if (typeof props.label === "string") return null;
|
|
5090
|
+
return props.label;
|
|
5091
|
+
});
|
|
5092
|
+
const inputId = computed(() => {
|
|
5093
|
+
if (props.label && typeof props.label === "string") {
|
|
5094
|
+
return String(props.label).toLowerCase();
|
|
5095
|
+
}
|
|
5096
|
+
return `password-input-${Math.random().toString(36).substr(2, 9)}`;
|
|
5097
|
+
});
|
|
5053
5098
|
const wrapperClasses = computed(() => {
|
|
5054
5099
|
const classes = ["ina-password-input__wrapper"];
|
|
5055
5100
|
classes.push(`ina-password-input__wrapper--size-${props.size}`);
|
|
@@ -5109,8 +5154,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5109
5154
|
for: inputId.value,
|
|
5110
5155
|
class: "ina-password-input__label"
|
|
5111
5156
|
}, [
|
|
5112
|
-
|
|
5113
|
-
__props.required ? (openBlock(), createElementBlock("span",
|
|
5157
|
+
labelComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(labelComponent.value), { key: 0 })) : __props.label && typeof __props.label === "string" ? (openBlock(), createElementBlock("span", _hoisted_3$i, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
5158
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_4$e, "*")) : createCommentVNode("", true)
|
|
5114
5159
|
], 8, _hoisted_2$k)) : createCommentVNode("", true),
|
|
5115
5160
|
createElementVNode("div", {
|
|
5116
5161
|
class: normalizeClass(wrapperClasses.value)
|
|
@@ -5129,7 +5174,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5129
5174
|
onInput: handleInput,
|
|
5130
5175
|
onBlur: handleBlur,
|
|
5131
5176
|
onFocus: handleFocus
|
|
5132
|
-
}, _ctx.$attrs), null, 16,
|
|
5177
|
+
}, _ctx.$attrs), null, 16, _hoisted_5$d), [
|
|
5133
5178
|
[vModelDynamic, inputValue.value]
|
|
5134
5179
|
]),
|
|
5135
5180
|
createElementVNode("button", {
|
|
@@ -5138,7 +5183,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5138
5183
|
onClick: togglePasswordVisibility,
|
|
5139
5184
|
disabled: __props.disabled
|
|
5140
5185
|
}, [
|
|
5141
|
-
!showPassword.value ? (openBlock(), createElementBlock("svg",
|
|
5186
|
+
!showPassword.value ? (openBlock(), createElementBlock("svg", _hoisted_7$a, [..._cache[1] || (_cache[1] = [
|
|
5142
5187
|
createElementVNode("path", {
|
|
5143
5188
|
d: "M1 12S5 4 12 4s11 8 11 8-4 8-11 8-11-8-11-8z",
|
|
5144
5189
|
stroke: "currentColor",
|
|
@@ -5155,7 +5200,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5155
5200
|
"stroke-linecap": "round",
|
|
5156
5201
|
"stroke-linejoin": "round"
|
|
5157
5202
|
}, null, -1)
|
|
5158
|
-
])])) : (openBlock(), createElementBlock("svg",
|
|
5203
|
+
])])) : (openBlock(), createElementBlock("svg", _hoisted_8$8, [..._cache[2] || (_cache[2] = [
|
|
5159
5204
|
createElementVNode("path", {
|
|
5160
5205
|
d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24",
|
|
5161
5206
|
stroke: "currentColor",
|
|
@@ -5174,13 +5219,15 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
5174
5219
|
"stroke-linejoin": "round"
|
|
5175
5220
|
}, null, -1)
|
|
5176
5221
|
])]))
|
|
5177
|
-
], 8,
|
|
5222
|
+
], 8, _hoisted_6$a)
|
|
5178
5223
|
], 2),
|
|
5179
|
-
|
|
5224
|
+
bottomText.value ? (openBlock(), createElementBlock("div", _hoisted_9$7, [
|
|
5180
5225
|
createElementVNode("div", {
|
|
5181
5226
|
class: normalizeClass(statusClasses.value)
|
|
5182
|
-
},
|
|
5183
|
-
|
|
5227
|
+
}, [
|
|
5228
|
+
typeof bottomText.value !== "string" ? (openBlock(), createBlock(resolveDynamicComponent(bottomText.value), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_10$7, toDisplayString(bottomText.value), 1))
|
|
5229
|
+
], 2),
|
|
5230
|
+
__props.showCharCount && __props.maxLength ? (openBlock(), createElementBlock("div", _hoisted_11$7, toDisplayString(inputValue.value.length) + "/" + toDisplayString(__props.maxLength), 1)) : createCommentVNode("", true)
|
|
5184
5231
|
])) : createCommentVNode("", true)
|
|
5185
5232
|
]);
|
|
5186
5233
|
};
|
|
@@ -5429,24 +5476,26 @@ const COUNTRIES = [
|
|
|
5429
5476
|
];
|
|
5430
5477
|
const _hoisted_1$k = { class: "ina-phone-input" };
|
|
5431
5478
|
const _hoisted_2$j = ["for"];
|
|
5432
|
-
const _hoisted_3$h = {
|
|
5433
|
-
|
|
5479
|
+
const _hoisted_3$h = { key: 1 };
|
|
5480
|
+
const _hoisted_4$d = {
|
|
5481
|
+
key: 2,
|
|
5434
5482
|
class: "ina-phone-input__asterisk"
|
|
5435
5483
|
};
|
|
5436
|
-
const
|
|
5437
|
-
const
|
|
5438
|
-
const
|
|
5439
|
-
const
|
|
5484
|
+
const _hoisted_5$c = ["disabled"];
|
|
5485
|
+
const _hoisted_6$9 = { class: "ina-phone-input__country-flag" };
|
|
5486
|
+
const _hoisted_7$9 = { class: "ina-phone-input__country-code" };
|
|
5487
|
+
const _hoisted_8$7 = {
|
|
5440
5488
|
key: 0,
|
|
5441
5489
|
class: "ina-phone-input__country-dropdown"
|
|
5442
5490
|
};
|
|
5443
|
-
const
|
|
5444
|
-
const
|
|
5445
|
-
const
|
|
5446
|
-
const
|
|
5447
|
-
const
|
|
5448
|
-
const
|
|
5449
|
-
const
|
|
5491
|
+
const _hoisted_9$6 = { class: "ina-phone-input__country-search" };
|
|
5492
|
+
const _hoisted_10$6 = { class: "ina-phone-input__country-list" };
|
|
5493
|
+
const _hoisted_11$6 = ["onClick"];
|
|
5494
|
+
const _hoisted_12$5 = { class: "ina-phone-input__country-flag" };
|
|
5495
|
+
const _hoisted_13$4 = { class: "ina-phone-input__country-name" };
|
|
5496
|
+
const _hoisted_14$3 = { class: "ina-phone-input__country-dial-code" };
|
|
5497
|
+
const _hoisted_15$3 = ["id", "placeholder", "disabled", "readonly"];
|
|
5498
|
+
const _hoisted_16$2 = { key: 1 };
|
|
5450
5499
|
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
5451
5500
|
__name: "PhoneInput",
|
|
5452
5501
|
props: {
|
|
@@ -5479,6 +5528,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5479
5528
|
const inputId = computed(
|
|
5480
5529
|
() => `phone-input-${Math.random().toString(36).substr(2, 9)}`
|
|
5481
5530
|
);
|
|
5531
|
+
const labelComponent = computed(() => {
|
|
5532
|
+
if (!props.label) return null;
|
|
5533
|
+
if (typeof props.label === "string") return null;
|
|
5534
|
+
return props.label;
|
|
5535
|
+
});
|
|
5482
5536
|
const wrapperClasses = computed(() => {
|
|
5483
5537
|
const classes = ["ina-phone-input__wrapper"];
|
|
5484
5538
|
classes.push(`ina-phone-input__wrapper--size-${props.size}`);
|
|
@@ -5499,7 +5553,18 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5499
5553
|
}
|
|
5500
5554
|
return classes;
|
|
5501
5555
|
});
|
|
5502
|
-
const bottomText = computed(() =>
|
|
5556
|
+
const bottomText = computed(() => {
|
|
5557
|
+
if (props.status !== "neutral" && props.statusMessage) {
|
|
5558
|
+
return props.statusMessage;
|
|
5559
|
+
}
|
|
5560
|
+
return props.statusMessage || props.helperText;
|
|
5561
|
+
});
|
|
5562
|
+
const bottomTextComponent = computed(() => {
|
|
5563
|
+
const text = bottomText.value;
|
|
5564
|
+
if (!text) return null;
|
|
5565
|
+
if (typeof text === "string") return null;
|
|
5566
|
+
return text;
|
|
5567
|
+
});
|
|
5503
5568
|
const filteredCountries = computed(() => {
|
|
5504
5569
|
if (!countrySearch.value) {
|
|
5505
5570
|
return props.countries;
|
|
@@ -5611,8 +5676,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5611
5676
|
for: inputId.value,
|
|
5612
5677
|
class: "ina-phone-input__label"
|
|
5613
5678
|
}, [
|
|
5614
|
-
|
|
5615
|
-
__props.required ? (openBlock(), createElementBlock("span",
|
|
5679
|
+
labelComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(labelComponent.value), { key: 0 })) : __props.label && typeof __props.label === "string" ? (openBlock(), createElementBlock("span", _hoisted_3$h, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
|
|
5680
|
+
__props.required ? (openBlock(), createElementBlock("span", _hoisted_4$d, "*")) : createCommentVNode("", true)
|
|
5616
5681
|
], 8, _hoisted_2$j)) : createCommentVNode("", true),
|
|
5617
5682
|
createElementVNode("div", {
|
|
5618
5683
|
class: normalizeClass(wrapperClasses.value)
|
|
@@ -5628,8 +5693,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5628
5693
|
onClick: toggleCountryDropdown,
|
|
5629
5694
|
disabled: __props.disabled || __props.readonly
|
|
5630
5695
|
}, [
|
|
5631
|
-
createElementVNode("span",
|
|
5632
|
-
createElementVNode("span",
|
|
5696
|
+
createElementVNode("span", _hoisted_6$9, toDisplayString(selectedCountry.value.flag), 1),
|
|
5697
|
+
createElementVNode("span", _hoisted_7$9, toDisplayString(selectedCountry.value.dialCode), 1),
|
|
5633
5698
|
(openBlock(), createElementBlock("svg", {
|
|
5634
5699
|
class: normalizeClass(["ina-phone-input__country-chevron", {
|
|
5635
5700
|
"ina-phone-input__country-chevron--open": isCountryDropdownOpen.value
|
|
@@ -5648,11 +5713,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5648
5713
|
"stroke-linejoin": "round"
|
|
5649
5714
|
}, null, -1)
|
|
5650
5715
|
])], 2))
|
|
5651
|
-
], 8,
|
|
5716
|
+
], 8, _hoisted_5$c),
|
|
5652
5717
|
createVNode(Transition, { name: "dropdown" }, {
|
|
5653
5718
|
default: withCtx(() => [
|
|
5654
|
-
isCountryDropdownOpen.value ? (openBlock(), createElementBlock("div",
|
|
5655
|
-
createElementVNode("div",
|
|
5719
|
+
isCountryDropdownOpen.value ? (openBlock(), createElementBlock("div", _hoisted_8$7, [
|
|
5720
|
+
createElementVNode("div", _hoisted_9$6, [
|
|
5656
5721
|
withDirectives(createElementVNode("input", {
|
|
5657
5722
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => countrySearch.value = $event),
|
|
5658
5723
|
ref_key: "searchInputRef",
|
|
@@ -5664,7 +5729,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5664
5729
|
[vModelText, countrySearch.value]
|
|
5665
5730
|
])
|
|
5666
5731
|
]),
|
|
5667
|
-
createElementVNode("div",
|
|
5732
|
+
createElementVNode("div", _hoisted_10$6, [
|
|
5668
5733
|
(openBlock(true), createElementBlock(Fragment, null, renderList(filteredCountries.value, (country) => {
|
|
5669
5734
|
return openBlock(), createElementBlock("button", {
|
|
5670
5735
|
key: country.code,
|
|
@@ -5672,10 +5737,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5672
5737
|
class: normalizeClass(getCountryClasses(country)),
|
|
5673
5738
|
onClick: ($event) => selectCountry(country)
|
|
5674
5739
|
}, [
|
|
5675
|
-
createElementVNode("span",
|
|
5676
|
-
createElementVNode("span",
|
|
5677
|
-
createElementVNode("span",
|
|
5678
|
-
], 10,
|
|
5740
|
+
createElementVNode("span", _hoisted_12$5, toDisplayString(country.flag), 1),
|
|
5741
|
+
createElementVNode("span", _hoisted_13$4, toDisplayString(country.name), 1),
|
|
5742
|
+
createElementVNode("span", _hoisted_14$3, toDisplayString(country.dialCode), 1)
|
|
5743
|
+
], 10, _hoisted_11$6);
|
|
5679
5744
|
}), 128))
|
|
5680
5745
|
])
|
|
5681
5746
|
])) : createCommentVNode("", true)
|
|
@@ -5697,19 +5762,21 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
5697
5762
|
onInput: handleInput,
|
|
5698
5763
|
onBlur: handleBlur,
|
|
5699
5764
|
onFocus: handleFocus
|
|
5700
|
-
}), null, 16,
|
|
5765
|
+
}), null, 16, _hoisted_15$3), [
|
|
5701
5766
|
[vModelText, phoneNumber.value]
|
|
5702
5767
|
])
|
|
5703
5768
|
], 2),
|
|
5704
5769
|
bottomText.value ? (openBlock(), createElementBlock("div", {
|
|
5705
5770
|
key: 1,
|
|
5706
5771
|
class: normalizeClass(helperTextClasses.value)
|
|
5707
|
-
},
|
|
5772
|
+
}, [
|
|
5773
|
+
bottomTextComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(bottomTextComponent.value), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_16$2, toDisplayString(bottomText.value), 1))
|
|
5774
|
+
], 2)) : createCommentVNode("", true)
|
|
5708
5775
|
]);
|
|
5709
5776
|
};
|
|
5710
5777
|
}
|
|
5711
5778
|
});
|
|
5712
|
-
const PhoneInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-
|
|
5779
|
+
const PhoneInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-2d50c62b"]]);
|
|
5713
5780
|
const _hoisted_1$j = {
|
|
5714
5781
|
key: 0,
|
|
5715
5782
|
class: "ina-progress-bar__shimmer"
|
|
@@ -5807,7 +5874,7 @@ const _hoisted_1$i = ["disabled"];
|
|
|
5807
5874
|
const _hoisted_2$i = { class: "ina-radio-input__group" };
|
|
5808
5875
|
const _hoisted_3$g = ["for"];
|
|
5809
5876
|
const _hoisted_4$c = ["id", "name", "value", "disabled"];
|
|
5810
|
-
const _hoisted_5$
|
|
5877
|
+
const _hoisted_5$b = ["for"];
|
|
5811
5878
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
5812
5879
|
__name: "RadioInput",
|
|
5813
5880
|
props: {
|
|
@@ -5912,7 +5979,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
5912
5979
|
createElementVNode("label", {
|
|
5913
5980
|
for: `${labelId.value}-${option.value}-${index2}`,
|
|
5914
5981
|
class: normalizeClass(["ina-radio-input__option-label", { "ina-radio-input__option-label--disabled": __props.disabled }])
|
|
5915
|
-
}, toDisplayString(option.label), 11, _hoisted_5$
|
|
5982
|
+
}, toDisplayString(option.label), 11, _hoisted_5$b)
|
|
5916
5983
|
], 2);
|
|
5917
5984
|
}), 128))
|
|
5918
5985
|
]),
|
|
@@ -5931,7 +5998,7 @@ const _hoisted_2$h = {
|
|
|
5931
5998
|
};
|
|
5932
5999
|
const _hoisted_3$f = { class: "ina-year-picker__wrapper" };
|
|
5933
6000
|
const _hoisted_4$b = ["id", "disabled", "aria-expanded", "aria-labelledby"];
|
|
5934
|
-
const _hoisted_5$
|
|
6001
|
+
const _hoisted_5$a = {
|
|
5935
6002
|
key: 0,
|
|
5936
6003
|
class: "ina-year-picker__prefix-icon"
|
|
5937
6004
|
};
|
|
@@ -6235,7 +6302,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
6235
6302
|
onClick: togglePanel,
|
|
6236
6303
|
onKeydown: handleKeydown
|
|
6237
6304
|
}, [
|
|
6238
|
-
__props.showIcon ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
6305
|
+
__props.showIcon ? (openBlock(), createElementBlock("div", _hoisted_5$a, [..._cache[1] || (_cache[1] = [
|
|
6239
6306
|
createStaticVNode('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-6e7c1cdf><rect x="3" y="4" width="18" height="18" rx="2" ry="2" stroke="currentColor" stroke-width="2" data-v-6e7c1cdf></rect><line x1="16" y1="2" x2="16" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-6e7c1cdf></line><line x1="8" y1="2" x2="8" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-6e7c1cdf></line><line x1="3" y1="10" x2="21" y2="10" stroke="currentColor" stroke-width="2" stroke-linecap="round" data-v-6e7c1cdf></line></svg>', 1)
|
|
6240
6307
|
])])) : createCommentVNode("", true),
|
|
6241
6308
|
createElementVNode("span", _hoisted_6$8, toDisplayString(selectedYear.value || __props.placeholder), 1),
|
|
@@ -6331,7 +6398,7 @@ const _hoisted_4$a = {
|
|
|
6331
6398
|
key: 0,
|
|
6332
6399
|
class: "ina-date-picker__calendar-container"
|
|
6333
6400
|
};
|
|
6334
|
-
const _hoisted_5$
|
|
6401
|
+
const _hoisted_5$9 = { class: "ina-date-picker__calendar-header" };
|
|
6335
6402
|
const _hoisted_6$7 = { class: "ina-date-picker__header-controls" };
|
|
6336
6403
|
const _hoisted_7$7 = { class: "ina-date-picker__dropdown-container" };
|
|
6337
6404
|
const _hoisted_8$5 = { class: "ina-date-picker__dropdown-container" };
|
|
@@ -7176,7 +7243,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
7176
7243
|
class: normalizeClass(panelContentClasses.value)
|
|
7177
7244
|
}, [
|
|
7178
7245
|
__props.mode === "single" ? (openBlock(), createElementBlock("div", _hoisted_4$a, [
|
|
7179
|
-
createElementVNode("div", _hoisted_5$
|
|
7246
|
+
createElementVNode("div", _hoisted_5$9, [
|
|
7180
7247
|
createElementVNode("button", {
|
|
7181
7248
|
type: "button",
|
|
7182
7249
|
class: "ina-date-picker__nav-button",
|
|
@@ -7395,7 +7462,7 @@ const _hoisted_3$d = {
|
|
|
7395
7462
|
class: "ina-select-dropdown__search"
|
|
7396
7463
|
};
|
|
7397
7464
|
const _hoisted_4$9 = ["aria-label", "disabled"];
|
|
7398
|
-
const _hoisted_5$
|
|
7465
|
+
const _hoisted_5$8 = {
|
|
7399
7466
|
key: 1,
|
|
7400
7467
|
class: "ina-select-dropdown__preview"
|
|
7401
7468
|
};
|
|
@@ -7832,7 +7899,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
7832
7899
|
[vModelText, internalSearchTerm.value]
|
|
7833
7900
|
])
|
|
7834
7901
|
])) : createCommentVNode("", true),
|
|
7835
|
-
__props.showPreviewValue && hasSelectedItems.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
7902
|
+
__props.showPreviewValue && hasSelectedItems.value ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
7836
7903
|
createElementVNode("div", _hoisted_6$6, [
|
|
7837
7904
|
__props.multiple ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
7838
7905
|
(openBlock(true), createElementBlock(Fragment, null, renderList(selectedArray.value.slice(0, 3), (value, index2) => {
|
|
@@ -7954,7 +8021,7 @@ const _hoisted_2$e = {
|
|
|
7954
8021
|
};
|
|
7955
8022
|
const _hoisted_3$c = ["id"];
|
|
7956
8023
|
const _hoisted_4$8 = ["aria-label"];
|
|
7957
|
-
const _hoisted_5$
|
|
8024
|
+
const _hoisted_5$7 = { class: "ina-drawer__content" };
|
|
7958
8025
|
const _hoisted_6$5 = ["id"];
|
|
7959
8026
|
const _hoisted_7$5 = {
|
|
7960
8027
|
key: 1,
|
|
@@ -8116,7 +8183,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
8116
8183
|
], -1)
|
|
8117
8184
|
])], 8, _hoisted_4$8)) : createCommentVNode("", true)
|
|
8118
8185
|
])) : createCommentVNode("", true),
|
|
8119
|
-
createElementVNode("div", _hoisted_5$
|
|
8186
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
8120
8187
|
__props.description ? (openBlock(), createElementBlock("div", {
|
|
8121
8188
|
key: 0,
|
|
8122
8189
|
id: descriptionId.value,
|
|
@@ -8259,7 +8326,7 @@ const _hoisted_4$7 = {
|
|
|
8259
8326
|
key: 2,
|
|
8260
8327
|
class: "ina-stepper__step-number"
|
|
8261
8328
|
};
|
|
8262
|
-
const _hoisted_5$
|
|
8329
|
+
const _hoisted_5$6 = { class: "ina-stepper__label" };
|
|
8263
8330
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
8264
8331
|
__name: "Stepper",
|
|
8265
8332
|
props: {
|
|
@@ -8310,7 +8377,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
8310
8377
|
createElementVNode("path", { d: "M5 12l5 5l10 -10" }, null, -1)
|
|
8311
8378
|
])])) : step.icon ? (openBlock(), createBlock(resolveDynamicComponent(step.icon), { key: 1 })) : (openBlock(), createElementBlock("span", _hoisted_4$7, toDisplayString(index2 + 1), 1))
|
|
8312
8379
|
]),
|
|
8313
|
-
createElementVNode("div", _hoisted_5$
|
|
8380
|
+
createElementVNode("div", _hoisted_5$6, [
|
|
8314
8381
|
typeof step.label === "string" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
8315
8382
|
createTextVNode(toDisplayString(step.label), 1)
|
|
8316
8383
|
], 64)) : (openBlock(), createBlock(resolveDynamicComponent(step.label), { key: 1 }))
|
|
@@ -8686,7 +8753,7 @@ const _hoisted_4$6 = {
|
|
|
8686
8753
|
key: 1,
|
|
8687
8754
|
class: "ina-table__sort-icon"
|
|
8688
8755
|
};
|
|
8689
|
-
const _hoisted_5$
|
|
8756
|
+
const _hoisted_5$5 = ["onClick"];
|
|
8690
8757
|
const _hoisted_6$4 = ["onClick"];
|
|
8691
8758
|
const _hoisted_7$4 = { key: 0 };
|
|
8692
8759
|
const _hoisted_8$3 = ["colspan"];
|
|
@@ -9034,7 +9101,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
9034
9101
|
size: 16,
|
|
9035
9102
|
stroke: String(isSorted(col) && sortOrder.value === "asc" ? 3 : 2)
|
|
9036
9103
|
}, null, 8, ["stroke"])
|
|
9037
|
-
], 10, _hoisted_5$
|
|
9104
|
+
], 10, _hoisted_5$5),
|
|
9038
9105
|
createElementVNode("div", {
|
|
9039
9106
|
class: normalizeClass([
|
|
9040
9107
|
"ina-table__sort-button",
|
|
@@ -9150,6 +9217,7 @@ const _hoisted_3$6 = {
|
|
|
9150
9217
|
class: "ina-text-area__required"
|
|
9151
9218
|
};
|
|
9152
9219
|
const _hoisted_4$5 = ["id", "name", "placeholder", "disabled", "readonly", "maxlength", "rows", "autocomplete", "spellcheck", "autocapitalize", "autocorrect", "dir"];
|
|
9220
|
+
const _hoisted_5$4 = { key: 1 };
|
|
9153
9221
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
9154
9222
|
__name: "TextArea",
|
|
9155
9223
|
props: {
|
|
@@ -9159,6 +9227,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
9159
9227
|
size: { default: "md" },
|
|
9160
9228
|
status: { default: "neutral" },
|
|
9161
9229
|
statusMessage: {},
|
|
9230
|
+
helperText: {},
|
|
9162
9231
|
disabled: { type: Boolean, default: false },
|
|
9163
9232
|
readonly: { type: Boolean, default: false },
|
|
9164
9233
|
required: { type: Boolean, default: false },
|
|
@@ -9207,6 +9276,18 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
9207
9276
|
const { id, name, ...rest } = attrs;
|
|
9208
9277
|
return rest;
|
|
9209
9278
|
});
|
|
9279
|
+
const bottomText = computed(() => {
|
|
9280
|
+
if (props.status !== "neutral" && props.statusMessage) {
|
|
9281
|
+
return props.statusMessage;
|
|
9282
|
+
}
|
|
9283
|
+
return props.statusMessage || props.helperText;
|
|
9284
|
+
});
|
|
9285
|
+
const bottomTextComponent = computed(() => {
|
|
9286
|
+
const text = bottomText.value;
|
|
9287
|
+
if (!text) return null;
|
|
9288
|
+
if (typeof text === "string") return null;
|
|
9289
|
+
return text;
|
|
9290
|
+
});
|
|
9210
9291
|
const labelComponent = computed(() => {
|
|
9211
9292
|
if (!props.label) return null;
|
|
9212
9293
|
if (typeof props.label === "string") return null;
|
|
@@ -9405,10 +9486,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
9405
9486
|
})
|
|
9406
9487
|
])) : createCommentVNode("", true)
|
|
9407
9488
|
], 2),
|
|
9408
|
-
|
|
9489
|
+
bottomText.value || validationError.value ? (openBlock(), createElementBlock("div", {
|
|
9409
9490
|
key: 1,
|
|
9410
9491
|
class: normalizeClass(statusMessageClasses.value)
|
|
9411
|
-
},
|
|
9492
|
+
}, [
|
|
9493
|
+
validationError.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
9494
|
+
createTextVNode(toDisplayString(validationError.value), 1)
|
|
9495
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
9496
|
+
bottomTextComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(bottomTextComponent.value), { key: 0 })) : (openBlock(), createElementBlock("span", _hoisted_5$4, toDisplayString(bottomText.value), 1))
|
|
9497
|
+
], 64))
|
|
9498
|
+
], 2)) : createCommentVNode("", true),
|
|
9412
9499
|
__props.showCharCount && __props.maxLength ? (openBlock(), createElementBlock("div", {
|
|
9413
9500
|
key: 2,
|
|
9414
9501
|
class: normalizeClass(charCountClasses.value)
|