@tesouro/embedded-components-react 0.2.29 → 0.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/ReceivablesWidget.js +25 -25
- package/dist/libs/shared/util-validation/dist/index22.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.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/index110.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 +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +23 -12
- 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 +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +9 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1270 -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/index130.js +33 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +12 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +43 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +75 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +57 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +197 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +11 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +14 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +61 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +39 -76
- 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 +26 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +80 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +74 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +29 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +42 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +7 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +248 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +179 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +115 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +84 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +102 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +107 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +54 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +64 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +24 -150
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +86 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +64 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +48 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +15 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +33 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +110 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +70 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +185 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +30 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +120 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +58 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +20 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +27 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +12 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +10 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +21 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +4 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +6 -248
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +43 -179
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +367 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +20 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +20 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +18 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +11 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +87 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +20 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +32 -48
- 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 +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +12 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +25 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +13 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +12 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +115 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +10 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +46 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +46 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +9 -16
- 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 +44 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +149 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +56 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +71 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +27 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +3 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +23 -366
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +11 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +18 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +20 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +27 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +114 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +68 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +94 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +57 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +86 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +96 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +13 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +57 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +397 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +68 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +406 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +7 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +35 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +100 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +25 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +7 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +214 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +12 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +36 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +50 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +54 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +343 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +2 -491
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +16 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +11 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +18 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +32 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +36 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +36 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +15 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +10 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +26 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +37 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +46 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +30 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +95 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +42 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +141 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +86 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +21 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +183 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +25 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +37 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +47 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +5 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +75 -343
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +62 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +125 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +44 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +73 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +42 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +62 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +31 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +113 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +21 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +40 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +56 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +483 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +164 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +31 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +43 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +31 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +102 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +21 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +31 -341
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +55 -301
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +33 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +17 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +56 -262
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +92 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +128 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +39 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +42 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +20 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +157 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +28 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +75 -156
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +22 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +52 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +29 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +58 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +39 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +338 -164
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +299 -130
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +93 -152
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +160 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +266 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +23 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +2 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +93 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +96 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +192 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +59 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +43 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +21 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +189 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +104 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +81 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +289 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +46 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +15 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +83 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +225 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +149 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +47 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +48 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +111 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +22 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +32 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +11 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +28 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +39 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +59 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +92 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +110 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +81 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +10 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +19 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +62 -52
- 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 +14 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +80 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +76 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +43 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +39 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +164 -58
- 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 +132 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +158 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +9 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +18 -107
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +62 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +63 -285
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +54 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +8 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +8 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +55 -218
- 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 +22 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +61 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +14 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +34 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +26 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +20 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +72 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +89 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +37 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +30 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +11 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +38 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +55 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +24 -11
- 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 +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +47 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +92 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +36 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +32 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +12 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +66 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +64 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +28 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +31 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +4 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +126 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +16 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +14 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +13 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +20 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +12 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +21 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +2 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +120 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +16 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +9 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +7 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +48 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +71 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +16 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +11 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +72 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +67 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +104 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +81 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +32 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +85 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +23 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +33 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +53 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +36 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +24 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +22 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +37 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +68 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +46 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +67 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +56 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +29 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +54 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +34 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +18 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +52 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +94 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +16 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +75 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +22 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +9 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +43 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +36 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +14 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +18 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +49 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +58 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +30 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +39 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +17 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +81 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +12 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +48 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +19 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +36 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +50 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +52 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +43 -48
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index10.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index12.js +46 -44
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index7.js +7 -7
- package/package.json +1 -1
|
@@ -1,37 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsx as o, jsxs as h, Fragment as x } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as n } from "react";
|
|
3
|
+
import { useMoniteContext as y } from "./index59.js";
|
|
4
|
+
import { useRootElements as I } from "./index94.js";
|
|
5
|
+
import { classNames as _ } from "./index146.js";
|
|
6
|
+
import { useLingui as F } from "@lingui/react";
|
|
7
|
+
import { Autocomplete as M, TextField as O, CircularProgress as v } from "@mui/material";
|
|
8
|
+
const $ = ({
|
|
9
|
+
onChange: l,
|
|
10
|
+
className: p
|
|
11
|
+
}) => {
|
|
6
12
|
const {
|
|
7
|
-
api: e,
|
|
8
|
-
queryClient: o
|
|
9
|
-
} = u(), {
|
|
10
13
|
i18n: r
|
|
11
|
-
} =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
} = F(), {
|
|
15
|
+
api: d
|
|
16
|
+
} = y(), {
|
|
17
|
+
root: u
|
|
18
|
+
} = I(), [i, s] = n(!1), [m, c] = n(null), [f, g] = n(""), {
|
|
19
|
+
data: C,
|
|
20
|
+
isLoading: a,
|
|
21
|
+
refetch: A
|
|
22
|
+
} = d.finops.getEntityUsers.useQuery({
|
|
23
|
+
query: {
|
|
24
|
+
name__istartswith: f || void 0
|
|
15
25
|
}
|
|
16
26
|
}, {
|
|
17
|
-
|
|
18
|
-
document_id: n ?? "document id is unknown"
|
|
19
|
-
})), p?.(t ?? ""), new Promise((s) => {
|
|
20
|
-
setTimeout(() => {
|
|
21
|
-
Promise.all([e.finops.getPayablesId.invalidateQueries({
|
|
22
|
-
parameters: {
|
|
23
|
-
path: {
|
|
24
|
-
payable_id: t ?? ""
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}, o), e.finops.getPayables.invalidateQueries(o)]).then(() => s());
|
|
28
|
-
}, 500);
|
|
29
|
-
})),
|
|
30
|
-
onError: (s) => {
|
|
31
|
-
a.error(m(r, s));
|
|
32
|
-
}
|
|
27
|
+
enabled: i
|
|
33
28
|
});
|
|
29
|
+
return /* @__PURE__ */ o(M, { autoComplete: !0, includeInputInList: !0, filterSelectedOptions: !0, value: m, noOptionsText: r._("No users found"), slotProps: {
|
|
30
|
+
popper: {
|
|
31
|
+
container: u
|
|
32
|
+
}
|
|
33
|
+
}, open: i, onOpen: () => {
|
|
34
|
+
s(!0);
|
|
35
|
+
}, onClose: () => {
|
|
36
|
+
s(!1);
|
|
37
|
+
}, loading: a, options: C?.data || [], getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(), isOptionEqualToValue: (e, t) => e.id === t.id, filterOptions: (e) => e, onInputChange: (e, t) => {
|
|
38
|
+
g(t);
|
|
39
|
+
}, onChange: (e, t) => {
|
|
40
|
+
c(t), l(t?.id), A();
|
|
41
|
+
}, className: _("Monite-ApprovalAddedByFilter-Container", "Monite-FilterControl", p), sx: {
|
|
42
|
+
"&.MuiAutocomplete-root": {
|
|
43
|
+
display: "flex",
|
|
44
|
+
alignItems: "center"
|
|
45
|
+
}
|
|
46
|
+
}, renderInput: (e) => /* @__PURE__ */ o(O, { ...e, variant: "standard", placeholder: r._("Added by"), className: "Monite-ApprovalAddedByFilter Monite-FilterControl", InputProps: {
|
|
47
|
+
...e.InputProps,
|
|
48
|
+
endAdornment: /* @__PURE__ */ h(x, { children: [
|
|
49
|
+
a ? /* @__PURE__ */ o(v, { color: "inherit", size: 20 }) : null,
|
|
50
|
+
e.InputProps.endAdornment
|
|
51
|
+
] })
|
|
52
|
+
} }) });
|
|
34
53
|
};
|
|
35
54
|
export {
|
|
36
|
-
|
|
55
|
+
$ as AutocompleteCreatedBy
|
|
37
56
|
};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as l } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useFileById as s } from "./index79.js";
|
|
3
|
+
import { Avatar as e } from "@mui/material";
|
|
4
|
+
const n = ({
|
|
5
|
+
alt: t,
|
|
6
|
+
fileId: a,
|
|
7
|
+
...r
|
|
8
|
+
}) => a ? /* @__PURE__ */ l(i, { fileId: a, alt: t, ...r }) : /* @__PURE__ */ l(e, { alt: t, ...r }), i = ({
|
|
9
|
+
alt: t,
|
|
10
|
+
fileId: a,
|
|
11
|
+
...r
|
|
12
|
+
}) => {
|
|
3
13
|
const {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return t.finops.putEntitiesIdLogo.useMutation(void 0, {
|
|
8
|
-
onSuccess: async (s) => {
|
|
9
|
-
t.finops.getEntityUsersMyEntity.setQueryData({}, (o) => o && {
|
|
10
|
-
...o,
|
|
11
|
-
logo: s
|
|
12
|
-
}, i), await t.finops.getEntityUsersMyEntity.invalidateQueries(i);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
14
|
+
data: o
|
|
15
|
+
} = s(a);
|
|
16
|
+
return /* @__PURE__ */ l(e, { alt: t, src: o?.url, ...r });
|
|
15
17
|
};
|
|
16
18
|
export {
|
|
17
|
-
|
|
19
|
+
n as UserAvatar
|
|
18
20
|
};
|
|
@@ -1,26 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useLingui as S } from "@lingui/react";
|
|
2
|
+
import { getRuleLabel as g, getRuleName as L, APPROVAL_REQUEST_CALLS as n } from "./index487.js";
|
|
3
|
+
const b = ({
|
|
4
|
+
approvalPolicy: t
|
|
5
|
+
}) => {
|
|
5
6
|
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
i18n: o
|
|
8
|
+
} = S(), s = (r) => {
|
|
9
|
+
if (typeof r != "object" || r === null || !("call" in r) || typeof r.call != "string" || ![n.REQUEST_APPROVAL_BY_USERS, n.REQUEST_APPROVAL_BY_ROLES].includes(r.call) || !("params" in r) || typeof r.params != "object" || r.params === null) return !1;
|
|
10
|
+
const e = r.params;
|
|
11
|
+
return !("user_ids" in e && !Array.isArray(e.user_ids) || "role_ids" in e && !Array.isArray(e.role_ids) || !("required_approval_count" in e) || typeof e.required_approval_count != "number");
|
|
12
|
+
}, i = (r) => typeof r != "object" || r === null || !("run_concurrently" in r) || typeof r.run_concurrently != "boolean" || !("all" in r) || !Array.isArray(r.all) ? !1 : r.all.every((e) => s(e) || i(e)), f = (r) => {
|
|
13
|
+
if (!Array.isArray(r) || r.length !== 1) return !1;
|
|
14
|
+
const [e] = r;
|
|
15
|
+
if (typeof e != "object" || e === null || !("if" in e) || !("then" in e) || !("else" in e)) return !1;
|
|
16
|
+
const {
|
|
17
|
+
if: a,
|
|
18
|
+
then: l,
|
|
19
|
+
else: R
|
|
20
|
+
} = e;
|
|
21
|
+
if (typeof a != "object" || a === null || !("run_concurrently" in a) || !("all" in a)) return !1;
|
|
22
|
+
const {
|
|
23
|
+
run_concurrently: E,
|
|
24
|
+
all: c
|
|
25
|
+
} = a;
|
|
26
|
+
return typeof E != "boolean" || !Array.isArray(c) || !Array.isArray(l) || !Array.isArray(R) ? !1 : c.every((y) => s(y) || i(y));
|
|
27
|
+
}, u = (r) => r.call === n.REQUEST_APPROVAL_BY_USERS && Array.isArray(r.params.user_ids) && r.params.user_ids.length === 1 && r.params.required_approval_count === 1, A = (r) => r.call === n.REQUEST_APPROVAL_BY_USERS && Array.isArray(r.params.user_ids) && r.params.user_ids.length > 1 && r.params.required_approval_count > 0, d = (r) => r.call === n.REQUEST_APPROVAL_BY_ROLES && Array.isArray(r.params.role_ids) && r.params.role_ids.length >= 1 && r.params.required_approval_count > 0, m = (r) => !r.run_concurrently && r.all.length > 1 && r.all.every((e) => s(e) && u(e)), _ = (r) => L(r, o), p = (r, e) => g(r, o, e);
|
|
28
|
+
return f(t?.script) ? {
|
|
29
|
+
rules: t?.script[0].if.all.reduce((r, e) => {
|
|
30
|
+
if (i(e)) {
|
|
31
|
+
if (m(e))
|
|
32
|
+
return {
|
|
33
|
+
...r,
|
|
34
|
+
approval_chain: {
|
|
35
|
+
chainUserIds: e.all.reduce((a, l) => s(l) && u(l) && l.params.user_ids[0] && l.params.user_ids[0] ? [...a, l.params.user_ids[0]] : a, [])
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
} else if (s(e)) {
|
|
39
|
+
if (u(e))
|
|
40
|
+
return {
|
|
41
|
+
...r,
|
|
42
|
+
single_user: {
|
|
43
|
+
userId: e.params.user_ids[0]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
if (A(e))
|
|
47
|
+
return {
|
|
48
|
+
...r,
|
|
49
|
+
users_from_list: {
|
|
50
|
+
userIds: e.params.user_ids,
|
|
51
|
+
count: e.params.required_approval_count
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
if (d(e))
|
|
55
|
+
return {
|
|
56
|
+
...r,
|
|
57
|
+
roles_from_list: {
|
|
58
|
+
roleIds: e.params.role_ids,
|
|
59
|
+
count: e.params.required_approval_count
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return r;
|
|
64
|
+
}, {}),
|
|
65
|
+
getRuleName: _,
|
|
66
|
+
getRuleLabel: p
|
|
67
|
+
} : {
|
|
68
|
+
rules: void 0,
|
|
69
|
+
getRuleName: _,
|
|
70
|
+
getRuleLabel: p
|
|
71
|
+
};
|
|
23
72
|
};
|
|
24
73
|
export {
|
|
25
|
-
|
|
74
|
+
b as useApprovalPolicyScript
|
|
26
75
|
};
|
|
@@ -1,52 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
onClick: u
|
|
17
|
-
}) => {
|
|
18
|
-
const {
|
|
19
|
-
i18n: s
|
|
20
|
-
} = h(), w = o || r || i;
|
|
21
|
-
function p() {
|
|
22
|
-
return i ? /* @__PURE__ */ t(N, { className: "ttw:size-5 ttw:text-danger" }) : r ? /* @__PURE__ */ t(b, { className: "ttw:size-5 ttw:text-success" }) : /* @__PURE__ */ t(y, { className: "ttw:w-5 ttw:h-5" });
|
|
23
|
-
}
|
|
24
|
-
return f(() => {
|
|
25
|
-
let n;
|
|
26
|
-
return r && (n = setTimeout(() => a(), 2e3)), () => clearTimeout(n);
|
|
27
|
-
}, [r, a]), /* @__PURE__ */ t("div", { className: v("ttw:w-full ttw:h-38 ttw:bg-white ttw:box-border ttw:transition-all ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:gap-2 ttw:rounded-lg ttw:border ttw:px-4 ttw:py-6", d ? "ttw:border-solid ttw:border-primary" : "ttw:border-dashed ttw:border-border"), onClick: () => {
|
|
28
|
-
w || u();
|
|
29
|
-
}, children: w ? /* @__PURE__ */ e(c, { children: [
|
|
30
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-4 ttw:justify-center ttw:w-full", children: [
|
|
31
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:w-1/2 ttw:items-center", children: [
|
|
32
|
-
p(),
|
|
33
|
-
/* @__PURE__ */ t("span", { className: "ttw:w-full ttw:text-sm ttw:leading-5 ttw:text-medium ttw:text-neutral ttw:truncate", children: m })
|
|
34
|
-
] }),
|
|
35
|
-
/* @__PURE__ */ e("div", { className: "ttw:flex ttw:gap-2 ttw:items-center", children: [
|
|
36
|
-
/* @__PURE__ */ t(C, { shouldStartProgress: o, isError: i, isSuccess: r }),
|
|
37
|
-
i && /* @__PURE__ */ t("button", { type: "button", disabled: o, onClick: a, className: "ttw:border-none ttw:cursor-pointer", children: /* @__PURE__ */ t(g, { className: "ttw:size-4" }) })
|
|
38
|
-
] })
|
|
39
|
-
] }),
|
|
40
|
-
i && /* @__PURE__ */ t(l, { variant: "body2", color: "destructive", className: "ttw:font-medium", children: s._("Wrong file format. Please, upload the file in JPEG, PNG or GIF format.") })
|
|
41
|
-
] }) : /* @__PURE__ */ e(c, { children: [
|
|
42
|
-
/* @__PURE__ */ t("div", { className: "ttw:p-3 ttw:bg-primary ttw:rounded-full", children: /* @__PURE__ */ t(x, { className: "ttw:text-white ttw:size-5" }) }),
|
|
43
|
-
/* @__PURE__ */ e(l, { variant: "body2", className: "ttw:font-medium", children: [
|
|
44
|
-
s._("Drop your files here, or "),
|
|
45
|
-
/* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline ttw:hover:cursor-pointer", children: s._("click to browse") })
|
|
46
|
-
] }),
|
|
47
|
-
/* @__PURE__ */ t(l, { variant: "caption", color: "muted", children: s._("PNG, JPG or GIF (max. 10MB)") })
|
|
48
|
-
] }) });
|
|
49
|
-
};
|
|
1
|
+
import { createElement as t } from "react";
|
|
2
|
+
const e = ({
|
|
3
|
+
color: h = "currentColor",
|
|
4
|
+
size: a,
|
|
5
|
+
...o
|
|
6
|
+
}) => t("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: a,
|
|
9
|
+
height: a,
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: h,
|
|
12
|
+
...o
|
|
13
|
+
}, t("path", {
|
|
14
|
+
d: "M3.5,6a1,1,0,1,0,1,1A1,1,0,0,0,3.5,6Zm4,2h14a1,1,0,0,0,0-2H7.5a1,1,0,0,0,0,2Zm0,3a1,1,0,1,0,1,1A1,1,0,0,0,7.5,11Zm4,5a1,1,0,1,0,1,1A1,1,0,0,0,11.5,16Zm10-5h-10a1,1,0,0,0,0,2h10a1,1,0,0,0,0-2Zm0,5h-6a1,1,0,0,0,0,2h6a1,1,0,0,0,0-2Z"
|
|
15
|
+
}));
|
|
50
16
|
export {
|
|
51
|
-
|
|
17
|
+
e as UListUiAlt
|
|
52
18
|
};
|
|
@@ -1,34 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
...
|
|
6
|
-
}) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function f({
|
|
17
|
-
className: t,
|
|
18
|
-
align: a = "center",
|
|
19
|
-
sideOffset: r = 4,
|
|
20
|
-
...n
|
|
21
|
-
}) {
|
|
22
|
-
return /* @__PURE__ */ e(o.Portal, { children: /* @__PURE__ */ e(o.Content, { "data-slot": "popover-content", align: a, sideOffset: r, className: i("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:z-1300 ttw:w-72 ttw:origin-(--radix-popover-content-transform-origin) ttw:rounded-md ttw:border ttw:p-4 ttw:shadow-md ttw:outline-hidden", t), ...n }) });
|
|
23
|
-
}
|
|
24
|
-
function l({
|
|
25
|
-
...t
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ e(o.Anchor, { "data-slot": "popover-anchor", ...t });
|
|
28
|
-
}
|
|
1
|
+
import { createElement as e } from "react";
|
|
2
|
+
const a = ({
|
|
3
|
+
color: o = "currentColor",
|
|
4
|
+
size: t,
|
|
5
|
+
...r
|
|
6
|
+
}) => e("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: t,
|
|
9
|
+
height: t,
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: o,
|
|
12
|
+
...r
|
|
13
|
+
}, e("path", {
|
|
14
|
+
d: "M12.3,12.22A4.92,4.92,0,0,0,14,8.5a5,5,0,0,0-10,0,4.92,4.92,0,0,0,1.7,3.72A8,8,0,0,0,1,19.5a1,1,0,0,0,2,0,6,6,0,0,1,12,0,1,1,0,0,0,2,0A8,8,0,0,0,12.3,12.22ZM9,11.5a3,3,0,1,1,3-3A3,3,0,0,1,9,11.5Zm9.74.32A5,5,0,0,0,15,3.5a1,1,0,0,0,0,2,3,3,0,0,1,3,3,3,3,0,0,1-1.5,2.59,1,1,0,0,0-.5.84,1,1,0,0,0,.45.86l.39.26.13.07a7,7,0,0,1,4,6.38,1,1,0,0,0,2,0A9,9,0,0,0,18.74,11.82Z"
|
|
15
|
+
}));
|
|
29
16
|
export {
|
|
30
|
-
|
|
31
|
-
l as PopoverAnchor,
|
|
32
|
-
f as PopoverContent,
|
|
33
|
-
d as PopoverTrigger
|
|
17
|
+
a as UUsersAlt
|
|
34
18
|
};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
})
|
|
1
|
+
import { createElement as e } from "react";
|
|
2
|
+
const A = ({
|
|
3
|
+
color: r = "currentColor",
|
|
4
|
+
size: a,
|
|
5
|
+
...t
|
|
6
|
+
}) => e("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: a,
|
|
9
|
+
height: a,
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: r,
|
|
12
|
+
...t
|
|
13
|
+
}, e("path", {
|
|
14
|
+
d: "M14.81,12.28a3.73,3.73,0,0,0,1-2.5,3.78,3.78,0,0,0-7.56,0,3.73,3.73,0,0,0,1,2.5A5.94,5.94,0,0,0,6,16.89a1,1,0,0,0,2,.22,4,4,0,0,1,7.94,0A1,1,0,0,0,17,18h.11a1,1,0,0,0,.88-1.1A5.94,5.94,0,0,0,14.81,12.28ZM12,11.56a1.78,1.78,0,1,1,1.78-1.78A1.78,1.78,0,0,1,12,11.56ZM19,2H5A3,3,0,0,0,2,5V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2Zm1,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V5A1,1,0,0,1,5,4H19a1,1,0,0,1,1,1Z"
|
|
15
|
+
}));
|
|
7
16
|
export {
|
|
8
|
-
|
|
17
|
+
A as UUserSquare
|
|
9
18
|
};
|
|
@@ -1,56 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className: p
|
|
11
|
-
}) => {
|
|
12
|
-
const {
|
|
13
|
-
i18n: r
|
|
14
|
-
} = F(), {
|
|
15
|
-
api: d
|
|
16
|
-
} = y(), {
|
|
17
|
-
root: u
|
|
18
|
-
} = I(), [i, s] = n(!1), [m, c] = n(null), [f, g] = n(""), {
|
|
19
|
-
data: C,
|
|
20
|
-
isLoading: a,
|
|
21
|
-
refetch: A
|
|
22
|
-
} = d.finops.getEntityUsers.useQuery({
|
|
23
|
-
query: {
|
|
24
|
-
name__istartswith: f || void 0
|
|
25
|
-
}
|
|
26
|
-
}, {
|
|
27
|
-
enabled: i
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ o(M, { autoComplete: !0, includeInputInList: !0, filterSelectedOptions: !0, value: m, noOptionsText: r._("No users found"), slotProps: {
|
|
30
|
-
popper: {
|
|
31
|
-
container: u
|
|
32
|
-
}
|
|
33
|
-
}, open: i, onOpen: () => {
|
|
34
|
-
s(!0);
|
|
35
|
-
}, onClose: () => {
|
|
36
|
-
s(!1);
|
|
37
|
-
}, loading: a, options: C?.data || [], getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(), isOptionEqualToValue: (e, t) => e.id === t.id, filterOptions: (e) => e, onInputChange: (e, t) => {
|
|
38
|
-
g(t);
|
|
39
|
-
}, onChange: (e, t) => {
|
|
40
|
-
c(t), l(t?.id), A();
|
|
41
|
-
}, className: _("Monite-ApprovalAddedByFilter-Container", "Monite-FilterControl", p), sx: {
|
|
42
|
-
"&.MuiAutocomplete-root": {
|
|
43
|
-
display: "flex",
|
|
44
|
-
alignItems: "center"
|
|
45
|
-
}
|
|
46
|
-
}, renderInput: (e) => /* @__PURE__ */ o(O, { ...e, variant: "standard", placeholder: r._("Added by"), className: "Monite-ApprovalAddedByFilter Monite-FilterControl", InputProps: {
|
|
47
|
-
...e.InputProps,
|
|
48
|
-
endAdornment: /* @__PURE__ */ h(x, { children: [
|
|
49
|
-
a ? /* @__PURE__ */ o(v, { color: "inherit", size: 20 }) : null,
|
|
50
|
-
e.InputProps.endAdornment
|
|
51
|
-
] })
|
|
52
|
-
} }) });
|
|
53
|
-
};
|
|
1
|
+
const e = {
|
|
2
|
+
singleUser: (s) => s._("Single user"),
|
|
3
|
+
anyUserFromList: (s) => s._("Any user from the list"),
|
|
4
|
+
anyUsersFromList: (s, r) => s._("Any {count} users from the list", {
|
|
5
|
+
count: r.toString()
|
|
6
|
+
}),
|
|
7
|
+
anyUserWithRole: (s) => s._("Any user with role"),
|
|
8
|
+
allUsersFromList: (s) => s._("All users from list, one by one")
|
|
9
|
+
}, t = (s, r = 0) => r === 1 ? e.anyUserFromList(s) : e.anyUsersFromList(s, r);
|
|
54
10
|
export {
|
|
55
|
-
|
|
11
|
+
e as getSharedApprovalRuleLabel,
|
|
12
|
+
t as getUsersFromListLabel
|
|
56
13
|
};
|
|
@@ -1,20 +1,77 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs as I, jsx as f } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useMemo as d, useState as g, useEffect as j } from "react";
|
|
3
|
+
import { useCurrencies as N } from "./index60.js";
|
|
4
|
+
import "./index94.js";
|
|
5
|
+
import { useLingui as G } from "@lingui/react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "./index59.js";
|
|
8
|
+
import "@mui/x-data-grid";
|
|
9
|
+
import { InputGroup as T, InputGroupAddon as $, InputGroupInput as D } from "./index103.js";
|
|
10
|
+
import { formatMinorToMajorCurrency as n, parseMajorToMinorCurrency as P } from "./index337.js";
|
|
11
|
+
const J = ({
|
|
12
|
+
value: i,
|
|
13
|
+
error: v = !1,
|
|
14
|
+
currency: m,
|
|
15
|
+
disabled: w = !1,
|
|
16
|
+
onChange: u,
|
|
17
|
+
locale: x
|
|
12
18
|
}) => {
|
|
13
19
|
const {
|
|
14
|
-
|
|
15
|
-
} =
|
|
16
|
-
|
|
20
|
+
getSymbolFromCurrency: y
|
|
21
|
+
} = N(), {
|
|
22
|
+
i18n: M
|
|
23
|
+
} = G(), e = x ?? M.locale, o = d(() => new Intl.NumberFormat(e, {
|
|
24
|
+
minimumFractionDigits: 2,
|
|
25
|
+
maximumFractionDigits: 2
|
|
26
|
+
}), [e]), {
|
|
27
|
+
decimalSeparator: F,
|
|
28
|
+
groupSeparator: S
|
|
29
|
+
} = d(() => {
|
|
30
|
+
const r = new Intl.NumberFormat(e).formatToParts(12345.67);
|
|
31
|
+
return {
|
|
32
|
+
decimalSeparator: r.find((t) => t.type === "decimal")?.value || ".",
|
|
33
|
+
groupSeparator: r.find((t) => t.type === "group")?.value || ""
|
|
34
|
+
};
|
|
35
|
+
}, [e]), [s, a] = g(n(i, o)), [l, p] = g(!1);
|
|
36
|
+
j(() => {
|
|
37
|
+
if (!l) {
|
|
38
|
+
const r = n(i, o);
|
|
39
|
+
r !== s && a(r);
|
|
40
|
+
}
|
|
41
|
+
}, [i, l, e, o, s]);
|
|
42
|
+
const b = (r) => {
|
|
43
|
+
const t = r.target.value;
|
|
44
|
+
a(t);
|
|
45
|
+
}, h = () => {
|
|
46
|
+
p(!0);
|
|
47
|
+
}, C = (r) => {
|
|
48
|
+
p(!1);
|
|
49
|
+
const t = r.target.value.trim();
|
|
50
|
+
if (t === "") {
|
|
51
|
+
a(n(0, o)), u(0);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const c = P(t, F, S);
|
|
55
|
+
a(n(c, o)), u(c);
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ I(T, { className: "ttw:max-w-41 ttw:w-full ttw:min-w-29", children: [
|
|
58
|
+
/* @__PURE__ */ f($, { align: "inline-start", children: y(m) || m }),
|
|
59
|
+
/* @__PURE__ */ f(
|
|
60
|
+
D,
|
|
61
|
+
{
|
|
62
|
+
type: "text",
|
|
63
|
+
inputMode: "decimal",
|
|
64
|
+
className: "ttw:text-right",
|
|
65
|
+
"aria-invalid": v || void 0,
|
|
66
|
+
disabled: w,
|
|
67
|
+
value: s,
|
|
68
|
+
onChange: b,
|
|
69
|
+
onFocus: h,
|
|
70
|
+
onBlur: C
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
] });
|
|
17
74
|
};
|
|
18
75
|
export {
|
|
19
|
-
|
|
76
|
+
J as PriceField
|
|
20
77
|
};
|
|
@@ -1,30 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
n.error(s);
|
|
1
|
+
import { jsx as o, jsxs as V } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as x, useEffect as q } from "react";
|
|
3
|
+
import { Controller as C } from "react-hook-form";
|
|
4
|
+
import { Minus as R, Plus as M } from "lucide-react";
|
|
5
|
+
import { InputGroup as N, InputGroupAddon as v, InputGroupButton as y, InputGroupInput as B } from "./index103.js";
|
|
6
|
+
const I = (e) => Math.round(e * 100) / 100, b = (e) => {
|
|
7
|
+
let t = e.replace(/[^0-9.]/g, "");
|
|
8
|
+
const n = t.indexOf(".");
|
|
9
|
+
return n !== -1 && (t = t.slice(0, n + 1) + t.slice(n + 1).replace(/\./g, ""), t = t.slice(0, n + 3)), t;
|
|
10
|
+
}, E = ({
|
|
11
|
+
field: e,
|
|
12
|
+
index: t,
|
|
13
|
+
canRemove: n,
|
|
14
|
+
hasProduct: s,
|
|
15
|
+
hasQuantityError: m,
|
|
16
|
+
onLineItemValueChange: l,
|
|
17
|
+
onRemoveItem: d
|
|
18
|
+
}) => {
|
|
19
|
+
const i = Math.max(0, Number(e.value) || 0), w = n ? 0 : 1, [p, c] = x(i === 0 ? "" : String(i)), [h, f] = x(!1);
|
|
20
|
+
q(() => {
|
|
21
|
+
if (!h) {
|
|
22
|
+
const r = i === 0 ? "" : String(i);
|
|
23
|
+
r !== p && c(r);
|
|
25
24
|
}
|
|
26
|
-
});
|
|
27
|
-
|
|
25
|
+
}, [i, h, p]);
|
|
26
|
+
const g = (r) => {
|
|
27
|
+
const a = I(r);
|
|
28
|
+
if (a <= 0 && n) {
|
|
29
|
+
d(t);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const u = Math.max(w, a);
|
|
33
|
+
l("quantity", u, {
|
|
34
|
+
shouldValidate: !0
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ V(N, { className: "ttw:w-26 ttw:min-w-26 ttw:has-[>[data-align=inline-start]]:[&>input]:pl-0 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0", children: [
|
|
38
|
+
/* @__PURE__ */ o(v, { align: "inline-start", children: /* @__PURE__ */ o(y, { type: "button", size: "icon-xs", disabled: !s || !n && i <= 1, onClick: () => g(i - 1), children: /* @__PURE__ */ o(R, {}) }) }),
|
|
39
|
+
/* @__PURE__ */ o(B, { ref: e.ref, name: e.name, type: "text", inputMode: "decimal", "aria-invalid": m || void 0, value: p, className: "ttw:text-center ttw:px-0", onFocus: () => f(!0), onChange: (r) => {
|
|
40
|
+
const a = b(r.target.value);
|
|
41
|
+
c(a);
|
|
42
|
+
const u = a === "" || a === "." ? 0 : Number(a);
|
|
43
|
+
l("quantity", u, {
|
|
44
|
+
shouldValidate: !1
|
|
45
|
+
});
|
|
46
|
+
}, onBlur: (r) => {
|
|
47
|
+
f(!1);
|
|
48
|
+
const a = b(r.target.value), u = a === "" || a === "." ? 0 : I(Number(a));
|
|
49
|
+
u <= 0 ? n ? d(t) : (c("1"), l("quantity", 1, {
|
|
50
|
+
shouldValidate: !0
|
|
51
|
+
})) : (c(String(u)), l("quantity", u, {
|
|
52
|
+
shouldValidate: !0
|
|
53
|
+
})), e.onBlur();
|
|
54
|
+
} }),
|
|
55
|
+
/* @__PURE__ */ o(v, { align: "inline-end", children: /* @__PURE__ */ o(y, { type: "button", size: "icon-xs", disabled: !s, onClick: () => g(i + 1), children: /* @__PURE__ */ o(M, {}) }) })
|
|
56
|
+
] });
|
|
57
|
+
}, z = ({
|
|
58
|
+
index: e,
|
|
59
|
+
control: t,
|
|
60
|
+
quantityError: n,
|
|
61
|
+
canRemove: s,
|
|
62
|
+
hasProduct: m,
|
|
63
|
+
onLineItemValueChange: l,
|
|
64
|
+
onRemoveItem: d
|
|
65
|
+
}) => /* @__PURE__ */ o(C, { name: `line_items.${e}.quantity`, control: t, render: ({
|
|
66
|
+
field: i
|
|
67
|
+
}) => /* @__PURE__ */ o(E, { field: i, index: e, canRemove: s, hasProduct: m, hasQuantityError: n, onLineItemValueChange: l, onRemoveItem: d }) });
|
|
28
68
|
export {
|
|
29
|
-
|
|
69
|
+
z as QuantityField
|
|
30
70
|
};
|
|
@@ -3,14 +3,14 @@ import { useState as c, useCallback as r } from "react";
|
|
|
3
3
|
import { ProductsTable as g } from "./index45.js";
|
|
4
4
|
import { ProductDetails as v } from "./index47.js";
|
|
5
5
|
import { MoniteScopedProviders as x } from "./index85.js";
|
|
6
|
-
import { useUserPermissions as h } from "./
|
|
6
|
+
import { useUserPermissions as h } from "./index157.js";
|
|
7
7
|
import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
|
|
8
8
|
import "../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
9
|
import "../../shared/data-access/dist/lib/rest/client.gen.js";
|
|
10
10
|
import "@tanstack/react-query";
|
|
11
11
|
import "../../shared/data-access/dist/lib/rest/zod.gen.js";
|
|
12
12
|
import { Scope as R } from "../../shared/data-access/dist/lib/scopes.js";
|
|
13
|
-
import { AccessRestriction as S } from "./
|
|
13
|
+
import { AccessRestriction as S } from "./index158.js";
|
|
14
14
|
import "./index86.js";
|
|
15
15
|
import "clsx";
|
|
16
16
|
import "tailwind-merge";
|