@gen-epix/ui-client-casedb 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/AddCasesToEventDialog.js +98 -98
- package/dist/_chunks/AddCasesToEventDialog.js.map +1 -1
- package/dist/_chunks/CaseContentForm.js +10 -10
- package/dist/_chunks/CaseInfoDialog.js +220 -220
- package/dist/_chunks/CaseInfoDialog.js.map +1 -1
- package/dist/_chunks/CaseSetInfoDialog.js +224 -224
- package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
- package/dist/_chunks/Dashboard.js +295 -295
- package/dist/_chunks/Dashboard.js.map +1 -1
- package/dist/_chunks/FindSimilarCasesDialog.js +76 -76
- package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
- package/dist/_chunks/LegendaItem.js.map +1 -1
- package/dist/_chunks/PanelSeparator.js +3 -3
- package/dist/_chunks/PanelSeparator.js.map +1 -1
- package/dist/_chunks/Upload.js +318 -318
- package/dist/_chunks/Upload.js.map +1 -1
- package/dist/_chunks/chunk-BV7QT456.js +1 -1
- package/dist/_chunks/chunk-BV7QT456.js.map +1 -1
- package/dist/_chunks/cloneDeep.js +1 -1
- package/dist/_chunks/cloneDeep.js.map +1 -1
- package/dist/_chunks/esm.js +3 -3
- package/dist/_chunks/esm.js.map +1 -1
- package/dist/_chunks/index.module.js +1 -1
- package/dist/_chunks/index.module.js.map +1 -1
- package/dist/_chunks/react.js +1 -1
- package/dist/_chunks/react.js.map +1 -1
- package/dist/_chunks/shallow.js +2 -2
- package/dist/_chunks/shallow.js.map +1 -1
- package/dist/_chunks/vanilla.js +1 -1
- package/dist/_chunks/vanilla.js.map +1 -1
- package/dist/_chunks/yup.js +24 -24
- package/dist/_chunks/yup.js.map +1 -1
- package/dist/components/form/fields/ArrangementEditor/index.js +30 -30
- package/dist/components/ui/CreateEventDialog/index.js +40 -40
- package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
- package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +59 -59
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
- package/package.json +68 -67
- package/dist/_chunks/index.esm.js +0 -1465
- package/dist/_chunks/index.esm.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect as e, useMemo as t, useRef as n } from "react";
|
|
2
|
-
//#region ../../node_modules/.pnpm/use-debounce@10.1.1_react@19.
|
|
2
|
+
//#region ../../node_modules/.pnpm/use-debounce@10.1.1_react@19.3.0/node_modules/use-debounce/dist/index.module.js
|
|
3
3
|
function r(r, i, a, o) {
|
|
4
4
|
var s = this, c = n(null), l = n(0), u = n(0), d = n(null), f = n([]), p = n(), m = n(), h = n(r), g = n(!0), _ = n(), v = n();
|
|
5
5
|
h.current = r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.js","names":["r","n","t"],"sources":["../../../../node_modules/.pnpm/use-debounce@10.1.1_react@19.
|
|
1
|
+
{"version":3,"file":"index.module.js","names":["r","n","t"],"sources":["../../../../node_modules/.pnpm/use-debounce@10.1.1_react@19.3.0/node_modules/use-debounce/dist/index.module.js"],"sourcesContent":["import{useRef as r,useMemo as n,useEffect as t,useState as e,useCallback as u}from\"react\";function c(e,u,c,i){var l=this,a=r(null),o=r(0),f=r(0),v=r(null),d=r([]),s=r(),m=r(),h=r(e),g=r(!0),x=r(),E=r();h.current=e;var b=\"undefined\"!=typeof window,p=!u&&0!==u&&b;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");u=+u||0;var y=!!(c=c||{}).leading,w=!(\"trailing\"in c)||!!c.trailing,T=!!c.flushOnExit&&w,O=\"maxWait\"in c,F=\"debounceOnServer\"in c&&!!c.debounceOnServer,L=O?Math.max(+c.maxWait||0,u):null,A=n(function(){var r=function(r){var n=d.current,t=s.current;return d.current=s.current=null,o.current=r,f.current=f.current||r,m.current=h.current.apply(t,n)},n=function(r,n){p&&cancelAnimationFrame(v.current),v.current=p?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!g.current)return!1;var n=r-a.current;return!a.current||n>=u||n<0||O&&r-o.current>=L},e=function(n){return v.current=null,w&&d.current?r(n):(d.current=s.current=null,m.current)},c=function r(){var c=Date.now();if(y&&f.current===o.current&&A(),t(c))return e(c);if(g.current){var i=u-(c-a.current),l=O?Math.min(i,L-(c-o.current)):i;n(r,l)}},A=function(){i&&i({})},D=function(){if(b||F){var e,i=Date.now(),f=t(i);if(d.current=[].slice.call(arguments),s.current=l,a.current=i,T&&!x.current&&(x.current=function(){var r;\"hidden\"===(null==(r=globalThis.document)?void 0:r.visibilityState)&&E.current.flush()},null==(e=globalThis.document)||null==e.addEventListener||e.addEventListener(\"visibilitychange\",x.current)),f){if(!v.current&&g.current)return o.current=a.current,n(c,u),y?r(a.current):m.current;if(O)return n(c,u),r(a.current)}return v.current||n(c,u),m.current}};return D.cancel=function(){var r=v.current;r&&(p?cancelAnimationFrame(v.current):clearTimeout(v.current)),o.current=0,d.current=a.current=s.current=v.current=null,r&&i&&i({})},D.isPending=function(){return!!v.current},D.flush=function(){return v.current?e(Date.now()):m.current},D},[y,O,u,L,w,T,p,b,F,i]);return E.current=A,t(function(){return g.current=!0,function(){var r;T&&E.current.flush(),x.current&&(null==(r=globalThis.document)||null==r.removeEventListener||r.removeEventListener(\"visibilitychange\",x.current),x.current=null),g.current=!1}},[T]),A}function i(r,n){return r===n}function l(n,t,l){var a=l&&l.equalityFn||i,o=r(n),f=e({})[1],v=c(u(function(r){o.current=r,f({})},[f]),t,l,f),d=r(n);return a(d.current,n)||(v(n),d.current=n),[o.current,v]}function a(r,n,t){var e=void 0===t?{}:t,u=e.leading,i=e.trailing,l=e.flushOnExit;return c(r,n,{maxWait:n,leading:void 0===u||u,trailing:void 0===i||i,flushOnExit:void 0!==l&&l})}export{l as useDebounce,c as useDebouncedCallback,a as useThrottledCallback};\n//# sourceMappingUR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,EAAE,OAAO;IAAC;IAAC,OAAO,EAAE,WAAS,EAAE,GAAE,CAAC,GAAE,EAAE;GAAO;EAAC;EAAE,OAAO,EAAE,SAAO,WAAU;GAAC,IAAI,IAAE,EAAE;GAAQ,MAAI,IAAE,qBAAqB,EAAE,OAAO,IAAE,aAAa,EAAE,OAAO,IAAG,EAAE,UAAQ,GAAE,EAAE,UAAQ,EAAE,UAAQ,EAAE,UAAQ,EAAE,UAAQ,MAAK,KAAG,KAAG,EAAE,CAAC,CAAC;EAAC,GAAE,EAAE,YAAU,WAAU;GAAC,OAAM,CAAC,CAAC,EAAE;EAAO,GAAE,EAAE,QAAM,WAAU;GAAC,OAAO,EAAE,UAAQ,EAAE,KAAK,IAAI,CAAC,IAAE,EAAE;EAAO,GAAE;CAAC,GAAE;EAAC;EAAE;EAAE;EAAE;EAAE;EAAE;EAAE;EAAE;EAAE;EAAE;CAAC,CAAC;CAAE,OAAO,EAAE,UAAQ,GAAEC,EAAE,WAAU;EAAC,OAAO,EAAE,UAAQ,CAAC,GAAE,WAAU;GAAC,IAAI;GAAE,KAAG,EAAE,QAAQ,MAAM,GAAE,AAA4H,EAAE,cAA3G,IAAE,WAAW,aAApB,QAAqC,EAAE,uBAAR,QAA6B,EAAE,oBAAoB,oBAAmB,EAAE,OAAO,GAAY,OAAM,EAAE,UAAQ,CAAC;EAAC;CAAC,GAAE,CAAC,CAAC,CAAC,GAAE;AAAC"}
|
package/dist/_chunks/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
//#region ../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.
|
|
2
|
+
//#region ../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.3.0_immer@11.1.18_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/react.mjs
|
|
3
3
|
var t = (e) => e;
|
|
4
4
|
function n(n, r = t) {
|
|
5
5
|
let i = e.useSyncExternalStore(n.subscribe, e.useCallback(() => r(n.getState()), [n, r]), e.useCallback(() => r(n.getInitialState()), [n, r]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","names":[],"sources":["../../../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.
|
|
1
|
+
{"version":3,"file":"react.js","names":[],"sources":["../../../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.3.0_immer@11.1.18_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/react.mjs"],"sourcesContent":["import React from 'react';\nimport { createStore } from 'zustand/vanilla';\n\nconst identity = (arg) => arg;\nfunction useStore(api, selector = identity) {\n const slice = React.useSyncExternalStore(\n api.subscribe,\n React.useCallback(() => selector(api.getState()), [api, selector]),\n React.useCallback(() => selector(api.getInitialState()), [api, selector])\n );\n React.useDebugValue(slice);\n return slice;\n}\nconst createImpl = (createState) => {\n const api = createStore(createState);\n const useBoundStore = (selector) => useStore(api, selector);\n Object.assign(useBoundStore, api);\n return useBoundStore;\n};\nconst create = ((createState) => createState ? createImpl(createState) : createImpl);\n\nexport { create, useStore };\n"],"x_google_ignoreList":[0],"mappings":";;AAGA,IAAM,KAAY,MAAQ;AAC1B,SAAS,EAAS,GAAK,IAAW,GAAU;CAC1C,IAAM,IAAQ,EAAM,qBAClB,EAAI,WACJ,EAAM,kBAAkB,EAAS,EAAI,SAAS,CAAC,GAAG,CAAC,GAAK,CAAQ,CAAC,GACjE,EAAM,kBAAkB,EAAS,EAAI,gBAAgB,CAAC,GAAG,CAAC,GAAK,CAAQ,CAAC,CAC1E;CAEA,OADA,EAAM,cAAc,CAAK,GAClB;AACT"}
|
package/dist/_chunks/shallow.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
//#region ../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.
|
|
2
|
+
//#region ../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.3.0_immer@11.1.18_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/vanilla/shallow.mjs
|
|
3
3
|
var t = (e) => Symbol.iterator in e, n = (e) => "entries" in e, r = (e, t) => {
|
|
4
4
|
let n = e instanceof Map ? e : new Map(e.entries()), r = t instanceof Map ? t : new Map(t.entries());
|
|
5
5
|
if (n.size !== r.size) return !1;
|
|
@@ -17,7 +17,7 @@ function a(e, a) {
|
|
|
17
17
|
return Object.is(e, a) ? !0 : typeof e != "object" || !e || typeof a != "object" || !a || Object.getPrototypeOf(e) !== Object.getPrototypeOf(a) ? !1 : t(e) && t(a) ? n(e) && n(a) ? r(e, a) : i(e, a) : r({ entries: () => Object.entries(e) }, { entries: () => Object.entries(a) });
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region ../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.
|
|
20
|
+
//#region ../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.3.0_immer@11.1.18_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/react/shallow.mjs
|
|
21
21
|
function o(t) {
|
|
22
22
|
let n = e.useRef(void 0);
|
|
23
23
|
return (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shallow.js","names":[],"sources":["../../../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.
|
|
1
|
+
{"version":3,"file":"shallow.js","names":[],"sources":["../../../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.3.0_immer@11.1.18_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/vanilla/shallow.mjs","../../../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.3.0_immer@11.1.18_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/react/shallow.mjs"],"sourcesContent":["const isIterable = (obj) => Symbol.iterator in obj;\nconst hasIterableEntries = (value) => (\n // HACK: avoid checking entries type\n \"entries\" in value\n);\nconst compareEntries = (valueA, valueB) => {\n const mapA = valueA instanceof Map ? valueA : new Map(valueA.entries());\n const mapB = valueB instanceof Map ? valueB : new Map(valueB.entries());\n if (mapA.size !== mapB.size) {\n return false;\n }\n for (const [key, value] of mapA) {\n if (!mapB.has(key) || !Object.is(value, mapB.get(key))) {\n return false;\n }\n }\n return true;\n};\nconst compareIterables = (valueA, valueB) => {\n const iteratorA = valueA[Symbol.iterator]();\n const iteratorB = valueB[Symbol.iterator]();\n let nextA = iteratorA.next();\n let nextB = iteratorB.next();\n while (!nextA.done && !nextB.done) {\n if (!Object.is(nextA.value, nextB.value)) {\n return false;\n }\n nextA = iteratorA.next();\n nextB = iteratorB.next();\n }\n return !!nextA.done && !!nextB.done;\n};\nfunction shallow(valueA, valueB) {\n if (Object.is(valueA, valueB)) {\n return true;\n }\n if (typeof valueA !== \"object\" || valueA === null || typeof valueB !== \"object\" || valueB === null) {\n return false;\n }\n if (Object.getPrototypeOf(valueA) !== Object.getPrototypeOf(valueB)) {\n return false;\n }\n if (isIterable(valueA) && isIterable(valueB)) {\n if (hasIterableEntries(valueA) && hasIterableEntries(valueB)) {\n return compareEntries(valueA, valueB);\n }\n return compareIterables(valueA, valueB);\n }\n return compareEntries(\n { entries: () => Object.entries(valueA) },\n { entries: () => Object.entries(valueB) }\n );\n}\n\nexport { shallow };\n","import React from 'react';\nimport { shallow } from 'zustand/vanilla/shallow';\n\nfunction useShallow(selector) {\n const prev = React.useRef(void 0);\n return (state) => {\n const next = selector(state);\n return shallow(prev.current, next) ? prev.current : prev.current = next;\n };\n}\n\nexport { useShallow };\n"],"x_google_ignoreList":[0,1],"mappings":";;AAAA,IAAM,KAAc,MAAQ,OAAO,YAAY,GACzC,KAAsB,MAE1B,aAAa,GAET,KAAkB,GAAQ,MAAW;CACzC,IAAM,IAAO,aAAkB,MAAM,IAAS,IAAI,IAAI,EAAO,QAAQ,CAAC,GAChE,IAAO,aAAkB,MAAM,IAAS,IAAI,IAAI,EAAO,QAAQ,CAAC;CACtE,IAAI,EAAK,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1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.
|
|
1
|
+
//#region ../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.3.0_immer@11.1.18_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/vanilla.mjs
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
|
|
4
4
|
let i = typeof e == "function" ? e(t) : e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vanilla.js","names":[],"sources":["../../../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.
|
|
1
|
+
{"version":3,"file":"vanilla.js","names":[],"sources":["../../../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.3.0_immer@11.1.18_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/vanilla.mjs"],"sourcesContent":["const createStoreImpl = (createState) => {\n let state;\n const listeners = /* @__PURE__ */ new Set();\n const setState = (partial, replace) => {\n const nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (!Object.is(nextState, state)) {\n const previousState = state;\n state = (replace != null ? replace : typeof nextState !== \"object\" || nextState === null) ? nextState : Object.assign({}, state, nextState);\n listeners.forEach((listener) => listener(state, previousState));\n }\n };\n const getState = () => state;\n const getInitialState = () => initialState;\n const subscribe = (listener) => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n };\n const api = { setState, getState, getInitialState, subscribe };\n const initialState = state = createState(setState, getState, api);\n return api;\n};\nconst createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);\n\nexport { createStore };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,KAAmB,MAAgB;CACvC,IAAI,GACE,oBAA4B,IAAI,IAAI,GACpC,KAAY,GAAS,MAAY;EACrC,IAAM,IAAY,OAAO,KAAY,aAAa,EAAQ,CAAK,IAAI;EACnE,IAAI,CAAC,OAAO,GAAG,GAAW,CAAK,GAAG;GAChC,IAAM,IAAgB;GAEtB,AADA,IAAS,MAA4B,OAAO,KAAc,aAAY,KAAsB,IAAY,OAAO,OAAO,CAAC,GAAG,GAAO,CAAS,GAC1I,EAAU,SAAS,MAAa,EAAS,GAAO,CAAa,CAAC;EAChE;CACF,GACM,UAAiB,GAMjB,IAAM;EAAE;EAAU;EAAU,uBALJ;EAKqB,YAJhC,OACjB,EAAU,IAAI,CAAQ,SACT,EAAU,OAAO,CAAQ;CAEqB,GACvD,IAAe,IAAQ,EAAY,GAAU,GAAU,CAAG;CAChE,OAAO;AACT,GACM,MAAgB,MAAgB,IAAc,EAAgB,CAAW,IAAI"}
|
package/dist/_chunks/yup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../node_modules/.pnpm/@hookform+resolvers@5.9.1_@sinclair+typebox@0.34.49_@standard-schema+spec@1.1.0_ajv@8.
|
|
1
|
+
import { appendErrors as e, get as t, set as n } from "react-hook-form";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@hookform+resolvers@5.9.1_@sinclair+typebox@0.34.49_@standard-schema+spec@1.1.0_ajv@8.2_d65c61737e3f2f7870713464959ae2bf/node_modules/@hookform/resolvers/dist/resolvers.mjs
|
|
3
3
|
var r = (e, n, r) => {
|
|
4
4
|
if (e && "reportValidity" in e) {
|
|
5
5
|
let i = t(r, n);
|
|
@@ -10,15 +10,15 @@ var r = (e, n, r) => {
|
|
|
10
10
|
let i = t.fields[n];
|
|
11
11
|
i && i.ref && "reportValidity" in i.ref ? r(i.ref, n, e) : i && i.refs && i.refs.forEach((t) => r(t, n, e));
|
|
12
12
|
}
|
|
13
|
-
}, a = (
|
|
14
|
-
r.shouldUseNativeValidation && i(
|
|
13
|
+
}, a = (e, r) => {
|
|
14
|
+
r.shouldUseNativeValidation && i(e, r);
|
|
15
15
|
let a = {};
|
|
16
|
-
for (let i in
|
|
17
|
-
let s = t(r.fields, i), c = Object.assign(
|
|
18
|
-
if (o(r.names || Object.keys(
|
|
19
|
-
let
|
|
20
|
-
e
|
|
21
|
-
} else
|
|
16
|
+
for (let i in e) {
|
|
17
|
+
let s = t(r.fields, i), c = Object.assign(e[i] || {}, { ref: s && s.refs ? s.refs[0] : s && s.ref });
|
|
18
|
+
if (o(r.names || Object.keys(e), i)) {
|
|
19
|
+
let e = Object.assign({}, t(a, i));
|
|
20
|
+
n(e, "root", c), n(a, i, e);
|
|
21
|
+
} else n(a, i, c);
|
|
22
22
|
}
|
|
23
23
|
return a;
|
|
24
24
|
}, o = (e, t) => {
|
|
@@ -29,13 +29,13 @@ function s(e) {
|
|
|
29
29
|
return e.replace(/\[(\d+)]/g, ".$1").replace(/[[\]]/g, "");
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region ../../node_modules/.pnpm/@hookform+resolvers@5.9.1_@sinclair+typebox@0.34.49_@standard-schema+spec@1.1.0_ajv@8.
|
|
33
|
-
function c(
|
|
32
|
+
//#region ../../node_modules/.pnpm/@hookform+resolvers@5.9.1_@sinclair+typebox@0.34.49_@standard-schema+spec@1.1.0_ajv@8.2_d65c61737e3f2f7870713464959ae2bf/node_modules/@hookform/resolvers/yup/dist/yup.mjs
|
|
33
|
+
function c(t, n, r) {
|
|
34
34
|
return r === void 0 && (r = {}), function(o, s, c) {
|
|
35
35
|
try {
|
|
36
|
-
return Promise.resolve(function(
|
|
36
|
+
return Promise.resolve(function(e, a) {
|
|
37
37
|
try {
|
|
38
|
-
var l = (
|
|
38
|
+
var l = (n != null && n.context && process.env.NODE_ENV === "development" && console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"), Promise.resolve(t[r.mode === "sync" ? "validateSync" : "validate"](o, Object.assign({ abortEarly: !1 }, n, { context: s }))).then(function(e) {
|
|
39
39
|
return c.shouldUseNativeValidation && i({}, c), {
|
|
40
40
|
values: r.raw ? Object.assign({}, o) : e,
|
|
41
41
|
errors: {}
|
|
@@ -45,22 +45,22 @@ function c(e, t, r) {
|
|
|
45
45
|
return a(e);
|
|
46
46
|
}
|
|
47
47
|
return l && l.then ? l.then(void 0, a) : l;
|
|
48
|
-
}(0, function(
|
|
49
|
-
if (!
|
|
48
|
+
}(0, function(t) {
|
|
49
|
+
if (!t.inner) throw t;
|
|
50
50
|
return {
|
|
51
51
|
values: {},
|
|
52
|
-
errors: a((
|
|
53
|
-
if (
|
|
54
|
-
message:
|
|
55
|
-
type:
|
|
52
|
+
errors: a((n = t, r = !c.shouldUseNativeValidation && c.criteriaMode === "all", (n.inner || []).reduce(function(t, n) {
|
|
53
|
+
if (t[n.path] || (t[n.path] = {
|
|
54
|
+
message: n.message,
|
|
55
|
+
type: n.type
|
|
56
56
|
}), r) {
|
|
57
|
-
var i =
|
|
58
|
-
|
|
57
|
+
var i = t[n.path].types, a = i && i[n.type];
|
|
58
|
+
t[n.path] = e(n.path, r, t, n.type, a ? [].concat(a, n.message) : n.message);
|
|
59
59
|
}
|
|
60
|
-
return
|
|
60
|
+
return t;
|
|
61
61
|
}, Object.create(null))), c)
|
|
62
62
|
};
|
|
63
|
-
var
|
|
63
|
+
var n, r;
|
|
64
64
|
}));
|
|
65
65
|
} catch (e) {
|
|
66
66
|
return Promise.reject(e);
|
package/dist/_chunks/yup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yup.js","names":["e","o","r","s","e","t","r"],"sources":["../../../../node_modules/.pnpm/@hookform+resolvers@5.9.1_@sinclair+typebox@0.34.49_@standard-schema+spec@1.1.0_ajv@8.
|
|
1
|
+
{"version":3,"file":"yup.js","names":["e","o","r","s","e","t","r"],"sources":["../../../../node_modules/.pnpm/@hookform+resolvers@5.9.1_@sinclair+typebox@0.34.49_@standard-schema+spec@1.1.0_ajv@8.2_d65c61737e3f2f7870713464959ae2bf/node_modules/@hookform/resolvers/dist/resolvers.mjs","../../../../node_modules/.pnpm/@hookform+resolvers@5.9.1_@sinclair+typebox@0.34.49_@standard-schema+spec@1.1.0_ajv@8.2_d65c61737e3f2f7870713464959ae2bf/node_modules/@hookform/resolvers/yup/dist/yup.mjs"],"sourcesContent":["import{get as e,set as r}from\"react-hook-form\";const t=(r,t,s)=>{if(r&&\"reportValidity\"in r){const o=e(s,t);r.setCustomValidity(o&&o.message||\"\"),r.reportValidity()}},s=(e,r)=>{for(const s in r.fields){const o=r.fields[s];o&&o.ref&&\"reportValidity\"in o.ref?t(o.ref,s,e):o&&o.refs&&o.refs.forEach(r=>t(r,s,e))}},o=(t,o)=>{o.shouldUseNativeValidation&&s(t,o);const n={};for(const s in t){const f=e(o.fields,s),c=Object.assign(t[s]||{},{ref:f&&f.refs?f.refs[0]:f&&f.ref});if(i(o.names||Object.keys(t),s)){const t=Object.assign({},e(n,s));r(t,\"root\",c),r(n,s,t)}else r(n,s,c)}return n},i=(e,r)=>{const t=n(r).replace(/[.*+?^${}()|\\\\]/g,\"\\\\$&\");return e.some(e=>n(e).match(`^${t}\\\\.\\\\d+`))};function n(e){return e.replace(/\\[(\\d+)]/g,\".$1\").replace(/[[\\]]/g,\"\")}export{o as toNestErrors,s as validateFieldsNatively};\n//# sourceMappingURL=resolvers.mjs.map\n","import{validateFieldsNatively as e,toNestErrors as t}from\"@hookform/resolvers\";import{appendErrors as r}from\"react-hook-form\";function o(o,n,a){return void 0===a&&(a={}),function(s,i,c){try{return Promise.resolve(function(t,r){try{var u=(null!=n&&n.context&&\"development\"===process.env.NODE_ENV&&console.warn(\"You should not used the yup options context. Please, use the 'useForm' context object instead\"),Promise.resolve(o[\"sync\"===a.mode?\"validateSync\":\"validate\"](s,Object.assign({abortEarly:!1},n,{context:i}))).then(function(t){return c.shouldUseNativeValidation&&e({},c),{values:a.raw?Object.assign({},s):t,errors:{}}}))}catch(e){return r(e)}return u&&u.then?u.then(void 0,r):u}(0,function(e){if(!e.inner)throw e;return{values:{},errors:t((o=e,n=!c.shouldUseNativeValidation&&\"all\"===c.criteriaMode,(o.inner||[]).reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var o=e[t.path].types,a=o&&o[t.type];e[t.path]=r(t.path,n,e,t.type,a?[].concat(a,t.message):t.message)}return e},Object.create(null))),c)};var o,n}))}catch(e){return Promise.reject(e)}}}export{o as yupResolver};\n//# sourceMappingURL=yup.module.js.map\n"],"x_google_ignoreList":[0,1],"mappings":";;AAA+C,IAAM,KAAG,GAAE,GAAE,MAAI;CAAC,IAAG,KAAG,oBAAmB,GAAE;EAAC,IAAM,IAAEA,EAAE,GAAE,CAAC;EAAE,EAAE,kBAAkB,KAAG,EAAE,WAAS,EAAE,GAAE,EAAE,eAAe;CAAC;AAAC,GAAE,KAAG,GAAE,MAAI;CAAC,KAAI,IAAM,KAAK,EAAE,QAAO;EAAC,IAAM,IAAE,EAAE,OAAO;EAAG,KAAG,EAAE,OAAK,oBAAmB,EAAE,MAAI,EAAE,EAAE,KAAI,GAAE,CAAC,IAAE,KAAG,EAAE,QAAM,EAAE,KAAK,SAAQ,MAAG,EAAE,GAAE,GAAE,CAAC,CAAC;CAAC;AAAC,GAAEC,KAAG,GAAE,MAAI;CAAC,EAAE,6BAA2B,EAAE,GAAE,CAAC;CAAE,IAAM,IAAE,CAAC;CAAE,KAAI,IAAM,KAAK,GAAE;EAAC,IAAM,IAAED,EAAE,EAAE,QAAO,CAAC,GAAE,IAAE,OAAO,OAAO,EAAE,MAAI,CAAC,GAAE,EAAC,KAAI,KAAG,EAAE,OAAK,EAAE,KAAK,KAAG,KAAG,EAAE,IAAG,CAAC;EAAE,IAAG,EAAE,EAAE,SAAO,OAAO,KAAK,CAAC,GAAE,CAAC,GAAE;GAAC,IAAM,IAAE,OAAO,OAAO,CAAC,GAAEA,EAAE,GAAE,CAAC,CAAC;GAAE,EAAE,GAAE,QAAO,CAAC,GAAEE,EAAE,GAAE,GAAE,CAAC;EAAC,OAAM,EAAE,GAAE,GAAE,CAAC;CAAC;CAAC,OAAO;AAAC,GAAE,KAAG,GAAE,MAAI;CAAC,IAAM,IAAE,EAAE,CAAC,CA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C,SAAQ,EAAE;OAAQ,MAAK,EAAE;MAAI,IAAG,GAAE;OAAC,IAAI,IAAE,EAAE,EAAE,KAAK,CAAC,OAAM,IAAE,KAAG,EAAE,EAAE;OAAM,EAAE,EAAE,QAAMC,EAAE,EAAE,MAAK,GAAE,GAAE,EAAE,MAAK,IAAE,CAAC,CAAC,CAAC,OAAO,GAAE,EAAE,OAAO,IAAE,EAAE,OAAO;MAAC;MAAC,OAAO;KAAC,GAAE,OAAO,OAAO,IAAI,CAAC,IAAG,CAAC;IAAC;QAAM,GAAE;GAAC,CAAC,CAAC;EAAC,SAAO,GAAE;GAAC,OAAO,QAAQ,OAAO,CAAC;EAAC;CAAC;AAAC"}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { DASHBOARD_ARRANGEMENT_ORIENTATION as e } from "../../../../models/dashboard.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { StringUtil as t } from "@gen-epix/ui-core/utils/StringUtil";
|
|
3
|
+
import { Box as n, FormControl as r, FormControlLabel as i, FormHelperText as a, FormLabel as o, Radio as s, RadioGroup as c, useTheme as l } from "@mui/material";
|
|
4
|
+
import { Fragment as u, useCallback as d, useId as f } from "react";
|
|
5
|
+
import { useTranslation as p } from "react-i18next";
|
|
6
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
7
|
+
import { Controller as g, useFormContext as _ } from "react-hook-form";
|
|
8
8
|
import { TestIdUtil as v } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
9
9
|
import { FormUtil as y } from "@gen-epix/ui-core-form/utils/FormUtil";
|
|
10
10
|
import { FormFieldHelperText as b } from "@gen-epix/ui-core-form/components/helpers/FormFieldHelperText";
|
|
11
11
|
import { FormFieldLoadingIndicator as x } from "@gen-epix/ui-core-form/components/helpers/FormFieldLoadingIndicator";
|
|
12
12
|
//#region src/components/form/fields/ArrangementEditor/ArrangementEditor.tsx
|
|
13
13
|
var S = ({ disabled: S, infoMessage: C, label: w, loading: T, name: E, onChange: D, options: O, required: k, warningMessage: A }) => {
|
|
14
|
-
let { t: j } =
|
|
15
|
-
let
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
"data-direction":
|
|
14
|
+
let { t: j } = p(), M = l(), N = f(), { control: P, formState: { errors: F } } = _(), I = y.getFieldErrorMessage(F, E), L = !!I, R = d((r) => {
|
|
15
|
+
let i = r.orientation === e.HORIZONTAL ? "row" : "column", a = r.cells.map((e) => `${e.size}fr`).join(" ");
|
|
16
|
+
return /* @__PURE__ */ m(n, {
|
|
17
|
+
"data-direction": i,
|
|
18
18
|
sx: {
|
|
19
19
|
display: "grid",
|
|
20
20
|
gap: M.spacing(.5),
|
|
21
|
-
gridTemplateColumns:
|
|
22
|
-
gridTemplateRows:
|
|
21
|
+
gridTemplateColumns: i === "row" ? a : void 0,
|
|
22
|
+
gridTemplateRows: i === "column" ? a : void 0,
|
|
23
23
|
height: "100%",
|
|
24
24
|
width: "100%"
|
|
25
25
|
},
|
|
26
|
-
children:
|
|
26
|
+
children: r.cells.map((e, r) => /* @__PURE__ */ m(u, { children: "name" in e ? /* @__PURE__ */ m(n, { sx: {
|
|
27
27
|
backgroundColor: M.palette.primary.main,
|
|
28
28
|
borderRadius: .5,
|
|
29
29
|
height: "100%",
|
|
30
30
|
width: "100%"
|
|
31
|
-
} }) : R(e) },
|
|
32
|
-
subIndex:
|
|
31
|
+
} }) : R(e) }, t.createHash(JSON.stringify({
|
|
32
|
+
subIndex: r,
|
|
33
33
|
subOption: e
|
|
34
34
|
}))))
|
|
35
35
|
});
|
|
36
|
-
}, [M]), z =
|
|
36
|
+
}, [M]), z = d((e) => (t, n) => {
|
|
37
37
|
O[n] !== void 0 && (D && D(n), e(n));
|
|
38
|
-
}, [O, D]), B =
|
|
38
|
+
}, [O, D]), B = d(({ field: { onBlur: e, onChange: t, value: l } }) => /* @__PURE__ */ h(r, {
|
|
39
39
|
component: "fieldset",
|
|
40
40
|
error: L,
|
|
41
41
|
...v.createAttributes("ArrangementEditor", {
|
|
@@ -48,52 +48,52 @@ var S = ({ disabled: S, infoMessage: C, label: w, loading: T, name: E, onChange:
|
|
|
48
48
|
"legend button": { display: "none" }
|
|
49
49
|
},
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ m(o, {
|
|
52
52
|
component: "legend",
|
|
53
53
|
disabled: S || T,
|
|
54
54
|
id: N,
|
|
55
55
|
required: k,
|
|
56
56
|
children: w
|
|
57
57
|
}),
|
|
58
|
-
!T && /* @__PURE__ */
|
|
58
|
+
!T && /* @__PURE__ */ m(c, {
|
|
59
59
|
"aria-labelledby": N,
|
|
60
60
|
onBlur: e,
|
|
61
61
|
onChange: z(t),
|
|
62
62
|
row: !0,
|
|
63
|
-
value: typeof
|
|
64
|
-
children: /* @__PURE__ */
|
|
63
|
+
value: typeof l == "string" ? l : "",
|
|
64
|
+
children: /* @__PURE__ */ m(n, {
|
|
65
65
|
sx: {
|
|
66
66
|
display: "flex",
|
|
67
67
|
flexWrap: "wrap",
|
|
68
68
|
gap: 1,
|
|
69
69
|
marginTop: 1
|
|
70
70
|
},
|
|
71
|
-
children: Object.entries(O).map(([e, t],
|
|
71
|
+
children: Object.entries(O).map(([e, t], r) => /* @__PURE__ */ h(n, {
|
|
72
72
|
sx: {
|
|
73
73
|
alignItems: "center",
|
|
74
74
|
display: "flex",
|
|
75
75
|
flexDirection: "column"
|
|
76
76
|
},
|
|
77
|
-
children: [/* @__PURE__ */
|
|
77
|
+
children: [/* @__PURE__ */ m(n, {
|
|
78
78
|
"aria-hidden": !0,
|
|
79
79
|
sx: {
|
|
80
80
|
height: "90px",
|
|
81
81
|
width: "160px"
|
|
82
82
|
},
|
|
83
83
|
children: R(t)
|
|
84
|
-
}), /* @__PURE__ */
|
|
85
|
-
control: /* @__PURE__ */
|
|
86
|
-
label: j("Option {{n}}", { n:
|
|
84
|
+
}), /* @__PURE__ */ m(i, {
|
|
85
|
+
control: /* @__PURE__ */ m(s, {}),
|
|
86
|
+
label: j("Option {{n}}", { n: r + 1 }),
|
|
87
87
|
sx: { m: 0 },
|
|
88
88
|
value: e
|
|
89
89
|
})]
|
|
90
90
|
}, e))
|
|
91
91
|
})
|
|
92
92
|
}),
|
|
93
|
-
!!T && /* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
93
|
+
!!T && /* @__PURE__ */ m(x, { inline: !0 }),
|
|
94
|
+
/* @__PURE__ */ m(a, {
|
|
95
95
|
sx: { ml: 0 },
|
|
96
|
-
children: /* @__PURE__ */
|
|
96
|
+
children: /* @__PURE__ */ m(b, {
|
|
97
97
|
errorMessage: I,
|
|
98
98
|
infoMessage: C,
|
|
99
99
|
noIndent: !0,
|
|
@@ -117,7 +117,7 @@ var S = ({ disabled: S, infoMessage: C, label: w, loading: T, name: E, onChange:
|
|
|
117
117
|
R,
|
|
118
118
|
z
|
|
119
119
|
]);
|
|
120
|
-
return /* @__PURE__ */ g
|
|
120
|
+
return /* @__PURE__ */ m(g, {
|
|
121
121
|
control: P,
|
|
122
122
|
defaultValue: "",
|
|
123
123
|
name: E,
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { CASEDB_QUERY_KEY as e } from "../../../constants/query.js";
|
|
2
2
|
import { CaseUtil as t } from "../../../utils/CaseUtil/index.js";
|
|
3
3
|
import { EventBusService as n } from "../../../classes/services/EventBusService/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { array as re, boolean as ie, object as l, string as u } from "yup";
|
|
4
|
+
import { t as r } from "../../../_chunks/yup.js";
|
|
5
|
+
import { useCaseTypeOptionsQuery as i } from "../../../dataHooks/useCaseTypesQuery/index.js";
|
|
6
|
+
import { useDataCollectionOptionsQuery as a } from "../../../dataHooks/useDataCollectionsQuery/index.js";
|
|
7
|
+
import { t as o } from "../../../_chunks/CreateEventDialogSuccessNotificationMessage.js";
|
|
8
|
+
import { useCaseSetCategoryOptionsQuery as s } from "../../../dataHooks/useCaseSetCategoriesQuery/index.js";
|
|
9
|
+
import { useCaseSetStatusOptionsQuery as c } from "../../../dataHooks/useCaseSetStatusesQuery/index.js";
|
|
10
|
+
import { t as ee } from "../../../_chunks/CasesAlreadyInCaseSetWarning.js";
|
|
11
|
+
import { array as te, boolean as l, object as ne, string as u } from "yup";
|
|
13
12
|
import { CaseDbCaseApi as d } from "@gen-epix/api-casedb";
|
|
14
13
|
import { QueryClientService as f } from "@gen-epix/ui-client-common/classes/services/QueryClientService";
|
|
15
14
|
import { FORM_FIELD_DEFINITION_TYPE as p } from "@gen-epix/ui-core-form/models/form";
|
|
16
15
|
import { Alert as m, Box as h } from "@mui/material";
|
|
17
|
-
import { useCallback as g, useEffect as _, useId as
|
|
18
|
-
import { useTranslation as
|
|
19
|
-
import { jsx as
|
|
20
|
-
import { ResponseHandler as
|
|
21
|
-
import { useItemQuery as
|
|
22
|
-
import { useArray as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import C from "@
|
|
16
|
+
import { useCallback as g, useEffect as _, useId as v, useMemo as y } from "react";
|
|
17
|
+
import { useTranslation as re } from "react-i18next";
|
|
18
|
+
import { jsx as b, jsxs as ie } from "react/jsx-runtime";
|
|
19
|
+
import { ResponseHandler as ae } from "@gen-epix/ui-client-common/components/ui/ResponseHandler";
|
|
20
|
+
import { useItemQuery as x } from "@gen-epix/ui-client-common/hooks/useItemQuery";
|
|
21
|
+
import { useArray as oe } from "@gen-epix/ui-core/hooks/useArray";
|
|
22
|
+
import { useForm as se, useWatch as ce } from "react-hook-form";
|
|
23
|
+
import { GenericForm as le } from "@gen-epix/ui-core-form/components/helpers/GenericForm";
|
|
24
|
+
import { withDialog as S } from "@gen-epix/ui-core-components/hoc/withDialog";
|
|
25
|
+
import { TestIdUtil as C } from "@gen-epix/ui-core/utils/TestIdUtil";
|
|
26
|
+
import ue from "@mui/icons-material/Save";
|
|
27
27
|
import { SchemaUtil as w } from "@gen-epix/ui-core-form/utils/SchemaUtil";
|
|
28
28
|
import { LoadableUtil as T } from "@gen-epix/ui-client-common/utils/LoadableUtil";
|
|
29
29
|
import { useCreateMutation as E } from "@gen-epix/ui-client-common/hooks/useCreateMutation";
|
|
30
30
|
//#region src/components/ui/CreateEventDialog/CreateEventDialog.tsx
|
|
31
|
-
var D =
|
|
32
|
-
let A =
|
|
31
|
+
var D = S(({ onActionsChange: S, onClose: D, onTitleChange: O, openProps: k }) => {
|
|
32
|
+
let A = i(), j = s(), M = c(), N = a(), { t: P } = re(), F = v(), I = y(() => ne().shape({
|
|
33
33
|
case_set_category_id: u().uuid4().required(),
|
|
34
34
|
case_set_status_id: u().uuid4().required(),
|
|
35
35
|
case_type_id: u().uuid4().required(),
|
|
@@ -37,10 +37,10 @@ var D = x(({ onActionsChange: x, onClose: D, onTitleChange: O, openProps: k }) =
|
|
|
37
37
|
create_in_data_collection_id: u().uuid4().required(),
|
|
38
38
|
description: w.description.required(),
|
|
39
39
|
name: w.name,
|
|
40
|
-
share_in_data_collection_ids:
|
|
41
|
-
shouldApplySharingToCases:
|
|
42
|
-
}), []), L =
|
|
43
|
-
resolver:
|
|
40
|
+
share_in_data_collection_ids: te().of(u().uuid4()),
|
|
41
|
+
shouldApplySharingToCases: l().required()
|
|
42
|
+
}), []), L = se({
|
|
43
|
+
resolver: r(I),
|
|
44
44
|
values: {
|
|
45
45
|
case_set_category_id: null,
|
|
46
46
|
case_set_status_id: null,
|
|
@@ -52,17 +52,17 @@ var D = x(({ onActionsChange: x, onClose: D, onTitleChange: O, openProps: k }) =
|
|
|
52
52
|
share_in_data_collection_ids: [],
|
|
53
53
|
shouldApplySharingToCases: !0
|
|
54
54
|
}
|
|
55
|
-
}), { control: R, handleSubmit: z, setValue: B } = L, { case_type_id: V, create_in_data_collection_id: H, share_in_data_collection_ids: U } =
|
|
55
|
+
}), { control: R, handleSubmit: z, setValue: B } = L, { case_type_id: V, create_in_data_collection_id: H, share_in_data_collection_ids: U } = ce({ control: R }), W = k.completeCaseType?.id ?? V, { data: de, error: fe, isLoading: G } = x({
|
|
56
56
|
baseQueryKey: e.COMPLETE_CASE_TYPES,
|
|
57
57
|
itemId: W,
|
|
58
58
|
useQueryOptions: {
|
|
59
59
|
enabled: !k.completeCaseType && !!W,
|
|
60
60
|
queryFn: async ({ signal: e }) => (await d.getInstance().completeCaseTypesGetOne(W, { signal: e })).data
|
|
61
61
|
}
|
|
62
|
-
}), K = k.completeCaseType ?? de, q =
|
|
62
|
+
}), K = k.completeCaseType ?? de, q = y(() => !K || !N.options?.length ? [] : N.options.filter((e) => {
|
|
63
63
|
let t = e.value;
|
|
64
64
|
return K.case_type_access_abacs[t]?.is_private && K.case_type_access_abacs[t]?.add_case_set;
|
|
65
|
-
}), [K, N.options]), J =
|
|
65
|
+
}), [K, N.options]), J = y(() => K ? N.options.filter((e) => {
|
|
66
66
|
let t = e.value;
|
|
67
67
|
return H !== t && K.case_type_access_abacs[t]?.add_case_set;
|
|
68
68
|
}) : [], [
|
|
@@ -89,7 +89,7 @@ var D = x(({ onActionsChange: x, onClose: D, onTitleChange: O, openProps: k }) =
|
|
|
89
89
|
N.isLoading,
|
|
90
90
|
B
|
|
91
91
|
]);
|
|
92
|
-
let pe =
|
|
92
|
+
let pe = y(() => [
|
|
93
93
|
{
|
|
94
94
|
definition: p.AUTOCOMPLETE,
|
|
95
95
|
disabled: !!k.completeCaseType,
|
|
@@ -164,7 +164,7 @@ var D = x(({ onActionsChange: x, onClose: D, onTitleChange: O, openProps: k }) =
|
|
|
164
164
|
J,
|
|
165
165
|
U.length,
|
|
166
166
|
P
|
|
167
|
-
]), Y =
|
|
167
|
+
]), Y = oe([
|
|
168
168
|
A,
|
|
169
169
|
j,
|
|
170
170
|
M,
|
|
@@ -190,7 +190,7 @@ var D = x(({ onActionsChange: x, onClose: D, onTitleChange: O, openProps: k }) =
|
|
|
190
190
|
],
|
|
191
191
|
getErrorNotificationMessage: (e, t) => P("Failed to create event: {{name}}", { name: e.name }),
|
|
192
192
|
getProgressNotificationMessage: (e) => P("Creating event: {{name}}...", { name: e.name }),
|
|
193
|
-
getSuccessNotificationMessage: (e) => /* @__PURE__ */
|
|
193
|
+
getSuccessNotificationMessage: (e) => /* @__PURE__ */ b(o, {
|
|
194
194
|
caseSet: e,
|
|
195
195
|
isCreating: !0
|
|
196
196
|
}),
|
|
@@ -210,7 +210,7 @@ var D = x(({ onActionsChange: x, onClose: D, onTitleChange: O, openProps: k }) =
|
|
|
210
210
|
data_collection_ids: e.share_in_data_collection_ids
|
|
211
211
|
})).data,
|
|
212
212
|
resourceQueryKey: f.getInstance().getGenericKey(e.CASE_SETS)
|
|
213
|
-
}), $ =
|
|
213
|
+
}), $ = y(() => X || A.options?.length === 0 || N.options?.length === 0, [
|
|
214
214
|
X,
|
|
215
215
|
A.options?.length,
|
|
216
216
|
N.options?.length
|
|
@@ -218,22 +218,22 @@ var D = x(({ onActionsChange: x, onClose: D, onTitleChange: O, openProps: k }) =
|
|
|
218
218
|
_(() => {
|
|
219
219
|
let e = [];
|
|
220
220
|
(X || !$) && e.push({
|
|
221
|
-
...
|
|
221
|
+
...C.createAttributes("CreateEventDialog-saveButton"),
|
|
222
222
|
autoFocus: !0,
|
|
223
223
|
color: "secondary",
|
|
224
224
|
disabled: X || Z,
|
|
225
225
|
form: F,
|
|
226
226
|
label: P`Save`,
|
|
227
227
|
loading: X,
|
|
228
|
-
startIcon: /* @__PURE__ */
|
|
228
|
+
startIcon: /* @__PURE__ */ b(ue, {}),
|
|
229
229
|
type: "submit",
|
|
230
230
|
variant: "contained"
|
|
231
|
-
}),
|
|
231
|
+
}), S(e);
|
|
232
232
|
}, [
|
|
233
233
|
F,
|
|
234
234
|
Z,
|
|
235
235
|
X,
|
|
236
|
-
|
|
236
|
+
S,
|
|
237
237
|
P,
|
|
238
238
|
A.options?.length,
|
|
239
239
|
$
|
|
@@ -250,22 +250,22 @@ var D = x(({ onActionsChange: x, onClose: D, onTitleChange: O, openProps: k }) =
|
|
|
250
250
|
O,
|
|
251
251
|
k,
|
|
252
252
|
P
|
|
253
|
-
]), /* @__PURE__ */
|
|
253
|
+
]), /* @__PURE__ */ ie(ae, {
|
|
254
254
|
error: fe,
|
|
255
255
|
inlineSpinner: !0,
|
|
256
256
|
isLoading: Z,
|
|
257
257
|
loadables: Y,
|
|
258
|
-
children: [$ ? /* @__PURE__ */
|
|
258
|
+
children: [$ ? /* @__PURE__ */ b(h, { children: /* @__PURE__ */ b(m, {
|
|
259
259
|
severity: "error",
|
|
260
260
|
children: P`You do not have the required permissions to create an event. Contact your organization administrator for assistance.`
|
|
261
|
-
}) }) : /* @__PURE__ */
|
|
261
|
+
}) }) : /* @__PURE__ */ b(le, {
|
|
262
262
|
disableAll: $,
|
|
263
263
|
formFieldDefinitions: pe,
|
|
264
264
|
formId: F,
|
|
265
265
|
formMethods: L,
|
|
266
266
|
onSubmit: z(ge),
|
|
267
267
|
schema: I
|
|
268
|
-
}), k.rows?.length > 0 && /* @__PURE__ */
|
|
268
|
+
}), k.rows?.length > 0 && /* @__PURE__ */ b(ee, { cases: k.rows })]
|
|
269
269
|
});
|
|
270
270
|
}, {
|
|
271
271
|
fullWidth: !0,
|