bfg-common 1.5.19 → 1.5.20

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 (37) hide show
  1. package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
  2. package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
  3. package/assets/img/icons/icons-sprite-light-3.svg +227 -227
  4. package/assets/img/icons/icons-sprite-light-5.svg +488 -488
  5. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  6. package/components/common/browse/lib/models/interfaces.ts +5 -5
  7. package/components/common/chartOptionsModal/counters/timespan/form/Form.vue +97 -97
  8. package/components/common/chartOptionsModal/counters/timespan/form/Form.vue~ +281 -0
  9. package/components/common/diagramMain/adapter/AdapterItems.vue +61 -61
  10. package/components/common/diagramMain/lib/config/initial.ts +50 -50
  11. package/components/common/diagramMain/lib/models/types.ts +21 -21
  12. package/components/common/diagramMain/lib/utils/utils.ts +331 -331
  13. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +330 -330
  14. package/components/common/diagramMain/modals/editSettings/ConfirmTeamingSettingsModal.vue +40 -40
  15. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +497 -497
  16. package/components/common/diagramMain/modals/editSettings/EditSettingsModal.vue +812 -812
  17. package/components/common/diagramMain/modals/editSettings/tabs/NetworkProperties.vue +214 -214
  18. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +189 -189
  19. package/components/common/diagramMain/modals/editSettings/tabs/SwitchProperties.vue +163 -163
  20. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +175 -175
  21. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +346 -346
  22. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +205 -205
  23. package/components/common/diagramMain/modals/lib/config/initial.ts +180 -180
  24. package/components/common/diagramMain/modals/lib/config/vmKernelAdapter.ts +90 -90
  25. package/components/common/diagramMain/modals/lib/mappers/mappers.ts +87 -87
  26. package/components/common/diagramMain/modals/lib/utils/index.ts +24 -24
  27. package/components/common/diagramMain/modals/migrateVmkernelAdapter/lib/config/steps.ts +114 -114
  28. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/ConnectionSettings.vue +169 -169
  29. package/components/common/diagramMain/modals/migrateVmkernelAdapter/steps/SelectVmkernelAdapter.vue +159 -159
  30. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/common.ts +14 -14
  31. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/connectionSettings.ts +137 -137
  32. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/selectVmkernelAdapter.ts +52 -52
  33. package/components/common/diagramMain/modals/migrateVmkernelAdapter/validations/validations.ts +19 -19
  34. package/components/common/diagramMain/port/Ports.vue +47 -47
  35. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +1040 -1040
  36. package/package.json +1 -1
  37. package/package.json~ +42 -0
@@ -1 +1 @@
1
- export type UI_T_BlocksWidth = [number, number, number]
1
+ export type UI_T_BlocksWidth = [number, number, number]
@@ -1,5 +1,5 @@
1
- export interface UI_I_FileInfo {
2
- type: string
3
- title: string
4
- value: string | number
5
- }
1
+ export interface UI_I_FileInfo {
2
+ type: string
3
+ title: string
4
+ value: string | number
5
+ }
@@ -1,43 +1,43 @@
1
1
  <template>
2
2
  <common-chart-options-modal-counters-timespan-form-new
3
- v-if="isNewView"
4
- v-model:local-selected-timespan="localSelectedTimespan"
5
- v-model:local-period-type="localPeriodType"
6
- v-model:local-last="localLast"
7
- v-model:local-selected-custom-time="localSelectedCustomTime"
8
- v-model:local-current-date-from="localCurrentDateFrom"
9
- v-model:current-time-from="currentTimeFrom"
10
- v-model:current-time-to="currentTimeTo"
11
- v-model:current-date-to="currentDateTo"
12
- :timespan-options="timespanOptions"
13
- :custom-time-options="customTimeOptions"
14
- :language="props.language"
15
- :error-last-input="props.errorLastInput"
16
- :error-date-from="props.errorDateFrom"
17
- :error-time-from="props.errorTimeFrom"
18
- :error-date-to="props.errorDateTo"
19
- :error-time-to="props.errorTimeTo"
3
+ v-if="isNewView"
4
+ v-model:local-selected-timespan="localSelectedTimespan"
5
+ v-model:local-period-type="localPeriodType"
6
+ v-model:local-last="localLast"
7
+ v-model:local-selected-custom-time="localSelectedCustomTime"
8
+ v-model:local-current-date-from="localCurrentDateFrom"
9
+ v-model:current-time-from="currentTimeFrom"
10
+ v-model:current-time-to="currentTimeTo"
11
+ v-model:current-date-to="currentDateTo"
12
+ :timespan-options="timespanOptions"
13
+ :custom-time-options="customTimeOptions"
14
+ :language="props.language"
15
+ :error-last-input="props.errorLastInput"
16
+ :error-date-from="props.errorDateFrom"
17
+ :error-time-from="props.errorTimeFrom"
18
+ :error-date-to="props.errorDateTo"
19
+ :error-time-to="props.errorTimeTo"
20
20
  />
21
21
  <common-chart-options-modal-counters-timespan-form-old
22
- v-else
23
- v-model:local-selected-timespan="localSelectedTimespan"
24
- v-model:local-period-type="localPeriodType"
25
- v-model:local-last="localLast"
26
- v-model:local-selected-custom-time="localSelectedCustomTime"
27
- v-model:local-current-date-from="localCurrentDateFrom"
28
- v-model:date-from="dateFrom"
29
- v-model:current-date-to="currentDateTo"
30
- v-model:date-to="dateTo"
31
- v-model:current-time-to="currentTimeTo"
32
- v-model:chart-type="chartType"
33
- :timespan-options="timespanOptions"
34
- :period-type-text="periodTypeText"
35
- :custom-time-options="customTimeOptions"
36
- :language="props.language"
37
- :current-time-from="currentTimeFrom"
38
- :chart-type-options="chartTypeOptions"
39
- @update-date-from="onUpdateDateFrom"
40
- @update-date-to="onUpdateDateTo"
22
+ v-else
23
+ v-model:local-selected-timespan="localSelectedTimespan"
24
+ v-model:local-period-type="localPeriodType"
25
+ v-model:local-last="localLast"
26
+ v-model:local-selected-custom-time="localSelectedCustomTime"
27
+ v-model:local-current-date-from="localCurrentDateFrom"
28
+ v-model:date-from="dateFrom"
29
+ v-model:current-date-to="currentDateTo"
30
+ v-model:date-to="dateTo"
31
+ v-model:current-time-from="currentTimeFrom"
32
+ v-model:current-time-to="currentTimeTo"
33
+ v-model:chart-type="chartType"
34
+ :timespan-options="timespanOptions"
35
+ :period-type-text="periodTypeText"
36
+ :custom-time-options="customTimeOptions"
37
+ :language="props.language"
38
+ :chart-type-options="chartTypeOptions"
39
+ @update-date-from="onUpdateDateFrom"
40
+ @update-date-to="onUpdateDateTo"
41
41
  />
42
42
  </template>
43
43
 
@@ -83,64 +83,64 @@ const emits = defineEmits<{
83
83
  }>()
84
84
 
85
85
  const { $store, $formattedDate, $isDate, $getTimeFormat, $getUnixByDate }: any =
86
- useNuxtApp()
86
+ useNuxtApp()
87
87
 
88
88
  const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
89
89
 
90
90
  const localization = computed<UI_I_Localization>(() => useLocal())
91
91
 
92
92
  const timespanOptions = computed<UI_I_OptionItem[]>(() =>
93
- timespanFunc(localization.value)
93
+ timespanFunc(localization.value)
94
94
  )
95
95
  const localSelectedTimespan = ref<string>(
96
- props.selectedTimespanType || timespanOptions.value[0].value
96
+ props.selectedTimespanType || timespanOptions.value[0].value
97
97
  )
98
98
  watch(
99
- () => props.selectedTimespanType,
100
- (newValue) => {
101
- localSelectedTimespan.value = newValue || timespanOptions.value[0].value
102
- }
99
+ () => props.selectedTimespanType,
100
+ (newValue) => {
101
+ localSelectedTimespan.value = newValue || timespanOptions.value[0].value
102
+ }
103
103
  )
104
104
  const localPeriodType = ref<string>('last')
105
105
  watch(
106
- () => props.periodType,
107
- (newValue) => {
108
- localPeriodType.value = newValue || 'last'
109
- },
110
- { immediate: true }
106
+ () => props.periodType,
107
+ (newValue) => {
108
+ localPeriodType.value = newValue || 'last'
109
+ },
110
+ { immediate: true }
111
111
  )
112
112
 
113
113
  watch(
114
- localSelectedTimespan,
115
- (newValue) => {
116
- emits('update-timespan-type', newValue)
117
- },
118
- { immediate: true }
114
+ localSelectedTimespan,
115
+ (newValue) => {
116
+ emits('update-timespan-type', newValue)
117
+ },
118
+ { immediate: true }
119
119
  )
120
120
 
121
121
  watch(
122
- localPeriodType,
123
- (newValue) => {
124
- const currentValue = newValue || 'period'
125
- emits('update-period-type', currentValue)
126
- },
127
- { immediate: true }
122
+ localPeriodType,
123
+ (newValue) => {
124
+ const currentValue = newValue || 'period'
125
+ emits('update-period-type', currentValue)
126
+ },
127
+ { immediate: true }
128
128
  )
129
129
 
130
130
  const localLast = ref<number>(1)
131
131
  watch(
132
- localLast,
133
- (newValue) => {
134
- emits('update-unit-count', newValue)
135
- },
136
- { immediate: true }
132
+ localLast,
133
+ (newValue) => {
134
+ emits('update-unit-count', newValue)
135
+ },
136
+ { immediate: true }
137
137
  )
138
138
  watch(
139
- () => props.unitsCount,
140
- (newValue) => {
141
- localLast.value = newValue > 0 ? newValue : 1
142
- },
143
- { immediate: true }
139
+ () => props.unitsCount,
140
+ (newValue) => {
141
+ localLast.value = newValue > 0 ? newValue : 1
142
+ },
143
+ { immediate: true }
144
144
  )
145
145
 
146
146
  const localSelectedCustomTime = ref<string>('hours')
@@ -150,23 +150,23 @@ const customTimeOptions = computed<UI_I_OptionItem[]>(() => {
150
150
  return customTimeFunc(localization.value, localLast.value, lang)
151
151
  })
152
152
  watch(
153
- () => props.selectedCustomTime,
154
- (newValue) => {
155
- localSelectedCustomTime.value = newValue || 'hours'
156
- },
157
- { immediate: true }
153
+ () => props.selectedCustomTime,
154
+ (newValue) => {
155
+ localSelectedCustomTime.value = newValue || 'hours'
156
+ },
157
+ { immediate: true }
158
158
  )
159
159
  watch(
160
- localSelectedCustomTime,
161
- (newValue) => {
162
- emits('update-custom-time', newValue)
163
- },
164
- { immediate: true }
160
+ localSelectedCustomTime,
161
+ (newValue) => {
162
+ emits('update-custom-time', newValue)
163
+ },
164
+ { immediate: true }
165
165
  )
166
166
 
167
167
  const chartType = ref<string>('line_graph')
168
168
  const chartTypeOptions = computed<UI_I_OptionItem[]>(() =>
169
- chartTypeFunc(localization.value)
169
+ chartTypeFunc(localization.value)
170
170
  )
171
171
 
172
172
  const periodTypeText = computed<string>(() => {
@@ -202,24 +202,24 @@ const setCurrentChartType = (): void => {
202
202
  }
203
203
 
204
204
  watch(
205
- () => props.selectedChartType,
206
- () => {
207
- setCurrentChartType()
208
- },
209
- { immediate: true }
205
+ () => props.selectedChartType,
206
+ () => {
207
+ setCurrentChartType()
208
+ },
209
+ { immediate: true }
210
210
  )
211
211
 
212
212
  watch(
213
- chartType,
214
- (newValue) => {
215
- let currentValue = 'spline'
213
+ chartType,
214
+ (newValue) => {
215
+ let currentValue = 'spline'
216
216
 
217
- if (newValue === 'line_graph') currentValue = 'spline'
218
- else if (newValue === 'stacked_graph') currentValue = 'area'
217
+ if (newValue === 'line_graph') currentValue = 'spline'
218
+ else if (newValue === 'stacked_graph') currentValue = 'area'
219
219
 
220
- emits('update-chart-type', currentValue)
221
- },
222
- { immediate: true }
220
+ emits('update-chart-type', currentValue)
221
+ },
222
+ { immediate: true }
223
223
  )
224
224
 
225
225
  const yesterday = new Date().setDate(new Date().getDate() - 1)
@@ -233,14 +233,14 @@ const currentTimeTo = ref<string>('')
233
233
 
234
234
  const getCurrentTime = (): void => {
235
235
  localCurrentDateFrom.value =
236
- props.customDateFrom || $formattedDate(yesterday, '')
236
+ props.customDateFrom || $formattedDate(yesterday, '')
237
237
  currentDateTo.value =
238
- props.customDateTo || $formattedDate(props.validDateEnd, '')
238
+ props.customDateTo || $formattedDate(props.validDateEnd, '')
239
239
 
240
240
  currentTimeFrom.value =
241
- props.customTimeFrom || format(new Date(), $getTimeFormat(true))
241
+ props.customTimeFrom || format(new Date(), $getTimeFormat(true))
242
242
  currentTimeTo.value =
243
- props.customTimeTo || format(props.validDateEnd, $getTimeFormat(true))
243
+ props.customTimeTo || format(props.validDateEnd, $getTimeFormat(true))
244
244
  }
245
245
 
246
246
  const onUpdateDateFrom = (value: number): void => {
@@ -0,0 +1,281 @@
1
+ <template>
2
+ <common-chart-options-modal-counters-timespan-form-new
3
+ v-if="isNewView"
4
+ v-model:local-selected-timespan="localSelectedTimespan"
5
+ v-model:local-period-type="localPeriodType"
6
+ v-model:local-last="localLast"
7
+ v-model:local-selected-custom-time="localSelectedCustomTime"
8
+ v-model:local-current-date-from="localCurrentDateFrom"
9
+ v-model:current-time-from="currentTimeFrom"
10
+ v-model:current-time-to="currentTimeTo"
11
+ v-model:current-date-to="currentDateTo"
12
+ :timespan-options="timespanOptions"
13
+ :custom-time-options="customTimeOptions"
14
+ :language="props.language"
15
+ :error-last-input="props.errorLastInput"
16
+ :error-date-from="props.errorDateFrom"
17
+ :error-time-from="props.errorTimeFrom"
18
+ :error-date-to="props.errorDateTo"
19
+ :error-time-to="props.errorTimeTo"
20
+ />
21
+ <common-chart-options-modal-counters-timespan-form-old
22
+ v-else
23
+ v-model:local-selected-timespan="localSelectedTimespan"
24
+ v-model:local-period-type="localPeriodType"
25
+ v-model:local-last="localLast"
26
+ v-model:local-selected-custom-time="localSelectedCustomTime"
27
+ v-model:local-current-date-from="localCurrentDateFrom"
28
+ v-model:date-from="dateFrom"
29
+ v-model:current-date-to="currentDateTo"
30
+ v-model:date-to="dateTo"
31
+ v-model:current-time-to="currentTimeTo"
32
+ v-model:chart-type="chartType"
33
+ :timespan-options="timespanOptions"
34
+ :period-type-text="periodTypeText"
35
+ :custom-time-options="customTimeOptions"
36
+ :language="props.language"
37
+ :current-time-from="currentTimeFrom"
38
+ :chart-type-options="chartTypeOptions"
39
+ @update-date-from="onUpdateDateFrom"
40
+ @update-date-to="onUpdateDateTo"
41
+ />
42
+ </template>
43
+
44
+ <script setup lang="ts">
45
+ import { format } from 'date-fns'
46
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
47
+ import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
48
+ import {
49
+ timespanFunc,
50
+ customTimeFunc,
51
+ chartTypeFunc,
52
+ } from '~/components/common/chartOptionsModal/counters/timespan/form/lib/config/dateForm'
53
+
54
+ const props = defineProps<{
55
+ language: string
56
+ selectedChartType: string
57
+ selectedTimespanType: string
58
+ unitsCount: number
59
+ periodType: string
60
+ selectedCustomTime: string
61
+ customDateFrom: string
62
+ customDateTo: string
63
+ customTimeFrom: string
64
+ customTimeTo: string
65
+ validDateEnd: number
66
+ errorLastInput?: string
67
+ errorDateFrom?: string
68
+ errorTimeFrom?: string
69
+ errorDateTo?: string
70
+ errorTimeTo?: string
71
+ }>()
72
+
73
+ const emits = defineEmits<{
74
+ (event: 'update-chart-type', value: string): void
75
+ (event: 'update-custom-time', value: string): void
76
+ (event: 'update-timespan-type', value: string): void
77
+ (event: 'update-unit-count', value: number): void
78
+ (event: 'update-period-type', value: string): void
79
+ (event: 'update-custom-date-from', value: string): void
80
+ (event: 'update-custom-date-to', value: string): void
81
+ (event: 'update-custom-time-from', value: string): void
82
+ (event: 'update-custom-time-to', value: string): void
83
+ }>()
84
+
85
+ const { $store, $formattedDate, $isDate, $getTimeFormat, $getUnixByDate }: any =
86
+ useNuxtApp()
87
+
88
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
89
+
90
+ const localization = computed<UI_I_Localization>(() => useLocal())
91
+
92
+ const timespanOptions = computed<UI_I_OptionItem[]>(() =>
93
+ timespanFunc(localization.value)
94
+ )
95
+ const localSelectedTimespan = ref<string>(
96
+ props.selectedTimespanType || timespanOptions.value[0].value
97
+ )
98
+ watch(
99
+ () => props.selectedTimespanType,
100
+ (newValue) => {
101
+ localSelectedTimespan.value = newValue || timespanOptions.value[0].value
102
+ }
103
+ )
104
+ const localPeriodType = ref<string>('last')
105
+ watch(
106
+ () => props.periodType,
107
+ (newValue) => {
108
+ localPeriodType.value = newValue || 'last'
109
+ },
110
+ { immediate: true }
111
+ )
112
+
113
+ watch(
114
+ localSelectedTimespan,
115
+ (newValue) => {
116
+ emits('update-timespan-type', newValue)
117
+ },
118
+ { immediate: true }
119
+ )
120
+
121
+ watch(
122
+ localPeriodType,
123
+ (newValue) => {
124
+ const currentValue = newValue || 'period'
125
+ emits('update-period-type', currentValue)
126
+ },
127
+ { immediate: true }
128
+ )
129
+
130
+ const localLast = ref<number>(1)
131
+ watch(
132
+ localLast,
133
+ (newValue) => {
134
+ emits('update-unit-count', newValue)
135
+ },
136
+ { immediate: true }
137
+ )
138
+ watch(
139
+ () => props.unitsCount,
140
+ (newValue) => {
141
+ localLast.value = newValue > 0 ? newValue : 1
142
+ },
143
+ { immediate: true }
144
+ )
145
+
146
+ const localSelectedCustomTime = ref<string>('hours')
147
+ const customTimeOptions = computed<UI_I_OptionItem[]>(() => {
148
+ const lang = useLocalStorage('lang')
149
+
150
+ return customTimeFunc(localization.value, localLast.value, lang)
151
+ })
152
+ watch(
153
+ () => props.selectedCustomTime,
154
+ (newValue) => {
155
+ localSelectedCustomTime.value = newValue || 'hours'
156
+ },
157
+ { immediate: true }
158
+ )
159
+ watch(
160
+ localSelectedCustomTime,
161
+ (newValue) => {
162
+ emits('update-custom-time', newValue)
163
+ },
164
+ { immediate: true }
165
+ )
166
+
167
+ const chartType = ref<string>('line_graph')
168
+ const chartTypeOptions = computed<UI_I_OptionItem[]>(() =>
169
+ chartTypeFunc(localization.value)
170
+ )
171
+
172
+ const periodTypeText = computed<string>(() => {
173
+ let text = ''
174
+ const lang = useLocalStorage('lang')
175
+
176
+ if (lang !== 'ru_RU') text = localization.value.common.last
177
+ else text = getCorrectRuPeriodTypeText(localLast.value)
178
+
179
+ return text
180
+ })
181
+
182
+ const getCorrectRuPeriodTypeText = (hours: number): string => {
183
+ let prefix: string
184
+
185
+ if (!hours) return getCorrectRuPeriodTypeText.prefix
186
+
187
+ if (hours % 10 === 1 && hours % 100 !== 11) prefix = 'Последний'
188
+ else prefix = 'Последние'
189
+
190
+ getCorrectRuPeriodTypeText.prefix = prefix
191
+ return prefix
192
+ }
193
+
194
+ const setCurrentChartType = (): void => {
195
+ const selected = props.selectedChartType
196
+ let result = 'line_graph'
197
+
198
+ if (selected === 'spline') result = 'line_graph'
199
+ else if (selected === 'area') result = 'stacked_graph'
200
+
201
+ chartType.value = result
202
+ }
203
+
204
+ watch(
205
+ () => props.selectedChartType,
206
+ () => {
207
+ setCurrentChartType()
208
+ },
209
+ { immediate: true }
210
+ )
211
+
212
+ watch(
213
+ chartType,
214
+ (newValue) => {
215
+ let currentValue = 'spline'
216
+
217
+ if (newValue === 'line_graph') currentValue = 'spline'
218
+ else if (newValue === 'stacked_graph') currentValue = 'area'
219
+
220
+ emits('update-chart-type', currentValue)
221
+ },
222
+ { immediate: true }
223
+ )
224
+
225
+ const yesterday = new Date().setDate(new Date().getDate() - 1)
226
+ const dateFrom = ref<number>(yesterday)
227
+ const dateTo = ref<number>(new Date().getTime())
228
+
229
+ const localCurrentDateFrom = ref<string>('')
230
+ const currentDateTo = ref<string>('')
231
+ const currentTimeFrom = ref<string>('')
232
+ const currentTimeTo = ref<string>('')
233
+
234
+ const getCurrentTime = (): void => {
235
+ localCurrentDateFrom.value =
236
+ props.customDateFrom || $formattedDate(yesterday, '')
237
+ currentDateTo.value =
238
+ props.customDateTo || $formattedDate(props.validDateEnd, '')
239
+
240
+ currentTimeFrom.value =
241
+ props.customTimeFrom || format(new Date(), $getTimeFormat(true))
242
+ currentTimeTo.value =
243
+ props.customTimeTo || format(props.validDateEnd, $getTimeFormat(true))
244
+ }
245
+
246
+ const onUpdateDateFrom = (value: number): void => {
247
+ if (!value) return
248
+
249
+ localCurrentDateFrom.value = $formattedDate(new Date(value), '')
250
+ }
251
+ watch(localCurrentDateFrom, (newValue) => {
252
+ emits('update-custom-date-from', newValue)
253
+ if (!newValue) return
254
+
255
+ if ($isDate(newValue)) dateFrom.value = $getUnixByDate(newValue)
256
+ })
257
+
258
+ const onUpdateDateTo = (value: number): void => {
259
+ if (!value) return
260
+
261
+ currentDateTo.value = $formattedDate(new Date(value), '')
262
+ }
263
+ watch(currentDateTo, (newValue) => {
264
+ emits('update-custom-date-to', newValue)
265
+ if (!newValue) return
266
+
267
+ if ($isDate(newValue)) dateTo.value = $getUnixByDate(newValue)
268
+ })
269
+ watch(currentTimeFrom, (newValue) => {
270
+ emits('update-custom-time-from', newValue)
271
+ })
272
+ watch(currentTimeTo, (newValue) => {
273
+ emits('update-custom-time-to', newValue)
274
+ })
275
+
276
+ onMounted(() => {
277
+ getCurrentTime()
278
+ })
279
+ </script>
280
+
281
+ <style scoped lang="scss"></style>
@@ -1,61 +1,61 @@
1
- <template>
2
- <g data-title="adapter-items-group">
3
- <template v-if="props.adaptersWithPositions.toggle">
4
- <template
5
- v-for="(adapter, key) in props.adaptersWithPositions.adapters"
6
- :key="adapter.id"
7
- >
8
- <common-diagram-main-adapter-item
9
- :adapter="adapter"
10
- :selected-port="props.selectedPort"
11
- :selected-adapter="props.selectedAdapter"
12
- :networks-count="props.networksCount"
13
- :is-dark-mode="props.isDarkMode"
14
- :networks-with-positions="props.networksWithPositions"
15
- @select-adapter="onSelectAdapter"
16
- @show-modal="onShowModal"
17
- />
18
- </template>
19
- </template>
20
- </g>
21
- </template>
22
-
23
- <script setup lang="ts">
24
- import {
25
- UI_I_AdaptersWithPositions,
26
- UI_I_ModalsInitialData,
27
- UI_I_SelectedAdapter,
28
- UI_I_SelectedPort,
29
- UI_I_NetworksWithPositions,
30
- } from '~/components/common/diagramMain/lib/models/interfaces'
31
-
32
- const props = defineProps<{
33
- adaptersWithPositions: UI_I_AdaptersWithPositions
34
- networksWithPositions: UI_I_NetworksWithPositions[]
35
- selectedPort: UI_I_SelectedPort
36
- selectedAdapter: UI_I_SelectedAdapter
37
- networksCount: number
38
- isDarkMode: boolean
39
- }>()
40
-
41
- const emits = defineEmits<{
42
- (event: 'select-adapter', adapterId: string): void
43
- (
44
- event: 'show-modal',
45
- value: string,
46
- properties?: UI_I_ModalsInitialData
47
- ): void
48
- }>()
49
-
50
- const onSelectAdapter = (adapterId: string): void => {
51
- emits('select-adapter', adapterId)
52
- }
53
- const onShowModal = (
54
- value: string,
55
- properties?: UI_I_ModalsInitialData
56
- ): void => {
57
- emits('show-modal', value, properties)
58
- }
59
- </script>
60
-
61
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <g data-title="adapter-items-group">
3
+ <template v-if="props.adaptersWithPositions.toggle">
4
+ <template
5
+ v-for="(adapter, key) in props.adaptersWithPositions.adapters"
6
+ :key="adapter.id"
7
+ >
8
+ <common-diagram-main-adapter-item
9
+ :adapter="adapter"
10
+ :selected-port="props.selectedPort"
11
+ :selected-adapter="props.selectedAdapter"
12
+ :networks-count="props.networksCount"
13
+ :is-dark-mode="props.isDarkMode"
14
+ :networks-with-positions="props.networksWithPositions"
15
+ @select-adapter="onSelectAdapter"
16
+ @show-modal="onShowModal"
17
+ />
18
+ </template>
19
+ </template>
20
+ </g>
21
+ </template>
22
+
23
+ <script setup lang="ts">
24
+ import {
25
+ UI_I_AdaptersWithPositions,
26
+ UI_I_ModalsInitialData,
27
+ UI_I_SelectedAdapter,
28
+ UI_I_SelectedPort,
29
+ UI_I_NetworksWithPositions,
30
+ } from '~/components/common/diagramMain/lib/models/interfaces'
31
+
32
+ const props = defineProps<{
33
+ adaptersWithPositions: UI_I_AdaptersWithPositions
34
+ networksWithPositions: UI_I_NetworksWithPositions[]
35
+ selectedPort: UI_I_SelectedPort
36
+ selectedAdapter: UI_I_SelectedAdapter
37
+ networksCount: number
38
+ isDarkMode: boolean
39
+ }>()
40
+
41
+ const emits = defineEmits<{
42
+ (event: 'select-adapter', adapterId: string): void
43
+ (
44
+ event: 'show-modal',
45
+ value: string,
46
+ properties?: UI_I_ModalsInitialData
47
+ ): void
48
+ }>()
49
+
50
+ const onSelectAdapter = (adapterId: string): void => {
51
+ emits('select-adapter', adapterId)
52
+ }
53
+ const onShowModal = (
54
+ value: string,
55
+ properties?: UI_I_ModalsInitialData
56
+ ): void => {
57
+ emits('show-modal', value, properties)
58
+ }
59
+ </script>
60
+
61
+ <style scoped lang="scss"></style>