@rws-aoa/react-library 7.0.1 → 7.1.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.
Files changed (30) hide show
  1. package/dist/chunks/FieldError.DXcLGJ_k.js +170 -0
  2. package/dist/chunks/FieldError.DXcLGJ_k.js.map +1 -0
  3. package/dist/chunks/compiler-runtime.hDcrsMwn.js.map +1 -1
  4. package/dist/chunks/lodash.CA_K01A9.js.map +1 -1
  5. package/dist/components/atoms/_menu/menu-item/MenuItem.d.ts +2 -2
  6. package/dist/components/atoms/_menu/menu-item/MenuItem.d.ts.map +1 -1
  7. package/dist/components/atoms/_menu/menu-item/MenuItem.js +4 -4
  8. package/dist/components/atoms/_menu/menu-item/MenuItem.js.map +1 -1
  9. package/dist/components/atoms/_menu/user-menu/UserMenu.js.map +1 -1
  10. package/dist/components/atoms/icon-button/IconButton.js.map +1 -1
  11. package/dist/components/atoms/table/Table.d.ts +1 -1
  12. package/dist/components/atoms/table/Table.d.ts.map +1 -1
  13. package/dist/components/atoms/table/Table.js.map +1 -1
  14. package/dist/components/atoms/table/_QuickSearchToolbar.js +1474 -1403
  15. package/dist/components/atoms/table/_QuickSearchToolbar.js.map +1 -1
  16. package/dist/components/molecules/field-error/FieldError.js +1 -1
  17. package/dist/components/molecules/file-dropzone/FileDropzone.js.map +1 -1
  18. package/dist/components/molecules/form-error/FormError.js +1 -1
  19. package/dist/components/molecules/form-modal/FormModal.d.ts.map +1 -1
  20. package/dist/components/molecules/form-modal/FormModal.js +1 -1
  21. package/dist/components/molecules/navigation-bar/NavigationBar.d.ts.map +1 -1
  22. package/dist/components/molecules/navigation-bar/NavigationBar.js +42 -45
  23. package/dist/components/molecules/navigation-bar/NavigationBar.js.map +1 -1
  24. package/dist/contexts/TanstackFormContext.d.ts +9 -15
  25. package/dist/contexts/TanstackFormContext.d.ts.map +1 -1
  26. package/dist/contexts/TanstackFormContext.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/package.json +32 -32
  29. package/dist/chunks/FieldError.CCQnjdMd.js +0 -161
  30. package/dist/chunks/FieldError.CCQnjdMd.js.map +0 -1
@@ -1,161 +0,0 @@
1
- import { jsx as n, jsxs as N } from "react/jsx-runtime";
2
- import { c as R } from "./compiler-runtime.hDcrsMwn.js";
3
- import { createFormHookContexts as K, createFormHook as O } from "@tanstack/react-form";
4
- import { AoaNotification as P } from "../components/atoms/notification/Notification.js";
5
- import { DialogTitle as U, DialogContent as V, Dialog as X, DialogActions as Y } from "@mui/material";
6
- import { l as Z } from "./lodash.CA_K01A9.js";
7
- import { AoaButton as W } from "../components/atoms/button/Button.js";
8
- import { AoaModalCloseButton as tt } from "../components/molecules/modal-close-button/ModalCloseButton.js";
9
- function et(l) {
10
- const t = R.c(5), {
11
- "data-qa": s
12
- } = l, r = I();
13
- let a;
14
- t[0] !== s ? (a = (i) => {
15
- if (i.length) {
16
- const e = i.at(0);
17
- if (typeof e == "string")
18
- return /* @__PURE__ */ n(P, { "data-qa": s ?? "form-error", message: e, severity: "error" });
19
- if (e && typeof e == "object") {
20
- const m = ["error", "info", "success", "warning"].includes(e.level) ? e.level : "error";
21
- return /* @__PURE__ */ n(P, { "data-qa": s ?? "form-error", message: e.message, severity: m });
22
- }
23
- }
24
- return null;
25
- }, t[0] = s, t[1] = a) : a = t[1];
26
- let o;
27
- return t[2] !== r.Subscribe || t[3] !== a ? (o = /* @__PURE__ */ n(r.Subscribe, { selector: ot, children: a }), t[2] = r.Subscribe, t[3] = a, t[4] = o) : o = t[4], o;
28
- }
29
- function ot(l) {
30
- return l.errors;
31
- }
32
- function rt(l) {
33
- const t = R.c(51), {
34
- formModalQas: s,
35
- formLabels: r,
36
- formName: a,
37
- DialogProps: o,
38
- DialogTitleProps: i,
39
- DialogContentProps: e,
40
- AoaSubmitButtonProps: m,
41
- modalQas: f,
42
- open: J,
43
- topic: T,
44
- dialogContent: j,
45
- closeAction: d
46
- } = l;
47
- let p;
48
- t[0] !== m ? (p = m === void 0 ? {} : m, t[0] = m, t[1] = p) : p = t[1];
49
- let u, b;
50
- t[2] !== p ? ({
51
- disableWithFormState: b,
52
- ...u
53
- } = p, t[2] = p, t[3] = u, t[4] = b) : (u = t[3], b = t[4]);
54
- const c = I();
55
- let v;
56
- t[5] !== u || t[6] !== b || t[7] !== c.Subscribe || t[8] !== r.submit || t[9] !== s?.submitButton ? (v = b ? /* @__PURE__ */ n(c.Subscribe, { selector: st, children: (w) => {
57
- const [z, G] = w;
58
- return /* @__PURE__ */ n(W, { ...u, "aria-disabled": z || !G, buttonType: "submit", "data-qa": s?.submitButton ?? "submit-form", disabled: z || !G, type: "primary", children: r.submit });
59
- } }) : /* @__PURE__ */ n(W, { ...u, buttonType: "submit", "data-qa": s?.submitButton ?? "submit-form", type: "primary", children: r.submit }), t[5] = u, t[6] = b, t[7] = c.Subscribe, t[8] = r.submit, t[9] = s?.submitButton, t[10] = v) : v = t[10];
60
- const E = v, Q = f?.modal ?? "modal", _ = !!J, $ = f?.title ?? "modal-title";
61
- let B;
62
- t[11] === Symbol.for("react.memo_cache_sentinel") ? (B = {
63
- m: 0,
64
- p: 2
65
- }, t[11] = B) : B = t[11];
66
- let g;
67
- t[12] !== i || t[13] !== $ || t[14] !== T ? (g = /* @__PURE__ */ n(U, { ...i, "data-qa": $, maxWidth: "sm", sx: B, children: T }), t[12] = i, t[13] = $, t[14] = T, t[15] = g) : g = t[15];
68
- let x;
69
- t[16] !== d ? (x = /* @__PURE__ */ n(tt, { closeAction: d }), t[16] = d, t[17] = x) : x = t[17];
70
- const k = s?.form ?? "form";
71
- let h;
72
- t[18] !== c ? (h = async (w) => {
73
- w.preventDefault(), w.stopPropagation(), await c.handleSubmit();
74
- }, t[18] = c, t[19] = h) : h = t[19];
75
- const L = f?.content ?? "modal-content";
76
- let y;
77
- t[20] !== e?.sx ? (y = Z.merge({
78
- padding: "0 3rem 2rem"
79
- }, e?.sx), t[20] = e?.sx, t[21] = y) : y = t[21];
80
- let A;
81
- t[22] !== e || t[23] !== j || t[24] !== L || t[25] !== y ? (A = /* @__PURE__ */ n(V, { ...e, "data-qa": L, sx: y, children: j }), t[22] = e, t[23] = j, t[24] = L, t[25] = y, t[26] = A) : A = t[26];
82
- const M = s?.dialogActions ?? "dialog-actions", H = s?.cancelButton ?? "cancel-form";
83
- let C;
84
- t[27] !== d || t[28] !== c ? (C = () => {
85
- c.reset(), d();
86
- }, t[27] = d, t[28] = c, t[29] = C) : C = t[29];
87
- let S;
88
- t[30] !== r.cancel || t[31] !== H || t[32] !== C ? (S = /* @__PURE__ */ n(W, { "data-qa": H, onClick: C, type: "secondary", children: r.cancel }), t[30] = r.cancel, t[31] = H, t[32] = C, t[33] = S) : S = t[33];
89
- let F;
90
- t[34] !== E || t[35] !== M || t[36] !== S ? (F = /* @__PURE__ */ N(Y, { "data-qa": M, children: [
91
- S,
92
- E
93
- ] }), t[34] = E, t[35] = M, t[36] = S, t[37] = F) : F = t[37];
94
- let q;
95
- t[38] !== a || t[39] !== k || t[40] !== h || t[41] !== A || t[42] !== F ? (q = /* @__PURE__ */ N("form", { "data-qa": k, name: a, onSubmit: h, children: [
96
- A,
97
- F
98
- ] }), t[38] = a, t[39] = k, t[40] = h, t[41] = A, t[42] = F, t[43] = q) : q = t[43];
99
- let D;
100
- return t[44] !== o || t[45] !== q || t[46] !== Q || t[47] !== _ || t[48] !== g || t[49] !== x ? (D = /* @__PURE__ */ N(X, { ...o, "data-qa": Q, open: _, children: [
101
- g,
102
- x,
103
- q
104
- ] }), t[44] = o, t[45] = q, t[46] = Q, t[47] = _, t[48] = g, t[49] = x, t[50] = D) : D = t[50], D;
105
- }
106
- function st(l) {
107
- return [l.isSubmitting, l.canSubmit];
108
- }
109
- const {
110
- fieldContext: at,
111
- formContext: it,
112
- useFieldContext: nt,
113
- useFormContext: I
114
- } = K(), {
115
- useAppForm: xt,
116
- withForm: ht
117
- } = O({
118
- fieldContext: at,
119
- formContext: it,
120
- fieldComponents: {
121
- AoaFieldError: lt
122
- },
123
- formComponents: {
124
- AoaFormModal: rt,
125
- AoaFormError: et
126
- }
127
- });
128
- function lt(l) {
129
- const t = R.c(11), {
130
- "data-qa": s
131
- } = l, r = nt();
132
- if (r.state.meta.isTouched && r.state.meta.errors.length) {
133
- let a;
134
- t[0] !== r.state.meta.errors ? (a = r.state.meta.errors.at(0), t[0] = r.state.meta.errors, t[1] = a) : a = t[1];
135
- const o = a;
136
- if (typeof o == "string") {
137
- const i = s ?? "field-error";
138
- let e;
139
- return t[2] !== o || t[3] !== i ? (e = /* @__PURE__ */ n(P, { "data-qa": i, message: o, severity: "error" }), t[2] = o, t[3] = i, t[4] = e) : e = t[4], e;
140
- } else if (o && typeof o == "object") {
141
- let i;
142
- t[5] !== o.level ? (i = ["error", "info", "success", "warning"].includes(o.level) ? o.level : "error", t[5] = o.level, t[6] = i) : i = t[6];
143
- const e = i, m = s ?? "field-error";
144
- let f;
145
- return t[7] !== o.message || t[8] !== e || t[9] !== m ? (f = /* @__PURE__ */ n(P, { "data-qa": m, message: o.message, severity: e }), t[7] = o.message, t[8] = e, t[9] = m, t[10] = f) : f = t[10], f;
146
- }
147
- }
148
- return null;
149
- }
150
- export {
151
- lt as A,
152
- et as a,
153
- rt as b,
154
- at as c,
155
- it as d,
156
- nt as e,
157
- I as f,
158
- xt as u,
159
- ht as w
160
- };
161
- //# sourceMappingURL=FieldError.CCQnjdMd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FieldError.CCQnjdMd.js","sources":["../../src/components/molecules/form-error/FormError.tsx","../../src/components/molecules/form-modal/FormModal.tsx","../../src/contexts/TanstackFormContext.ts","../../src/components/molecules/field-error/FieldError.tsx"],"sourcesContent":["import { useAoaFormContext } from '../../../contexts/TanstackFormContext';\nimport { AoaNotification, type Severity } from '../../atoms/notification/Notification';\n\nexport interface AoaFormErrorProps {\n readonly 'data-qa'?: string;\n}\n\n/**\n * Constructs a custom error message for a form **using pre-defined Rijks styling**\n *\n * This component is intended for internal use only and should always be used through `<form.AoaFormError />`\n *\n * @internal\n * @param param0 - Props to pass to the form error\n * @returns A custom error message for a form\n * @example\n * ```jsx\n * <form.AppForm>\n * <form.AoaFormError />\n * </form.AppForm>\n * ```\n */\nexport function AoaFormError({ 'data-qa': dataQa }: AoaFormErrorProps) {\n const form = useAoaFormContext();\n\n return (\n <form.Subscribe selector={(state) => state.errors}>\n {(errors) => {\n if (errors.length) {\n const error = errors.at(0);\n\n if (typeof error === 'string') {\n return <AoaNotification data-qa={dataQa ?? 'form-error'} message={error} severity='error' />;\n } else if (error && typeof error === 'object') {\n const parsedLevel = ['error', 'info', 'success', 'warning'].includes(error.level)\n ? (error.level as Severity)\n : 'error';\n return <AoaNotification data-qa={dataQa ?? 'form-error'} message={error.message} severity={parsedLevel} />;\n }\n }\n\n return null;\n }}\n </form.Subscribe>\n );\n}\n","import { Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material';\nimport { merge } from 'lodash';\nimport { useAoaFormContext } from '../../../contexts/TanstackFormContext';\nimport { AoaButton, type AoaButtonProps } from '../../atoms/button/Button';\nimport type { AoaModalProps } from '../modal/Modal';\nimport { AoaModalCloseButton, type AoaModalCloseButtonProps } from '../modal-close-button/ModalCloseButton';\n\nexport interface AoaFormModalQAs {\n /**\n * Data-qa tag applied to the \"cancel\" button\n */\n cancelButton?: string;\n /**\n * Data-qa tag applied to the `DialogActions` component\n */\n dialogActions?: string;\n /**\n * Data-qa tag applied to the HTML `form` element\n */\n form?: string;\n /**\n * Data-qa tag applied to the \"submit\" button\n */\n submitButton?: string;\n}\n\nexport interface AoaFormModalLabels {\n cancel: string;\n submit: string;\n}\n\nexport interface AoaFormModalProps extends Omit<AoaModalProps, 'dialogActions'>, AoaModalCloseButtonProps {\n /**\n * Additional properties to provide to the {@link AoaButton | submit button}\n */\n AoaSubmitButtonProps?: Omit<AoaButtonProps, 'buttonType' | 'data-qa' | 'disabled' | 'onClick' | 'type'> & {\n disableWithFormState?: boolean;\n };\n /**\n * Labels for the buttons in {@link DialogActions}\n */\n formLabels: AoaFormModalLabels;\n /**\n * data-qa tags for the components in the form section of the modal\n */\n formModalQas?: AoaFormModalQAs;\n /**\n * Optionally the `name` property for the HTML form element\n */\n formName?: string;\n}\n\n/**\n * Constructs a modal **for holding a Form** using pre-defined Rijks styling\n *\n * For a modal without a form see `AoaModal`\n *\n * This component is intended for internal use only and should always be used through `<form.AoaFormModal />`\n *\n * @internal\n * @param props - Props to pass to the modal - {@link ModalProps}\n * @example\n * ```jsx\n * <form.AppForm>\n * <form.AoaFormModal\n * open={true}\n * formLabels={{\n * submit: 'submit',\n * cancel: 'cancel'\n * }}\n * formModalQas={{\n * cancelButton: 'cancel-button',\n * dialogActions: 'dialog-actions,\n * form: 'form',\n * submitButton: 'confirm-button'\n * }}\n * closeAction={handleClose}\n * topic='topic'\n * modalQas={{\n * modal: 'modal',\n * content: 'modal-content',\n * title: 'modal-title'\n * }}\n * formName='form'\n * dialogContent={content}\n * />\n * </form.AppForm>\n * ```\n */\nexport function AoaFormModal({\n formModalQas,\n formLabels,\n formName,\n DialogProps,\n DialogTitleProps,\n DialogContentProps,\n AoaSubmitButtonProps: { disableWithFormState, ...AoaSubmitButtonProps } = {},\n modalQas,\n open,\n topic,\n dialogContent,\n closeAction\n}: Readonly<AoaFormModalProps>) {\n const form = useAoaFormContext();\n\n const SubmitButton = disableWithFormState ? (\n <form.Subscribe selector={(state) => [state.isSubmitting, state.canSubmit] as const}>\n {([isSubmitting, canSubmit]) => (\n <AoaButton\n {...AoaSubmitButtonProps}\n aria-disabled={isSubmitting || !canSubmit}\n buttonType='submit'\n data-qa={formModalQas?.submitButton ?? 'submit-form'}\n disabled={isSubmitting || !canSubmit}\n type='primary'\n >\n {formLabels.submit}\n </AoaButton>\n )}\n </form.Subscribe>\n ) : (\n <AoaButton\n {...AoaSubmitButtonProps}\n buttonType='submit'\n data-qa={formModalQas?.submitButton ?? 'submit-form'}\n type='primary'\n >\n {formLabels.submit}\n </AoaButton>\n );\n\n return (\n <Dialog {...DialogProps} data-qa={modalQas?.modal ?? 'modal'} open={Boolean(open)}>\n <DialogTitle {...DialogTitleProps} data-qa={modalQas?.title ?? 'modal-title'} maxWidth='sm' sx={{ m: 0, p: 2 }}>\n {topic}\n </DialogTitle>\n <AoaModalCloseButton closeAction={closeAction} />\n <form\n data-qa={formModalQas?.form ?? 'form'}\n name={formName}\n onSubmit={async (event) => {\n event.preventDefault();\n event.stopPropagation();\n await form.handleSubmit();\n }}\n >\n <DialogContent\n {...DialogContentProps}\n data-qa={modalQas?.content ?? 'modal-content'}\n sx={merge(\n {\n padding: '0 3rem 2rem'\n },\n DialogContentProps?.sx\n )}\n >\n {dialogContent}\n </DialogContent>\n <DialogActions data-qa={formModalQas?.dialogActions ?? 'dialog-actions'}>\n <AoaButton\n data-qa={formModalQas?.cancelButton ?? 'cancel-form'}\n onClick={() => {\n form.reset();\n closeAction();\n }}\n type='secondary'\n >\n {formLabels.cancel}\n </AoaButton>\n {SubmitButton}\n </DialogActions>\n </form>\n </Dialog>\n );\n}\n","import { createFormHook, createFormHookContexts } from '@tanstack/react-form';\nimport { AoaFieldError } from '../components/molecules/field-error/FieldError';\nimport { AoaFormError } from '../components/molecules/form-error/FormError';\nimport { AoaFormModal } from '../components/molecules/form-modal/FormModal';\n\nexport const {\n fieldContext: aoaFieldContext,\n formContext: aoaFormContext,\n useFieldContext: useAoaFieldContext,\n useFormContext: useAoaFormContext\n} = createFormHookContexts();\n\nexport const { useAppForm: useAoaAppForm, withForm: withAoaForm } = createFormHook({\n fieldContext: aoaFieldContext,\n formContext: aoaFormContext,\n fieldComponents: {\n AoaFieldError\n },\n formComponents: {\n AoaFormModal,\n AoaFormError\n }\n});\n","import { useAoaFieldContext } from '../../../contexts/TanstackFormContext';\nimport { AoaNotification, type Severity } from '../../atoms/notification/Notification';\n\nexport interface AoaFieldErrorProps {\n readonly 'data-qa'?: string;\n}\n\n/**\n * Constructs a custom error message for a field **using pre-defined Rijks styling**\n *\n * This component is intended for internal use only and should always be used through `<field.AoaFieldError />`\n *\n * @internal\n * @param param0 - Props to pass to the field error\n * @returns A custom error message for a field\n * @example\n * ```jsx\n * <form.AppField name='name'>\n * {(field) => {\n * return <field.AoaFieldError />;\n * }}\n * </form.AppField>\n * ```\n */\nexport function AoaFieldError<TData>({ 'data-qa': dataQa }: AoaFieldErrorProps) {\n const field = useAoaFieldContext<TData>();\n\n if (field.state.meta.isTouched && field.state.meta.errors.length) {\n const error = field.state.meta.errors.at(0);\n\n if (typeof error === 'string') {\n return <AoaNotification data-qa={dataQa ?? 'field-error'} message={error} severity='error' />;\n } else if (error && typeof error === 'object') {\n const parsedLevel = ['error', 'info', 'success', 'warning'].includes(error.level)\n ? (error.level as Severity)\n : 'error';\n return <AoaNotification data-qa={dataQa ?? 'field-error'} message={error.message} severity={parsedLevel} />;\n }\n }\n\n return null;\n}\n"],"names":["AoaFormError","t0","$","_c","dataQa","form","useAoaFormContext","t1","errors","length","error","at","jsx","AoaNotification","parsedLevel","includes","level","message","t2","Subscribe","_temp","state","AoaFormModal","formModalQas","formLabels","formName","DialogProps","DialogTitleProps","DialogContentProps","AoaSubmitButtonProps","modalQas","open","topic","dialogContent","closeAction","undefined","disableWithFormState","t3","submit","submitButton","t4","isSubmitting","canSubmit","AoaButton","SubmitButton","modal","t5","Boolean","t6","title","t7","Symbol","for","m","p","t8","DialogTitle","t9","AoaModalCloseButton","t10","t11","event","preventDefault","stopPropagation","handleSubmit","t12","content","t13","sx","merge","padding","t14","DialogContent","t15","dialogActions","t16","cancelButton","t17","reset","t18","cancel","t19","DialogActions","t20","t21","Dialog","fieldContext","aoaFieldContext","formContext","aoaFormContext","useFieldContext","useAoaFieldContext","useFormContext","createFormHookContexts","useAppForm","useAoaAppForm","withForm","withAoaForm","createFormHook","fieldComponents","AoaFieldError","formComponents","field","meta","isTouched"],"mappings":";;;;;;;;AAsBO,SAAAA,GAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GAAsB;AAAA,IAAA,WAAAC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