@abgov/react-components 5.4.0 → 6.0.0-alpha.1
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/experimental/form/form-summary.d.ts +2 -1
- package/experimental/form/form.d.ts +10 -21
- package/experimental/form/task-list.d.ts +6 -5
- package/experimental/form/task.d.ts +6 -5
- package/experimental/index.d.ts +2 -2
- package/experimental/resizable-panel/ResizablePanel.d.ts +2 -1
- package/experimental.js +4 -4
- package/experimental.js.map +1 -1
- package/experimental.mjs +4 -4
- package/experimental.mjs.map +1 -1
- package/{icon-1IRcN4Uf.js → icon-DmXlIizF.js} +3 -3
- package/icon-DmXlIizF.js.map +1 -0
- package/{icon-DgSW1II3.mjs → icon-iZ6Uu6WB.mjs} +3 -3
- package/icon-iZ6Uu6WB.mjs.map +1 -0
- package/index.d.ts +60 -61
- package/index.js +241 -257
- package/index.js.map +1 -1
- package/index.mjs +241 -257
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +11 -12
- package/lib/app-header/app-header.d.ts +4 -3
- package/lib/app-header-menu/app-header-menu.d.ts +8 -7
- package/lib/badge/badge.d.ts +10 -10
- package/lib/block/block.d.ts +9 -9
- package/lib/button/button.d.ts +14 -20
- package/lib/button-group/button-group.d.ts +9 -11
- package/lib/calendar/calendar.d.ts +6 -5
- package/lib/callout/callout.d.ts +13 -17
- package/lib/card/card-actions.d.ts +4 -3
- package/lib/card/card-content.d.ts +4 -3
- package/lib/card/card-group.d.ts +4 -3
- package/lib/card/card-image.d.ts +4 -3
- package/lib/card/card.d.ts +6 -4
- package/lib/card/index.d.ts +5 -5
- package/lib/checkbox/checkbox.d.ts +7 -6
- package/lib/chip/chip.d.ts +9 -10
- package/lib/circular-progress/circular-progress.d.ts +9 -11
- package/lib/container/container.d.ts +14 -17
- package/lib/date-picker/date-picker.d.ts +6 -5
- package/lib/details/details.d.ts +6 -6
- package/lib/divider/divider.d.ts +5 -4
- package/lib/drawer/drawer.d.ts +2 -1
- package/lib/dropdown/dropdown-item.d.ts +7 -6
- package/lib/dropdown/dropdown.d.ts +7 -7
- package/lib/fieldset/fieldset.d.ts +7 -6
- package/lib/file-upload-card/file-upload-card.d.ts +8 -6
- package/lib/file-upload-input/file-upload-input.d.ts +8 -7
- package/lib/filter-chip/filter-chip.d.ts +4 -4
- package/lib/footer/footer.d.ts +6 -5
- package/lib/footer-meta-section/footer-meta-section.d.ts +5 -5
- package/lib/footer-nav-section/footer-nav-section.d.ts +5 -4
- package/lib/form-item/form-item.d.ts +11 -12
- package/lib/form-step/form-step.d.ts +7 -7
- package/lib/form-stepper/form-stepper.d.ts +7 -7
- package/lib/grid/grid.d.ts +5 -4
- package/lib/hero-banner/hero-banner-actions.d.ts +4 -3
- package/lib/hero-banner/hero-banner.d.ts +4 -3
- package/lib/icon/icon.d.ts +11 -18
- package/lib/icon-button/icon-button.d.ts +10 -12
- package/lib/input/input.d.ts +40 -43
- package/lib/link/link.d.ts +7 -7
- package/lib/link-button/link-button.d.ts +9 -10
- package/lib/microsite-header/microsite-header.d.ts +12 -14
- package/lib/modal/modal.d.ts +12 -17
- package/lib/notification/notification.d.ts +9 -11
- package/lib/one-column-layout/one-column-layout.d.ts +6 -5
- package/lib/page-block/page-block.d.ts +5 -4
- package/lib/pages/pages.d.ts +6 -5
- package/lib/pagination/pagination.d.ts +7 -6
- package/lib/popover/popover.d.ts +8 -8
- package/lib/radio-group/radio-group.d.ts +9 -9
- package/lib/radio-group/radio.d.ts +5 -4
- package/lib/side-menu/side-menu.d.ts +5 -5
- package/lib/side-menu-group/side-menu-group.d.ts +8 -8
- package/lib/side-menu-heading/side-menu-heading.d.ts +8 -7
- package/lib/skeleton/skeleton.d.ts +10 -12
- package/lib/spacer/spacer.d.ts +9 -9
- package/lib/spinner/spinner.d.ts +10 -10
- package/lib/tab/tab.d.ts +3 -3
- package/lib/table/table-sort-header.d.ts +7 -6
- package/lib/table/table.d.ts +10 -11
- package/lib/tabs/tabs.d.ts +7 -5
- package/lib/text/text.d.ts +11 -16
- package/lib/textarea/textarea.d.ts +9 -10
- package/lib/three-column-layout/three-column-layout.d.ts +5 -4
- package/lib/tooltip/tooltip.d.ts +10 -11
- package/lib/two-column-layout/two-column-layout.d.ts +5 -4
- package/package.json +2 -2
- package/common/styling.d.ts +0 -12
- package/icon-1IRcN4Uf.js.map +0 -1
- package/icon-DgSW1II3.mjs.map +0 -1
package/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const icon = require("./icon-
|
|
6
|
-
function
|
|
5
|
+
const icon = require("./icon-DmXlIizF.js");
|
|
6
|
+
function GoabAccordion({
|
|
7
7
|
open,
|
|
8
8
|
heading,
|
|
9
9
|
headingSize,
|
|
@@ -38,9 +38,9 @@ function GoAAccordion({
|
|
|
38
38
|
{
|
|
39
39
|
ref,
|
|
40
40
|
open,
|
|
41
|
-
headingSize,
|
|
41
|
+
headingsize: headingSize,
|
|
42
42
|
heading,
|
|
43
|
-
secondaryText,
|
|
43
|
+
secondarytext: secondaryText,
|
|
44
44
|
iconposition: iconPosition,
|
|
45
45
|
maxwidth: maxWidth,
|
|
46
46
|
testid,
|
|
@@ -55,7 +55,7 @@ function GoAAccordion({
|
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function GoabAppHeader({
|
|
59
59
|
heading,
|
|
60
60
|
url,
|
|
61
61
|
maxContentWidth,
|
|
@@ -95,7 +95,7 @@ function GoAAppHeader({
|
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function GoabAppHeaderMenu(props) {
|
|
99
99
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
100
100
|
"goa-app-header-menu",
|
|
101
101
|
{
|
|
@@ -106,7 +106,7 @@ function GoAAppHeaderMenu(props) {
|
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function GoabBadge({
|
|
110
110
|
type,
|
|
111
111
|
content,
|
|
112
112
|
icon: icon2,
|
|
@@ -132,7 +132,7 @@ function GoABadge({
|
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function GoabInfoBadge({
|
|
136
136
|
content,
|
|
137
137
|
testId,
|
|
138
138
|
icon: icon2,
|
|
@@ -143,7 +143,7 @@ function GoAInfoBadge({
|
|
|
143
143
|
ariaLabel
|
|
144
144
|
}) {
|
|
145
145
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
-
|
|
146
|
+
GoabBadge,
|
|
147
147
|
{
|
|
148
148
|
type: "information",
|
|
149
149
|
icon: icon2,
|
|
@@ -157,7 +157,7 @@ function GoAInfoBadge({
|
|
|
157
157
|
}
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function GoabSuccessBadge({
|
|
161
161
|
content,
|
|
162
162
|
testId,
|
|
163
163
|
icon: icon2,
|
|
@@ -168,7 +168,7 @@ function GoASuccessBadge({
|
|
|
168
168
|
ariaLabel
|
|
169
169
|
}) {
|
|
170
170
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
171
|
-
|
|
171
|
+
GoabBadge,
|
|
172
172
|
{
|
|
173
173
|
type: "success",
|
|
174
174
|
icon: icon2,
|
|
@@ -182,7 +182,7 @@ function GoASuccessBadge({
|
|
|
182
182
|
}
|
|
183
183
|
);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function GoabImportantBadge({
|
|
186
186
|
content,
|
|
187
187
|
testId,
|
|
188
188
|
icon: icon2,
|
|
@@ -193,7 +193,7 @@ function GoAImportantBadge({
|
|
|
193
193
|
ariaLabel
|
|
194
194
|
}) {
|
|
195
195
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
196
|
-
|
|
196
|
+
GoabBadge,
|
|
197
197
|
{
|
|
198
198
|
type: "important",
|
|
199
199
|
icon: icon2,
|
|
@@ -207,7 +207,7 @@ function GoAImportantBadge({
|
|
|
207
207
|
}
|
|
208
208
|
);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function GoabEmergencyBadge({
|
|
211
211
|
content,
|
|
212
212
|
testId,
|
|
213
213
|
icon: icon2,
|
|
@@ -218,7 +218,7 @@ function GoAEmergencyBadge({
|
|
|
218
218
|
ariaLabel
|
|
219
219
|
}) {
|
|
220
220
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
221
|
-
|
|
221
|
+
GoabBadge,
|
|
222
222
|
{
|
|
223
223
|
type: "emergency",
|
|
224
224
|
icon: icon2,
|
|
@@ -232,7 +232,7 @@ function GoAEmergencyBadge({
|
|
|
232
232
|
}
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function GoabBlock(props) {
|
|
236
236
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
237
237
|
"goa-block",
|
|
238
238
|
{
|
|
@@ -248,7 +248,7 @@ function GoABlock(props) {
|
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function GoabButton({
|
|
252
252
|
disabled = false,
|
|
253
253
|
type = "primary",
|
|
254
254
|
size,
|
|
@@ -301,7 +301,7 @@ function GoAButton({
|
|
|
301
301
|
}
|
|
302
302
|
);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function GoabButtonGroup({
|
|
305
305
|
alignment,
|
|
306
306
|
gap,
|
|
307
307
|
testId,
|
|
@@ -325,7 +325,7 @@ function GoAButtonGroup({
|
|
|
325
325
|
}
|
|
326
326
|
);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function GoabCalendar({
|
|
329
329
|
name,
|
|
330
330
|
value,
|
|
331
331
|
min,
|
|
@@ -344,7 +344,10 @@ function GoACalendar({
|
|
|
344
344
|
}
|
|
345
345
|
const current = ref.current;
|
|
346
346
|
current.addEventListener("_change", (e) => {
|
|
347
|
-
onChange(
|
|
347
|
+
onChange({
|
|
348
|
+
name: name || "",
|
|
349
|
+
value: e.detail.value
|
|
350
|
+
});
|
|
348
351
|
});
|
|
349
352
|
});
|
|
350
353
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -363,7 +366,7 @@ function GoACalendar({
|
|
|
363
366
|
}
|
|
364
367
|
);
|
|
365
368
|
}
|
|
366
|
-
const
|
|
369
|
+
const GoabCallout = ({
|
|
367
370
|
heading,
|
|
368
371
|
type = "information",
|
|
369
372
|
iconTheme = "outline",
|
|
@@ -395,7 +398,7 @@ const GoACallout = ({
|
|
|
395
398
|
}
|
|
396
399
|
);
|
|
397
400
|
};
|
|
398
|
-
function
|
|
401
|
+
function GoabCheckbox({
|
|
399
402
|
id,
|
|
400
403
|
name,
|
|
401
404
|
testId,
|
|
@@ -421,8 +424,8 @@ function GoACheckbox({
|
|
|
421
424
|
}
|
|
422
425
|
const current = el.current;
|
|
423
426
|
const listener = (e) => {
|
|
424
|
-
const
|
|
425
|
-
onChange == null ? void 0 : onChange(
|
|
427
|
+
const detail = e.detail;
|
|
428
|
+
onChange == null ? void 0 : onChange(detail);
|
|
426
429
|
};
|
|
427
430
|
current.addEventListener("_change", listener);
|
|
428
431
|
return () => {
|
|
@@ -455,7 +458,7 @@ function GoACheckbox({
|
|
|
455
458
|
}
|
|
456
459
|
);
|
|
457
460
|
}
|
|
458
|
-
const
|
|
461
|
+
const GoabChip = ({
|
|
459
462
|
leadingIcon = "",
|
|
460
463
|
iconTheme = "outline",
|
|
461
464
|
deletable = false,
|
|
@@ -500,7 +503,7 @@ const GoAChip = ({
|
|
|
500
503
|
}
|
|
501
504
|
);
|
|
502
505
|
};
|
|
503
|
-
const
|
|
506
|
+
const GoabCircularProgress = ({
|
|
504
507
|
visible,
|
|
505
508
|
message: message2,
|
|
506
509
|
progress,
|
|
@@ -520,7 +523,7 @@ const GoACircularProgress = ({
|
|
|
520
523
|
}
|
|
521
524
|
);
|
|
522
525
|
};
|
|
523
|
-
function
|
|
526
|
+
function GoabContainer({
|
|
524
527
|
accent,
|
|
525
528
|
heading,
|
|
526
529
|
title,
|
|
@@ -558,7 +561,7 @@ function GoAContainer({
|
|
|
558
561
|
}
|
|
559
562
|
);
|
|
560
563
|
}
|
|
561
|
-
function
|
|
564
|
+
function GoabDatePicker({
|
|
562
565
|
name,
|
|
563
566
|
value,
|
|
564
567
|
error,
|
|
@@ -580,8 +583,8 @@ function GoADatePicker({
|
|
|
580
583
|
}
|
|
581
584
|
const current = ref.current;
|
|
582
585
|
const handleChange = (e) => {
|
|
583
|
-
const
|
|
584
|
-
onChange
|
|
586
|
+
const detail = e.detail;
|
|
587
|
+
onChange(detail);
|
|
585
588
|
};
|
|
586
589
|
current.addEventListener("_change", handleChange);
|
|
587
590
|
return () => {
|
|
@@ -607,7 +610,7 @@ function GoADatePicker({
|
|
|
607
610
|
}
|
|
608
611
|
);
|
|
609
612
|
}
|
|
610
|
-
function
|
|
613
|
+
function GoabDetails(props) {
|
|
611
614
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
612
615
|
"goa-details",
|
|
613
616
|
{
|
|
@@ -623,7 +626,7 @@ function GoADetails(props) {
|
|
|
623
626
|
}
|
|
624
627
|
);
|
|
625
628
|
}
|
|
626
|
-
function
|
|
629
|
+
function GoabDivider(props) {
|
|
627
630
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
628
631
|
"goa-divider",
|
|
629
632
|
{
|
|
@@ -644,7 +647,7 @@ function stringify(value) {
|
|
|
644
647
|
}
|
|
645
648
|
return JSON.stringify(value);
|
|
646
649
|
}
|
|
647
|
-
function
|
|
650
|
+
function GoabDropdown(props) {
|
|
648
651
|
const el = react.useRef(null);
|
|
649
652
|
react.useEffect(() => {
|
|
650
653
|
if (!el.current) {
|
|
@@ -652,9 +655,8 @@ function GoADropdown(props) {
|
|
|
652
655
|
}
|
|
653
656
|
const current = el.current;
|
|
654
657
|
const handler = (e) => {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, name, props.multiselect ? values : value);
|
|
658
|
+
const detail = e.detail;
|
|
659
|
+
props.onChange(detail);
|
|
658
660
|
};
|
|
659
661
|
current.addEventListener("_change", handler);
|
|
660
662
|
return () => {
|
|
@@ -689,17 +691,16 @@ function GoADropdown(props) {
|
|
|
689
691
|
}
|
|
690
692
|
);
|
|
691
693
|
}
|
|
692
|
-
function
|
|
694
|
+
function GoabDropdownOption(props) {
|
|
693
695
|
react.useEffect(() => {
|
|
694
|
-
console.warn("
|
|
696
|
+
console.warn("GoabDropdownOption is deprecated. Please use GoabDropdownItem");
|
|
695
697
|
}, []);
|
|
696
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
698
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GoabDropdownItem, { ...props });
|
|
697
699
|
}
|
|
698
|
-
function
|
|
700
|
+
function GoabDropdownItem({ value, label, filter, name, mountType = "append" }) {
|
|
699
701
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
700
702
|
"goa-dropdown-item",
|
|
701
703
|
{
|
|
702
|
-
"data-testid": testId,
|
|
703
704
|
value,
|
|
704
705
|
label,
|
|
705
706
|
filter,
|
|
@@ -708,7 +709,7 @@ function GoADropdownItem({ value, label, filter, name, testId, mountType = "rese
|
|
|
708
709
|
}
|
|
709
710
|
);
|
|
710
711
|
}
|
|
711
|
-
function
|
|
712
|
+
function GoabFieldset({
|
|
712
713
|
heading,
|
|
713
714
|
buttonText,
|
|
714
715
|
id,
|
|
@@ -725,8 +726,8 @@ function GoAFieldset({
|
|
|
725
726
|
react.useEffect(() => {
|
|
726
727
|
var _a;
|
|
727
728
|
const _continue = (e) => {
|
|
728
|
-
const
|
|
729
|
-
return onContinue == null ? void 0 : onContinue(
|
|
729
|
+
const event = e.detail;
|
|
730
|
+
return onContinue == null ? void 0 : onContinue(event);
|
|
730
731
|
};
|
|
731
732
|
if (onContinue) {
|
|
732
733
|
(_a = ref.current) == null ? void 0 : _a.addEventListener("_continue", _continue);
|
|
@@ -755,7 +756,7 @@ function GoAFieldset({
|
|
|
755
756
|
}
|
|
756
757
|
);
|
|
757
758
|
}
|
|
758
|
-
function
|
|
759
|
+
function GoabFileUploadCard({
|
|
759
760
|
filename,
|
|
760
761
|
size,
|
|
761
762
|
type,
|
|
@@ -769,8 +770,8 @@ function GoAFileUploadCard({
|
|
|
769
770
|
react.useEffect(() => {
|
|
770
771
|
if (!el.current) return;
|
|
771
772
|
const current = el.current;
|
|
772
|
-
const deleteHandler = () => onDelete == null ? void 0 : onDelete();
|
|
773
|
-
const cancelHandler = () => onCancel == null ? void 0 : onCancel();
|
|
773
|
+
const deleteHandler = () => onDelete == null ? void 0 : onDelete({ filename });
|
|
774
|
+
const cancelHandler = () => onCancel == null ? void 0 : onCancel({ filename });
|
|
774
775
|
current.addEventListener("_delete", deleteHandler);
|
|
775
776
|
current.addEventListener("_cancel", cancelHandler);
|
|
776
777
|
return () => {
|
|
@@ -791,7 +792,7 @@ function GoAFileUploadCard({
|
|
|
791
792
|
}
|
|
792
793
|
);
|
|
793
794
|
}
|
|
794
|
-
function
|
|
795
|
+
function GoabFileUploadInput({
|
|
795
796
|
variant,
|
|
796
797
|
accept,
|
|
797
798
|
maxFileSize,
|
|
@@ -803,7 +804,8 @@ function GoAFileUploadInput({
|
|
|
803
804
|
if (!el.current) return;
|
|
804
805
|
const current = el.current;
|
|
805
806
|
const handler = (e) => {
|
|
806
|
-
|
|
807
|
+
const detail = e.detail;
|
|
808
|
+
onSelectFile(detail);
|
|
807
809
|
};
|
|
808
810
|
current.addEventListener("_selectFile", handler);
|
|
809
811
|
return () => {
|
|
@@ -821,14 +823,17 @@ function GoAFileUploadInput({
|
|
|
821
823
|
}
|
|
822
824
|
);
|
|
823
825
|
}
|
|
824
|
-
function
|
|
826
|
+
function GoabAppFooter({
|
|
825
827
|
maxContentWidth,
|
|
826
828
|
children,
|
|
827
829
|
testId
|
|
828
830
|
}) {
|
|
829
831
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer", { maxcontentwidth: maxContentWidth, testid: testId, children });
|
|
830
832
|
}
|
|
831
|
-
function
|
|
833
|
+
function GoabAppFooterMetaSection({
|
|
834
|
+
testId,
|
|
835
|
+
children
|
|
836
|
+
}) {
|
|
832
837
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
833
838
|
"goa-app-footer-meta-section",
|
|
834
839
|
{
|
|
@@ -838,7 +843,7 @@ function GoAAppFooterMetaSection({ testId, children }) {
|
|
|
838
843
|
}
|
|
839
844
|
);
|
|
840
845
|
}
|
|
841
|
-
function
|
|
846
|
+
function GoabAppFooterNavSection({
|
|
842
847
|
heading,
|
|
843
848
|
maxColumnCount = 1,
|
|
844
849
|
testId,
|
|
@@ -855,7 +860,7 @@ function GoAAppFooterNavSection({
|
|
|
855
860
|
}
|
|
856
861
|
);
|
|
857
862
|
}
|
|
858
|
-
function
|
|
863
|
+
function GoabFormItem({
|
|
859
864
|
children,
|
|
860
865
|
helpText,
|
|
861
866
|
error,
|
|
@@ -893,10 +898,10 @@ function GoAFormItem({
|
|
|
893
898
|
}
|
|
894
899
|
);
|
|
895
900
|
}
|
|
896
|
-
function
|
|
901
|
+
function GoabFormStep(props) {
|
|
897
902
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-form-step", { text: props.text, status: props.status });
|
|
898
903
|
}
|
|
899
|
-
function
|
|
904
|
+
function GoabFormStepper({
|
|
900
905
|
testId,
|
|
901
906
|
step,
|
|
902
907
|
mt,
|
|
@@ -913,8 +918,8 @@ function GoAFormStepper({
|
|
|
913
918
|
}
|
|
914
919
|
const current = ref.current;
|
|
915
920
|
const changeListener = (e) => {
|
|
916
|
-
const
|
|
917
|
-
onChange == null ? void 0 : onChange(
|
|
921
|
+
const detail = e.detail;
|
|
922
|
+
onChange == null ? void 0 : onChange(detail);
|
|
918
923
|
};
|
|
919
924
|
current.addEventListener("_change", changeListener);
|
|
920
925
|
return () => {
|
|
@@ -935,7 +940,7 @@ function GoAFormStepper({
|
|
|
935
940
|
}
|
|
936
941
|
);
|
|
937
942
|
}
|
|
938
|
-
function
|
|
943
|
+
function GoabGrid({
|
|
939
944
|
gap,
|
|
940
945
|
minChildWidth,
|
|
941
946
|
mt,
|
|
@@ -949,8 +954,8 @@ function GoAGrid({
|
|
|
949
954
|
"goa-grid",
|
|
950
955
|
{
|
|
951
956
|
gap,
|
|
952
|
-
mt,
|
|
953
957
|
minchildwidth: minChildWidth,
|
|
958
|
+
mt,
|
|
954
959
|
mr,
|
|
955
960
|
mb,
|
|
956
961
|
ml,
|
|
@@ -959,7 +964,7 @@ function GoAGrid({
|
|
|
959
964
|
}
|
|
960
965
|
);
|
|
961
966
|
}
|
|
962
|
-
function
|
|
967
|
+
function GoabHeroBanner({
|
|
963
968
|
heading,
|
|
964
969
|
backgroundUrl,
|
|
965
970
|
minHeight,
|
|
@@ -983,12 +988,12 @@ function GoAHeroBanner({
|
|
|
983
988
|
}
|
|
984
989
|
);
|
|
985
990
|
}
|
|
986
|
-
function
|
|
991
|
+
function GoabHeroBannerActions({
|
|
987
992
|
children
|
|
988
993
|
}) {
|
|
989
994
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children });
|
|
990
995
|
}
|
|
991
|
-
function
|
|
996
|
+
function GoabIconButton({
|
|
992
997
|
icon: icon2,
|
|
993
998
|
disabled,
|
|
994
999
|
variant = "color",
|
|
@@ -2643,7 +2648,7 @@ function validateTime(hours, minutes, seconds) {
|
|
|
2643
2648
|
function validateTimezone(_hours, minutes) {
|
|
2644
2649
|
return minutes >= 0 && minutes <= 59;
|
|
2645
2650
|
}
|
|
2646
|
-
function
|
|
2651
|
+
function GoabInput({
|
|
2647
2652
|
id,
|
|
2648
2653
|
debounce,
|
|
2649
2654
|
name,
|
|
@@ -2686,23 +2691,23 @@ function GoAInput({
|
|
|
2686
2691
|
}
|
|
2687
2692
|
const current = ref.current;
|
|
2688
2693
|
const changeListener = (e) => {
|
|
2689
|
-
const
|
|
2690
|
-
onChange
|
|
2694
|
+
const detail = e.detail;
|
|
2695
|
+
onChange(detail);
|
|
2691
2696
|
};
|
|
2692
2697
|
const clickListener = () => {
|
|
2693
2698
|
onTrailingIconClick == null ? void 0 : onTrailingIconClick();
|
|
2694
2699
|
};
|
|
2695
2700
|
const focusListener = (e) => {
|
|
2696
|
-
const
|
|
2697
|
-
onFocus == null ? void 0 : onFocus(
|
|
2701
|
+
const detail = e.detail;
|
|
2702
|
+
onFocus == null ? void 0 : onFocus(detail);
|
|
2698
2703
|
};
|
|
2699
2704
|
const blurListener = (e) => {
|
|
2700
|
-
const
|
|
2701
|
-
onBlur == null ? void 0 : onBlur(
|
|
2705
|
+
const detail = e.detail;
|
|
2706
|
+
onBlur == null ? void 0 : onBlur(detail);
|
|
2702
2707
|
};
|
|
2703
2708
|
const keypressListener = (e) => {
|
|
2704
|
-
const
|
|
2705
|
-
onKeyPress == null ? void 0 : onKeyPress(
|
|
2709
|
+
const detail = e.detail;
|
|
2710
|
+
onKeyPress == null ? void 0 : onKeyPress(detail);
|
|
2706
2711
|
};
|
|
2707
2712
|
current.addEventListener("_change", changeListener);
|
|
2708
2713
|
current.addEventListener("_trailingIconClick", clickListener);
|
|
@@ -2757,25 +2762,28 @@ function GoAInput({
|
|
|
2757
2762
|
);
|
|
2758
2763
|
}
|
|
2759
2764
|
const onDateChangeHandler = (onChange) => {
|
|
2760
|
-
return (name, value) => {
|
|
2761
|
-
if (!onChange) return;
|
|
2765
|
+
return ({ name, value }) => {
|
|
2762
2766
|
if (!value) {
|
|
2763
|
-
onChange(name, "");
|
|
2767
|
+
onChange({ name, value: "" });
|
|
2768
|
+
return;
|
|
2769
|
+
}
|
|
2770
|
+
if (typeof value === "string" && isValid(new Date(value))) {
|
|
2771
|
+
onChange({ name, value: parseISO(value) });
|
|
2764
2772
|
return;
|
|
2765
2773
|
}
|
|
2766
|
-
if (isValid(
|
|
2767
|
-
onChange(name,
|
|
2774
|
+
if (isValid(value)) {
|
|
2775
|
+
onChange({ name, value });
|
|
2776
|
+
return;
|
|
2768
2777
|
}
|
|
2769
2778
|
};
|
|
2770
2779
|
};
|
|
2771
2780
|
const onTimeChangeHandler = (onChange) => {
|
|
2772
|
-
return (name, value) => {
|
|
2773
|
-
if (!onChange) return;
|
|
2781
|
+
return ({ name, value }) => {
|
|
2774
2782
|
if (!value) {
|
|
2775
|
-
onChange(name, "");
|
|
2783
|
+
onChange({ name, value: "" });
|
|
2776
2784
|
return;
|
|
2777
2785
|
}
|
|
2778
|
-
onChange(name, value);
|
|
2786
|
+
onChange({ name, value });
|
|
2779
2787
|
};
|
|
2780
2788
|
};
|
|
2781
2789
|
function toString(value, tmpl = "yyyy-MM-dd") {
|
|
@@ -2790,20 +2798,20 @@ function toString(value, tmpl = "yyyy-MM-dd") {
|
|
|
2790
2798
|
}
|
|
2791
2799
|
return format(value, tmpl);
|
|
2792
2800
|
}
|
|
2793
|
-
function
|
|
2794
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2801
|
+
function GoabInputText(props) {
|
|
2802
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GoabInput, { ...props, type: "text" });
|
|
2795
2803
|
}
|
|
2796
|
-
function
|
|
2797
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2804
|
+
function GoabInputPassword(props) {
|
|
2805
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GoabInput, { ...props, type: "password" });
|
|
2798
2806
|
}
|
|
2799
|
-
function
|
|
2807
|
+
function GoabInputDate({
|
|
2800
2808
|
value,
|
|
2801
2809
|
min = "",
|
|
2802
2810
|
max = "",
|
|
2803
2811
|
...props
|
|
2804
2812
|
}) {
|
|
2805
2813
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2806
|
-
|
|
2814
|
+
GoabInput,
|
|
2807
2815
|
{
|
|
2808
2816
|
...props,
|
|
2809
2817
|
type: "date",
|
|
@@ -2814,14 +2822,14 @@ function GoAInputDate({
|
|
|
2814
2822
|
}
|
|
2815
2823
|
);
|
|
2816
2824
|
}
|
|
2817
|
-
function
|
|
2825
|
+
function GoabInputTime({
|
|
2818
2826
|
value,
|
|
2819
2827
|
min = "",
|
|
2820
2828
|
max = "",
|
|
2821
2829
|
...props
|
|
2822
2830
|
}) {
|
|
2823
2831
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2824
|
-
|
|
2832
|
+
GoabInput,
|
|
2825
2833
|
{
|
|
2826
2834
|
...props,
|
|
2827
2835
|
onChange: onTimeChangeHandler(props.onChange),
|
|
@@ -2830,14 +2838,14 @@ function GoAInputTime({
|
|
|
2830
2838
|
}
|
|
2831
2839
|
);
|
|
2832
2840
|
}
|
|
2833
|
-
function
|
|
2841
|
+
function GoabInputDateTime({
|
|
2834
2842
|
value,
|
|
2835
2843
|
min = "",
|
|
2836
2844
|
max = "",
|
|
2837
2845
|
...props
|
|
2838
2846
|
}) {
|
|
2839
2847
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2840
|
-
|
|
2848
|
+
GoabInput,
|
|
2841
2849
|
{
|
|
2842
2850
|
...props,
|
|
2843
2851
|
onChange: onDateChangeHandler(props.onChange),
|
|
@@ -2846,60 +2854,56 @@ function GoAInputDateTime({
|
|
|
2846
2854
|
}
|
|
2847
2855
|
);
|
|
2848
2856
|
}
|
|
2849
|
-
function
|
|
2850
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2857
|
+
function GoabInputEmail(props) {
|
|
2858
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GoabInput, { ...props, type: "email" });
|
|
2851
2859
|
}
|
|
2852
|
-
function
|
|
2853
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2860
|
+
function GoabInputSearch(props) {
|
|
2861
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GoabInput, { ...props, type: "search", trailingIcon: "search" });
|
|
2854
2862
|
}
|
|
2855
|
-
function
|
|
2856
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2863
|
+
function GoabInputUrl(props) {
|
|
2864
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GoabInput, { ...props, type: "url" });
|
|
2857
2865
|
}
|
|
2858
|
-
function
|
|
2859
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2866
|
+
function GoabInputTel(props) {
|
|
2867
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GoabInput, { ...props, type: "tel" });
|
|
2860
2868
|
}
|
|
2861
|
-
function
|
|
2869
|
+
function GoabInputFile(props) {
|
|
2862
2870
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2863
2871
|
"input",
|
|
2864
2872
|
{
|
|
2865
2873
|
id: props.id,
|
|
2866
2874
|
name: props.name,
|
|
2867
2875
|
type: "file",
|
|
2868
|
-
onChange: (e) => {
|
|
2869
|
-
var _a;
|
|
2870
|
-
return (_a = props.onChange) == null ? void 0 : _a.call(props, e.target.name, e.target.value);
|
|
2871
|
-
},
|
|
2876
|
+
onChange: (e) => props.onChange({ name: e.target.name, value: e.target.value }),
|
|
2872
2877
|
style: { backgroundColor: "revert" }
|
|
2873
2878
|
}
|
|
2874
2879
|
);
|
|
2875
2880
|
}
|
|
2876
|
-
function
|
|
2877
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2881
|
+
function GoabInputMonth(props) {
|
|
2882
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GoabInput, { ...props, type: "month" });
|
|
2878
2883
|
}
|
|
2879
|
-
function
|
|
2884
|
+
function GoabInputNumber({
|
|
2880
2885
|
min = Number.MIN_VALUE,
|
|
2881
2886
|
max = Number.MAX_VALUE,
|
|
2882
2887
|
value,
|
|
2883
2888
|
...props
|
|
2884
2889
|
}) {
|
|
2885
|
-
const onNumberChange = (name, value2) => {
|
|
2886
|
-
|
|
2887
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, name, parseFloat(value2));
|
|
2890
|
+
const onNumberChange = ({ name, value: value2 }) => {
|
|
2891
|
+
props.onChange({ name, value: parseFloat(value2) });
|
|
2888
2892
|
};
|
|
2889
|
-
const onFocus = (name, value2) => {
|
|
2893
|
+
const onFocus = ({ name, value: value2 }) => {
|
|
2890
2894
|
var _a;
|
|
2891
|
-
(_a = props.onFocus) == null ? void 0 : _a.call(props, name, parseFloat(value2));
|
|
2895
|
+
(_a = props.onFocus) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2) });
|
|
2892
2896
|
};
|
|
2893
|
-
const onBlur = (name, value2) => {
|
|
2897
|
+
const onBlur = ({ name, value: value2 }) => {
|
|
2894
2898
|
var _a;
|
|
2895
|
-
(_a = props.onBlur) == null ? void 0 : _a.call(props, name, parseFloat(value2));
|
|
2899
|
+
(_a = props.onBlur) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2) });
|
|
2896
2900
|
};
|
|
2897
|
-
const onKeyPress = (name, value2, key) => {
|
|
2901
|
+
const onKeyPress = ({ name, value: value2, key }) => {
|
|
2898
2902
|
var _a;
|
|
2899
|
-
(_a = props.onKeyPress) == null ? void 0 : _a.call(props, name, parseFloat(value2), key);
|
|
2903
|
+
(_a = props.onKeyPress) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), key: parseInt(key) });
|
|
2900
2904
|
};
|
|
2901
2905
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2902
|
-
|
|
2906
|
+
GoabInput,
|
|
2903
2907
|
{
|
|
2904
2908
|
...props,
|
|
2905
2909
|
onChange: onNumberChange,
|
|
@@ -2913,8 +2917,8 @@ function GoAInputNumber({
|
|
|
2913
2917
|
}
|
|
2914
2918
|
);
|
|
2915
2919
|
}
|
|
2916
|
-
function
|
|
2917
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2920
|
+
function GoabInputRange(props) {
|
|
2921
|
+
return /* @__PURE__ */ jsxRuntime.jsx(GoabInput, { ...props, type: "range" });
|
|
2918
2922
|
}
|
|
2919
2923
|
function GoALink(props) {
|
|
2920
2924
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2945,7 +2949,7 @@ function GoALinkButton({ type = "primary", ...props }) {
|
|
|
2945
2949
|
}
|
|
2946
2950
|
);
|
|
2947
2951
|
}
|
|
2948
|
-
function
|
|
2952
|
+
function GoabMicrositeHeader({
|
|
2949
2953
|
type,
|
|
2950
2954
|
version,
|
|
2951
2955
|
feedbackUrl,
|
|
@@ -2988,29 +2992,19 @@ function GoAMicrositeHeader({
|
|
|
2988
2992
|
}
|
|
2989
2993
|
);
|
|
2990
2994
|
}
|
|
2991
|
-
function
|
|
2995
|
+
function GoabModal({
|
|
2992
2996
|
heading,
|
|
2993
2997
|
children,
|
|
2994
2998
|
maxWidth,
|
|
2995
2999
|
open,
|
|
2996
3000
|
actions,
|
|
2997
3001
|
transition,
|
|
2998
|
-
type,
|
|
2999
3002
|
calloutVariant,
|
|
3000
3003
|
onClose,
|
|
3001
3004
|
testId,
|
|
3002
|
-
role
|
|
3003
|
-
width
|
|
3005
|
+
role
|
|
3004
3006
|
}) {
|
|
3005
3007
|
const el = react.useRef(null);
|
|
3006
|
-
react.useEffect(() => {
|
|
3007
|
-
if (type) {
|
|
3008
|
-
console.warn("GoAModal [type] is deprecated.");
|
|
3009
|
-
}
|
|
3010
|
-
}, [type]);
|
|
3011
|
-
react.useEffect(() => {
|
|
3012
|
-
maxWidth = width;
|
|
3013
|
-
}, [width]);
|
|
3014
3008
|
react.useEffect(() => {
|
|
3015
3009
|
if (!el.current) {
|
|
3016
3010
|
return;
|
|
@@ -3043,7 +3037,7 @@ function GoAModal({
|
|
|
3043
3037
|
}
|
|
3044
3038
|
);
|
|
3045
3039
|
}
|
|
3046
|
-
const
|
|
3040
|
+
const GoabNotification = ({
|
|
3047
3041
|
type = "information",
|
|
3048
3042
|
ariaLive,
|
|
3049
3043
|
maxContentWidth,
|
|
@@ -3077,13 +3071,13 @@ const GoANotification = ({
|
|
|
3077
3071
|
}
|
|
3078
3072
|
);
|
|
3079
3073
|
};
|
|
3080
|
-
function
|
|
3074
|
+
function GoabOneColumnLayout(props) {
|
|
3081
3075
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-one-column-layout", { children: props.children });
|
|
3082
3076
|
}
|
|
3083
|
-
function
|
|
3077
|
+
function GoabPageBlock(props) {
|
|
3084
3078
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-page-block", { width: props.width, testid: props.testId, children: props.children });
|
|
3085
3079
|
}
|
|
3086
|
-
function
|
|
3080
|
+
function GoabPages(props) {
|
|
3087
3081
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3088
3082
|
"goa-pages",
|
|
3089
3083
|
{
|
|
@@ -3096,7 +3090,7 @@ function GoAPages(props) {
|
|
|
3096
3090
|
}
|
|
3097
3091
|
);
|
|
3098
3092
|
}
|
|
3099
|
-
function
|
|
3093
|
+
function GoabPagination({ onChange, ...props }) {
|
|
3100
3094
|
const ref = react.useRef();
|
|
3101
3095
|
react.useEffect(() => {
|
|
3102
3096
|
if (!ref.current) {
|
|
@@ -3104,8 +3098,8 @@ function GoAPagination({ onChange, ...props }) {
|
|
|
3104
3098
|
}
|
|
3105
3099
|
const current = ref.current;
|
|
3106
3100
|
const changeListener = (e) => {
|
|
3107
|
-
const
|
|
3108
|
-
onChange(
|
|
3101
|
+
const detail = e.detail;
|
|
3102
|
+
onChange(detail);
|
|
3109
3103
|
};
|
|
3110
3104
|
current.addEventListener("_change", changeListener);
|
|
3111
3105
|
return () => {
|
|
@@ -3128,7 +3122,7 @@ function GoAPagination({ onChange, ...props }) {
|
|
|
3128
3122
|
}
|
|
3129
3123
|
);
|
|
3130
3124
|
}
|
|
3131
|
-
function
|
|
3125
|
+
function GoabPopover({
|
|
3132
3126
|
target,
|
|
3133
3127
|
testId,
|
|
3134
3128
|
maxWidth,
|
|
@@ -3162,7 +3156,7 @@ function GoAPopover({
|
|
|
3162
3156
|
}
|
|
3163
3157
|
);
|
|
3164
3158
|
}
|
|
3165
|
-
function
|
|
3159
|
+
function GoabRadioItem({
|
|
3166
3160
|
name,
|
|
3167
3161
|
label,
|
|
3168
3162
|
value,
|
|
@@ -3190,7 +3184,6 @@ function GoARadioItem({
|
|
|
3190
3184
|
error,
|
|
3191
3185
|
disabled,
|
|
3192
3186
|
checked,
|
|
3193
|
-
"data-testid": testId,
|
|
3194
3187
|
arialabel: ariaLabel,
|
|
3195
3188
|
mt,
|
|
3196
3189
|
mr,
|
|
@@ -3203,7 +3196,7 @@ function GoARadioItem({
|
|
|
3203
3196
|
}
|
|
3204
3197
|
);
|
|
3205
3198
|
}
|
|
3206
|
-
function
|
|
3199
|
+
function GoabRadioGroup({
|
|
3207
3200
|
name,
|
|
3208
3201
|
value,
|
|
3209
3202
|
children,
|
|
@@ -3220,15 +3213,14 @@ function GoARadioGroup({
|
|
|
3220
3213
|
}) {
|
|
3221
3214
|
const el = react.useRef(null);
|
|
3222
3215
|
react.useEffect(() => {
|
|
3223
|
-
if (!el.current)
|
|
3224
|
-
return;
|
|
3225
|
-
}
|
|
3216
|
+
if (!el.current) return;
|
|
3226
3217
|
const listener = (e) => {
|
|
3227
3218
|
if (!onChange) {
|
|
3228
3219
|
console.warn("Missing onChange function");
|
|
3229
3220
|
return;
|
|
3230
3221
|
}
|
|
3231
|
-
|
|
3222
|
+
const detail = e.detail;
|
|
3223
|
+
onChange(detail);
|
|
3232
3224
|
};
|
|
3233
3225
|
const currentEl = el.current;
|
|
3234
3226
|
currentEl.addEventListener("_change", listener);
|
|
@@ -3255,7 +3247,7 @@ function GoARadioGroup({
|
|
|
3255
3247
|
}
|
|
3256
3248
|
);
|
|
3257
3249
|
}
|
|
3258
|
-
function
|
|
3250
|
+
function GoabSideMenuGroup(props) {
|
|
3259
3251
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3260
3252
|
"goa-side-menu-group",
|
|
3261
3253
|
{
|
|
@@ -3270,23 +3262,16 @@ function GoASideMenuGroup(props) {
|
|
|
3270
3262
|
}
|
|
3271
3263
|
);
|
|
3272
3264
|
}
|
|
3273
|
-
function
|
|
3274
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3275
|
-
|
|
3276
|
-
{
|
|
3277
|
-
|
|
3278
|
-
testid: props.testId,
|
|
3279
|
-
children: [
|
|
3280
|
-
props.children,
|
|
3281
|
-
props.meta && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "meta", children: props.meta })
|
|
3282
|
-
]
|
|
3283
|
-
}
|
|
3284
|
-
);
|
|
3265
|
+
function GoabSideMenuHeading(props) {
|
|
3266
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("goa-side-menu-heading", { icon: props.icon, testid: props.testId, children: [
|
|
3267
|
+
props.children,
|
|
3268
|
+
props.meta && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "meta", children: props.meta })
|
|
3269
|
+
] });
|
|
3285
3270
|
}
|
|
3286
|
-
function
|
|
3271
|
+
function GoabSideMenu(props) {
|
|
3287
3272
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-side-menu", { testid: props.testId, children: props.children });
|
|
3288
3273
|
}
|
|
3289
|
-
const
|
|
3274
|
+
const GoabSkeleton = ({
|
|
3290
3275
|
maxWidth,
|
|
3291
3276
|
size,
|
|
3292
3277
|
lineCount,
|
|
@@ -3312,7 +3297,7 @@ const GoASkeleton = ({
|
|
|
3312
3297
|
}
|
|
3313
3298
|
);
|
|
3314
3299
|
};
|
|
3315
|
-
function
|
|
3300
|
+
function GoabSpacer(props) {
|
|
3316
3301
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3317
3302
|
"goa-spacer",
|
|
3318
3303
|
{
|
|
@@ -3322,7 +3307,7 @@ function GoASpacer(props) {
|
|
|
3322
3307
|
}
|
|
3323
3308
|
);
|
|
3324
3309
|
}
|
|
3325
|
-
function
|
|
3310
|
+
function GoabSpinner({
|
|
3326
3311
|
type,
|
|
3327
3312
|
size,
|
|
3328
3313
|
progress,
|
|
@@ -3340,7 +3325,7 @@ function GoASpinner({
|
|
|
3340
3325
|
}
|
|
3341
3326
|
);
|
|
3342
3327
|
}
|
|
3343
|
-
function
|
|
3328
|
+
function GoabTable({ onSort, ...props }) {
|
|
3344
3329
|
const ref = react.useRef(null);
|
|
3345
3330
|
react.useEffect(() => {
|
|
3346
3331
|
if (!ref.current) {
|
|
@@ -3348,8 +3333,8 @@ function GoATable({ onSort, ...props }) {
|
|
|
3348
3333
|
}
|
|
3349
3334
|
const current = ref.current;
|
|
3350
3335
|
const sortListener = (e) => {
|
|
3351
|
-
const
|
|
3352
|
-
onSort == null ? void 0 : onSort(
|
|
3336
|
+
const detail = e.detail;
|
|
3337
|
+
onSort == null ? void 0 : onSort(detail);
|
|
3353
3338
|
};
|
|
3354
3339
|
current.addEventListener("_sort", sortListener);
|
|
3355
3340
|
return () => {
|
|
@@ -3372,14 +3357,14 @@ function GoATable({ onSort, ...props }) {
|
|
|
3372
3357
|
}
|
|
3373
3358
|
);
|
|
3374
3359
|
}
|
|
3375
|
-
function
|
|
3360
|
+
function GoabTableSortHeader({
|
|
3376
3361
|
name,
|
|
3377
3362
|
direction = "none",
|
|
3378
3363
|
children
|
|
3379
3364
|
}) {
|
|
3380
3365
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-table-sort-header", { name, direction, children });
|
|
3381
3366
|
}
|
|
3382
|
-
function
|
|
3367
|
+
function GoabTabs({
|
|
3383
3368
|
initialTab,
|
|
3384
3369
|
children,
|
|
3385
3370
|
testId,
|
|
@@ -3390,8 +3375,8 @@ function GoATabs({
|
|
|
3390
3375
|
const element = ref.current;
|
|
3391
3376
|
if (element && onChange) {
|
|
3392
3377
|
const handler = (event) => {
|
|
3393
|
-
const
|
|
3394
|
-
onChange(
|
|
3378
|
+
const detail = event.detail;
|
|
3379
|
+
onChange(detail);
|
|
3395
3380
|
};
|
|
3396
3381
|
element.addEventListener("_change", handler);
|
|
3397
3382
|
return () => {
|
|
@@ -3401,13 +3386,13 @@ function GoATabs({
|
|
|
3401
3386
|
}, [onChange]);
|
|
3402
3387
|
return /* @__PURE__ */ jsxRuntime.jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, children });
|
|
3403
3388
|
}
|
|
3404
|
-
function
|
|
3389
|
+
function GoabTab({ heading, children }) {
|
|
3405
3390
|
return /* @__PURE__ */ jsxRuntime.jsxs("goa-tab", { children: [
|
|
3406
3391
|
heading && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "heading", children: heading }),
|
|
3407
3392
|
children
|
|
3408
3393
|
] });
|
|
3409
3394
|
}
|
|
3410
|
-
function
|
|
3395
|
+
function GoabText(props) {
|
|
3411
3396
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3412
3397
|
"goa-text",
|
|
3413
3398
|
{
|
|
@@ -3422,7 +3407,7 @@ function GoAText(props) {
|
|
|
3422
3407
|
}
|
|
3423
3408
|
);
|
|
3424
3409
|
}
|
|
3425
|
-
function
|
|
3410
|
+
function GoabTextarea({
|
|
3426
3411
|
name,
|
|
3427
3412
|
value,
|
|
3428
3413
|
placeholder,
|
|
@@ -3450,8 +3435,8 @@ function GoATextarea({
|
|
|
3450
3435
|
}
|
|
3451
3436
|
const current = el.current;
|
|
3452
3437
|
const listener = (e) => {
|
|
3453
|
-
const
|
|
3454
|
-
onChange
|
|
3438
|
+
const detail = e.detail;
|
|
3439
|
+
onChange(detail);
|
|
3455
3440
|
};
|
|
3456
3441
|
current.addEventListener("_change", listener);
|
|
3457
3442
|
return () => {
|
|
@@ -3464,8 +3449,8 @@ function GoATextarea({
|
|
|
3464
3449
|
}
|
|
3465
3450
|
const current = el.current;
|
|
3466
3451
|
const keypressListener = (e) => {
|
|
3467
|
-
const
|
|
3468
|
-
onKeyPress == null ? void 0 : onKeyPress(
|
|
3452
|
+
const detail = e.detail;
|
|
3453
|
+
onKeyPress == null ? void 0 : onKeyPress(detail);
|
|
3469
3454
|
};
|
|
3470
3455
|
current.addEventListener("_keyPress", keypressListener);
|
|
3471
3456
|
return () => {
|
|
@@ -3496,7 +3481,7 @@ function GoATextarea({
|
|
|
3496
3481
|
}
|
|
3497
3482
|
);
|
|
3498
3483
|
}
|
|
3499
|
-
function
|
|
3484
|
+
function GoabThreeColumnLayout(props) {
|
|
3500
3485
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3501
3486
|
"goa-three-column-layout",
|
|
3502
3487
|
{
|
|
@@ -3514,7 +3499,7 @@ function GoAThreeColumnLayout(props) {
|
|
|
3514
3499
|
}
|
|
3515
3500
|
);
|
|
3516
3501
|
}
|
|
3517
|
-
function
|
|
3502
|
+
function GoabTooltip(props) {
|
|
3518
3503
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3519
3504
|
"goa-tooltip",
|
|
3520
3505
|
{
|
|
@@ -3530,7 +3515,7 @@ function GoATooltip(props) {
|
|
|
3530
3515
|
}
|
|
3531
3516
|
);
|
|
3532
3517
|
}
|
|
3533
|
-
function
|
|
3518
|
+
function GoabTwoColumnLayout(props) {
|
|
3534
3519
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3535
3520
|
"goa-two-column-layout",
|
|
3536
3521
|
{
|
|
@@ -3581,84 +3566,83 @@ const GoAFilterChip = ({
|
|
|
3581
3566
|
}
|
|
3582
3567
|
);
|
|
3583
3568
|
};
|
|
3584
|
-
exports.
|
|
3585
|
-
exports.GoAAccordion = GoAAccordion;
|
|
3586
|
-
exports.GoAAppFooter = GoAAppFooter;
|
|
3587
|
-
exports.GoAAppFooterMetaSection = GoAAppFooterMetaSection;
|
|
3588
|
-
exports.GoAAppFooterNavSection = GoAAppFooterNavSection;
|
|
3589
|
-
exports.GoAAppHeader = GoAAppHeader;
|
|
3590
|
-
exports.GoAAppHeaderMenu = GoAAppHeaderMenu;
|
|
3591
|
-
exports.GoABadge = GoABadge;
|
|
3592
|
-
exports.GoABlock = GoABlock;
|
|
3593
|
-
exports.GoAButton = GoAButton;
|
|
3594
|
-
exports.GoAButtonGroup = GoAButtonGroup;
|
|
3595
|
-
exports.GoACalendar = GoACalendar;
|
|
3596
|
-
exports.GoACallout = GoACallout;
|
|
3597
|
-
exports.GoACheckbox = GoACheckbox;
|
|
3598
|
-
exports.GoAChip = GoAChip;
|
|
3599
|
-
exports.GoACircularProgress = GoACircularProgress;
|
|
3600
|
-
exports.GoAContainer = GoAContainer;
|
|
3601
|
-
exports.GoADatePicker = GoADatePicker;
|
|
3602
|
-
exports.GoADetails = GoADetails;
|
|
3603
|
-
exports.GoADivider = GoADivider;
|
|
3604
|
-
exports.GoADropdown = GoADropdown;
|
|
3605
|
-
exports.GoADropdownItem = GoADropdownItem;
|
|
3606
|
-
exports.GoADropdownOption = GoADropdownOption;
|
|
3607
|
-
exports.GoAEmergencyBadge = GoAEmergencyBadge;
|
|
3608
|
-
exports.GoAFieldset = GoAFieldset;
|
|
3609
|
-
exports.GoAFileUploadCard = GoAFileUploadCard;
|
|
3610
|
-
exports.GoAFileUploadInput = GoAFileUploadInput;
|
|
3569
|
+
exports.GoabIcon = icon.GoabIcon;
|
|
3611
3570
|
exports.GoAFilterChip = GoAFilterChip;
|
|
3612
|
-
exports.GoAFormItem = GoAFormItem;
|
|
3613
|
-
exports.GoAFormStep = GoAFormStep;
|
|
3614
|
-
exports.GoAFormStepper = GoAFormStepper;
|
|
3615
|
-
exports.GoAGrid = GoAGrid;
|
|
3616
|
-
exports.GoAHeroBanner = GoAHeroBanner;
|
|
3617
|
-
exports.GoAHeroBannerActions = GoAHeroBannerActions;
|
|
3618
|
-
exports.GoAIconButton = GoAIconButton;
|
|
3619
|
-
exports.GoAImportantBadge = GoAImportantBadge;
|
|
3620
|
-
exports.GoAInfoBadge = GoAInfoBadge;
|
|
3621
|
-
exports.GoAInput = GoAInput;
|
|
3622
|
-
exports.GoAInputDate = GoAInputDate;
|
|
3623
|
-
exports.GoAInputDateTime = GoAInputDateTime;
|
|
3624
|
-
exports.GoAInputEmail = GoAInputEmail;
|
|
3625
|
-
exports.GoAInputFile = GoAInputFile;
|
|
3626
|
-
exports.GoAInputMonth = GoAInputMonth;
|
|
3627
|
-
exports.GoAInputNumber = GoAInputNumber;
|
|
3628
|
-
exports.GoAInputPassword = GoAInputPassword;
|
|
3629
|
-
exports.GoAInputRange = GoAInputRange;
|
|
3630
|
-
exports.GoAInputSearch = GoAInputSearch;
|
|
3631
|
-
exports.GoAInputTel = GoAInputTel;
|
|
3632
|
-
exports.GoAInputText = GoAInputText;
|
|
3633
|
-
exports.GoAInputTime = GoAInputTime;
|
|
3634
|
-
exports.GoAInputUrl = GoAInputUrl;
|
|
3635
3571
|
exports.GoALink = GoALink;
|
|
3636
3572
|
exports.GoALinkButton = GoALinkButton;
|
|
3637
|
-
exports.
|
|
3638
|
-
exports.
|
|
3639
|
-
exports.
|
|
3640
|
-
exports.
|
|
3641
|
-
exports.
|
|
3642
|
-
exports.
|
|
3643
|
-
exports.
|
|
3644
|
-
exports.
|
|
3645
|
-
exports.
|
|
3646
|
-
exports.
|
|
3647
|
-
exports.
|
|
3648
|
-
exports.
|
|
3649
|
-
exports.
|
|
3650
|
-
exports.
|
|
3651
|
-
exports.
|
|
3652
|
-
exports.
|
|
3653
|
-
exports.
|
|
3654
|
-
exports.
|
|
3655
|
-
exports.
|
|
3656
|
-
exports.
|
|
3657
|
-
exports.
|
|
3658
|
-
exports.
|
|
3659
|
-
exports.
|
|
3660
|
-
exports.
|
|
3661
|
-
exports.
|
|
3662
|
-
exports.
|
|
3663
|
-
exports.
|
|
3573
|
+
exports.GoabAccordion = GoabAccordion;
|
|
3574
|
+
exports.GoabAppFooter = GoabAppFooter;
|
|
3575
|
+
exports.GoabAppFooterMetaSection = GoabAppFooterMetaSection;
|
|
3576
|
+
exports.GoabAppFooterNavSection = GoabAppFooterNavSection;
|
|
3577
|
+
exports.GoabAppHeader = GoabAppHeader;
|
|
3578
|
+
exports.GoabAppHeaderMenu = GoabAppHeaderMenu;
|
|
3579
|
+
exports.GoabBadge = GoabBadge;
|
|
3580
|
+
exports.GoabBlock = GoabBlock;
|
|
3581
|
+
exports.GoabButton = GoabButton;
|
|
3582
|
+
exports.GoabButtonGroup = GoabButtonGroup;
|
|
3583
|
+
exports.GoabCalendar = GoabCalendar;
|
|
3584
|
+
exports.GoabCallout = GoabCallout;
|
|
3585
|
+
exports.GoabCheckbox = GoabCheckbox;
|
|
3586
|
+
exports.GoabChip = GoabChip;
|
|
3587
|
+
exports.GoabCircularProgress = GoabCircularProgress;
|
|
3588
|
+
exports.GoabContainer = GoabContainer;
|
|
3589
|
+
exports.GoabDatePicker = GoabDatePicker;
|
|
3590
|
+
exports.GoabDetails = GoabDetails;
|
|
3591
|
+
exports.GoabDivider = GoabDivider;
|
|
3592
|
+
exports.GoabDropdown = GoabDropdown;
|
|
3593
|
+
exports.GoabDropdownItem = GoabDropdownItem;
|
|
3594
|
+
exports.GoabDropdownOption = GoabDropdownOption;
|
|
3595
|
+
exports.GoabEmergencyBadge = GoabEmergencyBadge;
|
|
3596
|
+
exports.GoabFieldset = GoabFieldset;
|
|
3597
|
+
exports.GoabFileUploadCard = GoabFileUploadCard;
|
|
3598
|
+
exports.GoabFileUploadInput = GoabFileUploadInput;
|
|
3599
|
+
exports.GoabFormItem = GoabFormItem;
|
|
3600
|
+
exports.GoabFormStep = GoabFormStep;
|
|
3601
|
+
exports.GoabFormStepper = GoabFormStepper;
|
|
3602
|
+
exports.GoabGrid = GoabGrid;
|
|
3603
|
+
exports.GoabHeroBanner = GoabHeroBanner;
|
|
3604
|
+
exports.GoabHeroBannerActions = GoabHeroBannerActions;
|
|
3605
|
+
exports.GoabIconButton = GoabIconButton;
|
|
3606
|
+
exports.GoabImportantBadge = GoabImportantBadge;
|
|
3607
|
+
exports.GoabInfoBadge = GoabInfoBadge;
|
|
3608
|
+
exports.GoabInput = GoabInput;
|
|
3609
|
+
exports.GoabInputDate = GoabInputDate;
|
|
3610
|
+
exports.GoabInputDateTime = GoabInputDateTime;
|
|
3611
|
+
exports.GoabInputEmail = GoabInputEmail;
|
|
3612
|
+
exports.GoabInputFile = GoabInputFile;
|
|
3613
|
+
exports.GoabInputMonth = GoabInputMonth;
|
|
3614
|
+
exports.GoabInputNumber = GoabInputNumber;
|
|
3615
|
+
exports.GoabInputPassword = GoabInputPassword;
|
|
3616
|
+
exports.GoabInputRange = GoabInputRange;
|
|
3617
|
+
exports.GoabInputSearch = GoabInputSearch;
|
|
3618
|
+
exports.GoabInputTel = GoabInputTel;
|
|
3619
|
+
exports.GoabInputText = GoabInputText;
|
|
3620
|
+
exports.GoabInputTime = GoabInputTime;
|
|
3621
|
+
exports.GoabInputUrl = GoabInputUrl;
|
|
3622
|
+
exports.GoabMicrositeHeader = GoabMicrositeHeader;
|
|
3623
|
+
exports.GoabModal = GoabModal;
|
|
3624
|
+
exports.GoabNotification = GoabNotification;
|
|
3625
|
+
exports.GoabOneColumnLayout = GoabOneColumnLayout;
|
|
3626
|
+
exports.GoabPageBlock = GoabPageBlock;
|
|
3627
|
+
exports.GoabPages = GoabPages;
|
|
3628
|
+
exports.GoabPagination = GoabPagination;
|
|
3629
|
+
exports.GoabPopover = GoabPopover;
|
|
3630
|
+
exports.GoabRadioGroup = GoabRadioGroup;
|
|
3631
|
+
exports.GoabRadioItem = GoabRadioItem;
|
|
3632
|
+
exports.GoabSideMenu = GoabSideMenu;
|
|
3633
|
+
exports.GoabSideMenuGroup = GoabSideMenuGroup;
|
|
3634
|
+
exports.GoabSideMenuHeading = GoabSideMenuHeading;
|
|
3635
|
+
exports.GoabSkeleton = GoabSkeleton;
|
|
3636
|
+
exports.GoabSpacer = GoabSpacer;
|
|
3637
|
+
exports.GoabSpinner = GoabSpinner;
|
|
3638
|
+
exports.GoabSuccessBadge = GoabSuccessBadge;
|
|
3639
|
+
exports.GoabTab = GoabTab;
|
|
3640
|
+
exports.GoabTable = GoabTable;
|
|
3641
|
+
exports.GoabTableSortHeader = GoabTableSortHeader;
|
|
3642
|
+
exports.GoabTabs = GoabTabs;
|
|
3643
|
+
exports.GoabText = GoabText;
|
|
3644
|
+
exports.GoabTextarea = GoabTextarea;
|
|
3645
|
+
exports.GoabThreeColumnLayout = GoabThreeColumnLayout;
|
|
3646
|
+
exports.GoabTooltip = GoabTooltip;
|
|
3647
|
+
exports.GoabTwoColumnLayout = GoabTwoColumnLayout;
|
|
3664
3648
|
//# sourceMappingURL=index.js.map
|