@cloud-ru/uikit-product-calculator 0.38.1 → 1.0.1-preview-b95fca4e.0
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 +11 -0
- package/README.md +1 -11
- package/dist/cjs/config/platforms/vmware/product-config/VmWareVirtualWorkspaces.js +3 -23
- package/dist/cjs/hooks/useAdaptive.d.ts +1 -1
- package/dist/esm/config/platforms/vmware/product-config/VmWareVirtualWorkspaces.js +3 -23
- package/dist/esm/hooks/useAdaptive.d.ts +1 -1
- package/package.json +8 -8
- package/src/components/CalculatorContent/styles.module.scss +1 -1
- package/src/components/Catalog/components/styles.module.scss +2 -2
- package/src/components/Catalog/styles.module.scss +1 -1
- package/src/components/Controls/ArrayControl/styles.module.scss +1 -1
- package/src/components/Controls/CarouselControl/styles.module.scss +1 -1
- package/src/components/Controls/ObjectControl/styles.module.scss +1 -1
- package/src/components/Controls/SegmentedControl/styles.module.scss +1 -1
- package/src/components/Controls/SelectControl/styles.module.scss +1 -1
- package/src/components/Controls/StepperControl/styles.module.scss +1 -1
- package/src/components/Controls/TableControl/helperComponents/styles.module.scss +3 -3
- package/src/components/Controls/TableControl/styles.module.scss +2 -2
- package/src/components/Controls/ToggleCardsControl/styles.module.scss +1 -1
- package/src/components/Controls/ToggleControl/components/styles.module.scss +2 -2
- package/src/components/Controls/ToggleObjectControl/styles.module.scss +1 -1
- package/src/components/Disclaimer/styles.module.scss +1 -1
- package/src/components/HeaderContainer/styles.module.scss +1 -1
- package/src/components/PriceSummary/components/ProductCard/styles.module.scss +1 -1
- package/src/components/PriceSummary/components/ProductListActions/styles.module.scss +3 -3
- package/src/components/PriceSummary/styles.module.scss +1 -1
- package/src/components/ProductHeadline/components/styles.module.scss +1 -1
- package/src/components/ProductHeadline/styles.module.scss +1 -1
- package/src/components/ProductPage/styles.module.scss +1 -1
- package/src/components/Welcome/styles.module.scss +1 -1
- package/src/config/platforms/vmware/product-config/VmWareVirtualWorkspaces.tsx +3 -23
- package/src/config/utils/diskPostgreSqlMySQL/styles.module.scss +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 0.39.0 (2026-01-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **SITE-10509:** update calculator VM_WARE_VIRTUAL_WORKSPACES ([9be7f90](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/9be7f9066c013dfbea10dddb4c7656fcd6d61956))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 0.38.1 (2025-12-24)
|
|
7
18
|
|
|
8
19
|
### Only dependencies have been changed
|
package/README.md
CHANGED
|
@@ -7,16 +7,6 @@
|
|
|
7
7
|
### Example
|
|
8
8
|
|
|
9
9
|
```tsx
|
|
10
|
-
import {
|
|
11
|
-
ADVANCED_PLATFORM,
|
|
12
|
-
ADVANCED_PRODUCT,
|
|
13
|
-
CATALOG_CONFIG,
|
|
14
|
-
getFetcherFn,
|
|
15
|
-
getOnDownloadFileClick,
|
|
16
|
-
getOnShareClick,
|
|
17
|
-
VM_WARE_PLATFORM,
|
|
18
|
-
} from '@sbercloud/cpt-calculator-configs';
|
|
19
|
-
import { useAdaptive } from '@sbercloud/cpt-common';
|
|
20
10
|
import { Calculator as CalculatorUi, CALCULATOR_TYPE } from '@cloud-ru/uikit-product-calculator';
|
|
21
11
|
|
|
22
12
|
const onDownloadFileClick = getOnDownloadFileClick();
|
|
@@ -122,7 +112,7 @@ data-test-id
|
|
|
122
112
|
### Props
|
|
123
113
|
| name | type | default value | description |
|
|
124
114
|
|------|------|---------------|-------------|
|
|
125
|
-
| __@iterator@
|
|
115
|
+
| __@iterator@1092* | `() => StringIterator<string>` | - | Iterator |
|
|
126
116
|
| toWellFormed* | `() => string` | - | Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD). |
|
|
127
117
|
| isWellFormed* | `() => boolean` | - | Returns true if all leading surrogates and trailing surrogates appear paired and in order. |
|
|
128
118
|
| at* | `(index: number) => string` | - | Returns a new String consisting of the single UTF-16 code unit located at the specified index. @param index The zero-based index of the desired code unit. A negative index will count back from the last item. |
|
|
@@ -20,21 +20,9 @@ const osTypeItems = [
|
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
22
|
const TariffPlanItem = {
|
|
23
|
-
Linux: 'Linux',
|
|
24
|
-
Standard: 'Standard',
|
|
25
23
|
Advanced: 'Advanced',
|
|
26
24
|
};
|
|
27
25
|
const tariffPlanItems = [
|
|
28
|
-
{
|
|
29
|
-
value: TariffPlanItem.Linux,
|
|
30
|
-
label: 'Linux',
|
|
31
|
-
description: 'Удаленные рабочие столы будут развернуты на операционной системе Linux',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
value: TariffPlanItem.Standard,
|
|
35
|
-
label: 'Стандартный',
|
|
36
|
-
description: 'Удаленные рабочие столы будут развернуты на десктопной операционной системе',
|
|
37
|
-
},
|
|
38
26
|
{
|
|
39
27
|
value: TariffPlanItem.Advanced,
|
|
40
28
|
label: 'Продвинутый',
|
|
@@ -71,23 +59,15 @@ exports.VM_WARE_VIRTUAL_WORKSPACES_FORM_CONFIG = {
|
|
|
71
59
|
},
|
|
72
60
|
tariffPlan: {
|
|
73
61
|
type: components_1.CONTROL.ToggleCards,
|
|
74
|
-
defaultValue: TariffPlanItem.
|
|
62
|
+
defaultValue: TariffPlanItem.Advanced,
|
|
75
63
|
items: tariffPlanItems,
|
|
76
64
|
accessorKey: 'vdi.tariffPlan',
|
|
77
65
|
decoratorProps: {
|
|
78
66
|
label: 'Тарифный план',
|
|
79
67
|
labelTooltip: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044F\u0445 \u043A\u0430\u0436\u0434\u043E\u0433\u043E", (0, jsx_runtime_1.jsx)("br", {}), "\u0438\u0437 \u0442\u0430\u0440\u0438\u0444\u043E\u0432 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0432", ' ', (0, jsx_runtime_1.jsx)(link_1.Link, { target: '_blank', href: 'https://cloud.ru/docs/vdi/ag/topics/tariffs', textMode: 'accent', text: '\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438', appearance: 'invert-neutral' })] })),
|
|
80
68
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
if (osType === OsTypeItem.Linux) {
|
|
84
|
-
return {
|
|
85
|
-
items: tariffPlanItems.filter(item => item.value !== TariffPlanItem.Standard),
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
items: tariffPlanItems.filter(item => item.value !== TariffPlanItem.Linux),
|
|
90
|
-
};
|
|
69
|
+
uiProps: {
|
|
70
|
+
visible: false,
|
|
91
71
|
},
|
|
92
72
|
},
|
|
93
73
|
workSpacesCount: {
|
|
@@ -17,21 +17,9 @@ const osTypeItems = [
|
|
|
17
17
|
},
|
|
18
18
|
];
|
|
19
19
|
const TariffPlanItem = {
|
|
20
|
-
Linux: 'Linux',
|
|
21
|
-
Standard: 'Standard',
|
|
22
20
|
Advanced: 'Advanced',
|
|
23
21
|
};
|
|
24
22
|
const tariffPlanItems = [
|
|
25
|
-
{
|
|
26
|
-
value: TariffPlanItem.Linux,
|
|
27
|
-
label: 'Linux',
|
|
28
|
-
description: 'Удаленные рабочие столы будут развернуты на операционной системе Linux',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
value: TariffPlanItem.Standard,
|
|
32
|
-
label: 'Стандартный',
|
|
33
|
-
description: 'Удаленные рабочие столы будут развернуты на десктопной операционной системе',
|
|
34
|
-
},
|
|
35
23
|
{
|
|
36
24
|
value: TariffPlanItem.Advanced,
|
|
37
25
|
label: 'Продвинутый',
|
|
@@ -68,23 +56,15 @@ export const VM_WARE_VIRTUAL_WORKSPACES_FORM_CONFIG = {
|
|
|
68
56
|
},
|
|
69
57
|
tariffPlan: {
|
|
70
58
|
type: CONTROL.ToggleCards,
|
|
71
|
-
defaultValue: TariffPlanItem.
|
|
59
|
+
defaultValue: TariffPlanItem.Advanced,
|
|
72
60
|
items: tariffPlanItems,
|
|
73
61
|
accessorKey: 'vdi.tariffPlan',
|
|
74
62
|
decoratorProps: {
|
|
75
63
|
label: 'Тарифный план',
|
|
76
64
|
labelTooltip: (_jsxs(_Fragment, { children: ["\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044F\u0445 \u043A\u0430\u0436\u0434\u043E\u0433\u043E", _jsx("br", {}), "\u0438\u0437 \u0442\u0430\u0440\u0438\u0444\u043E\u0432 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0432", ' ', _jsx(Link, { target: '_blank', href: 'https://cloud.ru/docs/vdi/ag/topics/tariffs', textMode: 'accent', text: '\u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0446\u0438\u0438', appearance: 'invert-neutral' })] })),
|
|
77
65
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
if (osType === OsTypeItem.Linux) {
|
|
81
|
-
return {
|
|
82
|
-
items: tariffPlanItems.filter(item => item.value !== TariffPlanItem.Standard),
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
return {
|
|
86
|
-
items: tariffPlanItems.filter(item => item.value !== TariffPlanItem.Linux),
|
|
87
|
-
};
|
|
66
|
+
uiProps: {
|
|
67
|
+
visible: false,
|
|
88
68
|
},
|
|
89
69
|
},
|
|
90
70
|
workSpacesCount: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/uikit-product-calculator",
|
|
3
3
|
"title": "Calculator",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.1-preview-b95fca4e.0",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
7
7
|
"*.woff",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@cloud-ru/ft-copy-to-clipboard": "0.1.0",
|
|
40
|
-
"@cloud-ru/uikit-product-icons": "16.1.
|
|
41
|
-
"@cloud-ru/uikit-product-mobile-accordion": "0.
|
|
42
|
-
"@cloud-ru/uikit-product-mobile-dropdown": "0.
|
|
43
|
-
"@cloud-ru/uikit-product-mobile-fields": "0.
|
|
44
|
-
"@cloud-ru/uikit-product-mobile-modal": "0.
|
|
45
|
-
"@cloud-ru/uikit-product-utils": "8.1.0",
|
|
40
|
+
"@cloud-ru/uikit-product-icons": "16.1.2-preview-b95fca4e.0",
|
|
41
|
+
"@cloud-ru/uikit-product-mobile-accordion": "1.0.1-preview-b95fca4e.0",
|
|
42
|
+
"@cloud-ru/uikit-product-mobile-dropdown": "1.0.1-preview-b95fca4e.0",
|
|
43
|
+
"@cloud-ru/uikit-product-mobile-fields": "1.0.1-preview-b95fca4e.0",
|
|
44
|
+
"@cloud-ru/uikit-product-mobile-modal": "1.0.1-preview-b95fca4e.0",
|
|
45
|
+
"@cloud-ru/uikit-product-utils": "8.1.1-preview-b95fca4e.0",
|
|
46
46
|
"@snack-uikit/alert": "0.15.12",
|
|
47
47
|
"@snack-uikit/button": "0.19.7",
|
|
48
48
|
"@snack-uikit/card": "0.16.19",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/lodash": "4.17.13"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "5e59d6341e92ce7320739df54ab7e6f6d0a7aa26"
|
|
75
75
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '@
|
|
2
|
-
@use '@
|
|
1
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/styles-theme-variables' as stv;
|
|
2
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/components/styles-tokens-card' as st-card;
|
|
3
3
|
|
|
4
4
|
$sizes: 's', 'm', 'l';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use '@
|
|
2
|
-
@use '@
|
|
3
|
-
@use '@
|
|
1
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/styles-theme-variables' as ft;
|
|
2
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/components/styles-tokens-fields' as ft-fields;
|
|
3
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/components/styles-tokens-element' as ft-element;
|
|
4
4
|
|
|
5
5
|
.input {
|
|
6
6
|
@include ft.composite-var(ft-fields.$fields-single-line-container-s);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '@
|
|
2
|
-
@use '@
|
|
1
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/components/styles-tokens-table' as ft-table;
|
|
2
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/styles-theme-variables' as ft;
|
|
3
3
|
|
|
4
4
|
.tipWrapper {
|
|
5
5
|
display: inline-flex;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use '@
|
|
2
|
-
@use '@
|
|
1
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/components/styles-tokens-element' as element;
|
|
2
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/components/styles-tokens-accordion' as accordion;
|
|
3
3
|
|
|
4
4
|
.description {
|
|
5
5
|
@include accordion.composite-var(accordion.$sans-body-m);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use '@
|
|
2
|
-
@use '@
|
|
3
|
-
@use '@
|
|
1
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/components/styles-tokens-toaster-toasterUserAction';
|
|
2
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/components/styles-tokens-element';
|
|
3
|
+
@use '@cloud-ru/figma-tokens-cloud-platform/build/scss/styles-theme-variables';
|
|
4
4
|
|
|
5
5
|
.footerLinks {
|
|
6
6
|
display: flex;
|
|
@@ -21,22 +21,10 @@ const osTypeItems = [
|
|
|
21
21
|
];
|
|
22
22
|
|
|
23
23
|
const TariffPlanItem = {
|
|
24
|
-
Linux: 'Linux',
|
|
25
|
-
Standard: 'Standard',
|
|
26
24
|
Advanced: 'Advanced',
|
|
27
25
|
};
|
|
28
26
|
|
|
29
27
|
const tariffPlanItems = [
|
|
30
|
-
{
|
|
31
|
-
value: TariffPlanItem.Linux,
|
|
32
|
-
label: 'Linux',
|
|
33
|
-
description: 'Удаленные рабочие столы будут развернуты на операционной системе Linux',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
value: TariffPlanItem.Standard,
|
|
37
|
-
label: 'Стандартный',
|
|
38
|
-
description: 'Удаленные рабочие столы будут развернуты на десктопной операционной системе',
|
|
39
|
-
},
|
|
40
28
|
{
|
|
41
29
|
value: TariffPlanItem.Advanced,
|
|
42
30
|
label: 'Продвинутый',
|
|
@@ -74,7 +62,7 @@ export const VM_WARE_VIRTUAL_WORKSPACES_FORM_CONFIG: FormConfig = {
|
|
|
74
62
|
},
|
|
75
63
|
tariffPlan: {
|
|
76
64
|
type: CONTROL.ToggleCards,
|
|
77
|
-
defaultValue: TariffPlanItem.
|
|
65
|
+
defaultValue: TariffPlanItem.Advanced,
|
|
78
66
|
items: tariffPlanItems,
|
|
79
67
|
accessorKey: 'vdi.tariffPlan',
|
|
80
68
|
decoratorProps: {
|
|
@@ -94,16 +82,8 @@ export const VM_WARE_VIRTUAL_WORKSPACES_FORM_CONFIG: FormConfig = {
|
|
|
94
82
|
</>
|
|
95
83
|
),
|
|
96
84
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if (osType === OsTypeItem.Linux) {
|
|
100
|
-
return {
|
|
101
|
-
items: tariffPlanItems.filter(item => item.value !== TariffPlanItem.Standard),
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
return {
|
|
105
|
-
items: tariffPlanItems.filter(item => item.value !== TariffPlanItem.Linux),
|
|
106
|
-
};
|
|
85
|
+
uiProps: {
|
|
86
|
+
visible: false,
|
|
107
87
|
},
|
|
108
88
|
},
|
|
109
89
|
workSpacesCount: {
|