@tesouro/embedded-components-react 0.2.288 → 0.2.292
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/index.d.ts +1 -0
- package/dist/lib/ReceivablesWidget.d.ts +1 -0
- package/dist/lib/monite-sdk.d.ts +1 -1
- package/dist/lib/monite-sdk.js +55 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +33 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +189 -185
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +56 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +8 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +74 -444
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +443 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +2 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +40 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +81 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +58 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +31 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +43 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +4 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +2 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +49 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +118 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +5 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +181 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +209 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +157 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +57 -296
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +60 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +297 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +6 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +17 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +72 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +51 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +24 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +79 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +88 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +8 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +3 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +55 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +35 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +101 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +55 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +55 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +2 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +7 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +49 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +40 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +74 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +7 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +74 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +41 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +1 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +7 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +20 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +48 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +63 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +53 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +162 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +85 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +25 -595
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +599 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +0 -167
- 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 +163 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +16 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +27 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +91 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +10 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +10 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +70 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +126 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +5 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +1 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +62 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +120 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +21 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +33 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +7 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +55 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +74 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +25 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +57 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +17 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +180 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +29 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +3 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +8 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +44 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +5 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +8 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +20 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +5 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +117 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +62 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +198 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +42 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +7 -423
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +421 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +1 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +92 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +16 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +2 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +193 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +160 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +10 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +61 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +44 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +49 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +81 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +23 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +40 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +344 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +28 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +159 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +34 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +31 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +4 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +87 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +173 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +132 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +209 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -253
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +237 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +33 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +142 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +165 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +59 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +38 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +153 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +67 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +217 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +33 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +1 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +77 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +185 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +166 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +12 -310
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +9 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +5 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +312 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +90 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +182 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +29 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +82 -445
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +133 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +37 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +434 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +141 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +143 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +36 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +59 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +66 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +149 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +59 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +84 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +14 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +19 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +20 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +102 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +42 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +27 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +13 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +13 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +9 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +101 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +35 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +65 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +28 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +157 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +129 -235
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +131 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +68 -434
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +246 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +6 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +433 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +23 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +53 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +44 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +12 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +40 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +143 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +111 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +38 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +32 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +19 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +22 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +72 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +17 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +172 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +138 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +32 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +114 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +45 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +12 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +22 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +28 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +36 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +35 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +92 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +50 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +1 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +35 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +1 -785
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +132 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +104 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +54 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +781 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +89 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +103 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +24 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +12 -170
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +2 -208
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +21 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +156 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +202 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +80 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +19 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +157 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +94 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +3 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +24 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +183 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +40 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +74 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +17 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +19 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +128 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +5 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +5 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +212 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +11 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +34 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +172 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +198 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +96 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +60 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +54 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +92 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +39 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +79 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +87 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +12 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +26 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +17 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +22 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +4 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +9 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +9 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +5 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +6 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +18 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +71 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +117 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +75 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +146 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +28 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +14 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +91 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +2 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +22 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +69 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +66 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +25 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +36 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +15 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/package.json +1 -1
|
@@ -3,158 +3,171 @@ import "../../shared/data-access/dist/index.js";
|
|
|
3
3
|
import { useMoniteContext as t } from "./index47.js";
|
|
4
4
|
import { useCurrencies as n } from "./index63.js";
|
|
5
5
|
import { Button as r } from "./index56.js";
|
|
6
|
+
import "./index189.js";
|
|
6
7
|
import { MoniteScopedProviders as i } from "./index209.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import "./
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { useState as
|
|
22
|
-
import {
|
|
23
|
-
import { Fragment as
|
|
24
|
-
import { useLingui as
|
|
8
|
+
import { useUserPermissions as a } from "./index112.js";
|
|
9
|
+
import { GetNoRowsOverlay as o } from "./index237.js";
|
|
10
|
+
import { AccessRestriction as s } from "./index238.js";
|
|
11
|
+
import "./index240.js";
|
|
12
|
+
import { DataTable as c } from "./index242.js";
|
|
13
|
+
import { hasSelectedText as l } from "./index243.js";
|
|
14
|
+
import { useGetProducts as u } from "./index378.js";
|
|
15
|
+
import "./index480.js";
|
|
16
|
+
import { ManageMeasureUnits as d } from "./index482.js";
|
|
17
|
+
import { ProductDeleteModal as f } from "./index534.js";
|
|
18
|
+
import { ProductType as p } from "./index535.js";
|
|
19
|
+
import { FILTER_TYPE_SEARCH as m } from "./index536.js";
|
|
20
|
+
import { Filters as ee } from "./index537.js";
|
|
21
|
+
import { MeasureUnit as h } from "./index538.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";
|
|
25
26
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js
|
|
26
|
-
var
|
|
27
|
-
let { i18n:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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(p, { 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
|
|
39
87
|
})
|
|
40
88
|
})
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
className: "ttw:
|
|
52
|
-
children: [/* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
children: [/* @__PURE__ */ A(D, {}), R._("Delete product")]
|
|
79
|
-
})
|
|
80
|
-
})] }), /* @__PURE__ */ A(o, {
|
|
81
|
-
className: "ttw:size-9 ttw:bg-muted ttw:p-2 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-md ttw:cursor-pointer",
|
|
82
|
-
children: /* @__PURE__ */ A(O, { className: "ttw:size-4" })
|
|
83
|
-
})]
|
|
84
|
-
})]
|
|
85
|
-
}), K ? /* @__PURE__ */ A("div", {
|
|
86
|
-
className: "ttw:flex ttw:w-full ttw:h-full ttw:items-center ttw:justify-center",
|
|
87
|
-
children: /* @__PURE__ */ A(d, {})
|
|
88
|
-
}) : /* @__PURE__ */ A("main", {
|
|
89
|
-
className: "ttw:p-6 ttw:overflow-auto ttw:flex ttw:flex-col ttw:gap-4",
|
|
90
|
-
children: /* @__PURE__ */ j("div", {
|
|
91
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
92
|
-
children: [/* @__PURE__ */ j("div", {
|
|
93
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
94
|
-
children: [/* @__PURE__ */ j("div", {
|
|
95
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
96
|
-
children: [/* @__PURE__ */ A(_, {
|
|
97
|
-
variant: "body1",
|
|
98
|
-
className: "ttw:font-medium",
|
|
99
|
-
children: R._("{type} details", { type: J ? "Product" : "Service" })
|
|
100
|
-
}), /* @__PURE__ */ A(_, {
|
|
101
|
-
variant: "body2",
|
|
102
|
-
color: "muted",
|
|
103
|
-
children: J ? R._("A physical or digital item") : R._("Work or labor you provide")
|
|
104
|
-
})]
|
|
105
|
-
}), !V && Z && /* @__PURE__ */ A(r, {
|
|
106
|
-
type: "button",
|
|
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(h, { 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[m];
|
|
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(ee, { onChangeFilter: Q }), /* @__PURE__ */ T("div", {
|
|
124
|
+
className: "ttw:flex ttw:gap-2",
|
|
125
|
+
children: [/* @__PURE__ */ w(r, {
|
|
107
126
|
variant: "ghost",
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
children:
|
|
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")]
|
|
111
135
|
})]
|
|
112
|
-
}), V && G ? /* @__PURE__ */ A(C, {
|
|
113
|
-
product: G,
|
|
114
|
-
handleClose: () => H(!1),
|
|
115
|
-
onUpdate: (e) => {
|
|
116
|
-
F?.(e), H(!1);
|
|
117
|
-
}
|
|
118
|
-
}) : /* @__PURE__ */ j("ul", {
|
|
119
|
-
className: "ttw:list-none",
|
|
120
|
-
children: [
|
|
121
|
-
/* @__PURE__ */ A(w, {
|
|
122
|
-
label: R._("{type} name", { type: J ? "Product" : "Service" }),
|
|
123
|
-
value: G?.name ?? "-"
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ A(w, {
|
|
126
|
-
label: R._("Price per unit"),
|
|
127
|
-
value: G?.price ? B(G.price.value, G.price.currency) : "-"
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ A(w, {
|
|
130
|
-
label: R._("Description"),
|
|
131
|
-
value: G?.description || "-",
|
|
132
|
-
isLast: !0
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
136
|
})]
|
|
137
|
+
}),
|
|
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"
|
|
136
154
|
})
|
|
137
|
-
})]
|
|
138
|
-
})
|
|
139
|
-
}), i && U && /* @__PURE__ */ A(S, {
|
|
140
|
-
id: i,
|
|
141
|
-
open: U,
|
|
142
|
-
onClose: () => W(!1),
|
|
143
|
-
onDeleted: (e) => {
|
|
144
|
-
P?.(), I?.(e), W(!1);
|
|
145
|
-
}
|
|
146
|
-
})] }) : /* @__PURE__ */ A(a, {
|
|
147
|
-
open: N,
|
|
148
|
-
onOpenChange: P,
|
|
149
|
-
children: /* @__PURE__ */ A(s, {
|
|
150
|
-
showCloseButton: !0,
|
|
151
|
-
className: "ttw:gap-0",
|
|
152
|
-
children: /* @__PURE__ */ A("div", {
|
|
153
|
-
className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
|
|
154
|
-
children: /* @__PURE__ */ A(b, {})
|
|
155
155
|
})
|
|
156
|
+
}),
|
|
157
|
+
U.id && /* @__PURE__ */ w(f, {
|
|
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(d, {
|
|
167
|
+
open: P,
|
|
168
|
+
handleClose: () => F(!1)
|
|
156
169
|
})
|
|
157
|
-
});
|
|
170
|
+
] }) : /* @__PURE__ */ w(s, {});
|
|
158
171
|
};
|
|
159
172
|
//#endregion
|
|
160
|
-
export {
|
|
173
|
+
export { D as ProductsTable };
|
|
@@ -1,99 +1,210 @@
|
|
|
1
1
|
import { useCurrencies as e } from "./index63.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Input as t } from "./index89.js";
|
|
3
|
+
import { InputGroup as n, InputGroupAddon as r, InputGroupInput as i, InputGroupTextarea as a } from "./index103.js";
|
|
4
|
+
import { Combobox as o, ComboboxCollection as s, ComboboxContent as c, ComboboxEmpty as l, ComboboxInput as u, ComboboxItem as d, ComboboxList as f } from "./index104.js";
|
|
3
5
|
import "./index189.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import "
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { FormProvider as b, useForm as x } from "react-hook-form";
|
|
16
|
-
import { zodResolver as S } from "@hookform/resolvers/zod";
|
|
6
|
+
import { Typography as p } from "./index62.js";
|
|
7
|
+
import { Label as m } from "./index87.js";
|
|
8
|
+
import { Field as h, FieldContent as g, FieldError as _, FieldLabel as v } from "./index88.js";
|
|
9
|
+
import { RadioGroup as y, RadioGroupItem as b } from "./index90.js";
|
|
10
|
+
import { useGetMeasureUnits as x } from "./index450.js";
|
|
11
|
+
import "./index480.js";
|
|
12
|
+
import { useCallback as S, useMemo as C, useRef as w } from "react";
|
|
13
|
+
import { jsx as T, jsxs as E } from "@emotion/react/jsx-runtime";
|
|
14
|
+
import { useLingui as D } from "@lingui/react";
|
|
15
|
+
import { twMerge as O } from "tailwind-merge";
|
|
16
|
+
import { Controller as k, useFormContext as A } from "react-hook-form";
|
|
17
17
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js
|
|
18
|
-
var
|
|
19
|
-
let { i18n:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
name:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
})
|
|
85
|
-
}), /* @__PURE__ */ v(t, {
|
|
86
|
-
type: "submit",
|
|
87
|
-
form: D,
|
|
88
|
-
className: "ttw:flex-1",
|
|
89
|
-
title: T._("Complete the form to continue"),
|
|
90
|
-
disabled: k || !P,
|
|
91
|
-
children: [k && /* @__PURE__ */ _(u, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), T._("Save {type}", { type: N })]
|
|
18
|
+
var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
|
|
19
|
+
let { i18n: P } = D(), { getSymbolFromCurrency: F } = e(), I = w(null), { data: L } = x(), R = L?.data ?? [], { control: z, formState: { errors: B } } = A(), V = C(() => R.map((e) => e.id), [R]), H = C(() => new Map(R.map((e) => [e.id, e.name])), [R]), U = S((e) => H.get(e) ?? e, [H]);
|
|
20
|
+
return /* @__PURE__ */ E("div", {
|
|
21
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
22
|
+
children: [
|
|
23
|
+
M && /* @__PURE__ */ T("div", {
|
|
24
|
+
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
|
|
25
|
+
children: /* @__PURE__ */ T(p, {
|
|
26
|
+
variant: "body1",
|
|
27
|
+
className: "ttw:font-medium",
|
|
28
|
+
children: P._("Editing {type} details", { type: N ? "product" : "service" })
|
|
29
|
+
})
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ T(k, {
|
|
32
|
+
name: "type",
|
|
33
|
+
control: z,
|
|
34
|
+
render: ({ field: e }) => /* @__PURE__ */ E("div", {
|
|
35
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
36
|
+
children: [/* @__PURE__ */ T(v, { children: P._("Type") }), /* @__PURE__ */ E(y, {
|
|
37
|
+
className: "ttw:flex",
|
|
38
|
+
value: e.value,
|
|
39
|
+
disabled: j,
|
|
40
|
+
onValueChange: e.onChange,
|
|
41
|
+
children: [/* @__PURE__ */ E("div", {
|
|
42
|
+
className: O("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "product" && "ttw:bg-primary/10 ttw:border-primary/30"),
|
|
43
|
+
children: [/* @__PURE__ */ T(b, {
|
|
44
|
+
value: "product",
|
|
45
|
+
id: "type-product",
|
|
46
|
+
className: O(e.value === "product" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
47
|
+
dotClassName: O(e.value === "product" && "ttw:fill-white"),
|
|
48
|
+
disabled: j
|
|
49
|
+
}), /* @__PURE__ */ E(m, {
|
|
50
|
+
htmlFor: "type-product",
|
|
51
|
+
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
52
|
+
children: [/* @__PURE__ */ T(p, {
|
|
53
|
+
variant: "body2",
|
|
54
|
+
className: "ttw:leading-3.5",
|
|
55
|
+
children: P._("Product")
|
|
56
|
+
}), /* @__PURE__ */ T(p, {
|
|
57
|
+
variant: "caption",
|
|
58
|
+
color: "muted",
|
|
59
|
+
children: P._("A physical or digital item")
|
|
60
|
+
})]
|
|
61
|
+
})]
|
|
62
|
+
}), /* @__PURE__ */ E("div", {
|
|
63
|
+
className: O("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "service" && "ttw:bg-primary/10 ttw:border-primary/30"),
|
|
64
|
+
children: [/* @__PURE__ */ T(b, {
|
|
65
|
+
value: "service",
|
|
66
|
+
id: "type-service",
|
|
67
|
+
className: O(e.value === "service" ? "ttw:bg-primary" : "ttw:bg-white"),
|
|
68
|
+
dotClassName: O(e.value === "service" && "ttw:fill-white"),
|
|
69
|
+
disabled: j
|
|
70
|
+
}), /* @__PURE__ */ E(m, {
|
|
71
|
+
htmlFor: "type-service",
|
|
72
|
+
className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
|
|
73
|
+
children: [/* @__PURE__ */ T(p, {
|
|
74
|
+
variant: "body2",
|
|
75
|
+
className: "ttw:leading-3.5",
|
|
76
|
+
children: P._("Service")
|
|
77
|
+
}), /* @__PURE__ */ T(p, {
|
|
78
|
+
variant: "caption",
|
|
79
|
+
color: "muted",
|
|
80
|
+
children: P._("Work or labor you provide")
|
|
81
|
+
})]
|
|
82
|
+
})]
|
|
83
|
+
})]
|
|
92
84
|
})]
|
|
93
85
|
})
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ T(k, {
|
|
88
|
+
name: "name",
|
|
89
|
+
control: z,
|
|
90
|
+
render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ T(h, { children: /* @__PURE__ */ E(g, { children: [
|
|
91
|
+
/* @__PURE__ */ T(v, {
|
|
92
|
+
htmlFor: e.name,
|
|
93
|
+
children: P._("Name")
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ T(t, {
|
|
96
|
+
...e,
|
|
97
|
+
id: e.name,
|
|
98
|
+
placeholder: P._("e.g. House blend espresso beans"),
|
|
99
|
+
className: M ? "ttw:bg-white" : "",
|
|
100
|
+
disabled: j,
|
|
101
|
+
"aria-invalid": !!n || void 0
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ T(_, { errors: [n] })
|
|
104
|
+
] }) })
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ E("div", {
|
|
107
|
+
className: "ttw:w-1/2 ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ T(v, { children: P._("Price per unit") }),
|
|
110
|
+
/* @__PURE__ */ E("div", {
|
|
111
|
+
className: O("ttw:flex ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow]", "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-[3px] ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20", M && "ttw:bg-white"),
|
|
112
|
+
ref: I,
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ T(k, {
|
|
115
|
+
name: "pricePerUnit",
|
|
116
|
+
control: z,
|
|
117
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ E(n, {
|
|
118
|
+
className: "ttw:flex-1 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0",
|
|
119
|
+
children: [/* @__PURE__ */ T(r, {
|
|
120
|
+
align: "inline-start",
|
|
121
|
+
children: F("USD")
|
|
122
|
+
}), /* @__PURE__ */ T(i, {
|
|
123
|
+
type: "number",
|
|
124
|
+
name: e.name,
|
|
125
|
+
ref: e.ref,
|
|
126
|
+
value: e.value ?? "",
|
|
127
|
+
onChange: (t) => e.onChange(t.target.value === "" ? void 0 : Number(t.target.value)),
|
|
128
|
+
className: "ttw:text-end",
|
|
129
|
+
onBlur: e.onBlur,
|
|
130
|
+
placeholder: "0.00",
|
|
131
|
+
"aria-invalid": !!t || void 0,
|
|
132
|
+
disabled: j
|
|
133
|
+
})]
|
|
134
|
+
})
|
|
135
|
+
}),
|
|
136
|
+
/* @__PURE__ */ T("div", { className: "ttw:w-px ttw:shrink-0 ttw:bg-border" }),
|
|
137
|
+
/* @__PURE__ */ T(k, {
|
|
138
|
+
name: "measureUnitId",
|
|
139
|
+
control: z,
|
|
140
|
+
render: ({ field: e }) => /* @__PURE__ */ E(o, {
|
|
141
|
+
value: e.value ?? null,
|
|
142
|
+
onValueChange: (t) => e.onChange(t ?? void 0),
|
|
143
|
+
items: V,
|
|
144
|
+
itemToStringLabel: U,
|
|
145
|
+
disabled: j,
|
|
146
|
+
children: [/* @__PURE__ */ T(u, {
|
|
147
|
+
showClear: !!e.value,
|
|
148
|
+
placeholder: "-",
|
|
149
|
+
disabled: j,
|
|
150
|
+
className: "ttw:w-28 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0"
|
|
151
|
+
}), /* @__PURE__ */ T(c, {
|
|
152
|
+
container: I.current,
|
|
153
|
+
children: /* @__PURE__ */ E(f, { children: [/* @__PURE__ */ T(l, { children: P._("No units found") }), /* @__PURE__ */ T(s, { children: (e) => /* @__PURE__ */ T(d, {
|
|
154
|
+
value: e,
|
|
155
|
+
children: U(e)
|
|
156
|
+
}, e) })] })
|
|
157
|
+
})]
|
|
158
|
+
})
|
|
159
|
+
})
|
|
160
|
+
]
|
|
161
|
+
}),
|
|
162
|
+
/* @__PURE__ */ T(_, { errors: [B.pricePerUnit] })
|
|
163
|
+
]
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ T(k, {
|
|
166
|
+
name: "description",
|
|
167
|
+
control: z,
|
|
168
|
+
render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ T(h, {
|
|
169
|
+
className: "ttw:block",
|
|
170
|
+
children: /* @__PURE__ */ E(g, { children: [
|
|
171
|
+
/* @__PURE__ */ E(v, {
|
|
172
|
+
htmlFor: e.name,
|
|
173
|
+
className: "ttw:gap-1",
|
|
174
|
+
children: [P._("Description"), /* @__PURE__ */ T(p, {
|
|
175
|
+
variant: "body2",
|
|
176
|
+
color: "muted",
|
|
177
|
+
className: "ttw:leading-snug",
|
|
178
|
+
children: P._("(optional)")
|
|
179
|
+
})]
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ E(n, {
|
|
182
|
+
className: O(M && "ttw:bg-white"),
|
|
183
|
+
children: [/* @__PURE__ */ T(a, {
|
|
184
|
+
...e,
|
|
185
|
+
id: e.name,
|
|
186
|
+
placeholder: P._("e.g. 16oz whole bean, medium-dark roast, ground to order"),
|
|
187
|
+
rows: 4,
|
|
188
|
+
maxLength: 280,
|
|
189
|
+
disabled: j,
|
|
190
|
+
"aria-invalid": !!t || void 0
|
|
191
|
+
}), /* @__PURE__ */ T(r, {
|
|
192
|
+
align: "block-end",
|
|
193
|
+
className: "ttw:cursor-default",
|
|
194
|
+
children: /* @__PURE__ */ T(p, {
|
|
195
|
+
variant: "caption",
|
|
196
|
+
color: "muted",
|
|
197
|
+
className: "ttw:leading-none",
|
|
198
|
+
children: P._("{count}/280 characters", { count: (e.value ?? "").length })
|
|
199
|
+
})
|
|
200
|
+
})]
|
|
201
|
+
}),
|
|
202
|
+
/* @__PURE__ */ T(_, { errors: [t] })
|
|
203
|
+
] })
|
|
204
|
+
})
|
|
205
|
+
})
|
|
206
|
+
]
|
|
96
207
|
});
|
|
97
208
|
};
|
|
98
209
|
//#endregion
|
|
99
|
-
export {
|
|
210
|
+
export { j as ProductFormContent };
|