@henriquepetrelli/hp-design-system 1.1.28 → 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.
- package/dist/hp-design-system.es.js +369 -215
- package/dist/hp-design-system.es.js.map +1 -1
- package/dist/hp-design-system.umd.js +372 -217
- package/dist/hp-design-system.umd.js.map +1 -1
- package/dist/style.css +87 -31
- package/package.json +1 -1
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
return ButtonSize2;
|
|
24
24
|
})(ButtonSize || {});
|
|
25
25
|
|
|
26
|
-
const _hoisted_1$
|
|
27
|
-
const _sfc_main$
|
|
26
|
+
const _hoisted_1$j = ["xlink:href"];
|
|
27
|
+
const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
|
|
28
28
|
__name: "Icon",
|
|
29
29
|
props: {
|
|
30
30
|
name: {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
}, [
|
|
59
59
|
vue.createElementVNode("use", {
|
|
60
60
|
"xlink:href": `#icon-${__props.name}`
|
|
61
|
-
}, null, 8, _hoisted_1$
|
|
61
|
+
}, null, 8, _hoisted_1$j)
|
|
62
62
|
], 6);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -72,18 +72,18 @@
|
|
|
72
72
|
return target;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
const HpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
75
|
+
const HpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-0b477588"]]);
|
|
76
76
|
|
|
77
|
-
const _hoisted_1$
|
|
78
|
-
const _hoisted_2$
|
|
77
|
+
const _hoisted_1$i = ["aria-label", "aria-disabled", "disabled"];
|
|
78
|
+
const _hoisted_2$h = {
|
|
79
79
|
key: 0,
|
|
80
80
|
class: "button-primary__icon--left"
|
|
81
81
|
};
|
|
82
|
-
const _hoisted_3$
|
|
82
|
+
const _hoisted_3$f = {
|
|
83
83
|
key: 1,
|
|
84
84
|
class: "button-primary__icon--right"
|
|
85
85
|
};
|
|
86
|
-
const _sfc_main$
|
|
86
|
+
const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
|
|
87
87
|
__name: "ButtonPrimary",
|
|
88
88
|
props: {
|
|
89
89
|
label: {
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
disabled: __props.disabled,
|
|
157
157
|
onClick: handleClick
|
|
158
158
|
}, [
|
|
159
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
159
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$h, [
|
|
160
160
|
vue.createVNode(HpIcon, {
|
|
161
161
|
name: __props.icon,
|
|
162
162
|
size: "sm",
|
|
@@ -167,31 +167,31 @@
|
|
|
167
167
|
class: "button-primary__label",
|
|
168
168
|
style: vue.normalizeStyle({ color: computedColor.value })
|
|
169
169
|
}, vue.toDisplayString(__props.label), 5),
|
|
170
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
170
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$f, [
|
|
171
171
|
vue.createVNode(HpIcon, {
|
|
172
172
|
name: __props.icon,
|
|
173
173
|
size: "sm",
|
|
174
174
|
color: computedColor.value
|
|
175
175
|
}, null, 8, ["name", "color"])
|
|
176
176
|
])) : vue.createCommentVNode("", true)
|
|
177
|
-
], 14, _hoisted_1$
|
|
177
|
+
], 14, _hoisted_1$i);
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
182
|
+
const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-5c29dcce"]]);
|
|
183
183
|
|
|
184
|
-
const _hoisted_1$
|
|
185
|
-
const _hoisted_2$
|
|
184
|
+
const _hoisted_1$h = ["aria-label", "aria-disabled", "disabled"];
|
|
185
|
+
const _hoisted_2$g = {
|
|
186
186
|
key: 0,
|
|
187
187
|
class: "button-secondary__icon--left"
|
|
188
188
|
};
|
|
189
|
-
const _hoisted_3$
|
|
190
|
-
const _hoisted_4$
|
|
189
|
+
const _hoisted_3$e = { class: "button-secondary__label" };
|
|
190
|
+
const _hoisted_4$a = {
|
|
191
191
|
key: 1,
|
|
192
192
|
class: "button-secondary__icon--right"
|
|
193
193
|
};
|
|
194
|
-
const _sfc_main$
|
|
194
|
+
const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
|
|
195
195
|
__name: "ButtonSecondary",
|
|
196
196
|
props: {
|
|
197
197
|
label: {
|
|
@@ -249,37 +249,37 @@
|
|
|
249
249
|
disabled: __props.disabled,
|
|
250
250
|
onClick: handleClick
|
|
251
251
|
}, [
|
|
252
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
252
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$g, [
|
|
253
253
|
vue.createVNode(HpIcon, {
|
|
254
254
|
name: __props.icon,
|
|
255
255
|
size: "sm"
|
|
256
256
|
}, null, 8, ["name"])
|
|
257
257
|
])) : vue.createCommentVNode("", true),
|
|
258
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
259
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
258
|
+
vue.createElementVNode("span", _hoisted_3$e, vue.toDisplayString(__props.label), 1),
|
|
259
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$a, [
|
|
260
260
|
vue.createVNode(HpIcon, {
|
|
261
261
|
name: __props.icon,
|
|
262
262
|
size: "sm"
|
|
263
263
|
}, null, 8, ["name"])
|
|
264
264
|
])) : vue.createCommentVNode("", true)
|
|
265
|
-
], 14, _hoisted_1$
|
|
265
|
+
], 14, _hoisted_1$h);
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
|
|
270
|
-
const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
270
|
+
const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-ce9350e4"]]);
|
|
271
271
|
|
|
272
|
-
const _hoisted_1$
|
|
273
|
-
const _hoisted_2$
|
|
272
|
+
const _hoisted_1$g = ["aria-label", "aria-disabled", "disabled"];
|
|
273
|
+
const _hoisted_2$f = {
|
|
274
274
|
key: 0,
|
|
275
275
|
class: "button-tertiary__icon--left"
|
|
276
276
|
};
|
|
277
|
-
const _hoisted_3$
|
|
278
|
-
const _hoisted_4$
|
|
277
|
+
const _hoisted_3$d = { class: "button-tertiary__label" };
|
|
278
|
+
const _hoisted_4$9 = {
|
|
279
279
|
key: 1,
|
|
280
280
|
class: "button-tertiary__icon--right"
|
|
281
281
|
};
|
|
282
|
-
const _sfc_main$
|
|
282
|
+
const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
|
|
283
283
|
__name: "ButtonTertiary",
|
|
284
284
|
props: {
|
|
285
285
|
label: {
|
|
@@ -337,25 +337,25 @@
|
|
|
337
337
|
disabled: __props.disabled,
|
|
338
338
|
onClick: handleClick
|
|
339
339
|
}, [
|
|
340
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
340
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).LEFT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$f, [
|
|
341
341
|
vue.createVNode(HpIcon, {
|
|
342
342
|
name: __props.icon,
|
|
343
343
|
size: "sm"
|
|
344
344
|
}, null, 8, ["name"])
|
|
345
345
|
])) : vue.createCommentVNode("", true),
|
|
346
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
347
|
-
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
346
|
+
vue.createElementVNode("span", _hoisted_3$d, vue.toDisplayString(__props.label), 1),
|
|
347
|
+
__props.icon && __props.iconPosition === vue.unref(IconPosition).RIGHT ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$9, [
|
|
348
348
|
vue.createVNode(HpIcon, {
|
|
349
349
|
name: __props.icon,
|
|
350
350
|
size: "sm"
|
|
351
351
|
}, null, 8, ["name"])
|
|
352
352
|
])) : vue.createCommentVNode("", true)
|
|
353
|
-
], 14, _hoisted_1$
|
|
353
|
+
], 14, _hoisted_1$g);
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
357
|
|
|
358
|
-
const ButtonTertiary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
358
|
+
const ButtonTertiary = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-0401b00e"]]);
|
|
359
359
|
|
|
360
360
|
var ButtonIconSize = /* @__PURE__ */ ((ButtonIconSize2) => {
|
|
361
361
|
ButtonIconSize2["SMALL"] = "sm";
|
|
@@ -382,8 +382,8 @@
|
|
|
382
382
|
return "";
|
|
383
383
|
};
|
|
384
384
|
|
|
385
|
-
const _hoisted_1$
|
|
386
|
-
const _sfc_main$
|
|
385
|
+
const _hoisted_1$f = ["aria-label", "tabindex", "aria-disabled", "disabled"];
|
|
386
|
+
const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
387
387
|
__name: "ButtonIcon",
|
|
388
388
|
props: {
|
|
389
389
|
label: {
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
name: __props.icon,
|
|
466
466
|
size: __props.size,
|
|
467
467
|
color: computedIconColor.value
|
|
468
|
-
}, null, 8, ["name", "size", "color"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
468
|
+
}, null, 8, ["name", "size", "color"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$d), {
|
|
469
469
|
key: 1,
|
|
470
470
|
type: "circle1",
|
|
471
471
|
color: computedIconColor.value || "#000",
|
|
@@ -473,12 +473,12 @@
|
|
|
473
473
|
size: __props.size,
|
|
474
474
|
speed: 0.8
|
|
475
475
|
}, null, 8, ["color", "secondaryColor", "size"]))
|
|
476
|
-
], 14, _hoisted_1$
|
|
476
|
+
], 14, _hoisted_1$f);
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
480
|
|
|
481
|
-
const HpButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
481
|
+
const HpButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-8cf8a123"]]);
|
|
482
482
|
|
|
483
483
|
var ButtonLetterSize = /* @__PURE__ */ ((ButtonLetterSize2) => {
|
|
484
484
|
ButtonLetterSize2["SMALL"] = "sm";
|
|
@@ -487,9 +487,9 @@
|
|
|
487
487
|
return ButtonLetterSize2;
|
|
488
488
|
})(ButtonLetterSize || {});
|
|
489
489
|
|
|
490
|
-
const _hoisted_1$
|
|
491
|
-
const _hoisted_2$
|
|
492
|
-
const _sfc_main$
|
|
490
|
+
const _hoisted_1$e = ["aria-label", "aria-disabled", "disabled", "tabindex"];
|
|
491
|
+
const _hoisted_2$e = { key: 0 };
|
|
492
|
+
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
493
493
|
__name: "ButtonLetter",
|
|
494
494
|
props: {
|
|
495
495
|
label: {
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
color: computedLetterColor.value
|
|
573
573
|
})
|
|
574
574
|
}, [
|
|
575
|
-
!__props.isLoading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$
|
|
575
|
+
!__props.isLoading ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$e, vue.toDisplayString(__props.letter), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$d), {
|
|
576
576
|
key: 1,
|
|
577
577
|
type: "circle1",
|
|
578
578
|
color: computedLetterColor.value || "var(--color-primary)",
|
|
@@ -580,12 +580,12 @@
|
|
|
580
580
|
size: __props.size,
|
|
581
581
|
speed: 0.8
|
|
582
582
|
}, null, 8, ["color", "secondaryColor", "size"]))
|
|
583
|
-
], 14, _hoisted_1$
|
|
583
|
+
], 14, _hoisted_1$e);
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
586
|
});
|
|
587
587
|
|
|
588
|
-
const ButtonLetter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
588
|
+
const ButtonLetter = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-13b75270"]]);
|
|
589
589
|
|
|
590
590
|
var AlertType = /* @__PURE__ */ ((AlertType2) => {
|
|
591
591
|
AlertType2["WARNING"] = "warning";
|
|
@@ -595,9 +595,9 @@
|
|
|
595
595
|
return AlertType2;
|
|
596
596
|
})(AlertType || {});
|
|
597
597
|
|
|
598
|
-
const _hoisted_1$
|
|
599
|
-
const _hoisted_2$
|
|
600
|
-
const _sfc_main$
|
|
598
|
+
const _hoisted_1$d = { class: "alert" };
|
|
599
|
+
const _hoisted_2$d = { class: "alert__container__message" };
|
|
600
|
+
const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
601
601
|
__name: "Alert",
|
|
602
602
|
props: {
|
|
603
603
|
message: {
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
return props.type;
|
|
661
661
|
});
|
|
662
662
|
return (_ctx, _cache) => {
|
|
663
|
-
return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$
|
|
663
|
+
return vue.openBlock(), vue.createElementBlock("section", _hoisted_1$d, [
|
|
664
664
|
vue.createElementVNode("div", {
|
|
665
665
|
class: "alert__container",
|
|
666
666
|
style: vue.normalizeStyle({
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
"--color": computedColorType.value
|
|
669
669
|
})
|
|
670
670
|
}, [
|
|
671
|
-
vue.createElementVNode("p", _hoisted_2$
|
|
671
|
+
vue.createElementVNode("p", _hoisted_2$d, vue.toDisplayString(__props.message), 1),
|
|
672
672
|
vue.createVNode(vue.unref(HpButtonIcon), {
|
|
673
673
|
class: "alert__container__icon",
|
|
674
674
|
label: "Fechar modal",
|
|
@@ -684,18 +684,18 @@
|
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
|
|
687
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
687
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-10dcca72"]]);
|
|
688
688
|
|
|
689
|
-
const _hoisted_1$
|
|
689
|
+
const _hoisted_1$c = {
|
|
690
690
|
key: 0,
|
|
691
691
|
class: "card__header"
|
|
692
692
|
};
|
|
693
|
-
const _hoisted_2$
|
|
694
|
-
const _hoisted_3$
|
|
693
|
+
const _hoisted_2$c = { class: "card__body" };
|
|
694
|
+
const _hoisted_3$c = {
|
|
695
695
|
key: 1,
|
|
696
696
|
class: "card__footer"
|
|
697
697
|
};
|
|
698
|
-
const _sfc_main$
|
|
698
|
+
const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
699
699
|
__name: "Card",
|
|
700
700
|
props: {
|
|
701
701
|
title: { type: String, default: "" },
|
|
@@ -717,10 +717,10 @@
|
|
|
717
717
|
"aria-labelledby": titleId,
|
|
718
718
|
"aria-describedby": descriptionId
|
|
719
719
|
}, [
|
|
720
|
-
_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_1$
|
|
720
|
+
_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_1$c, [
|
|
721
721
|
vue.renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
722
722
|
])) : vue.createCommentVNode("", true),
|
|
723
|
-
vue.createElementVNode("div", _hoisted_2$
|
|
723
|
+
vue.createElementVNode("div", _hoisted_2$c, [
|
|
724
724
|
__props.title ? (vue.openBlock(), vue.createElementBlock("h3", {
|
|
725
725
|
key: 0,
|
|
726
726
|
id: titleId,
|
|
@@ -733,7 +733,7 @@
|
|
|
733
733
|
}, vue.toDisplayString(__props.description), 1)) : vue.createCommentVNode("", true),
|
|
734
734
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
735
735
|
]),
|
|
736
|
-
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("footer", _hoisted_3$
|
|
736
|
+
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("footer", _hoisted_3$c, [
|
|
737
737
|
vue.renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
738
738
|
])) : vue.createCommentVNode("", true)
|
|
739
739
|
], 2);
|
|
@@ -741,7 +741,7 @@
|
|
|
741
741
|
}
|
|
742
742
|
});
|
|
743
743
|
|
|
744
|
-
const Card = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
744
|
+
const Card = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2b489100"]]);
|
|
745
745
|
|
|
746
746
|
var SpinnerLoaderSize = /* @__PURE__ */ ((SpinnerLoaderSize2) => {
|
|
747
747
|
SpinnerLoaderSize2["SMALL"] = "sm";
|
|
@@ -750,35 +750,35 @@
|
|
|
750
750
|
return SpinnerLoaderSize2;
|
|
751
751
|
})(SpinnerLoaderSize || {});
|
|
752
752
|
|
|
753
|
-
const _hoisted_1$
|
|
753
|
+
const _hoisted_1$b = {
|
|
754
754
|
key: 0,
|
|
755
755
|
class: "spinner-circle-1"
|
|
756
756
|
};
|
|
757
|
-
const _hoisted_2$
|
|
757
|
+
const _hoisted_2$b = {
|
|
758
758
|
key: 1,
|
|
759
759
|
class: "spinner-circle-2"
|
|
760
760
|
};
|
|
761
|
-
const _hoisted_3$
|
|
761
|
+
const _hoisted_3$b = {
|
|
762
762
|
key: 2,
|
|
763
763
|
class: "spinner-circle-3"
|
|
764
764
|
};
|
|
765
|
-
const _hoisted_4$
|
|
765
|
+
const _hoisted_4$8 = {
|
|
766
766
|
key: 3,
|
|
767
767
|
class: "spinner-circle-4"
|
|
768
768
|
};
|
|
769
|
-
const _hoisted_5$
|
|
769
|
+
const _hoisted_5$8 = {
|
|
770
770
|
key: 4,
|
|
771
771
|
class: "spinner-dot-1"
|
|
772
772
|
};
|
|
773
|
-
const _hoisted_6$
|
|
773
|
+
const _hoisted_6$5 = {
|
|
774
774
|
key: 5,
|
|
775
775
|
class: "spinner-dot-2"
|
|
776
776
|
};
|
|
777
|
-
const _hoisted_7$
|
|
777
|
+
const _hoisted_7$5 = {
|
|
778
778
|
key: 6,
|
|
779
779
|
class: "spinner-dot-3"
|
|
780
780
|
};
|
|
781
|
-
const _hoisted_8$
|
|
781
|
+
const _hoisted_8$5 = {
|
|
782
782
|
key: 7,
|
|
783
783
|
class: "spinner-dot-4"
|
|
784
784
|
};
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
key: 15,
|
|
815
815
|
class: "spinner-search"
|
|
816
816
|
};
|
|
817
|
-
const _sfc_main$
|
|
817
|
+
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
818
818
|
__name: "SpinnerLoader",
|
|
819
819
|
props: {
|
|
820
820
|
type: {
|
|
@@ -864,11 +864,11 @@
|
|
|
864
864
|
class: vue.normalizeClass(["spinner-loader", `spinner-${__props.type}`]),
|
|
865
865
|
style: vue.normalizeStyle(spinnerStyles.value)
|
|
866
866
|
}, [
|
|
867
|
-
__props.type === "circle1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
868
|
-
__props.type === "circle2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
869
|
-
__props.type === "circle3" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
870
|
-
__props.type === "circle4" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
871
|
-
__props.type === "dot1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
867
|
+
__props.type === "circle1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$b)) : vue.createCommentVNode("", true),
|
|
868
|
+
__props.type === "circle2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b)) : vue.createCommentVNode("", true),
|
|
869
|
+
__props.type === "circle3" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b)) : vue.createCommentVNode("", true),
|
|
870
|
+
__props.type === "circle4" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$8)) : vue.createCommentVNode("", true),
|
|
871
|
+
__props.type === "dot1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8, [
|
|
872
872
|
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(3, (i) => {
|
|
873
873
|
return vue.createElementVNode("div", {
|
|
874
874
|
key: `dot1-${i}`,
|
|
@@ -876,9 +876,9 @@
|
|
|
876
876
|
});
|
|
877
877
|
}), 64))
|
|
878
878
|
])) : vue.createCommentVNode("", true),
|
|
879
|
-
__props.type === "dot2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
880
|
-
__props.type === "dot3" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$
|
|
881
|
-
__props.type === "dot4" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$
|
|
879
|
+
__props.type === "dot2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$5)) : vue.createCommentVNode("", true),
|
|
880
|
+
__props.type === "dot3" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$5)) : vue.createCommentVNode("", true),
|
|
881
|
+
__props.type === "dot4" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$5)) : vue.createCommentVNode("", true),
|
|
882
882
|
__props.type === "dot5" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$3)) : vue.createCommentVNode("", true),
|
|
883
883
|
__props.type === "ring1" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10$3)) : vue.createCommentVNode("", true),
|
|
884
884
|
__props.type === "ring2" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11$1)) : vue.createCommentVNode("", true),
|
|
@@ -894,13 +894,13 @@
|
|
|
894
894
|
}
|
|
895
895
|
});
|
|
896
896
|
|
|
897
|
-
const _hoisted_1$
|
|
898
|
-
const _hoisted_2$
|
|
899
|
-
const _hoisted_3$
|
|
897
|
+
const _hoisted_1$a = ["for"];
|
|
898
|
+
const _hoisted_2$a = ["id", "checked", "disabled"];
|
|
899
|
+
const _hoisted_3$a = {
|
|
900
900
|
key: 0,
|
|
901
901
|
class: "checkbox__label"
|
|
902
902
|
};
|
|
903
|
-
const _sfc_main$
|
|
903
|
+
const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
904
904
|
__name: "Checkbox",
|
|
905
905
|
props: {
|
|
906
906
|
modelValue: {
|
|
@@ -986,7 +986,7 @@
|
|
|
986
986
|
checked: isChecked.value,
|
|
987
987
|
disabled: __props.disabled,
|
|
988
988
|
onChange: handleChange
|
|
989
|
-
}, null, 40, _hoisted_2$
|
|
989
|
+
}, null, 40, _hoisted_2$a),
|
|
990
990
|
vue.createElementVNode("span", {
|
|
991
991
|
class: vue.normalizeClass(["checkbox__container", { "checkbox__container--rounded": __props.rounded }]),
|
|
992
992
|
style: vue.normalizeStyle({ "--background-color": computedBackgroundColor.value })
|
|
@@ -1004,23 +1004,23 @@
|
|
|
1004
1004
|
vue.createElementVNode("polyline", { points: "1 5 4 8 11 1" }, null, -1)
|
|
1005
1005
|
])], 6)) : vue.createCommentVNode("", true)
|
|
1006
1006
|
], 6),
|
|
1007
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
1007
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$a, [
|
|
1008
1008
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1009
1009
|
])) : vue.createCommentVNode("", true)
|
|
1010
|
-
], 14, _hoisted_1$
|
|
1010
|
+
], 14, _hoisted_1$a);
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
1013
|
});
|
|
1014
1014
|
|
|
1015
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1015
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-29384d40"]]);
|
|
1016
1016
|
|
|
1017
|
-
const _hoisted_1$
|
|
1018
|
-
const _hoisted_2$
|
|
1019
|
-
const _hoisted_3$
|
|
1017
|
+
const _hoisted_1$9 = ["for"];
|
|
1018
|
+
const _hoisted_2$9 = ["id", "checked", "disabled", "value"];
|
|
1019
|
+
const _hoisted_3$9 = {
|
|
1020
1020
|
key: 0,
|
|
1021
1021
|
class: "radio__label"
|
|
1022
1022
|
};
|
|
1023
|
-
const _sfc_main$
|
|
1023
|
+
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
1024
1024
|
__name: "RadioButton",
|
|
1025
1025
|
props: {
|
|
1026
1026
|
modelValue: {
|
|
@@ -1102,7 +1102,7 @@
|
|
|
1102
1102
|
disabled: __props.disabled,
|
|
1103
1103
|
value: __props.value,
|
|
1104
1104
|
onChange: handleChange
|
|
1105
|
-
}, null, 40, _hoisted_2$
|
|
1105
|
+
}, null, 40, _hoisted_2$9),
|
|
1106
1106
|
vue.createElementVNode("span", {
|
|
1107
1107
|
class: vue.normalizeClass(["radio__container", { "radio__container--rounded": __props.rounded }])
|
|
1108
1108
|
}, [
|
|
@@ -1111,15 +1111,15 @@
|
|
|
1111
1111
|
class: vue.normalizeClass(["radio__dot", { "radio__dot--animated": __props.hasAnimation }])
|
|
1112
1112
|
}, null, 2)) : vue.createCommentVNode("", true)
|
|
1113
1113
|
], 2),
|
|
1114
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
1114
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$9, [
|
|
1115
1115
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1116
1116
|
])) : vue.createCommentVNode("", true)
|
|
1117
|
-
], 14, _hoisted_1$
|
|
1117
|
+
], 14, _hoisted_1$9);
|
|
1118
1118
|
};
|
|
1119
1119
|
}
|
|
1120
1120
|
});
|
|
1121
1121
|
|
|
1122
|
-
const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1122
|
+
const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-50110fea"]]);
|
|
1123
1123
|
|
|
1124
1124
|
var TextSize = /* @__PURE__ */ ((TextSize2) => {
|
|
1125
1125
|
TextSize2["EXTRA_SMALL"] = "xs";
|
|
@@ -1140,7 +1140,7 @@
|
|
|
1140
1140
|
return HeadingLevel2;
|
|
1141
1141
|
})(HeadingLevel || {});
|
|
1142
1142
|
|
|
1143
|
-
const _sfc_main$
|
|
1143
|
+
const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
1144
1144
|
__name: "Text",
|
|
1145
1145
|
props: {
|
|
1146
1146
|
size: {
|
|
@@ -1171,9 +1171,9 @@
|
|
|
1171
1171
|
}
|
|
1172
1172
|
});
|
|
1173
1173
|
|
|
1174
|
-
const
|
|
1174
|
+
const HpText = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-e52f8226"]]);
|
|
1175
1175
|
|
|
1176
|
-
const _sfc_main$
|
|
1176
|
+
const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
1177
1177
|
__name: "Heading",
|
|
1178
1178
|
props: {
|
|
1179
1179
|
level: {
|
|
@@ -1211,20 +1211,20 @@
|
|
|
1211
1211
|
}
|
|
1212
1212
|
});
|
|
1213
1213
|
|
|
1214
|
-
const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1214
|
+
const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-35210bc7"]]);
|
|
1215
1215
|
|
|
1216
|
-
const _hoisted_1$
|
|
1217
|
-
const _hoisted_2$
|
|
1218
|
-
const _hoisted_3$
|
|
1219
|
-
const _hoisted_4$
|
|
1216
|
+
const _hoisted_1$8 = { class: "modal__header" };
|
|
1217
|
+
const _hoisted_2$8 = { class: "modal__title" };
|
|
1218
|
+
const _hoisted_3$8 = { class: "modal__content" };
|
|
1219
|
+
const _hoisted_4$7 = {
|
|
1220
1220
|
key: 0,
|
|
1221
1221
|
class: "modal__footer"
|
|
1222
1222
|
};
|
|
1223
|
-
const _hoisted_5$
|
|
1223
|
+
const _hoisted_5$7 = {
|
|
1224
1224
|
key: 1,
|
|
1225
1225
|
class: "modal__footer"
|
|
1226
1226
|
};
|
|
1227
|
-
const _sfc_main$
|
|
1227
|
+
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
1228
1228
|
__name: "Modal",
|
|
1229
1229
|
props: {
|
|
1230
1230
|
title: {
|
|
@@ -1303,7 +1303,7 @@
|
|
|
1303
1303
|
vue.createElementVNode("div", {
|
|
1304
1304
|
class: vue.normalizeClass(["modal__container", [`modal__container--${__props.size}`]])
|
|
1305
1305
|
}, [
|
|
1306
|
-
vue.createElementVNode("div", _hoisted_1$
|
|
1306
|
+
vue.createElementVNode("div", _hoisted_1$8, [
|
|
1307
1307
|
__props.showBackButton ? (vue.openBlock(), vue.createBlock(vue.unref(HpButtonIcon), {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
class: "modal__back-button",
|
|
@@ -1312,7 +1312,7 @@
|
|
|
1312
1312
|
label: "Botão de voltar",
|
|
1313
1313
|
onClick: handleBackClick
|
|
1314
1314
|
})) : vue.createCommentVNode("", true),
|
|
1315
|
-
vue.createElementVNode("h2", _hoisted_2$
|
|
1315
|
+
vue.createElementVNode("h2", _hoisted_2$8, vue.toDisplayString(__props.title), 1),
|
|
1316
1316
|
__props.showCloseButton ? (vue.openBlock(), vue.createBlock(vue.unref(HpButtonIcon), {
|
|
1317
1317
|
key: 1,
|
|
1318
1318
|
class: "modal__close-button",
|
|
@@ -1322,10 +1322,10 @@
|
|
|
1322
1322
|
onClick: handleCloseModal
|
|
1323
1323
|
})) : vue.createCommentVNode("", true)
|
|
1324
1324
|
]),
|
|
1325
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
1325
|
+
vue.createElementVNode("div", _hoisted_3$8, [
|
|
1326
1326
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1327
1327
|
]),
|
|
1328
|
-
__props.hasPrimaryButton || __props.hasSecondaryButton ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$
|
|
1328
|
+
__props.hasPrimaryButton || __props.hasSecondaryButton ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$7, [
|
|
1329
1329
|
__props.hasSecondaryButton ? (vue.openBlock(), vue.createBlock(vue.unref(HpButtonSecondary), {
|
|
1330
1330
|
key: 0,
|
|
1331
1331
|
label: __props.secondaryButtonLabel,
|
|
@@ -1339,7 +1339,7 @@
|
|
|
1339
1339
|
onClick: handleSecondaryButtonClick
|
|
1340
1340
|
}, null, 8, ["label", "backgroundColor"])) : vue.createCommentVNode("", true)
|
|
1341
1341
|
])) : vue.createCommentVNode("", true),
|
|
1342
|
-
!__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
1342
|
+
!__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$7, [
|
|
1343
1343
|
vue.renderSlot(_ctx.$slots, "buttons", {}, void 0, true)
|
|
1344
1344
|
])) : vue.createCommentVNode("", true)
|
|
1345
1345
|
], 2)
|
|
@@ -1351,15 +1351,15 @@
|
|
|
1351
1351
|
}
|
|
1352
1352
|
});
|
|
1353
1353
|
|
|
1354
|
-
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1354
|
+
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-cdf63c2b"]]);
|
|
1355
1355
|
|
|
1356
|
-
const _hoisted_1$
|
|
1357
|
-
const _hoisted_2$
|
|
1358
|
-
const _hoisted_3$
|
|
1356
|
+
const _hoisted_1$7 = ["id", "checked", "disabled", "aria-checked", "aria-labelledby"];
|
|
1357
|
+
const _hoisted_2$7 = ["for", "id", "tabindex", "onKeydown"];
|
|
1358
|
+
const _hoisted_3$7 = {
|
|
1359
1359
|
key: 0,
|
|
1360
1360
|
class: "toggle-switch__text"
|
|
1361
1361
|
};
|
|
1362
|
-
const _sfc_main$
|
|
1362
|
+
const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
1363
1363
|
__name: "ToggleSwitch",
|
|
1364
1364
|
props: {
|
|
1365
1365
|
modelValue: {
|
|
@@ -1424,7 +1424,7 @@
|
|
|
1424
1424
|
"aria-checked": __props.modelValue,
|
|
1425
1425
|
"aria-labelledby": `${__props.id}-label`,
|
|
1426
1426
|
tabindex: "-1"
|
|
1427
|
-
}, null, 40, _hoisted_1$
|
|
1427
|
+
}, null, 40, _hoisted_1$7),
|
|
1428
1428
|
vue.createElementVNode("label", {
|
|
1429
1429
|
for: __props.id,
|
|
1430
1430
|
class: "toggle-switch__label",
|
|
@@ -1445,28 +1445,28 @@
|
|
|
1445
1445
|
style: vue.normalizeStyle({ "--thumb-color": computedThumbColor.value })
|
|
1446
1446
|
}, null, 4)
|
|
1447
1447
|
], 4),
|
|
1448
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
1448
|
+
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$7, [
|
|
1449
1449
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1450
1450
|
])) : vue.createCommentVNode("", true)
|
|
1451
|
-
], 44, _hoisted_2$
|
|
1451
|
+
], 44, _hoisted_2$7)
|
|
1452
1452
|
], 2);
|
|
1453
1453
|
};
|
|
1454
1454
|
}
|
|
1455
1455
|
});
|
|
1456
1456
|
|
|
1457
|
-
const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1457
|
+
const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-14c54b46"]]);
|
|
1458
1458
|
|
|
1459
|
-
const _hoisted_1$
|
|
1460
|
-
const _hoisted_2$
|
|
1461
|
-
const _hoisted_3$
|
|
1459
|
+
const _hoisted_1$6 = { key: 0 };
|
|
1460
|
+
const _hoisted_2$6 = ["aria-checked", "onKeydown"];
|
|
1461
|
+
const _hoisted_3$6 = {
|
|
1462
1462
|
key: 1,
|
|
1463
1463
|
class: "theme-switcher-animation"
|
|
1464
1464
|
};
|
|
1465
|
-
const _hoisted_4$
|
|
1466
|
-
const _hoisted_5$
|
|
1465
|
+
const _hoisted_4$6 = ["id", "aria-checked"];
|
|
1466
|
+
const _hoisted_5$6 = ["for", "onKeydown"];
|
|
1467
1467
|
|
|
1468
1468
|
|
|
1469
|
-
const _sfc_main$
|
|
1469
|
+
const _sfc_main$6 = {
|
|
1470
1470
|
__name: 'ThemeSwitcher',
|
|
1471
1471
|
props: {
|
|
1472
1472
|
modelValue: {
|
|
@@ -1578,7 +1578,7 @@
|
|
|
1578
1578
|
|
|
1579
1579
|
return (_ctx, _cache) => {
|
|
1580
1580
|
return (!__props.hasAnimation)
|
|
1581
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1581
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
|
|
1582
1582
|
vue.createElementVNode("button", {
|
|
1583
1583
|
class: "theme-switcher",
|
|
1584
1584
|
type: "button",
|
|
@@ -1601,9 +1601,9 @@
|
|
|
1601
1601
|
size: "sm",
|
|
1602
1602
|
color: computedButtonIconColor.value
|
|
1603
1603
|
}, null, 8, ["name", "color"])
|
|
1604
|
-
], 44, _hoisted_2$
|
|
1604
|
+
], 44, _hoisted_2$6)
|
|
1605
1605
|
]))
|
|
1606
|
-
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
1606
|
+
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$6, [
|
|
1607
1607
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
1608
1608
|
type: "checkbox",
|
|
1609
1609
|
id: __props.id,
|
|
@@ -1614,7 +1614,7 @@
|
|
|
1614
1614
|
"aria-checked": isDarkMode.value,
|
|
1615
1615
|
"aria-label": "Alternar entre tema claro e escuro",
|
|
1616
1616
|
tabindex: "-1"
|
|
1617
|
-
}, null, 40, _hoisted_4$
|
|
1617
|
+
}, null, 40, _hoisted_4$6), [
|
|
1618
1618
|
[vue.vModelCheckbox, isDarkMode.value]
|
|
1619
1619
|
]),
|
|
1620
1620
|
vue.createElementVNode("label", {
|
|
@@ -1633,31 +1633,31 @@
|
|
|
1633
1633
|
]
|
|
1634
1634
|
}, [...(_cache[1] || (_cache[1] = [
|
|
1635
1635
|
vue.createElementVNode("span", { class: "toggle--label-background" }, null, -1)
|
|
1636
|
-
]))], 44, _hoisted_5$
|
|
1636
|
+
]))], 44, _hoisted_5$6)
|
|
1637
1637
|
]))
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
1641
1641
|
};
|
|
1642
|
-
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
1642
|
+
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$6, [['__scopeId',"data-v-7efca676"]]);
|
|
1643
1643
|
|
|
1644
|
-
const _hoisted_1$
|
|
1645
|
-
const _hoisted_2$
|
|
1644
|
+
const _hoisted_1$5 = { class: "input__fieldset" };
|
|
1645
|
+
const _hoisted_2$5 = {
|
|
1646
1646
|
style: {"display":"none"},
|
|
1647
1647
|
"aria-hidden": true
|
|
1648
1648
|
};
|
|
1649
|
-
const _hoisted_3$
|
|
1650
|
-
const _hoisted_4$
|
|
1651
|
-
const _hoisted_5$
|
|
1652
|
-
const _hoisted_6$
|
|
1653
|
-
const _hoisted_7$
|
|
1654
|
-
const _hoisted_8$
|
|
1649
|
+
const _hoisted_3$5 = ["for"];
|
|
1650
|
+
const _hoisted_4$5 = { class: "input__wrapper" };
|
|
1651
|
+
const _hoisted_5$5 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "maxlength", "aria-labelledby", "aria-describedby", "aria-invalid"];
|
|
1652
|
+
const _hoisted_6$4 = { class: "input__footer" };
|
|
1653
|
+
const _hoisted_7$4 = ["id"];
|
|
1654
|
+
const _hoisted_8$4 = {
|
|
1655
1655
|
key: 1,
|
|
1656
1656
|
class: "input__counter"
|
|
1657
1657
|
};
|
|
1658
1658
|
|
|
1659
1659
|
|
|
1660
|
-
const _sfc_main$
|
|
1660
|
+
const _sfc_main$5 = {
|
|
1661
1661
|
__name: 'InputText',
|
|
1662
1662
|
props: {
|
|
1663
1663
|
modelValue: {
|
|
@@ -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(() => {
|
|
@@ -1784,16 +1793,16 @@
|
|
|
1784
1793
|
'--icon-padding-right': __props.trailingIcon ? '32px' : '0px'
|
|
1785
1794
|
})
|
|
1786
1795
|
}, [
|
|
1787
|
-
vue.createElementVNode("fieldset", _hoisted_1$
|
|
1788
|
-
vue.createElementVNode("legend", _hoisted_2$
|
|
1789
|
-
(
|
|
1796
|
+
vue.createElementVNode("fieldset", _hoisted_1$5, [
|
|
1797
|
+
vue.createElementVNode("legend", _hoisted_2$5, vue.toDisplayString(__props.label), 1),
|
|
1798
|
+
(showInputLabel.value)
|
|
1790
1799
|
? (vue.openBlock(), vue.createElementBlock("label", {
|
|
1791
1800
|
key: 0,
|
|
1792
1801
|
for: __props.id,
|
|
1793
1802
|
class: vue.normalizeClass(["input__label", { 'input__label--required': __props.required }])
|
|
1794
|
-
}, vue.toDisplayString(__props.label), 11, _hoisted_3$
|
|
1803
|
+
}, vue.toDisplayString(__props.label), 11, _hoisted_3$5))
|
|
1795
1804
|
: vue.createCommentVNode("", true),
|
|
1796
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
1805
|
+
vue.createElementVNode("div", _hoisted_4$5, [
|
|
1797
1806
|
(__props.leadingIcon)
|
|
1798
1807
|
? (vue.openBlock(), vue.createBlock(vue.unref(HpIcon), {
|
|
1799
1808
|
key: 0,
|
|
@@ -1822,7 +1831,7 @@
|
|
|
1822
1831
|
"aria-labelledby": `${__props.id}-label`,
|
|
1823
1832
|
"aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
|
|
1824
1833
|
"aria-invalid": __props.status === 'error'
|
|
1825
|
-
}, null, 40, _hoisted_5$
|
|
1834
|
+
}, null, 40, _hoisted_5$5),
|
|
1826
1835
|
(__props.iconHasAction && __props.trailingIcon)
|
|
1827
1836
|
? (vue.openBlock(), vue.createBlock(vue.unref(HpButtonIcon), {
|
|
1828
1837
|
key: 1,
|
|
@@ -1846,16 +1855,16 @@
|
|
|
1846
1855
|
: vue.createCommentVNode("", true)
|
|
1847
1856
|
])
|
|
1848
1857
|
]),
|
|
1849
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
1858
|
+
vue.createElementVNode("div", _hoisted_6$4, [
|
|
1850
1859
|
(__props.helperText)
|
|
1851
1860
|
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
1852
1861
|
key: 0,
|
|
1853
1862
|
id: `${__props.id}-helper-text`,
|
|
1854
1863
|
class: vue.normalizeClass(["input__helper-text", { [`input__helper-text--${__props.status}`]: __props.status !== 'default' }])
|
|
1855
|
-
}, vue.toDisplayString(__props.helperText), 11, _hoisted_7$
|
|
1864
|
+
}, vue.toDisplayString(__props.helperText), 11, _hoisted_7$4))
|
|
1856
1865
|
: vue.createCommentVNode("", true),
|
|
1857
1866
|
(__props.hasLengthCount)
|
|
1858
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$
|
|
1867
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$4, vue.toDisplayString(__props.modelValue?.length || 0) + "/" + vue.toDisplayString(__props.maxLength), 1))
|
|
1859
1868
|
: vue.createCommentVNode("", true)
|
|
1860
1869
|
])
|
|
1861
1870
|
], 6))
|
|
@@ -1863,24 +1872,24 @@
|
|
|
1863
1872
|
}
|
|
1864
1873
|
|
|
1865
1874
|
};
|
|
1866
|
-
const
|
|
1875
|
+
const HpInputText = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-e05af4c2"]]);
|
|
1867
1876
|
|
|
1868
|
-
const _hoisted_1$
|
|
1869
|
-
const _hoisted_2$
|
|
1877
|
+
const _hoisted_1$4 = { class: "input__fieldset" };
|
|
1878
|
+
const _hoisted_2$4 = {
|
|
1870
1879
|
style: {"display":"none"},
|
|
1871
1880
|
"aria-hidden": true
|
|
1872
1881
|
};
|
|
1873
|
-
const _hoisted_3$
|
|
1874
|
-
const _hoisted_4$
|
|
1875
|
-
const _hoisted_5$
|
|
1876
|
-
const _hoisted_6$
|
|
1877
|
-
const _hoisted_7$
|
|
1878
|
-
const _hoisted_8$
|
|
1882
|
+
const _hoisted_3$4 = ["for"];
|
|
1883
|
+
const _hoisted_4$4 = { class: "input__wrapper" };
|
|
1884
|
+
const _hoisted_5$4 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "min", "max", "aria-labelledby", "aria-describedby", "aria-invalid"];
|
|
1885
|
+
const _hoisted_6$3 = { class: "input__buttons-container" };
|
|
1886
|
+
const _hoisted_7$3 = ["disabled", "aria-label"];
|
|
1887
|
+
const _hoisted_8$3 = ["disabled", "aria-label"];
|
|
1879
1888
|
const _hoisted_9$2 = { class: "input__footer" };
|
|
1880
1889
|
const _hoisted_10$2 = ["id"];
|
|
1881
1890
|
|
|
1882
1891
|
|
|
1883
|
-
const _sfc_main$
|
|
1892
|
+
const _sfc_main$4 = {
|
|
1884
1893
|
__name: 'InputNumber',
|
|
1885
1894
|
props: {
|
|
1886
1895
|
modelValue: {
|
|
@@ -2046,16 +2055,16 @@
|
|
|
2046
2055
|
'--icon-padding-left': __props.leadingIcon ? '24px' : '0px'
|
|
2047
2056
|
})
|
|
2048
2057
|
}, [
|
|
2049
|
-
vue.createElementVNode("fieldset", _hoisted_1$
|
|
2050
|
-
vue.createElementVNode("legend", _hoisted_2$
|
|
2058
|
+
vue.createElementVNode("fieldset", _hoisted_1$4, [
|
|
2059
|
+
vue.createElementVNode("legend", _hoisted_2$4, vue.toDisplayString(__props.label), 1),
|
|
2051
2060
|
(isFocused.value || modelValueFormatted.value !== null || __props.placeholder !== '')
|
|
2052
2061
|
? (vue.openBlock(), vue.createElementBlock("label", {
|
|
2053
2062
|
key: 0,
|
|
2054
2063
|
for: __props.id,
|
|
2055
2064
|
class: vue.normalizeClass(["input__label", { 'input__label--required': __props.required }])
|
|
2056
|
-
}, vue.toDisplayString(__props.label), 11, _hoisted_3$
|
|
2065
|
+
}, vue.toDisplayString(__props.label), 11, _hoisted_3$4))
|
|
2057
2066
|
: vue.createCommentVNode("", true),
|
|
2058
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
2067
|
+
vue.createElementVNode("div", _hoisted_4$4, [
|
|
2059
2068
|
(__props.leadingIcon)
|
|
2060
2069
|
? (vue.openBlock(), vue.createBlock(vue.unref(HpIcon), {
|
|
2061
2070
|
key: 0,
|
|
@@ -2086,8 +2095,8 @@
|
|
|
2086
2095
|
"aria-labelledby": `${__props.id}-label`,
|
|
2087
2096
|
"aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
|
|
2088
2097
|
"aria-invalid": __props.status === 'error'
|
|
2089
|
-
}, null, 40, _hoisted_5$
|
|
2090
|
-
vue.createElementVNode("div", _hoisted_6$
|
|
2098
|
+
}, null, 40, _hoisted_5$4),
|
|
2099
|
+
vue.createElementVNode("div", _hoisted_6$3, [
|
|
2091
2100
|
vue.createElementVNode("button", {
|
|
2092
2101
|
type: "button",
|
|
2093
2102
|
disabled: __props.disabled || __props.readonly || isMinValue.value,
|
|
@@ -2100,7 +2109,7 @@
|
|
|
2100
2109
|
size: "sm",
|
|
2101
2110
|
color: "#666666"
|
|
2102
2111
|
})
|
|
2103
|
-
], 8, _hoisted_7$
|
|
2112
|
+
], 8, _hoisted_7$3),
|
|
2104
2113
|
_cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "input__buttons-container--divider" }, null, -1)),
|
|
2105
2114
|
vue.createElementVNode("button", {
|
|
2106
2115
|
type: "button",
|
|
@@ -2114,7 +2123,7 @@
|
|
|
2114
2123
|
size: "sm",
|
|
2115
2124
|
color: "#666666"
|
|
2116
2125
|
})
|
|
2117
|
-
], 8, _hoisted_8$
|
|
2126
|
+
], 8, _hoisted_8$3)
|
|
2118
2127
|
])
|
|
2119
2128
|
])
|
|
2120
2129
|
]),
|
|
@@ -2132,25 +2141,25 @@
|
|
|
2132
2141
|
}
|
|
2133
2142
|
|
|
2134
2143
|
};
|
|
2135
|
-
const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2144
|
+
const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-7f20743b"]]);
|
|
2136
2145
|
|
|
2137
|
-
const _hoisted_1$
|
|
2138
|
-
const _hoisted_2$
|
|
2146
|
+
const _hoisted_1$3 = { class: "input__fieldset" };
|
|
2147
|
+
const _hoisted_2$3 = {
|
|
2139
2148
|
style: {"display":"none"},
|
|
2140
2149
|
"aria-hidden": true
|
|
2141
2150
|
};
|
|
2142
|
-
const _hoisted_3$
|
|
2143
|
-
const _hoisted_4$
|
|
2151
|
+
const _hoisted_3$3 = ["for", "id"];
|
|
2152
|
+
const _hoisted_4$3 = {
|
|
2144
2153
|
key: 0,
|
|
2145
2154
|
class: "required-asterisk"
|
|
2146
2155
|
};
|
|
2147
|
-
const _hoisted_5$
|
|
2148
|
-
const _hoisted_6$
|
|
2156
|
+
const _hoisted_5$3 = { class: "input__wrapper" };
|
|
2157
|
+
const _hoisted_6$2 = {
|
|
2149
2158
|
key: 0,
|
|
2150
2159
|
class: "autocomplete-wrapper"
|
|
2151
2160
|
};
|
|
2152
|
-
const _hoisted_7$
|
|
2153
|
-
const _hoisted_8$
|
|
2161
|
+
const _hoisted_7$2 = ["id", "placeholder", "disabled", "readonly", "required", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-disabled", "aria-expanded", "aria-activedescendant"];
|
|
2162
|
+
const _hoisted_8$2 = ["aria-labelledby"];
|
|
2154
2163
|
const _hoisted_9$1 = ["id", "onMousedown", "aria-selected", "aria-disabled"];
|
|
2155
2164
|
const _hoisted_10$1 = ["aria-expanded", "aria-owns"];
|
|
2156
2165
|
const _hoisted_11 = ["id", "tabindex", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-disabled"];
|
|
@@ -2172,7 +2181,7 @@
|
|
|
2172
2181
|
};
|
|
2173
2182
|
|
|
2174
2183
|
|
|
2175
|
-
const _sfc_main$
|
|
2184
|
+
const _sfc_main$3 = {
|
|
2176
2185
|
__name: 'InputSelect',
|
|
2177
2186
|
props: {
|
|
2178
2187
|
modelValue: {
|
|
@@ -2456,8 +2465,8 @@
|
|
|
2456
2465
|
ref_key: "select",
|
|
2457
2466
|
ref: select
|
|
2458
2467
|
}, [
|
|
2459
|
-
vue.createElementVNode("fieldset", _hoisted_1$
|
|
2460
|
-
vue.createElementVNode("legend", _hoisted_2$
|
|
2468
|
+
vue.createElementVNode("fieldset", _hoisted_1$3, [
|
|
2469
|
+
vue.createElementVNode("legend", _hoisted_2$3, vue.toDisplayString(__props.label), 1),
|
|
2461
2470
|
(__props.modelValue !== null || __props.placeholder !== '')
|
|
2462
2471
|
? (vue.openBlock(), vue.createElementBlock("label", {
|
|
2463
2472
|
key: 0,
|
|
@@ -2467,13 +2476,13 @@
|
|
|
2467
2476
|
}, [
|
|
2468
2477
|
vue.createTextVNode(vue.toDisplayString(__props.label) + " ", 1),
|
|
2469
2478
|
(__props.required)
|
|
2470
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
2479
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$3, "*"))
|
|
2471
2480
|
: vue.createCommentVNode("", true)
|
|
2472
|
-
], 10, _hoisted_3$
|
|
2481
|
+
], 10, _hoisted_3$3))
|
|
2473
2482
|
: vue.createCommentVNode("", true),
|
|
2474
|
-
vue.createElementVNode("div", _hoisted_5$
|
|
2483
|
+
vue.createElementVNode("div", _hoisted_5$3, [
|
|
2475
2484
|
(__props.autocomplete)
|
|
2476
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$
|
|
2485
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$2, [
|
|
2477
2486
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
2478
2487
|
id: __props.id,
|
|
2479
2488
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((searchText).value = $event)),
|
|
@@ -2503,7 +2512,7 @@
|
|
|
2503
2512
|
,
|
|
2504
2513
|
role: "combobox",
|
|
2505
2514
|
"aria-autocomplete": "list"
|
|
2506
|
-
}, null, 40, _hoisted_7$
|
|
2515
|
+
}, null, 40, _hoisted_7$2), [
|
|
2507
2516
|
[vue.vModelText, searchText.value]
|
|
2508
2517
|
]),
|
|
2509
2518
|
vue.createVNode(vue.unref(HpIcon), {
|
|
@@ -2533,7 +2542,7 @@
|
|
|
2533
2542
|
"aria-disabled": option.disabled
|
|
2534
2543
|
}, vue.toDisplayString(option.label), 43, _hoisted_9$1))
|
|
2535
2544
|
}), 128))
|
|
2536
|
-
], 12, _hoisted_8$
|
|
2545
|
+
], 12, _hoisted_8$2), [
|
|
2537
2546
|
[vue.vShow, isOpen.value && filteredOptions.value.length > 0]
|
|
2538
2547
|
])
|
|
2539
2548
|
]))
|
|
@@ -2659,22 +2668,22 @@
|
|
|
2659
2668
|
}
|
|
2660
2669
|
|
|
2661
2670
|
};
|
|
2662
|
-
const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2671
|
+
const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$3, [['__scopeId',"data-v-00cdf827"]]);
|
|
2663
2672
|
|
|
2664
|
-
const _hoisted_1$
|
|
2665
|
-
const _hoisted_2$
|
|
2673
|
+
const _hoisted_1$2 = { class: "input-range__fieldset" };
|
|
2674
|
+
const _hoisted_2$2 = {
|
|
2666
2675
|
key: 0,
|
|
2667
2676
|
class: "input-range__legend"
|
|
2668
2677
|
};
|
|
2669
|
-
const _hoisted_3$
|
|
2678
|
+
const _hoisted_3$2 = {
|
|
2670
2679
|
key: 0,
|
|
2671
2680
|
class: "input-range__required"
|
|
2672
2681
|
};
|
|
2673
|
-
const _hoisted_4$
|
|
2674
|
-
const _hoisted_5$
|
|
2675
|
-
const _hoisted_6 = { class: "input-range__value-display" };
|
|
2676
|
-
const _hoisted_7 = { class: "input-range__value" };
|
|
2677
|
-
const _hoisted_8 = {
|
|
2682
|
+
const _hoisted_4$2 = { class: "input-range__wrapper" };
|
|
2683
|
+
const _hoisted_5$2 = ["id", "min", "max", "step", "value", "disabled", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-labelledby", "aria-describedby"];
|
|
2684
|
+
const _hoisted_6$1 = { class: "input-range__value-display" };
|
|
2685
|
+
const _hoisted_7$1 = { class: "input-range__value" };
|
|
2686
|
+
const _hoisted_8$1 = {
|
|
2678
2687
|
key: 0,
|
|
2679
2688
|
class: "input-range__unit"
|
|
2680
2689
|
};
|
|
@@ -2685,7 +2694,7 @@
|
|
|
2685
2694
|
const _hoisted_10 = ["id"];
|
|
2686
2695
|
|
|
2687
2696
|
|
|
2688
|
-
const _sfc_main$
|
|
2697
|
+
const _sfc_main$2 = {
|
|
2689
2698
|
__name: 'InputRange',
|
|
2690
2699
|
props: {
|
|
2691
2700
|
modelValue: {
|
|
@@ -2768,16 +2777,16 @@
|
|
|
2768
2777
|
[`input-range--${__props.status}`]: __props.status !== 'default'
|
|
2769
2778
|
}])
|
|
2770
2779
|
}, [
|
|
2771
|
-
vue.createElementVNode("fieldset", _hoisted_1$
|
|
2780
|
+
vue.createElementVNode("fieldset", _hoisted_1$2, [
|
|
2772
2781
|
(__props.label)
|
|
2773
|
-
? (vue.openBlock(), vue.createElementBlock("legend", _hoisted_2$
|
|
2782
|
+
? (vue.openBlock(), vue.createElementBlock("legend", _hoisted_2$2, [
|
|
2774
2783
|
vue.createTextVNode(vue.toDisplayString(__props.label) + " ", 1),
|
|
2775
2784
|
(__props.required)
|
|
2776
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
2785
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$2, "*"))
|
|
2777
2786
|
: vue.createCommentVNode("", true)
|
|
2778
2787
|
]))
|
|
2779
2788
|
: vue.createCommentVNode("", true),
|
|
2780
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
2789
|
+
vue.createElementVNode("div", _hoisted_4$2, [
|
|
2781
2790
|
vue.createElementVNode("input", {
|
|
2782
2791
|
id: __props.id,
|
|
2783
2792
|
ref_key: "input",
|
|
@@ -2796,11 +2805,11 @@
|
|
|
2796
2805
|
"aria-valuenow": __props.modelValue,
|
|
2797
2806
|
"aria-labelledby": `${__props.id}-label`,
|
|
2798
2807
|
"aria-describedby": __props.helperText ? `${__props.id}-helper` : undefined
|
|
2799
|
-
}, null, 40, _hoisted_5$
|
|
2800
|
-
vue.createElementVNode("div", _hoisted_6, [
|
|
2801
|
-
vue.createElementVNode("span", _hoisted_7, vue.toDisplayString(__props.modelValue), 1),
|
|
2808
|
+
}, null, 40, _hoisted_5$2),
|
|
2809
|
+
vue.createElementVNode("div", _hoisted_6$1, [
|
|
2810
|
+
vue.createElementVNode("span", _hoisted_7$1, vue.toDisplayString(__props.modelValue), 1),
|
|
2802
2811
|
(__props.unit)
|
|
2803
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(__props.unit), 1))
|
|
2812
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$1, vue.toDisplayString(__props.unit), 1))
|
|
2804
2813
|
: vue.createCommentVNode("", true)
|
|
2805
2814
|
])
|
|
2806
2815
|
])
|
|
@@ -2818,17 +2827,17 @@
|
|
|
2818
2827
|
}
|
|
2819
2828
|
|
|
2820
2829
|
};
|
|
2821
|
-
const InputRange = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2830
|
+
const InputRange = /*#__PURE__*/_export_sfc(_sfc_main$2, [['__scopeId',"data-v-32e54a28"]]);
|
|
2822
2831
|
|
|
2823
|
-
const _hoisted_1 = { class: "progress-bar" };
|
|
2824
|
-
const _hoisted_2 = {
|
|
2832
|
+
const _hoisted_1$1 = { class: "progress-bar" };
|
|
2833
|
+
const _hoisted_2$1 = {
|
|
2825
2834
|
key: 0,
|
|
2826
2835
|
class: "progress-bar__header"
|
|
2827
2836
|
};
|
|
2828
|
-
const _hoisted_3 = { class: "progress-bar__value" };
|
|
2829
|
-
const _hoisted_4 = { class: "progress-bar__wrapper" };
|
|
2830
|
-
const _hoisted_5 = ["value", "max", "aria-labelledby"];
|
|
2831
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
2837
|
+
const _hoisted_3$1 = { class: "progress-bar__value" };
|
|
2838
|
+
const _hoisted_4$1 = { class: "progress-bar__wrapper" };
|
|
2839
|
+
const _hoisted_5$1 = ["value", "max", "aria-labelledby"];
|
|
2840
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
2832
2841
|
__name: "ProgressBar",
|
|
2833
2842
|
props: {
|
|
2834
2843
|
label: {
|
|
@@ -2868,29 +2877,173 @@
|
|
|
2868
2877
|
"--bar-color": props.barColor || "var(--color-danger, #b91c1c)"
|
|
2869
2878
|
}));
|
|
2870
2879
|
return (_ctx, _cache) => {
|
|
2871
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
2872
|
-
__props.hasLabel ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
2880
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
2881
|
+
__props.hasLabel ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1, [
|
|
2873
2882
|
vue.createElementVNode("span", {
|
|
2874
2883
|
class: "progress-bar__label",
|
|
2875
2884
|
id: labelId
|
|
2876
2885
|
}, vue.toDisplayString(__props.label), 1),
|
|
2877
|
-
vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(normalizedValue.value) + "% ", 1)
|
|
2886
|
+
vue.createElementVNode("span", _hoisted_3$1, vue.toDisplayString(normalizedValue.value) + "% ", 1)
|
|
2878
2887
|
])) : vue.createCommentVNode("", true),
|
|
2879
|
-
vue.createElementVNode("div", _hoisted_4, [
|
|
2888
|
+
vue.createElementVNode("div", _hoisted_4$1, [
|
|
2880
2889
|
vue.createElementVNode("progress", {
|
|
2881
2890
|
class: "progress-bar__track",
|
|
2882
2891
|
value: __props.value,
|
|
2883
2892
|
max: __props.max,
|
|
2884
2893
|
"aria-labelledby": __props.label ? labelId : void 0,
|
|
2885
2894
|
style: vue.normalizeStyle(trackStyle.value)
|
|
2886
|
-
}, null, 12, _hoisted_5)
|
|
2895
|
+
}, null, 12, _hoisted_5$1)
|
|
2887
2896
|
])
|
|
2888
2897
|
]);
|
|
2889
2898
|
};
|
|
2890
2899
|
}
|
|
2891
2900
|
});
|
|
2892
2901
|
|
|
2893
|
-
const ProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-80b0b9cd"]]);
|
|
2902
|
+
const ProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-80b0b9cd"]]);
|
|
2903
|
+
|
|
2904
|
+
const _hoisted_1 = { class: "data-table__table" };
|
|
2905
|
+
const _hoisted_2 = { class: "data-table__row" };
|
|
2906
|
+
const _hoisted_3 = {
|
|
2907
|
+
key: 0,
|
|
2908
|
+
class: "data-table__header-cell data-table__header-cell--right"
|
|
2909
|
+
};
|
|
2910
|
+
const _hoisted_4 = { class: "data-table__body" };
|
|
2911
|
+
const _hoisted_5 = {
|
|
2912
|
+
key: 0,
|
|
2913
|
+
class: "data-table__row"
|
|
2914
|
+
};
|
|
2915
|
+
const _hoisted_6 = ["colspan"];
|
|
2916
|
+
const _hoisted_7 = ["data-label"];
|
|
2917
|
+
const _hoisted_8 = {
|
|
2918
|
+
key: 0,
|
|
2919
|
+
class: "data-table__cell data-table__cell--actions"
|
|
2920
|
+
};
|
|
2921
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
2922
|
+
__name: "DataTable",
|
|
2923
|
+
props: {
|
|
2924
|
+
searchable: {
|
|
2925
|
+
type: Boolean,
|
|
2926
|
+
default: true
|
|
2927
|
+
},
|
|
2928
|
+
placeholderSearch: {
|
|
2929
|
+
type: String,
|
|
2930
|
+
default: "Digite para buscar..."
|
|
2931
|
+
},
|
|
2932
|
+
hasRowLine: {
|
|
2933
|
+
type: Boolean,
|
|
2934
|
+
default: false
|
|
2935
|
+
},
|
|
2936
|
+
items: {
|
|
2937
|
+
type: Array,
|
|
2938
|
+
required: true
|
|
2939
|
+
},
|
|
2940
|
+
columns: {
|
|
2941
|
+
type: Array,
|
|
2942
|
+
required: true
|
|
2943
|
+
}
|
|
2944
|
+
},
|
|
2945
|
+
setup(__props) {
|
|
2946
|
+
const props = __props;
|
|
2947
|
+
const search = vue.ref("");
|
|
2948
|
+
const filteredItems = vue.computed(() => {
|
|
2949
|
+
if (!search.value) return props.items;
|
|
2950
|
+
return props.items.filter(
|
|
2951
|
+
(item) => JSON.stringify(item).toLowerCase().includes(search.value.toLowerCase())
|
|
2952
|
+
);
|
|
2953
|
+
});
|
|
2954
|
+
return (_ctx, _cache) => {
|
|
2955
|
+
return vue.openBlock(), vue.createElementBlock("section", {
|
|
2956
|
+
class: vue.normalizeClass(["data-table", { "data-table--has-row-line": __props.hasRowLine }]),
|
|
2957
|
+
role: "region"
|
|
2958
|
+
}, [
|
|
2959
|
+
__props.searchable ? (vue.openBlock(), vue.createBlock(vue.unref(HpInputText), {
|
|
2960
|
+
key: 0,
|
|
2961
|
+
class: "data-table__search",
|
|
2962
|
+
leadingIcon: "BE0090",
|
|
2963
|
+
"model-value": search.value,
|
|
2964
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
2965
|
+
"aria-label": __props.placeholderSearch,
|
|
2966
|
+
label: __props.placeholderSearch,
|
|
2967
|
+
hideLabel: true
|
|
2968
|
+
}, null, 8, ["model-value", "aria-label", "label"])) : vue.createCommentVNode("", true),
|
|
2969
|
+
vue.createElementVNode("table", _hoisted_1, [
|
|
2970
|
+
vue.createElementVNode("thead", null, [
|
|
2971
|
+
vue.createElementVNode("tr", _hoisted_2, [
|
|
2972
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.columns, (column, index) => {
|
|
2973
|
+
return vue.openBlock(), vue.createElementBlock("th", {
|
|
2974
|
+
key: index,
|
|
2975
|
+
class: vue.normalizeClass(["data-table__header-cell", {
|
|
2976
|
+
"data-table__header-cell--right": column.align === "right"
|
|
2977
|
+
}]),
|
|
2978
|
+
style: vue.normalizeStyle({ width: column.width })
|
|
2979
|
+
}, [
|
|
2980
|
+
vue.createVNode(vue.unref(HpText), null, {
|
|
2981
|
+
default: vue.withCtx(() => [
|
|
2982
|
+
vue.createTextVNode(vue.toDisplayString(column.label), 1)
|
|
2983
|
+
]),
|
|
2984
|
+
_: 2
|
|
2985
|
+
}, 1024)
|
|
2986
|
+
], 6);
|
|
2987
|
+
}), 128)),
|
|
2988
|
+
_ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_3, [
|
|
2989
|
+
vue.createVNode(vue.unref(HpText), null, {
|
|
2990
|
+
default: vue.withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
2991
|
+
vue.createTextVNode("Ações", -1)
|
|
2992
|
+
])]),
|
|
2993
|
+
_: 1
|
|
2994
|
+
})
|
|
2995
|
+
])) : vue.createCommentVNode("", true)
|
|
2996
|
+
])
|
|
2997
|
+
]),
|
|
2998
|
+
vue.createElementVNode("tbody", _hoisted_4, [
|
|
2999
|
+
filteredItems.value.length === 0 ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_5, [
|
|
3000
|
+
vue.createElementVNode("td", {
|
|
3001
|
+
class: "data-table__cell",
|
|
3002
|
+
colspan: __props.columns.length + (_ctx.$slots.actions ? 1 : 0),
|
|
3003
|
+
role: "status",
|
|
3004
|
+
"aria-live": "polite"
|
|
3005
|
+
}, [
|
|
3006
|
+
vue.createVNode(vue.unref(HpText), null, {
|
|
3007
|
+
default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
3008
|
+
vue.createTextVNode("Nenhum resultado encontrado.", -1)
|
|
3009
|
+
])]),
|
|
3010
|
+
_: 1
|
|
3011
|
+
})
|
|
3012
|
+
], 8, _hoisted_6)
|
|
3013
|
+
])) : (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 1 }, vue.renderList(filteredItems.value, (item, rowIndex) => {
|
|
3014
|
+
return vue.openBlock(), vue.createElementBlock("tr", {
|
|
3015
|
+
key: rowIndex,
|
|
3016
|
+
class: "data-table__row"
|
|
3017
|
+
}, [
|
|
3018
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.columns, (column) => {
|
|
3019
|
+
return vue.openBlock(), vue.createElementBlock("td", {
|
|
3020
|
+
key: column.key,
|
|
3021
|
+
class: vue.normalizeClass(["data-table__cell", {
|
|
3022
|
+
"data-table__cell--right": column.align === "right"
|
|
3023
|
+
}]),
|
|
3024
|
+
"data-label": column.label
|
|
3025
|
+
}, [
|
|
3026
|
+
vue.createVNode(vue.unref(HpText), null, {
|
|
3027
|
+
default: vue.withCtx(() => [
|
|
3028
|
+
vue.createTextVNode(vue.toDisplayString(item[column.key]), 1)
|
|
3029
|
+
]),
|
|
3030
|
+
_: 2
|
|
3031
|
+
}, 1024)
|
|
3032
|
+
], 10, _hoisted_7);
|
|
3033
|
+
}), 128)),
|
|
3034
|
+
_ctx.$slots.actions ? (vue.openBlock(), vue.createElementBlock("td", _hoisted_8, [
|
|
3035
|
+
vue.renderSlot(_ctx.$slots, "actions", { item }, void 0, true)
|
|
3036
|
+
])) : vue.createCommentVNode("", true)
|
|
3037
|
+
]);
|
|
3038
|
+
}), 128))
|
|
3039
|
+
])
|
|
3040
|
+
])
|
|
3041
|
+
], 2);
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
});
|
|
3045
|
+
|
|
3046
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a06a935f"]]);
|
|
2894
3047
|
|
|
2895
3048
|
const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
2896
3049
|
__proto__: null,
|
|
@@ -2902,17 +3055,18 @@
|
|
|
2902
3055
|
HpButtonTertiary: ButtonTertiary,
|
|
2903
3056
|
HpCard: Card,
|
|
2904
3057
|
HpCheckbox: Checkbox,
|
|
3058
|
+
HpDataTable: DataTable,
|
|
2905
3059
|
HpHeading: Heading,
|
|
2906
3060
|
HpIcon,
|
|
2907
3061
|
HpInputNumber: InputNumber,
|
|
2908
3062
|
HpInputRange: InputRange,
|
|
2909
3063
|
HpInputSelect: InputSelect,
|
|
2910
|
-
HpInputText
|
|
3064
|
+
HpInputText,
|
|
2911
3065
|
HpModal: Modal,
|
|
2912
3066
|
HpProgressBar: ProgressBar,
|
|
2913
3067
|
HpRadioButton: RadioButton,
|
|
2914
|
-
HpSpinnerLoader: _sfc_main$
|
|
2915
|
-
HpText
|
|
3068
|
+
HpSpinnerLoader: _sfc_main$d,
|
|
3069
|
+
HpText,
|
|
2916
3070
|
HpThemeSwitcher: ThemeSwitcher,
|
|
2917
3071
|
HpToggleSwitch: ToggleSwitch
|
|
2918
3072
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
@@ -2960,17 +3114,18 @@
|
|
|
2960
3114
|
exports.HpButtonTertiary = ButtonTertiary;
|
|
2961
3115
|
exports.HpCard = Card;
|
|
2962
3116
|
exports.HpCheckbox = Checkbox;
|
|
3117
|
+
exports.HpDataTable = DataTable;
|
|
2963
3118
|
exports.HpHeading = Heading;
|
|
2964
3119
|
exports.HpIcon = HpIcon;
|
|
2965
3120
|
exports.HpInputNumber = InputNumber;
|
|
2966
3121
|
exports.HpInputRange = InputRange;
|
|
2967
3122
|
exports.HpInputSelect = InputSelect;
|
|
2968
|
-
exports.HpInputText =
|
|
3123
|
+
exports.HpInputText = HpInputText;
|
|
2969
3124
|
exports.HpModal = Modal;
|
|
2970
3125
|
exports.HpProgressBar = ProgressBar;
|
|
2971
3126
|
exports.HpRadioButton = RadioButton;
|
|
2972
|
-
exports.HpSpinnerLoader = _sfc_main$
|
|
2973
|
-
exports.HpText =
|
|
3127
|
+
exports.HpSpinnerLoader = _sfc_main$d;
|
|
3128
|
+
exports.HpText = HpText;
|
|
2974
3129
|
exports.HpThemeSwitcher = ThemeSwitcher;
|
|
2975
3130
|
exports.HpToggleSwitch = ToggleSwitch;
|
|
2976
3131
|
exports.default = index;
|