bfg-common 1.1.31 → 1.1.32

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 (76) hide show
  1. package/assets/localization/local_be.json +1 -4
  2. package/assets/localization/local_en.json +1 -4
  3. package/assets/localization/local_hy.json +1 -4
  4. package/assets/localization/local_kk.json +1 -4
  5. package/assets/localization/local_ru.json +1 -4
  6. package/assets/localization/local_zh.json +1 -4
  7. package/components/atoms/alert/Notification.vue +167 -167
  8. package/components/atoms/autocomplete/Autocomplete.vue +236 -236
  9. package/components/atoms/datepicker/Datepicker.vue +612 -612
  10. package/components/atoms/list/SelectList.vue +62 -62
  11. package/components/atoms/nav/NavBar.vue +116 -116
  12. package/components/atoms/nav/VerticalNavBar.vue +89 -89
  13. package/components/atoms/notificationBar/NotificationBar.vue +174 -174
  14. package/components/atoms/perPage/PerPage.vue +52 -52
  15. package/components/atoms/popup/SimplePopup.vue +90 -90
  16. package/components/atoms/step/VerticalStep.vue +104 -104
  17. package/components/atoms/switch/Switch.vue +107 -107
  18. package/components/atoms/table/dataGrid/DataGrid.vue +5 -3
  19. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -204
  20. package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
  21. package/components/atoms/tabs/Tabs.vue +189 -189
  22. package/components/atoms/tooltip/Signpost.vue +224 -224
  23. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  24. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  25. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  26. package/components/common/browse/Browse.vue +182 -182
  27. package/components/common/browse/blocks/Title.vue +66 -66
  28. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  29. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  30. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  31. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  32. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  33. package/components/common/diagramMain/network/Contents.vue +238 -238
  34. package/components/common/feedback/Buttons.vue +232 -232
  35. package/components/common/feedback/Message.vue +468 -468
  36. package/components/common/feedback/VisitPortal.vue +54 -54
  37. package/components/common/help/navbar/left/Left.vue +159 -159
  38. package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
  39. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
  40. package/components/common/modals/Confirmation.vue +4 -18
  41. package/components/common/modals/Rename.vue +165 -165
  42. package/components/common/monitor/advanced/Advanced.vue +0 -22
  43. package/components/common/monitor/advanced/tools/Tools.vue +7 -78
  44. package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +9 -218
  45. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +9 -80
  46. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/config/optionsActions.ts +10 -22
  47. package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +4 -27
  48. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +0 -16
  49. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +0 -16
  50. package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +29 -100
  51. package/components/common/monitor/advanced/tools/config/advancedToolbar.ts +3 -29
  52. package/components/common/perPage/PerPage.vue +51 -51
  53. package/components/common/recursionTree/RecursionTree.vue +201 -201
  54. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +445 -445
  55. package/components/common/vm/actions/add/select/storage/config/config.ts +154 -154
  56. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
  57. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  58. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  59. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  60. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  61. package/models/store/interfaces.ts +37 -37
  62. package/models/store/storage/interfaces.ts +32 -32
  63. package/models/store/types.ts +32 -32
  64. package/modules/fixContentBuild/index.ts +92 -92
  65. package/modules/fixContentBuild/utils/methods.ts +114 -114
  66. package/package.json +1 -1
  67. package/public/spice-console/application/codec.js +257 -257
  68. package/public/spice-console/lib/rasterEngine.js +907 -907
  69. package/public/spice-console/network/spicechannel.js +369 -369
  70. package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
  71. package/public/spice-console-minify/lib/jgestures.min.js +24 -24
  72. package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
  73. package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
  74. package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
  75. package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
  76. package/utils/contentBuild.ts +34 -34
@@ -23,8 +23,8 @@
23
23
  <button class="btn btn-outline" @click="onHideModal">
24
24
  {{ localization.cancel }}
25
25
  </button>
26
- <button :class="currentClasses" @click="onApply">
27
- {{ currentText }}
26
+ <button class="btn btn-warning" @click="onRemove">
27
+ {{ localization.remove }}
28
28
  </button>
29
29
  </template>
30
30
  </atoms-modal>
@@ -38,9 +38,8 @@ const props = withDefaults(
38
38
  description: string
39
39
  headline?: string
40
40
  testId?: string
41
- type?: 'confirm' | 'remove'
42
41
  }>(),
43
- { testId: 'common-confirmation', headline: '', type: 'confirm' }
42
+ { testId: 'common-confirmation', headline: '' }
44
43
  )
45
44
  const emits = defineEmits<{
46
45
  (event: 'hide-modal'): void
@@ -49,20 +48,7 @@ const emits = defineEmits<{
49
48
 
50
49
  const localization = computed<UI_I_Localization>(() => useLocal())
51
50
 
52
- const currentClasses = computed<string>(() => {
53
- let result = 'btn '
54
- if (props.type === 'confirm') result += 'btn-primary'
55
- else if (props.type === 'remove') result += 'btn-warning'
56
- return result
57
- })
58
- const currentText = computed<string>(() => {
59
- let result = ''
60
- if (props.type === 'confirm') result = localization.value.ok
61
- else if (props.type === 'remove') result = localization.value.remove
62
- return result
63
- })
64
-
65
- const onApply = (): void => emits('confirm')
51
+ const onRemove = (): void => emits('confirm')
66
52
  const onHideModal = (): void => emits('hide-modal')
67
53
  </script>
68
54
 
@@ -1,165 +1,165 @@
1
- <template>
2
- <atoms-modal
3
- :test-id="`${props.testId}-rename`"
4
- width="576px"
5
- class="rename"
6
- :show="true"
7
- :title="localization.rename"
8
- :second-title="name"
9
- @submit="onRename"
10
- @hide="onHide"
11
- >
12
- <template #modalBody>
13
- <div class="rename__body">
14
- <form
15
- :id="`${props.testId}-rename-form`"
16
- class="clr-form clr-form-horizontal"
17
- @submit.prevent
18
- >
19
- <slot v-if="$slots.description" name="description"></slot>
20
-
21
- <div class="clr-row clr-error clr-form-control">
22
- <label
23
- for="rename"
24
- :class="['clr-control-label', `clr-col-md-${labelWidth}`]"
25
- >{{ labelName }}</label
26
- >
27
- <div class="clr-control-container clr-col-8">
28
- <div class="form-group__input">
29
- <input
30
- id="rename"
31
- v-model="form.name.value"
32
- type="text"
33
- :class="nameErrorText && 'clr-input'"
34
- @blur="initValidation"
35
- @input="initValidation"
36
- />
37
- <div v-show="nameErrorText" class="form-validate">
38
- <atoms-the-icon
39
- class="is-error tooltip-trigger"
40
- name="info"
41
- />
42
- </div>
43
- </div>
44
- <div
45
- v-show="nameErrorText"
46
- class="form-group__input-error clr-subtext"
47
- >
48
- {{ nameErrorText }}
49
- </div>
50
- </div>
51
- </div>
52
- </form>
53
- </div>
54
- </template>
55
- </atoms-modal>
56
- </template>
57
-
58
- <script lang="ts" setup>
59
- import { UI_I_ValidationTouchResult } from '~/models/plugins/validation/interfaces'
60
- import { UI_I_Localization } from '~/models/interfaces'
61
- import { UI_I_RenameForm } from '~/components/common/modals/models/interfaces'
62
- import { defaultFormRenameFunc } from '~/components/common/modals/config/defaultForm'
63
- import { labelWidthFunc } from '~/components/common/modals/config/renameLabelWidth'
64
-
65
- const props = withDefaults(
66
- defineProps<{
67
- testId: string
68
- name: string
69
- label?: string
70
- }>(),
71
- {
72
- label: 'enterNewName',
73
- }
74
- )
75
- const emits = defineEmits<{
76
- (event: 'hide'): void
77
- (event: 'apply-changes', value: string): void
78
- }>()
79
-
80
- const localization = computed<UI_I_Localization>(() => useLocal())
81
- const { $validation } = useNuxtApp()
82
-
83
- const validation = $validation.call({})
84
- const defaultForm: UI_I_RenameForm = defaultFormRenameFunc(
85
- localization.value,
86
- props?.name || ''
87
- )
88
- const form = ref<UI_I_RenameForm>(useDeepCopy(defaultForm))
89
-
90
- const setForm = () => {
91
- form.value = useDeepCopy(defaultForm)
92
- validation.setForm(form)
93
- }
94
- setForm()
95
-
96
- const validForm = ref<UI_I_ValidationTouchResult | null>(null)
97
-
98
- const labelName = computed<string>(() => localization.value[props.label])
99
-
100
- /* Validation for Name input */
101
- const initValidation = () => {
102
- validForm.value = validation.touch()
103
- }
104
-
105
- const nameErrorText = computed<string>(() => {
106
- return validForm.value?.errors?.name?.[0] || ''
107
- })
108
- /* Validation Name input end */
109
-
110
- const labelWidth = computed<number>(() => labelWidthFunc(labelName.value))
111
-
112
- const onRename = (): void => {
113
- const { isValid = true } = validForm?.value || {}
114
-
115
- if (!isValid) return
116
- emits('apply-changes', form.value.name.value)
117
- }
118
-
119
- const onHide = (): void => {
120
- emits('hide')
121
- }
122
- </script>
123
-
124
- <style lang="scss" scoped>
125
- @import '~/assets/scss/common/mixins.scss';
126
- .rename {
127
- &__body {
128
- @include flex($dir: column);
129
- .clr-form-control {
130
- @include flex($dir: row);
131
-
132
- .clr-control-container {
133
- min-height: 48px;
134
- }
135
- .form-group {
136
- &__input {
137
- @include flex();
138
- input {
139
- width: 100%;
140
- }
141
- .form-validate {
142
- svg {
143
- width: 24px;
144
- height: 24px;
145
- }
146
- }
147
- &-error {
148
- margin-top: 0;
149
- }
150
- }
151
- }
152
- }
153
- }
154
- :deep(.modal-content) {
155
- .modal-title {
156
- white-space: nowrap;
157
- }
158
- .secondary-title {
159
- word-break: break-all;
160
- font-size: 18px;
161
- font-weight: 300;
162
- }
163
- }
164
- }
165
- </style>
1
+ <template>
2
+ <atoms-modal
3
+ :test-id="`${props.testId}-rename`"
4
+ width="576px"
5
+ class="rename"
6
+ :show="true"
7
+ :title="localization.rename"
8
+ :second-title="name"
9
+ @submit="onRename"
10
+ @hide="onHide"
11
+ >
12
+ <template #modalBody>
13
+ <div class="rename__body">
14
+ <form
15
+ :id="`${props.testId}-rename-form`"
16
+ class="clr-form clr-form-horizontal"
17
+ @submit.prevent
18
+ >
19
+ <slot v-if="$slots.description" name="description"></slot>
20
+
21
+ <div class="clr-row clr-error clr-form-control">
22
+ <label
23
+ for="rename"
24
+ :class="['clr-control-label', `clr-col-md-${labelWidth}`]"
25
+ >{{ labelName }}</label
26
+ >
27
+ <div class="clr-control-container clr-col-8">
28
+ <div class="form-group__input">
29
+ <input
30
+ id="rename"
31
+ v-model="form.name.value"
32
+ type="text"
33
+ :class="nameErrorText && 'clr-input'"
34
+ @blur="initValidation"
35
+ @input="initValidation"
36
+ />
37
+ <div v-show="nameErrorText" class="form-validate">
38
+ <atoms-the-icon
39
+ class="is-error tooltip-trigger"
40
+ name="info"
41
+ />
42
+ </div>
43
+ </div>
44
+ <div
45
+ v-show="nameErrorText"
46
+ class="form-group__input-error clr-subtext"
47
+ >
48
+ {{ nameErrorText }}
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </form>
53
+ </div>
54
+ </template>
55
+ </atoms-modal>
56
+ </template>
57
+
58
+ <script lang="ts" setup>
59
+ import { UI_I_ValidationTouchResult } from '~/models/plugins/validation/interfaces'
60
+ import { UI_I_Localization } from '~/models/interfaces'
61
+ import { UI_I_RenameForm } from '~/components/common/modals/models/interfaces'
62
+ import { defaultFormRenameFunc } from '~/components/common/modals/config/defaultForm'
63
+ import { labelWidthFunc } from '~/components/common/modals/config/renameLabelWidth'
64
+
65
+ const props = withDefaults(
66
+ defineProps<{
67
+ testId: string
68
+ name: string
69
+ label?: string
70
+ }>(),
71
+ {
72
+ label: 'enterNewName',
73
+ }
74
+ )
75
+ const emits = defineEmits<{
76
+ (event: 'hide'): void
77
+ (event: 'apply-changes', value: string): void
78
+ }>()
79
+
80
+ const localization = computed<UI_I_Localization>(() => useLocal())
81
+ const { $validation } = useNuxtApp()
82
+
83
+ const validation = $validation.call({})
84
+ const defaultForm: UI_I_RenameForm = defaultFormRenameFunc(
85
+ localization.value,
86
+ props?.name || ''
87
+ )
88
+ const form = ref<UI_I_RenameForm>(useDeepCopy(defaultForm))
89
+
90
+ const setForm = () => {
91
+ form.value = useDeepCopy(defaultForm)
92
+ validation.setForm(form)
93
+ }
94
+ setForm()
95
+
96
+ const validForm = ref<UI_I_ValidationTouchResult | null>(null)
97
+
98
+ const labelName = computed<string>(() => localization.value[props.label])
99
+
100
+ /* Validation for Name input */
101
+ const initValidation = () => {
102
+ validForm.value = validation.touch()
103
+ }
104
+
105
+ const nameErrorText = computed<string>(() => {
106
+ return validForm.value?.errors?.name?.[0] || ''
107
+ })
108
+ /* Validation Name input end */
109
+
110
+ const labelWidth = computed<number>(() => labelWidthFunc(labelName.value))
111
+
112
+ const onRename = (): void => {
113
+ const { isValid = true } = validForm?.value || {}
114
+
115
+ if (!isValid) return
116
+ emits('apply-changes', form.value.name.value)
117
+ }
118
+
119
+ const onHide = (): void => {
120
+ emits('hide')
121
+ }
122
+ </script>
123
+
124
+ <style lang="scss" scoped>
125
+ @import '~/assets/scss/common/mixins.scss';
126
+ .rename {
127
+ &__body {
128
+ @include flex($dir: column);
129
+ .clr-form-control {
130
+ @include flex($dir: row);
131
+
132
+ .clr-control-container {
133
+ min-height: 48px;
134
+ }
135
+ .form-group {
136
+ &__input {
137
+ @include flex();
138
+ input {
139
+ width: 100%;
140
+ }
141
+ .form-validate {
142
+ svg {
143
+ width: 24px;
144
+ height: 24px;
145
+ }
146
+ }
147
+ &-error {
148
+ margin-top: 0;
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ :deep(.modal-content) {
155
+ .modal-title {
156
+ white-space: nowrap;
157
+ }
158
+ .secondary-title {
159
+ word-break: break-all;
160
+ font-size: 18px;
161
+ font-weight: 300;
162
+ }
163
+ }
164
+ }
165
+ </style>
@@ -21,23 +21,12 @@
21
21
  :disabled-period="props.disabledPeriod"
22
22
  :disabled-view="props.disabledView"
23
23
  :selected-chart-type="props.selectedChartType"
24
- :selected-timespan-type="props.selectedTimespanType"
25
- :units-count="props.unitsCount"
26
- :period-type="props.periodType"
27
- :selected-custom-time="props.selectedCustomTime"
28
- :selected-chart-option-name="props.selectedChartOptionName"
29
24
  @update-tools="onUpdateTools"
30
25
  @exporting="onExporting"
31
26
  @open-advanced-page="onGetEmptyPage"
32
27
  @select-row="emits('select-row', $event)"
33
28
  @select-metric="emits('select-metric', $event)"
34
29
  @update-chart-type="emits('update-chart-type', $event)"
35
- @update-timespan-type="emits('update-timespan-type', $event)"
36
- @update-unit-count="emits('update-unit-count', $event)"
37
- @update-period-type="emits('update-period-type', $event)"
38
- @update-custom-time="emits('update-custom-time', $event)"
39
- @select-chart-name="emits('select-chart-name', $event)"
40
- @delete-option="emits('delete-option')"
41
30
  />
42
31
 
43
32
  <div v-show="!props.data" class="empty-container">
@@ -98,11 +87,6 @@ const props = defineProps<{
98
87
  selectedCountersKeys: number[]
99
88
  selectedMetric: T_ChartHost | T_ChartVm
100
89
  selectedChartType: string
101
- selectedTimespanType: string
102
- unitsCount: number
103
- periodType: string
104
- selectedCustomTime: string
105
- selectedChartOptionName: string
106
90
  disabledPeriod?: boolean
107
91
  disabledView?: boolean
108
92
  }>()
@@ -114,12 +98,6 @@ const emits = defineEmits<{
114
98
  (event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
115
99
  (event: 'select-metric', value: string): void
116
100
  (event: 'update-chart-type', value: string): void
117
- (event: 'update-timespan-type', value: string): void
118
- (event: 'update-unit-count', value: number): void
119
- (event: 'update-period-type', value: string): void
120
- (event: 'update-custom-time', value: string): void
121
- (event: 'select-chart-name', value: string): void
122
- (event: 'delete-option'): void
123
101
  }>()
124
102
 
125
103
  const localization = computed<UI_I_Localization>(() => useLocal())
@@ -88,22 +88,10 @@
88
88
  :selected-counters-keys="props.selectedCountersKeys"
89
89
  :selected-metric="props.selectedMetric"
90
90
  :selected-chart-type="props.selectedChartType"
91
- :selected-timespan-type="props.selectedTimespanType"
92
- :units-count="props.unitsCount"
93
- :period-type="props.periodType"
94
- :selected-custom-time="props.selectedCustomTime"
95
- :selected-chart-option-name="props.selectedChartOptionName"
96
91
  @hide="isShowModal = false"
97
92
  @select-row="emits('select-row', $event)"
98
93
  @select-metric="emits('select-metric', $event)"
99
94
  @update-chart-type="emits('update-chart-type', $event)"
100
- @update-timespan-type="emits('update-timespan-type', $event)"
101
- @update-unit-count="emits('update-unit-count', $event)"
102
- @update-period-type="emits('update-period-type', $event)"
103
- @update-custom-time="emits('update-custom-time', $event)"
104
- @select-chart-name="onSelectChartName"
105
- @delete-option="onDeleteOption"
106
- @save-option-name="onSaveOptionName"
107
95
  />
108
96
  </template>
109
97
 
@@ -123,7 +111,6 @@ import {
123
111
  periodFunc,
124
112
  viewFunc,
125
113
  exportFunc,
126
- getCurrentOptionsStorageFunc,
127
114
  } from '~/components/common/monitor/advanced/tools/config/advancedToolbar'
128
115
 
129
116
  const props = defineProps<{
@@ -134,11 +121,6 @@ const props = defineProps<{
134
121
  selectedCountersKeys: number[]
135
122
  selectedMetric: T_ChartHost | T_ChartVm
136
123
  selectedChartType: string
137
- selectedTimespanType: string
138
- unitsCount: number
139
- periodType: string
140
- selectedCustomTime: string
141
- selectedChartOptionName: string
142
124
  disabledPeriod?: boolean
143
125
  disabledView?: boolean
144
126
  }>()
@@ -150,83 +132,38 @@ const emits = defineEmits<{
150
132
  (event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
151
133
  (event: 'select-metric', value: string): void
152
134
  (event: 'update-chart-type', value: string): void
153
- (event: 'update-timespan-type', value: string): void
154
- (event: 'update-unit-count', value: number): void
155
- (event: 'update-period-type', value: string): void
156
- (event: 'update-custom-time', value: string): void
157
- (event: 'select-chart-name', value: string): void
158
- (event: 'delete-option'): void
159
135
  }>()
160
136
 
161
- const routeType = '' + useRoute().params.type
162
-
163
137
  const localization = computed<UI_I_Localization>(() => useLocal())
164
138
  const { $formattedDatetime } = useNuxtApp()
165
139
 
166
140
  const selectedView = ref<string>('')
167
- const optionsNames = ref<string[]>([])
168
141
  const viewOptions = computed<UI_I_OptionItem[]>(() =>
169
- viewFunc(localization.value, props.type, optionsNames.value)
142
+ viewFunc(localization.value, props.type)
170
143
  )
171
-
172
144
  watch(
173
- () => props.selectedChartOptionName,
174
- (newValue) => {
175
- let currentValue = ''
176
-
177
- if (newValue) currentValue = newValue
178
- else if (
179
- selectedView.value &&
180
- optionsNames.value.includes(selectedView.value)
181
- )
182
- currentValue = selectedView.value
183
- else currentValue = viewOptions.value[0].value
184
-
185
- selectedView.value = currentValue
145
+ () => viewOptions.value,
146
+ (val: UI_I_OptionItem[]) => {
147
+ if (val) selectedView.value = val[0].value
186
148
  },
187
149
  { immediate: true }
188
150
  )
189
151
 
190
- const onSelectChartName = (name: string): void => {
191
- emits('select-chart-name', name)
192
- optionsNames.value = getCurrentOptionsStorageFunc(routeType)
193
- }
194
-
195
- const onDeleteOption = (): void => {
196
- emits('delete-option')
197
- optionsNames.value = getCurrentOptionsStorageFunc(routeType)
198
- }
199
-
200
152
  const selectedPeriod = ref<string>('')
201
153
  const periodOptions = computed<UI_I_OptionItem[]>(() =>
202
154
  periodFunc(localization.value)
203
155
  )
204
156
  watch(
205
157
  () => periodOptions.value,
206
- (newValue: UI_I_OptionItem[]) => {
207
- if (newValue) selectedPeriod.value = newValue[0].value
158
+ (val: UI_I_OptionItem[]) => {
159
+ if (val) selectedPeriod.value = val[0].value
208
160
  },
209
161
  { immediate: true }
210
162
  )
211
163
 
212
- const isShowModal = ref<boolean>(false)
213
- watch(isShowModal, (newValue) => {
214
- if (!newValue && !selectedView.value)
215
- selectedView.value = viewOptions.value[0].value
216
- })
217
-
218
164
  watch(
219
165
  () => [selectedPeriod.value, selectedView.value],
220
166
  (newValue: string[]) => {
221
- const selectedValue = useLocalStorage(
222
- newValue[1] + 'ChartOptions',
223
- undefined,
224
- false
225
- )
226
- const fields = selectedValue
227
- ? selectedValue.counters.map((item) => item.name).join(', ')
228
- : ''
229
-
230
167
  const validPeriodData = getValidDateByOptionFunc(newValue[0])
231
168
 
232
169
  const period = [
@@ -234,7 +171,6 @@ watch(
234
171
  Math.round(validPeriodData[1] / 1000),
235
172
  ]
236
173
  const tools: UI_I_MonitorGraphPayload = {
237
- fields,
238
174
  period,
239
175
  periodType: newValue[0],
240
176
  view: newValue[1],
@@ -259,17 +195,10 @@ const exportMenu = ref<UI_I_DropMenu<string>[]>(exportFunc(localization.value))
259
195
  const onExportMenuItem = (item: UI_I_DropMenu<any>): void =>
260
196
  emits('exporting', item.action)
261
197
 
198
+ const isShowModal = ref<boolean>(false)
262
199
  const onShowChartOptions = (): void => {
263
200
  isShowModal.value = true
264
201
  }
265
-
266
- const onSaveOptionName = (): void => {
267
- optionsNames.value = getCurrentOptionsStorageFunc(routeType)
268
- }
269
-
270
- onMounted(() => {
271
- optionsNames.value = getCurrentOptionsStorageFunc(routeType)
272
- })
273
202
  </script>
274
203
 
275
204
  <style scoped lang="scss">