bfg-common 1.4.808 → 1.4.809

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.
@@ -2482,7 +2482,8 @@
2482
2482
  "remoteConsoleTitle": "{trademark} аддаленая кансоль",
2483
2483
  "remoteConsoleText1": "Выкарыстоўвайце {trademark} выдаленую кансоль (VMRC) для падлучэння да кліенцкім прыладам і доступу да пашыраных функцый клавіятуры.",
2484
2484
  "remoteConsoleText2": "Калі ў вас ужо ўстаноўлена выдаленая кансоль {trademark}, яна запусціцца аўтаматычна, калі вы націснеце кнопку Запусціць выдаленую кансоль. Калі няма, вы можаце загрузіць яе па спасылцы ніжэй.",
2485
- "fieldNotContainSpecialCharacters": "Поле не павінна ўтрымліваць спецыяльныя сімвалы"
2485
+ "fieldNotContainSpecialCharacters": "Поле не павінна ўтрымліваць спецыяльныя сімвалы",
2486
+ "noObjectsFound": "Ніякіх прадметаў знойдзена не было"
2486
2487
  },
2487
2488
  "contextMenu": {
2488
2489
  "actionsMenuPower": "Магутнасць",
@@ -2749,7 +2750,7 @@
2749
2750
  "totalCapacity": "Агульная ўмяшчальнасць",
2750
2751
  "usedReservation": "Выкарыстанае браніраванне",
2751
2752
  "availableCapacity": "Даступная магутнасць",
2752
- "dateTimeIsoFormat": "Дата і час знаходзяцца ў фармаце ISO 8601"
2753
+ "dateTimeIsoFormat": "Дата і час знаходзяцца ў фармаце ISO 8601."
2753
2754
  },
2754
2755
  "inventoryTabs": {
2755
2756
  "summary": "Рэзюмэ",
@@ -2944,6 +2945,10 @@
2944
2945
  "setUpvSphereNaDesc": "Каб забяспечыць максімальную абарону, пастаўце вузлы на асобныя хасты і сходы дадзеных. ",
2945
2946
  "spherePackageFile": "Файл пакета сферы",
2946
2947
  "selectSpherePackageFile": "Выберыце файл пакета сферы",
2947
- "numberOfNodes": "Колькасць вузлоў:"
2948
+ "numberOfNodes": "Колькасць вузлоў:",
2949
+ "selectHost": "Выберыце хост",
2950
+ "setAsLeader": "Усталяваны ў якасці лідэра",
2951
+ "standalone": "Паласны",
2952
+ "clusterNodes": "Кластарныя вузлы"
2948
2953
  }
2949
2954
  }
@@ -2486,7 +2486,8 @@
2486
2486
  "remoteConsoleTitle": "{trademark} Remote Console",
2487
2487
  "remoteConsoleText1": "Use {trademark} Remote Console (VMRC) to connect to client devices and access advanced keyboard features.",
2488
2488
  "remoteConsoleText2": "If you already have {trademark} Remote Console installed, it will start automatically when you click the Launch Remote Console button. If not, you can use the link below to download it.",
2489
- "fieldNotContainSpecialCharacters": "The field must not contain special characters"
2489
+ "fieldNotContainSpecialCharacters": "The field must not contain special characters",
2490
+ "noObjectsFound": "No objects found"
2490
2491
  },
2491
2492
  "contextMenu": {
2492
2493
  "actionsMenuPower": "Power",
@@ -2753,7 +2754,7 @@
2753
2754
  "totalCapacity": "Total Capacity",
2754
2755
  "usedReservation": "Used Reservation",
2755
2756
  "availableCapacity": "Available Capacity",
2756
- "dateTimeIsoFormat": "date and time are in ISO 8601 format"
2757
+ "dateTimeIsoFormat": "Date and time are in ISO 8601 format."
2757
2758
  },
2758
2759
  "inventoryTabs": {
2759
2760
  "summary": "Summary",
@@ -2949,7 +2950,9 @@
2949
2950
  "spherePackageFile": "Sphere Package File",
2950
2951
  "selectSpherePackageFile": "Select Sphere package file",
2951
2952
  "numberOfNodes": "Number of Nodes:",
2952
-
2953
- "selectHost": "Select Host"
2953
+ "selectHost": "Select Host",
2954
+ "setAsLeader": "Set as Leader",
2955
+ "standalone": "Standalone",
2956
+ "clusterNodes": "Cluster Nodes"
2954
2957
  }
2955
2958
  }
@@ -2486,7 +2486,8 @@
2486
2486
  "remoteConsoleTitle": "{trademark} հեռավոր վահանակ",
2487
2487
  "remoteConsoleText1": "Օգտագործեք {trademark} հեռավոր վահանակ (VMRC)՝ հաճախորդի սարքերին միանալու և ստեղնաշարի առաջադեմ գործառույթներ մուտք գործելու համար:",
2488
2488
  "remoteConsoleText2": "Եթե արդեն տեղադրված եք {trademark} հեռավոր վահանակը, այն ավտոմատ կերպով կսկսվի, երբ սեղմեք կոճակը գործարկել Remote Console. Եթե ոչ, կարող եք ներբեռնել այն ստորև նշված հղումից:",
2489
- "fieldNotContainSpecialCharacters": "Դաշտը չպետք է պարունակի հատուկ նիշեր"
2489
+ "fieldNotContainSpecialCharacters": "Դաշտը չպետք է պարունակի հատուկ նիշեր",
2490
+ "noObjectsFound": "Օբյեկտներ չեն հայտնաբերվել"
2490
2491
  },
2491
2492
  "contextMenu": {
2492
2493
  "actionsMenuPower": "Հզորությունը",
@@ -2753,7 +2754,7 @@
2753
2754
  "totalCapacity": "Ընդհանուր տարածություն",
2754
2755
  "usedReservation": "Օգտագործված ամրագրում",
2755
2756
  "availableCapacity": "Առկա տարածություն",
2756
- "dateTimeIsoFormat": "Ամսաթիվը եւ ժամը ISO 8601 ձեւաչափով են"
2757
+ "dateTimeIsoFormat": "Ամսաթիվը եւ ժամը ISO 8601 ձեւաչափով են:"
2757
2758
  },
2758
2759
  "inventoryTabs": {
2759
2760
  "summary": "Ամփոփում",
@@ -2948,6 +2949,10 @@
2948
2949
  "setUpvSphereNaDesc": "Առավելագույն պաշտպանություն ապահովելու համար հանգույցները տեղադրեք առանձին տանտերերի եւ տվյալների շտեմարանների վրա: ",
2949
2950
  "spherePackageFile": "Ոլորտի փաթեթի ֆայլ",
2950
2951
  "selectSpherePackageFile": "Ընտրեք ոլորտի փաթեթի ֆայլը",
2951
- "numberOfNodes": "Հանգույցների քանակը."
2952
+ "numberOfNodes": "Հանգույցների քանակը.",
2953
+ "selectHost": "Ընտրեք հյուրընկալողը",
2954
+ "setAsLeader": "Սահմանել որպես առաջնորդ",
2955
+ "standalone": "Ինքնաբերական",
2956
+ "clusterNodes": "Կլաստերի հանգույցներ"
2952
2957
  }
2953
2958
  }
@@ -2485,7 +2485,8 @@
2485
2485
  "remoteConsoleTitle": "{trademark} Қашықтағы Консоль",
2486
2486
  "remoteConsoleText1": "Клиенттік құрылғыларға қосылу және пернетақтаның кеңейтілген мүмкіндіктеріне қол жеткізу үшін {trademark} Қашықтағы Консолін (VMRC) пайдаланыңыз.",
2487
2487
  "remoteConsoleText2": "Егер сізде {trademark} Қашықтан Басқару Пульті орнатылған болса, Қашықтан Басқару Пультін Іске қосу түймесін басқан кезде ол автоматты түрде іске қосылады. Олай болмаса, оны жүктеп алу үшін төмендегі сілтемені пайдалануға болады.",
2488
- "fieldNotContainSpecialCharacters": "Өрісте арнайы таңбалар болмауы керек"
2488
+ "fieldNotContainSpecialCharacters": "Өрісте арнайы таңбалар болмауы керек",
2489
+ "noObjectsFound": "Объектілер табылмады"
2489
2490
  },
2490
2491
  "contextMenu": {
2491
2492
  "actionsMenuPower": "Магутнасттар",
@@ -2752,7 +2753,7 @@
2752
2753
  "totalCapacity": "Жалпы Сыйымдылығы",
2753
2754
  "usedReservation": "Пайдаланылған Брондау",
2754
2755
  "availableCapacity": "Қолжетімді Сыйымдылық",
2755
- "dateTimeIsoFormat": "Күн мен уақыт ISO 8601 форматында"
2756
+ "dateTimeIsoFormat": "Күн мен уақыт ISO 8601. форматында"
2756
2757
  },
2757
2758
  "inventoryTabs": {
2758
2759
  "summary": "Түйіндеме",
@@ -2947,6 +2948,10 @@
2947
2948
  "setUpvSphereNaDesc": "Максималды қорғауды қамтамасыз ету үшін түйіндерді бөлек хосттар мен деректер базаларына салыңыз. ",
2948
2949
  "spherePackageFile": "Сфера пакетіне арналған файл",
2949
2950
  "selectSpherePackageFile": "Сфера пакетін таңдаңыз",
2950
- "numberOfNodes": "Түйіндердің саны:"
2951
+ "numberOfNodes": "Түйіндердің саны:",
2952
+ "selectHost": "Хостты таңдаңыз",
2953
+ "setAsLeader": "Көшбасшы ретінде орнатыңыз",
2954
+ "standalone": "Оқшаулағы",
2955
+ "clusterNodes": "Кластерлік түйіндер"
2951
2956
  }
2952
2957
  }
@@ -2487,7 +2487,8 @@
2487
2487
  "remoteConsoleTitle": "{trademark} Удаленная Консоль",
2488
2488
  "remoteConsoleText1": "Используйте {trademark} Удаленную Консоль (VMRC) для подключения к клиентским устройствам и доступа к расширенным функциям клавиатуры.",
2489
2489
  "remoteConsoleText2": "Если у вас уже установлена {trademark} Удаленная Консоль, она запустится автоматически, когда вы нажмете кнопку Запустить удаленную консоль. Если нет, вы можете загрузить ее по ссылке ниже.",
2490
- "fieldNotContainSpecialCharacters": "Поле не должно содержать специальных символов"
2490
+ "fieldNotContainSpecialCharacters": "Поле не должно содержать специальных символов",
2491
+ "noObjectsFound": "Объектов не найдено"
2491
2492
  },
2492
2493
  "contextMenu": {
2493
2494
  "actionsMenuPower": "Питание",
@@ -2754,7 +2755,7 @@
2754
2755
  "totalCapacity": "Общая вместимость",
2755
2756
  "usedReservation": "Использованное бронирование",
2756
2757
  "availableCapacity": "Доступная емкость",
2757
- "dateTimeIsoFormat": "Дата и время в формате ISO 8601"
2758
+ "dateTimeIsoFormat": "Дата и время в формате ISO 8601."
2758
2759
  },
2759
2760
  "inventoryTabs": {
2760
2761
  "summary": "Сводка",
@@ -2949,6 +2950,10 @@
2949
2950
  "setUpvSphereNaDesc": "Чтобы обеспечить максимальную защиту, поместите узлы на отдельные хосты и данные данных. ",
2950
2951
  "spherePackageFile": "Файл пакета сферы",
2951
2952
  "selectSpherePackageFile": "Выберите файл пакета сферов",
2952
- "numberOfNodes": "Количество узлов:"
2953
+ "numberOfNodes": "Количество узлов:",
2954
+ "selectHost": "Выберите хост",
2955
+ "setAsLeader": "Установить как лидер",
2956
+ "standalone": "Автономный",
2957
+ "clusterNodes": "Кластерные узлы"
2953
2958
  }
2954
2959
  }
@@ -2484,7 +2484,8 @@
2484
2484
  "remoteConsoleTitle": "{trademark}远程控制台",
2485
2485
  "remoteConsoleText1": "使用{trademark}远程控制台(VMRC)连接到客户端设备并访问高级键盘功能。",
2486
2486
  "remoteConsoleText2": "如果您已经安装了{trademark}远程控制台,它将在您单击启动远程控制台按钮时自动启动。 如果没有,您可以使用下面的链接下载它。",
2487
- "fieldNotContainSpecialCharacters": "该字段不能包含特殊字符"
2487
+ "fieldNotContainSpecialCharacters": "该字段不能包含特殊字符",
2488
+ "noObjectsFound": "没有找到物件"
2488
2489
  },
2489
2490
  "contextMenu": {
2490
2491
  "actionsMenuPower": "力量",
@@ -2751,7 +2752,7 @@
2751
2752
  "totalCapacity": "总容量",
2752
2753
  "usedReservation": "已使用的预订",
2753
2754
  "availableCapacity": "可用容量",
2754
- "dateTimeIsoFormat": "日期和时间为ISO 8601格式"
2755
+ "dateTimeIsoFormat": "日期和时间为ISO 8601格式。"
2755
2756
  },
2756
2757
  "inventoryTabs": {
2757
2758
  "summary": "概括",
@@ -2946,6 +2947,10 @@
2946
2947
  "setUpvSphereNaDesc": "为了确保最大程度的保护,请将节点放在单独的主机和数据存储上。",
2947
2948
  "spherePackageFile": "Sphere软件包文件",
2948
2949
  "selectSpherePackageFile": "选择球形包装文件",
2949
- "numberOfNodes": "节点数:"
2950
+ "numberOfNodes": "节点数:",
2951
+ "selectHost": "选择主机",
2952
+ "setAsLeader": "设置为领导者",
2953
+ "standalone": "独立",
2954
+ "clusterNodes": "群集节点"
2950
2955
  }
2951
2956
  }
@@ -1,107 +1,40 @@
1
1
  <template>
2
- <atoms-modal
3
- width="580px"
4
- class="add-permission"
5
- :show="true"
6
- :title="titleIntervalModal"
7
- :second-title="selectedItem"
8
- test-id="overview-custom-interval-modal"
2
+ <common-monitor-overview-filters-custom-interval-modal-new
3
+ v-if="isNewView"
4
+ v-model:alert-show="alertShow"
5
+ v-model:current-date-from="currentDateFrom"
6
+ v-model:date-from="dateFrom"
7
+ v-model:current-time-from="currentTimeFrom"
8
+ v-model:current-date-to="currentDateTo"
9
+ v-model:date-to="dateTo"
10
+ v-model:current-time-to="currentTimeTo"
11
+ :title-interval-modal="titleIntervalModal"
12
+ :selected-item-name="selectedItemName"
13
+ :current-lang="currentLang"
14
+ :alert-items="alertItems"
15
+ @update-date-from="onUpdateDateFrom"
16
+ @update-date-to="onUpdateDateTo"
17
+ @submit="onSubmit"
9
18
  @hide="onHide"
19
+ />
20
+ <common-monitor-overview-filters-custom-interval-modal-old
21
+ v-else
22
+ v-model:alert-show="alertShow"
23
+ v-model:current-date-from="currentDateFrom"
24
+ v-model:date-from="dateFrom"
25
+ v-model:current-time-from="currentTimeFrom"
26
+ v-model:current-date-to="currentDateTo"
27
+ v-model:date-to="dateTo"
28
+ v-model:current-time-to="currentTimeTo"
29
+ :title-interval-modal="titleIntervalModal"
30
+ :selected-item-name="selectedItemName"
31
+ :current-lang="currentLang"
32
+ :alert-items="alertItems"
33
+ @update-date-from="onUpdateDateFrom"
34
+ @update-date-to="onUpdateDateTo"
10
35
  @submit="onSubmit"
11
- >
12
- <template #modalBody>
13
- <atoms-alert
14
- v-show="alertShow"
15
- status="alert-danger"
16
- :items="alertItems"
17
- test-id="overview-alert"
18
- @remove="alertShow = false"
19
- />
20
-
21
- <table>
22
- <tbody>
23
- <tr>
24
- <td class="text-right">
25
- <label class="custom-time-label">
26
- <span class="custom-time-label-text text-capitalize">
27
- {{ localization.common.from }}:
28
- </span>
29
- </label>
30
- </td>
31
- <td>
32
- <div class="flex-align-center input-row-container">
33
- <input
34
- id="current-date-from"
35
- v-model.lazy="currentDateFrom"
36
- data-id="current-date-from-input"
37
- type="text"
38
- class="chart-option-setting-row custom-time-input first-from"
39
- />
40
- <div class="section-datepicker">
41
- <atoms-datepicker
42
- v-model="dateFrom"
43
- :lang="props.currentLang"
44
- class="chart-option-setting-row custom-time-input"
45
- test-id="overview-first-date-datepicker"
46
- @update="onUpdateDateFrom"
47
- />
48
- </div>
49
- <input
50
- id="current-time-from"
51
- v-model="currentTimeFrom"
52
- data-id="current-time-from-input"
53
- type="text"
54
- class="chart-option-setting-row custom-time-input"
55
- />
56
- </div>
57
- </td>
58
- </tr>
59
- <tr>
60
- <td class="text-right">
61
- <label class="custom-time-label">
62
- <span class="custom-time-label-text text-capitalize">
63
- {{ localization.common.to }}:
64
- </span>
65
- </label>
66
- </td>
67
- <td>
68
- <div class="flex-align-center input-row-container">
69
- <input
70
- id="current-date-to"
71
- v-model.lazy="currentDateTo"
72
- data-id="current-date-to-input"
73
- type="text"
74
- class="chart-option-setting-row custom-time-input first-from"
75
- />
76
- <div class="section-datepicker">
77
- <atoms-datepicker
78
- v-model="dateTo"
79
- :lang="props.currentLang"
80
- class="chart-option-setting-row custom-time-input"
81
- test-id="overview-first-date-to-datepicker"
82
- @update="onUpdateDateTo"
83
- />
84
- </div>
85
- <input
86
- id="current-time-to"
87
- v-model="currentTimeTo"
88
- data-id="current-time-to-input"
89
- type="text"
90
- class="chart-option-setting-row custom-time-input"
91
- />
92
- </div>
93
- </td>
94
- </tr>
95
- <tr>
96
- <td></td>
97
- <td class="text-format-date">
98
- ({{ localization.inventoryMonitor.dateTimeIsoFormat }})
99
- </td>
100
- </tr>
101
- </tbody>
102
- </table>
103
- </template>
104
- </atoms-modal>
36
+ @hide="onHide"
37
+ />
105
38
  </template>
106
39
 
107
40
  <script setup lang="ts">
@@ -121,7 +54,9 @@ const emits = defineEmits<{
121
54
  (event: 'submit', value: number[]): void
122
55
  }>()
123
56
 
124
- const { $formattedDate, $formattedTime, $isDate, $getUnixByDate } = useNuxtApp()
57
+ const { $store, $formattedDate, $formattedTime, $isDate, $getUnixByDate } =
58
+ useNuxtApp()
59
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
125
60
 
126
61
  const localization = computed<UI_I_Localization>(() => useLocal())
127
62
 
@@ -129,7 +64,7 @@ const titleIntervalModal = ref<string>(
129
64
  `${localization.value.common.timeRange}:`
130
65
  )
131
66
 
132
- const selectedItem = ref<string>('')
67
+ const selectedItemName = ref<string>('')
133
68
 
134
69
  const onHide = (): void => {
135
70
  getCurrentTime()
@@ -228,23 +163,11 @@ watch(
228
163
  )
229
164
 
230
165
  onMounted(() => {
231
- selectedItem.value = location.hostname
166
+ selectedItemName.value = location.hostname
232
167
  getCurrentTime()
233
168
  onSubmit()
234
169
  })
235
170
  </script>
236
171
 
237
172
  <style scoped lang="scss">
238
- .input-row-container {
239
- padding-left: 5px;
240
-
241
- .custom-time-input {
242
- max-width: 120px;
243
- margin-right: 15px;
244
- }
245
- }
246
- .text-format-date {
247
- display: inline-block;
248
- margin-top: 5px;
249
- }
250
173
  </style>
@@ -0,0 +1,155 @@
1
+ <template>
2
+ <atoms-modal
3
+ width="580px"
4
+ class="add-permission"
5
+ :show="true"
6
+ :title="props.titleIntervalModal"
7
+ :second-title="props.selectedItemName"
8
+ test-id="overview-custom-interval-modal"
9
+ @hide="onHide"
10
+ @submit="onSubmit"
11
+ >
12
+ <template #modalBody>
13
+ <atoms-alert
14
+ v-show="alertShow"
15
+ status="alert-danger"
16
+ :items="props.alertItems"
17
+ test-id="overview-alert"
18
+ @remove="alertShow = false"
19
+ />
20
+
21
+ <table>
22
+ <tbody>
23
+ <tr>
24
+ <td class="text-right">
25
+ <label class="custom-time-label">
26
+ <span class="custom-time-label-text text-capitalize">
27
+ {{ localization.common.from }}:
28
+ </span>
29
+ </label>
30
+ </td>
31
+ <td>
32
+ <div class="flex-align-center input-row-container">
33
+ <input
34
+ id="current-date-from"
35
+ v-model.lazy="currentDateFrom"
36
+ data-id="current-date-from-input"
37
+ type="text"
38
+ class="chart-option-setting-row custom-time-input first-from"
39
+ />
40
+ <div class="section-datepicker">
41
+ <atoms-datepicker
42
+ v-model="dateFrom"
43
+ :lang="props.currentLang"
44
+ class="chart-option-setting-row custom-time-input"
45
+ test-id="overview-first-date-datepicker"
46
+ @update="onUpdateDateFrom"
47
+ />
48
+ </div>
49
+ <input
50
+ id="current-time-from"
51
+ v-model="currentTimeFrom"
52
+ data-id="current-time-from-input"
53
+ type="text"
54
+ class="chart-option-setting-row custom-time-input"
55
+ />
56
+ </div>
57
+ </td>
58
+ </tr>
59
+ <tr>
60
+ <td class="text-right">
61
+ <label class="custom-time-label">
62
+ <span class="custom-time-label-text text-capitalize">
63
+ {{ localization.common.to }}:
64
+ </span>
65
+ </label>
66
+ </td>
67
+ <td>
68
+ <div class="flex-align-center input-row-container">
69
+ <input
70
+ id="current-date-to"
71
+ v-model.lazy="currentDateTo"
72
+ data-id="current-date-to-input"
73
+ type="text"
74
+ class="chart-option-setting-row custom-time-input first-from"
75
+ />
76
+ <div class="section-datepicker">
77
+ <atoms-datepicker
78
+ v-model="dateTo"
79
+ :lang="props.currentLang"
80
+ class="chart-option-setting-row custom-time-input"
81
+ test-id="overview-first-date-to-datepicker"
82
+ @update="onUpdateDateTo"
83
+ />
84
+ </div>
85
+ <input
86
+ id="current-time-to"
87
+ v-model="currentTimeTo"
88
+ data-id="current-time-to-input"
89
+ type="text"
90
+ class="chart-option-setting-row custom-time-input"
91
+ />
92
+ </div>
93
+ </td>
94
+ </tr>
95
+ <tr>
96
+ <td></td>
97
+ <td class="text-format-date">
98
+ ({{ localization.inventoryMonitor.dateTimeIsoFormat }})
99
+ </td>
100
+ </tr>
101
+ </tbody>
102
+ </table>
103
+ </template>
104
+ </atoms-modal>
105
+ </template>
106
+
107
+ <script setup lang="ts">
108
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
109
+
110
+ const alertShow = defineModel<boolean>('alert-show')
111
+ const currentDateFrom = defineModel<boolean>('current-date-from')
112
+ const dateFrom = defineModel<boolean>('date-from')
113
+ const currentTimeFrom = defineModel<boolean>('current-time-from')
114
+ const currentDateTo = defineModel<boolean>('current-date-to')
115
+ const dateTo = defineModel<boolean>('date-to')
116
+ const currentTimeTo = defineModel<boolean>('current-time-to')
117
+
118
+ const props = defineProps<{
119
+ titleIntervalModal: string
120
+ selectedItemName: string
121
+ currentLang: string
122
+ alertItems: any[]
123
+ }>()
124
+
125
+ const emits = defineEmits<{
126
+ (event: 'hide'): void
127
+ (event: 'submit', value: number[]): void
128
+ (event: 'update-date-from', value: any): void
129
+ (event: 'update-date-to', value: any): void
130
+ }>()
131
+
132
+ const localization = computed<UI_I_Localization>(() => useLocal())
133
+
134
+ const onUpdateDateFrom = (event: any): void => {
135
+ emits('update-date-from', event)
136
+ }
137
+ const onUpdateDateTo = (event: any): void => {
138
+ emits('update-date-to', event)
139
+ }
140
+ </script>
141
+
142
+ <style scoped lang="scss">
143
+ .input-row-container {
144
+ padding-left: 5px;
145
+
146
+ .custom-time-input {
147
+ max-width: 120px;
148
+ margin-right: 15px;
149
+ }
150
+ }
151
+ .text-format-date {
152
+ display: inline-block;
153
+ margin-top: 5px;
154
+ }
155
+ </style>
@@ -0,0 +1,155 @@
1
+ <template>
2
+ <atoms-modal
3
+ width="580px"
4
+ class="add-permission"
5
+ :show="true"
6
+ :title="props.titleIntervalModal"
7
+ :second-title="props.selectedItemName"
8
+ test-id="overview-custom-interval-modal"
9
+ @hide="onHide"
10
+ @submit="onSubmit"
11
+ >
12
+ <template #modalBody>
13
+ <atoms-alert
14
+ v-show="alertShow"
15
+ status="alert-danger"
16
+ :items="props.alertItems"
17
+ test-id="overview-alert"
18
+ @remove="alertShow = false"
19
+ />
20
+
21
+ <table>
22
+ <tbody>
23
+ <tr>
24
+ <td class="text-right">
25
+ <label class="custom-time-label">
26
+ <span class="custom-time-label-text text-capitalize">
27
+ {{ localization.common.from }}:
28
+ </span>
29
+ </label>
30
+ </td>
31
+ <td>
32
+ <div class="flex-align-center input-row-container">
33
+ <input
34
+ id="current-date-from"
35
+ v-model.lazy="currentDateFrom"
36
+ data-id="current-date-from-input"
37
+ type="text"
38
+ class="chart-option-setting-row custom-time-input first-from"
39
+ />
40
+ <div class="section-datepicker">
41
+ <atoms-datepicker
42
+ v-model="dateFrom"
43
+ :lang="props.currentLang"
44
+ class="chart-option-setting-row custom-time-input"
45
+ test-id="overview-first-date-datepicker"
46
+ @update="onUpdateDateFrom"
47
+ />
48
+ </div>
49
+ <input
50
+ id="current-time-from"
51
+ v-model="currentTimeFrom"
52
+ data-id="current-time-from-input"
53
+ type="text"
54
+ class="chart-option-setting-row custom-time-input"
55
+ />
56
+ </div>
57
+ </td>
58
+ </tr>
59
+ <tr>
60
+ <td class="text-right">
61
+ <label class="custom-time-label">
62
+ <span class="custom-time-label-text text-capitalize">
63
+ {{ localization.common.to }}:
64
+ </span>
65
+ </label>
66
+ </td>
67
+ <td>
68
+ <div class="flex-align-center input-row-container">
69
+ <input
70
+ id="current-date-to"
71
+ v-model.lazy="currentDateTo"
72
+ data-id="current-date-to-input"
73
+ type="text"
74
+ class="chart-option-setting-row custom-time-input first-from"
75
+ />
76
+ <div class="section-datepicker">
77
+ <atoms-datepicker
78
+ v-model="dateTo"
79
+ :lang="props.currentLang"
80
+ class="chart-option-setting-row custom-time-input"
81
+ test-id="overview-first-date-to-datepicker"
82
+ @update="onUpdateDateTo"
83
+ />
84
+ </div>
85
+ <input
86
+ id="current-time-to"
87
+ v-model="currentTimeTo"
88
+ data-id="current-time-to-input"
89
+ type="text"
90
+ class="chart-option-setting-row custom-time-input"
91
+ />
92
+ </div>
93
+ </td>
94
+ </tr>
95
+ <tr>
96
+ <td></td>
97
+ <td class="text-format-date">
98
+ ({{ localization.inventoryMonitor.dateTimeIsoFormat }})
99
+ </td>
100
+ </tr>
101
+ </tbody>
102
+ </table>
103
+ </template>
104
+ </atoms-modal>
105
+ </template>
106
+
107
+ <script setup lang="ts">
108
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
109
+
110
+ const alertShow = defineModel<boolean>('alert-show')
111
+ const currentDateFrom = defineModel<boolean>('current-date-from')
112
+ const dateFrom = defineModel<boolean>('date-from')
113
+ const currentTimeFrom = defineModel<boolean>('current-time-from')
114
+ const currentDateTo = defineModel<boolean>('current-date-to')
115
+ const dateTo = defineModel<boolean>('date-to')
116
+ const currentTimeTo = defineModel<boolean>('current-time-to')
117
+
118
+ const props = defineProps<{
119
+ titleIntervalModal: string
120
+ selectedItemName: string
121
+ currentLang: string
122
+ alertItems: any[]
123
+ }>()
124
+
125
+ const emits = defineEmits<{
126
+ (event: 'hide'): void
127
+ (event: 'submit', value: number[]): void
128
+ (event: 'update-date-from', value: any): void
129
+ (event: 'update-date-to', value: any): void
130
+ }>()
131
+
132
+ const localization = computed<UI_I_Localization>(() => useLocal())
133
+
134
+ const onUpdateDateFrom = (event: any): void => {
135
+ emits('update-date-from', event)
136
+ }
137
+ const onUpdateDateTo = (event: any): void => {
138
+ emits('update-date-to', event)
139
+ }
140
+ </script>
141
+
142
+ <style scoped lang="scss">
143
+ .input-row-container {
144
+ padding-left: 5px;
145
+
146
+ .custom-time-input {
147
+ max-width: 120px;
148
+ margin-right: 15px;
149
+ }
150
+ }
151
+ .text-format-date {
152
+ display: inline-block;
153
+ margin-top: 5px;
154
+ }
155
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.808",
4
+ "version": "1.4.809",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",