@tesouro/embedded-components-react 0.5.138 → 0.5.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +0 -6
- package/dist/lib/monite-sdk.js +50 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +575 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +1 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +157 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +24 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +10 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +10 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +16 -597
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +10 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +75 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +126 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +11 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +5 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +120 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +21 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +6 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +7 -126
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +26 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +20 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +183 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +29 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +59 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +31 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +34 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +43 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +17 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +5 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +9 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +20 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +12 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +15 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +37 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +14 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +14 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +5 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +119 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +62 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +196 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +1 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +41 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +5 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +19 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +3 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +407 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +18 -196
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +95 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +17 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +180 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +98 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +1 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +49 -419
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +158 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +7 -188
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +55 -94
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +51 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +80 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +21 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +158 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +34 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +34 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +3 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +181 -340
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +134 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +209 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +229 -149
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +34 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +135 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +163 -101
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -132
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -207
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +154 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +67 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +217 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +83 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +14 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +184 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +169 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +15 -162
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +6 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +383 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +88 -151
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +198 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +30 -217
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +84 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +136 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +35 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +58 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +54 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +135 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +552 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +145 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +142 -382
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +36 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +59 -195
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +67 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +147 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +57 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +82 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +14 -59
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +16 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +21 -552
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +21 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +89 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +41 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +27 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +16 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +12 -145
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +5 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +13 -84
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +9 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +102 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +35 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +43 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +71 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +99 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +47 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +186 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +139 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +130 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +77 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +245 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +6 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +398 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +22 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +18 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +44 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +45 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +14 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +39 -139
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +140 -124
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +112 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +39 -246
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +33 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +24 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +22 -399
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +71 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +18 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +179 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +138 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +28 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +93 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +44 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +15 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +27 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +36 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +76 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +50 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +33 -177
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +82 -134
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +50 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +1 -119
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +37 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +1 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +133 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +109 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +49 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +787 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +88 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +101 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +6 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +23 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +11 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +23 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +16 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +165 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +208 -108
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +87 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +17 -789
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +154 -86
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +98 -99
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +46 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +4 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +1 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +20 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +47 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +63 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +164 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +1 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +175 -148
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +1 -104
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +34 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +72 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +18 -183
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +9 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +13 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +130 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +5 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +5 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +5 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +219 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +34 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +179 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +203 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +98 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +66 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +51 -216
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +91 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +40 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +69 -174
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +80 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +12 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +21 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +16 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +4 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +22 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +64 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +30 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +36 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +18 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +31 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +2 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +93 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +13 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +31 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +22 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index4.js +16 -58
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js +95 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js +18 -21
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/{shared/tag-selection/ui/dist/index3.js → settings-widget/tags/ui/dist/index5.js} +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +855 -831
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +539 -533
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +0 -97
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index2.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index3.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index4.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index5.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index6.js +0 -35
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index7.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/index.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/TagSelectorField.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/helpers.js +0 -38
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/labels.js +0 -19
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/permissions.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/useTagCreateForm.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index2.js +0 -17
- package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index4.js +0 -4
|
@@ -1,92 +1,169 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import "./
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
1
|
+
import { Button as e } from "./index55.js";
|
|
2
|
+
import { Input as t } from "./index88.js";
|
|
3
|
+
import { useRootElements as n } from "./index211.js";
|
|
4
|
+
import "./index212.js";
|
|
5
|
+
import { MoniteScopedProviders as r } from "./index241.js";
|
|
6
|
+
import { Sheet as i, SheetContent as a, SheetDescription as o, SheetFooter as s, SheetHeader as c, SheetTitle as l } from "./index49.js";
|
|
7
|
+
import { Select as u, SelectContent as d, SelectItem as f, SelectTrigger as p, SelectValue as m } from "./index107.js";
|
|
8
|
+
import { InputTags as h } from "./index457.js";
|
|
9
|
+
import { getTagCategoryLabel as g, tagCategories as _ } from "./index555.js";
|
|
10
|
+
import { useTags as v } from "./index556.js";
|
|
11
|
+
import { Form as y, FormControl as b, FormField as x, FormItem as S, FormLabel as C, FormMessage as w } from "./index557.js";
|
|
12
|
+
import { useEffect as T, useId as E } from "react";
|
|
13
|
+
import { z as D } from "zod";
|
|
14
|
+
import { Fragment as O, jsx as k, jsxs as A } from "@emotion/react/jsx-runtime";
|
|
15
|
+
import { toast as j } from "react-hot-toast";
|
|
16
|
+
import { useLingui as M } from "@lingui/react";
|
|
17
|
+
import { useForm as N } from "react-hook-form";
|
|
18
|
+
import { zodResolver as P } from "@hookform/resolvers/zod";
|
|
16
19
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
currency: n.currency
|
|
44
|
-
},
|
|
45
|
-
description: n.description,
|
|
46
|
-
...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
|
|
47
|
-
}, {
|
|
48
|
-
onSuccess: (e) => {
|
|
49
|
-
b?.(e);
|
|
50
|
-
},
|
|
51
|
-
onError: (n) => {
|
|
52
|
-
e(O.setError, t(n), { fieldMap: s });
|
|
53
|
-
}
|
|
20
|
+
var F = (e) => D.object({
|
|
21
|
+
name: D.string().min(1, e._("Required")).max(255, e._("Value must be at most '255' characters")),
|
|
22
|
+
category: D.union([D.literal(""), D.enum(_)]),
|
|
23
|
+
keywords: D.array(D.string().min(2, e._("Keyword should be at least 2 characters long")).max(25, e._("Keyword should be at most 25 characters long")))
|
|
24
|
+
}), I = (e) => /* @__PURE__ */ k(r, { children: /* @__PURE__ */ k(L, { ...e }) }), L = ({ tag: r, onCreate: D, onUpdate: I, onDelete: L, onClose: R, open: z, isDeleteAllowed: B }) => {
|
|
25
|
+
let { i18n: V } = M(), H = F(V), U = N({
|
|
26
|
+
resolver: P(H),
|
|
27
|
+
defaultValues: {
|
|
28
|
+
name: "",
|
|
29
|
+
category: "",
|
|
30
|
+
keywords: []
|
|
31
|
+
}
|
|
32
|
+
}), { control: W, handleSubmit: G, reset: K, setError: q } = U;
|
|
33
|
+
T(() => {
|
|
34
|
+
let e = [];
|
|
35
|
+
r?.keywords && (Array.isArray(r.keywords) ? e = r.keywords : typeof r.keywords == "string" && (e = r.keywords.split(",").map((e) => e.trim()).filter(Boolean))), K({
|
|
36
|
+
name: r?.name || "",
|
|
37
|
+
category: r?.category || "",
|
|
38
|
+
keywords: e
|
|
39
|
+
});
|
|
40
|
+
}, [K, r]);
|
|
41
|
+
let { createTag: J, updateTag: Y, inProgress: X, updateOcrAutoTagging: Z } = v({
|
|
42
|
+
setNameError: (e) => {
|
|
43
|
+
q("name", {
|
|
44
|
+
type: "custom",
|
|
45
|
+
message: e
|
|
54
46
|
});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
47
|
+
},
|
|
48
|
+
onTagCreated: (e) => {
|
|
49
|
+
j.success(V._("New tag “{createdTagName}” created", { createdTagName: e.name })), D?.(e), R?.(), K();
|
|
50
|
+
},
|
|
51
|
+
onTagUpdated: (e) => {
|
|
52
|
+
r && j.success(r.name === e.name ? V._("Tag “{tagName}” was updated”", { tagName: r.name }) : V._("Tag “{tagName}” renamed to “{updatedTagName}”", {
|
|
53
|
+
tagName: r.name,
|
|
54
|
+
updatedTagName: e.name
|
|
55
|
+
})), I?.(e), R?.(), K();
|
|
56
|
+
}
|
|
57
|
+
}), { root: Q } = n(), $ = `Monite-Form-tag-${E()}`;
|
|
58
|
+
return /* @__PURE__ */ k(O, { children: /* @__PURE__ */ k(i, {
|
|
59
|
+
open: z,
|
|
60
|
+
onOpenChange: R,
|
|
61
|
+
children: /* @__PURE__ */ A(a, {
|
|
62
|
+
container: Q,
|
|
63
|
+
className: "Monite-Payables ttw:w-[600px]",
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ A(c, { children: [/* @__PURE__ */ k(l, { children: r ? V._("Edit tag ”{tagName}”", { tagName: r.name }) : V._("Create new tag") }), /* @__PURE__ */ k(o, {
|
|
66
|
+
className: "ttw:sr-only",
|
|
67
|
+
children: r ? V._("Edit tag ”{tagName}”", { tagName: r.name }) : V._("Create new tag")
|
|
68
|
+
})] }),
|
|
69
|
+
/* @__PURE__ */ k(y, {
|
|
70
|
+
...U,
|
|
71
|
+
children: /* @__PURE__ */ k("form", {
|
|
72
|
+
id: $,
|
|
73
|
+
name: $,
|
|
74
|
+
onSubmit: (e) => {
|
|
75
|
+
e.preventDefault(), e.stopPropagation(), G(async (e) => {
|
|
76
|
+
let { keywords: t, name: n, category: i } = e, a = {
|
|
77
|
+
name: n,
|
|
78
|
+
...i ? { category: i } : {}
|
|
79
|
+
}, o = await (r ? Y(r.id, a) : J(a));
|
|
80
|
+
Z(o.id, t);
|
|
81
|
+
})(e);
|
|
82
|
+
},
|
|
83
|
+
children: /* @__PURE__ */ A("div", {
|
|
84
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:pt-8 ttw:pb-6",
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ k(x, {
|
|
87
|
+
name: "name",
|
|
88
|
+
control: W,
|
|
89
|
+
render: ({ field: e }) => /* @__PURE__ */ A(S, { children: [
|
|
90
|
+
/* @__PURE__ */ k(C, { children: V._("Name") }),
|
|
91
|
+
/* @__PURE__ */ k(b, { children: /* @__PURE__ */ k(t, {
|
|
92
|
+
autoFocus: !0,
|
|
93
|
+
...e
|
|
94
|
+
}) }),
|
|
95
|
+
/* @__PURE__ */ k(w, {})
|
|
96
|
+
] })
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ k(x, {
|
|
99
|
+
name: "category",
|
|
100
|
+
control: W,
|
|
101
|
+
render: ({ field: e }) => /* @__PURE__ */ A(S, { children: [
|
|
102
|
+
/* @__PURE__ */ k(C, { children: V._("Category") }),
|
|
103
|
+
/* @__PURE__ */ A(u, {
|
|
104
|
+
onValueChange: e.onChange,
|
|
105
|
+
defaultValue: e.value,
|
|
106
|
+
children: [/* @__PURE__ */ k(b, { children: /* @__PURE__ */ k(p, {
|
|
107
|
+
className: "ttw:w-full",
|
|
108
|
+
children: /* @__PURE__ */ k(m, { placeholder: V._("Not set") })
|
|
109
|
+
}) }), /* @__PURE__ */ k(d, { children: _.map((e) => /* @__PURE__ */ k(f, {
|
|
110
|
+
value: e,
|
|
111
|
+
children: g(e, V)
|
|
112
|
+
}, e)) })]
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ k(w, {})
|
|
115
|
+
] })
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ k(x, {
|
|
118
|
+
name: "keywords",
|
|
119
|
+
control: W,
|
|
120
|
+
render: ({ field: e }) => /* @__PURE__ */ A(S, {
|
|
121
|
+
className: "ttw:flex ttw:flex-col",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ k(C, { children: V._("Keywords") }),
|
|
124
|
+
/* @__PURE__ */ k(h, {
|
|
125
|
+
...e,
|
|
126
|
+
value: e.value ?? []
|
|
127
|
+
}),
|
|
128
|
+
/* @__PURE__ */ k(w, {})
|
|
129
|
+
]
|
|
130
|
+
})
|
|
131
|
+
})
|
|
132
|
+
]
|
|
133
|
+
})
|
|
134
|
+
})
|
|
135
|
+
}),
|
|
136
|
+
/* @__PURE__ */ A(s, {
|
|
137
|
+
className: "ttw:flex ttw:flex-row ttw:justify-end ttw:gap-2",
|
|
138
|
+
children: [
|
|
139
|
+
r && /* @__PURE__ */ k(e, {
|
|
140
|
+
className: "ttw:mr-auto",
|
|
141
|
+
variant: "destructive",
|
|
142
|
+
size: "lg",
|
|
143
|
+
onClick: () => {
|
|
144
|
+
L?.(r), R?.();
|
|
145
|
+
},
|
|
146
|
+
disabled: !B,
|
|
147
|
+
children: V._("Delete")
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ k(e, {
|
|
150
|
+
variant: "ghost",
|
|
151
|
+
size: "lg",
|
|
152
|
+
onClick: R,
|
|
153
|
+
children: V._("Cancel")
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ k(e, {
|
|
156
|
+
type: "submit",
|
|
157
|
+
form: $,
|
|
158
|
+
size: "lg",
|
|
159
|
+
disabled: X,
|
|
160
|
+
children: r ? V._("Save") : V._("Create")
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
})
|
|
164
|
+
]
|
|
88
165
|
})
|
|
89
|
-
});
|
|
166
|
+
}) });
|
|
90
167
|
};
|
|
91
168
|
//#endregion
|
|
92
|
-
export {
|
|
169
|
+
export { I as TagFormModal };
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { twMerge as r } from "tailwind-merge";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js
|
|
5
|
-
var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ n("li", {
|
|
6
|
-
className: r("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
|
|
7
|
-
children: [/* @__PURE__ */ t(e, {
|
|
8
|
-
variant: "body2",
|
|
9
|
-
color: "muted",
|
|
10
|
-
className: "ttw:w-35 ttw:min-w-35 ttw:font-medium",
|
|
11
|
-
children: i
|
|
12
|
-
}), typeof a == "string" ? /* @__PURE__ */ t(e, {
|
|
13
|
-
variant: "body2",
|
|
14
|
-
className: "ttw:font-medium",
|
|
15
|
-
children: a
|
|
16
|
-
}) : a]
|
|
17
|
-
});
|
|
18
|
-
//#endregion
|
|
19
|
-
export { i as ProductDetailLine };
|
|
1
|
+
import "./index558.js";
|
|
@@ -1,160 +1,187 @@
|
|
|
1
1
|
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
2
|
import "../../shared/data-access/dist/index.js";
|
|
3
3
|
import { useMoniteContext as t } from "./index46.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import "./
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { MoreVerticalIcon as E, Trash2 as D, X as O } from "lucide-react";
|
|
23
|
-
import { Fragment as k, jsx as A, jsxs as j } from "@emotion/react/jsx-runtime";
|
|
24
|
-
import { useLingui as M } from "@lingui/react";
|
|
4
|
+
import { Button as n } from "./index55.js";
|
|
5
|
+
import { MoniteScopedProviders as r } from "./index241.js";
|
|
6
|
+
import { DropdownMenu as i, DropdownMenuContent as a, DropdownMenuItem as o, DropdownMenuTrigger as s } from "./index54.js";
|
|
7
|
+
import { useUserPermissions as c } from "./index118.js";
|
|
8
|
+
import { GetNoRowsOverlay as l } from "./index250.js";
|
|
9
|
+
import { DataTable as u } from "./index255.js";
|
|
10
|
+
import { hasSelectedText as d } from "./index256.js";
|
|
11
|
+
import { getTagCategoryLabel as f } from "./index555.js";
|
|
12
|
+
import { useTags as p } from "./index556.js";
|
|
13
|
+
import { TagFormModal as m } from "./index558.js";
|
|
14
|
+
import { UserCell as h } from "./index552.js";
|
|
15
|
+
import { ConfirmDeleteModal as g } from "./index553.js";
|
|
16
|
+
import "./index554.js";
|
|
17
|
+
import "./index559.js";
|
|
18
|
+
import { useCallback as _, useMemo as v, useState as y } from "react";
|
|
19
|
+
import { ArrowDown as b, ArrowUp as x, ArrowUpDown as S, MoreVertical as C, Trash as w } from "lucide-react";
|
|
20
|
+
import { Fragment as ee, jsx as T, jsxs as E } from "@emotion/react/jsx-runtime";
|
|
21
|
+
import { useLingui as D } from "@lingui/react";
|
|
25
22
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js
|
|
26
|
-
var
|
|
27
|
-
let { i18n:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
asChild: !0,
|
|
67
|
-
children: /* @__PURE__ */ A(r, {
|
|
68
|
-
type: "button",
|
|
69
|
-
variant: "outline",
|
|
70
|
-
className: "ttw:p-2 ttw:size-9 ttw:border-none ttw:bg-muted",
|
|
71
|
-
children: /* @__PURE__ */ A(E, {})
|
|
72
|
-
})
|
|
73
|
-
}), /* @__PURE__ */ A(m, {
|
|
74
|
-
align: "end",
|
|
75
|
-
children: /* @__PURE__ */ j(h, {
|
|
76
|
-
onClick: () => W(!0),
|
|
77
|
-
variant: "destructive",
|
|
78
|
-
children: [/* @__PURE__ */ A(D, {}), R._("Delete product")]
|
|
79
|
-
})
|
|
80
|
-
})] }), /* @__PURE__ */ A(o, {
|
|
81
|
-
className: "ttw:size-9 ttw:bg-muted ttw:p-2 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-md ttw:cursor-pointer",
|
|
82
|
-
children: /* @__PURE__ */ A(O, { className: "ttw:size-4" })
|
|
23
|
+
var O = (e) => /* @__PURE__ */ T(r, { children: /* @__PURE__ */ T(k, { ...e }) }), k = ({ onChangeSort: r, showCreationModal: O }) => {
|
|
24
|
+
let { i18n: k } = D(), { api: A, locale: j, componentSettings: M } = t(), [N, P] = y(void 0), [F, I] = y(M.tags.pageSizeOptions[0]), [L, R] = y({
|
|
25
|
+
field: "created_at",
|
|
26
|
+
sort: "desc"
|
|
27
|
+
}), [z, B] = y(void 0), [V, H] = y(!1), [U, W] = y(!1), { tagsWithKeywords: G } = p({}), K = c().has(e.AccountingConfigWriteOrg), { data: q, isLoading: J, isError: Y, refetch: X } = A.finops.getTags.useQuery({ query: {
|
|
28
|
+
sort: L.field,
|
|
29
|
+
order: L.sort,
|
|
30
|
+
limit: F,
|
|
31
|
+
pagination_token: N
|
|
32
|
+
} }), Z = _(() => {
|
|
33
|
+
H(!1);
|
|
34
|
+
}, []), Q = _(() => {
|
|
35
|
+
B(void 0), H(!1), W(!1);
|
|
36
|
+
}, []), $ = v(() => [{
|
|
37
|
+
id: L.field,
|
|
38
|
+
desc: L.sort === "desc"
|
|
39
|
+
}], [L]), te = _((e) => {
|
|
40
|
+
let t = typeof e == "function" ? e($) : e;
|
|
41
|
+
if (t.length > 0) {
|
|
42
|
+
let e = {
|
|
43
|
+
field: t[0].id,
|
|
44
|
+
sort: t[0].desc ? "desc" : "asc"
|
|
45
|
+
};
|
|
46
|
+
R(e), r?.(e);
|
|
47
|
+
}
|
|
48
|
+
P(void 0);
|
|
49
|
+
}, [$, r]), ne = (q?.data ?? []).map((e) => ({
|
|
50
|
+
...e,
|
|
51
|
+
keywords: G[e.id]?.join(", ")
|
|
52
|
+
})), re = v(() => [
|
|
53
|
+
{
|
|
54
|
+
accessorKey: "name",
|
|
55
|
+
header: ({ column: e }) => {
|
|
56
|
+
let t = e.getIsSorted();
|
|
57
|
+
return /* @__PURE__ */ E("div", {
|
|
58
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
59
|
+
children: [k._("Name"), /* @__PURE__ */ T(n, {
|
|
60
|
+
variant: "ghost",
|
|
61
|
+
onClick: () => e.toggleSorting(t === "asc"),
|
|
62
|
+
children: T(t === "asc" ? x : t === "desc" ? b : S, { className: "ttw:size-4" })
|
|
83
63
|
})]
|
|
84
|
-
})
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
className: "ttw:text-primary ttw:hover:text-primary",
|
|
109
|
-
onClick: () => H(!0),
|
|
110
|
-
children: R._("Edit")
|
|
111
|
-
})]
|
|
112
|
-
}), V && G ? /* @__PURE__ */ A(C, {
|
|
113
|
-
product: G,
|
|
114
|
-
handleClose: () => H(!1),
|
|
115
|
-
onUpdate: (e) => {
|
|
116
|
-
F?.(e), H(!1);
|
|
117
|
-
}
|
|
118
|
-
}) : /* @__PURE__ */ j("ul", {
|
|
119
|
-
className: "ttw:list-none",
|
|
120
|
-
children: [
|
|
121
|
-
/* @__PURE__ */ A(w, {
|
|
122
|
-
label: R._("{type} name", { type: J ? "Product" : "Service" }),
|
|
123
|
-
value: G?.name ?? "-"
|
|
124
|
-
}),
|
|
125
|
-
/* @__PURE__ */ A(w, {
|
|
126
|
-
label: R._("Price per unit"),
|
|
127
|
-
value: G?.price ? B(G.price.value, G.price.currency) : "-"
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ A(w, {
|
|
130
|
-
label: R._("Description"),
|
|
131
|
-
value: G?.description || "-",
|
|
132
|
-
isLast: !0
|
|
133
|
-
})
|
|
134
|
-
]
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
cell: ({ row: e }) => /* @__PURE__ */ T("span", { children: e.original.name })
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
accessorKey: "category",
|
|
70
|
+
header: k._("Category"),
|
|
71
|
+
cell: ({ row: e }) => /* @__PURE__ */ T("span", { children: f(e.original.category, k) })
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
accessorKey: "keywords",
|
|
75
|
+
header: k._("Keywords"),
|
|
76
|
+
cell: ({ row: e }) => /* @__PURE__ */ T("span", { children: e.original.keywords })
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
accessorKey: "created_at",
|
|
80
|
+
header: ({ column: e }) => {
|
|
81
|
+
let t = e.getIsSorted();
|
|
82
|
+
return /* @__PURE__ */ E("div", {
|
|
83
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
84
|
+
children: [k._("Created at"), /* @__PURE__ */ T(n, {
|
|
85
|
+
variant: "ghost",
|
|
86
|
+
onClick: () => e.toggleSorting(t === "asc"),
|
|
87
|
+
children: T(t === "asc" ? x : t === "desc" ? b : S, { className: "ttw:size-4" })
|
|
135
88
|
})]
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
cell: ({ row: e }) => /* @__PURE__ */ T("span", { children: k.date(e.original.created_at, j.dateFormat) })
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
accessorKey: "updated_at",
|
|
95
|
+
header: k._("Updated at"),
|
|
96
|
+
cell: ({ row: e }) => /* @__PURE__ */ T("span", { children: k.date(e.original.updated_at, j.dateFormat) })
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
accessorKey: "created_by_entity_user_id",
|
|
100
|
+
header: k._("Created by"),
|
|
101
|
+
cell: ({ row: e }) => e.original.created_by_entity_user_id ? /* @__PURE__ */ T(h, { id: e.original.created_by_entity_user_id }) : null
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: "actions",
|
|
105
|
+
header: () => /* @__PURE__ */ T("div", {
|
|
106
|
+
className: "ttw:text-right",
|
|
107
|
+
children: k._("Actions")
|
|
108
|
+
}),
|
|
109
|
+
cell: ({ row: e }) => K ? /* @__PURE__ */ E(i, { children: [/* @__PURE__ */ T(s, {
|
|
110
|
+
asChild: !0,
|
|
111
|
+
children: /* @__PURE__ */ T("div", {
|
|
112
|
+
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
113
|
+
children: /* @__PURE__ */ E(n, {
|
|
114
|
+
variant: "ghost",
|
|
115
|
+
className: "ttw:size-5 ttw:p-2",
|
|
116
|
+
children: [/* @__PURE__ */ T("span", {
|
|
117
|
+
className: "ttw:sr-only",
|
|
118
|
+
children: k._("Open actions menu")
|
|
119
|
+
}), /* @__PURE__ */ T(C, { className: "ttw:size-4" })]
|
|
120
|
+
})
|
|
136
121
|
})
|
|
137
|
-
})
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
122
|
+
}), /* @__PURE__ */ T(a, {
|
|
123
|
+
align: "end",
|
|
124
|
+
children: /* @__PURE__ */ E(o, {
|
|
125
|
+
onClick: (t) => {
|
|
126
|
+
t.stopPropagation(), B(e.original), W(!0);
|
|
127
|
+
},
|
|
128
|
+
children: [/* @__PURE__ */ T(w, { className: "ttw:text-red-700" }), k._("Delete")]
|
|
129
|
+
})
|
|
130
|
+
})] }) : null
|
|
145
131
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
132
|
+
], [
|
|
133
|
+
k,
|
|
134
|
+
j.dateFormat,
|
|
135
|
+
K
|
|
136
|
+
]);
|
|
137
|
+
return /* @__PURE__ */ E(ee, { children: [
|
|
138
|
+
/* @__PURE__ */ T("div", {
|
|
139
|
+
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
140
|
+
children: /* @__PURE__ */ T(u, {
|
|
141
|
+
columns: re,
|
|
142
|
+
data: ne,
|
|
143
|
+
sorting: $,
|
|
144
|
+
onSortingChange: te,
|
|
145
|
+
pageSize: F,
|
|
146
|
+
onPageSizeChange: I,
|
|
147
|
+
nextPaginationToken: q?.next_pagination_token ?? void 0,
|
|
148
|
+
prevPaginationToken: q?.prev_pagination_token ?? void 0,
|
|
149
|
+
onPaginationTokenChange: P,
|
|
150
|
+
onRowClick: (e) => {
|
|
151
|
+
d() || (B(e), H(!0));
|
|
152
|
+
},
|
|
153
|
+
children: /* @__PURE__ */ T(l, {
|
|
154
|
+
isLoading: J,
|
|
155
|
+
dataLength: q?.data.length || 0,
|
|
156
|
+
isFiltering: !1,
|
|
157
|
+
isSearching: !1,
|
|
158
|
+
isError: Y,
|
|
159
|
+
onCreate: O,
|
|
160
|
+
refetch: X,
|
|
161
|
+
entityName: k._("Tags"),
|
|
162
|
+
noDataTitle: k._("No Tags"),
|
|
163
|
+
noDataDescription1: k._("You don't have any tags yet."),
|
|
164
|
+
actionButtonLabel: k._("Create new tag"),
|
|
165
|
+
actionOptions: [k._("Tag")],
|
|
166
|
+
type: "no-data"
|
|
167
|
+
})
|
|
155
168
|
})
|
|
169
|
+
}),
|
|
170
|
+
/* @__PURE__ */ T(m, {
|
|
171
|
+
tag: z,
|
|
172
|
+
open: V,
|
|
173
|
+
onClose: Z,
|
|
174
|
+
isDeleteAllowed: K ?? !1,
|
|
175
|
+
onDelete: (e) => {
|
|
176
|
+
K && (B(e), W(!0));
|
|
177
|
+
}
|
|
178
|
+
}),
|
|
179
|
+
z && /* @__PURE__ */ T(g, {
|
|
180
|
+
tag: z,
|
|
181
|
+
modalOpened: U,
|
|
182
|
+
onClose: Q
|
|
156
183
|
})
|
|
157
|
-
});
|
|
184
|
+
] });
|
|
158
185
|
};
|
|
159
186
|
//#endregion
|
|
160
|
-
export {
|
|
187
|
+
export { O as TagsTable };
|