@henriquepetrelli/hp-design-system 1.1.29 → 1.1.30
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.
|
@@ -1668,6 +1668,10 @@
|
|
|
1668
1668
|
type: String,
|
|
1669
1669
|
required: true
|
|
1670
1670
|
},
|
|
1671
|
+
hideLabel: {
|
|
1672
|
+
type: Boolean,
|
|
1673
|
+
default: false
|
|
1674
|
+
},
|
|
1671
1675
|
id: {
|
|
1672
1676
|
type: String,
|
|
1673
1677
|
default: () => `input-text-${Math.random().toString(36).substring(2, 9)}`
|
|
@@ -1731,6 +1735,11 @@
|
|
|
1731
1735
|
|
|
1732
1736
|
const input = vue.ref(null);
|
|
1733
1737
|
const isFocused = vue.ref(false);
|
|
1738
|
+
const showInputLabel = vue.computed(
|
|
1739
|
+
() =>
|
|
1740
|
+
!props.hideLabel &&
|
|
1741
|
+
(isFocused || props.modelValue !== '' || props.placeholder !== '')
|
|
1742
|
+
);
|
|
1734
1743
|
const hasValue = vue.computed(() => String(props.modelValue).length > 0);
|
|
1735
1744
|
const hasPlaceholder = vue.computed(() => String(props.placeholder).length > 0);
|
|
1736
1745
|
const placeholderFormatted = vue.computed(() => {
|
|
@@ -1786,7 +1795,7 @@
|
|
|
1786
1795
|
}, [
|
|
1787
1796
|
vue.createElementVNode("fieldset", _hoisted_1$5, [
|
|
1788
1797
|
vue.createElementVNode("legend", _hoisted_2$5, vue.toDisplayString(__props.label), 1),
|
|
1789
|
-
(
|
|
1798
|
+
(showInputLabel.value)
|
|
1790
1799
|
? (vue.openBlock(), vue.createElementBlock("label", {
|
|
1791
1800
|
key: 0,
|
|
1792
1801
|
for: __props.id,
|
|
@@ -1863,7 +1872,7 @@
|
|
|
1863
1872
|
}
|
|
1864
1873
|
|
|
1865
1874
|
};
|
|
1866
|
-
const HpInputText = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-
|
|
1875
|
+
const HpInputText = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-e05af4c2"]]);
|
|
1867
1876
|
|
|
1868
1877
|
const _hoisted_1$4 = { class: "input__fieldset" };
|
|
1869
1878
|
const _hoisted_2$4 = {
|
|
@@ -2951,11 +2960,12 @@
|
|
|
2951
2960
|
key: 0,
|
|
2952
2961
|
class: "data-table__search",
|
|
2953
2962
|
leadingIcon: "BE0090",
|
|
2954
|
-
placeholder: __props.placeholderSearch,
|
|
2955
2963
|
"model-value": search.value,
|
|
2956
2964
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
2957
|
-
"aria-label": __props.placeholderSearch
|
|
2958
|
-
|
|
2965
|
+
"aria-label": __props.placeholderSearch,
|
|
2966
|
+
label: __props.placeholderSearch,
|
|
2967
|
+
hideLabel: true
|
|
2968
|
+
}, null, 8, ["model-value", "aria-label", "label"])) : vue.createCommentVNode("", true),
|
|
2959
2969
|
vue.createElementVNode("table", _hoisted_1, [
|
|
2960
2970
|
vue.createElementVNode("thead", null, [
|
|
2961
2971
|
vue.createElementVNode("tr", _hoisted_2, [
|
|
@@ -3033,7 +3043,7 @@
|
|
|
3033
3043
|
}
|
|
3034
3044
|
});
|
|
3035
3045
|
|
|
3036
|
-
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
3046
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a06a935f"]]);
|
|
3037
3047
|
|
|
3038
3048
|
const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3039
3049
|
__proto__: null,
|