@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
|
@@ -19,8 +19,8 @@ var ButtonSize = /* @__PURE__ */ ((ButtonSize2) => {
|
|
|
19
19
|
return ButtonSize2;
|
|
20
20
|
})(ButtonSize || {});
|
|
21
21
|
|
|
22
|
-
const _hoisted_1$
|
|
23
|
-
const _sfc_main$
|
|
22
|
+
const _hoisted_1$j = ["xlink:href"];
|
|
23
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
24
24
|
__name: "Icon",
|
|
25
25
|
props: {
|
|
26
26
|
name: {
|
|
@@ -54,7 +54,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
}, [
|
|
55
55
|
createElementVNode("use", {
|
|
56
56
|
"xlink:href": `#icon-${__props.name}`
|
|
57
|
-
}, null, 8, _hoisted_1$
|
|
57
|
+
}, null, 8, _hoisted_1$j)
|
|
58
58
|
], 6);
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -68,18 +68,18 @@ const _export_sfc = (sfc, props) => {
|
|
|
68
68
|
return target;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
const HpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
71
|
+
const HpIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-0b477588"]]);
|
|
72
72
|
|
|
73
|
-
const _hoisted_1$
|
|
74
|
-
const _hoisted_2$
|
|
73
|
+
const _hoisted_1$i = ["aria-label", "aria-disabled", "disabled"];
|
|
74
|
+
const _hoisted_2$h = {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "button-primary__icon--left"
|
|
77
77
|
};
|
|
78
|
-
const _hoisted_3$
|
|
78
|
+
const _hoisted_3$f = {
|
|
79
79
|
key: 1,
|
|
80
80
|
class: "button-primary__icon--right"
|
|
81
81
|
};
|
|
82
|
-
const _sfc_main$
|
|
82
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
83
83
|
__name: "ButtonPrimary",
|
|
84
84
|
props: {
|
|
85
85
|
label: {
|
|
@@ -152,7 +152,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
152
152
|
disabled: __props.disabled,
|
|
153
153
|
onClick: handleClick
|
|
154
154
|
}, [
|
|
155
|
-
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
155
|
+
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$h, [
|
|
156
156
|
createVNode(HpIcon, {
|
|
157
157
|
name: __props.icon,
|
|
158
158
|
size: "sm",
|
|
@@ -163,31 +163,31 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
163
163
|
class: "button-primary__label",
|
|
164
164
|
style: normalizeStyle({ color: computedColor.value })
|
|
165
165
|
}, toDisplayString(__props.label), 5),
|
|
166
|
-
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
166
|
+
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_3$f, [
|
|
167
167
|
createVNode(HpIcon, {
|
|
168
168
|
name: __props.icon,
|
|
169
169
|
size: "sm",
|
|
170
170
|
color: computedColor.value
|
|
171
171
|
}, null, 8, ["name", "color"])
|
|
172
172
|
])) : createCommentVNode("", true)
|
|
173
|
-
], 14, _hoisted_1$
|
|
173
|
+
], 14, _hoisted_1$i);
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
|
|
178
|
-
const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
178
|
+
const HpButtonPrimary = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-5c29dcce"]]);
|
|
179
179
|
|
|
180
|
-
const _hoisted_1$
|
|
181
|
-
const _hoisted_2$
|
|
180
|
+
const _hoisted_1$h = ["aria-label", "aria-disabled", "disabled"];
|
|
181
|
+
const _hoisted_2$g = {
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "button-secondary__icon--left"
|
|
184
184
|
};
|
|
185
|
-
const _hoisted_3$
|
|
186
|
-
const _hoisted_4$
|
|
185
|
+
const _hoisted_3$e = { class: "button-secondary__label" };
|
|
186
|
+
const _hoisted_4$a = {
|
|
187
187
|
key: 1,
|
|
188
188
|
class: "button-secondary__icon--right"
|
|
189
189
|
};
|
|
190
|
-
const _sfc_main$
|
|
190
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
191
191
|
__name: "ButtonSecondary",
|
|
192
192
|
props: {
|
|
193
193
|
label: {
|
|
@@ -245,37 +245,37 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
245
245
|
disabled: __props.disabled,
|
|
246
246
|
onClick: handleClick
|
|
247
247
|
}, [
|
|
248
|
-
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
248
|
+
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$g, [
|
|
249
249
|
createVNode(HpIcon, {
|
|
250
250
|
name: __props.icon,
|
|
251
251
|
size: "sm"
|
|
252
252
|
}, null, 8, ["name"])
|
|
253
253
|
])) : createCommentVNode("", true),
|
|
254
|
-
createElementVNode("span", _hoisted_3$
|
|
255
|
-
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
254
|
+
createElementVNode("span", _hoisted_3$e, toDisplayString(__props.label), 1),
|
|
255
|
+
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$a, [
|
|
256
256
|
createVNode(HpIcon, {
|
|
257
257
|
name: __props.icon,
|
|
258
258
|
size: "sm"
|
|
259
259
|
}, null, 8, ["name"])
|
|
260
260
|
])) : createCommentVNode("", true)
|
|
261
|
-
], 14, _hoisted_1$
|
|
261
|
+
], 14, _hoisted_1$h);
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
|
|
266
|
-
const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
266
|
+
const HpButtonSecondary = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-ce9350e4"]]);
|
|
267
267
|
|
|
268
|
-
const _hoisted_1$
|
|
269
|
-
const _hoisted_2$
|
|
268
|
+
const _hoisted_1$g = ["aria-label", "aria-disabled", "disabled"];
|
|
269
|
+
const _hoisted_2$f = {
|
|
270
270
|
key: 0,
|
|
271
271
|
class: "button-tertiary__icon--left"
|
|
272
272
|
};
|
|
273
|
-
const _hoisted_3$
|
|
274
|
-
const _hoisted_4$
|
|
273
|
+
const _hoisted_3$d = { class: "button-tertiary__label" };
|
|
274
|
+
const _hoisted_4$9 = {
|
|
275
275
|
key: 1,
|
|
276
276
|
class: "button-tertiary__icon--right"
|
|
277
277
|
};
|
|
278
|
-
const _sfc_main$
|
|
278
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
279
279
|
__name: "ButtonTertiary",
|
|
280
280
|
props: {
|
|
281
281
|
label: {
|
|
@@ -333,25 +333,25 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
333
333
|
disabled: __props.disabled,
|
|
334
334
|
onClick: handleClick
|
|
335
335
|
}, [
|
|
336
|
-
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
336
|
+
__props.icon && __props.iconPosition === unref(IconPosition).LEFT ? (openBlock(), createElementBlock("span", _hoisted_2$f, [
|
|
337
337
|
createVNode(HpIcon, {
|
|
338
338
|
name: __props.icon,
|
|
339
339
|
size: "sm"
|
|
340
340
|
}, null, 8, ["name"])
|
|
341
341
|
])) : createCommentVNode("", true),
|
|
342
|
-
createElementVNode("span", _hoisted_3$
|
|
343
|
-
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
342
|
+
createElementVNode("span", _hoisted_3$d, toDisplayString(__props.label), 1),
|
|
343
|
+
__props.icon && __props.iconPosition === unref(IconPosition).RIGHT ? (openBlock(), createElementBlock("span", _hoisted_4$9, [
|
|
344
344
|
createVNode(HpIcon, {
|
|
345
345
|
name: __props.icon,
|
|
346
346
|
size: "sm"
|
|
347
347
|
}, null, 8, ["name"])
|
|
348
348
|
])) : createCommentVNode("", true)
|
|
349
|
-
], 14, _hoisted_1$
|
|
349
|
+
], 14, _hoisted_1$g);
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
|
|
354
|
-
const ButtonTertiary = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
354
|
+
const ButtonTertiary = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-0401b00e"]]);
|
|
355
355
|
|
|
356
356
|
var ButtonIconSize = /* @__PURE__ */ ((ButtonIconSize2) => {
|
|
357
357
|
ButtonIconSize2["SMALL"] = "sm";
|
|
@@ -378,8 +378,8 @@ const convertHexToRgb = (color) => {
|
|
|
378
378
|
return "";
|
|
379
379
|
};
|
|
380
380
|
|
|
381
|
-
const _hoisted_1$
|
|
382
|
-
const _sfc_main$
|
|
381
|
+
const _hoisted_1$f = ["aria-label", "tabindex", "aria-disabled", "disabled"];
|
|
382
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
383
383
|
__name: "ButtonIcon",
|
|
384
384
|
props: {
|
|
385
385
|
label: {
|
|
@@ -461,7 +461,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
461
461
|
name: __props.icon,
|
|
462
462
|
size: __props.size,
|
|
463
463
|
color: computedIconColor.value
|
|
464
|
-
}, null, 8, ["name", "size", "color"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
464
|
+
}, null, 8, ["name", "size", "color"])) : (openBlock(), createBlock(unref(_sfc_main$d), {
|
|
465
465
|
key: 1,
|
|
466
466
|
type: "circle1",
|
|
467
467
|
color: computedIconColor.value || "#000",
|
|
@@ -469,12 +469,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
469
469
|
size: __props.size,
|
|
470
470
|
speed: 0.8
|
|
471
471
|
}, null, 8, ["color", "secondaryColor", "size"]))
|
|
472
|
-
], 14, _hoisted_1$
|
|
472
|
+
], 14, _hoisted_1$f);
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
475
|
});
|
|
476
476
|
|
|
477
|
-
const HpButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
477
|
+
const HpButtonIcon = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-8cf8a123"]]);
|
|
478
478
|
|
|
479
479
|
var ButtonLetterSize = /* @__PURE__ */ ((ButtonLetterSize2) => {
|
|
480
480
|
ButtonLetterSize2["SMALL"] = "sm";
|
|
@@ -483,9 +483,9 @@ var ButtonLetterSize = /* @__PURE__ */ ((ButtonLetterSize2) => {
|
|
|
483
483
|
return ButtonLetterSize2;
|
|
484
484
|
})(ButtonLetterSize || {});
|
|
485
485
|
|
|
486
|
-
const _hoisted_1$
|
|
487
|
-
const _hoisted_2$
|
|
488
|
-
const _sfc_main$
|
|
486
|
+
const _hoisted_1$e = ["aria-label", "aria-disabled", "disabled", "tabindex"];
|
|
487
|
+
const _hoisted_2$e = { key: 0 };
|
|
488
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
489
489
|
__name: "ButtonLetter",
|
|
490
490
|
props: {
|
|
491
491
|
label: {
|
|
@@ -568,7 +568,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
568
568
|
color: computedLetterColor.value
|
|
569
569
|
})
|
|
570
570
|
}, [
|
|
571
|
-
!__props.isLoading ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
571
|
+
!__props.isLoading ? (openBlock(), createElementBlock("span", _hoisted_2$e, toDisplayString(__props.letter), 1)) : (openBlock(), createBlock(unref(_sfc_main$d), {
|
|
572
572
|
key: 1,
|
|
573
573
|
type: "circle1",
|
|
574
574
|
color: computedLetterColor.value || "var(--color-primary)",
|
|
@@ -576,12 +576,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
576
576
|
size: __props.size,
|
|
577
577
|
speed: 0.8
|
|
578
578
|
}, null, 8, ["color", "secondaryColor", "size"]))
|
|
579
|
-
], 14, _hoisted_1$
|
|
579
|
+
], 14, _hoisted_1$e);
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
582
|
});
|
|
583
583
|
|
|
584
|
-
const ButtonLetter = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
584
|
+
const ButtonLetter = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-13b75270"]]);
|
|
585
585
|
|
|
586
586
|
var AlertType = /* @__PURE__ */ ((AlertType2) => {
|
|
587
587
|
AlertType2["WARNING"] = "warning";
|
|
@@ -591,9 +591,9 @@ var AlertType = /* @__PURE__ */ ((AlertType2) => {
|
|
|
591
591
|
return AlertType2;
|
|
592
592
|
})(AlertType || {});
|
|
593
593
|
|
|
594
|
-
const _hoisted_1$
|
|
595
|
-
const _hoisted_2$
|
|
596
|
-
const _sfc_main$
|
|
594
|
+
const _hoisted_1$d = { class: "alert" };
|
|
595
|
+
const _hoisted_2$d = { class: "alert__container__message" };
|
|
596
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
597
597
|
__name: "Alert",
|
|
598
598
|
props: {
|
|
599
599
|
message: {
|
|
@@ -656,7 +656,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
656
656
|
return props.type;
|
|
657
657
|
});
|
|
658
658
|
return (_ctx, _cache) => {
|
|
659
|
-
return openBlock(), createElementBlock("section", _hoisted_1$
|
|
659
|
+
return openBlock(), createElementBlock("section", _hoisted_1$d, [
|
|
660
660
|
createElementVNode("div", {
|
|
661
661
|
class: "alert__container",
|
|
662
662
|
style: normalizeStyle({
|
|
@@ -664,7 +664,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
664
664
|
"--color": computedColorType.value
|
|
665
665
|
})
|
|
666
666
|
}, [
|
|
667
|
-
createElementVNode("p", _hoisted_2$
|
|
667
|
+
createElementVNode("p", _hoisted_2$d, toDisplayString(__props.message), 1),
|
|
668
668
|
createVNode(unref(HpButtonIcon), {
|
|
669
669
|
class: "alert__container__icon",
|
|
670
670
|
label: "Fechar modal",
|
|
@@ -680,18 +680,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
682
|
|
|
683
|
-
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
683
|
+
const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-10dcca72"]]);
|
|
684
684
|
|
|
685
|
-
const _hoisted_1$
|
|
685
|
+
const _hoisted_1$c = {
|
|
686
686
|
key: 0,
|
|
687
687
|
class: "card__header"
|
|
688
688
|
};
|
|
689
|
-
const _hoisted_2$
|
|
690
|
-
const _hoisted_3$
|
|
689
|
+
const _hoisted_2$c = { class: "card__body" };
|
|
690
|
+
const _hoisted_3$c = {
|
|
691
691
|
key: 1,
|
|
692
692
|
class: "card__footer"
|
|
693
693
|
};
|
|
694
|
-
const _sfc_main$
|
|
694
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
695
695
|
__name: "Card",
|
|
696
696
|
props: {
|
|
697
697
|
title: { type: String, default: "" },
|
|
@@ -713,10 +713,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
713
713
|
"aria-labelledby": titleId,
|
|
714
714
|
"aria-describedby": descriptionId
|
|
715
715
|
}, [
|
|
716
|
-
_ctx.$slots.header ? (openBlock(), createElementBlock("header", _hoisted_1$
|
|
716
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("header", _hoisted_1$c, [
|
|
717
717
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
718
718
|
])) : createCommentVNode("", true),
|
|
719
|
-
createElementVNode("div", _hoisted_2$
|
|
719
|
+
createElementVNode("div", _hoisted_2$c, [
|
|
720
720
|
__props.title ? (openBlock(), createElementBlock("h3", {
|
|
721
721
|
key: 0,
|
|
722
722
|
id: titleId,
|
|
@@ -729,7 +729,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
729
729
|
}, toDisplayString(__props.description), 1)) : createCommentVNode("", true),
|
|
730
730
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
731
731
|
]),
|
|
732
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$
|
|
732
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", _hoisted_3$c, [
|
|
733
733
|
renderSlot(_ctx.$slots, "footer", {}, void 0, true)
|
|
734
734
|
])) : createCommentVNode("", true)
|
|
735
735
|
], 2);
|
|
@@ -737,7 +737,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
737
737
|
}
|
|
738
738
|
});
|
|
739
739
|
|
|
740
|
-
const Card = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
740
|
+
const Card = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2b489100"]]);
|
|
741
741
|
|
|
742
742
|
var SpinnerLoaderSize = /* @__PURE__ */ ((SpinnerLoaderSize2) => {
|
|
743
743
|
SpinnerLoaderSize2["SMALL"] = "sm";
|
|
@@ -746,35 +746,35 @@ var SpinnerLoaderSize = /* @__PURE__ */ ((SpinnerLoaderSize2) => {
|
|
|
746
746
|
return SpinnerLoaderSize2;
|
|
747
747
|
})(SpinnerLoaderSize || {});
|
|
748
748
|
|
|
749
|
-
const _hoisted_1$
|
|
749
|
+
const _hoisted_1$b = {
|
|
750
750
|
key: 0,
|
|
751
751
|
class: "spinner-circle-1"
|
|
752
752
|
};
|
|
753
|
-
const _hoisted_2$
|
|
753
|
+
const _hoisted_2$b = {
|
|
754
754
|
key: 1,
|
|
755
755
|
class: "spinner-circle-2"
|
|
756
756
|
};
|
|
757
|
-
const _hoisted_3$
|
|
757
|
+
const _hoisted_3$b = {
|
|
758
758
|
key: 2,
|
|
759
759
|
class: "spinner-circle-3"
|
|
760
760
|
};
|
|
761
|
-
const _hoisted_4$
|
|
761
|
+
const _hoisted_4$8 = {
|
|
762
762
|
key: 3,
|
|
763
763
|
class: "spinner-circle-4"
|
|
764
764
|
};
|
|
765
|
-
const _hoisted_5$
|
|
765
|
+
const _hoisted_5$8 = {
|
|
766
766
|
key: 4,
|
|
767
767
|
class: "spinner-dot-1"
|
|
768
768
|
};
|
|
769
|
-
const _hoisted_6$
|
|
769
|
+
const _hoisted_6$5 = {
|
|
770
770
|
key: 5,
|
|
771
771
|
class: "spinner-dot-2"
|
|
772
772
|
};
|
|
773
|
-
const _hoisted_7$
|
|
773
|
+
const _hoisted_7$5 = {
|
|
774
774
|
key: 6,
|
|
775
775
|
class: "spinner-dot-3"
|
|
776
776
|
};
|
|
777
|
-
const _hoisted_8$
|
|
777
|
+
const _hoisted_8$5 = {
|
|
778
778
|
key: 7,
|
|
779
779
|
class: "spinner-dot-4"
|
|
780
780
|
};
|
|
@@ -810,7 +810,7 @@ const _hoisted_16$1 = {
|
|
|
810
810
|
key: 15,
|
|
811
811
|
class: "spinner-search"
|
|
812
812
|
};
|
|
813
|
-
const _sfc_main$
|
|
813
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
814
814
|
__name: "SpinnerLoader",
|
|
815
815
|
props: {
|
|
816
816
|
type: {
|
|
@@ -860,11 +860,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
860
860
|
class: normalizeClass(["spinner-loader", `spinner-${__props.type}`]),
|
|
861
861
|
style: normalizeStyle(spinnerStyles.value)
|
|
862
862
|
}, [
|
|
863
|
-
__props.type === "circle1" ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
864
|
-
__props.type === "circle2" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
865
|
-
__props.type === "circle3" ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
866
|
-
__props.type === "circle4" ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
867
|
-
__props.type === "dot1" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
863
|
+
__props.type === "circle1" ? (openBlock(), createElementBlock("div", _hoisted_1$b)) : createCommentVNode("", true),
|
|
864
|
+
__props.type === "circle2" ? (openBlock(), createElementBlock("div", _hoisted_2$b)) : createCommentVNode("", true),
|
|
865
|
+
__props.type === "circle3" ? (openBlock(), createElementBlock("div", _hoisted_3$b)) : createCommentVNode("", true),
|
|
866
|
+
__props.type === "circle4" ? (openBlock(), createElementBlock("div", _hoisted_4$8)) : createCommentVNode("", true),
|
|
867
|
+
__props.type === "dot1" ? (openBlock(), createElementBlock("div", _hoisted_5$8, [
|
|
868
868
|
(openBlock(), createElementBlock(Fragment, null, renderList(3, (i) => {
|
|
869
869
|
return createElementVNode("div", {
|
|
870
870
|
key: `dot1-${i}`,
|
|
@@ -872,9 +872,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
872
872
|
});
|
|
873
873
|
}), 64))
|
|
874
874
|
])) : createCommentVNode("", true),
|
|
875
|
-
__props.type === "dot2" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
876
|
-
__props.type === "dot3" ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
877
|
-
__props.type === "dot4" ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
875
|
+
__props.type === "dot2" ? (openBlock(), createElementBlock("div", _hoisted_6$5)) : createCommentVNode("", true),
|
|
876
|
+
__props.type === "dot3" ? (openBlock(), createElementBlock("div", _hoisted_7$5)) : createCommentVNode("", true),
|
|
877
|
+
__props.type === "dot4" ? (openBlock(), createElementBlock("div", _hoisted_8$5)) : createCommentVNode("", true),
|
|
878
878
|
__props.type === "dot5" ? (openBlock(), createElementBlock("div", _hoisted_9$3)) : createCommentVNode("", true),
|
|
879
879
|
__props.type === "ring1" ? (openBlock(), createElementBlock("div", _hoisted_10$3)) : createCommentVNode("", true),
|
|
880
880
|
__props.type === "ring2" ? (openBlock(), createElementBlock("div", _hoisted_11$1)) : createCommentVNode("", true),
|
|
@@ -890,13 +890,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
890
890
|
}
|
|
891
891
|
});
|
|
892
892
|
|
|
893
|
-
const _hoisted_1$
|
|
894
|
-
const _hoisted_2$
|
|
895
|
-
const _hoisted_3$
|
|
893
|
+
const _hoisted_1$a = ["for"];
|
|
894
|
+
const _hoisted_2$a = ["id", "checked", "disabled"];
|
|
895
|
+
const _hoisted_3$a = {
|
|
896
896
|
key: 0,
|
|
897
897
|
class: "checkbox__label"
|
|
898
898
|
};
|
|
899
|
-
const _sfc_main$
|
|
899
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
900
900
|
__name: "Checkbox",
|
|
901
901
|
props: {
|
|
902
902
|
modelValue: {
|
|
@@ -982,7 +982,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
982
982
|
checked: isChecked.value,
|
|
983
983
|
disabled: __props.disabled,
|
|
984
984
|
onChange: handleChange
|
|
985
|
-
}, null, 40, _hoisted_2$
|
|
985
|
+
}, null, 40, _hoisted_2$a),
|
|
986
986
|
createElementVNode("span", {
|
|
987
987
|
class: normalizeClass(["checkbox__container", { "checkbox__container--rounded": __props.rounded }]),
|
|
988
988
|
style: normalizeStyle({ "--background-color": computedBackgroundColor.value })
|
|
@@ -1000,23 +1000,23 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1000
1000
|
createElementVNode("polyline", { points: "1 5 4 8 11 1" }, null, -1)
|
|
1001
1001
|
])], 6)) : createCommentVNode("", true)
|
|
1002
1002
|
], 6),
|
|
1003
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1003
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$a, [
|
|
1004
1004
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1005
1005
|
])) : createCommentVNode("", true)
|
|
1006
|
-
], 14, _hoisted_1$
|
|
1006
|
+
], 14, _hoisted_1$a);
|
|
1007
1007
|
};
|
|
1008
1008
|
}
|
|
1009
1009
|
});
|
|
1010
1010
|
|
|
1011
|
-
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1011
|
+
const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-29384d40"]]);
|
|
1012
1012
|
|
|
1013
|
-
const _hoisted_1$
|
|
1014
|
-
const _hoisted_2$
|
|
1015
|
-
const _hoisted_3$
|
|
1013
|
+
const _hoisted_1$9 = ["for"];
|
|
1014
|
+
const _hoisted_2$9 = ["id", "checked", "disabled", "value"];
|
|
1015
|
+
const _hoisted_3$9 = {
|
|
1016
1016
|
key: 0,
|
|
1017
1017
|
class: "radio__label"
|
|
1018
1018
|
};
|
|
1019
|
-
const _sfc_main$
|
|
1019
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1020
1020
|
__name: "RadioButton",
|
|
1021
1021
|
props: {
|
|
1022
1022
|
modelValue: {
|
|
@@ -1098,7 +1098,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1098
1098
|
disabled: __props.disabled,
|
|
1099
1099
|
value: __props.value,
|
|
1100
1100
|
onChange: handleChange
|
|
1101
|
-
}, null, 40, _hoisted_2$
|
|
1101
|
+
}, null, 40, _hoisted_2$9),
|
|
1102
1102
|
createElementVNode("span", {
|
|
1103
1103
|
class: normalizeClass(["radio__container", { "radio__container--rounded": __props.rounded }])
|
|
1104
1104
|
}, [
|
|
@@ -1107,15 +1107,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1107
1107
|
class: normalizeClass(["radio__dot", { "radio__dot--animated": __props.hasAnimation }])
|
|
1108
1108
|
}, null, 2)) : createCommentVNode("", true)
|
|
1109
1109
|
], 2),
|
|
1110
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1110
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$9, [
|
|
1111
1111
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1112
1112
|
])) : createCommentVNode("", true)
|
|
1113
|
-
], 14, _hoisted_1$
|
|
1113
|
+
], 14, _hoisted_1$9);
|
|
1114
1114
|
};
|
|
1115
1115
|
}
|
|
1116
1116
|
});
|
|
1117
1117
|
|
|
1118
|
-
const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1118
|
+
const RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-50110fea"]]);
|
|
1119
1119
|
|
|
1120
1120
|
var TextSize = /* @__PURE__ */ ((TextSize2) => {
|
|
1121
1121
|
TextSize2["EXTRA_SMALL"] = "xs";
|
|
@@ -1136,7 +1136,7 @@ var HeadingLevel = /* @__PURE__ */ ((HeadingLevel2) => {
|
|
|
1136
1136
|
return HeadingLevel2;
|
|
1137
1137
|
})(HeadingLevel || {});
|
|
1138
1138
|
|
|
1139
|
-
const _sfc_main$
|
|
1139
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1140
1140
|
__name: "Text",
|
|
1141
1141
|
props: {
|
|
1142
1142
|
size: {
|
|
@@ -1167,9 +1167,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1167
1167
|
}
|
|
1168
1168
|
});
|
|
1169
1169
|
|
|
1170
|
-
const
|
|
1170
|
+
const HpText = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-e52f8226"]]);
|
|
1171
1171
|
|
|
1172
|
-
const _sfc_main$
|
|
1172
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1173
1173
|
__name: "Heading",
|
|
1174
1174
|
props: {
|
|
1175
1175
|
level: {
|
|
@@ -1207,20 +1207,20 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
1209
|
|
|
1210
|
-
const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1210
|
+
const Heading = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-35210bc7"]]);
|
|
1211
1211
|
|
|
1212
|
-
const _hoisted_1$
|
|
1213
|
-
const _hoisted_2$
|
|
1214
|
-
const _hoisted_3$
|
|
1215
|
-
const _hoisted_4$
|
|
1212
|
+
const _hoisted_1$8 = { class: "modal__header" };
|
|
1213
|
+
const _hoisted_2$8 = { class: "modal__title" };
|
|
1214
|
+
const _hoisted_3$8 = { class: "modal__content" };
|
|
1215
|
+
const _hoisted_4$7 = {
|
|
1216
1216
|
key: 0,
|
|
1217
1217
|
class: "modal__footer"
|
|
1218
1218
|
};
|
|
1219
|
-
const _hoisted_5$
|
|
1219
|
+
const _hoisted_5$7 = {
|
|
1220
1220
|
key: 1,
|
|
1221
1221
|
class: "modal__footer"
|
|
1222
1222
|
};
|
|
1223
|
-
const _sfc_main$
|
|
1223
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1224
1224
|
__name: "Modal",
|
|
1225
1225
|
props: {
|
|
1226
1226
|
title: {
|
|
@@ -1299,7 +1299,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1299
1299
|
createElementVNode("div", {
|
|
1300
1300
|
class: normalizeClass(["modal__container", [`modal__container--${__props.size}`]])
|
|
1301
1301
|
}, [
|
|
1302
|
-
createElementVNode("div", _hoisted_1$
|
|
1302
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
1303
1303
|
__props.showBackButton ? (openBlock(), createBlock(unref(HpButtonIcon), {
|
|
1304
1304
|
key: 0,
|
|
1305
1305
|
class: "modal__back-button",
|
|
@@ -1308,7 +1308,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1308
1308
|
label: "Botão de voltar",
|
|
1309
1309
|
onClick: handleBackClick
|
|
1310
1310
|
})) : createCommentVNode("", true),
|
|
1311
|
-
createElementVNode("h2", _hoisted_2$
|
|
1311
|
+
createElementVNode("h2", _hoisted_2$8, toDisplayString(__props.title), 1),
|
|
1312
1312
|
__props.showCloseButton ? (openBlock(), createBlock(unref(HpButtonIcon), {
|
|
1313
1313
|
key: 1,
|
|
1314
1314
|
class: "modal__close-button",
|
|
@@ -1318,10 +1318,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1318
1318
|
onClick: handleCloseModal
|
|
1319
1319
|
})) : createCommentVNode("", true)
|
|
1320
1320
|
]),
|
|
1321
|
-
createElementVNode("div", _hoisted_3$
|
|
1321
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
1322
1322
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1323
1323
|
]),
|
|
1324
|
-
__props.hasPrimaryButton || __props.hasSecondaryButton ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
1324
|
+
__props.hasPrimaryButton || __props.hasSecondaryButton ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
|
|
1325
1325
|
__props.hasSecondaryButton ? (openBlock(), createBlock(unref(HpButtonSecondary), {
|
|
1326
1326
|
key: 0,
|
|
1327
1327
|
label: __props.secondaryButtonLabel,
|
|
@@ -1335,7 +1335,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1335
1335
|
onClick: handleSecondaryButtonClick
|
|
1336
1336
|
}, null, 8, ["label", "backgroundColor"])) : createCommentVNode("", true)
|
|
1337
1337
|
])) : createCommentVNode("", true),
|
|
1338
|
-
!__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1338
|
+
!__props.hasPrimaryButton && !__props.hasSecondaryButton && _ctx.$slots.buttons ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
|
|
1339
1339
|
renderSlot(_ctx.$slots, "buttons", {}, void 0, true)
|
|
1340
1340
|
])) : createCommentVNode("", true)
|
|
1341
1341
|
], 2)
|
|
@@ -1347,15 +1347,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1347
1347
|
}
|
|
1348
1348
|
});
|
|
1349
1349
|
|
|
1350
|
-
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1350
|
+
const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-cdf63c2b"]]);
|
|
1351
1351
|
|
|
1352
|
-
const _hoisted_1$
|
|
1353
|
-
const _hoisted_2$
|
|
1354
|
-
const _hoisted_3$
|
|
1352
|
+
const _hoisted_1$7 = ["id", "checked", "disabled", "aria-checked", "aria-labelledby"];
|
|
1353
|
+
const _hoisted_2$7 = ["for", "id", "tabindex", "onKeydown"];
|
|
1354
|
+
const _hoisted_3$7 = {
|
|
1355
1355
|
key: 0,
|
|
1356
1356
|
class: "toggle-switch__text"
|
|
1357
1357
|
};
|
|
1358
|
-
const _sfc_main$
|
|
1358
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1359
1359
|
__name: "ToggleSwitch",
|
|
1360
1360
|
props: {
|
|
1361
1361
|
modelValue: {
|
|
@@ -1420,7 +1420,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1420
1420
|
"aria-checked": __props.modelValue,
|
|
1421
1421
|
"aria-labelledby": `${__props.id}-label`,
|
|
1422
1422
|
tabindex: "-1"
|
|
1423
|
-
}, null, 40, _hoisted_1$
|
|
1423
|
+
}, null, 40, _hoisted_1$7),
|
|
1424
1424
|
createElementVNode("label", {
|
|
1425
1425
|
for: __props.id,
|
|
1426
1426
|
class: "toggle-switch__label",
|
|
@@ -1441,28 +1441,28 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1441
1441
|
style: normalizeStyle({ "--thumb-color": computedThumbColor.value })
|
|
1442
1442
|
}, null, 4)
|
|
1443
1443
|
], 4),
|
|
1444
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
1444
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3$7, [
|
|
1445
1445
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
1446
1446
|
])) : createCommentVNode("", true)
|
|
1447
|
-
], 44, _hoisted_2$
|
|
1447
|
+
], 44, _hoisted_2$7)
|
|
1448
1448
|
], 2);
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
1451
1451
|
});
|
|
1452
1452
|
|
|
1453
|
-
const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1453
|
+
const ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-14c54b46"]]);
|
|
1454
1454
|
|
|
1455
|
-
const _hoisted_1$
|
|
1456
|
-
const _hoisted_2$
|
|
1457
|
-
const _hoisted_3$
|
|
1455
|
+
const _hoisted_1$6 = { key: 0 };
|
|
1456
|
+
const _hoisted_2$6 = ["aria-checked", "onKeydown"];
|
|
1457
|
+
const _hoisted_3$6 = {
|
|
1458
1458
|
key: 1,
|
|
1459
1459
|
class: "theme-switcher-animation"
|
|
1460
1460
|
};
|
|
1461
|
-
const _hoisted_4$
|
|
1462
|
-
const _hoisted_5$
|
|
1461
|
+
const _hoisted_4$6 = ["id", "aria-checked"];
|
|
1462
|
+
const _hoisted_5$6 = ["for", "onKeydown"];
|
|
1463
1463
|
|
|
1464
1464
|
|
|
1465
|
-
const _sfc_main$
|
|
1465
|
+
const _sfc_main$6 = {
|
|
1466
1466
|
__name: 'ThemeSwitcher',
|
|
1467
1467
|
props: {
|
|
1468
1468
|
modelValue: {
|
|
@@ -1574,7 +1574,7 @@ const computedDarkBackgroundColor = computed(
|
|
|
1574
1574
|
|
|
1575
1575
|
return (_ctx, _cache) => {
|
|
1576
1576
|
return (!__props.hasAnimation)
|
|
1577
|
-
? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1577
|
+
? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1578
1578
|
createElementVNode("button", {
|
|
1579
1579
|
class: "theme-switcher",
|
|
1580
1580
|
type: "button",
|
|
@@ -1597,9 +1597,9 @@ return (_ctx, _cache) => {
|
|
|
1597
1597
|
size: "sm",
|
|
1598
1598
|
color: computedButtonIconColor.value
|
|
1599
1599
|
}, null, 8, ["name", "color"])
|
|
1600
|
-
], 44, _hoisted_2$
|
|
1600
|
+
], 44, _hoisted_2$6)
|
|
1601
1601
|
]))
|
|
1602
|
-
: (openBlock(), createElementBlock("div", _hoisted_3$
|
|
1602
|
+
: (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
1603
1603
|
withDirectives(createElementVNode("input", {
|
|
1604
1604
|
type: "checkbox",
|
|
1605
1605
|
id: __props.id,
|
|
@@ -1610,7 +1610,7 @@ return (_ctx, _cache) => {
|
|
|
1610
1610
|
"aria-checked": isDarkMode.value,
|
|
1611
1611
|
"aria-label": "Alternar entre tema claro e escuro",
|
|
1612
1612
|
tabindex: "-1"
|
|
1613
|
-
}, null, 40, _hoisted_4$
|
|
1613
|
+
}, null, 40, _hoisted_4$6), [
|
|
1614
1614
|
[vModelCheckbox, isDarkMode.value]
|
|
1615
1615
|
]),
|
|
1616
1616
|
createElementVNode("label", {
|
|
@@ -1629,31 +1629,31 @@ return (_ctx, _cache) => {
|
|
|
1629
1629
|
]
|
|
1630
1630
|
}, [...(_cache[1] || (_cache[1] = [
|
|
1631
1631
|
createElementVNode("span", { class: "toggle--label-background" }, null, -1)
|
|
1632
|
-
]))], 44, _hoisted_5$
|
|
1632
|
+
]))], 44, _hoisted_5$6)
|
|
1633
1633
|
]))
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
1637
|
};
|
|
1638
|
-
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
1638
|
+
const ThemeSwitcher = /*#__PURE__*/_export_sfc(_sfc_main$6, [['__scopeId',"data-v-7efca676"]]);
|
|
1639
1639
|
|
|
1640
|
-
const _hoisted_1$
|
|
1641
|
-
const _hoisted_2$
|
|
1640
|
+
const _hoisted_1$5 = { class: "input__fieldset" };
|
|
1641
|
+
const _hoisted_2$5 = {
|
|
1642
1642
|
style: {"display":"none"},
|
|
1643
1643
|
"aria-hidden": true
|
|
1644
1644
|
};
|
|
1645
|
-
const _hoisted_3$
|
|
1646
|
-
const _hoisted_4$
|
|
1647
|
-
const _hoisted_5$
|
|
1648
|
-
const _hoisted_6$
|
|
1649
|
-
const _hoisted_7$
|
|
1650
|
-
const _hoisted_8$
|
|
1645
|
+
const _hoisted_3$5 = ["for"];
|
|
1646
|
+
const _hoisted_4$5 = { class: "input__wrapper" };
|
|
1647
|
+
const _hoisted_5$5 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "maxlength", "aria-labelledby", "aria-describedby", "aria-invalid"];
|
|
1648
|
+
const _hoisted_6$4 = { class: "input__footer" };
|
|
1649
|
+
const _hoisted_7$4 = ["id"];
|
|
1650
|
+
const _hoisted_8$4 = {
|
|
1651
1651
|
key: 1,
|
|
1652
1652
|
class: "input__counter"
|
|
1653
1653
|
};
|
|
1654
1654
|
|
|
1655
1655
|
|
|
1656
|
-
const _sfc_main$
|
|
1656
|
+
const _sfc_main$5 = {
|
|
1657
1657
|
__name: 'InputText',
|
|
1658
1658
|
props: {
|
|
1659
1659
|
modelValue: {
|
|
@@ -1664,6 +1664,10 @@ const _sfc_main$4 = {
|
|
|
1664
1664
|
type: String,
|
|
1665
1665
|
required: true
|
|
1666
1666
|
},
|
|
1667
|
+
hideLabel: {
|
|
1668
|
+
type: Boolean,
|
|
1669
|
+
default: false
|
|
1670
|
+
},
|
|
1667
1671
|
id: {
|
|
1668
1672
|
type: String,
|
|
1669
1673
|
default: () => `input-text-${Math.random().toString(36).substring(2, 9)}`
|
|
@@ -1727,6 +1731,11 @@ const emit = __emit;
|
|
|
1727
1731
|
|
|
1728
1732
|
const input = ref(null);
|
|
1729
1733
|
const isFocused = ref(false);
|
|
1734
|
+
const showInputLabel = computed(
|
|
1735
|
+
() =>
|
|
1736
|
+
!props.hideLabel &&
|
|
1737
|
+
(isFocused || props.modelValue !== '' || props.placeholder !== '')
|
|
1738
|
+
);
|
|
1730
1739
|
const hasValue = computed(() => String(props.modelValue).length > 0);
|
|
1731
1740
|
const hasPlaceholder = computed(() => String(props.placeholder).length > 0);
|
|
1732
1741
|
const placeholderFormatted = computed(() => {
|
|
@@ -1780,16 +1789,16 @@ return (_ctx, _cache) => {
|
|
|
1780
1789
|
'--icon-padding-right': __props.trailingIcon ? '32px' : '0px'
|
|
1781
1790
|
})
|
|
1782
1791
|
}, [
|
|
1783
|
-
createElementVNode("fieldset", _hoisted_1$
|
|
1784
|
-
createElementVNode("legend", _hoisted_2$
|
|
1785
|
-
(
|
|
1792
|
+
createElementVNode("fieldset", _hoisted_1$5, [
|
|
1793
|
+
createElementVNode("legend", _hoisted_2$5, toDisplayString(__props.label), 1),
|
|
1794
|
+
(showInputLabel.value)
|
|
1786
1795
|
? (openBlock(), createElementBlock("label", {
|
|
1787
1796
|
key: 0,
|
|
1788
1797
|
for: __props.id,
|
|
1789
1798
|
class: normalizeClass(["input__label", { 'input__label--required': __props.required }])
|
|
1790
|
-
}, toDisplayString(__props.label), 11, _hoisted_3$
|
|
1799
|
+
}, toDisplayString(__props.label), 11, _hoisted_3$5))
|
|
1791
1800
|
: createCommentVNode("", true),
|
|
1792
|
-
createElementVNode("div", _hoisted_4$
|
|
1801
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
1793
1802
|
(__props.leadingIcon)
|
|
1794
1803
|
? (openBlock(), createBlock(unref(HpIcon), {
|
|
1795
1804
|
key: 0,
|
|
@@ -1818,7 +1827,7 @@ return (_ctx, _cache) => {
|
|
|
1818
1827
|
"aria-labelledby": `${__props.id}-label`,
|
|
1819
1828
|
"aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
|
|
1820
1829
|
"aria-invalid": __props.status === 'error'
|
|
1821
|
-
}, null, 40, _hoisted_5$
|
|
1830
|
+
}, null, 40, _hoisted_5$5),
|
|
1822
1831
|
(__props.iconHasAction && __props.trailingIcon)
|
|
1823
1832
|
? (openBlock(), createBlock(unref(HpButtonIcon), {
|
|
1824
1833
|
key: 1,
|
|
@@ -1842,16 +1851,16 @@ return (_ctx, _cache) => {
|
|
|
1842
1851
|
: createCommentVNode("", true)
|
|
1843
1852
|
])
|
|
1844
1853
|
]),
|
|
1845
|
-
createElementVNode("div", _hoisted_6$
|
|
1854
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
1846
1855
|
(__props.helperText)
|
|
1847
1856
|
? (openBlock(), createElementBlock("span", {
|
|
1848
1857
|
key: 0,
|
|
1849
1858
|
id: `${__props.id}-helper-text`,
|
|
1850
1859
|
class: normalizeClass(["input__helper-text", { [`input__helper-text--${__props.status}`]: __props.status !== 'default' }])
|
|
1851
|
-
}, toDisplayString(__props.helperText), 11, _hoisted_7$
|
|
1860
|
+
}, toDisplayString(__props.helperText), 11, _hoisted_7$4))
|
|
1852
1861
|
: createCommentVNode("", true),
|
|
1853
1862
|
(__props.hasLengthCount)
|
|
1854
|
-
? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
1863
|
+
? (openBlock(), createElementBlock("span", _hoisted_8$4, toDisplayString(__props.modelValue?.length || 0) + "/" + toDisplayString(__props.maxLength), 1))
|
|
1855
1864
|
: createCommentVNode("", true)
|
|
1856
1865
|
])
|
|
1857
1866
|
], 6))
|
|
@@ -1859,24 +1868,24 @@ return (_ctx, _cache) => {
|
|
|
1859
1868
|
}
|
|
1860
1869
|
|
|
1861
1870
|
};
|
|
1862
|
-
const
|
|
1871
|
+
const HpInputText = /*#__PURE__*/_export_sfc(_sfc_main$5, [['__scopeId',"data-v-e05af4c2"]]);
|
|
1863
1872
|
|
|
1864
|
-
const _hoisted_1$
|
|
1865
|
-
const _hoisted_2$
|
|
1873
|
+
const _hoisted_1$4 = { class: "input__fieldset" };
|
|
1874
|
+
const _hoisted_2$4 = {
|
|
1866
1875
|
style: {"display":"none"},
|
|
1867
1876
|
"aria-hidden": true
|
|
1868
1877
|
};
|
|
1869
|
-
const _hoisted_3$
|
|
1870
|
-
const _hoisted_4$
|
|
1871
|
-
const _hoisted_5$
|
|
1872
|
-
const _hoisted_6$
|
|
1873
|
-
const _hoisted_7$
|
|
1874
|
-
const _hoisted_8$
|
|
1878
|
+
const _hoisted_3$4 = ["for"];
|
|
1879
|
+
const _hoisted_4$4 = { class: "input__wrapper" };
|
|
1880
|
+
const _hoisted_5$4 = ["id", "value", "readonly", "aria-readonly", "disabled", "placeholder", "required", "min", "max", "aria-labelledby", "aria-describedby", "aria-invalid"];
|
|
1881
|
+
const _hoisted_6$3 = { class: "input__buttons-container" };
|
|
1882
|
+
const _hoisted_7$3 = ["disabled", "aria-label"];
|
|
1883
|
+
const _hoisted_8$3 = ["disabled", "aria-label"];
|
|
1875
1884
|
const _hoisted_9$2 = { class: "input__footer" };
|
|
1876
1885
|
const _hoisted_10$2 = ["id"];
|
|
1877
1886
|
|
|
1878
1887
|
|
|
1879
|
-
const _sfc_main$
|
|
1888
|
+
const _sfc_main$4 = {
|
|
1880
1889
|
__name: 'InputNumber',
|
|
1881
1890
|
props: {
|
|
1882
1891
|
modelValue: {
|
|
@@ -2042,16 +2051,16 @@ return (_ctx, _cache) => {
|
|
|
2042
2051
|
'--icon-padding-left': __props.leadingIcon ? '24px' : '0px'
|
|
2043
2052
|
})
|
|
2044
2053
|
}, [
|
|
2045
|
-
createElementVNode("fieldset", _hoisted_1$
|
|
2046
|
-
createElementVNode("legend", _hoisted_2$
|
|
2054
|
+
createElementVNode("fieldset", _hoisted_1$4, [
|
|
2055
|
+
createElementVNode("legend", _hoisted_2$4, toDisplayString(__props.label), 1),
|
|
2047
2056
|
(isFocused.value || modelValueFormatted.value !== null || __props.placeholder !== '')
|
|
2048
2057
|
? (openBlock(), createElementBlock("label", {
|
|
2049
2058
|
key: 0,
|
|
2050
2059
|
for: __props.id,
|
|
2051
2060
|
class: normalizeClass(["input__label", { 'input__label--required': __props.required }])
|
|
2052
|
-
}, toDisplayString(__props.label), 11, _hoisted_3$
|
|
2061
|
+
}, toDisplayString(__props.label), 11, _hoisted_3$4))
|
|
2053
2062
|
: createCommentVNode("", true),
|
|
2054
|
-
createElementVNode("div", _hoisted_4$
|
|
2063
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
2055
2064
|
(__props.leadingIcon)
|
|
2056
2065
|
? (openBlock(), createBlock(unref(HpIcon), {
|
|
2057
2066
|
key: 0,
|
|
@@ -2082,8 +2091,8 @@ return (_ctx, _cache) => {
|
|
|
2082
2091
|
"aria-labelledby": `${__props.id}-label`,
|
|
2083
2092
|
"aria-describedby": __props.helperText ? `${__props.id}-helper-text` : undefined,
|
|
2084
2093
|
"aria-invalid": __props.status === 'error'
|
|
2085
|
-
}, null, 40, _hoisted_5$
|
|
2086
|
-
createElementVNode("div", _hoisted_6$
|
|
2094
|
+
}, null, 40, _hoisted_5$4),
|
|
2095
|
+
createElementVNode("div", _hoisted_6$3, [
|
|
2087
2096
|
createElementVNode("button", {
|
|
2088
2097
|
type: "button",
|
|
2089
2098
|
disabled: __props.disabled || __props.readonly || isMinValue.value,
|
|
@@ -2096,7 +2105,7 @@ return (_ctx, _cache) => {
|
|
|
2096
2105
|
size: "sm",
|
|
2097
2106
|
color: "#666666"
|
|
2098
2107
|
})
|
|
2099
|
-
], 8, _hoisted_7$
|
|
2108
|
+
], 8, _hoisted_7$3),
|
|
2100
2109
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "input__buttons-container--divider" }, null, -1)),
|
|
2101
2110
|
createElementVNode("button", {
|
|
2102
2111
|
type: "button",
|
|
@@ -2110,7 +2119,7 @@ return (_ctx, _cache) => {
|
|
|
2110
2119
|
size: "sm",
|
|
2111
2120
|
color: "#666666"
|
|
2112
2121
|
})
|
|
2113
|
-
], 8, _hoisted_8$
|
|
2122
|
+
], 8, _hoisted_8$3)
|
|
2114
2123
|
])
|
|
2115
2124
|
])
|
|
2116
2125
|
]),
|
|
@@ -2128,25 +2137,25 @@ return (_ctx, _cache) => {
|
|
|
2128
2137
|
}
|
|
2129
2138
|
|
|
2130
2139
|
};
|
|
2131
|
-
const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2140
|
+
const InputNumber = /*#__PURE__*/_export_sfc(_sfc_main$4, [['__scopeId',"data-v-7f20743b"]]);
|
|
2132
2141
|
|
|
2133
|
-
const _hoisted_1$
|
|
2134
|
-
const _hoisted_2$
|
|
2142
|
+
const _hoisted_1$3 = { class: "input__fieldset" };
|
|
2143
|
+
const _hoisted_2$3 = {
|
|
2135
2144
|
style: {"display":"none"},
|
|
2136
2145
|
"aria-hidden": true
|
|
2137
2146
|
};
|
|
2138
|
-
const _hoisted_3$
|
|
2139
|
-
const _hoisted_4$
|
|
2147
|
+
const _hoisted_3$3 = ["for", "id"];
|
|
2148
|
+
const _hoisted_4$3 = {
|
|
2140
2149
|
key: 0,
|
|
2141
2150
|
class: "required-asterisk"
|
|
2142
2151
|
};
|
|
2143
|
-
const _hoisted_5$
|
|
2144
|
-
const _hoisted_6$
|
|
2152
|
+
const _hoisted_5$3 = { class: "input__wrapper" };
|
|
2153
|
+
const _hoisted_6$2 = {
|
|
2145
2154
|
key: 0,
|
|
2146
2155
|
class: "autocomplete-wrapper"
|
|
2147
2156
|
};
|
|
2148
|
-
const _hoisted_7$
|
|
2149
|
-
const _hoisted_8$
|
|
2157
|
+
const _hoisted_7$2 = ["id", "placeholder", "disabled", "readonly", "required", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-disabled", "aria-expanded", "aria-activedescendant"];
|
|
2158
|
+
const _hoisted_8$2 = ["aria-labelledby"];
|
|
2150
2159
|
const _hoisted_9$1 = ["id", "onMousedown", "aria-selected", "aria-disabled"];
|
|
2151
2160
|
const _hoisted_10$1 = ["aria-expanded", "aria-owns"];
|
|
2152
2161
|
const _hoisted_11 = ["id", "tabindex", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-disabled"];
|
|
@@ -2168,7 +2177,7 @@ const _hoisted_20 = {
|
|
|
2168
2177
|
};
|
|
2169
2178
|
|
|
2170
2179
|
|
|
2171
|
-
const _sfc_main$
|
|
2180
|
+
const _sfc_main$3 = {
|
|
2172
2181
|
__name: 'InputSelect',
|
|
2173
2182
|
props: {
|
|
2174
2183
|
modelValue: {
|
|
@@ -2452,8 +2461,8 @@ return (_ctx, _cache) => {
|
|
|
2452
2461
|
ref_key: "select",
|
|
2453
2462
|
ref: select
|
|
2454
2463
|
}, [
|
|
2455
|
-
createElementVNode("fieldset", _hoisted_1$
|
|
2456
|
-
createElementVNode("legend", _hoisted_2$
|
|
2464
|
+
createElementVNode("fieldset", _hoisted_1$3, [
|
|
2465
|
+
createElementVNode("legend", _hoisted_2$3, toDisplayString(__props.label), 1),
|
|
2457
2466
|
(__props.modelValue !== null || __props.placeholder !== '')
|
|
2458
2467
|
? (openBlock(), createElementBlock("label", {
|
|
2459
2468
|
key: 0,
|
|
@@ -2463,13 +2472,13 @@ return (_ctx, _cache) => {
|
|
|
2463
2472
|
}, [
|
|
2464
2473
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
2465
2474
|
(__props.required)
|
|
2466
|
-
? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
2475
|
+
? (openBlock(), createElementBlock("span", _hoisted_4$3, "*"))
|
|
2467
2476
|
: createCommentVNode("", true)
|
|
2468
|
-
], 10, _hoisted_3$
|
|
2477
|
+
], 10, _hoisted_3$3))
|
|
2469
2478
|
: createCommentVNode("", true),
|
|
2470
|
-
createElementVNode("div", _hoisted_5$
|
|
2479
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
2471
2480
|
(__props.autocomplete)
|
|
2472
|
-
? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
2481
|
+
? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
2473
2482
|
withDirectives(createElementVNode("input", {
|
|
2474
2483
|
id: __props.id,
|
|
2475
2484
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((searchText).value = $event)),
|
|
@@ -2499,7 +2508,7 @@ return (_ctx, _cache) => {
|
|
|
2499
2508
|
,
|
|
2500
2509
|
role: "combobox",
|
|
2501
2510
|
"aria-autocomplete": "list"
|
|
2502
|
-
}, null, 40, _hoisted_7$
|
|
2511
|
+
}, null, 40, _hoisted_7$2), [
|
|
2503
2512
|
[vModelText, searchText.value]
|
|
2504
2513
|
]),
|
|
2505
2514
|
createVNode(unref(HpIcon), {
|
|
@@ -2529,7 +2538,7 @@ return (_ctx, _cache) => {
|
|
|
2529
2538
|
"aria-disabled": option.disabled
|
|
2530
2539
|
}, toDisplayString(option.label), 43, _hoisted_9$1))
|
|
2531
2540
|
}), 128))
|
|
2532
|
-
], 12, _hoisted_8$
|
|
2541
|
+
], 12, _hoisted_8$2), [
|
|
2533
2542
|
[vShow, isOpen.value && filteredOptions.value.length > 0]
|
|
2534
2543
|
])
|
|
2535
2544
|
]))
|
|
@@ -2655,22 +2664,22 @@ return (_ctx, _cache) => {
|
|
|
2655
2664
|
}
|
|
2656
2665
|
|
|
2657
2666
|
};
|
|
2658
|
-
const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2667
|
+
const InputSelect = /*#__PURE__*/_export_sfc(_sfc_main$3, [['__scopeId',"data-v-00cdf827"]]);
|
|
2659
2668
|
|
|
2660
|
-
const _hoisted_1$
|
|
2661
|
-
const _hoisted_2$
|
|
2669
|
+
const _hoisted_1$2 = { class: "input-range__fieldset" };
|
|
2670
|
+
const _hoisted_2$2 = {
|
|
2662
2671
|
key: 0,
|
|
2663
2672
|
class: "input-range__legend"
|
|
2664
2673
|
};
|
|
2665
|
-
const _hoisted_3$
|
|
2674
|
+
const _hoisted_3$2 = {
|
|
2666
2675
|
key: 0,
|
|
2667
2676
|
class: "input-range__required"
|
|
2668
2677
|
};
|
|
2669
|
-
const _hoisted_4$
|
|
2670
|
-
const _hoisted_5$
|
|
2671
|
-
const _hoisted_6 = { class: "input-range__value-display" };
|
|
2672
|
-
const _hoisted_7 = { class: "input-range__value" };
|
|
2673
|
-
const _hoisted_8 = {
|
|
2678
|
+
const _hoisted_4$2 = { class: "input-range__wrapper" };
|
|
2679
|
+
const _hoisted_5$2 = ["id", "min", "max", "step", "value", "disabled", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-labelledby", "aria-describedby"];
|
|
2680
|
+
const _hoisted_6$1 = { class: "input-range__value-display" };
|
|
2681
|
+
const _hoisted_7$1 = { class: "input-range__value" };
|
|
2682
|
+
const _hoisted_8$1 = {
|
|
2674
2683
|
key: 0,
|
|
2675
2684
|
class: "input-range__unit"
|
|
2676
2685
|
};
|
|
@@ -2681,7 +2690,7 @@ const _hoisted_9 = {
|
|
|
2681
2690
|
const _hoisted_10 = ["id"];
|
|
2682
2691
|
|
|
2683
2692
|
|
|
2684
|
-
const _sfc_main$
|
|
2693
|
+
const _sfc_main$2 = {
|
|
2685
2694
|
__name: 'InputRange',
|
|
2686
2695
|
props: {
|
|
2687
2696
|
modelValue: {
|
|
@@ -2764,16 +2773,16 @@ return (_ctx, _cache) => {
|
|
|
2764
2773
|
[`input-range--${__props.status}`]: __props.status !== 'default'
|
|
2765
2774
|
}])
|
|
2766
2775
|
}, [
|
|
2767
|
-
createElementVNode("fieldset", _hoisted_1$
|
|
2776
|
+
createElementVNode("fieldset", _hoisted_1$2, [
|
|
2768
2777
|
(__props.label)
|
|
2769
|
-
? (openBlock(), createElementBlock("legend", _hoisted_2$
|
|
2778
|
+
? (openBlock(), createElementBlock("legend", _hoisted_2$2, [
|
|
2770
2779
|
createTextVNode(toDisplayString(__props.label) + " ", 1),
|
|
2771
2780
|
(__props.required)
|
|
2772
|
-
? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
2781
|
+
? (openBlock(), createElementBlock("span", _hoisted_3$2, "*"))
|
|
2773
2782
|
: createCommentVNode("", true)
|
|
2774
2783
|
]))
|
|
2775
2784
|
: createCommentVNode("", true),
|
|
2776
|
-
createElementVNode("div", _hoisted_4$
|
|
2785
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
2777
2786
|
createElementVNode("input", {
|
|
2778
2787
|
id: __props.id,
|
|
2779
2788
|
ref_key: "input",
|
|
@@ -2792,11 +2801,11 @@ return (_ctx, _cache) => {
|
|
|
2792
2801
|
"aria-valuenow": __props.modelValue,
|
|
2793
2802
|
"aria-labelledby": `${__props.id}-label`,
|
|
2794
2803
|
"aria-describedby": __props.helperText ? `${__props.id}-helper` : undefined
|
|
2795
|
-
}, null, 40, _hoisted_5$
|
|
2796
|
-
createElementVNode("div", _hoisted_6, [
|
|
2797
|
-
createElementVNode("span", _hoisted_7, toDisplayString(__props.modelValue), 1),
|
|
2804
|
+
}, null, 40, _hoisted_5$2),
|
|
2805
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
2806
|
+
createElementVNode("span", _hoisted_7$1, toDisplayString(__props.modelValue), 1),
|
|
2798
2807
|
(__props.unit)
|
|
2799
|
-
? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(__props.unit), 1))
|
|
2808
|
+
? (openBlock(), createElementBlock("span", _hoisted_8$1, toDisplayString(__props.unit), 1))
|
|
2800
2809
|
: createCommentVNode("", true)
|
|
2801
2810
|
])
|
|
2802
2811
|
])
|
|
@@ -2814,17 +2823,17 @@ return (_ctx, _cache) => {
|
|
|
2814
2823
|
}
|
|
2815
2824
|
|
|
2816
2825
|
};
|
|
2817
|
-
const InputRange = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2826
|
+
const InputRange = /*#__PURE__*/_export_sfc(_sfc_main$2, [['__scopeId',"data-v-32e54a28"]]);
|
|
2818
2827
|
|
|
2819
|
-
const _hoisted_1 = { class: "progress-bar" };
|
|
2820
|
-
const _hoisted_2 = {
|
|
2828
|
+
const _hoisted_1$1 = { class: "progress-bar" };
|
|
2829
|
+
const _hoisted_2$1 = {
|
|
2821
2830
|
key: 0,
|
|
2822
2831
|
class: "progress-bar__header"
|
|
2823
2832
|
};
|
|
2824
|
-
const _hoisted_3 = { class: "progress-bar__value" };
|
|
2825
|
-
const _hoisted_4 = { class: "progress-bar__wrapper" };
|
|
2826
|
-
const _hoisted_5 = ["value", "max", "aria-labelledby"];
|
|
2827
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2833
|
+
const _hoisted_3$1 = { class: "progress-bar__value" };
|
|
2834
|
+
const _hoisted_4$1 = { class: "progress-bar__wrapper" };
|
|
2835
|
+
const _hoisted_5$1 = ["value", "max", "aria-labelledby"];
|
|
2836
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2828
2837
|
__name: "ProgressBar",
|
|
2829
2838
|
props: {
|
|
2830
2839
|
label: {
|
|
@@ -2864,29 +2873,173 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2864
2873
|
"--bar-color": props.barColor || "var(--color-danger, #b91c1c)"
|
|
2865
2874
|
}));
|
|
2866
2875
|
return (_ctx, _cache) => {
|
|
2867
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
2868
|
-
__props.hasLabel ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
2876
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
2877
|
+
__props.hasLabel ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
2869
2878
|
createElementVNode("span", {
|
|
2870
2879
|
class: "progress-bar__label",
|
|
2871
2880
|
id: labelId
|
|
2872
2881
|
}, toDisplayString(__props.label), 1),
|
|
2873
|
-
createElementVNode("span", _hoisted_3, toDisplayString(normalizedValue.value) + "% ", 1)
|
|
2882
|
+
createElementVNode("span", _hoisted_3$1, toDisplayString(normalizedValue.value) + "% ", 1)
|
|
2874
2883
|
])) : createCommentVNode("", true),
|
|
2875
|
-
createElementVNode("div", _hoisted_4, [
|
|
2884
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
2876
2885
|
createElementVNode("progress", {
|
|
2877
2886
|
class: "progress-bar__track",
|
|
2878
2887
|
value: __props.value,
|
|
2879
2888
|
max: __props.max,
|
|
2880
2889
|
"aria-labelledby": __props.label ? labelId : void 0,
|
|
2881
2890
|
style: normalizeStyle(trackStyle.value)
|
|
2882
|
-
}, null, 12, _hoisted_5)
|
|
2891
|
+
}, null, 12, _hoisted_5$1)
|
|
2883
2892
|
])
|
|
2884
2893
|
]);
|
|
2885
2894
|
};
|
|
2886
2895
|
}
|
|
2887
2896
|
});
|
|
2888
2897
|
|
|
2889
|
-
const ProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-80b0b9cd"]]);
|
|
2898
|
+
const ProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-80b0b9cd"]]);
|
|
2899
|
+
|
|
2900
|
+
const _hoisted_1 = { class: "data-table__table" };
|
|
2901
|
+
const _hoisted_2 = { class: "data-table__row" };
|
|
2902
|
+
const _hoisted_3 = {
|
|
2903
|
+
key: 0,
|
|
2904
|
+
class: "data-table__header-cell data-table__header-cell--right"
|
|
2905
|
+
};
|
|
2906
|
+
const _hoisted_4 = { class: "data-table__body" };
|
|
2907
|
+
const _hoisted_5 = {
|
|
2908
|
+
key: 0,
|
|
2909
|
+
class: "data-table__row"
|
|
2910
|
+
};
|
|
2911
|
+
const _hoisted_6 = ["colspan"];
|
|
2912
|
+
const _hoisted_7 = ["data-label"];
|
|
2913
|
+
const _hoisted_8 = {
|
|
2914
|
+
key: 0,
|
|
2915
|
+
class: "data-table__cell data-table__cell--actions"
|
|
2916
|
+
};
|
|
2917
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2918
|
+
__name: "DataTable",
|
|
2919
|
+
props: {
|
|
2920
|
+
searchable: {
|
|
2921
|
+
type: Boolean,
|
|
2922
|
+
default: true
|
|
2923
|
+
},
|
|
2924
|
+
placeholderSearch: {
|
|
2925
|
+
type: String,
|
|
2926
|
+
default: "Digite para buscar..."
|
|
2927
|
+
},
|
|
2928
|
+
hasRowLine: {
|
|
2929
|
+
type: Boolean,
|
|
2930
|
+
default: false
|
|
2931
|
+
},
|
|
2932
|
+
items: {
|
|
2933
|
+
type: Array,
|
|
2934
|
+
required: true
|
|
2935
|
+
},
|
|
2936
|
+
columns: {
|
|
2937
|
+
type: Array,
|
|
2938
|
+
required: true
|
|
2939
|
+
}
|
|
2940
|
+
},
|
|
2941
|
+
setup(__props) {
|
|
2942
|
+
const props = __props;
|
|
2943
|
+
const search = ref("");
|
|
2944
|
+
const filteredItems = computed(() => {
|
|
2945
|
+
if (!search.value) return props.items;
|
|
2946
|
+
return props.items.filter(
|
|
2947
|
+
(item) => JSON.stringify(item).toLowerCase().includes(search.value.toLowerCase())
|
|
2948
|
+
);
|
|
2949
|
+
});
|
|
2950
|
+
return (_ctx, _cache) => {
|
|
2951
|
+
return openBlock(), createElementBlock("section", {
|
|
2952
|
+
class: normalizeClass(["data-table", { "data-table--has-row-line": __props.hasRowLine }]),
|
|
2953
|
+
role: "region"
|
|
2954
|
+
}, [
|
|
2955
|
+
__props.searchable ? (openBlock(), createBlock(unref(HpInputText), {
|
|
2956
|
+
key: 0,
|
|
2957
|
+
class: "data-table__search",
|
|
2958
|
+
leadingIcon: "BE0090",
|
|
2959
|
+
"model-value": search.value,
|
|
2960
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
2961
|
+
"aria-label": __props.placeholderSearch,
|
|
2962
|
+
label: __props.placeholderSearch,
|
|
2963
|
+
hideLabel: true
|
|
2964
|
+
}, null, 8, ["model-value", "aria-label", "label"])) : createCommentVNode("", true),
|
|
2965
|
+
createElementVNode("table", _hoisted_1, [
|
|
2966
|
+
createElementVNode("thead", null, [
|
|
2967
|
+
createElementVNode("tr", _hoisted_2, [
|
|
2968
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column, index) => {
|
|
2969
|
+
return openBlock(), createElementBlock("th", {
|
|
2970
|
+
key: index,
|
|
2971
|
+
class: normalizeClass(["data-table__header-cell", {
|
|
2972
|
+
"data-table__header-cell--right": column.align === "right"
|
|
2973
|
+
}]),
|
|
2974
|
+
style: normalizeStyle({ width: column.width })
|
|
2975
|
+
}, [
|
|
2976
|
+
createVNode(unref(HpText), null, {
|
|
2977
|
+
default: withCtx(() => [
|
|
2978
|
+
createTextVNode(toDisplayString(column.label), 1)
|
|
2979
|
+
]),
|
|
2980
|
+
_: 2
|
|
2981
|
+
}, 1024)
|
|
2982
|
+
], 6);
|
|
2983
|
+
}), 128)),
|
|
2984
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("th", _hoisted_3, [
|
|
2985
|
+
createVNode(unref(HpText), null, {
|
|
2986
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
2987
|
+
createTextVNode("Ações", -1)
|
|
2988
|
+
])]),
|
|
2989
|
+
_: 1
|
|
2990
|
+
})
|
|
2991
|
+
])) : createCommentVNode("", true)
|
|
2992
|
+
])
|
|
2993
|
+
]),
|
|
2994
|
+
createElementVNode("tbody", _hoisted_4, [
|
|
2995
|
+
filteredItems.value.length === 0 ? (openBlock(), createElementBlock("tr", _hoisted_5, [
|
|
2996
|
+
createElementVNode("td", {
|
|
2997
|
+
class: "data-table__cell",
|
|
2998
|
+
colspan: __props.columns.length + (_ctx.$slots.actions ? 1 : 0),
|
|
2999
|
+
role: "status",
|
|
3000
|
+
"aria-live": "polite"
|
|
3001
|
+
}, [
|
|
3002
|
+
createVNode(unref(HpText), null, {
|
|
3003
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
3004
|
+
createTextVNode("Nenhum resultado encontrado.", -1)
|
|
3005
|
+
])]),
|
|
3006
|
+
_: 1
|
|
3007
|
+
})
|
|
3008
|
+
], 8, _hoisted_6)
|
|
3009
|
+
])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(filteredItems.value, (item, rowIndex) => {
|
|
3010
|
+
return openBlock(), createElementBlock("tr", {
|
|
3011
|
+
key: rowIndex,
|
|
3012
|
+
class: "data-table__row"
|
|
3013
|
+
}, [
|
|
3014
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
3015
|
+
return openBlock(), createElementBlock("td", {
|
|
3016
|
+
key: column.key,
|
|
3017
|
+
class: normalizeClass(["data-table__cell", {
|
|
3018
|
+
"data-table__cell--right": column.align === "right"
|
|
3019
|
+
}]),
|
|
3020
|
+
"data-label": column.label
|
|
3021
|
+
}, [
|
|
3022
|
+
createVNode(unref(HpText), null, {
|
|
3023
|
+
default: withCtx(() => [
|
|
3024
|
+
createTextVNode(toDisplayString(item[column.key]), 1)
|
|
3025
|
+
]),
|
|
3026
|
+
_: 2
|
|
3027
|
+
}, 1024)
|
|
3028
|
+
], 10, _hoisted_7);
|
|
3029
|
+
}), 128)),
|
|
3030
|
+
_ctx.$slots.actions ? (openBlock(), createElementBlock("td", _hoisted_8, [
|
|
3031
|
+
renderSlot(_ctx.$slots, "actions", { item }, void 0, true)
|
|
3032
|
+
])) : createCommentVNode("", true)
|
|
3033
|
+
]);
|
|
3034
|
+
}), 128))
|
|
3035
|
+
])
|
|
3036
|
+
])
|
|
3037
|
+
], 2);
|
|
3038
|
+
};
|
|
3039
|
+
}
|
|
3040
|
+
});
|
|
3041
|
+
|
|
3042
|
+
const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a06a935f"]]);
|
|
2890
3043
|
|
|
2891
3044
|
const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
2892
3045
|
__proto__: null,
|
|
@@ -2898,17 +3051,18 @@ const components = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty
|
|
|
2898
3051
|
HpButtonTertiary: ButtonTertiary,
|
|
2899
3052
|
HpCard: Card,
|
|
2900
3053
|
HpCheckbox: Checkbox,
|
|
3054
|
+
HpDataTable: DataTable,
|
|
2901
3055
|
HpHeading: Heading,
|
|
2902
3056
|
HpIcon,
|
|
2903
3057
|
HpInputNumber: InputNumber,
|
|
2904
3058
|
HpInputRange: InputRange,
|
|
2905
3059
|
HpInputSelect: InputSelect,
|
|
2906
|
-
HpInputText
|
|
3060
|
+
HpInputText,
|
|
2907
3061
|
HpModal: Modal,
|
|
2908
3062
|
HpProgressBar: ProgressBar,
|
|
2909
3063
|
HpRadioButton: RadioButton,
|
|
2910
|
-
HpSpinnerLoader: _sfc_main$
|
|
2911
|
-
HpText
|
|
3064
|
+
HpSpinnerLoader: _sfc_main$d,
|
|
3065
|
+
HpText,
|
|
2912
3066
|
HpThemeSwitcher: ThemeSwitcher,
|
|
2913
3067
|
HpToggleSwitch: ToggleSwitch
|
|
2914
3068
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
@@ -2948,5 +3102,5 @@ const index = {
|
|
|
2948
3102
|
...components
|
|
2949
3103
|
};
|
|
2950
3104
|
|
|
2951
|
-
export { Alert as HpAlert, HpButtonIcon, ButtonLetter as HpButtonLetter, HpButtonPrimary, HpButtonSecondary, ButtonTertiary as HpButtonTertiary, Card as HpCard, Checkbox as HpCheckbox, Heading as HpHeading, HpIcon, InputNumber as HpInputNumber, InputRange as HpInputRange, InputSelect as HpInputSelect,
|
|
3105
|
+
export { Alert as HpAlert, HpButtonIcon, ButtonLetter as HpButtonLetter, HpButtonPrimary, HpButtonSecondary, ButtonTertiary as HpButtonTertiary, Card as HpCard, Checkbox as HpCheckbox, DataTable as HpDataTable, Heading as HpHeading, HpIcon, InputNumber as HpInputNumber, InputRange as HpInputRange, InputSelect as HpInputSelect, HpInputText, Modal as HpModal, ProgressBar as HpProgressBar, RadioButton as HpRadioButton, _sfc_main$d as HpSpinnerLoader, HpText, ThemeSwitcher as HpThemeSwitcher, ToggleSwitch as HpToggleSwitch, index as default };
|
|
2952
3106
|
//# sourceMappingURL=hp-design-system.es.js.map
|