@tesouro/embedded-components-react 0.7.29 → 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,106 @@
|
|
|
1
|
+
import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n } from "./index102.js";
|
|
2
|
+
import { Table as r, TableBody as i, TableCell as a, TableHead as o, TableHeader as s, TableRow as c } from "./index156.js";
|
|
3
|
+
import { useDebounceCallback as l } from "./index169.js";
|
|
4
|
+
import { useGetMeasureUnits as u } from "./index350.js";
|
|
5
|
+
import { useDeleteMeasureUnit as d } from "./index351.js";
|
|
6
|
+
import "./index357.js";
|
|
7
|
+
import { MeasureUnitsFormRow as f } from "./index364.js";
|
|
8
|
+
import { ConfirmDeleteMeasureUnitDialog as p } from "./index365.js";
|
|
9
|
+
import { TableActions as m } from "./index366.js";
|
|
1
10
|
import "./index367.js";
|
|
11
|
+
import { useCallback as h, useState as g } from "react";
|
|
12
|
+
import { Loader2 as _, Search as v } from "lucide-react";
|
|
13
|
+
import { Fragment as y, jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
14
|
+
import { useLingui as S } from "@lingui/react";
|
|
15
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js
|
|
16
|
+
var C = () => {
|
|
17
|
+
let { i18n: C } = S(), [w, T] = g(null), [E, D] = g(null), O = !!E, [k, A] = g(""), { data: j, isLoading: M } = u(), N = d(E?.name), P = l((e) => {
|
|
18
|
+
A(e);
|
|
19
|
+
}, 500), F = j?.data?.filter((e) => e.name.toLowerCase().includes(k.toLowerCase()) || e.description && e.description.toLowerCase().includes(k.toLowerCase())) || [], I = h((e) => {
|
|
20
|
+
D(e);
|
|
21
|
+
}, []), L = h(() => {
|
|
22
|
+
D(null);
|
|
23
|
+
}, []), R = h(() => {
|
|
24
|
+
E && N.mutate({ path: { unit_id: E.id } }, { onSuccess: () => L() });
|
|
25
|
+
}, [
|
|
26
|
+
N,
|
|
27
|
+
E,
|
|
28
|
+
L
|
|
29
|
+
]), z = N.isPending, B = () => {
|
|
30
|
+
T(null);
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ x("div", {
|
|
33
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative",
|
|
34
|
+
children: [M ? /* @__PURE__ */ b("div", {
|
|
35
|
+
className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full",
|
|
36
|
+
children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
|
|
37
|
+
}) : /* @__PURE__ */ x(y, { children: [
|
|
38
|
+
z && /* @__PURE__ */ b("div", {
|
|
39
|
+
className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10",
|
|
40
|
+
children: /* @__PURE__ */ b(_, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" })
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ x(e, { children: [/* @__PURE__ */ b(t, {
|
|
43
|
+
align: "inline-start",
|
|
44
|
+
children: /* @__PURE__ */ b(v, {})
|
|
45
|
+
}), /* @__PURE__ */ b(n, {
|
|
46
|
+
placeholder: C._("Search"),
|
|
47
|
+
onChange: (e) => P(e.target.value)
|
|
48
|
+
})] }),
|
|
49
|
+
/* @__PURE__ */ x(r, {
|
|
50
|
+
className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md",
|
|
51
|
+
children: [/* @__PURE__ */ b(s, { children: /* @__PURE__ */ x(c, {
|
|
52
|
+
className: "ttw:hover:bg-transparent ttw:border-border",
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ b(o, {
|
|
55
|
+
className: "ttw:w-[35%]",
|
|
56
|
+
children: C._("Unit label")
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ b(o, {
|
|
59
|
+
className: "ttw:w-[55%]",
|
|
60
|
+
children: C._("Description (optional)")
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ b(o, { className: "ttw:w-[10%]" })
|
|
63
|
+
]
|
|
64
|
+
}) }), /* @__PURE__ */ x(i, { children: [/* @__PURE__ */ b(f, { isEditMode: !1 }), F.map((e) => w?.id === e.id ? /* @__PURE__ */ b(f, {
|
|
65
|
+
isEditMode: !0,
|
|
66
|
+
initialValues: e,
|
|
67
|
+
onCancel: B,
|
|
68
|
+
onEdit: () => T(null),
|
|
69
|
+
id: e.id
|
|
70
|
+
}, e.id) : /* @__PURE__ */ x(c, {
|
|
71
|
+
className: "ttw:border-border",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ b(a, {
|
|
74
|
+
className: "ttw:w-[35%] ttw:text-sm ttw:truncate",
|
|
75
|
+
children: e.name
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ b(a, {
|
|
78
|
+
className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate",
|
|
79
|
+
children: e.description || "—"
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ b(a, {
|
|
82
|
+
className: "ttw:w-[10%]",
|
|
83
|
+
children: /* @__PURE__ */ b(m, {
|
|
84
|
+
permissions: {
|
|
85
|
+
isUpdateAllowed: !0,
|
|
86
|
+
isDeleteAllowed: !0
|
|
87
|
+
},
|
|
88
|
+
onEdit: () => T(e),
|
|
89
|
+
onDelete: () => I(e)
|
|
90
|
+
})
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
}, e.id))] })]
|
|
94
|
+
})
|
|
95
|
+
] }), /* @__PURE__ */ b(p, {
|
|
96
|
+
open: O,
|
|
97
|
+
id: E?.id,
|
|
98
|
+
name: E?.name || "",
|
|
99
|
+
isLoading: z,
|
|
100
|
+
onClose: L,
|
|
101
|
+
onDelete: R
|
|
102
|
+
})]
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
export { C as ManageMeasureUnitsForm };
|
|
@@ -1,106 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import "./index358.js";
|
|
7
|
-
import { MeasureUnitsFormRow as f } from "./index365.js";
|
|
8
|
-
import { ConfirmDeleteMeasureUnitDialog as p } from "./index366.js";
|
|
9
|
-
import { TableActions as m } from "./index367.js";
|
|
10
|
-
import "./index368.js";
|
|
11
|
-
import { useCallback as h, useState as g } from "react";
|
|
12
|
-
import { Loader2 as _, Search as v } from "lucide-react";
|
|
13
|
-
import { Fragment as y, jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
|
|
14
|
-
import { useLingui as S } from "@lingui/react";
|
|
1
|
+
import { Button as e } from "./index56.js";
|
|
2
|
+
import { Sheet as t, SheetContent as n, SheetDescription as r, SheetFooter as i, SheetHeader as a, SheetTitle as o } from "./index50.js";
|
|
3
|
+
import { ManageMeasureUnitsForm as s } from "./index368.js";
|
|
4
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { useLingui as u } from "@lingui/react";
|
|
15
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js
|
|
16
|
-
var
|
|
17
|
-
let { i18n:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}), /* @__PURE__ */ b(n, {
|
|
46
|
-
placeholder: C._("Search"),
|
|
47
|
-
onChange: (e) => P(e.target.value)
|
|
48
|
-
})] }),
|
|
49
|
-
/* @__PURE__ */ x(r, {
|
|
50
|
-
className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md",
|
|
51
|
-
children: [/* @__PURE__ */ b(s, { children: /* @__PURE__ */ x(c, {
|
|
52
|
-
className: "ttw:hover:bg-transparent ttw:border-border",
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ b(o, {
|
|
55
|
-
className: "ttw:w-[35%]",
|
|
56
|
-
children: C._("Unit label")
|
|
57
|
-
}),
|
|
58
|
-
/* @__PURE__ */ b(o, {
|
|
59
|
-
className: "ttw:w-[55%]",
|
|
60
|
-
children: C._("Description (optional)")
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ b(o, { className: "ttw:w-[10%]" })
|
|
63
|
-
]
|
|
64
|
-
}) }), /* @__PURE__ */ x(i, { children: [/* @__PURE__ */ b(f, { isEditMode: !1 }), F.map((e) => w?.id === e.id ? /* @__PURE__ */ b(f, {
|
|
65
|
-
isEditMode: !0,
|
|
66
|
-
initialValues: e,
|
|
67
|
-
onCancel: B,
|
|
68
|
-
onEdit: () => T(null),
|
|
69
|
-
id: e.id
|
|
70
|
-
}, e.id) : /* @__PURE__ */ x(c, {
|
|
71
|
-
className: "ttw:border-border",
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ b(a, {
|
|
74
|
-
className: "ttw:w-[35%] ttw:text-sm ttw:truncate",
|
|
75
|
-
children: e.name
|
|
76
|
-
}),
|
|
77
|
-
/* @__PURE__ */ b(a, {
|
|
78
|
-
className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate",
|
|
79
|
-
children: e.description || "—"
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ b(a, {
|
|
82
|
-
className: "ttw:w-[10%]",
|
|
83
|
-
children: /* @__PURE__ */ b(m, {
|
|
84
|
-
permissions: {
|
|
85
|
-
isUpdateAllowed: !0,
|
|
86
|
-
isDeleteAllowed: !0
|
|
87
|
-
},
|
|
88
|
-
onEdit: () => T(e),
|
|
89
|
-
onDelete: () => I(e)
|
|
90
|
-
})
|
|
91
|
-
})
|
|
92
|
-
]
|
|
93
|
-
}, e.id))] })]
|
|
94
|
-
})
|
|
95
|
-
] }), /* @__PURE__ */ b(p, {
|
|
96
|
-
open: O,
|
|
97
|
-
id: E?.id,
|
|
98
|
-
name: E?.name || "",
|
|
99
|
-
isLoading: z,
|
|
100
|
-
onClose: L,
|
|
101
|
-
onDelete: R
|
|
102
|
-
})]
|
|
7
|
+
var d = ({ handleClose: d, open: f }) => {
|
|
8
|
+
let { i18n: p } = u();
|
|
9
|
+
return /* @__PURE__ */ c(t, {
|
|
10
|
+
open: f,
|
|
11
|
+
onOpenChange: d,
|
|
12
|
+
children: /* @__PURE__ */ l(n, {
|
|
13
|
+
side: "right",
|
|
14
|
+
className: "ttw:gap-0 ttw:p-0",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ l(a, {
|
|
17
|
+
className: "ttw:border-b ttw:border-border",
|
|
18
|
+
children: [/* @__PURE__ */ c(o, { children: p._("Manage measure units") }), /* @__PURE__ */ c(r, {
|
|
19
|
+
hidden: !0,
|
|
20
|
+
children: p._("Manage measure units")
|
|
21
|
+
})]
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ c("div", {
|
|
24
|
+
className: "ttw:flex-1 ttw:overflow-y-auto ttw:px-6 ttw:py-4",
|
|
25
|
+
children: /* @__PURE__ */ c(s, {})
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ c(i, {
|
|
28
|
+
className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
|
|
29
|
+
children: /* @__PURE__ */ c(e, {
|
|
30
|
+
onClick: d,
|
|
31
|
+
children: p._("Done")
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
})
|
|
103
36
|
});
|
|
104
37
|
};
|
|
105
38
|
//#endregion
|
|
106
|
-
export {
|
|
39
|
+
export { d as ManageMeasureUnits };
|
|
@@ -1,39 +1,173 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { useMoniteContext as t } from "./index45.js";
|
|
4
|
+
import { useCurrencies as n } from "./index63.js";
|
|
5
|
+
import { Button as r } from "./index56.js";
|
|
6
|
+
import { MoniteScopedProviders as i } from "./index129.js";
|
|
7
|
+
import { useUserPermissions as a } from "./index111.js";
|
|
8
|
+
import { GetNoRowsOverlay as o } from "./index152.js";
|
|
9
|
+
import { AccessRestriction as s } from "./index153.js";
|
|
10
|
+
import "./index155.js";
|
|
11
|
+
import { DataTable as c } from "./index157.js";
|
|
12
|
+
import { hasSelectedText as l } from "./index158.js";
|
|
13
|
+
import "./index173.js";
|
|
14
|
+
import { useGetProducts as u } from "./index292.js";
|
|
15
|
+
import "./index357.js";
|
|
16
|
+
import { ProductDeleteModal as d } from "./index358.js";
|
|
17
|
+
import { ProductType as f } from "./index359.js";
|
|
18
|
+
import { FILTER_TYPE_SEARCH as p } from "./index360.js";
|
|
19
|
+
import { Filters as m } from "./index361.js";
|
|
20
|
+
import { MeasureUnit as ee } from "./index362.js";
|
|
21
|
+
import { ManageMeasureUnits as h } from "./index369.js";
|
|
22
|
+
import { useCallback as g, useMemo as _, useState as v } from "react";
|
|
23
|
+
import { ArrowDown as y, ArrowUp as b, ArrowUpDown as x, Plus as S } from "lucide-react";
|
|
24
|
+
import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
|
|
25
|
+
import { useLingui as E } from "@lingui/react";
|
|
6
26
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js
|
|
7
|
-
var
|
|
8
|
-
let { i18n:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
var D = (e) => /* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(O, { ...e }) }), O = ({ onFilterChanged: i, onSortChanged: D, onRowClick: O, onDeleted: k, openCreateModal: A }) => {
|
|
28
|
+
let { i18n: j } = E(), { componentSettings: M } = t(), { formatCurrencyToDisplay: N } = n(), [P, F] = v(!1), [I, L] = v(void 0), [R, z] = v(M.products.pageSizeOptions[0]), [B, te] = v({}), [V, H] = v(), [U, W] = v({
|
|
29
|
+
open: !1,
|
|
30
|
+
id: null
|
|
31
|
+
}), G = a(), K = G.has(e.InvoiceWriteOrg), q = G.has(e.InvoiceReadOrg), { data: J, isLoading: Y, isError: X, refetch: Z } = u({
|
|
32
|
+
sort: V?.field,
|
|
33
|
+
order: V?.sort,
|
|
34
|
+
limit: R,
|
|
35
|
+
pagination_token: I,
|
|
36
|
+
name__icontains: B.search || void 0
|
|
37
|
+
}), Q = (e, t) => {
|
|
38
|
+
L(void 0), te((n) => ({
|
|
39
|
+
...n,
|
|
40
|
+
[e]: t === "all" ? null : t
|
|
41
|
+
})), i?.({
|
|
42
|
+
field: e,
|
|
43
|
+
value: t
|
|
44
|
+
});
|
|
45
|
+
}, $ = _(() => V ? [{
|
|
46
|
+
id: V.field,
|
|
47
|
+
desc: V.sort === "desc"
|
|
48
|
+
}] : [], [V]), ne = g((e) => {
|
|
49
|
+
let t = typeof e == "function" ? e($) : e;
|
|
50
|
+
if (t.length > 0) {
|
|
51
|
+
let e = {
|
|
52
|
+
field: t[0].id,
|
|
53
|
+
sort: t[0].desc ? "desc" : "asc"
|
|
54
|
+
};
|
|
55
|
+
H(e), D?.(e);
|
|
56
|
+
} else H(void 0);
|
|
57
|
+
L(void 0);
|
|
58
|
+
}, [$, D]), re = _(() => [
|
|
59
|
+
{
|
|
60
|
+
accessorKey: "name",
|
|
61
|
+
header: ({ column: e }) => {
|
|
62
|
+
let t = e.getIsSorted();
|
|
63
|
+
return /* @__PURE__ */ T("div", {
|
|
64
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
65
|
+
children: [j._("Name"), /* @__PURE__ */ w(r, {
|
|
66
|
+
variant: "ghost",
|
|
67
|
+
onClick: () => e.toggleSorting(t === "asc"),
|
|
68
|
+
children: w(t === "asc" ? b : t === "desc" ? y : x, { className: "ttw:size-4" })
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
},
|
|
72
|
+
cell: ({ row: e }) => /* @__PURE__ */ w("span", { children: e.original.name })
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
accessorKey: "type",
|
|
76
|
+
header: j._("Type"),
|
|
77
|
+
cell: ({ row: e }) => e.original.type ? /* @__PURE__ */ w(f, { type: e.original.type }) : null
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
accessorKey: "description",
|
|
81
|
+
header: j._("Description"),
|
|
82
|
+
cell: ({ row: e }) => /* @__PURE__ */ w("div", {
|
|
83
|
+
className: "ttw:w-120",
|
|
84
|
+
children: /* @__PURE__ */ w("span", {
|
|
85
|
+
className: "ttw:w-full ttw:inline-block ttw:truncate",
|
|
86
|
+
children: e.original?.description
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
accessorKey: "price",
|
|
92
|
+
header: () => /* @__PURE__ */ w("div", {
|
|
93
|
+
className: "ttw:text-right",
|
|
94
|
+
children: j._("Price per unit")
|
|
95
|
+
}),
|
|
96
|
+
cell: ({ row: e }) => {
|
|
97
|
+
let t = e.original.price;
|
|
98
|
+
return /* @__PURE__ */ T("div", {
|
|
99
|
+
className: "ttw:justify-end ttw:flex ttw:gap-1 ttw:items-center",
|
|
100
|
+
children: [t ? N(t.value, t.currency) : "", /* @__PURE__ */ w(ee, { unitId: e.original.measure_unit_id ?? "" })]
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
], [j, N]), ie = Object.keys(B).some((e) => B[e] !== null && B[e] !== void 0), ae = !!B[p];
|
|
105
|
+
return q ? /* @__PURE__ */ T(C, { children: [
|
|
106
|
+
/* @__PURE__ */ w("div", {
|
|
107
|
+
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
108
|
+
children: /* @__PURE__ */ w(c, {
|
|
109
|
+
columns: re,
|
|
110
|
+
data: J?.data ?? [],
|
|
111
|
+
sorting: $,
|
|
112
|
+
onSortingChange: ne,
|
|
113
|
+
pageSize: R,
|
|
114
|
+
onPageSizeChange: z,
|
|
115
|
+
nextPaginationToken: J?.next_pagination_token ?? void 0,
|
|
116
|
+
prevPaginationToken: J?.prev_pagination_token ?? void 0,
|
|
117
|
+
onPaginationTokenChange: L,
|
|
118
|
+
onRowClick: (e) => {
|
|
119
|
+
l() || O?.(e.id);
|
|
120
|
+
},
|
|
121
|
+
filterComponent: /* @__PURE__ */ T("div", {
|
|
122
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:px-4",
|
|
123
|
+
children: [/* @__PURE__ */ w(m, { onChangeFilter: Q }), /* @__PURE__ */ T("div", {
|
|
124
|
+
className: "ttw:flex ttw:gap-2",
|
|
125
|
+
children: [/* @__PURE__ */ w(r, {
|
|
126
|
+
variant: "ghost",
|
|
127
|
+
onClick: () => F(!0),
|
|
128
|
+
className: "ttw:py-0 ttw:text-primary ttw:hover:text-primary",
|
|
129
|
+
children: j._("Manage units of measure")
|
|
130
|
+
}), /* @__PURE__ */ T(r, {
|
|
131
|
+
disabled: !K,
|
|
132
|
+
onClick: A,
|
|
133
|
+
className: "ttw:py-0",
|
|
134
|
+
children: [/* @__PURE__ */ w(S, {}), j._("Add product or service")]
|
|
135
|
+
})]
|
|
21
136
|
})]
|
|
22
137
|
}),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
138
|
+
children: /* @__PURE__ */ w(o, {
|
|
139
|
+
isLoading: Y,
|
|
140
|
+
dataLength: J?.data.length || 0,
|
|
141
|
+
isFiltering: ie,
|
|
142
|
+
isSearching: ae,
|
|
143
|
+
isError: X,
|
|
144
|
+
onCreate: A,
|
|
145
|
+
refetch: Z,
|
|
146
|
+
filterTitle: j._("No product or service found"),
|
|
147
|
+
filterDescription1: j._("Try adjusting your search or filter criteria"),
|
|
148
|
+
entityName: j._("products or services"),
|
|
149
|
+
actionButtonLabel: j._("Add your first product or service"),
|
|
150
|
+
actionOptions: [j._("Product")],
|
|
151
|
+
noDataTitle: j._("Build your products & services list."),
|
|
152
|
+
noDataDescription1: j._("Save the products and services you sell so you can quickly add them as line items on invoices."),
|
|
153
|
+
type: "no-data"
|
|
33
154
|
})
|
|
34
|
-
|
|
155
|
+
})
|
|
156
|
+
}),
|
|
157
|
+
U.id && /* @__PURE__ */ w(d, {
|
|
158
|
+
id: U.id,
|
|
159
|
+
open: U.open,
|
|
160
|
+
onDeleted: k,
|
|
161
|
+
onClose: () => W((e) => ({
|
|
162
|
+
...e,
|
|
163
|
+
open: !1
|
|
164
|
+
}))
|
|
165
|
+
}),
|
|
166
|
+
P && /* @__PURE__ */ w(h, {
|
|
167
|
+
open: P,
|
|
168
|
+
handleClose: () => F(!1)
|
|
35
169
|
})
|
|
36
|
-
});
|
|
170
|
+
] }) : /* @__PURE__ */ w(s, {});
|
|
37
171
|
};
|
|
38
172
|
//#endregion
|
|
39
|
-
export {
|
|
173
|
+
export { D as ProductsTable };
|