@tesouro/embedded-components-react 0.2.90 → 0.2.92
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.css +6 -0
- package/dist/lib/ReceivablesWidget.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +9 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +34 -1270
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +25 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1270 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +75 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +6 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +33 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +30 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +12 -197
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +23 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +117 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +6 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +12 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +10 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +47 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +43 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +46 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +11 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +150 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +25 -190
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +56 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +69 -109
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +24 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +3 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +62 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +79 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +5 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +43 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +74 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +58 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +197 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +14 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +24 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +74 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +28 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +38 -390
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +7 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +115 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +200 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +31 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +108 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +137 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +21 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +21 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +23 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +183 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +13 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +18 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +47 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +5 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +88 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +44 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +50 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +203 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +391 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +97 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +57 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +25 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +10 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +17 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +2 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +17 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +26 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +112 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +70 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +12 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +92 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +98 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +13 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +7 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +34 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +146 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +86 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +24 -344
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +36 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +50 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +66 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +345 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +8 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +7 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +30 -247
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +30 -176
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +12 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +17 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +246 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +178 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +16 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +23 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +52 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +30 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +95 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +42 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +35 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +47 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +25 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +76 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +32 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +18 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +72 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +44 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +62 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +43 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +189 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +108 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +82 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +284 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +49 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +15 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +81 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +225 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +35 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +9 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +12 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +7 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +2 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +62 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +156 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +27 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +27 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +78 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +149 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +95 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +16 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +70 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +17 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +48 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +12 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +45 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +41 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +59 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +29 -187
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +111 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +21 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +40 -281
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +53 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +491 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +161 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +25 -222
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +127 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +10 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +27 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +42 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +60 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +94 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +110 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +86 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +22 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +52 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +29 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +56 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +15 -342
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +2 -303
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +93 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +96 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +192 -267
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +168 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +131 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +158 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +10 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +18 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +61 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +67 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +57 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +7 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +60 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +21 -168
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +54 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +14 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +79 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +76 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +41 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +19 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +39 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +344 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +297 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +100 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +155 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +266 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +24 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +19 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +19 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +41 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +21 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +65 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +255 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +27 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +31 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +6 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +97 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +21 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +21 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +57 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +35 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +28 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +40 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +73 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +96 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +34 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +65 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +66 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +9 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +29 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +24 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +37 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +188 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +71 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +67 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +39 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +2 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +32 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +85 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +24 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +105 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +109 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +5 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +20 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +11 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +20 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +9 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +33 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +24 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +22 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +50 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +123 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +18 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +16 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +16 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +16 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +8 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +72 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +49 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +31 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +4 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +127 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +53 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +33 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +93 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +26 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +35 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +66 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +47 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +26 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +19 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +25 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +32 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +13 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +28 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +67 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +52 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +37 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +18 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +48 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +36 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +47 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +69 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +83 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +55 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +53 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +29 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +54 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +68 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +15 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +39 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +83 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +93 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +16 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +9 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +32 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +39 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +33 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +13 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +50 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +57 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +29 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +51 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +11 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +65 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +19 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +54 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +58 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +42 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +50 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1835 -1821
- 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 +28 -28
- package/package.json +1 -1
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
const i = (n, t) => e.object({
|
|
3
|
+
min_digits: e.coerce.number().int().min(1, n._("Can't be less than 1")).max(20, n._("Can't be greater than 20")),
|
|
4
|
+
credit_note: e.string().min(1),
|
|
5
|
+
credit_note_number: e.coerce.number().int().min(t.credit_note, n._("Can't be less than {nextNumbersCredit_note}", {
|
|
6
|
+
nextNumbersCredit_note: t.credit_note
|
|
7
|
+
})),
|
|
8
|
+
delivery_note: e.string().min(1),
|
|
9
|
+
delivery_note_number: e.coerce.number().int().min(t.delivery_note, n._("Can't be less than {nextNumbersDelivery_note}", {
|
|
10
|
+
nextNumbersDelivery_note: t.delivery_note
|
|
11
|
+
})),
|
|
12
|
+
quote: e.string().min(1),
|
|
13
|
+
quote_number: e.coerce.number().int().min(t.quote, n._("Can't be less than {nextNumbersQuote}", {
|
|
14
|
+
nextNumbersQuote: t.quote
|
|
15
|
+
})),
|
|
16
|
+
invoice: e.string().min(1, n._("Invoice prefix is required")).max(25, n._("Invoice prefix should have at most 25 characters")),
|
|
17
|
+
invoice_number: e.coerce.number().int().min(t.invoice, n._("Can't be less than {nextNumbersInvoice}", {
|
|
18
|
+
nextNumbersInvoice: t.invoice
|
|
19
|
+
})),
|
|
20
|
+
purchase_order: e.string().min(1),
|
|
21
|
+
purchase_order_number: e.coerce.number().int().min(t.purchase_order, n._("Can't be less than {nextNumbersPurchase_order}", {
|
|
22
|
+
nextNumbersPurchase_order: t.purchase_order
|
|
23
|
+
})),
|
|
24
|
+
include_date: e.boolean(),
|
|
25
|
+
prefix: e.string().max(25, n._("Prefix should have at most 25 characters")),
|
|
26
|
+
separator: e.enum(["/", "-", "|", ".", ""]),
|
|
27
|
+
invoice_bank_display: e.boolean(),
|
|
28
|
+
update_paid_invoices: e.boolean(),
|
|
29
|
+
quote_signature_display: e.boolean(),
|
|
30
|
+
quote_electronic_signature: e.union([e.boolean(), e.string()])
|
|
31
|
+
});
|
|
16
32
|
export {
|
|
17
|
-
|
|
18
|
-
A as APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP,
|
|
19
|
-
i as FILTER_TYPE_ADDED_BY,
|
|
20
|
-
d as FILTER_TYPE_CREATED_AT,
|
|
21
|
-
S as FILTER_TYPE_CURRENT_USER,
|
|
22
|
-
R as FILTER_TYPE_STATUS,
|
|
23
|
-
o as ROW_TO_STATUS_MUI_MAP
|
|
33
|
+
i as getInvoiceSettingsFormSchema
|
|
24
34
|
};
|
|
@@ -1,59 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const {
|
|
15
|
-
i18n: a
|
|
16
|
-
} = m(), {
|
|
17
|
-
root: r
|
|
18
|
-
} = s();
|
|
19
|
-
return /* @__PURE__ */ n(p, { className: "Monite-ApprovalRequestsFilters", sx: i, children: [
|
|
20
|
-
/* @__PURE__ */ n(u, { variant: "standard", fullWidth: !0, className: "Monite-ApprovalStatusFilter Monite-FilterControl", children: [
|
|
21
|
-
/* @__PURE__ */ t(c, { id: "status", children: a._("Status") }),
|
|
22
|
-
/* @__PURE__ */ t(d, { labelId: "status", label: a._("Status"), defaultValue: "all", MenuProps: {
|
|
23
|
-
container: r
|
|
24
|
-
}, onChange: (e) => {
|
|
25
|
-
l(R, e && e.target.value);
|
|
26
|
-
}, children: [{
|
|
27
|
-
label: a._("All invoices"),
|
|
28
|
-
value: "all"
|
|
29
|
-
}, ...Object.values(v).map((e) => ({
|
|
30
|
-
label: S(a)[e],
|
|
31
|
-
value: e
|
|
32
|
-
}))].map(({
|
|
33
|
-
label: e,
|
|
34
|
-
value: o
|
|
35
|
-
}) => /* @__PURE__ */ t(E, { value: o, children: e }, o)) })
|
|
36
|
-
] }),
|
|
37
|
-
/* @__PURE__ */ t(M, { onChange: (e) => l(A, e || null) }),
|
|
38
|
-
/* @__PURE__ */ t(_, { label: a._("Requested on"), className: "Monite-ApprovalRequestedOnFilter Monite-FilterControl Monite-DateFilterControl", onChange: (e, o) => {
|
|
39
|
-
o.validationError || l(C, e);
|
|
40
|
-
}, slotProps: {
|
|
41
|
-
textField: {
|
|
42
|
-
variant: "standard"
|
|
43
|
-
},
|
|
44
|
-
popper: {
|
|
45
|
-
container: r
|
|
46
|
-
},
|
|
47
|
-
dialog: {
|
|
48
|
-
container: r
|
|
49
|
-
},
|
|
50
|
-
actionBar: {
|
|
51
|
-
actions: ["clear", "today"]
|
|
1
|
+
const a = (n) => !!n && typeof n == "object" && "display_organization_bank_account" in n, t = (n, i) => a(n) ? !!(n.display_organization_bank_account ?? i) : i, _ = (n, i) => {
|
|
2
|
+
const o = a(n?.invoice);
|
|
3
|
+
return {
|
|
4
|
+
...n,
|
|
5
|
+
display_organization_bank_account: i.invoice_bank_display,
|
|
6
|
+
quote: {
|
|
7
|
+
...n?.quote,
|
|
8
|
+
display_signature: i.quote_signature_display
|
|
9
|
+
},
|
|
10
|
+
...o ? {
|
|
11
|
+
invoice: {
|
|
12
|
+
...n?.invoice,
|
|
13
|
+
display_organization_bank_account: i.invoice_bank_display
|
|
52
14
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
] });
|
|
15
|
+
} : {}
|
|
16
|
+
};
|
|
56
17
|
};
|
|
57
18
|
export {
|
|
58
|
-
|
|
19
|
+
_ as buildDocumentRendering,
|
|
20
|
+
t as getBankDisplayValue,
|
|
21
|
+
a as hasBankDisplay
|
|
59
22
|
};
|
|
@@ -1,31 +1,75 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { getRowToStatusTextMap as T } from "./index376.js";
|
|
7
|
-
const c = ({
|
|
8
|
-
ref: s,
|
|
1
|
+
import { jsx as t, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as n } from "./index100.js";
|
|
3
|
+
import * as a from "@radix-ui/react-select";
|
|
4
|
+
import { ChevronDownIcon as i, CheckIcon as w, ChevronUpIcon as d } from "lucide-react";
|
|
5
|
+
function g({
|
|
9
6
|
...e
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t(a.Root, { "data-slot": "select", ...e });
|
|
9
|
+
}
|
|
10
|
+
function h({
|
|
11
|
+
...e
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ t(a.Value, { "data-slot": "select-value", ...e });
|
|
14
|
+
}
|
|
15
|
+
function v({
|
|
16
|
+
className: e,
|
|
17
|
+
size: s = "default",
|
|
18
|
+
children: o,
|
|
19
|
+
...r
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ l(a.Trigger, { "data-slot": "select-trigger", "data-size": s, className: n("ttw:border-input ttw:data-[placeholder]:text-muted-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive ttw:dark:bg-input/30 ttw:dark:hover:bg-input/50 ttw:flex ttw:w-fit ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:bg-transparent ttw:px-3 ttw:py-2 ttw:text-sm ttw:whitespace-nowrap ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-9 ttw:data-[size=sm]:h-8 ttw:*:data-[slot=select-value]:line-clamp-1 ttw:*:data-[slot=select-value]:flex ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1 ttw:*:data-[slot=select-value]:items-center ttw:*:data-[slot=select-value]:gap-2 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", e), ...r, children: [
|
|
22
|
+
o,
|
|
23
|
+
/* @__PURE__ */ t(a.Icon, { asChild: !0, children: /* @__PURE__ */ t(i, { className: "ttw:size-4 ttw:opacity-50" }) })
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
function x({
|
|
27
|
+
className: e,
|
|
28
|
+
children: s,
|
|
29
|
+
position: o = "popper",
|
|
30
|
+
...r
|
|
31
|
+
}) {
|
|
32
|
+
return /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ l(a.Content, { "data-slot": "select-content", className: n("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:relative ttw:z-1300 ttw:max-h-(--radix-select-content-available-height) ttw:min-w-[8rem] ttw:origin-(--radix-select-content-transform-origin) ttw:overflow-x-hidden ttw:overflow-y-auto ttw:rounded-md ttw:border-none ttw:shadow-md", o === "popper" && "ttw:data-[side=bottom]:translate-y-1 ttw:data-[side=left]:-translate-x-1 ttw:data-[side=right]:translate-x-1 ttw:data-[side=top]:-translate-y-1", e), position: o, ...r, children: [
|
|
33
|
+
/* @__PURE__ */ t(c, {}),
|
|
34
|
+
/* @__PURE__ */ t(a.Viewport, { className: n("ttw:p-1", o === "popper" && "ttw:h-[var(--radix-select-trigger-height)] ttw:w-full ttw:min-w-[var(--radix-select-trigger-width)] ttw:scroll-my-1"), children: s }),
|
|
35
|
+
/* @__PURE__ */ t(u, {})
|
|
36
|
+
] }) });
|
|
37
|
+
}
|
|
38
|
+
function b({
|
|
39
|
+
className: e,
|
|
40
|
+
children: s,
|
|
41
|
+
...o
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ l(a.Item, { "data-slot": "select-item", className: n("ttw:focus:bg-accent ttw:focus:text-accent-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:relative ttw:flex ttw:w-full ttw:cursor-default ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:py-1.5 ttw:pr-8 ttw:pl-2 ttw:text-sm ttw:outline-hidden ttw:select-none ttw:data-[disabled]:pointer-events-none ttw:data-[disabled]:opacity-50 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4 ttw:*:[span]:last:flex ttw:*:[span]:last:min-w-0 ttw:*:[span]:last:flex-1 ttw:*:[span]:last:items-center ttw:*:[span]:last:gap-2", e), ...o, children: [
|
|
44
|
+
/* @__PURE__ */ t("span", { className: "ttw:absolute ttw:right-2 ttw:flex ttw:size-3.5 ttw:items-center ttw:justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(w, { className: "ttw:size-4" }) }) }),
|
|
45
|
+
/* @__PURE__ */ t(a.ItemText, { children: s })
|
|
46
|
+
] });
|
|
47
|
+
}
|
|
48
|
+
function N({
|
|
49
|
+
className: e,
|
|
50
|
+
...s
|
|
51
|
+
}) {
|
|
52
|
+
return /* @__PURE__ */ t(a.Separator, { "data-slot": "select-separator", className: n("ttw:bg-border ttw:pointer-events-none ttw:-mx-1 ttw:my-1 ttw:h-px", e), ...s });
|
|
53
|
+
}
|
|
54
|
+
function c({
|
|
55
|
+
className: e,
|
|
56
|
+
...s
|
|
57
|
+
}) {
|
|
58
|
+
return /* @__PURE__ */ t(a.ScrollUpButton, { "data-slot": "select-scroll-up-button", className: n("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e), ...s, children: /* @__PURE__ */ t(d, { className: "ttw:size-4" }) });
|
|
59
|
+
}
|
|
60
|
+
function u({
|
|
61
|
+
className: e,
|
|
62
|
+
...s
|
|
63
|
+
}) {
|
|
64
|
+
return /* @__PURE__ */ t(a.ScrollDownButton, { "data-slot": "select-scroll-down-button", className: n("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e), ...s, children: /* @__PURE__ */ t(i, { className: "ttw:size-4" }) });
|
|
65
|
+
}
|
|
29
66
|
export {
|
|
30
|
-
|
|
67
|
+
g as Select,
|
|
68
|
+
x as SelectContent,
|
|
69
|
+
b as SelectItem,
|
|
70
|
+
u as SelectScrollDownButton,
|
|
71
|
+
c as SelectScrollUpButton,
|
|
72
|
+
N as SelectSeparator,
|
|
73
|
+
v as SelectTrigger,
|
|
74
|
+
h as SelectValue
|
|
31
75
|
};
|
|
@@ -1,62 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return /* @__PURE__ */ e(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
const {
|
|
40
|
-
i18n: t
|
|
41
|
-
} = s(), {
|
|
42
|
-
data: r
|
|
43
|
-
} = p();
|
|
44
|
-
if ("onRowActionClick" in o && o.onRowActionClick)
|
|
45
|
-
return {
|
|
46
|
-
field: "actions",
|
|
47
|
-
headerName: t._("Actions"),
|
|
48
|
-
sortable: !1,
|
|
49
|
-
display: "flex",
|
|
50
|
-
align: "right",
|
|
51
|
-
renderCell: (i) => {
|
|
52
|
-
if (i.row.status === "waiting" && r?.id && i.row.user_ids.includes(r.id) && !i.row.approved_by?.includes(r.id))
|
|
53
|
-
return /* @__PURE__ */ d(m, { direction: "row", children: [
|
|
54
|
-
/* @__PURE__ */ e(C, { id: i.row.id, onClick: o.onRowActionClick }),
|
|
55
|
-
/* @__PURE__ */ e(k, { id: i.row.id, onClick: o.onRowActionClick })
|
|
56
|
-
] });
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
};
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "./index100.js";
|
|
3
|
+
function r({
|
|
4
|
+
className: t,
|
|
5
|
+
...a
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ e("div", { "data-slot": "table-container", className: "ttw:flex-1 ttw:relative ttw:w-0 ttw:min-w-full ttw:overflow-x-auto", children: /* @__PURE__ */ e("table", { "data-slot": "table", className: l("ttw:w-full ttw:caption-bottom ttw:text-sm", t), ...a }) });
|
|
8
|
+
}
|
|
9
|
+
function w({
|
|
10
|
+
className: t,
|
|
11
|
+
...a
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e("thead", { "data-slot": "table-header", className: l("ttw:[&_tr]:border-b", t), ...a });
|
|
14
|
+
}
|
|
15
|
+
function c({
|
|
16
|
+
className: t,
|
|
17
|
+
...a
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ e("tbody", { "data-slot": "table-body", className: l("ttw:[&_tr:last-child]:border-0", t), ...a });
|
|
20
|
+
}
|
|
21
|
+
function n({
|
|
22
|
+
className: t,
|
|
23
|
+
...a
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ e("tr", { "data-slot": "table-row", className: l("ttw:border-b ttw:transition-colors ttw:hover:bg-muted/50 ttw:data-[state=selected]:bg-muted", t), ...a });
|
|
26
|
+
}
|
|
27
|
+
function d({
|
|
28
|
+
className: t,
|
|
29
|
+
...a
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ e("th", { "data-slot": "table-head", className: l("ttw:h-10 ttw:px-2 ttw:text-left ttw:align-middle ttw:font-medium ttw:whitespace-nowrap ttw:text-foreground ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
|
|
32
|
+
}
|
|
33
|
+
function b({
|
|
34
|
+
className: t,
|
|
35
|
+
...a
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ e("td", { "data-slot": "table-cell", className: l("ttw:p-2 ttw:align-middle ttw:whitespace-nowrap ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
|
|
38
|
+
}
|
|
60
39
|
export {
|
|
61
|
-
|
|
40
|
+
r as Table,
|
|
41
|
+
c as TableBody,
|
|
42
|
+
b as TableCell,
|
|
43
|
+
d as TableHead,
|
|
44
|
+
w as TableHeader,
|
|
45
|
+
n as TableRow
|
|
62
46
|
};
|
|
@@ -1,22 +1,67 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { UserAvatar as m } from "./index378.js";
|
|
10
|
-
import { Chip as i, Skeleton as n } from "@mui/material";
|
|
11
|
-
const y = ({
|
|
12
|
-
entityUserId: o
|
|
1
|
+
import { jsx as a, jsxs as g } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as o, useCallback as x } from "react";
|
|
3
|
+
import { getLineItemErrorMessage as b } from "./index278.js";
|
|
4
|
+
import { useLingui as E } from "@lingui/react";
|
|
5
|
+
import { Collapse as _, Alert as j, List as v, ListItem as L, ListItemText as A } from "@mui/material";
|
|
6
|
+
const q = ({
|
|
7
|
+
generalError: e,
|
|
8
|
+
fieldErrors: n
|
|
13
9
|
}) => {
|
|
10
|
+
const t = o(() => {
|
|
11
|
+
for (const r of Object.values(n))
|
|
12
|
+
if (r) return !0;
|
|
13
|
+
return !1;
|
|
14
|
+
}, [n]);
|
|
15
|
+
return e || t ? /* @__PURE__ */ a(_, { in: !0, sx: {
|
|
16
|
+
":not(.MuiCollapse-hidden)": {
|
|
17
|
+
marginBottom: 1
|
|
18
|
+
}
|
|
19
|
+
}, children: /* @__PURE__ */ g(j, { severity: "error", sx: {
|
|
20
|
+
"& .MuiAlert-icon": {
|
|
21
|
+
alignItems: "center"
|
|
22
|
+
}
|
|
23
|
+
}, children: [
|
|
24
|
+
e && /* @__PURE__ */ a("div", { children: e }),
|
|
25
|
+
t && /* @__PURE__ */ a(v, { dense: !0, disablePadding: !0, sx: {
|
|
26
|
+
mt: e ? 1 : 0
|
|
27
|
+
}, children: Object.entries(n).map(([r, s]) => s ? /* @__PURE__ */ a(L, { disablePadding: !0, children: /* @__PURE__ */ a(A, { primary: s, primaryTypographyProps: {
|
|
28
|
+
sx: {
|
|
29
|
+
color: "inherit"
|
|
30
|
+
}
|
|
31
|
+
} }) }, r) : null) })
|
|
32
|
+
] }) }) : null;
|
|
33
|
+
}, C = (e) => {
|
|
14
34
|
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
35
|
+
i18n: n
|
|
36
|
+
} = E(), t = o(() => Array.isArray(e) ? e : e ? [e] : [], [e]), r = x((i) => {
|
|
37
|
+
for (let u = 0; u < t.length; u++) {
|
|
38
|
+
const f = t[u];
|
|
39
|
+
if (typeof f == "object") {
|
|
40
|
+
const h = b(f, i);
|
|
41
|
+
if (h)
|
|
42
|
+
return h;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
}, [t]), s = o(() => r("product.name") ?? r("name"), [r]), l = o(() => r("quantity"), [r]), m = o(() => r("price") ?? r("product.price.value") ?? r("product.price.currency"), [r]), c = o(() => r("tax_rate_value"), [r]), p = o(() => r("product.measure_unit_id") ?? r("product.measure_unit_name") ?? r("measure_unit"), [r]), d = o(() => r("product.type"), [r]), y = o(() => t.length === 0 || (s || l || m || c || p || d) ? void 0 : t.some((i) => {
|
|
47
|
+
if (!i || typeof i != "object") return !1;
|
|
48
|
+
const u = Object.keys(i);
|
|
49
|
+
return u.length > 0 && u.some((f) => i[f] != null);
|
|
50
|
+
}) ? n._("Please check the form for errors") : void 0, [t, s, l, m, c, p, d, n]);
|
|
51
|
+
return {
|
|
52
|
+
generalError: y,
|
|
53
|
+
fieldErrors: {
|
|
54
|
+
name: s,
|
|
55
|
+
quantity: l,
|
|
56
|
+
price: m,
|
|
57
|
+
tax: c,
|
|
58
|
+
measureUnit: p,
|
|
59
|
+
productType: d
|
|
60
|
+
},
|
|
61
|
+
hasErrors: !!(y || s || l || m || c || p || d)
|
|
62
|
+
};
|
|
19
63
|
};
|
|
20
64
|
export {
|
|
21
|
-
|
|
65
|
+
q as FormErrorDisplay,
|
|
66
|
+
C as useFormErrors
|
|
22
67
|
};
|
|
@@ -1,69 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
/* @__PURE__ */ e(H, { align: "inline-start", children: /* @__PURE__ */ e(S, {}) }),
|
|
43
|
-
/* @__PURE__ */ e(k, { placeholder: i._("Search"), onChange: (t) => $(t.target.value) })
|
|
44
|
-
] }),
|
|
45
|
-
/* @__PURE__ */ r(A, { className: "ttw:table-fixed ttw:border ttw:border-border ttw:rounded-md", children: [
|
|
46
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(h, { className: "ttw:hover:bg-transparent ttw:border-border", children: [
|
|
47
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[35%]", children: i._("Unit label") }),
|
|
48
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[55%]", children: i._("Description (optional)") }),
|
|
49
|
-
/* @__PURE__ */ e(l, { className: "ttw:w-[10%]" })
|
|
50
|
-
] }) }),
|
|
51
|
-
/* @__PURE__ */ r(G, { children: [
|
|
52
|
-
/* @__PURE__ */ e(f, { isEditMode: !1 }),
|
|
53
|
-
D.map((t) => g?.id === t.id ? /* @__PURE__ */ e(f, { isEditMode: !0, initialValues: t, onCancel: v, onEdit: () => s(null), id: t.id }, t.id) : /* @__PURE__ */ r(h, { className: "ttw:border-border", children: [
|
|
54
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[35%] ttw:text-sm ttw:truncate", children: t.name }),
|
|
55
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[55%] ttw:text-sm ttw:text-muted-foreground ttw:truncate", children: t.description || "—" }),
|
|
56
|
-
/* @__PURE__ */ e(d, { className: "ttw:w-[10%]", children: /* @__PURE__ */ e(z, { permissions: {
|
|
57
|
-
isUpdateAllowed: !0,
|
|
58
|
-
isDeleteAllowed: !0
|
|
59
|
-
}, onEdit: () => s(t), onDelete: () => L(t) }) })
|
|
60
|
-
] }, t.id))
|
|
61
|
-
] })
|
|
62
|
-
] })
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ e(j, { open: x, id: a?.id, name: a?.name || "", isLoading: p, onClose: o, onDelete: U })
|
|
1
|
+
import { jsxs as _, jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { memo as b } from "react";
|
|
3
|
+
import { Button as I } from "./index84.js";
|
|
4
|
+
import { Checkbox as y } from "./index285.js";
|
|
5
|
+
import { Trash2 as R } from "lucide-react";
|
|
6
|
+
import { ItemSelector as U } from "./index276.js";
|
|
7
|
+
import { PriceField as N } from "./index390.js";
|
|
8
|
+
import { QuantityField as V } from "./index391.js";
|
|
9
|
+
import { MeasureUnitField as j } from "./index392.js";
|
|
10
|
+
const k = ({
|
|
11
|
+
index: t,
|
|
12
|
+
control: l,
|
|
13
|
+
errors: a,
|
|
14
|
+
defaultCurrency: i = "USD",
|
|
15
|
+
measureUnitsData: m,
|
|
16
|
+
container: c,
|
|
17
|
+
onRequestLineItemValue: n,
|
|
18
|
+
onLineItemValueChange: o,
|
|
19
|
+
onRequestOpenCreateProductDialog: p,
|
|
20
|
+
onUpdateItem: h,
|
|
21
|
+
onRemoveItem: s,
|
|
22
|
+
canRemove: u
|
|
23
|
+
}) => {
|
|
24
|
+
const w = !!a.line_items?.[t]?.product?.name, v = !!a.line_items?.[t]?.quantity, f = !!a.line_items?.[t]?.product?.price?.value, d = n("product.name"), x = !!(d && d.trim()), C = a.line_items?.[t]?.product?.measure_unit_id;
|
|
25
|
+
return /* @__PURE__ */ _("li", { className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-9", children: [
|
|
26
|
+
/* @__PURE__ */ e("div", { className: "ttw:flex-1 ttw:min-w-30", children: /* @__PURE__ */ e(U, { onCreateItem: p, onChange: (r, g) => h(t, r, g), fieldName: n("product.name") || "", index: t, error: w, defaultCurrency: i, measureUnits: m, container: c }) }),
|
|
27
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(V, { index: t, control: l, quantityError: v, canRemove: u, hasProduct: x, onLineItemValueChange: o, onRemoveItem: s }) }),
|
|
28
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(j, { value: n("product.measure_unit_id"), onChange: (r) => {
|
|
29
|
+
o("product.measure_unit_id", r, {
|
|
30
|
+
shouldValidate: !0
|
|
31
|
+
});
|
|
32
|
+
}, availableMeasureUnits: m?.data || [], fieldError: C }) }),
|
|
33
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(N, { error: f, currency: i, value: n("product.price.value"), onChange: (r) => {
|
|
34
|
+
o("product.price.value", r, {
|
|
35
|
+
shouldValidate: !0
|
|
36
|
+
});
|
|
37
|
+
} }) }),
|
|
38
|
+
/* @__PURE__ */ e("div", { className: "ttw:w-12 ttw:min-w-12 ttw:flex ttw:items-center ttw:justify-center", children: /* @__PURE__ */ e(y, { checked: n("taxable") ?? !1, onCheckedChange: (r) => {
|
|
39
|
+
o("taxable", r === !0);
|
|
40
|
+
} }) }),
|
|
41
|
+
u && /* @__PURE__ */ e(I, { type: "button", variant: "ghost", size: "sm", className: "ttw:w-10 ttw:text-muted-foreground ttw:hover:bg-transparent ttw:hover:text-destructive ttw:border-l ttw:border-border ttw:pl-4 ttw:rounded-none ttw:has-[>svg]:pr-0", onClick: () => s(t), children: /* @__PURE__ */ e(R, {}) })
|
|
65
42
|
] });
|
|
66
|
-
};
|
|
43
|
+
}, S = b(k);
|
|
67
44
|
export {
|
|
68
|
-
|
|
45
|
+
S as InvoiceItemRow
|
|
69
46
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useLingui as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as n, jsx as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useLingui as r } from "@lingui/react";
|
|
3
|
+
import { twMerge as i } from "tailwind-merge";
|
|
4
|
+
const o = ({
|
|
5
|
+
label: e,
|
|
6
|
+
value: l,
|
|
7
|
+
className: a
|
|
8
|
+
}) => /* @__PURE__ */ n("li", { className: i("ttw:flex ttw:justify-between ttw:items-center", a), children: [
|
|
9
|
+
/* @__PURE__ */ t("span", { children: e }),
|
|
10
|
+
/* @__PURE__ */ t("span", { children: l?.toString() })
|
|
11
|
+
] }), u = ({
|
|
12
|
+
subtotalPrice: e,
|
|
13
|
+
totalTaxes: l,
|
|
14
|
+
totalPrice: a
|
|
15
|
+
}) => {
|
|
5
16
|
const {
|
|
6
|
-
i18n:
|
|
7
|
-
} =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
product_id: r
|
|
14
|
-
}
|
|
15
|
-
}, {
|
|
16
|
-
onSuccess: async () => {
|
|
17
|
-
await t.finops.getProducts.invalidateQueries(i), o.success(e._("Product was deleted.")), s?.();
|
|
18
|
-
},
|
|
19
|
-
onError: () => {
|
|
20
|
-
o.error(e._("Failed to delete product."));
|
|
21
|
-
}
|
|
22
|
-
});
|
|
17
|
+
i18n: s
|
|
18
|
+
} = r();
|
|
19
|
+
return /* @__PURE__ */ n("ul", { className: "ttw:w-full ttw:flex ttw:flex-col ttw:gap-1.5 ttw:list-none", children: [
|
|
20
|
+
/* @__PURE__ */ t(o, { label: s._("Subtotal"), value: e, className: "ttw:text-sm ttw:font-normal" }),
|
|
21
|
+
/* @__PURE__ */ t(o, { label: s._("Tax"), value: l, className: "ttw:text-sm ttw:font-normal" }),
|
|
22
|
+
/* @__PURE__ */ t(o, { label: s._("Total"), value: a, className: "ttw:text-lg ttw:font-medium" })
|
|
23
|
+
] });
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
u as InvoiceTotals
|
|
26
27
|
};
|