@tesouro/embedded-components-react 0.2.203 → 0.2.204
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 +26 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +3 -13
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
- 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 +1 -1
- 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 +12 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +24 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +35 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +23 -1269
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1270 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -12
- 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 +60 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +397 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +67 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +407 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +26 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +66 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +6 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +5 -8
- 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 +33 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +29 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +12 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +22 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +13 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +119 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +215 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -47
- 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 +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +46 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +49 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +41 -147
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +15 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +9 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +147 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +57 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +70 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +25 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +3 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +64 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +80 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +4 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +96 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +57 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +19 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +20 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +10 -226
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +19 -467
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +20 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +27 -539
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +114 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +68 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +11 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +12 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +9 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +44 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +75 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +55 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +23 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +76 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +29 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +41 -11
- 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 +7 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +226 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +468 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +101 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +531 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +96 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +99 -58
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -397
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +13 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +100 -406
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +24 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +11 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +6 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +211 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -214
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +7 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +35 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +2 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +52 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +29 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +4 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +77 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +32 -361
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +20 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +36 -117
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +51 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +82 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +34 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +66 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +360 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +117 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +17 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +10 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +7 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +8 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +14 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +19 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +22 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +49 -103
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +27 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +15 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +24 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +17 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +110 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +11 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +23 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +36 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +56 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +46 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +98 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +43 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +147 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +106 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +5 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +486 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +165 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +41 -118
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +61 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +29 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +118 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +23 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +41 -488
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +51 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +67 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +18 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +14 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +74 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +54 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +28 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +57 -210
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +36 -342
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +336 -292
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +287 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +98 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +156 -261
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +265 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +24 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +96 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +96 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +211 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +44 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +72 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +76 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +42 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +10 -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 +32 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +19 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +27 -157
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +41 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +59 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +96 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +112 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +81 -121
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +62 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +149 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +19 -111
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +6 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +20 -203
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +16 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +159 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +133 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +157 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +12 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +19 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +65 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +58 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +7 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +59 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +23 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +61 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +157 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +28 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +26 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +78 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +25 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +126 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +45 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +112 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +103 -154
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +48 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +204 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +69 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +30 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +4 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +18 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +32 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +28 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +32 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +30 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +125 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +32 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +7 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +255 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +13 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +23 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +47 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +16 -27
- 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 +48 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +48 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +44 -95
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +22 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +28 -255
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +42 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +24 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +72 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +90 -89
- 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 +27 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +9 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +10 -122
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +69 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +47 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +22 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +96 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +35 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +35 -16
- 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 +123 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +18 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +16 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +32 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +124 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +71 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +11 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +7 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +51 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +16 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +34 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +34 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +53 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +31 -264
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +24 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +18 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +67 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +17 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +17 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +14 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +19 -80
- 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 +11 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +66 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +21 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +116 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +82 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +2 -285
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +9 -66
- 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 +83 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +17 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +84 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +266 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +37 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +60 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +44 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +25 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +141 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +92 -65
- 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 +10 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +282 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +46 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +15 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +20 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +29 -96
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +68 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +57 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +40 -21
- 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 +8 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +17 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +48 -69
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +59 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +32 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +42 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +36 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +14 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +71 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +86 -29
- 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 +52 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +53 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +29 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +54 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +38 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +45 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +69 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +51 -31
- 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 +96 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +15 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +75 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +18 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +9 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +52 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +27 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +38 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +81 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +13 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +32 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +85 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +24 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +101 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +104 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +69 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +66 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +12 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +20 -15
- 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 +20 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +37 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +64 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +9 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +47 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +51 -47
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +53 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +35 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +17 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +38 -18
- 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/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/settings-widget/feature/dist/index2.js +25 -25
- 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 +26 -26
- package/package.json +1 -1
|
@@ -1,170 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
approvalPolicy: d,
|
|
16
|
-
setIsEdit: P
|
|
1
|
+
import { jsxs as f, jsx as s } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useState as c, useMemo as u } from "react";
|
|
3
|
+
import { useMoniteContext as y } from "./index57.js";
|
|
4
|
+
import { useRootElements as E } from "./index92.js";
|
|
5
|
+
import { useDebounceCallback as x, useDebounce as T } from "./index65.js";
|
|
6
|
+
import { useLingui as _ } from "@lingui/react";
|
|
7
|
+
import { X as N } from "lucide-react";
|
|
8
|
+
import { SearchInput as A, DatePicker as $, Combobox as R } from "../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
9
|
+
import { FILTER_TYPE_SEARCH as k, FILTER_TYPE_CREATED_BY as D, FILTER_TYPE_CREATED_AT as v } from "./index269.js";
|
|
10
|
+
const C = 500, F = (t) => {
|
|
11
|
+
const e = `${t.first_name ?? ""} ${t.last_name ?? ""}`.trim();
|
|
12
|
+
return e && t.email ? `${e} (${t.email})` : e || t.email || t.id;
|
|
13
|
+
}, L = ({
|
|
14
|
+
onChange: t
|
|
17
15
|
}) => {
|
|
18
16
|
const {
|
|
19
|
-
i18n:
|
|
20
|
-
} =
|
|
21
|
-
api:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
getTriggerLabel: k,
|
|
26
|
-
getAmountLabel: S
|
|
27
|
-
} = R({
|
|
28
|
-
approvalPolicy: d
|
|
29
|
-
}), {
|
|
30
|
-
rules: t,
|
|
31
|
-
getRuleLabel: b
|
|
32
|
-
} = B({
|
|
33
|
-
approvalPolicy: d
|
|
34
|
-
}), {
|
|
35
|
-
data: L
|
|
36
|
-
} = h.finops.getTags.useQuery({
|
|
17
|
+
i18n: e
|
|
18
|
+
} = _(), {
|
|
19
|
+
api: n
|
|
20
|
+
} = y(), [r, l] = c(null), [m, a] = c(""), b = T(m, C), {
|
|
21
|
+
data: w
|
|
22
|
+
} = n.finops.getEntityUsers.useQuery({
|
|
37
23
|
query: {
|
|
38
|
-
|
|
24
|
+
name__istartswith: b || void 0
|
|
39
25
|
}
|
|
40
|
-
}, {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
case "tags":
|
|
70
|
-
p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
71
|
-
flexWrap: "wrap"
|
|
72
|
-
}, children: L?.data.map((n) => /* @__PURE__ */ e(w, { label: n.name }, n.id)) });
|
|
73
|
-
break;
|
|
74
|
-
case "counterpart_id":
|
|
75
|
-
p = /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
76
|
-
flexWrap: "wrap"
|
|
77
|
-
}, children: W?.data.map((n) => /* @__PURE__ */ e(w, { label: U(n) }, n.id)) });
|
|
78
|
-
break;
|
|
79
|
-
case "amount":
|
|
80
|
-
p = /* @__PURE__ */ e("p", { children: S(i.amount?.value ?? [], i.amount?.currency ?? "EUR") });
|
|
81
|
-
break;
|
|
82
|
-
default:
|
|
83
|
-
p = r;
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
label: l,
|
|
88
|
-
value: p
|
|
89
|
-
};
|
|
90
|
-
}), v = t && Object.keys(t)?.map((r) => {
|
|
91
|
-
if (!t[r]) return null;
|
|
92
|
-
switch (r) {
|
|
93
|
-
case "single_user":
|
|
94
|
-
return {
|
|
95
|
-
label: b(r),
|
|
96
|
-
value: /* @__PURE__ */ e(g, { userId: t[r].userId })
|
|
97
|
-
};
|
|
98
|
-
case "users_from_list":
|
|
99
|
-
return {
|
|
100
|
-
label: b(r, t[r].count),
|
|
101
|
-
value: /* @__PURE__ */ e(c, { direction: "column", gap: 1, sx: {
|
|
102
|
-
flexWrap: "wrap"
|
|
103
|
-
}, children: t[r].userIds?.map((l) => /* @__PURE__ */ e(g, { userId: l }, l)) })
|
|
104
|
-
};
|
|
105
|
-
case "roles_from_list":
|
|
106
|
-
return {
|
|
107
|
-
label: b(r),
|
|
108
|
-
value: /* @__PURE__ */ e(c, { direction: "row", gap: 1, sx: {
|
|
109
|
-
flexWrap: "wrap"
|
|
110
|
-
}, children: t[r].roleIds?.map((l) => /* @__PURE__ */ e(j, { roleId: l, quoted: !0 }, l)) })
|
|
111
|
-
};
|
|
112
|
-
case "approval_chain":
|
|
113
|
-
return {
|
|
114
|
-
label: b(r),
|
|
115
|
-
value: /* @__PURE__ */ e(c, { direction: "column", spacing: 0.5, children: t[r].chainUserIds?.map((l) => l ? /* @__PURE__ */ e(g, { userId: l }, l) : null) })
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
return /* @__PURE__ */ s(D, { children: [
|
|
120
|
-
/* @__PURE__ */ e(Q, { title: d?.name, closeButtonTooltip: a._("Close approval policy details") }),
|
|
121
|
-
/* @__PURE__ */ s(F, { children: [
|
|
122
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 2, mb: 1, children: a._("Description") }),
|
|
123
|
-
d?.description && /* @__PURE__ */ e(u, { variant: "body1", children: d.description }),
|
|
124
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Conditions") }),
|
|
125
|
-
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: /* @__PURE__ */ e(E, { id: "INKhSX", components: {
|
|
126
|
-
0: /* @__PURE__ */ e("strong", {})
|
|
127
|
-
} }) }),
|
|
128
|
-
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
129
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
130
|
-
/* @__PURE__ */ e(o, { children: a._("Condition") }),
|
|
131
|
-
/* @__PURE__ */ e(o, { children: a._("Criteria") })
|
|
132
|
-
] }) }),
|
|
133
|
-
/* @__PURE__ */ e(I, { children: f.length > 0 ? f.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
134
|
-
/* @__PURE__ */ e(o, { children: r.label }),
|
|
135
|
-
/* @__PURE__ */ e(o, { children: r.value })
|
|
136
|
-
] }, r.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No conditions") }) }) })
|
|
137
|
-
] }) }),
|
|
138
|
-
/* @__PURE__ */ e(u, { variant: "h5", mt: 4, mb: 1, children: a._("Approval flow") }),
|
|
139
|
-
/* @__PURE__ */ e(u, { variant: "body1", mb: 1, children: a._("Who needs to approve the document and how:") }),
|
|
140
|
-
/* @__PURE__ */ e(A, { variant: "outlined", children: /* @__PURE__ */ s(x, { children: [
|
|
141
|
-
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ s(m, { children: [
|
|
142
|
-
/* @__PURE__ */ e(o, { children: a._("Approval type") }),
|
|
143
|
-
/* @__PURE__ */ e(o, { children: a._("Users or Roles") })
|
|
144
|
-
] }) }),
|
|
145
|
-
/* @__PURE__ */ e(I, { children: v && v.length > 0 ? v.map((r) => /* @__PURE__ */ s(m, { children: [
|
|
146
|
-
/* @__PURE__ */ e(o, { children: r?.label }),
|
|
147
|
-
/* @__PURE__ */ e(o, { children: r?.value })
|
|
148
|
-
] }, r?.label)) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { colSpan: 2, children: a._("No rules") }) }) })
|
|
149
|
-
] }) })
|
|
150
|
-
] }),
|
|
151
|
-
/* @__PURE__ */ e(N, { primaryButton: {
|
|
152
|
-
label: a._("Edit"),
|
|
153
|
-
onClick: () => P(!0)
|
|
154
|
-
}, deleteButton: {
|
|
155
|
-
onClick: () => {
|
|
156
|
-
y.mutate({
|
|
157
|
-
path: {
|
|
158
|
-
approval_policy_id: d.id
|
|
159
|
-
}
|
|
160
|
-
}, {
|
|
161
|
-
onSuccess: () => T?.onClose?.()
|
|
162
|
-
});
|
|
163
|
-
},
|
|
164
|
-
isLoading: y.isPending
|
|
165
|
-
} })
|
|
26
|
+
}), d = u(() => w?.data ?? [], [w]), i = u(() => d.map((o) => ({
|
|
27
|
+
value: o.id,
|
|
28
|
+
label: F(o)
|
|
29
|
+
})), [d]), p = u(() => !r || i.some((o) => o.value === r.value) ? i : [r, ...i], [i, r]);
|
|
30
|
+
return /* @__PURE__ */ s(R, { items: p, value: r?.value ?? "", placeholder: e._("Added by"), emptyMessage: e._("No users found"), clearAriaLabel: e._("Clear selection"), onQueryChange: a, onValueChange: (o) => {
|
|
31
|
+
const h = Array.isArray(o) ? o[0] ?? "" : o ?? "";
|
|
32
|
+
l(p.find((g) => g.value === h) ?? null), t(h || void 0);
|
|
33
|
+
} });
|
|
34
|
+
}, X = ({
|
|
35
|
+
onChangeFilter: t
|
|
36
|
+
}) => {
|
|
37
|
+
const {
|
|
38
|
+
i18n: e
|
|
39
|
+
} = _(), {
|
|
40
|
+
root: n
|
|
41
|
+
} = E(), [r, l] = c(void 0), m = x((a) => {
|
|
42
|
+
t(k, a.trim() ? a : null);
|
|
43
|
+
}, C);
|
|
44
|
+
return /* @__PURE__ */ f("div", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:px-2 ttw:py-2", children: [
|
|
45
|
+
/* @__PURE__ */ s("div", { className: "ttw:flex-1", children: /* @__PURE__ */ s(A, { placeholder: e._("Search"), className: "ttw:h-9 ttw:w-full", onChange: (a) => m(a.target.value) }) }),
|
|
46
|
+
/* @__PURE__ */ s("div", { className: "ttw:w-48 ttw:shrink-0", children: /* @__PURE__ */ s(L, { onChange: (a) => t(D, a ?? null) }) }),
|
|
47
|
+
/* @__PURE__ */ f("div", { className: "ttw:relative ttw:w-44 ttw:shrink-0", children: [
|
|
48
|
+
/* @__PURE__ */ s($, { value: r, placeholder: e._("Created at"), className: `ttw:h-9 ttw:border-border${r ? " ttw:pr-8" : ""}`, container: n, onChange: (a) => {
|
|
49
|
+
l(a), t(v, a ?? null);
|
|
50
|
+
} }),
|
|
51
|
+
r ? /* @__PURE__ */ s("button", { type: "button", "aria-label": e._("Clear created at filter"), className: "ttw:absolute ttw:right-2 ttw:top-1/2 ttw:inline-flex ttw:size-4 ttw:-translate-y-1/2 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 hover:ttw:opacity-100", onClick: () => {
|
|
52
|
+
l(void 0), t(v, null);
|
|
53
|
+
}, children: /* @__PURE__ */ s(N, { className: "ttw:size-3.5" }) }) : null
|
|
54
|
+
] })
|
|
166
55
|
] });
|
|
167
56
|
};
|
|
168
57
|
export {
|
|
169
|
-
|
|
58
|
+
X as Filters
|
|
170
59
|
};
|
|
@@ -1,24 +1,69 @@
|
|
|
1
|
-
import e from "@
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as T } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { MeasureUnitsFormRow as f } from "./index373.js";
|
|
3
|
+
import { ConfirmDeleteMeasureUnitDialog as j } from "./index374.js";
|
|
4
|
+
import { TableActions as z } from "./index375.js";
|
|
5
|
+
import { Table as A, TableHeader as E, TableRow as h, TableHead as l, TableBody as G, TableCell as d } from "./index295.js";
|
|
6
|
+
import { useLingui as I } from "@lingui/react";
|
|
7
|
+
import { Loader2 as b, Search as S } from "lucide-react";
|
|
8
|
+
import { useState as m, useCallback as w } from "react";
|
|
9
|
+
import "./index57.js";
|
|
10
|
+
import "react-hot-toast";
|
|
11
|
+
import { useGetMeasureUnits as _ } from "./index311.js";
|
|
12
|
+
import { useDeleteMeasureUnit as y } from "./index376.js";
|
|
13
|
+
import { InputGroup as F, InputGroupAddon as H, InputGroupInput as k } from "./index101.js";
|
|
14
|
+
import { useDebounceCallback as R } from "./index65.js";
|
|
15
|
+
const at = () => {
|
|
16
|
+
const {
|
|
17
|
+
i18n: i
|
|
18
|
+
} = I(), [g, s] = m(null), [a, c] = m(null), x = !!a, [u, N] = m(""), {
|
|
19
|
+
data: C,
|
|
20
|
+
isLoading: M
|
|
21
|
+
} = _(), n = y(a?.name), $ = R((t) => {
|
|
22
|
+
N(t);
|
|
23
|
+
}, 500), D = C?.data?.filter((t) => t.name.toLowerCase().includes(u.toLowerCase()) || t.description && t.description.toLowerCase().includes(u.toLowerCase())) || [], L = w((t) => {
|
|
24
|
+
c(t);
|
|
25
|
+
}, []), o = w(() => {
|
|
26
|
+
c(null);
|
|
27
|
+
}, []), U = w(() => {
|
|
28
|
+
a && n.mutate({
|
|
29
|
+
path: {
|
|
30
|
+
unit_id: a.id
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
onSuccess: () => o()
|
|
34
|
+
});
|
|
35
|
+
}, [n, a, o]), p = n.isPending, v = () => {
|
|
36
|
+
s(null);
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:h-full ttw:relative", children: [
|
|
39
|
+
M ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:justify-center ttw:items-center ttw:h-full", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }) : /* @__PURE__ */ r(T, { children: [
|
|
40
|
+
p && /* @__PURE__ */ e("div", { className: "ttw:absolute ttw:inset-0 ttw:bg-white/70 ttw:flex ttw:justify-center ttw:items-center ttw:z-10", children: /* @__PURE__ */ e(b, { className: "ttw:size-10 ttw:animate-spin ttw:text-muted-foreground" }) }),
|
|
41
|
+
/* @__PURE__ */ r(F, { children: [
|
|
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 })
|
|
65
|
+
] });
|
|
66
|
+
};
|
|
16
67
|
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
|
|
68
|
+
at as ManageMeasureUnitsForm
|
|
24
69
|
};
|
|
@@ -1,59 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
sx: i
|
|
1
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import "./index57.js";
|
|
3
|
+
import "@tanstack/react-query";
|
|
4
|
+
import "date-fns";
|
|
5
|
+
import { useEntityUserById as m } from "./index75.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-hot-toast";
|
|
8
|
+
import "@lingui/react";
|
|
9
|
+
import { Skeleton as e } from "@mui/material";
|
|
10
|
+
const u = ({
|
|
11
|
+
id: r
|
|
13
12
|
}) => {
|
|
14
13
|
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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"]
|
|
52
|
-
}
|
|
53
|
-
}, views: ["year", "month", "day"] }),
|
|
54
|
-
/* @__PURE__ */ t(F, { control: /* @__PURE__ */ t(T, {}), className: "Monite-ApprovalOnlyMyFilter Monite-FilterControl", label: a._("Only my approvals"), onChange: (e, o) => l(h, o) })
|
|
55
|
-
] });
|
|
14
|
+
data: t,
|
|
15
|
+
isLoading: o
|
|
16
|
+
} = m(r);
|
|
17
|
+
return /* @__PURE__ */ i("span", { children: o ? /* @__PURE__ */ i(e, { animation: "wave", height: 10, width: "100%", sx: {
|
|
18
|
+
minWidth: "4em"
|
|
19
|
+
} }) : !!t && `${t?.first_name || ""} ${t?.last_name || ""}` });
|
|
56
20
|
};
|
|
57
21
|
export {
|
|
58
|
-
|
|
22
|
+
u as UserCell
|
|
59
23
|
};
|
|
@@ -1,31 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as a } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { toast as g } from "react-hot-toast";
|
|
3
|
+
import { useMoniteContext as c } from "./index57.js";
|
|
4
|
+
import { MoniteScopedProviders as p } from "./index83.js";
|
|
5
|
+
import { ConfirmationModal as u } from "./index220.js";
|
|
6
|
+
import { useLingui as f } from "@lingui/react";
|
|
7
|
+
const D = (e) => /* @__PURE__ */ a(p, { children: /* @__PURE__ */ a(C, { ...e }) }), C = ({
|
|
8
|
+
tag: e,
|
|
9
|
+
onClose: i,
|
|
10
|
+
onDelete: m,
|
|
11
|
+
modalOpened: d
|
|
10
12
|
}) => {
|
|
11
13
|
const {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
})({
|
|
14
|
+
i18n: o
|
|
15
|
+
} = f(), n = e?.id, {
|
|
16
|
+
api: t,
|
|
17
|
+
queryClient: s
|
|
18
|
+
} = c(), r = t.finops.deleteTagsId.useMutation({
|
|
19
|
+
path: {
|
|
20
|
+
tag_id: n ?? ""
|
|
21
|
+
}
|
|
22
|
+
}, {
|
|
23
|
+
onSuccess: () => (t.finops.getTagsId.removeQueries({
|
|
24
|
+
parameters: {
|
|
25
|
+
path: {
|
|
26
|
+
tag_id: n
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, s), t.finops.getTags.invalidateQueries(s))
|
|
30
|
+
}), l = () => {
|
|
31
|
+
r.mutate(void 0, {
|
|
32
|
+
onSuccess: () => {
|
|
33
|
+
g.success(o._("Tag “{tagName}” was deleted", {
|
|
34
|
+
tagName: e.name
|
|
35
|
+
})), i?.(), m?.(e.id);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ a(u, { open: d, title: o._("Delete “{tagName}” tag?", {
|
|
40
|
+
tagName: e.name
|
|
41
|
+
}), message: o._("This action can’t be undone."), confirmLabel: o._("Delete"), cancelLabel: o._("Cancel"), onClose: i, onConfirm: l, isLoading: r.isPending });
|
|
42
|
+
};
|
|
29
43
|
export {
|
|
30
|
-
|
|
44
|
+
D as ConfirmDeleteModal
|
|
31
45
|
};
|
|
@@ -1,62 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
id: o,
|
|
14
|
-
onClick: t
|
|
15
|
-
}) => {
|
|
16
|
-
const {
|
|
17
|
-
i18n: r
|
|
18
|
-
} = s(), [i, n] = c(!1);
|
|
19
|
-
return /* @__PURE__ */ e(a, { "aria-label": r._("Approve request"), color: "success", disabled: i, onClick: (l) => {
|
|
20
|
-
l.preventDefault(), n(!0), t({
|
|
21
|
-
id: o,
|
|
22
|
-
action: "approve"
|
|
23
|
-
})?.finally(() => n(!1));
|
|
24
|
-
}, children: /* @__PURE__ */ e(u, {}) });
|
|
25
|
-
}, k = ({
|
|
26
|
-
id: o,
|
|
27
|
-
onClick: t
|
|
28
|
-
}) => {
|
|
29
|
-
const {
|
|
30
|
-
i18n: r
|
|
31
|
-
} = s(), [i, n] = c(!1);
|
|
32
|
-
return /* @__PURE__ */ e(a, { "aria-label": r._("Reject request"), color: "error", disabled: i, onClick: (l) => {
|
|
33
|
-
l.preventDefault(), n(!0), t({
|
|
34
|
-
id: o,
|
|
35
|
-
action: "reject"
|
|
36
|
-
})?.finally(() => n(!1));
|
|
37
|
-
}, children: /* @__PURE__ */ e(f, {}) });
|
|
38
|
-
}, q = (o) => {
|
|
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
|
+
const a = ["document_type", "department", "project", "cost_center", "vendor_type", "payment_method", "approval_status"], o = (e) => ({
|
|
2
|
+
document_type: e._("Document Type"),
|
|
3
|
+
department: e._("Department"),
|
|
4
|
+
project: e._("Project"),
|
|
5
|
+
cost_center: e._("Cost Center"),
|
|
6
|
+
vendor_type: e._("Vendor Type"),
|
|
7
|
+
payment_method: e._("Payment Method"),
|
|
8
|
+
approval_status: e._("Approval Status")
|
|
9
|
+
});
|
|
10
|
+
function r(e, t) {
|
|
11
|
+
return e ? o(t)[e] : "";
|
|
12
|
+
}
|
|
60
13
|
export {
|
|
61
|
-
|
|
14
|
+
r as getTagCategoryLabel,
|
|
15
|
+
a as tagCategories
|
|
62
16
|
};
|
|
@@ -1,22 +1,82 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index57.js";
|
|
1
|
+
import { useMoniteContext as h } from "./index57.js";
|
|
3
2
|
import "@tanstack/react-query";
|
|
4
3
|
import "date-fns";
|
|
5
|
-
import { useEntityUserById as e } from "./index75.js";
|
|
6
4
|
import "react";
|
|
7
|
-
import "react-hot-toast";
|
|
8
|
-
import "
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
const
|
|
12
|
-
|
|
5
|
+
import { toast as u } from "react-hot-toast";
|
|
6
|
+
import { getAPIErrorMessage as d } from "./index122.js";
|
|
7
|
+
import { useLingui as v } from "@lingui/react";
|
|
8
|
+
import { useEntitySettings as T, usePatchEntitiesIdSettings as w } from "./index81.js";
|
|
9
|
+
const I = ({
|
|
10
|
+
setNameError: l,
|
|
11
|
+
onTagCreated: c,
|
|
12
|
+
onTagUpdated: m
|
|
13
13
|
}) => {
|
|
14
14
|
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
i18n: n
|
|
16
|
+
} = v(), {
|
|
17
|
+
api: i,
|
|
18
|
+
queryClient: o
|
|
19
|
+
} = h(), {
|
|
20
|
+
data: a
|
|
21
|
+
} = T(), {
|
|
22
|
+
mutateAsync: f
|
|
23
|
+
} = w(), r = a?.payables_ocr_auto_tagging || [], g = i.finops.postTags.useMutation({}, {
|
|
24
|
+
onSuccess: () => i.finops.getTags.invalidateQueries(o),
|
|
25
|
+
onError: (e) => {
|
|
26
|
+
const t = d(n, e);
|
|
27
|
+
t === "This tag already exists." ? l?.(t) : u.error(t);
|
|
28
|
+
}
|
|
29
|
+
}), _ = i.finops.patchTagsId.useMutation(void 0, {
|
|
30
|
+
onSuccess: (e) => {
|
|
31
|
+
Promise.all([i.finops.getTags.invalidateQueries(o), i.finops.getTagsId.invalidateQueries({
|
|
32
|
+
parameters: {
|
|
33
|
+
path: {
|
|
34
|
+
tag_id: e.id
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, o)]), m?.(e);
|
|
38
|
+
},
|
|
39
|
+
onError: (e) => {
|
|
40
|
+
u.error(d(n, e));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return {
|
|
44
|
+
tagsWithKeywords: Object.fromEntries(r.map((e) => [e.tag_id, e.keywords])),
|
|
45
|
+
inProgress: g.isPending || _.isPending,
|
|
46
|
+
createTag: (e) => g.mutateAsync({
|
|
47
|
+
...e
|
|
48
|
+
}, {
|
|
49
|
+
onSuccess: (t) => c?.(t)
|
|
50
|
+
}),
|
|
51
|
+
updateTag: (e, t) => _.mutateAsync({
|
|
52
|
+
path: {
|
|
53
|
+
tag_id: e
|
|
54
|
+
},
|
|
55
|
+
body: t
|
|
56
|
+
}),
|
|
57
|
+
updateOcrAutoTagging: (e, t = []) => {
|
|
58
|
+
const s = r.filter((y) => y.tag_id !== e);
|
|
59
|
+
if (s.length === r.length && !t.length)
|
|
60
|
+
return;
|
|
61
|
+
const p = t.length ? [...s, {
|
|
62
|
+
tag_id: e,
|
|
63
|
+
keywords: [...new Set(t)],
|
|
64
|
+
enabled: !0
|
|
65
|
+
}] : s;
|
|
66
|
+
p.length && f({
|
|
67
|
+
tax_mode: a.tax_mode,
|
|
68
|
+
payment_priority: a.payment_priority,
|
|
69
|
+
quote_signature_required: a.quote_signature_required,
|
|
70
|
+
receivable_edit_flow: a.receivable_edit_flow,
|
|
71
|
+
allow_purchase_order_autolinking: a.allow_purchase_order_autolinking,
|
|
72
|
+
generate_paid_invoice_pdf: a.generate_paid_invoice_pdf,
|
|
73
|
+
payables_ocr_auto_tagging: p,
|
|
74
|
+
payables_skip_approval_flow: a.payables_skip_approval_flow,
|
|
75
|
+
tax_inclusive_discount_mode: a.tax_inclusive_discount_mode
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
};
|
|
19
79
|
};
|
|
20
80
|
export {
|
|
21
|
-
|
|
81
|
+
I as useTags
|
|
22
82
|
};
|