@abgov/react-components 6.10.0-dev.8 → 6.10.0-next.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.js +1 -1
- package/experimental.mjs +2 -2
- package/{icon-CK55b563.js → icon-B3p90m2x.js} +21 -26
- package/icon-B3p90m2x.js.map +1 -0
- package/{icon-CoYGOp1V.mjs → icon-CCNDGfBO.mjs} +22 -27
- package/icon-CCNDGfBO.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +331 -755
- package/index.js.map +1 -1
- package/index.mjs +330 -753
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +6 -5
- package/lib/app-header/app-header.d.ts +6 -4
- package/lib/app-header-menu/app-header-menu.d.ts +3 -3
- package/lib/badge/badge.d.ts +3 -3
- package/lib/block/block.d.ts +3 -3
- package/lib/button/button.d.ts +6 -5
- package/lib/button-group/button-group.d.ts +3 -3
- package/lib/calendar/calendar.d.ts +6 -5
- package/lib/callout/callout.d.ts +3 -3
- package/lib/card/card-actions.d.ts +3 -2
- package/lib/card/card-content.d.ts +3 -2
- package/lib/card/card-group.d.ts +3 -2
- package/lib/card/card-image.d.ts +3 -2
- package/lib/card/card.d.ts +3 -3
- package/lib/checkbox/checkbox.d.ts +6 -5
- package/lib/chip/chip.d.ts +6 -5
- package/lib/common/extract-props.d.ts +32 -0
- package/lib/container/container.d.ts +7 -3
- package/lib/data-grid/data-grid.d.ts +21 -0
- package/lib/date-picker/date-picker.d.ts +6 -5
- package/lib/details/details.d.ts +3 -3
- package/lib/dropdown/dropdown.d.ts +6 -5
- package/lib/file-upload-card/file-upload-card.d.ts +6 -5
- package/lib/file-upload-input/file-upload-input.d.ts +6 -5
- package/lib/filter-chip/filter-chip.d.ts +6 -5
- package/lib/footer/footer.d.ts +3 -2
- package/lib/footer-meta-section/footer-meta-section.d.ts +3 -2
- package/lib/footer-nav-section/footer-nav-section.d.ts +3 -2
- package/lib/form/fieldset.d.ts +7 -6
- package/lib/form/public-form-page.d.ts +6 -5
- package/lib/form/public-form-summary.d.ts +3 -3
- package/lib/form/public-form.d.ts +6 -5
- package/lib/form/public-subform-index.d.ts +3 -4
- package/lib/form/public-subform.d.ts +6 -5
- package/lib/form/task-list.d.ts +3 -3
- package/lib/form/task.d.ts +4 -4
- package/lib/form-item/form-item.d.ts +3 -3
- package/lib/icon/icon.d.ts +3 -14
- package/lib/icon-button/icon-button.d.ts +6 -5
- package/lib/input/input.d.ts +6 -5
- package/lib/link/link.d.ts +3 -3
- package/lib/link-button/link-button.d.ts +3 -3
- package/lib/menu-button/menu-action.d.ts +3 -3
- package/lib/menu-button/menu-button.d.ts +3 -3
- package/lib/popover/popover.d.ts +3 -3
- package/lib/radio-group/radio-group.d.ts +6 -5
- package/lib/tab/tab.d.ts +3 -1
- package/lib/table/table-sort-header.d.ts +3 -3
- package/lib/tabs/tabs.d.ts +4 -2
- package/lib/temporary-notification-ctrl/temporary-notification-ctrl.d.ts +6 -5
- package/lib/text/text.d.ts +3 -3
- package/lib/textarea/textarea.d.ts +6 -5
- package/lib/tooltip/tooltip.d.ts +3 -3
- package/package.json +1 -1
- package/icon-CK55b563.js.map +0 -1
- package/icon-CoYGOp1V.mjs.map +0 -1
package/index.js
CHANGED
|
@@ -12,30 +12,22 @@ var _PublicFormController_instances, updateObjectListState_fn, dispatchError_fn;
|
|
|
12
12
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
13
13
|
const jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
const react = require("react");
|
|
15
|
-
const icon = require("./icon-
|
|
15
|
+
const icon = require("./icon-B3p90m2x.js");
|
|
16
16
|
function GoabAccordion({
|
|
17
17
|
open,
|
|
18
|
-
heading,
|
|
19
|
-
headingSize,
|
|
20
|
-
secondaryText,
|
|
21
|
-
headingContent,
|
|
22
|
-
iconPosition,
|
|
23
|
-
maxWidth,
|
|
24
|
-
testId,
|
|
25
18
|
onChange,
|
|
19
|
+
headingContent,
|
|
26
20
|
children,
|
|
27
|
-
|
|
28
|
-
mr,
|
|
29
|
-
mb,
|
|
30
|
-
ml
|
|
21
|
+
...rest
|
|
31
22
|
}) {
|
|
32
23
|
const ref = react.useRef(null);
|
|
24
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
33
25
|
react.useEffect(() => {
|
|
34
26
|
const element = ref.current;
|
|
35
27
|
if (element && onChange) {
|
|
36
28
|
const handler = (event) => {
|
|
37
29
|
const customEvent = event;
|
|
38
|
-
onChange(customEvent.detail.open);
|
|
30
|
+
onChange == null ? void 0 : onChange(customEvent.detail.open);
|
|
39
31
|
};
|
|
40
32
|
element.addEventListener("_change", handler);
|
|
41
33
|
return () => {
|
|
@@ -48,16 +40,7 @@ function GoabAccordion({
|
|
|
48
40
|
{
|
|
49
41
|
ref,
|
|
50
42
|
open: open ? "true" : void 0,
|
|
51
|
-
|
|
52
|
-
heading,
|
|
53
|
-
secondarytext: secondaryText,
|
|
54
|
-
iconposition: iconPosition,
|
|
55
|
-
maxwidth: maxWidth,
|
|
56
|
-
testid: testId,
|
|
57
|
-
mt,
|
|
58
|
-
mr,
|
|
59
|
-
mb,
|
|
60
|
-
ml,
|
|
43
|
+
..._props,
|
|
61
44
|
children: [
|
|
62
45
|
headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "headingcontent", children: headingContent }),
|
|
63
46
|
children
|
|
@@ -66,15 +49,12 @@ function GoabAccordion({
|
|
|
66
49
|
);
|
|
67
50
|
}
|
|
68
51
|
function GoabAppHeader({
|
|
69
|
-
|
|
70
|
-
url,
|
|
71
|
-
maxContentWidth,
|
|
72
|
-
fullMenuBreakpoint,
|
|
73
|
-
testId,
|
|
52
|
+
onMenuClick,
|
|
74
53
|
children,
|
|
75
|
-
|
|
54
|
+
...rest
|
|
76
55
|
}) {
|
|
77
56
|
const el = react.useRef(null);
|
|
57
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
78
58
|
react.useEffect(() => {
|
|
79
59
|
if (!el.current) {
|
|
80
60
|
return;
|
|
@@ -84,7 +64,7 @@ function GoabAppHeader({
|
|
|
84
64
|
}
|
|
85
65
|
const current = el.current;
|
|
86
66
|
const listener = () => {
|
|
87
|
-
onMenuClick();
|
|
67
|
+
onMenuClick == null ? void 0 : onMenuClick();
|
|
88
68
|
};
|
|
89
69
|
current.addEventListener("_menuClick", listener);
|
|
90
70
|
return () => {
|
|
@@ -95,26 +75,18 @@ function GoabAppHeader({
|
|
|
95
75
|
"goa-app-header",
|
|
96
76
|
{
|
|
97
77
|
ref: el,
|
|
98
|
-
heading,
|
|
99
|
-
url,
|
|
100
|
-
fullmenubreakpoint: fullMenuBreakpoint,
|
|
101
|
-
maxcontentwidth: maxContentWidth,
|
|
102
|
-
testid: testId,
|
|
103
78
|
hasmenuclickhandler: onMenuClick ? "true" : "false",
|
|
79
|
+
..._props,
|
|
104
80
|
children
|
|
105
81
|
}
|
|
106
82
|
);
|
|
107
83
|
}
|
|
108
|
-
function GoabAppHeaderMenu(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
testid: props.testId,
|
|
115
|
-
children: props.children
|
|
116
|
-
}
|
|
117
|
-
);
|
|
84
|
+
function GoabAppHeaderMenu({
|
|
85
|
+
children,
|
|
86
|
+
...rest
|
|
87
|
+
}) {
|
|
88
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
89
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-header-menu", { ..._props, children });
|
|
118
90
|
}
|
|
119
91
|
function getIconValue(icon2, iconType) {
|
|
120
92
|
if (icon2 !== void 0) {
|
|
@@ -123,30 +95,17 @@ function getIconValue(icon2, iconType) {
|
|
|
123
95
|
return iconType ? "true" : "false";
|
|
124
96
|
}
|
|
125
97
|
function GoabBadge({
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
testId,
|
|
130
|
-
mt,
|
|
131
|
-
mr,
|
|
132
|
-
mb,
|
|
133
|
-
ml,
|
|
134
|
-
ariaLabel,
|
|
135
|
-
iconType
|
|
98
|
+
icon: icon$1,
|
|
99
|
+
iconType,
|
|
100
|
+
...rest
|
|
136
101
|
}) {
|
|
102
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
137
103
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
138
104
|
"goa-badge",
|
|
139
105
|
{
|
|
140
|
-
|
|
141
|
-
content,
|
|
142
|
-
icon: getIconValue(icon2, iconType),
|
|
143
|
-
testid: testId,
|
|
144
|
-
arialabel: ariaLabel,
|
|
106
|
+
icon: getIconValue(icon$1, iconType),
|
|
145
107
|
icontype: iconType,
|
|
146
|
-
|
|
147
|
-
mr,
|
|
148
|
-
mb,
|
|
149
|
-
ml
|
|
108
|
+
..._props
|
|
150
109
|
}
|
|
151
110
|
);
|
|
152
111
|
}
|
|
@@ -250,45 +209,27 @@ function GoabEmergencyBadge({
|
|
|
250
209
|
}
|
|
251
210
|
);
|
|
252
211
|
}
|
|
253
|
-
function GoabBlock(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
"min-width": props.minWidth,
|
|
262
|
-
"max-width": props.maxWidth,
|
|
263
|
-
mt: props.mt,
|
|
264
|
-
mr: props.mr,
|
|
265
|
-
mb: props.mb,
|
|
266
|
-
ml: props.ml,
|
|
267
|
-
testid: props.testId,
|
|
268
|
-
children: props.children
|
|
269
|
-
}
|
|
212
|
+
function GoabBlock({
|
|
213
|
+
testId,
|
|
214
|
+
children,
|
|
215
|
+
...rest
|
|
216
|
+
}) {
|
|
217
|
+
const _props = icon.transformProps(
|
|
218
|
+
{ testid: testId, ...rest },
|
|
219
|
+
icon.kebab
|
|
270
220
|
);
|
|
221
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-block", { ..._props, children });
|
|
271
222
|
}
|
|
272
223
|
function GoabButton({
|
|
273
224
|
disabled,
|
|
274
|
-
type,
|
|
275
|
-
size,
|
|
276
|
-
variant,
|
|
277
|
-
leadingIcon,
|
|
278
|
-
trailingIcon,
|
|
279
|
-
width,
|
|
280
|
-
testId,
|
|
281
|
-
children,
|
|
282
225
|
onClick,
|
|
283
|
-
mt,
|
|
284
|
-
mr,
|
|
285
|
-
mb,
|
|
286
|
-
ml,
|
|
287
|
-
action,
|
|
288
226
|
actionArgs,
|
|
289
|
-
actionArg
|
|
227
|
+
actionArg,
|
|
228
|
+
children,
|
|
229
|
+
...rest
|
|
290
230
|
}) {
|
|
291
231
|
const el = react.useRef(null);
|
|
232
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
292
233
|
react.useEffect(() => {
|
|
293
234
|
if (!el.current) {
|
|
294
235
|
return;
|
|
@@ -298,7 +239,7 @@ function GoabButton({
|
|
|
298
239
|
}
|
|
299
240
|
const current = el.current;
|
|
300
241
|
const listener = () => {
|
|
301
|
-
onClick();
|
|
242
|
+
onClick == null ? void 0 : onClick();
|
|
302
243
|
};
|
|
303
244
|
current.addEventListener("_click", listener);
|
|
304
245
|
return () => {
|
|
@@ -309,62 +250,30 @@ function GoabButton({
|
|
|
309
250
|
"goa-button",
|
|
310
251
|
{
|
|
311
252
|
ref: el,
|
|
312
|
-
type,
|
|
313
|
-
size,
|
|
314
|
-
variant,
|
|
315
253
|
disabled: disabled ? "true" : void 0,
|
|
316
|
-
leadingicon: leadingIcon,
|
|
317
|
-
trailingicon: trailingIcon,
|
|
318
|
-
width,
|
|
319
|
-
testid: testId,
|
|
320
|
-
action,
|
|
321
254
|
"action-arg": actionArg,
|
|
322
255
|
"action-args": JSON.stringify(actionArgs),
|
|
323
|
-
|
|
324
|
-
mr,
|
|
325
|
-
mb,
|
|
326
|
-
ml,
|
|
256
|
+
..._props,
|
|
327
257
|
children
|
|
328
258
|
}
|
|
329
259
|
);
|
|
330
260
|
}
|
|
331
261
|
function GoabButtonGroup({
|
|
332
|
-
alignment,
|
|
333
|
-
gap,
|
|
334
|
-
testId,
|
|
335
262
|
children,
|
|
336
|
-
|
|
337
|
-
mr,
|
|
338
|
-
mb,
|
|
339
|
-
ml
|
|
263
|
+
...rest
|
|
340
264
|
}) {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
{
|
|
344
|
-
alignment,
|
|
345
|
-
gap,
|
|
346
|
-
mt,
|
|
347
|
-
mr,
|
|
348
|
-
mb,
|
|
349
|
-
ml,
|
|
350
|
-
testid: testId,
|
|
351
|
-
children
|
|
352
|
-
}
|
|
353
|
-
);
|
|
265
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
266
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-button-group", { ..._props, children });
|
|
354
267
|
}
|
|
355
268
|
function GoabCalendar({
|
|
356
|
-
name,
|
|
357
|
-
value,
|
|
358
269
|
min,
|
|
359
270
|
max,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
mb,
|
|
364
|
-
ml,
|
|
365
|
-
onChange
|
|
271
|
+
onChange,
|
|
272
|
+
name,
|
|
273
|
+
...rest
|
|
366
274
|
}) {
|
|
367
275
|
const ref = react.useRef(null);
|
|
276
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
368
277
|
react.useEffect(() => {
|
|
369
278
|
if (!ref.current) {
|
|
370
279
|
return;
|
|
@@ -386,72 +295,41 @@ function GoabCalendar({
|
|
|
386
295
|
{
|
|
387
296
|
ref,
|
|
388
297
|
name,
|
|
389
|
-
value,
|
|
390
298
|
min: min || void 0,
|
|
391
299
|
max: max || void 0,
|
|
392
|
-
|
|
393
|
-
mt,
|
|
394
|
-
mr,
|
|
395
|
-
mb,
|
|
396
|
-
ml
|
|
300
|
+
..._props
|
|
397
301
|
}
|
|
398
302
|
);
|
|
399
303
|
}
|
|
400
304
|
const GoabCallout = ({
|
|
401
|
-
heading,
|
|
402
305
|
type = "information",
|
|
403
306
|
iconTheme = "outline",
|
|
404
307
|
size = "large",
|
|
405
|
-
maxWidth,
|
|
406
|
-
testId,
|
|
407
308
|
ariaLive = "off",
|
|
408
309
|
children,
|
|
409
|
-
|
|
410
|
-
mr,
|
|
411
|
-
mb,
|
|
412
|
-
ml
|
|
310
|
+
...rest
|
|
413
311
|
}) => {
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
heading,
|
|
418
|
-
type,
|
|
419
|
-
size,
|
|
420
|
-
maxwidth: maxWidth,
|
|
421
|
-
arialive: ariaLive,
|
|
422
|
-
icontheme: iconTheme,
|
|
423
|
-
mt,
|
|
424
|
-
mr,
|
|
425
|
-
mb,
|
|
426
|
-
ml,
|
|
427
|
-
testid: testId,
|
|
428
|
-
children
|
|
429
|
-
}
|
|
312
|
+
const _props = icon.transformProps(
|
|
313
|
+
{ type, icontheme: iconTheme, size, arialive: ariaLive, ...rest },
|
|
314
|
+
icon.lowercase
|
|
430
315
|
);
|
|
316
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-callout", { ..._props, children });
|
|
431
317
|
};
|
|
432
318
|
function GoabCheckbox({
|
|
433
|
-
id,
|
|
434
|
-
name,
|
|
435
|
-
testId,
|
|
436
319
|
error,
|
|
437
|
-
disabled,
|
|
438
320
|
checked,
|
|
439
321
|
indeterminate,
|
|
322
|
+
disabled,
|
|
440
323
|
value,
|
|
441
|
-
text,
|
|
442
324
|
description,
|
|
443
325
|
reveal,
|
|
444
|
-
revealAriaLabel,
|
|
445
|
-
maxWidth,
|
|
446
|
-
children,
|
|
447
326
|
onChange,
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
mb,
|
|
452
|
-
ml
|
|
327
|
+
name,
|
|
328
|
+
children,
|
|
329
|
+
...rest
|
|
453
330
|
}) {
|
|
454
331
|
const el = react.useRef(null);
|
|
332
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
455
333
|
react.useEffect(() => {
|
|
456
334
|
if (!el.current) {
|
|
457
335
|
return;
|
|
@@ -459,7 +337,7 @@ function GoabCheckbox({
|
|
|
459
337
|
const current = el.current;
|
|
460
338
|
const listener = (e) => {
|
|
461
339
|
const detail = e.detail;
|
|
462
|
-
onChange == null ? void 0 : onChange(detail);
|
|
340
|
+
onChange == null ? void 0 : onChange({ ...detail, event: e });
|
|
463
341
|
};
|
|
464
342
|
current.addEventListener("_change", listener);
|
|
465
343
|
return () => {
|
|
@@ -469,24 +347,15 @@ function GoabCheckbox({
|
|
|
469
347
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
470
348
|
"goa-checkbox",
|
|
471
349
|
{
|
|
472
|
-
testid: testId,
|
|
473
350
|
ref: el,
|
|
474
|
-
|
|
351
|
+
..._props,
|
|
475
352
|
name,
|
|
476
353
|
error: error ? "true" : void 0,
|
|
477
354
|
checked: checked ? "true" : void 0,
|
|
478
355
|
indeterminate: indeterminate ? "true" : void 0,
|
|
479
356
|
disabled: disabled ? "true" : void 0,
|
|
480
|
-
text,
|
|
481
357
|
value: typeof value === "boolean" ? value ? "true" : void 0 : value,
|
|
482
|
-
arialabel: ariaLabel,
|
|
483
|
-
revealarialabel: revealAriaLabel,
|
|
484
358
|
description: typeof description === "string" ? description : void 0,
|
|
485
|
-
maxwidth: maxWidth,
|
|
486
|
-
mt,
|
|
487
|
-
mr,
|
|
488
|
-
mb,
|
|
489
|
-
ml,
|
|
490
359
|
children: [
|
|
491
360
|
children,
|
|
492
361
|
typeof description !== "string" && description && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "description", children: description }),
|
|
@@ -516,7 +385,7 @@ function GoabCheckboxList({
|
|
|
516
385
|
const listener = (e) => {
|
|
517
386
|
try {
|
|
518
387
|
const detail = e.detail;
|
|
519
|
-
onChange == null ? void 0 : onChange(detail);
|
|
388
|
+
onChange == null ? void 0 : onChange({ ...detail, event: e });
|
|
520
389
|
} catch (error2) {
|
|
521
390
|
console.error("Error handling checkbox list change:", error2);
|
|
522
391
|
}
|
|
@@ -553,26 +422,19 @@ function GoabCheckboxList({
|
|
|
553
422
|
);
|
|
554
423
|
}
|
|
555
424
|
const GoabChip = ({
|
|
556
|
-
leadingIcon,
|
|
557
|
-
iconTheme,
|
|
558
|
-
deletable,
|
|
559
425
|
error,
|
|
560
|
-
|
|
561
|
-
content,
|
|
426
|
+
deletable,
|
|
562
427
|
onClick,
|
|
563
|
-
|
|
564
|
-
mr,
|
|
565
|
-
mb,
|
|
566
|
-
ml,
|
|
567
|
-
testId
|
|
428
|
+
...rest
|
|
568
429
|
}) => {
|
|
569
430
|
const el = react.useRef(null);
|
|
431
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
570
432
|
react.useEffect(() => {
|
|
571
433
|
if (!el.current) return;
|
|
572
434
|
if (!onClick) return;
|
|
573
435
|
const current = el.current;
|
|
574
436
|
const listener = () => {
|
|
575
|
-
onClick();
|
|
437
|
+
onClick == null ? void 0 : onClick();
|
|
576
438
|
};
|
|
577
439
|
current.addEventListener("_click", listener);
|
|
578
440
|
return () => {
|
|
@@ -583,17 +445,9 @@ const GoabChip = ({
|
|
|
583
445
|
"goa-chip",
|
|
584
446
|
{
|
|
585
447
|
ref: el,
|
|
586
|
-
leadingicon: leadingIcon,
|
|
587
|
-
icontheme: iconTheme,
|
|
588
448
|
error: error ? "true" : void 0,
|
|
589
449
|
deletable: deletable ? "true" : void 0,
|
|
590
|
-
|
|
591
|
-
variant,
|
|
592
|
-
mt,
|
|
593
|
-
mr,
|
|
594
|
-
mb,
|
|
595
|
-
ml,
|
|
596
|
-
testid: testId
|
|
450
|
+
..._props
|
|
597
451
|
}
|
|
598
452
|
);
|
|
599
453
|
};
|
|
@@ -618,61 +472,48 @@ const GoabCircularProgress = ({
|
|
|
618
472
|
);
|
|
619
473
|
};
|
|
620
474
|
function GoabContainer({
|
|
621
|
-
accent,
|
|
622
475
|
heading,
|
|
623
476
|
title,
|
|
624
|
-
padding,
|
|
625
|
-
children,
|
|
626
477
|
actions,
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
maxWidth,
|
|
630
|
-
mt,
|
|
631
|
-
mr,
|
|
632
|
-
mb,
|
|
633
|
-
ml,
|
|
634
|
-
testId
|
|
478
|
+
children,
|
|
479
|
+
...rest
|
|
635
480
|
}) {
|
|
481
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
636
482
|
const headingContent = heading || title;
|
|
637
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
638
|
-
"
|
|
483
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("goa-container", { ..._props, children: [
|
|
484
|
+
headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "title", children: headingContent }),
|
|
485
|
+
children,
|
|
486
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children: actions })
|
|
487
|
+
] });
|
|
488
|
+
}
|
|
489
|
+
function GoabDataGrid({
|
|
490
|
+
keyboardIconVisibility = "visible",
|
|
491
|
+
keyboardIconPosition = "left",
|
|
492
|
+
keyboardNav,
|
|
493
|
+
children
|
|
494
|
+
}) {
|
|
495
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
496
|
+
"goa-data-grid",
|
|
639
497
|
{
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
maxwidth: maxWidth,
|
|
645
|
-
mt,
|
|
646
|
-
mr,
|
|
647
|
-
mb,
|
|
648
|
-
ml,
|
|
649
|
-
testid: testId,
|
|
650
|
-
children: [
|
|
651
|
-
headingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "title", children: headingContent }),
|
|
652
|
-
children,
|
|
653
|
-
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children: actions })
|
|
654
|
-
]
|
|
498
|
+
"keyboard-icon-visibility": keyboardIconVisibility,
|
|
499
|
+
"keyboard-icon-position": keyboardIconPosition,
|
|
500
|
+
"keyboard-nav": keyboardNav,
|
|
501
|
+
children
|
|
655
502
|
}
|
|
656
503
|
);
|
|
657
504
|
}
|
|
658
505
|
function GoabDatePicker({
|
|
659
|
-
name,
|
|
660
506
|
value,
|
|
661
507
|
error,
|
|
662
508
|
min,
|
|
663
509
|
max,
|
|
664
|
-
testId,
|
|
665
510
|
disabled,
|
|
666
|
-
type,
|
|
667
|
-
mt,
|
|
668
|
-
mr,
|
|
669
|
-
mb,
|
|
670
|
-
ml,
|
|
671
511
|
relative,
|
|
672
|
-
|
|
673
|
-
|
|
512
|
+
onChange,
|
|
513
|
+
...rest
|
|
674
514
|
}) {
|
|
675
515
|
const ref = react.useRef(null);
|
|
516
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
676
517
|
react.useEffect(() => {
|
|
677
518
|
if (value && typeof value !== "string") {
|
|
678
519
|
console.warn("Using a `Date` type for value is deprecated. Instead use a string of the format `yyyy-mm-dd`");
|
|
@@ -685,7 +526,7 @@ function GoabDatePicker({
|
|
|
685
526
|
const current = ref.current;
|
|
686
527
|
const handleChange = (e) => {
|
|
687
528
|
const detail = e.detail;
|
|
688
|
-
onChange == null ? void 0 : onChange(detail);
|
|
529
|
+
onChange == null ? void 0 : onChange({ ...detail, event: e });
|
|
689
530
|
};
|
|
690
531
|
if (onChange) {
|
|
691
532
|
current.addEventListener("_change", handleChange);
|
|
@@ -696,47 +537,39 @@ function GoabDatePicker({
|
|
|
696
537
|
}
|
|
697
538
|
};
|
|
698
539
|
}, [onChange]);
|
|
699
|
-
const formatValue = (
|
|
700
|
-
if (!
|
|
701
|
-
if (
|
|
702
|
-
return
|
|
540
|
+
const formatValue = (val) => {
|
|
541
|
+
if (!val) return "";
|
|
542
|
+
if (val instanceof Date) {
|
|
543
|
+
return val.toISOString();
|
|
703
544
|
}
|
|
704
|
-
return
|
|
545
|
+
return val;
|
|
705
546
|
};
|
|
706
547
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
707
548
|
"goa-date-picker",
|
|
708
549
|
{
|
|
709
550
|
ref,
|
|
710
|
-
name,
|
|
711
551
|
value: formatValue(value) || void 0,
|
|
712
|
-
type,
|
|
713
552
|
error: error ? "true" : void 0,
|
|
714
553
|
disabled: disabled ? "true" : void 0,
|
|
715
554
|
min: formatValue(min) || void 0,
|
|
716
555
|
max: formatValue(max) || void 0,
|
|
717
|
-
testid: testId,
|
|
718
|
-
mt,
|
|
719
|
-
mr,
|
|
720
|
-
mb,
|
|
721
|
-
ml,
|
|
722
556
|
relative: relative ? "true" : void 0,
|
|
723
|
-
|
|
557
|
+
..._props
|
|
724
558
|
}
|
|
725
559
|
);
|
|
726
560
|
}
|
|
727
|
-
function GoabDetails(
|
|
561
|
+
function GoabDetails({
|
|
562
|
+
open,
|
|
563
|
+
children,
|
|
564
|
+
...rest
|
|
565
|
+
}) {
|
|
566
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
728
567
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
729
568
|
"goa-details",
|
|
730
569
|
{
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
testid: props.testId,
|
|
735
|
-
mt: props.mt,
|
|
736
|
-
mr: props.mr,
|
|
737
|
-
mb: props.mb,
|
|
738
|
-
ml: props.ml,
|
|
739
|
-
children: props.children
|
|
570
|
+
open: open ? "true" : void 0,
|
|
571
|
+
..._props,
|
|
572
|
+
children
|
|
740
573
|
}
|
|
741
574
|
);
|
|
742
575
|
}
|
|
@@ -761,54 +594,51 @@ function stringify(value) {
|
|
|
761
594
|
}
|
|
762
595
|
return JSON.stringify(value);
|
|
763
596
|
}
|
|
764
|
-
function GoabDropdown(
|
|
597
|
+
function GoabDropdown({
|
|
598
|
+
value,
|
|
599
|
+
onChange,
|
|
600
|
+
disabled,
|
|
601
|
+
error,
|
|
602
|
+
filterable,
|
|
603
|
+
multiselect,
|
|
604
|
+
native,
|
|
605
|
+
relative,
|
|
606
|
+
children,
|
|
607
|
+
...rest
|
|
608
|
+
}) {
|
|
765
609
|
const el = react.useRef(null);
|
|
610
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
766
611
|
react.useEffect(() => {
|
|
767
612
|
if (!el.current) {
|
|
768
613
|
return;
|
|
769
614
|
}
|
|
770
615
|
const current = el.current;
|
|
771
616
|
const handler = (e) => {
|
|
772
|
-
var _a;
|
|
773
617
|
const detail = e.detail;
|
|
774
|
-
|
|
618
|
+
onChange == null ? void 0 : onChange({ ...detail, event: e });
|
|
775
619
|
};
|
|
776
|
-
if (
|
|
620
|
+
if (onChange) {
|
|
777
621
|
current.addEventListener("_change", handler);
|
|
778
622
|
}
|
|
779
623
|
return () => {
|
|
780
|
-
if (
|
|
624
|
+
if (onChange) {
|
|
781
625
|
current.removeEventListener("_change", handler);
|
|
782
626
|
}
|
|
783
627
|
};
|
|
784
|
-
}, [el,
|
|
628
|
+
}, [el, onChange]);
|
|
785
629
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
786
630
|
"goa-dropdown",
|
|
787
631
|
{
|
|
788
632
|
ref: el,
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
mb: props.mb,
|
|
799
|
-
ml: props.ml,
|
|
800
|
-
mr: props.mr,
|
|
801
|
-
mt: props.mt,
|
|
802
|
-
multiselect: props.multiselect ? "true" : void 0,
|
|
803
|
-
native: props.native ? "true" : void 0,
|
|
804
|
-
placeholder: props.placeholder,
|
|
805
|
-
testid: props.testId,
|
|
806
|
-
width: props.width,
|
|
807
|
-
maxwidth: props.maxWidth,
|
|
808
|
-
relative: props.relative ? "true" : void 0,
|
|
809
|
-
autocomplete: props.autoComplete,
|
|
810
|
-
id: props.id,
|
|
811
|
-
children: props.children
|
|
633
|
+
value: stringify(value),
|
|
634
|
+
disabled: disabled ? "true" : void 0,
|
|
635
|
+
error: error ? "true" : void 0,
|
|
636
|
+
filterable: filterable ? "true" : void 0,
|
|
637
|
+
multiselect: multiselect ? "true" : void 0,
|
|
638
|
+
native: native ? "true" : void 0,
|
|
639
|
+
relative: relative ? "true" : void 0,
|
|
640
|
+
..._props,
|
|
641
|
+
children
|
|
812
642
|
}
|
|
813
643
|
);
|
|
814
644
|
}
|
|
@@ -837,111 +667,75 @@ function GoabDropdownItem({
|
|
|
837
667
|
);
|
|
838
668
|
}
|
|
839
669
|
function GoabFileUploadCard({
|
|
840
|
-
filename,
|
|
841
|
-
size,
|
|
842
|
-
type,
|
|
843
|
-
progress,
|
|
844
|
-
error,
|
|
845
|
-
testId,
|
|
846
670
|
onDelete,
|
|
847
|
-
onCancel
|
|
671
|
+
onCancel,
|
|
672
|
+
filename,
|
|
673
|
+
...rest
|
|
848
674
|
}) {
|
|
849
675
|
const el = react.useRef(null);
|
|
676
|
+
const _props = icon.transformProps({ filename, ...rest }, icon.lowercase);
|
|
850
677
|
react.useEffect(() => {
|
|
851
678
|
if (!el.current) return;
|
|
852
679
|
const current = el.current;
|
|
853
|
-
const deleteHandler = () => onDelete == null ? void 0 : onDelete({ filename });
|
|
854
|
-
const cancelHandler = () => onCancel == null ? void 0 : onCancel({ filename });
|
|
680
|
+
const deleteHandler = (event) => onDelete == null ? void 0 : onDelete({ filename, event });
|
|
681
|
+
const cancelHandler = (event) => onCancel == null ? void 0 : onCancel({ filename, event });
|
|
855
682
|
current.addEventListener("_delete", deleteHandler);
|
|
856
683
|
current.addEventListener("_cancel", cancelHandler);
|
|
857
684
|
return () => {
|
|
858
685
|
current.removeEventListener("_delete", deleteHandler);
|
|
859
686
|
current.removeEventListener("_cancel", cancelHandler);
|
|
860
687
|
};
|
|
861
|
-
}, [el, onDelete, onCancel]);
|
|
862
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
863
|
-
"goa-file-upload-card",
|
|
864
|
-
{
|
|
865
|
-
ref: el,
|
|
866
|
-
filename,
|
|
867
|
-
size,
|
|
868
|
-
type,
|
|
869
|
-
progress,
|
|
870
|
-
error,
|
|
871
|
-
testid: testId
|
|
872
|
-
}
|
|
873
|
-
);
|
|
688
|
+
}, [el, onDelete, onCancel, filename]);
|
|
689
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-file-upload-card", { ref: el, ..._props });
|
|
874
690
|
}
|
|
875
691
|
function GoabFileUploadInput({
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
maxFileSize,
|
|
879
|
-
testId,
|
|
880
|
-
onSelectFile
|
|
692
|
+
onSelectFile,
|
|
693
|
+
...rest
|
|
881
694
|
}) {
|
|
882
695
|
const el = react.useRef(null);
|
|
696
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
883
697
|
react.useEffect(() => {
|
|
884
698
|
if (!el.current) return;
|
|
885
699
|
const current = el.current;
|
|
886
700
|
const handler = (e) => {
|
|
887
701
|
const detail = e.detail;
|
|
888
|
-
onSelectFile(detail);
|
|
702
|
+
onSelectFile({ ...detail, event: e });
|
|
889
703
|
};
|
|
890
704
|
current.addEventListener("_selectFile", handler);
|
|
891
705
|
return () => {
|
|
892
706
|
current.removeEventListener("_selectFile", handler);
|
|
893
707
|
};
|
|
894
708
|
}, [el, onSelectFile]);
|
|
895
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
896
|
-
"goa-file-upload-input",
|
|
897
|
-
{
|
|
898
|
-
ref: el,
|
|
899
|
-
variant,
|
|
900
|
-
accept,
|
|
901
|
-
maxfilesize: maxFileSize,
|
|
902
|
-
testid: testId
|
|
903
|
-
}
|
|
904
|
-
);
|
|
709
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-file-upload-input", { ref: el, ..._props });
|
|
905
710
|
}
|
|
906
711
|
function GoabAppFooter({
|
|
907
|
-
maxContentWidth,
|
|
908
712
|
children,
|
|
909
|
-
|
|
910
|
-
url
|
|
713
|
+
...rest
|
|
911
714
|
}) {
|
|
912
|
-
|
|
715
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
716
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer", { ..._props, children });
|
|
913
717
|
}
|
|
914
718
|
function GoabAppFooterMetaSection({
|
|
915
|
-
|
|
916
|
-
|
|
719
|
+
children,
|
|
720
|
+
...rest
|
|
917
721
|
}) {
|
|
918
|
-
|
|
722
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
723
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer-meta-section", { slot: "meta", ..._props, children });
|
|
919
724
|
}
|
|
920
725
|
function GoabAppFooterNavSection({
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
testId,
|
|
924
|
-
children
|
|
726
|
+
children,
|
|
727
|
+
...rest
|
|
925
728
|
}) {
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
{
|
|
929
|
-
slot: "nav",
|
|
930
|
-
heading,
|
|
931
|
-
maxcolumncount: maxColumnCount,
|
|
932
|
-
testid: testId,
|
|
933
|
-
children
|
|
934
|
-
}
|
|
935
|
-
);
|
|
729
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
730
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-app-footer-nav-section", { slot: "nav", ..._props, children });
|
|
936
731
|
}
|
|
937
732
|
function GoabFieldset({
|
|
938
|
-
id,
|
|
939
|
-
sectionTitle,
|
|
940
|
-
dispatchOn,
|
|
941
733
|
onContinue,
|
|
942
|
-
children
|
|
734
|
+
children,
|
|
735
|
+
...rest
|
|
943
736
|
}) {
|
|
944
737
|
const ref = react.useRef(null);
|
|
738
|
+
const _props = icon.transformProps(rest, icon.kebab);
|
|
945
739
|
react.useEffect(() => {
|
|
946
740
|
if (!ref.current) return;
|
|
947
741
|
const current = ref.current;
|
|
@@ -958,35 +752,15 @@ function GoabFieldset({
|
|
|
958
752
|
}
|
|
959
753
|
};
|
|
960
754
|
}, [ref, onContinue]);
|
|
961
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
962
|
-
"goa-fieldset",
|
|
963
|
-
{
|
|
964
|
-
ref,
|
|
965
|
-
id,
|
|
966
|
-
"section-title": sectionTitle,
|
|
967
|
-
"dispatch-on": dispatchOn,
|
|
968
|
-
children
|
|
969
|
-
}
|
|
970
|
-
);
|
|
755
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-fieldset", { ref, ..._props, children });
|
|
971
756
|
}
|
|
972
757
|
function GoabPublicFormPage({
|
|
973
|
-
id = "",
|
|
974
|
-
heading = "",
|
|
975
|
-
subHeading = "",
|
|
976
|
-
summaryHeading = "",
|
|
977
|
-
sectionTitle = "",
|
|
978
|
-
backUrl = "",
|
|
979
|
-
type = "step",
|
|
980
|
-
buttonText = "",
|
|
981
|
-
buttonVisibility = "visible",
|
|
982
758
|
onContinue,
|
|
983
759
|
children,
|
|
984
|
-
|
|
985
|
-
mr,
|
|
986
|
-
mb,
|
|
987
|
-
ml
|
|
760
|
+
...rest
|
|
988
761
|
}) {
|
|
989
762
|
const ref = react.useRef(null);
|
|
763
|
+
const _props = icon.transformProps(rest, icon.kebab);
|
|
990
764
|
react.useEffect(() => {
|
|
991
765
|
if (!ref.current) return;
|
|
992
766
|
const current = ref.current;
|
|
@@ -1002,49 +776,28 @@ function GoabPublicFormPage({
|
|
|
1002
776
|
}
|
|
1003
777
|
};
|
|
1004
778
|
}, [ref, onContinue]);
|
|
1005
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1006
|
-
"goa-public-form-page",
|
|
1007
|
-
{
|
|
1008
|
-
ref,
|
|
1009
|
-
id,
|
|
1010
|
-
heading,
|
|
1011
|
-
"sub-heading": subHeading,
|
|
1012
|
-
"section-title": sectionTitle,
|
|
1013
|
-
"back-url": backUrl,
|
|
1014
|
-
type,
|
|
1015
|
-
"button-text": buttonText,
|
|
1016
|
-
"button-visibility": buttonVisibility,
|
|
1017
|
-
"summary-heading": summaryHeading,
|
|
1018
|
-
mt,
|
|
1019
|
-
mr,
|
|
1020
|
-
mb,
|
|
1021
|
-
ml,
|
|
1022
|
-
children
|
|
1023
|
-
}
|
|
1024
|
-
);
|
|
779
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-page", { ref, ..._props, children });
|
|
1025
780
|
}
|
|
1026
781
|
function GoabPublicFormSummary({
|
|
1027
|
-
heading = ""
|
|
782
|
+
heading = "",
|
|
783
|
+
...rest
|
|
1028
784
|
}) {
|
|
1029
|
-
const
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
{
|
|
1033
|
-
ref,
|
|
1034
|
-
heading
|
|
1035
|
-
}
|
|
785
|
+
const _props = icon.transformProps(
|
|
786
|
+
{ heading, ...rest },
|
|
787
|
+
icon.lowercase
|
|
1036
788
|
);
|
|
789
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-summary", { ..._props });
|
|
1037
790
|
}
|
|
1038
791
|
function GoabPublicForm({
|
|
1039
|
-
status = "complete",
|
|
1040
|
-
name,
|
|
1041
792
|
onInit,
|
|
1042
793
|
onComplete,
|
|
1043
794
|
onStateChange,
|
|
1044
|
-
children
|
|
795
|
+
children,
|
|
796
|
+
...rest
|
|
1045
797
|
}) {
|
|
1046
798
|
const ref = react.useRef(null);
|
|
1047
799
|
const initialized = react.useRef(false);
|
|
800
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
1048
801
|
react.useLayoutEffect(() => {
|
|
1049
802
|
if (!ref.current) return;
|
|
1050
803
|
const current = ref.current;
|
|
@@ -1080,15 +833,7 @@ function GoabPublicForm({
|
|
|
1080
833
|
}
|
|
1081
834
|
};
|
|
1082
835
|
}, [onInit, onComplete, onStateChange]);
|
|
1083
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1084
|
-
"goa-public-form",
|
|
1085
|
-
{
|
|
1086
|
-
ref,
|
|
1087
|
-
status,
|
|
1088
|
-
name,
|
|
1089
|
-
children
|
|
1090
|
-
}
|
|
1091
|
-
);
|
|
836
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form", { ref, ..._props, children });
|
|
1092
837
|
}
|
|
1093
838
|
function GoabPublicSubform({
|
|
1094
839
|
id = "",
|
|
@@ -1097,12 +842,13 @@ function GoabPublicSubform({
|
|
|
1097
842
|
onInit,
|
|
1098
843
|
onStateChange,
|
|
1099
844
|
children,
|
|
1100
|
-
|
|
1101
|
-
mr,
|
|
1102
|
-
mb,
|
|
1103
|
-
ml
|
|
845
|
+
...rest
|
|
1104
846
|
}) {
|
|
1105
847
|
const ref = react.useRef(null);
|
|
848
|
+
const _props = icon.transformProps(
|
|
849
|
+
{ id, name, "continue-msg": continueMsg, ...rest },
|
|
850
|
+
icon.kebab
|
|
851
|
+
);
|
|
1106
852
|
react.useEffect(() => {
|
|
1107
853
|
if (!ref.current) return;
|
|
1108
854
|
const current = ref.current;
|
|
@@ -1127,20 +873,7 @@ function GoabPublicSubform({
|
|
|
1127
873
|
}
|
|
1128
874
|
};
|
|
1129
875
|
}, [ref, onInit, onStateChange]);
|
|
1130
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1131
|
-
"goa-public-subform",
|
|
1132
|
-
{
|
|
1133
|
-
ref,
|
|
1134
|
-
id,
|
|
1135
|
-
name,
|
|
1136
|
-
"continue-msg": continueMsg,
|
|
1137
|
-
mt,
|
|
1138
|
-
mr,
|
|
1139
|
-
mb,
|
|
1140
|
-
ml,
|
|
1141
|
-
children
|
|
1142
|
-
}
|
|
1143
|
-
);
|
|
876
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-subform", { ref, ..._props, children });
|
|
1144
877
|
}
|
|
1145
878
|
function GoabPublicSubformIndex({
|
|
1146
879
|
heading = "",
|
|
@@ -1148,86 +881,47 @@ function GoabPublicSubformIndex({
|
|
|
1148
881
|
actionButtonText = "",
|
|
1149
882
|
buttonVisibility = "hidden",
|
|
1150
883
|
children,
|
|
1151
|
-
|
|
1152
|
-
mr,
|
|
1153
|
-
mb,
|
|
1154
|
-
ml
|
|
884
|
+
...rest
|
|
1155
885
|
}) {
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
{
|
|
1160
|
-
ref,
|
|
1161
|
-
heading,
|
|
1162
|
-
"section-title": sectionTitle,
|
|
1163
|
-
"action-button-text": actionButtonText,
|
|
1164
|
-
"button-visibility": buttonVisibility,
|
|
1165
|
-
slot: "subform-index",
|
|
1166
|
-
mt,
|
|
1167
|
-
mr,
|
|
1168
|
-
mb,
|
|
1169
|
-
ml,
|
|
1170
|
-
children
|
|
1171
|
-
}
|
|
886
|
+
const _props = icon.transformProps(
|
|
887
|
+
{ heading, "section-title": sectionTitle, "action-button-text": actionButtonText, "button-visibility": buttonVisibility, ...rest },
|
|
888
|
+
icon.kebab
|
|
1172
889
|
);
|
|
890
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-subform-index", { slot: "subform-index", ..._props, children });
|
|
1173
891
|
}
|
|
1174
|
-
function GoabPublicFormTask({
|
|
1175
|
-
|
|
892
|
+
function GoabPublicFormTask({
|
|
893
|
+
status = "cannot-start",
|
|
894
|
+
children,
|
|
895
|
+
...rest
|
|
896
|
+
}) {
|
|
897
|
+
const _props = icon.transformProps(
|
|
898
|
+
{ status, ...rest },
|
|
899
|
+
icon.lowercase
|
|
900
|
+
);
|
|
901
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-task", { ..._props, children });
|
|
1176
902
|
}
|
|
1177
903
|
function GoabPublicFormTaskList({
|
|
1178
|
-
heading = "",
|
|
1179
904
|
children,
|
|
1180
|
-
|
|
1181
|
-
mr,
|
|
1182
|
-
mb,
|
|
1183
|
-
ml
|
|
905
|
+
...rest
|
|
1184
906
|
}) {
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
{
|
|
1188
|
-
heading,
|
|
1189
|
-
mt,
|
|
1190
|
-
mr,
|
|
1191
|
-
mb,
|
|
1192
|
-
ml,
|
|
1193
|
-
children
|
|
1194
|
-
}
|
|
1195
|
-
);
|
|
907
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
908
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-public-form-task-list", { ..._props, children });
|
|
1196
909
|
}
|
|
1197
910
|
function GoabFormItem({
|
|
1198
|
-
children,
|
|
1199
|
-
helpText,
|
|
1200
911
|
error,
|
|
1201
|
-
|
|
1202
|
-
label,
|
|
1203
|
-
labelSize,
|
|
1204
|
-
maxWidth,
|
|
912
|
+
helpText,
|
|
1205
913
|
publicFormSummaryOrder,
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
mr,
|
|
1209
|
-
mb,
|
|
1210
|
-
ml,
|
|
1211
|
-
testId,
|
|
1212
|
-
id
|
|
914
|
+
children,
|
|
915
|
+
...rest
|
|
1213
916
|
}) {
|
|
917
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
1214
918
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1215
919
|
"goa-form-item",
|
|
1216
920
|
{
|
|
1217
|
-
label,
|
|
1218
|
-
labelsize: labelSize,
|
|
1219
921
|
error: typeof error === "string" ? error : void 0,
|
|
1220
|
-
requirement,
|
|
1221
922
|
helptext: typeof helpText === "string" ? helpText : void 0,
|
|
1222
|
-
maxwidth: maxWidth,
|
|
1223
923
|
"public-form-summary-order": publicFormSummaryOrder,
|
|
1224
|
-
|
|
1225
|
-
mt,
|
|
1226
|
-
mr,
|
|
1227
|
-
mb,
|
|
1228
|
-
ml,
|
|
1229
|
-
testid: testId,
|
|
1230
|
-
id,
|
|
924
|
+
..._props,
|
|
1231
925
|
children: [
|
|
1232
926
|
error && typeof error !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "error", children: error }),
|
|
1233
927
|
helpText && typeof helpText !== "string" && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "helptext", children: helpText }),
|
|
@@ -1332,24 +1026,20 @@ function GoabHeroBannerActions({
|
|
|
1332
1026
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "actions", children });
|
|
1333
1027
|
}
|
|
1334
1028
|
function GoabIconButton({
|
|
1335
|
-
icon: icon2,
|
|
1336
|
-
disabled,
|
|
1337
1029
|
variant = "color",
|
|
1338
|
-
onClick,
|
|
1339
1030
|
size = "medium",
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
testId,
|
|
1343
|
-
children,
|
|
1344
|
-
mt,
|
|
1345
|
-
mr,
|
|
1346
|
-
mb,
|
|
1347
|
-
ml,
|
|
1348
|
-
action,
|
|
1031
|
+
disabled,
|
|
1032
|
+
onClick,
|
|
1349
1033
|
actionArgs,
|
|
1350
|
-
actionArg
|
|
1034
|
+
actionArg,
|
|
1035
|
+
children,
|
|
1036
|
+
...rest
|
|
1351
1037
|
}) {
|
|
1352
1038
|
const ref = react.useRef(null);
|
|
1039
|
+
const _props = icon.transformProps(
|
|
1040
|
+
{ variant, size, ...rest },
|
|
1041
|
+
icon.lowercase
|
|
1042
|
+
);
|
|
1353
1043
|
react.useEffect(() => {
|
|
1354
1044
|
if (!ref.current) {
|
|
1355
1045
|
return;
|
|
@@ -1359,7 +1049,7 @@ function GoabIconButton({
|
|
|
1359
1049
|
}
|
|
1360
1050
|
const current = ref.current;
|
|
1361
1051
|
const listener = () => {
|
|
1362
|
-
onClick();
|
|
1052
|
+
onClick == null ? void 0 : onClick();
|
|
1363
1053
|
};
|
|
1364
1054
|
current.addEventListener("_click", listener);
|
|
1365
1055
|
return () => {
|
|
@@ -1370,20 +1060,10 @@ function GoabIconButton({
|
|
|
1370
1060
|
"goa-icon-button",
|
|
1371
1061
|
{
|
|
1372
1062
|
ref,
|
|
1373
|
-
icon: icon2,
|
|
1374
1063
|
disabled: disabled ? "true" : void 0,
|
|
1375
|
-
variant,
|
|
1376
|
-
size,
|
|
1377
|
-
title,
|
|
1378
|
-
arialabel: ariaLabel,
|
|
1379
|
-
action,
|
|
1380
1064
|
"action-arg": actionArg,
|
|
1381
1065
|
"action-args": JSON.stringify(actionArgs),
|
|
1382
|
-
|
|
1383
|
-
mr,
|
|
1384
|
-
mb,
|
|
1385
|
-
ml,
|
|
1386
|
-
testid: testId,
|
|
1066
|
+
..._props,
|
|
1387
1067
|
children
|
|
1388
1068
|
}
|
|
1389
1069
|
);
|
|
@@ -3059,45 +2739,23 @@ function validateTimezone(_hours, minutes) {
|
|
|
3059
2739
|
return minutes >= 0 && minutes <= 59;
|
|
3060
2740
|
}
|
|
3061
2741
|
function GoabInput({
|
|
3062
|
-
id,
|
|
3063
|
-
debounce,
|
|
3064
|
-
name,
|
|
3065
|
-
type,
|
|
3066
|
-
autoCapitalize,
|
|
3067
|
-
autoComplete,
|
|
3068
|
-
leadingIcon,
|
|
3069
|
-
trailingIcon,
|
|
3070
2742
|
variant = "goa",
|
|
2743
|
+
textAlign = "left",
|
|
3071
2744
|
focused,
|
|
3072
2745
|
disabled,
|
|
3073
2746
|
readonly,
|
|
3074
|
-
value,
|
|
3075
|
-
placeholder,
|
|
3076
2747
|
error,
|
|
3077
|
-
width,
|
|
3078
|
-
testId,
|
|
3079
|
-
min,
|
|
3080
|
-
max,
|
|
3081
|
-
step,
|
|
3082
|
-
prefix,
|
|
3083
|
-
suffix,
|
|
3084
|
-
ariaLabel,
|
|
3085
|
-
mt,
|
|
3086
|
-
mr,
|
|
3087
|
-
mb,
|
|
3088
|
-
ml,
|
|
3089
2748
|
leadingContent,
|
|
3090
2749
|
trailingContent,
|
|
3091
|
-
maxLength,
|
|
3092
|
-
trailingIconAriaLabel,
|
|
3093
|
-
textAlign = "left",
|
|
3094
2750
|
onTrailingIconClick,
|
|
3095
2751
|
onChange,
|
|
3096
2752
|
onFocus,
|
|
3097
2753
|
onBlur,
|
|
3098
|
-
onKeyPress
|
|
2754
|
+
onKeyPress,
|
|
2755
|
+
...rest
|
|
3099
2756
|
}) {
|
|
3100
2757
|
const ref = react.useRef(null);
|
|
2758
|
+
const _props = icon.transformProps({ variant, textalign: textAlign, ...rest }, icon.lowercase);
|
|
3101
2759
|
react.useEffect(() => {
|
|
3102
2760
|
if (!ref.current) {
|
|
3103
2761
|
return;
|
|
@@ -3105,22 +2763,22 @@ function GoabInput({
|
|
|
3105
2763
|
const current = ref.current;
|
|
3106
2764
|
const changeListener = (e) => {
|
|
3107
2765
|
const detail = e.detail;
|
|
3108
|
-
onChange == null ? void 0 : onChange(detail);
|
|
2766
|
+
onChange == null ? void 0 : onChange({ ...detail, event: e });
|
|
3109
2767
|
};
|
|
3110
2768
|
const clickListener = () => {
|
|
3111
2769
|
onTrailingIconClick == null ? void 0 : onTrailingIconClick();
|
|
3112
2770
|
};
|
|
3113
2771
|
const focusListener = (e) => {
|
|
3114
2772
|
const detail = e.detail;
|
|
3115
|
-
onFocus == null ? void 0 : onFocus(detail);
|
|
2773
|
+
onFocus == null ? void 0 : onFocus({ ...detail, event: e });
|
|
3116
2774
|
};
|
|
3117
2775
|
const blurListener = (e) => {
|
|
3118
2776
|
const detail = e.detail;
|
|
3119
|
-
onBlur == null ? void 0 : onBlur(detail);
|
|
2777
|
+
onBlur == null ? void 0 : onBlur({ ...detail, event: e });
|
|
3120
2778
|
};
|
|
3121
2779
|
const keypressListener = (e) => {
|
|
3122
2780
|
const detail = e.detail;
|
|
3123
|
-
onKeyPress == null ? void 0 : onKeyPress(detail);
|
|
2781
|
+
onKeyPress == null ? void 0 : onKeyPress({ ...detail, event: e });
|
|
3124
2782
|
};
|
|
3125
2783
|
current.addEventListener("_change", changeListener);
|
|
3126
2784
|
current.addEventListener("_trailingIconClick", clickListener);
|
|
@@ -3139,37 +2797,12 @@ function GoabInput({
|
|
|
3139
2797
|
"goa-input",
|
|
3140
2798
|
{
|
|
3141
2799
|
ref,
|
|
3142
|
-
|
|
2800
|
+
..._props,
|
|
3143
2801
|
focused: focused ? "true" : void 0,
|
|
3144
|
-
type,
|
|
3145
|
-
name,
|
|
3146
|
-
autocapitalize: autoCapitalize,
|
|
3147
|
-
autocomplete: autoComplete,
|
|
3148
|
-
id,
|
|
3149
|
-
leadingicon: leadingIcon,
|
|
3150
|
-
trailingicon: trailingIcon,
|
|
3151
|
-
variant,
|
|
3152
2802
|
disabled: disabled ? "true" : void 0,
|
|
3153
2803
|
readonly: readonly ? "true" : void 0,
|
|
3154
|
-
placeholder,
|
|
3155
2804
|
error: error ? "true" : void 0,
|
|
3156
|
-
testid: testId,
|
|
3157
|
-
value,
|
|
3158
|
-
width,
|
|
3159
|
-
min,
|
|
3160
|
-
max,
|
|
3161
|
-
step,
|
|
3162
|
-
maxlength: maxLength,
|
|
3163
|
-
prefix,
|
|
3164
|
-
suffix,
|
|
3165
|
-
arialabel: ariaLabel,
|
|
3166
|
-
mt,
|
|
3167
|
-
mr,
|
|
3168
|
-
mb,
|
|
3169
|
-
ml,
|
|
3170
2805
|
handletrailingiconclick: onTrailingIconClick ? "true" : "false",
|
|
3171
|
-
trailingiconarialabel: trailingIconAriaLabel,
|
|
3172
|
-
textalign: textAlign,
|
|
3173
2806
|
children: [
|
|
3174
2807
|
leadingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "leadingContent", children: leadingContent }),
|
|
3175
2808
|
trailingContent && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "trailingContent", children: trailingContent })
|
|
@@ -3178,28 +2811,28 @@ function GoabInput({
|
|
|
3178
2811
|
);
|
|
3179
2812
|
}
|
|
3180
2813
|
const onDateChangeHandler = (onChange) => {
|
|
3181
|
-
return ({ name, value }) => {
|
|
2814
|
+
return ({ name, value, event }) => {
|
|
3182
2815
|
if (!value) {
|
|
3183
|
-
onChange == null ? void 0 : onChange({ name, value: "" });
|
|
2816
|
+
onChange == null ? void 0 : onChange({ name, value: "", event });
|
|
3184
2817
|
return;
|
|
3185
2818
|
}
|
|
3186
2819
|
if (typeof value === "string" && isValid(new Date(value))) {
|
|
3187
|
-
onChange == null ? void 0 : onChange({ name, value: parseISO(value) });
|
|
2820
|
+
onChange == null ? void 0 : onChange({ name, value: parseISO(value), event });
|
|
3188
2821
|
return;
|
|
3189
2822
|
}
|
|
3190
2823
|
if (isValid(value)) {
|
|
3191
|
-
onChange == null ? void 0 : onChange({ name, value });
|
|
2824
|
+
onChange == null ? void 0 : onChange({ name, value, event });
|
|
3192
2825
|
return;
|
|
3193
2826
|
}
|
|
3194
2827
|
};
|
|
3195
2828
|
};
|
|
3196
2829
|
const onTimeChangeHandler = (onChange) => {
|
|
3197
|
-
return ({ name, value }) => {
|
|
2830
|
+
return ({ name, value, event }) => {
|
|
3198
2831
|
if (!value) {
|
|
3199
|
-
onChange == null ? void 0 : onChange({ name, value: "" });
|
|
2832
|
+
onChange == null ? void 0 : onChange({ name, value: "", event });
|
|
3200
2833
|
return;
|
|
3201
2834
|
}
|
|
3202
|
-
onChange == null ? void 0 : onChange({ name, value });
|
|
2835
|
+
onChange == null ? void 0 : onChange({ name, value, event });
|
|
3203
2836
|
};
|
|
3204
2837
|
};
|
|
3205
2838
|
function toString(value, tmpl = "yyyy-MM-dd") {
|
|
@@ -3291,7 +2924,11 @@ function GoabInputFile(props) {
|
|
|
3291
2924
|
type: "file",
|
|
3292
2925
|
onChange: (e) => {
|
|
3293
2926
|
var _a;
|
|
3294
|
-
return (_a = props.onChange) == null ? void 0 : _a.call(props, {
|
|
2927
|
+
return (_a = props.onChange) == null ? void 0 : _a.call(props, {
|
|
2928
|
+
name: e.target.name,
|
|
2929
|
+
value: e.target.value,
|
|
2930
|
+
event: e.nativeEvent
|
|
2931
|
+
});
|
|
3295
2932
|
},
|
|
3296
2933
|
style: { backgroundColor: "revert" }
|
|
3297
2934
|
}
|
|
@@ -3307,21 +2944,21 @@ function GoabInputNumber({
|
|
|
3307
2944
|
textAlign = "right",
|
|
3308
2945
|
...props
|
|
3309
2946
|
}) {
|
|
3310
|
-
const onNumberChange = ({ name, value: value2 }) => {
|
|
2947
|
+
const onNumberChange = ({ name, value: value2, event }) => {
|
|
3311
2948
|
var _a;
|
|
3312
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2) });
|
|
2949
|
+
(_a = props.onChange) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), event });
|
|
3313
2950
|
};
|
|
3314
|
-
const onFocus = ({ name, value: value2 }) => {
|
|
2951
|
+
const onFocus = ({ name, value: value2, event }) => {
|
|
3315
2952
|
var _a;
|
|
3316
|
-
(_a = props.onFocus) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2) });
|
|
2953
|
+
(_a = props.onFocus) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), event });
|
|
3317
2954
|
};
|
|
3318
|
-
const onBlur = ({ name, value: value2 }) => {
|
|
2955
|
+
const onBlur = ({ name, value: value2, event }) => {
|
|
3319
2956
|
var _a;
|
|
3320
|
-
(_a = props.onBlur) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2) });
|
|
2957
|
+
(_a = props.onBlur) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), event });
|
|
3321
2958
|
};
|
|
3322
|
-
const onKeyPress = ({ name, value: value2, key }) => {
|
|
2959
|
+
const onKeyPress = ({ name, value: value2, key, event }) => {
|
|
3323
2960
|
var _a;
|
|
3324
|
-
(_a = props.onKeyPress) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), key: parseInt(key) });
|
|
2961
|
+
(_a = props.onKeyPress) == null ? void 0 : _a.call(props, { name, value: parseFloat(value2), key: parseInt(key), event });
|
|
3325
2962
|
};
|
|
3326
2963
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3327
2964
|
GoabInput,
|
|
@@ -3360,49 +2997,46 @@ const GoabLinearProgress = ({
|
|
|
3360
2997
|
}
|
|
3361
2998
|
);
|
|
3362
2999
|
};
|
|
3363
|
-
function GoabLink(
|
|
3000
|
+
function GoabLink({
|
|
3001
|
+
actionArgs,
|
|
3002
|
+
actionArg,
|
|
3003
|
+
children,
|
|
3004
|
+
...rest
|
|
3005
|
+
}) {
|
|
3006
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
3364
3007
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3365
3008
|
"goa-link",
|
|
3366
3009
|
{
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
"action-args": JSON.stringify(props.actionArgs),
|
|
3372
|
-
testid: props.testId,
|
|
3373
|
-
mt: props.mt,
|
|
3374
|
-
mb: props.mb,
|
|
3375
|
-
ml: props.ml,
|
|
3376
|
-
mr: props.mr,
|
|
3377
|
-
children: props.children
|
|
3010
|
+
"action-arg": actionArg,
|
|
3011
|
+
"action-args": JSON.stringify(actionArgs),
|
|
3012
|
+
..._props,
|
|
3013
|
+
children
|
|
3378
3014
|
}
|
|
3379
3015
|
);
|
|
3380
3016
|
}
|
|
3381
|
-
function GoALinkButton({
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
mb: props.mb,
|
|
3390
|
-
ml: props.ml,
|
|
3391
|
-
mr: props.mr,
|
|
3392
|
-
children: props.children
|
|
3393
|
-
}
|
|
3017
|
+
function GoALinkButton({
|
|
3018
|
+
type = "primary",
|
|
3019
|
+
children,
|
|
3020
|
+
...rest
|
|
3021
|
+
}) {
|
|
3022
|
+
const _props = icon.transformProps(
|
|
3023
|
+
{ type, ...rest },
|
|
3024
|
+
icon.lowercase
|
|
3394
3025
|
);
|
|
3026
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-link-button", { ..._props, children });
|
|
3395
3027
|
}
|
|
3396
3028
|
function GoabMenuButton({
|
|
3397
|
-
text,
|
|
3398
3029
|
type = "primary",
|
|
3399
|
-
leadingIcon,
|
|
3400
|
-
maxWidth,
|
|
3401
3030
|
testId,
|
|
3402
3031
|
onAction,
|
|
3403
|
-
children
|
|
3032
|
+
children,
|
|
3033
|
+
...rest
|
|
3404
3034
|
}) {
|
|
3405
3035
|
const el = react.useRef(null);
|
|
3036
|
+
const _props = icon.transformProps(
|
|
3037
|
+
{ type, testid: testId, ...rest },
|
|
3038
|
+
icon.kebab
|
|
3039
|
+
);
|
|
3406
3040
|
react.useEffect(() => {
|
|
3407
3041
|
if (!el.current) {
|
|
3408
3042
|
return;
|
|
@@ -3413,17 +3047,18 @@ function GoabMenuButton({
|
|
|
3413
3047
|
const current = el.current;
|
|
3414
3048
|
const listener = (e) => {
|
|
3415
3049
|
const detail = e.detail;
|
|
3416
|
-
onAction(detail);
|
|
3050
|
+
onAction == null ? void 0 : onAction(detail);
|
|
3417
3051
|
};
|
|
3418
3052
|
current.addEventListener("_action", listener);
|
|
3419
3053
|
return () => {
|
|
3420
3054
|
current.removeEventListener("_action", listener);
|
|
3421
3055
|
};
|
|
3422
3056
|
}, [el, onAction]);
|
|
3423
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-button", { ref: el,
|
|
3057
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-button", { ..._props, ref: el, children });
|
|
3424
3058
|
}
|
|
3425
|
-
function GoabMenuAction(
|
|
3426
|
-
|
|
3059
|
+
function GoabMenuAction(props) {
|
|
3060
|
+
const _props = icon.transformProps(props, icon.lowercase);
|
|
3061
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-menu-action", { ..._props });
|
|
3427
3062
|
}
|
|
3428
3063
|
function GoabMicrositeHeader({
|
|
3429
3064
|
type,
|
|
@@ -3599,31 +3234,18 @@ function GoabPagination({ onChange, ...props }) {
|
|
|
3599
3234
|
}
|
|
3600
3235
|
function GoabPopover({
|
|
3601
3236
|
target,
|
|
3602
|
-
testId,
|
|
3603
|
-
maxWidth,
|
|
3604
|
-
minWidth,
|
|
3605
3237
|
padded,
|
|
3606
|
-
position,
|
|
3607
3238
|
relative,
|
|
3608
3239
|
children,
|
|
3609
|
-
|
|
3610
|
-
mr,
|
|
3611
|
-
mb,
|
|
3612
|
-
ml
|
|
3240
|
+
...rest
|
|
3613
3241
|
}) {
|
|
3242
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
3614
3243
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3615
3244
|
"goa-popover",
|
|
3616
3245
|
{
|
|
3617
|
-
testid: testId,
|
|
3618
|
-
maxwidth: maxWidth,
|
|
3619
|
-
minwidth: minWidth,
|
|
3620
3246
|
padded: typeof padded === "undefined" ? void 0 : padded ? "true" : "false",
|
|
3621
|
-
position,
|
|
3622
3247
|
relative: relative ? "true" : void 0,
|
|
3623
|
-
|
|
3624
|
-
mr,
|
|
3625
|
-
mb,
|
|
3626
|
-
ml,
|
|
3248
|
+
..._props,
|
|
3627
3249
|
children: [
|
|
3628
3250
|
children,
|
|
3629
3251
|
target && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "target", children: target })
|
|
@@ -3675,27 +3297,20 @@ function GoabRadioItem({
|
|
|
3675
3297
|
);
|
|
3676
3298
|
}
|
|
3677
3299
|
function GoabRadioGroup({
|
|
3678
|
-
name,
|
|
3679
|
-
value,
|
|
3680
|
-
children,
|
|
3681
|
-
orientation,
|
|
3682
3300
|
disabled,
|
|
3683
3301
|
error,
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
mr,
|
|
3689
|
-
mb,
|
|
3690
|
-
ml,
|
|
3691
|
-
onChange
|
|
3302
|
+
onChange,
|
|
3303
|
+
name,
|
|
3304
|
+
children,
|
|
3305
|
+
...rest
|
|
3692
3306
|
}) {
|
|
3693
3307
|
const el = react.useRef(null);
|
|
3308
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
3694
3309
|
react.useEffect(() => {
|
|
3695
3310
|
if (!el.current) return;
|
|
3696
3311
|
const listener = (e) => {
|
|
3697
3312
|
const detail = e.detail;
|
|
3698
|
-
onChange == null ? void 0 : onChange(detail);
|
|
3313
|
+
onChange == null ? void 0 : onChange({ ...detail, event: e });
|
|
3699
3314
|
};
|
|
3700
3315
|
const currentEl = el.current;
|
|
3701
3316
|
if (onChange) {
|
|
@@ -3710,19 +3325,11 @@ function GoabRadioGroup({
|
|
|
3710
3325
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3711
3326
|
"goa-radio-group",
|
|
3712
3327
|
{
|
|
3713
|
-
testid: testId,
|
|
3714
3328
|
ref: el,
|
|
3715
|
-
|
|
3329
|
+
..._props,
|
|
3716
3330
|
name,
|
|
3717
|
-
value,
|
|
3718
|
-
orientation,
|
|
3719
3331
|
disabled: disabled ? "true" : void 0,
|
|
3720
3332
|
error: error ? "true" : void 0,
|
|
3721
|
-
arialabel: ariaLabel,
|
|
3722
|
-
mt,
|
|
3723
|
-
mr,
|
|
3724
|
-
mb,
|
|
3725
|
-
ml,
|
|
3726
3333
|
children
|
|
3727
3334
|
}
|
|
3728
3335
|
);
|
|
@@ -3837,16 +3444,17 @@ function GoabTable({ onSort, ...props }) {
|
|
|
3837
3444
|
);
|
|
3838
3445
|
}
|
|
3839
3446
|
function GoabTableSortHeader({
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
children
|
|
3447
|
+
children,
|
|
3448
|
+
...rest
|
|
3843
3449
|
}) {
|
|
3844
|
-
|
|
3450
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
3451
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-table-sort-header", { ..._props, children });
|
|
3845
3452
|
}
|
|
3846
3453
|
function GoabTabs({
|
|
3847
3454
|
initialTab,
|
|
3848
3455
|
children,
|
|
3849
3456
|
testId,
|
|
3457
|
+
variant,
|
|
3850
3458
|
onChange
|
|
3851
3459
|
}) {
|
|
3852
3460
|
const ref = react.useRef(null);
|
|
@@ -3863,10 +3471,10 @@ function GoabTabs({
|
|
|
3863
3471
|
};
|
|
3864
3472
|
}
|
|
3865
3473
|
}, [onChange]);
|
|
3866
|
-
return /* @__PURE__ */ jsxRuntime.jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, children });
|
|
3474
|
+
return /* @__PURE__ */ jsxRuntime.jsx("goa-tabs", { ref, initialtab: initialTab, testid: testId, variant, children });
|
|
3867
3475
|
}
|
|
3868
|
-
function GoabTab({ heading, children }) {
|
|
3869
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("goa-tab", { children: [
|
|
3476
|
+
function GoabTab({ heading, disabled, children }) {
|
|
3477
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("goa-tab", { disabled: disabled ? "true" : void 0, children: [
|
|
3870
3478
|
heading && /* @__PURE__ */ jsxRuntime.jsx("span", { slot: "heading", children: heading }),
|
|
3871
3479
|
children
|
|
3872
3480
|
] });
|
|
@@ -3874,60 +3482,50 @@ function GoabTab({ heading, children }) {
|
|
|
3874
3482
|
const GoabTemporaryNotificationCtrl = ({
|
|
3875
3483
|
verticalPosition = "bottom",
|
|
3876
3484
|
horizontalPosition = "center",
|
|
3877
|
-
testId
|
|
3485
|
+
testId,
|
|
3486
|
+
...rest
|
|
3878
3487
|
}) => {
|
|
3879
3488
|
const el = react.useRef(null);
|
|
3489
|
+
const _props = icon.transformProps(
|
|
3490
|
+
{ "vertical-position": verticalPosition, "horizontal-position": horizontalPosition, ...rest },
|
|
3491
|
+
icon.kebab
|
|
3492
|
+
);
|
|
3880
3493
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3881
3494
|
"goa-temp-notification-ctrl",
|
|
3882
3495
|
{
|
|
3883
3496
|
ref: el,
|
|
3884
|
-
|
|
3885
|
-
"horizontal-position": horizontalPosition,
|
|
3497
|
+
..._props,
|
|
3886
3498
|
testid: testId
|
|
3887
3499
|
}
|
|
3888
3500
|
);
|
|
3889
3501
|
};
|
|
3890
|
-
function GoabText(
|
|
3502
|
+
function GoabText({
|
|
3503
|
+
as,
|
|
3504
|
+
tag,
|
|
3505
|
+
children,
|
|
3506
|
+
...rest
|
|
3507
|
+
}) {
|
|
3508
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
3891
3509
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3892
3510
|
"goa-text",
|
|
3893
3511
|
{
|
|
3894
|
-
as:
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
color: props.color,
|
|
3898
|
-
id: props.id,
|
|
3899
|
-
mt: props.mt,
|
|
3900
|
-
mb: props.mb,
|
|
3901
|
-
ml: props.ml,
|
|
3902
|
-
mr: props.mr,
|
|
3903
|
-
children: props.children
|
|
3512
|
+
as: tag || as,
|
|
3513
|
+
..._props,
|
|
3514
|
+
children
|
|
3904
3515
|
}
|
|
3905
3516
|
);
|
|
3906
3517
|
}
|
|
3907
3518
|
function GoabTextArea({
|
|
3908
|
-
name,
|
|
3909
|
-
value,
|
|
3910
|
-
placeholder,
|
|
3911
|
-
rows,
|
|
3912
3519
|
readOnly,
|
|
3913
3520
|
disabled,
|
|
3914
|
-
countBy,
|
|
3915
|
-
maxCount,
|
|
3916
|
-
width,
|
|
3917
|
-
maxWidth,
|
|
3918
|
-
testId,
|
|
3919
3521
|
error,
|
|
3920
|
-
ariaLabel,
|
|
3921
|
-
mt,
|
|
3922
|
-
mr,
|
|
3923
|
-
mb,
|
|
3924
|
-
ml,
|
|
3925
|
-
autoComplete,
|
|
3926
3522
|
onChange,
|
|
3927
3523
|
onKeyPress,
|
|
3928
|
-
onBlur
|
|
3524
|
+
onBlur,
|
|
3525
|
+
...rest
|
|
3929
3526
|
}) {
|
|
3930
3527
|
const el = react.useRef(null);
|
|
3528
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
3931
3529
|
react.useEffect(() => {
|
|
3932
3530
|
if (!el.current) {
|
|
3933
3531
|
return;
|
|
@@ -3935,15 +3533,15 @@ function GoabTextArea({
|
|
|
3935
3533
|
const current = el.current;
|
|
3936
3534
|
const changeListener = (e) => {
|
|
3937
3535
|
const detail = e.detail;
|
|
3938
|
-
onChange == null ? void 0 : onChange(detail);
|
|
3536
|
+
onChange == null ? void 0 : onChange({ ...detail, event: e });
|
|
3939
3537
|
};
|
|
3940
3538
|
const keypressListener = (e) => {
|
|
3941
3539
|
const detail = e.detail;
|
|
3942
|
-
onKeyPress == null ? void 0 : onKeyPress(detail);
|
|
3540
|
+
onKeyPress == null ? void 0 : onKeyPress({ ...detail, event: e });
|
|
3943
3541
|
};
|
|
3944
3542
|
const blurListener = (e) => {
|
|
3945
3543
|
const detail = e.detail;
|
|
3946
|
-
onBlur == null ? void 0 : onBlur(detail);
|
|
3544
|
+
onBlur == null ? void 0 : onBlur({ ...detail, event: e });
|
|
3947
3545
|
};
|
|
3948
3546
|
current.addEventListener("_change", changeListener);
|
|
3949
3547
|
current.addEventListener("_keyPress", keypressListener);
|
|
@@ -3958,24 +3556,10 @@ function GoabTextArea({
|
|
|
3958
3556
|
"goa-textarea",
|
|
3959
3557
|
{
|
|
3960
3558
|
ref: el,
|
|
3961
|
-
name,
|
|
3962
|
-
placeholder,
|
|
3963
|
-
value,
|
|
3964
|
-
rows,
|
|
3965
3559
|
readOnly: readOnly ? "true" : void 0,
|
|
3966
3560
|
disabled: disabled ? "true" : void 0,
|
|
3967
|
-
countby: countBy,
|
|
3968
|
-
maxcount: maxCount,
|
|
3969
|
-
width,
|
|
3970
|
-
maxwidth: maxWidth,
|
|
3971
3561
|
error: error ? "true" : void 0,
|
|
3972
|
-
|
|
3973
|
-
arialabel: ariaLabel,
|
|
3974
|
-
mt,
|
|
3975
|
-
mr,
|
|
3976
|
-
mb,
|
|
3977
|
-
ml,
|
|
3978
|
-
autocomplete: autoComplete
|
|
3562
|
+
..._props
|
|
3979
3563
|
}
|
|
3980
3564
|
);
|
|
3981
3565
|
}
|
|
@@ -3997,23 +3581,21 @@ function GoabThreeColumnLayout(props) {
|
|
|
3997
3581
|
}
|
|
3998
3582
|
);
|
|
3999
3583
|
}
|
|
4000
|
-
function GoabTooltip(
|
|
4001
|
-
|
|
3584
|
+
function GoabTooltip({
|
|
3585
|
+
content,
|
|
3586
|
+
children,
|
|
3587
|
+
...rest
|
|
3588
|
+
}) {
|
|
3589
|
+
const _props = icon.transformProps(rest, icon.lowercase);
|
|
3590
|
+
const isStringContent = typeof content === "string";
|
|
4002
3591
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4003
3592
|
"goa-tooltip",
|
|
4004
3593
|
{
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
halign: props.hAlign,
|
|
4008
|
-
testid: props.testId,
|
|
4009
|
-
maxwidth: props.maxWidth,
|
|
4010
|
-
mt: props.mt,
|
|
4011
|
-
mr: props.mr,
|
|
4012
|
-
mb: props.mb,
|
|
4013
|
-
ml: props.ml,
|
|
3594
|
+
content: isStringContent ? content : void 0,
|
|
3595
|
+
..._props,
|
|
4014
3596
|
children: [
|
|
4015
|
-
!isStringContent &&
|
|
4016
|
-
|
|
3597
|
+
!isStringContent && content && /* @__PURE__ */ jsxRuntime.jsx("div", { slot: "content", children: content }),
|
|
3598
|
+
children
|
|
4017
3599
|
]
|
|
4018
3600
|
}
|
|
4019
3601
|
);
|
|
@@ -4036,15 +3618,14 @@ function GoabTwoColumnLayout(props) {
|
|
|
4036
3618
|
const GoabFilterChip = ({
|
|
4037
3619
|
iconTheme = "outline",
|
|
4038
3620
|
error,
|
|
4039
|
-
content,
|
|
4040
3621
|
onClick,
|
|
4041
|
-
|
|
4042
|
-
mr,
|
|
4043
|
-
mb,
|
|
4044
|
-
ml,
|
|
4045
|
-
testId
|
|
3622
|
+
...rest
|
|
4046
3623
|
}) => {
|
|
4047
3624
|
const el = react.useRef(null);
|
|
3625
|
+
const _props = icon.transformProps(
|
|
3626
|
+
{ icontheme: iconTheme, ...rest },
|
|
3627
|
+
icon.lowercase
|
|
3628
|
+
);
|
|
4048
3629
|
react.useEffect(() => {
|
|
4049
3630
|
if (!el.current) return;
|
|
4050
3631
|
if (!onClick) return;
|
|
@@ -4058,14 +3639,8 @@ const GoabFilterChip = ({
|
|
|
4058
3639
|
"goa-filter-chip",
|
|
4059
3640
|
{
|
|
4060
3641
|
ref: el,
|
|
4061
|
-
icontheme: iconTheme,
|
|
4062
3642
|
error: error ? "true" : void 0,
|
|
4063
|
-
|
|
4064
|
-
mt,
|
|
4065
|
-
mr,
|
|
4066
|
-
mb,
|
|
4067
|
-
ml,
|
|
4068
|
-
testid: testId
|
|
3643
|
+
..._props
|
|
4069
3644
|
}
|
|
4070
3645
|
);
|
|
4071
3646
|
};
|
|
@@ -4495,6 +4070,7 @@ exports.GoabCheckboxList = GoabCheckboxList;
|
|
|
4495
4070
|
exports.GoabChip = GoabChip;
|
|
4496
4071
|
exports.GoabCircularProgress = GoabCircularProgress;
|
|
4497
4072
|
exports.GoabContainer = GoabContainer;
|
|
4073
|
+
exports.GoabDataGrid = GoabDataGrid;
|
|
4498
4074
|
exports.GoabDatePicker = GoabDatePicker;
|
|
4499
4075
|
exports.GoabDetails = GoabDetails;
|
|
4500
4076
|
exports.GoabDivider = GoabDivider;
|