@tesouro/embedded-components-react 0.7.30 → 0.7.31
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/lib/monite-sdk.d.ts +0 -1
- package/dist/lib/monite-sdk.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +55 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +53 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +36 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +71 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +6 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +42 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +0 -577
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +10 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +54 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +120 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +21 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +56 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +69 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +25 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +1 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +181 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +64 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +31 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +6 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +11 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +111 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +62 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +38 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +6 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +359 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +1 -412
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +182 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +96 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +44 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +48 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +82 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +7 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +305 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +1 -307
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +3 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +102 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +172 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +116 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +191 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +11 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +138 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +1 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +166 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +25 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +5 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +42 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +27 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +1 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +35 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +166 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +202 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +87 -207
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +17 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +158 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +87 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +42 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +131 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +4 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +31 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +180 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +14 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +204 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +88 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +61 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +54 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +83 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +40 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +75 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +71 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +32 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +97 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +0 -97
|
@@ -1 +1,160 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { getCounterpartName as t } from "./index53.js";
|
|
3
|
+
import { useDialog as n } from "./index122.js";
|
|
4
|
+
import "./index123.js";
|
|
5
|
+
import { useApprovalPolicyTrigger as r } from "./index184.js";
|
|
6
|
+
import { User as i } from "./index181.js";
|
|
7
|
+
import "./index182.js";
|
|
8
|
+
import { useApprovalPolicyScript as a } from "./index192.js";
|
|
9
|
+
import { Role as o } from "./index194.js";
|
|
10
|
+
import "./index195.js";
|
|
11
|
+
import { DialogFooter as s } from "./index215.js";
|
|
12
|
+
import "./index216.js";
|
|
13
|
+
import { DialogHeader as c } from "./index217.js";
|
|
14
|
+
import "./index222.js";
|
|
15
|
+
import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
16
|
+
import { toast as f } from "react-hot-toast";
|
|
17
|
+
import { Chip as p, DialogContent as m, Paper as h, Stack as g, Table as _, TableBody as v, TableCell as y, TableHead as b, TableRow as x, Typography as S } from "@mui/material";
|
|
18
|
+
import { Trans as C, useLingui as w } from "@lingui/react";
|
|
19
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js
|
|
20
|
+
var T = ({ approvalPolicy: T, setIsEdit: E }) => {
|
|
21
|
+
let { i18n: D } = w(), O = n(), { api: k, queryClient: A } = e(), { triggers: j, getTriggerLabel: M, getAmountLabel: N } = r({ approvalPolicy: T }), { rules: P, getRuleLabel: F } = a({ approvalPolicy: T }), { data: I } = k.finops.getCounterparts.useQuery({ query: { id__in: Array.isArray(j?.counterpart_id) ? j.counterpart_id : [] } }, { enabled: !!j?.counterpart_id?.length }), L = k.finops.deleteApprovalPoliciesId.useMutation(void 0, { onSuccess: async () => {
|
|
22
|
+
await Promise.all([k.finops.getApprovalPolicies.invalidateQueries(A), k.finops.getApprovalPoliciesId.invalidateQueries({ parameters: { path: { approval_policy_id: T.id } } }, A)]), f.success(D._("Approval policy has been deleted"));
|
|
23
|
+
} }), R = Object.keys(j).map((e) => {
|
|
24
|
+
let n = M(e), r;
|
|
25
|
+
switch (e) {
|
|
26
|
+
case "was_created_by_user_id":
|
|
27
|
+
Array.isArray(j[e]) && (r = /* @__PURE__ */ u(g, {
|
|
28
|
+
direction: "row",
|
|
29
|
+
gap: 1,
|
|
30
|
+
sx: { flexWrap: "wrap" },
|
|
31
|
+
children: j[e].map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
|
|
32
|
+
}));
|
|
33
|
+
break;
|
|
34
|
+
case "counterpart_id":
|
|
35
|
+
r = /* @__PURE__ */ u(g, {
|
|
36
|
+
direction: "row",
|
|
37
|
+
gap: 1,
|
|
38
|
+
sx: { flexWrap: "wrap" },
|
|
39
|
+
children: I?.data.map((e) => /* @__PURE__ */ u(p, { label: t(e) }, e.id))
|
|
40
|
+
});
|
|
41
|
+
break;
|
|
42
|
+
case "amount":
|
|
43
|
+
r = /* @__PURE__ */ u("p", { children: N(j.amount?.value ?? [], j.amount?.currency ?? "EUR") });
|
|
44
|
+
break;
|
|
45
|
+
default: r = e;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
label: n,
|
|
49
|
+
value: r
|
|
50
|
+
};
|
|
51
|
+
}), z = P && Object.keys(P)?.map((e) => {
|
|
52
|
+
if (!P[e]) return null;
|
|
53
|
+
switch (e) {
|
|
54
|
+
case "single_user": return {
|
|
55
|
+
label: F(e),
|
|
56
|
+
value: /* @__PURE__ */ u(i, { userId: P[e].userId })
|
|
57
|
+
};
|
|
58
|
+
case "users_from_list": return {
|
|
59
|
+
label: F(e, P[e].count),
|
|
60
|
+
value: /* @__PURE__ */ u(g, {
|
|
61
|
+
direction: "column",
|
|
62
|
+
gap: 1,
|
|
63
|
+
sx: { flexWrap: "wrap" },
|
|
64
|
+
children: P[e].userIds?.map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
|
|
65
|
+
})
|
|
66
|
+
};
|
|
67
|
+
case "roles_from_list": return {
|
|
68
|
+
label: F(e),
|
|
69
|
+
value: /* @__PURE__ */ u(g, {
|
|
70
|
+
direction: "row",
|
|
71
|
+
gap: 1,
|
|
72
|
+
sx: { flexWrap: "wrap" },
|
|
73
|
+
children: P[e].roleIds?.map((e) => /* @__PURE__ */ u(o, {
|
|
74
|
+
roleId: e,
|
|
75
|
+
quoted: !0
|
|
76
|
+
}, e))
|
|
77
|
+
})
|
|
78
|
+
};
|
|
79
|
+
case "approval_chain": return {
|
|
80
|
+
label: F(e),
|
|
81
|
+
value: /* @__PURE__ */ u(g, {
|
|
82
|
+
direction: "column",
|
|
83
|
+
spacing: .5,
|
|
84
|
+
children: P[e].chainUserIds?.map((e) => e ? /* @__PURE__ */ u(i, { userId: e }, e) : null)
|
|
85
|
+
})
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
return /* @__PURE__ */ d(l, { children: [
|
|
90
|
+
/* @__PURE__ */ u(c, {
|
|
91
|
+
title: T?.name,
|
|
92
|
+
closeButtonTooltip: D._("Close approval policy details")
|
|
93
|
+
}),
|
|
94
|
+
/* @__PURE__ */ d(m, { children: [
|
|
95
|
+
/* @__PURE__ */ u(S, {
|
|
96
|
+
variant: "h5",
|
|
97
|
+
mt: 2,
|
|
98
|
+
mb: 1,
|
|
99
|
+
children: D._("Description")
|
|
100
|
+
}),
|
|
101
|
+
T?.description && /* @__PURE__ */ u(S, {
|
|
102
|
+
variant: "body1",
|
|
103
|
+
children: T.description
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ u(S, {
|
|
106
|
+
variant: "h5",
|
|
107
|
+
mt: 4,
|
|
108
|
+
mb: 1,
|
|
109
|
+
children: D._("Conditions")
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ u(S, {
|
|
112
|
+
variant: "body1",
|
|
113
|
+
mb: 1,
|
|
114
|
+
children: /* @__PURE__ */ u(C, {
|
|
115
|
+
id: "INKhSX",
|
|
116
|
+
components: { 0: /* @__PURE__ */ u("strong", {}) }
|
|
117
|
+
})
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ u(h, {
|
|
120
|
+
variant: "outlined",
|
|
121
|
+
children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Condition") }), /* @__PURE__ */ u(y, { children: D._("Criteria") })] }) }), /* @__PURE__ */ u(v, { children: R.length > 0 ? R.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e.label }), /* @__PURE__ */ u(y, { children: e.value })] }, e.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
|
|
122
|
+
colSpan: 2,
|
|
123
|
+
children: D._("No conditions")
|
|
124
|
+
}) }) })] })
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ u(S, {
|
|
127
|
+
variant: "h5",
|
|
128
|
+
mt: 4,
|
|
129
|
+
mb: 1,
|
|
130
|
+
children: D._("Approval flow")
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ u(S, {
|
|
133
|
+
variant: "body1",
|
|
134
|
+
mb: 1,
|
|
135
|
+
children: D._("Who needs to approve the document and how:")
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ u(h, {
|
|
138
|
+
variant: "outlined",
|
|
139
|
+
children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Approval type") }), /* @__PURE__ */ u(y, { children: D._("Users or Roles") })] }) }), /* @__PURE__ */ u(v, { children: z && z.length > 0 ? z.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e?.label }), /* @__PURE__ */ u(y, { children: e?.value })] }, e?.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
|
|
140
|
+
colSpan: 2,
|
|
141
|
+
children: D._("No rules")
|
|
142
|
+
}) }) })] })
|
|
143
|
+
})
|
|
144
|
+
] }),
|
|
145
|
+
/* @__PURE__ */ u(s, {
|
|
146
|
+
primaryButton: {
|
|
147
|
+
label: D._("Edit"),
|
|
148
|
+
onClick: () => E(!0)
|
|
149
|
+
},
|
|
150
|
+
deleteButton: {
|
|
151
|
+
onClick: () => {
|
|
152
|
+
L.mutate({ path: { approval_policy_id: T.id } }, { onSuccess: () => O?.onClose?.() });
|
|
153
|
+
},
|
|
154
|
+
isLoading: L.isPending
|
|
155
|
+
}
|
|
156
|
+
})
|
|
157
|
+
] });
|
|
158
|
+
};
|
|
159
|
+
//#endregion
|
|
160
|
+
export { T as ApprovalPolicyView };
|
|
@@ -1,160 +1 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
-
import { getCounterpartName as t } from "./index53.js";
|
|
3
|
-
import { useDialog as n } from "./index122.js";
|
|
4
|
-
import "./index123.js";
|
|
5
|
-
import { useApprovalPolicyTrigger as r } from "./index184.js";
|
|
6
|
-
import { User as i } from "./index181.js";
|
|
7
|
-
import "./index182.js";
|
|
8
|
-
import { useApprovalPolicyScript as a } from "./index192.js";
|
|
9
|
-
import { Role as o } from "./index194.js";
|
|
10
|
-
import "./index195.js";
|
|
11
|
-
import { DialogFooter as s } from "./index216.js";
|
|
12
|
-
import "./index217.js";
|
|
13
|
-
import { DialogHeader as c } from "./index218.js";
|
|
14
1
|
import "./index223.js";
|
|
15
|
-
import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
|
|
16
|
-
import { toast as f } from "react-hot-toast";
|
|
17
|
-
import { Chip as p, DialogContent as m, Paper as h, Stack as g, Table as _, TableBody as v, TableCell as y, TableHead as b, TableRow as x, Typography as S } from "@mui/material";
|
|
18
|
-
import { Trans as C, useLingui as w } from "@lingui/react";
|
|
19
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js
|
|
20
|
-
var T = ({ approvalPolicy: T, setIsEdit: E }) => {
|
|
21
|
-
let { i18n: D } = w(), O = n(), { api: k, queryClient: A } = e(), { triggers: j, getTriggerLabel: M, getAmountLabel: N } = r({ approvalPolicy: T }), { rules: P, getRuleLabel: F } = a({ approvalPolicy: T }), { data: I } = k.finops.getCounterparts.useQuery({ query: { id__in: Array.isArray(j?.counterpart_id) ? j.counterpart_id : [] } }, { enabled: !!j?.counterpart_id?.length }), L = k.finops.deleteApprovalPoliciesId.useMutation(void 0, { onSuccess: async () => {
|
|
22
|
-
await Promise.all([k.finops.getApprovalPolicies.invalidateQueries(A), k.finops.getApprovalPoliciesId.invalidateQueries({ parameters: { path: { approval_policy_id: T.id } } }, A)]), f.success(D._("Approval policy has been deleted"));
|
|
23
|
-
} }), R = Object.keys(j).map((e) => {
|
|
24
|
-
let n = M(e), r;
|
|
25
|
-
switch (e) {
|
|
26
|
-
case "was_created_by_user_id":
|
|
27
|
-
Array.isArray(j[e]) && (r = /* @__PURE__ */ u(g, {
|
|
28
|
-
direction: "row",
|
|
29
|
-
gap: 1,
|
|
30
|
-
sx: { flexWrap: "wrap" },
|
|
31
|
-
children: j[e].map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
|
|
32
|
-
}));
|
|
33
|
-
break;
|
|
34
|
-
case "counterpart_id":
|
|
35
|
-
r = /* @__PURE__ */ u(g, {
|
|
36
|
-
direction: "row",
|
|
37
|
-
gap: 1,
|
|
38
|
-
sx: { flexWrap: "wrap" },
|
|
39
|
-
children: I?.data.map((e) => /* @__PURE__ */ u(p, { label: t(e) }, e.id))
|
|
40
|
-
});
|
|
41
|
-
break;
|
|
42
|
-
case "amount":
|
|
43
|
-
r = /* @__PURE__ */ u("p", { children: N(j.amount?.value ?? [], j.amount?.currency ?? "EUR") });
|
|
44
|
-
break;
|
|
45
|
-
default: r = e;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
label: n,
|
|
49
|
-
value: r
|
|
50
|
-
};
|
|
51
|
-
}), z = P && Object.keys(P)?.map((e) => {
|
|
52
|
-
if (!P[e]) return null;
|
|
53
|
-
switch (e) {
|
|
54
|
-
case "single_user": return {
|
|
55
|
-
label: F(e),
|
|
56
|
-
value: /* @__PURE__ */ u(i, { userId: P[e].userId })
|
|
57
|
-
};
|
|
58
|
-
case "users_from_list": return {
|
|
59
|
-
label: F(e, P[e].count),
|
|
60
|
-
value: /* @__PURE__ */ u(g, {
|
|
61
|
-
direction: "column",
|
|
62
|
-
gap: 1,
|
|
63
|
-
sx: { flexWrap: "wrap" },
|
|
64
|
-
children: P[e].userIds?.map((e) => /* @__PURE__ */ u(i, { userId: e }, e))
|
|
65
|
-
})
|
|
66
|
-
};
|
|
67
|
-
case "roles_from_list": return {
|
|
68
|
-
label: F(e),
|
|
69
|
-
value: /* @__PURE__ */ u(g, {
|
|
70
|
-
direction: "row",
|
|
71
|
-
gap: 1,
|
|
72
|
-
sx: { flexWrap: "wrap" },
|
|
73
|
-
children: P[e].roleIds?.map((e) => /* @__PURE__ */ u(o, {
|
|
74
|
-
roleId: e,
|
|
75
|
-
quoted: !0
|
|
76
|
-
}, e))
|
|
77
|
-
})
|
|
78
|
-
};
|
|
79
|
-
case "approval_chain": return {
|
|
80
|
-
label: F(e),
|
|
81
|
-
value: /* @__PURE__ */ u(g, {
|
|
82
|
-
direction: "column",
|
|
83
|
-
spacing: .5,
|
|
84
|
-
children: P[e].chainUserIds?.map((e) => e ? /* @__PURE__ */ u(i, { userId: e }, e) : null)
|
|
85
|
-
})
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
return /* @__PURE__ */ d(l, { children: [
|
|
90
|
-
/* @__PURE__ */ u(c, {
|
|
91
|
-
title: T?.name,
|
|
92
|
-
closeButtonTooltip: D._("Close approval policy details")
|
|
93
|
-
}),
|
|
94
|
-
/* @__PURE__ */ d(m, { children: [
|
|
95
|
-
/* @__PURE__ */ u(S, {
|
|
96
|
-
variant: "h5",
|
|
97
|
-
mt: 2,
|
|
98
|
-
mb: 1,
|
|
99
|
-
children: D._("Description")
|
|
100
|
-
}),
|
|
101
|
-
T?.description && /* @__PURE__ */ u(S, {
|
|
102
|
-
variant: "body1",
|
|
103
|
-
children: T.description
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ u(S, {
|
|
106
|
-
variant: "h5",
|
|
107
|
-
mt: 4,
|
|
108
|
-
mb: 1,
|
|
109
|
-
children: D._("Conditions")
|
|
110
|
-
}),
|
|
111
|
-
/* @__PURE__ */ u(S, {
|
|
112
|
-
variant: "body1",
|
|
113
|
-
mb: 1,
|
|
114
|
-
children: /* @__PURE__ */ u(C, {
|
|
115
|
-
id: "INKhSX",
|
|
116
|
-
components: { 0: /* @__PURE__ */ u("strong", {}) }
|
|
117
|
-
})
|
|
118
|
-
}),
|
|
119
|
-
/* @__PURE__ */ u(h, {
|
|
120
|
-
variant: "outlined",
|
|
121
|
-
children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Condition") }), /* @__PURE__ */ u(y, { children: D._("Criteria") })] }) }), /* @__PURE__ */ u(v, { children: R.length > 0 ? R.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e.label }), /* @__PURE__ */ u(y, { children: e.value })] }, e.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
|
|
122
|
-
colSpan: 2,
|
|
123
|
-
children: D._("No conditions")
|
|
124
|
-
}) }) })] })
|
|
125
|
-
}),
|
|
126
|
-
/* @__PURE__ */ u(S, {
|
|
127
|
-
variant: "h5",
|
|
128
|
-
mt: 4,
|
|
129
|
-
mb: 1,
|
|
130
|
-
children: D._("Approval flow")
|
|
131
|
-
}),
|
|
132
|
-
/* @__PURE__ */ u(S, {
|
|
133
|
-
variant: "body1",
|
|
134
|
-
mb: 1,
|
|
135
|
-
children: D._("Who needs to approve the document and how:")
|
|
136
|
-
}),
|
|
137
|
-
/* @__PURE__ */ u(h, {
|
|
138
|
-
variant: "outlined",
|
|
139
|
-
children: /* @__PURE__ */ d(_, { children: [/* @__PURE__ */ u(b, { children: /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: D._("Approval type") }), /* @__PURE__ */ u(y, { children: D._("Users or Roles") })] }) }), /* @__PURE__ */ u(v, { children: z && z.length > 0 ? z.map((e) => /* @__PURE__ */ d(x, { children: [/* @__PURE__ */ u(y, { children: e?.label }), /* @__PURE__ */ u(y, { children: e?.value })] }, e?.label)) : /* @__PURE__ */ u(x, { children: /* @__PURE__ */ u(y, {
|
|
140
|
-
colSpan: 2,
|
|
141
|
-
children: D._("No rules")
|
|
142
|
-
}) }) })] })
|
|
143
|
-
})
|
|
144
|
-
] }),
|
|
145
|
-
/* @__PURE__ */ u(s, {
|
|
146
|
-
primaryButton: {
|
|
147
|
-
label: D._("Edit"),
|
|
148
|
-
onClick: () => E(!0)
|
|
149
|
-
},
|
|
150
|
-
deleteButton: {
|
|
151
|
-
onClick: () => {
|
|
152
|
-
L.mutate({ path: { approval_policy_id: T.id } }, { onSuccess: () => O?.onClose?.() });
|
|
153
|
-
},
|
|
154
|
-
isLoading: L.isPending
|
|
155
|
-
}
|
|
156
|
-
})
|
|
157
|
-
] });
|
|
158
|
-
};
|
|
159
|
-
//#endregion
|
|
160
|
-
export { T as ApprovalPolicyView };
|
|
@@ -1 +1,27 @@
|
|
|
1
|
+
import { useApprovalPolicyById as e } from "./index140.js";
|
|
2
|
+
import "./index148.js";
|
|
3
|
+
import { LoadingPage as t } from "./index177.js";
|
|
4
|
+
import "./index178.js";
|
|
5
|
+
import { ApprovalPolicyForm as n } from "./index220.js";
|
|
6
|
+
import "./index221.js";
|
|
7
|
+
import { ApprovalPolicyView as r } from "./index223.js";
|
|
1
8
|
import "./index224.js";
|
|
9
|
+
import { useState as i } from "react";
|
|
10
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js
|
|
12
|
+
var o = ({ id: o, onCreated: s, onUpdated: c }) => {
|
|
13
|
+
let [l, u] = i(!1), { data: d, isLoading: f } = e(o);
|
|
14
|
+
return o && f ? /* @__PURE__ */ a(t, {}) : !l && d ? /* @__PURE__ */ a(r, {
|
|
15
|
+
approvalPolicy: d,
|
|
16
|
+
setIsEdit: u
|
|
17
|
+
}) : l && d ? /* @__PURE__ */ a(n, {
|
|
18
|
+
approvalPolicy: d,
|
|
19
|
+
setIsEdit: u,
|
|
20
|
+
onUpdated: c
|
|
21
|
+
}) : /* @__PURE__ */ a(n, {
|
|
22
|
+
setIsEdit: u,
|
|
23
|
+
onCreated: s
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { o as ApprovalPolicyDetails };
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
import { useApprovalPolicyById as e } from "./index140.js";
|
|
2
|
-
import "./index148.js";
|
|
3
|
-
import { LoadingPage as t } from "./index177.js";
|
|
4
|
-
import "./index178.js";
|
|
5
|
-
import { ApprovalPolicyForm as n } from "./index221.js";
|
|
6
|
-
import "./index222.js";
|
|
7
|
-
import { ApprovalPolicyView as r } from "./index224.js";
|
|
8
1
|
import "./index225.js";
|
|
9
|
-
import { useState as i } from "react";
|
|
10
|
-
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js
|
|
12
|
-
var o = ({ id: o, onCreated: s, onUpdated: c }) => {
|
|
13
|
-
let [l, u] = i(!1), { data: d, isLoading: f } = e(o);
|
|
14
|
-
return o && f ? /* @__PURE__ */ a(t, {}) : !l && d ? /* @__PURE__ */ a(r, {
|
|
15
|
-
approvalPolicy: d,
|
|
16
|
-
setIsEdit: u
|
|
17
|
-
}) : l && d ? /* @__PURE__ */ a(n, {
|
|
18
|
-
approvalPolicy: d,
|
|
19
|
-
setIsEdit: u,
|
|
20
|
-
onUpdated: c
|
|
21
|
-
}) : /* @__PURE__ */ a(n, {
|
|
22
|
-
setIsEdit: u,
|
|
23
|
-
onCreated: s
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
export { o as ApprovalPolicyDetails };
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { createElement as e } from "react";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js
|
|
3
|
+
var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
width: n,
|
|
6
|
+
height: n,
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
fill: t,
|
|
9
|
+
...r
|
|
10
|
+
}, e("path", { d: "M3.5,6a1,1,0,1,0,1,1A1,1,0,0,0,3.5,6Zm4,2h14a1,1,0,0,0,0-2H7.5a1,1,0,0,0,0,2Zm0,3a1,1,0,1,0,1,1A1,1,0,0,0,7.5,11Zm4,5a1,1,0,1,0,1,1A1,1,0,0,0,11.5,16Zm10-5h-10a1,1,0,0,0,0,2h10a1,1,0,0,0,0-2Zm0,5h-6a1,1,0,0,0,0,2h6a1,1,0,0,0,0-2Z" }));
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as UListUiAlt };
|
|
@@ -7,6 +7,6 @@ var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
|
7
7
|
viewBox: "0 0 24 24",
|
|
8
8
|
fill: t,
|
|
9
9
|
...r
|
|
10
|
-
}, e("path", { d: "
|
|
10
|
+
}, e("path", { d: "M12,2A10,10,0,0,0,4.65,18.76h0a10,10,0,0,0,14.7,0h0A10,10,0,0,0,12,2Zm0,18a8,8,0,0,1-5.55-2.25,6,6,0,0,1,11.1,0A8,8,0,0,1,12,20ZM10,10a2,2,0,1,1,2,2A2,2,0,0,1,10,10Zm8.91,6A8,8,0,0,0,15,12.62a4,4,0,1,0-6,0A8,8,0,0,0,5.09,16,7.92,7.92,0,0,1,4,12a8,8,0,0,1,16,0A7.92,7.92,0,0,1,18.91,16Z" }));
|
|
11
11
|
//#endregion
|
|
12
|
-
export { t as
|
|
12
|
+
export { t as UUserCircle };
|
|
@@ -7,6 +7,6 @@ var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
|
|
|
7
7
|
viewBox: "0 0 24 24",
|
|
8
8
|
fill: t,
|
|
9
9
|
...r
|
|
10
|
-
}, e("path", { d: "M12,
|
|
10
|
+
}, e("path", { d: "M12.3,12.22A4.92,4.92,0,0,0,14,8.5a5,5,0,0,0-10,0,4.92,4.92,0,0,0,1.7,3.72A8,8,0,0,0,1,19.5a1,1,0,0,0,2,0,6,6,0,0,1,12,0,1,1,0,0,0,2,0A8,8,0,0,0,12.3,12.22ZM9,11.5a3,3,0,1,1,3-3A3,3,0,0,1,9,11.5Zm9.74.32A5,5,0,0,0,15,3.5a1,1,0,0,0,0,2,3,3,0,0,1,3,3,3,3,0,0,1-1.5,2.59,1,1,0,0,0-.5.84,1,1,0,0,0,.45.86l.39.26.13.07a7,7,0,0,1,4,6.38,1,1,0,0,0,2,0A9,9,0,0,0,18.74,11.82Z" }));
|
|
11
11
|
//#endregion
|
|
12
|
-
export { t as
|
|
12
|
+
export { t as UUsersAlt };
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "@emotion/styled/base";
|
|
2
2
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
function t() {
|
|
4
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
5
|
+
}
|
|
6
|
+
var n = /*#__PURE__*/ e("ul", process.env.NODE_ENV === "production" ? { target: "e10it8hw0" } : {
|
|
7
|
+
target: "e10it8hw0",
|
|
8
|
+
label: "ColumnList"
|
|
9
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
10
|
+
name: "1932ye7",
|
|
11
|
+
styles: "margin:0;padding:0;list-style:none;li{display:flex;gap:4px;align-items:center;}"
|
|
12
|
+
} : {
|
|
13
|
+
name: "1932ye7",
|
|
14
|
+
styles: "margin:0;padding:0;list-style:none;li{display:flex;gap:4px;align-items:center;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL2xpYnMvdGVzb3Vyby1lbWJlZGRlZC1jb21wb25lbnRzLXJlYWN0L21vbml0ZS1zZGsvc3JjL2NvbXBvbmVudHMvYXBwcm92YWxQb2xpY2llcy9BcHByb3ZhbFBvbGljaWVzVGFibGUvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVtQyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9saWJzL3Rlc291cm8tZW1iZWRkZWQtY29tcG9uZW50cy1yZWFjdC9tb25pdGUtc2RrL3NyYy9jb21wb25lbnRzL2FwcHJvdmFsUG9saWNpZXMvQXBwcm92YWxQb2xpY2llc1RhYmxlL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuZXhwb3J0IGNvbnN0IENvbHVtbkxpc3QgPSBzdHlsZWQudWxgXG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgbGlzdC1zdHlsZTogbm9uZTtcblxuICBsaSB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBnYXA6IDRweDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB9XG5gO1xuIl19 */",
|
|
15
|
+
toString: t
|
|
16
|
+
});
|
|
11
17
|
//#endregion
|
|
12
|
-
export {
|
|
18
|
+
export { n as ColumnList };
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import e from "
|
|
1
|
+
import { useApprovalPolicyScript as e } from "./index192.js";
|
|
2
|
+
import { UUserSquare as t } from "./index193.js";
|
|
3
|
+
import { UListUiAlt as n } from "./index227.js";
|
|
4
|
+
import { UUserCircle as r } from "./index228.js";
|
|
5
|
+
import { UUsersAlt as i } from "./index229.js";
|
|
6
|
+
import { ColumnList as a } from "./index230.js";
|
|
7
|
+
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
2
8
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} :
|
|
13
|
-
|
|
14
|
-
styles: "margin:0;padding:0;list-style:none;li{display:flex;gap:4px;align-items:center;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL1Rlc291cm8uUGF5bWVudHMuRnJvbnRlbmRzL2xpYnMvdGVzb3Vyby1lbWJlZGRlZC1jb21wb25lbnRzLXJlYWN0L21vbml0ZS1zZGsvc3JjL2NvbXBvbmVudHMvYXBwcm92YWxQb2xpY2llcy9BcHByb3ZhbFBvbGljaWVzVGFibGUvc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVtQyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9UZXNvdXJvLlBheW1lbnRzLkZyb250ZW5kcy9saWJzL3Rlc291cm8tZW1iZWRkZWQtY29tcG9uZW50cy1yZWFjdC9tb25pdGUtc2RrL3NyYy9jb21wb25lbnRzL2FwcHJvdmFsUG9saWNpZXMvQXBwcm92YWxQb2xpY2llc1RhYmxlL3N0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuZXhwb3J0IGNvbnN0IENvbHVtbkxpc3QgPSBzdHlsZWQudWxgXG4gIG1hcmdpbjogMDtcbiAgcGFkZGluZzogMDtcbiAgbGlzdC1zdHlsZTogbm9uZTtcblxuICBsaSB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBnYXA6IDRweDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB9XG5gO1xuIl19 */",
|
|
15
|
-
toString: t
|
|
16
|
-
});
|
|
9
|
+
var c = ({ approvalPolicy: c }) => {
|
|
10
|
+
let { rules: l, getRuleName: u } = e({ approvalPolicy: c });
|
|
11
|
+
return c ? /* @__PURE__ */ o(a, { children: l && Object.keys(l).map((e) => {
|
|
12
|
+
switch (e) {
|
|
13
|
+
case "single_user": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(r, { width: 18 }), u(e)] }, e);
|
|
14
|
+
case "users_from_list": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(i, { width: 18 }), u(e)] }, e);
|
|
15
|
+
case "roles_from_list": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(t, { width: 18 }), u(e)] }, e);
|
|
16
|
+
case "approval_chain": return /* @__PURE__ */ s("li", { children: [/* @__PURE__ */ o(n, { width: 18 }), u(e)] }, e);
|
|
17
|
+
}
|
|
18
|
+
}) }) : null;
|
|
19
|
+
};
|
|
17
20
|
//#endregion
|
|
18
|
-
export {
|
|
21
|
+
export { c as ApprovalPoliciesRules };
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
1
|
+
import { APPROVAL_STATUS_TO_MUI_ICON_MAP as e, ROW_TO_STATUS_MUI_MAP as t, getRowToStatusTextMap as n } from "./index189.js";
|
|
2
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { Chip as i } from "@mui/material";
|
|
4
|
+
import { useLingui as a } from "@lingui/react";
|
|
5
|
+
import o from "@mui/icons-material/Circle";
|
|
6
|
+
import { styled as s, useThemeProps as c } from "@mui/material/styles";
|
|
8
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js
|
|
9
|
-
var
|
|
10
|
-
let {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
var l = ({ ref: i, ...s }) => {
|
|
9
|
+
let { status: l, icon: d, size: f, variant: p } = c({
|
|
10
|
+
props: s,
|
|
11
|
+
name: "MoniteApprovalStatusChip"
|
|
12
|
+
}), { i18n: m } = a(), h = e[l];
|
|
13
|
+
return /* @__PURE__ */ r(u, {
|
|
14
|
+
className: "Monite-ApprovalStatusChip",
|
|
15
|
+
ref: i,
|
|
16
|
+
color: t[l],
|
|
17
|
+
icon: d && h ? /* @__PURE__ */ r(h, { fontSize: "small" }) : /* @__PURE__ */ r(o, { sx: { fontSize: "10px" } }),
|
|
18
|
+
label: n(m)[l],
|
|
19
|
+
size: f,
|
|
20
|
+
status: l,
|
|
21
|
+
variant: p ?? "filled"
|
|
22
|
+
});
|
|
23
|
+
}, u = s(i, {
|
|
24
|
+
name: "MoniteApprovalStatusChip",
|
|
25
|
+
slot: "root",
|
|
26
|
+
shouldForwardProp: () => !0
|
|
27
|
+
})({});
|
|
20
28
|
//#endregion
|
|
21
|
-
export {
|
|
29
|
+
export { l as ApprovalStatusChip, u as StyledChip };
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { Chip as i } from "@mui/material";
|
|
4
|
-
import { useLingui as a } from "@lingui/react";
|
|
5
|
-
import o from "@mui/icons-material/Circle";
|
|
6
|
-
import { styled as s, useThemeProps as c } from "@mui/material/styles";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js
|
|
8
|
-
var l = ({ ref: i, ...s }) => {
|
|
9
|
-
let { status: l, icon: d, size: f, variant: p } = c({
|
|
10
|
-
props: s,
|
|
11
|
-
name: "MoniteApprovalStatusChip"
|
|
12
|
-
}), { i18n: m } = a(), h = e[l];
|
|
13
|
-
return /* @__PURE__ */ r(u, {
|
|
14
|
-
className: "Monite-ApprovalStatusChip",
|
|
15
|
-
ref: i,
|
|
16
|
-
color: t[l],
|
|
17
|
-
icon: d && h ? /* @__PURE__ */ r(h, { fontSize: "small" }) : /* @__PURE__ */ r(o, { sx: { fontSize: "10px" } }),
|
|
18
|
-
label: n(m)[l],
|
|
19
|
-
size: f,
|
|
20
|
-
status: l,
|
|
21
|
-
variant: p ?? "filled"
|
|
22
|
-
});
|
|
23
|
-
}, u = s(i, {
|
|
24
|
-
name: "MoniteApprovalStatusChip",
|
|
25
|
-
slot: "root",
|
|
26
|
-
shouldForwardProp: () => !0
|
|
27
|
-
})({});
|
|
28
|
-
//#endregion
|
|
29
|
-
export { l as ApprovalStatusChip, u as StyledChip };
|
|
1
|
+
import "./index232.js";
|