bfg-common 1.4.853 → 1.4.855

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.
Files changed (90) hide show
  1. package/.idea/inspectionProfiles/Project_Default.xml +1 -2
  2. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  3. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  4. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  5. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  6. package/assets/localization/local_be.json +1 -2
  7. package/assets/localization/local_en.json +1 -2
  8. package/assets/localization/local_hy.json +1 -2
  9. package/assets/localization/local_kk.json +1 -2
  10. package/assets/localization/local_ru.json +1 -2
  11. package/assets/localization/local_zh.json +1 -2
  12. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  13. package/components/common/browse/lib/models/interfaces.ts +5 -5
  14. package/components/common/chartOptionsModal/counters/timespan/form/Form.vue +313 -40
  15. package/components/common/diagramMain/Header.vue +211 -211
  16. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  17. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  18. package/components/common/diagramMain/lib/models/types.ts +21 -21
  19. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  20. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  21. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  22. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  23. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  24. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  25. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  26. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  27. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  28. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  29. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  30. package/components/common/diagramMain/modals/lib/config/diagramConfig.ts +23 -23
  31. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  32. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  33. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  34. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  35. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  36. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  37. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  38. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  39. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  40. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  41. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  42. package/components/common/diagramMain/port/Ports.vue +47 -47
  43. package/components/common/monitor/advanced/Advanced.vue +3 -0
  44. package/components/common/monitor/advanced/AdvancedNew.vue +2 -0
  45. package/components/common/monitor/advanced/AdvancedOld.vue +2 -0
  46. package/components/common/monitor/advanced/tools/Tools.vue +3 -0
  47. package/components/common/monitor/advanced/tools/ToolsNew.vue +2 -0
  48. package/components/common/monitor/advanced/tools/ToolsOld.vue +2 -0
  49. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +114 -113
  50. package/components/common/monitor/advanced/tools/chartOptionsModal/Notification.vue +20 -13
  51. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +73 -30
  52. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +56 -75
  53. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +58 -19
  54. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{tableOld/lib → lib}/config/tableConfig.ts +1 -1
  55. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +1040 -1040
  56. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +47 -71
  57. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +26 -21
  58. package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +29 -17
  59. package/components/common/monitor/overview/filters/customIntervalModal/CustomIntervalModalNew.vue +3 -8
  60. package/components/common/pages/tasks/Tasks.vue +14 -0
  61. package/components/common/pages/tasks/table/Table.vue +43 -0
  62. package/components/common/pages/tasks/table/lib/config/config.ts +1 -1
  63. package/package.json +2 -2
  64. package/components/common/chartOptionsModal/counters/timespan/form/FormNew.vue +0 -254
  65. package/components/common/chartOptionsModal/counters/timespan/form/FormOld.vue +0 -372
  66. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalNew.vue +0 -190
  67. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModalOld.vue +0 -189
  68. package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationNew.vue +0 -20
  69. package/components/common/monitor/advanced/tools/chartOptionsModal/NotificationOld.vue +0 -27
  70. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsNew.vue +0 -145
  71. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/ActionsOld.vue +0 -108
  72. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersNew.vue +0 -97
  73. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/CountersOld.vue +0 -110
  74. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/TableNew.vue +0 -46
  75. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/options.ts +0 -19
  76. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/config/tableData.ts +0 -71
  77. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableNew/utils/constructTable.ts +0 -29
  78. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/tableOld/TableOld.vue +0 -85
  79. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanNew.vue +0 -150
  80. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/TimespanOld.vue +0 -95
  81. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/ObjectNew.vue +0 -56
  82. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/options.ts +0 -25
  83. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/config/tableData.ts +0 -47
  84. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectNew/lib/utils/constructTable.ts +0 -22
  85. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/objectOld/ObjectOld.vue +0 -84
  86. package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/MetricsOld.vue +0 -32
  87. package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/metricsNew/MetricsNew.vue +0 -101
  88. package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/metricsNew/lib/utils/constructAccordion.ts +0 -32
  89. package/lib/utils/date.ts +0 -12
  90. /package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/{tableOld/lib → lib}/models/types.ts +0 -0
@@ -1,372 +0,0 @@
1
- <template>
2
- <div class="chart-option-timespan-split">
3
- <div class="vertical-flex-container">
4
- <div class="timespan-objects-section-direction">
5
- <label for="chart-timespan-type-select"
6
- >{{ localization.inventoryMonitor.timespan }}:</label
7
- >
8
- <div class="vertical-flex-container chart-option-timespan-settings">
9
- <div class="timespan-select chart-option-setting-row">
10
- <div class="view-select-label horizontal-flex-container">
11
- <div class="select">
12
- <select
13
- id="chart-timespan-type-select"
14
- v-model="localSelectedTimespanLocal"
15
- data-id="chart-timespan-type-select"
16
- >
17
- <option
18
- v-for="(item, index) in props.timespanOptions"
19
- :key="index"
20
- :value="item.value"
21
- >
22
- {{ item.text }}
23
- </option>
24
- </select>
25
- </div>
26
- </div>
27
- </div>
28
- <div
29
- :class="[
30
- 'custom-timespan-settings-container',
31
- { active: localSelectedTimespanLocal === 'custom_interval' },
32
- ]"
33
- >
34
- <table>
35
- <tbody>
36
- <tr>
37
- <td class="relative">
38
- <input
39
- id="custom-time-lastInput"
40
- v-model="localPeriodTypeLocal"
41
- data-id="custom-time-lastInput"
42
- type="radio"
43
- value="last"
44
- class="custom-radio-button"
45
- name="lastFrom"
46
- />
47
- <label
48
- for="custom-time-lastInput"
49
- class="custom-radio-label"
50
- >
51
- {{ props.periodTypeText }}:
52
- </label>
53
- </td>
54
- <td>
55
- <div
56
- :class="[
57
- 'custom-timespan-type-last-container',
58
- { active: localPeriodTypeLocal === 'last' },
59
- ]"
60
- >
61
- <input
62
- id="chart-option-setting-row"
63
- v-model="localLastLocal"
64
- data-id="chart-option-setting-row"
65
- type="number"
66
- class="chart-option-setting-row custom-time-input"
67
- />
68
- <div
69
- class="chart-option-setting-row custom-time-input inline-block"
70
- >
71
- <div
72
- class="view-select-label horizontal-flex-container"
73
- >
74
- <div class="select">
75
- <select
76
- id="chart-timespan-type-select"
77
- v-model="localSelectedCustomTimeLocal"
78
- data-id="chart-timespan-type-select"
79
- >
80
- <option
81
- v-for="(item, index) in props.customTimeOptions"
82
- :key="index"
83
- :value="item.value"
84
- >
85
- {{ item.text }}
86
- </option>
87
- </select>
88
- </div>
89
- </div>
90
- </div>
91
- </div>
92
- </td>
93
- </tr>
94
- <tr>
95
- <td class="relative">
96
- <input
97
- id="custom-time-fromInput"
98
- v-model="localPeriodTypeLocal"
99
- data-id="custom-time-from-input"
100
- type="radio"
101
- value="period"
102
- class="custom-radio-button"
103
- name="lastFrom"
104
- />
105
- <label
106
- for="custom-time-fromInput"
107
- class="custom-radio-label text-capitalize text-right"
108
- >{{ localization.common.from2 }}:
109
- </label>
110
- </td>
111
- <td>
112
- <div
113
- :class="[
114
- 'date-container-row disabled-container calendar-date-row',
115
- { active: localPeriodTypeLocal === 'period' },
116
- ]"
117
- >
118
- <input
119
- id="current-date-from"
120
- v-model.lazy="localCurrentDateFromLocal"
121
- data-id="current-date-from-input"
122
- type="text"
123
- class="chart-option-setting-row custom-time-input first-from"
124
- />
125
- <div class="section-datepicker">
126
- <atoms-datepicker
127
- v-model="dateFromLocal"
128
- :lang="props.language"
129
- class="calendar-from calendar-popup btn-show-hide-calendar"
130
- @update="emits('update-date-from', $event)"
131
- />
132
- </div>
133
- <input
134
- id="current-time-from"
135
- v-model="currentTimeFromLocal"
136
- data-id="current-time-from-input"
137
- type="text"
138
- class="chart-option-setting-row custom-time-input"
139
- />
140
- </div>
141
- </td>
142
- </tr>
143
- <tr>
144
- <td class="custom-time-label-text text-right">
145
- {{ localization.common.to2 }}:
146
- </td>
147
- <td>
148
- <div
149
- :class="[
150
- 'date-container-row disabled-container calendar-date-row',
151
- { active: localPeriodTypeLocal === 'period' },
152
- ]"
153
- >
154
- <input
155
- id="current-date-to"
156
- v-model.lazy="currentDateToLocal"
157
- data-id="current-date-to-input"
158
- type="text"
159
- class="chart-option-setting-row custom-time-input first-to"
160
- />
161
- <div class="section-datepicker">
162
- <atoms-datepicker
163
- v-model="dateToLocal"
164
- :lang="props.language"
165
- class="calendar-from calendar-popup btn-show-hide-calendar"
166
- @update="emits('update-date-to', $event)"
167
- />
168
- </div>
169
- <input
170
- id="current-time-to"
171
- v-model="currentTimeToLocal"
172
- data-id="current-time-to-input"
173
- type="text"
174
- class="chart-option-setting-row custom-time-input"
175
- />
176
- </div>
177
- </td>
178
- </tr>
179
- <tr>
180
- <td></td>
181
- <td
182
- :class="[
183
- 'disabled-container',
184
- { active: localPeriodTypeLocal === 'period' },
185
- ]"
186
- >
187
- <span>
188
- ({{ localization.inventoryMonitor.isoTimeFormat }})
189
- </span>
190
- </td>
191
- </tr>
192
- </tbody>
193
- </table>
194
- </div>
195
- </div>
196
- </div>
197
- <div class="horizontal-flex-container chart-type-container">
198
- <div class="view-select-label horizontal-flex-container">
199
- <label for="chart-type-select" class="label-select"
200
- >{{ localization.inventoryMonitor.chartType }}:</label
201
- >
202
- <div class="select">
203
- <select
204
- id="chart-type-select"
205
- v-model="chartTypeLocal"
206
- data-id="chart-type-select"
207
- >
208
- <option
209
- v-for="(item, index) in props.chartTypeOptions"
210
- :key="index"
211
- :value="item.value"
212
- >
213
- {{ item.text }}
214
- </option>
215
- </select>
216
- </div>
217
- </div>
218
- </div>
219
- </div>
220
- </div>
221
- </template>
222
-
223
- <script setup lang="ts">
224
- import type { UI_I_Localization } from '~/lib/models/interfaces'
225
- import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
226
-
227
- const localSelectedTimespanLocal = defineModel<string>(
228
- 'localSelectedTimespan',
229
- { required: true }
230
- )
231
- const localPeriodTypeLocal = defineModel<string>('localPeriodType', {
232
- required: true,
233
- })
234
- const localLastLocal = defineModel<number>('localLast', {
235
- required: true,
236
- })
237
- const localSelectedCustomTimeLocal = defineModel<string>(
238
- 'localSelectedCustomTime',
239
- {
240
- required: true,
241
- }
242
- )
243
- const localCurrentDateFromLocal = defineModel<string>('localCurrentDateFrom', {
244
- required: true,
245
- })
246
- const dateFromLocal = defineModel<number>('dateFrom', {
247
- required: true,
248
- })
249
- const currentDateToLocal = defineModel<string>('currentDateTo', {
250
- required: true,
251
- })
252
- const dateToLocal = defineModel<number>('dateTo', {
253
- required: true,
254
- })
255
- const currentTimeToLocal = defineModel<string>('currentTimeTo', {
256
- required: true,
257
- })
258
- const currentTimeFromLocal = defineModel<string>('currentTimeFrom', {
259
- required: true,
260
- })
261
- const chartTypeLocal = defineModel<string>('chartType', {
262
- required: true,
263
- })
264
-
265
- const props = defineProps<{
266
- timespanOptions: UI_I_OptionItem[]
267
- periodTypeText: string
268
- customTimeOptions: UI_I_OptionItem[]
269
- language: string
270
- chartTypeOptions: UI_I_OptionItem[]
271
- }>()
272
-
273
- const emits = defineEmits<{
274
- (event: 'update-date-from', value: number): void
275
- (event: 'update-date-to', value: number): void
276
- }>()
277
-
278
- const localization = computed<UI_I_Localization>(() => useLocal())
279
- </script>
280
-
281
- <style scoped lang="scss">
282
- .chart-option-timespan-split {
283
- overflow-x: auto;
284
- padding: 5px;
285
-
286
- .timespan-objects-section-direction {
287
- display: flex;
288
- flex-direction: row;
289
- align-items: flex-start;
290
-
291
- .chart-option-timespan-settings {
292
- margin-left: 15px;
293
-
294
- .chart-option-setting-row {
295
- width: 150px;
296
- margin-bottom: 5px;
297
- }
298
-
299
- .custom-radio-button {
300
- position: absolute;
301
- opacity: 0;
302
-
303
- &:checked + .custom-radio-label:before {
304
- box-shadow: inset 0 0 0 6px #0079b8;
305
- border: none;
306
- }
307
- }
308
- .custom-radio-label {
309
- display: block;
310
- position: relative;
311
- min-height: 19.2px;
312
- padding-left: 23px;
313
- cursor: pointer;
314
- line-height: 19.2px;
315
- //color: #454545;
316
-
317
- &:before {
318
- position: absolute;
319
- top: 3px;
320
- left: 0;
321
- content: '';
322
- display: inline-block;
323
- height: 16px;
324
- width: 16px;
325
- border: 0.8px solid #565656;
326
- border-radius: 50%;
327
- }
328
- }
329
-
330
- .calendar-date-row {
331
- display: flex;
332
- align-items: center;
333
-
334
- .custom-time-input.first-from,
335
- .custom-time-input.first-to {
336
- max-width: 114px;
337
- }
338
- .btn-show-hide-calendar {
339
- margin: 0 9px;
340
- cursor: pointer;
341
- }
342
- }
343
-
344
- .custom-time-input {
345
- margin-left: 8px;
346
- margin-right: 8px;
347
- max-width: 140px;
348
- }
349
- }
350
-
351
- .custom-timespan-settings-container:not(.active),
352
- .custom-timespan-type-last-container:not(.active),
353
- .disabled-container:not(.active) {
354
- opacity: 0.6;
355
- pointer-events: none;
356
- }
357
- }
358
-
359
- .chart-type-container {
360
- margin-top: 15px;
361
-
362
- .horizontal-flex-container {
363
- display: flex;
364
- flex-direction: row;
365
-
366
- .select {
367
- margin-left: 15px;
368
- }
369
- }
370
- }
371
- }
372
- </style>
@@ -1,190 +0,0 @@
1
- <template>
2
- <ui-modal
3
- :subtitle="localization.common.default"
4
- :texts="modalTexts"
5
- test-id="modal-main-small"
6
- size="xl"
7
- @hide="emits('hide-main-modal')"
8
- @submit="emits('submit-main-modal')"
9
- >
10
- <template #headerContent>
11
- {{ localization.inventoryMonitor.chartOptions }}
12
- </template>
13
- <template #content>
14
- <div class="chart-options-modal">
15
- <common-monitor-advanced-tools-chart-options-modal-notification
16
- v-show="props.isShowAlerts"
17
- :alerts="props.alerts"
18
- @remove="emits('remove-alerts')"
19
- />
20
-
21
- <common-monitor-advanced-tools-chart-options-modal-actions
22
- :is-disabled-save="!selectedRowsLocal.length"
23
- :options-names="props.optionsNames"
24
- :selected-chart-option-name="props.localSelectedChartOptionName"
25
- @save="emits('save-options', $event)"
26
- @check-validation="emits('check-validations')"
27
- @select-local-option-name="emits('select-local-option-name', $event)"
28
- @delete-chart-name="emits('delete-chart-name', $event)"
29
- />
30
-
31
- <p class="title-details">{{ localization.common.details }}</p>
32
- <div class="bottom-container">
33
- <common-monitor-advanced-tools-chart-options-modal-metrics
34
- v-model:selected-metric="localSelectedMetricLocal"
35
- :metrics-items="props.metricsItems"
36
- />
37
- <common-monitor-advanced-tools-chart-options-modal-counters
38
- :chart="localSelectedMetricLocal"
39
- :language="props.language"
40
- :type="props.type"
41
- :selected-keys="props.localSelectedCountersKeys"
42
- :selected-chart-type="props.localSelectedChartType"
43
- :selected-timespan-type="props.localSelectedTimespanType"
44
- :units-count="props.localUnitsCount"
45
- :period-type="localPeriodTypeLocal"
46
- :selected-custom-time="customTimeLocal"
47
- :custom-date-from="props.customDateFrom"
48
- :custom-date-to="props.customDateTo"
49
- :custom-time-from="props.customTimeFrom"
50
- :custom-time-to="props.customTimeTo"
51
- :total-cores="props.totalCores"
52
- :host-id="props.hostId"
53
- :selected-metrics-keys="props.selectedMetricsKeys"
54
- :selected-objects="props.selectedObjects"
55
- :objects-loading="props.objectsLoading"
56
- :objects-data="props.objectsData"
57
- :valid-date-end="props.validDateEnd"
58
- @select-row="selectedRowsLocal = $event"
59
- @update-chart-type="localSelectedChartTypeLocal = $event"
60
- @update-custom-time="customTimeLocal = $event"
61
- @update-timespan-type="timespanTypeLocal = $event"
62
- @update-unit-count="unitCountLocal = $event"
63
- @update-period-type="localPeriodTypeLocal = $event"
64
- @update-custom-date-from="emits('update-custom-date-from', $event)"
65
- @update-custom-date-to="emits('update-custom-date-to', $event)"
66
- @update-custom-time-from="emits('update-custom-time-from', $event)"
67
- @update-custom-time-to="emits('update-custom-time-to', $event)"
68
- @select-objects="emits('local-selected-objects', $event)"
69
- />
70
- </div>
71
- </div>
72
- </template>
73
- <template #footerLeftContent><span></span></template>
74
- </ui-modal>
75
- </template>
76
-
77
- <script setup lang="ts">
78
- import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
79
- import type { UI_I_Localization } from '~/lib/models/interfaces'
80
- import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
81
- import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
82
- import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
83
- import type {
84
- UI_T_ChartHost,
85
- UI_T_ChartVm,
86
- } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
87
- import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
88
-
89
- const props = defineProps<{
90
- type: UI_T_AdvancedType
91
- language: string
92
- optionsNames: string[]
93
- localSelectedChartOptionName: string
94
- customDateFrom: string
95
- customDateTo: string
96
- customTimeFrom: string
97
- customTimeTo: string
98
- totalCores: number
99
- hostId: string
100
- selectedObjects: string
101
- objectsLoading: boolean
102
- objectsData: UI_I_ObjectItem[]
103
- validDateEnd: number
104
- isDisabledSubmit: boolean
105
- isShowAlerts: boolean
106
- alerts: string[]
107
- metricsItems: UI_I_VerticalTabs[]
108
- localSelectedCountersKeys: number[]
109
- localSelectedChartType: string
110
- localSelectedTimespanType: string
111
- localUnitsCount: number
112
- selectedMetricsKeys: number[]
113
- }>()
114
-
115
- const selectedRowsLocal = defineModel<UI_I_AdvancedCounterItem[]>(
116
- 'selectedRows',
117
- { required: true }
118
- )
119
- const localSelectedMetricLocal = defineModel<UI_T_ChartHost | UI_T_ChartVm>(
120
- 'selectedMetricLocal',
121
- { required: true }
122
- )
123
- const localPeriodTypeLocal = defineModel<string>('localPeriodType', {
124
- required: true,
125
- })
126
- const customTimeLocal = defineModel<string>('localCustomTime', {
127
- required: true,
128
- })
129
- const localSelectedChartTypeLocal = defineModel<string>(
130
- 'selectedChartTypeLocal',
131
- {
132
- required: true,
133
- }
134
- )
135
- const timespanTypeLocal = defineModel<string>('timespanType', {
136
- required: true,
137
- })
138
- const unitCountLocal = defineModel<number>('unitCount', {
139
- required: true,
140
- })
141
-
142
- const emits = defineEmits<{
143
- (event: 'hide-main-modal'): void
144
- (event: 'submit-main-modal'): void
145
- (event: 'remove-alerts'): void
146
- (event: 'save-options', value: string): void
147
- (event: 'check-validations'): void
148
- (event: 'select-local-option-name', value: string): void
149
- (event: 'delete-chart-name', value: string): void
150
- (event: 'update-custom-date-from', value: string): void
151
- (event: 'update-custom-date-to', value: string): void
152
- (event: 'update-custom-time-from', value: string): void
153
- (event: 'update-custom-time-to', value: string): void
154
- (event: 'local-selected-objects', value: string): void
155
- }>()
156
-
157
- const localization = computed<UI_I_Localization>(() => useLocal())
158
-
159
- const modalTexts = ref<UI_I_ModalTexts>({
160
- button1: localization.value.common.decline,
161
- button2: localization.value.common.select,
162
- })
163
- </script>
164
-
165
- <style>
166
- :root {
167
- --chart-options-details-title-color: #4d5d69;
168
- }
169
- :root.dark-theme {
170
- --chart-options-details-title-color: #e9eaec;
171
- }
172
- </style>
173
- <style scoped lang="scss">
174
- .chart-options-modal {
175
- margin: 16px 32px;
176
-
177
- .title-details {
178
- font-weight: 500;
179
- font-size: 16px;
180
- color: var(--chart-options-details-title-color);
181
- margin-top: 24px;
182
- margin-bottom: 16px;
183
- }
184
- .bottom-container {
185
- display: grid;
186
- grid-template-columns: 216px 1fr;
187
- grid-gap: 12px;
188
- }
189
- }
190
- </style>