@vtex/faststore-plugin-buyer-portal 1.1.86 → 1.1.88
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/CHANGELOG.md +39 -28
- package/package.json +1 -1
- package/src/features/addresses/components/AddressForm/AddressForm.tsx +72 -41
- package/src/features/addresses/data/USA.ts +69 -64
- package/src/features/addresses/data/countries.ts +6 -1
- package/src/features/addresses/data/states.ts +4 -2
- package/src/features/addresses/layouts/AddressDetailsLayout/AddressDetailsLayout.tsx +10 -1
- package/src/features/addresses/utils/index.ts +1 -0
- package/src/features/addresses/utils/stateUtils.ts +63 -0
- package/src/features/budgets/components/BudgetAddForm/budget-add-form.scss +9 -3
- package/src/features/budgets/components/BudgetAllocationsSelection/budget-allocations-selection.scss +2 -2
- package/src/features/budgets/components/BudgetAllocationsTable/budget-allocations-table.scss +29 -0
- package/src/features/budgets/components/BudgetDeleteDrawer/budget-delete-drawer.scss +13 -0
- package/src/features/budgets/components/BudgetRemainingBalance/BudgetRemainingBalance.tsx +5 -1
- package/src/features/budgets/components/BudgetRemainingBalance/budget-remaining-balance.scss +18 -1
- package/src/features/budgets/components/BudgetSettingsInfo/budget-settings-info.scss +19 -0
- package/src/features/budgets/components/BudgetsTable/BudgetsTable.tsx +12 -2
- package/src/features/budgets/components/BudgetsTable/budgets-table.scss +30 -1
- package/src/features/budgets/components/CreateBudgetAllocationDrawer/create-budget-allocation-drawer.scss +22 -6
- package/src/features/budgets/components/CreateBudgetDrawer/create-budget-drawer.scss +15 -6
- package/src/features/budgets/components/DeleteBudgetAllocationDrawer/delete-budget-allocations.scss +15 -1
- package/src/features/budgets/components/EditBudgetDrawer/edit-budget-drawer.scss +11 -1
- package/src/features/budgets/layouts/BudgetsDetailsLayout/BudgetsDetailsLayout.tsx +76 -75
- package/src/features/budgets/layouts/BudgetsDetailsLayout/budget-details-layout.scss +22 -19
- package/src/features/budgets/layouts/BudgetsLayout/budgets-layout.scss +6 -0
- package/src/features/buying-policies/components/BasicBuyingPolicyDrawer/basic-buying-policy-drawer.scss +4 -0
- package/src/features/buying-policies/layouts/BuyingPoliciesLayout/buying-policies-layout.scss +41 -6
- package/src/features/buying-policies/layouts/BuyingPolicyDetailsLayout/BuyingPolicyDetailsLayout.tsx +1 -1
- package/src/features/buying-policies/layouts/BuyingPolicyDetailsLayout/buying-policy-details-layout.scss +17 -1
- package/src/features/custom-fields/layouts/CustomFieldsLayout/custom-fields-layout.scss +4 -0
- package/src/features/payment-methods/components/AddPaymentMethodsDrawer/AddPaymentMethodsDrawer.tsx +93 -68
- package/src/features/payment-methods/components/AddPaymentMethodsDrawer/add-payment-methods-drawer.scss +66 -30
- package/src/features/payment-methods/components/SearchPaymentMethods/SearchPaymentMethods.tsx +6 -4
- package/src/features/payment-methods/components/SearchPaymentMethods/search-payment-methods.scss +4 -1
- package/src/features/payment-methods/layouts/PaymentMethodsLayout/PaymentMethodsLayout.tsx +65 -54
- package/src/features/payment-methods/layouts/PaymentMethodsLayout/payment-methods-layout.scss +121 -103
- package/src/features/shared/components/CustomDropdown/custom-dropdown.scss +5 -0
- package/src/features/shared/components/HeaderInside/header-inside.scss +1 -1
- package/src/features/shared/components/Pagination/Pagination.tsx +18 -8
- package/src/features/shared/components/Pagination/pagination.scss +14 -0
- package/src/features/shared/layouts/BaseTabsLayout/base-tabs-layout.scss +6 -1
- package/src/features/shared/layouts/BaseTabsLayout/sidebar-drawer/sidebar-drawer.scss +5 -3
- package/src/features/shared/layouts/CustomFieldLayout/CustomFieldLayout.tsx +1 -0
- package/src/features/shared/layouts/CustomFieldLayout/custom-field-layout.scss +28 -2
package/src/features/budgets/components/BudgetRemainingBalance/budget-remaining-balance.scss
CHANGED
|
@@ -8,11 +8,28 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
[data-fs-bp-budget-remaining-balance-header-content] {
|
|
11
|
-
display:
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: 1fr auto;
|
|
12
13
|
justify-content: space-between;
|
|
13
14
|
align-items: baseline;
|
|
15
|
+
gap: var(--fs-spacing-3);
|
|
16
|
+
|
|
14
17
|
margin-bottom: var(--fs-spacing-3);
|
|
15
18
|
|
|
19
|
+
@include media("<tablet") {
|
|
20
|
+
grid-template-columns: 1fr;
|
|
21
|
+
gap: var(--fs-spacing-2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
[data-fs-bp-budgets-progress-bar] {
|
|
25
|
+
grid-column: span 2;
|
|
26
|
+
|
|
27
|
+
@include media("<tablet") {
|
|
28
|
+
grid-column: 1;
|
|
29
|
+
grid-row: 2;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
16
33
|
[data-fs-bp-budget-remaining-balance-label-remaining] {
|
|
17
34
|
font-weight: var(--fs-text-weight-semibold);
|
|
18
35
|
font-size: var(--fs-text-size-6);
|
|
@@ -12,6 +12,12 @@
|
|
|
12
12
|
|
|
13
13
|
[data-fs-bp-budget-settings-divider] {
|
|
14
14
|
border: calc(var(--fs-border-width) / 2) solid #e0e0e0;
|
|
15
|
+
|
|
16
|
+
&:first-of-type {
|
|
17
|
+
@include media("<tablet") {
|
|
18
|
+
border: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
15
21
|
}
|
|
16
22
|
|
|
17
23
|
[data-fs-bp-budget-settings-details-row] {
|
|
@@ -21,17 +27,30 @@
|
|
|
21
27
|
font-size: var(--fs-text-size-1);
|
|
22
28
|
line-height: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
|
|
23
29
|
|
|
30
|
+
@include media("<tablet") {
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
padding: var(--fs-spacing-2) 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
24
35
|
[data-fs-bp-budget-settings-details-row-label] {
|
|
25
36
|
width: 12.5rem;
|
|
26
37
|
color: #707070;
|
|
27
38
|
font-size: var(--fs-text-size-1);
|
|
28
39
|
font-weight: var(--fs-text-weight-regular);
|
|
40
|
+
|
|
41
|
+
@include media("<tablet") {
|
|
42
|
+
font-size: var(--fs-text-size-0);
|
|
43
|
+
}
|
|
29
44
|
}
|
|
30
45
|
|
|
31
46
|
[data-fs-bp-budget-settings-details-row-value] {
|
|
32
47
|
color: #000;
|
|
33
48
|
font-size: var(--fs-text-size-1);
|
|
34
49
|
font-weight: var(--fs-text-weight-medium);
|
|
50
|
+
|
|
51
|
+
@include media("<tablet") {
|
|
52
|
+
font-weight: var(--fs-text-weight-regular);
|
|
53
|
+
}
|
|
35
54
|
}
|
|
36
55
|
}
|
|
37
56
|
|
|
@@ -48,6 +48,7 @@ export function BudgetsTable({
|
|
|
48
48
|
</TableCell>
|
|
49
49
|
<TableCell
|
|
50
50
|
data-fs-table-cell-width
|
|
51
|
+
data-fs-bp-cell-remaining
|
|
51
52
|
scope="col"
|
|
52
53
|
variant="data"
|
|
53
54
|
align="left"
|
|
@@ -57,7 +58,12 @@ export function BudgetsTable({
|
|
|
57
58
|
<TableCell scope="col" variant="data" align="center">
|
|
58
59
|
Expiration date
|
|
59
60
|
</TableCell>
|
|
60
|
-
<TableCell
|
|
61
|
+
<TableCell
|
|
62
|
+
scope="col"
|
|
63
|
+
variant="data"
|
|
64
|
+
align="center"
|
|
65
|
+
data-fs-bp-cell-currency
|
|
66
|
+
>
|
|
61
67
|
Total (USD)
|
|
62
68
|
</TableCell>
|
|
63
69
|
<TableCell scope="col" variant="data" align="right" />
|
|
@@ -95,7 +101,11 @@ export function BudgetsTable({
|
|
|
95
101
|
new Date(item.expirationDate)
|
|
96
102
|
)}
|
|
97
103
|
</TableCell>
|
|
98
|
-
<TableCell
|
|
104
|
+
<TableCell
|
|
105
|
+
align="center"
|
|
106
|
+
data-fs-bp-text-medium
|
|
107
|
+
data-fs-bp-cell-currency
|
|
108
|
+
>
|
|
99
109
|
{formatCurrency(item.total)}
|
|
100
110
|
</TableCell>
|
|
101
111
|
<TableCell
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[data-fs-table] {
|
|
7
7
|
overflow-x: visible;
|
|
8
8
|
}
|
|
9
|
-
[data-fs-bp-table-row]{
|
|
9
|
+
[data-fs-bp-table-row] {
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -64,6 +64,35 @@
|
|
|
64
64
|
cursor: pointer;
|
|
65
65
|
align-items: center;
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
@include media("<tablet") {
|
|
69
|
+
[data-fs-table-cell] {
|
|
70
|
+
display: none;
|
|
71
|
+
|
|
72
|
+
&:first-child {
|
|
73
|
+
display: flex;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:last-child {
|
|
77
|
+
display: table-cell;
|
|
78
|
+
padding-right: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@include media("<notebook") {
|
|
84
|
+
[data-fs-table-cell="data"]:not(:first-of-type) {
|
|
85
|
+
text-align: right;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-fs-bp-cell-remaining] {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-fs-bp-cell-currency] {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
67
96
|
}
|
|
68
97
|
[data-fs-table-cell-width] {
|
|
69
98
|
width: 13.75rem;
|
|
@@ -16,24 +16,36 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
&[data-fs-bp-basic-drawer] {
|
|
19
|
-
max-width: 60rem !important;
|
|
20
19
|
width: 100% !important;
|
|
20
|
+
max-width: none !important;
|
|
21
|
+
|
|
22
|
+
@include media(">=tablet") {
|
|
23
|
+
max-width: 32rem !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include media(">=notebook") {
|
|
27
|
+
max-width: 60rem !important;
|
|
28
|
+
width: 100% !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
21
31
|
& > [data-fs-bp-basic-drawer-footer] {
|
|
22
32
|
justify-content: flex-end !important;
|
|
23
33
|
gap: var(--fs-spacing-1);
|
|
24
34
|
}
|
|
25
|
-
}
|
|
26
35
|
|
|
27
|
-
[data-fs-bp-create-budget-drawer-step-success="true"] {
|
|
28
|
-
border-bottom: none !important;
|
|
29
|
-
}
|
|
30
|
-
&[data-fs-bp-basic-drawer] {
|
|
31
36
|
[data-fs-bp-create-budget-drawer-header-arrow] {
|
|
32
37
|
display: flex;
|
|
33
38
|
flex-direction: row;
|
|
34
39
|
align-items: center;
|
|
35
40
|
gap: var(--fs-spacing-3);
|
|
36
41
|
cursor: pointer;
|
|
42
|
+
|
|
43
|
+
@include media("<tablet") {
|
|
44
|
+
[data-fs-icon] {
|
|
45
|
+
width: var(--fs-spacing-3);
|
|
46
|
+
height: var(--fs-spacing-3);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
37
49
|
}
|
|
38
50
|
|
|
39
51
|
[data-fs-bp-basic-drawer-button-variant="confirm"][disabled] {
|
|
@@ -45,6 +57,10 @@
|
|
|
45
57
|
}
|
|
46
58
|
}
|
|
47
59
|
|
|
60
|
+
[data-fs-bp-create-budget-drawer-step-success="true"] {
|
|
61
|
+
border-bottom: none !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
48
64
|
[data-fs-bp-basic-drawer-button-variant="confirm"][disabled] {
|
|
49
65
|
background-color: #0068d7;
|
|
50
66
|
cursor: not-allowed;
|
|
@@ -17,18 +17,23 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&[data-fs-bp-basic-drawer] {
|
|
20
|
-
max-width: 60rem !important;
|
|
21
20
|
width: 100% !important;
|
|
21
|
+
max-width: none !important;
|
|
22
|
+
|
|
23
|
+
@include media(">=tablet") {
|
|
24
|
+
max-width: 30rem !important;
|
|
25
|
+
min-width: 30rem !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@include media(">=notebook") {
|
|
29
|
+
max-width: 40rem !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
22
32
|
& > [data-fs-bp-basic-drawer-footer] {
|
|
23
33
|
justify-content: flex-end !important;
|
|
24
34
|
gap: var(--fs-spacing-1);
|
|
25
35
|
}
|
|
26
|
-
}
|
|
27
36
|
|
|
28
|
-
[data-fs-bp-create-budget-drawer-step-success="true"] {
|
|
29
|
-
border-bottom: none !important;
|
|
30
|
-
}
|
|
31
|
-
&[data-fs-bp-basic-drawer] {
|
|
32
37
|
[data-fs-bp-create-budget-drawer-header-arrow] {
|
|
33
38
|
display: flex;
|
|
34
39
|
flex-direction: row;
|
|
@@ -46,6 +51,10 @@
|
|
|
46
51
|
}
|
|
47
52
|
}
|
|
48
53
|
|
|
54
|
+
[data-fs-bp-create-budget-drawer-step-success="true"] {
|
|
55
|
+
border-bottom: none !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
49
58
|
[data-fs-bp-basic-drawer-button-variant="confirm"][disabled] {
|
|
50
59
|
background-color: #0068d7;
|
|
51
60
|
cursor: not-allowed;
|
package/src/features/budgets/components/DeleteBudgetAllocationDrawer/delete-budget-allocations.scss
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
@import "../../../shared/components/BasicDrawer/basic-drawer.scss";
|
|
2
2
|
|
|
3
|
-
[data-fs-bp-delete-
|
|
3
|
+
[data-fs-bp-delete-allocation-drawer] {
|
|
4
4
|
@import "../../../shared/components/InputText/input-text.scss";
|
|
5
|
+
|
|
6
|
+
&[data-fs-bp-basic-drawer] {
|
|
7
|
+
width: 100% !important;
|
|
8
|
+
max-width: none !important;
|
|
9
|
+
|
|
10
|
+
@include media(">=tablet") {
|
|
11
|
+
max-width: 30rem !important;
|
|
12
|
+
min-width: 30rem !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include media(">=notebook") {
|
|
16
|
+
max-width: 40rem !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
5
19
|
}
|
|
@@ -7,8 +7,18 @@
|
|
|
7
7
|
@import "../../../shared/components/ErrorMessage/error-message.scss";
|
|
8
8
|
|
|
9
9
|
&[data-fs-bp-basic-drawer] {
|
|
10
|
-
max-width: 60rem !important;
|
|
11
10
|
width: 100% !important;
|
|
11
|
+
max-width: none !important;
|
|
12
|
+
|
|
13
|
+
@include media(">=tablet") {
|
|
14
|
+
max-width: 30rem !important;
|
|
15
|
+
min-width: 30rem !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include media(">=notebook") {
|
|
19
|
+
max-width: 40rem !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
& > [data-fs-bp-basic-drawer-footer] {
|
|
13
23
|
justify-content: flex-end !important;
|
|
14
24
|
gap: var(--fs-spacing-1);
|
|
@@ -153,8 +153,8 @@ export const BudgetsDetailsLayout = ({ budget }: BudgetsDetailsLayoutProps) => {
|
|
|
153
153
|
role: user?.role ?? "",
|
|
154
154
|
}}
|
|
155
155
|
>
|
|
156
|
-
<
|
|
157
|
-
<
|
|
156
|
+
<div data-fs-bp-budgets-details-layout>
|
|
157
|
+
<header data-fs-bp-budgets-details-header-wrapper>
|
|
158
158
|
<div data-fs-bp-budgets-details-header-arrow>
|
|
159
159
|
<Icon
|
|
160
160
|
name="ArrowPointLeft"
|
|
@@ -189,87 +189,88 @@ export const BudgetsDetailsLayout = ({ budget }: BudgetsDetailsLayoutProps) => {
|
|
|
189
189
|
</DropdownItem>
|
|
190
190
|
</BasicDropdownMenu>
|
|
191
191
|
</Dropdown>
|
|
192
|
-
</
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
/>
|
|
198
|
-
|
|
199
|
-
<BudgetSettingsInfoBalance
|
|
200
|
-
initialBudget={budget}
|
|
201
|
-
budgetId={budget.id}
|
|
202
|
-
orgUnitId={orgUnit?.id ?? ""}
|
|
203
|
-
contractId={contract?.id ?? ""}
|
|
204
|
-
/>
|
|
205
|
-
|
|
206
|
-
{hasMounted && (
|
|
207
|
-
<BudgetAllocationsTable
|
|
208
|
-
loading={isAllocationsLoading && !loadingLoadMore}
|
|
209
|
-
data={budgets.allocation.data}
|
|
210
|
-
budgetId={budgets.budget.id}
|
|
211
|
-
orgUnitId={orgUnit?.id ?? ""}
|
|
212
|
-
contractId={contract?.id ?? ""}
|
|
213
|
-
onSearch={setAllocationSearch}
|
|
214
|
-
pagination={{
|
|
215
|
-
current: budgets.allocation.data?.length ?? 0,
|
|
216
|
-
loading: isAllocationsLoading,
|
|
217
|
-
total: budgets.allocation.total,
|
|
218
|
-
loadMore,
|
|
219
|
-
}}
|
|
192
|
+
</header>
|
|
193
|
+
<section data-fs-bp-budgets-details-section>
|
|
194
|
+
<BudgetRemainingBalance
|
|
195
|
+
remaining={budget.remaining}
|
|
196
|
+
total={Number(budget.amount)}
|
|
220
197
|
/>
|
|
221
|
-
)}
|
|
222
198
|
|
|
223
|
-
|
|
224
|
-
|
|
199
|
+
<BudgetSettingsInfoBalance
|
|
200
|
+
initialBudget={budget}
|
|
201
|
+
budgetId={budget.id}
|
|
225
202
|
orgUnitId={orgUnit?.id ?? ""}
|
|
226
203
|
contractId={contract?.id ?? ""}
|
|
227
|
-
budgetName={budget.name}
|
|
228
|
-
budgetId={budget.id}
|
|
229
|
-
redirect={handleBudgetPage}
|
|
230
|
-
isOpen={isDeleteDrawerOpen}
|
|
231
|
-
{...deleteDrawerProps}
|
|
232
204
|
/>
|
|
233
|
-
)}
|
|
234
205
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
206
|
+
{hasMounted && (
|
|
207
|
+
<BudgetAllocationsTable
|
|
208
|
+
loading={isAllocationsLoading && !loadingLoadMore}
|
|
209
|
+
data={budgets.allocation.data}
|
|
210
|
+
budgetId={budgets.budget.id}
|
|
211
|
+
orgUnitId={orgUnit?.id ?? ""}
|
|
212
|
+
contractId={contract?.id ?? ""}
|
|
213
|
+
onSearch={setAllocationSearch}
|
|
214
|
+
pagination={{
|
|
215
|
+
current: budgets.allocation.data?.length ?? 0,
|
|
216
|
+
loading: isAllocationsLoading,
|
|
217
|
+
total: budgets.allocation.total,
|
|
218
|
+
loadMore,
|
|
219
|
+
}}
|
|
220
|
+
/>
|
|
221
|
+
)}
|
|
245
222
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
)}
|
|
223
|
+
{isDeleteDrawerOpen && (
|
|
224
|
+
<BudgetDeleteDrawer
|
|
225
|
+
orgUnitId={orgUnit?.id ?? ""}
|
|
226
|
+
contractId={contract?.id ?? ""}
|
|
227
|
+
budgetName={budget.name}
|
|
228
|
+
budgetId={budget.id}
|
|
229
|
+
redirect={handleBudgetPage}
|
|
230
|
+
isOpen={isDeleteDrawerOpen}
|
|
231
|
+
{...deleteDrawerProps}
|
|
232
|
+
/>
|
|
233
|
+
)}
|
|
258
234
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
235
|
+
{isAddAllocationDrawerOpen && (
|
|
236
|
+
<CreateBudgetAllocationDrawer
|
|
237
|
+
{...addAllocationDrawerProps}
|
|
238
|
+
allocationList={budgets.allocation.data}
|
|
239
|
+
contractId={contract?.id ?? ""}
|
|
240
|
+
budgetId={budgets.budget.id}
|
|
241
|
+
orgUnitId={orgUnit?.id ?? ""}
|
|
242
|
+
isOpen={isAddAllocationDrawerOpen}
|
|
243
|
+
/>
|
|
244
|
+
)}
|
|
245
|
+
|
|
246
|
+
{isDeleteDrawerOpen && (
|
|
247
|
+
<BudgetDeleteDrawer
|
|
248
|
+
{...deleteDrawerProps}
|
|
249
|
+
isOpen={isDeleteDrawerOpen}
|
|
250
|
+
budgetId={budgets.budget.id}
|
|
251
|
+
budgetName={budgets.budget.name}
|
|
252
|
+
orgUnitId={orgUnit?.id ?? ""}
|
|
253
|
+
contractId={contract?.id ?? ""}
|
|
254
|
+
{...deleteDrawerProps}
|
|
255
|
+
redirect={handleBudgetPage}
|
|
256
|
+
/>
|
|
257
|
+
)}
|
|
258
|
+
|
|
259
|
+
{isEditDrawerOpen && (
|
|
260
|
+
<EditBudgetDrawer
|
|
261
|
+
{...editDrawerProps}
|
|
262
|
+
isOpen={isEditDrawerOpen}
|
|
263
|
+
budgetId={budgets.budget.id}
|
|
264
|
+
contractId={contract?.id ?? ""}
|
|
265
|
+
orgUnitId={orgUnit?.id ?? ""}
|
|
266
|
+
initialBudget={{
|
|
267
|
+
...budgets.budget,
|
|
268
|
+
amount: budgets.budget.amount,
|
|
269
|
+
}}
|
|
270
|
+
/>
|
|
271
|
+
)}
|
|
272
|
+
</section>
|
|
273
|
+
</div>
|
|
273
274
|
</ContractTabsLayout>
|
|
274
275
|
</GlobalLayout>
|
|
275
276
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@import "../../components/EditBudgetDrawer/edit-budget-drawer.scss";
|
|
2
|
-
|
|
2
|
+
@import "../../components/CreateBudgetDrawer/create-budget-drawer.scss";
|
|
3
3
|
@import "../../components/BudgetAllocationsTable/budget-allocations-table.scss";
|
|
4
4
|
@import "../../components/BudgetAllocationsSelection/budget-allocations-selection.scss";
|
|
5
5
|
@import "../../../budgets/components/DeleteBudgetAllocationDrawer/delete-budget-allocations.scss";
|
|
@@ -18,28 +18,11 @@
|
|
|
18
18
|
@import "../../../shared/components/EmptyState/empty-state.scss";
|
|
19
19
|
@import "../../components/EmptyState.tsx/empty-state.scss";
|
|
20
20
|
|
|
21
|
-
padding: calc(var(--fs-spacing-13) - var(--fs-spacing-0))
|
|
22
|
-
calc(var(--fs-spacing-8) + var(--fs-spacing-0))
|
|
23
|
-
calc(var(--fs-spacing-13) - var(--fs-spacing-0))
|
|
24
|
-
calc(var(--fs-spacing-8) + var(--fs-spacing-0));
|
|
25
|
-
min-height: calc(100vh - calc(var(--fs-spacing-9) + var(--fs-spacing-0)));
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
gap: var(--fs-spacing-6);
|
|
29
|
-
|
|
30
|
-
&[data-fs-bp-basic-drawer] {
|
|
31
|
-
max-width: 60rem !important;
|
|
32
|
-
width: 100% !important;
|
|
33
|
-
& > [data-fs-bp-basic-drawer-footer] {
|
|
34
|
-
justify-content: flex-end !important;
|
|
35
|
-
gap: var(--fs-spacing-1);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
21
|
[data-fs-bp-budgets-details-header-wrapper] {
|
|
40
22
|
display: flex;
|
|
41
23
|
justify-content: space-between;
|
|
42
24
|
align-items: center;
|
|
25
|
+
margin: var(--fs-spacing-6) 0;
|
|
43
26
|
}
|
|
44
27
|
|
|
45
28
|
[data-fs-bp-budgets-details-header-arrow] {
|
|
@@ -54,4 +37,24 @@
|
|
|
54
37
|
cursor: pointer;
|
|
55
38
|
}
|
|
56
39
|
}
|
|
40
|
+
|
|
41
|
+
[data-fs-bp-budgets-details-section] {
|
|
42
|
+
min-height: calc(100vh - calc(var(--fs-spacing-9) + var(--fs-spacing-0)));
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: var(--fs-spacing-6);
|
|
46
|
+
|
|
47
|
+
@include media("<tablet") {
|
|
48
|
+
gap: var(--fs-spacing-4);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[data-fs-bp-basic-drawer] {
|
|
52
|
+
max-width: 60rem !important;
|
|
53
|
+
width: 100% !important;
|
|
54
|
+
& > [data-fs-bp-basic-drawer-footer] {
|
|
55
|
+
justify-content: flex-end !important;
|
|
56
|
+
gap: var(--fs-spacing-1);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
57
60
|
}
|
|
@@ -100,6 +100,12 @@
|
|
|
100
100
|
align-items: center;
|
|
101
101
|
margin-bottom: var(--fs-spacing-4);
|
|
102
102
|
|
|
103
|
+
@include media("<tablet") {
|
|
104
|
+
[data-fs-buyer-portal-internal-search] {
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
103
109
|
[data-fs-bp-pagination] {
|
|
104
110
|
color: #5c5c5c;
|
|
105
111
|
text-align: right;
|
package/src/features/buying-policies/layouts/BuyingPoliciesLayout/buying-policies-layout.scss
CHANGED
|
@@ -11,10 +11,25 @@
|
|
|
11
11
|
@import "../../../shared/components/Paginator/paginator.scss";
|
|
12
12
|
@import "../../../shared/components/EmptyState/empty-state.scss";
|
|
13
13
|
|
|
14
|
-
height: 100%;
|
|
14
|
+
min-height: 100%;
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
|
|
18
|
+
@include media("<=tablet") {
|
|
19
|
+
padding-bottom: 3rem;
|
|
20
|
+
|
|
21
|
+
[data-fs-bp-header-inside] {
|
|
22
|
+
[data-fs-header-inside-button] {
|
|
23
|
+
position: fixed;
|
|
24
|
+
bottom: 20px;
|
|
25
|
+
right: 20px;
|
|
26
|
+
padding: 12px;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
z-index: 10;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
18
33
|
[data-fs-empty-state-section] {
|
|
19
34
|
flex: 1;
|
|
20
35
|
color: #858585;
|
|
@@ -24,6 +39,21 @@
|
|
|
24
39
|
display: flex;
|
|
25
40
|
justify-content: space-between;
|
|
26
41
|
padding: 0 0 var(--fs-spacing-4);
|
|
42
|
+
[data-fs-bp-paginator-counter] {
|
|
43
|
+
font-size: var(--fs-text-size-1);
|
|
44
|
+
color: #5c5c5c;
|
|
45
|
+
display: block;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include media("<=tablet") {
|
|
49
|
+
[data-fs-buyer-portal-internal-search] {
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-fs-bp-paginator-counter] {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
27
57
|
}
|
|
28
58
|
|
|
29
59
|
[data-fs-buying-policies-heading] {
|
|
@@ -36,11 +66,16 @@
|
|
|
36
66
|
}
|
|
37
67
|
|
|
38
68
|
[data-fs-bp-buying-policies-paginator] {
|
|
39
|
-
display:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
69
|
+
display: none;
|
|
70
|
+
@include media("<=tablet") {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: space-between;
|
|
74
|
+
margin-top: var(--fs-spacing-0);
|
|
75
|
+
padding: var(--fs-spacing-2) 0;
|
|
76
|
+
font-size: var(--fs-text-size-1);
|
|
77
|
+
color: #5c5c5c;
|
|
78
|
+
}
|
|
44
79
|
}
|
|
45
80
|
|
|
46
81
|
[data-fs-bp-table] {
|
package/src/features/buying-policies/layouts/BuyingPolicyDetailsLayout/BuyingPolicyDetailsLayout.tsx
CHANGED
|
@@ -51,7 +51,7 @@ export const BuyingPolicyDetailsLayout = ({
|
|
|
51
51
|
</Dropdown>
|
|
52
52
|
</HeaderInside>
|
|
53
53
|
|
|
54
|
-
<div data-fs-buying-policy-details-line>
|
|
54
|
+
<div data-fs-buying-policy-details-line-initial>
|
|
55
55
|
<span data-fs-buying-policy-details-title>Settings</span>
|
|
56
56
|
<button
|
|
57
57
|
type="button"
|
|
@@ -7,8 +7,14 @@
|
|
|
7
7
|
[data-fs-buying-policy-details-section] {
|
|
8
8
|
@import "../../../shared/components/HeaderInside/header-inside.scss";
|
|
9
9
|
@import "../../../shared/components/InternalSearch/internal-search.scss";
|
|
10
|
+
[data-fs-bp-header-inside-title] {
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
text-overflow: ellipsis;
|
|
14
|
+
}
|
|
10
15
|
|
|
11
|
-
[data-fs-buying-policy-details-line]
|
|
16
|
+
[data-fs-buying-policy-details-line],
|
|
17
|
+
[data-fs-buying-policy-details-line-initial] {
|
|
12
18
|
padding: calc(var(--fs-spacing-4) - var(--fs-spacing-0)) 0;
|
|
13
19
|
border-top: var(--fs-border-width) solid #e0e0e0;
|
|
14
20
|
display: flex;
|
|
@@ -17,6 +23,10 @@
|
|
|
17
23
|
border-top: none;
|
|
18
24
|
}
|
|
19
25
|
|
|
26
|
+
@include media("<=tablet") {
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
}
|
|
29
|
+
|
|
20
30
|
[data-fs-buying-policy-details-title] {
|
|
21
31
|
font-weight: 600;
|
|
22
32
|
font-size: var(--fs-text-size-2);
|
|
@@ -80,4 +90,10 @@
|
|
|
80
90
|
}
|
|
81
91
|
}
|
|
82
92
|
}
|
|
93
|
+
|
|
94
|
+
[data-fs-buying-policy-details-line-initial] {
|
|
95
|
+
@include media("<=tablet") {
|
|
96
|
+
flex-direction: row;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
83
99
|
}
|