bfg-common 1.4.722 → 1.4.723

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.
@@ -1,94 +1,96 @@
1
- <template>
2
- <div class="vertical-flex-container chart-option-counters-container">
3
- <common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-table
4
- :chart="props.chart"
5
- :selected-power-keys="props.selectedPowerKeys"
6
- :selected-temperature-keys="props.selectedTemperatureKeys"
7
- :power-counters-table-data="props.powerCountersTableData"
8
- :temperature-counters-table-data="props.temperatureCountersTableData"
9
- @select-power-row="emits('select-power-row', $event)"
10
- @select-temperature-row="emits('select-temperature-row', $event)"
11
- @total-items="totalMetricItems = $event"
12
- />
13
- <common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-timespan
14
- :language="props.language"
15
- :selected-chart-type="props.selectedChartType"
16
- :selected-timespan-type="props.selectedTimespanType"
17
- :units-count="props.unitsCount"
18
- :timespan-period-type="props.timespanPeriodType"
19
- :selected-custom-time="props.selectedCustomTime"
20
- :custom-date-from="props.customDateFrom"
21
- :custom-date-to="props.customDateTo"
22
- :custom-time-from="props.customTimeFrom"
23
- :custom-time-to="props.customTimeTo"
24
- @update-chart-type="emits('update-chart-type', $event)"
25
- @update-custom-time="emits('update-custom-time', $event)"
26
- @update-timespan-type="emits('update-timespan-type', $event)"
27
- @update-unit-count="emits('update-unit-count', $event)"
28
- @update-timespan-period-type="
29
- emits('update-timespan-period-type', $event)
30
- "
31
- @update-custom-date-from="emits('update-custom-date-from', $event)"
32
- @update-custom-date-to="emits('update-custom-date-to', $event)"
33
- @update-custom-time-from="emits('update-custom-time-from', $event)"
34
- @update-custom-time-to="emits('update-custom-time-to', $event)"
35
- />
36
- </div>
37
- </template>
38
-
39
- <script setup lang="ts">
40
- import type { UI_I_HardwareHealthSensorsGraph } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
41
- import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
42
-
43
- const props = defineProps<{
44
- chart: UI_T_Chart
45
- selectedPowerKeys: number[]
46
- selectedTemperatureKeys: number[]
47
- powerCountersTableData: UI_I_HardwareHealthSensorsGraph[]
48
- temperatureCountersTableData: UI_I_HardwareHealthSensorsGraph[]
49
- language: string
50
- selectedChartType: string
51
- selectedTimespanType: string
52
- unitsCount: number
53
- timespanPeriodType: string
54
- selectedCustomTime: string
55
- customDateFrom: string
56
- customDateTo: string
57
- customTimeFrom: string
58
- customTimeTo: string
59
- }>()
60
-
61
- const emits = defineEmits<{
62
- (event: 'select-power-row', value: UI_I_HardwareHealthSensorsGraph[]): void
63
- (
64
- event: 'select-temperature-row',
65
- value: UI_I_HardwareHealthSensorsGraph[]
66
- ): void
67
- (event: 'update-chart-type', value: string): void
68
- (event: 'update-custom-time', value: string): void
69
- (event: 'update-timespan-type', value: string): void
70
- (event: 'update-unit-count', value: number): void
71
- (event: 'update-timespan-period-type', value: string): void
72
- (event: 'update-custom-date-from', value: string): void
73
- (event: 'update-custom-date-to', value: string): void
74
- (event: 'update-custom-time-from', value: string): void
75
- (event: 'update-custom-time-to', value: string): void
76
- }>()
77
-
78
- const totalMetricItems = ref<number>(0)
79
- </script>
80
-
81
- <style scoped lang="scss">
82
- .chart-option-counters-container {
83
- margin-top: 20px;
84
- flex-basis: 80%;
85
- padding-left: 15px;
86
- max-width: 80%;
87
- }
88
- @media (max-width: 1024px) {
89
- .chart-option-counters-container {
90
- max-width: unset;
91
- padding-left: 0;
92
- }
93
- }
94
- </style>
1
+ <template>
2
+ <div class="vertical-flex-container chart-option-counters-container">
3
+ <common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-table
4
+ :chart="props.chart"
5
+ :selected-power-keys="props.selectedPowerKeys"
6
+ :selected-temperature-keys="props.selectedTemperatureKeys"
7
+ :power-counters-table-data="props.powerCountersTableData"
8
+ :temperature-counters-table-data="props.temperatureCountersTableData"
9
+ @select-power-row="emits('select-power-row', $event)"
10
+ @select-temperature-row="emits('select-temperature-row', $event)"
11
+ @total-items="totalMetricItems = $event"
12
+ />
13
+ <common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-timespan
14
+ :language="props.language"
15
+ :selected-chart-type="props.selectedChartType"
16
+ :selected-timespan-type="props.selectedTimespanType"
17
+ :units-count="props.unitsCount"
18
+ :timespan-period-type="props.timespanPeriodType"
19
+ :selected-custom-time="props.selectedCustomTime"
20
+ :custom-date-from="props.customDateFrom"
21
+ :custom-date-to="props.customDateTo"
22
+ :custom-time-from="props.customTimeFrom"
23
+ :custom-time-to="props.customTimeTo"
24
+ :valid-date-end="props.validDateEnd"
25
+ @update-chart-type="emits('update-chart-type', $event)"
26
+ @update-custom-time="emits('update-custom-time', $event)"
27
+ @update-timespan-type="emits('update-timespan-type', $event)"
28
+ @update-unit-count="emits('update-unit-count', $event)"
29
+ @update-timespan-period-type="
30
+ emits('update-timespan-period-type', $event)
31
+ "
32
+ @update-custom-date-from="emits('update-custom-date-from', $event)"
33
+ @update-custom-date-to="emits('update-custom-date-to', $event)"
34
+ @update-custom-time-from="emits('update-custom-time-from', $event)"
35
+ @update-custom-time-to="emits('update-custom-time-to', $event)"
36
+ />
37
+ </div>
38
+ </template>
39
+
40
+ <script setup lang="ts">
41
+ import type { UI_I_HardwareHealthSensorsGraph } from '~/components/common/pages/hardwareHealth/historyTestimony/lib/models/interfaces'
42
+ import type { UI_T_Chart } from '~/components/common/pages/hardwareHealth/historyTestimony/tools/chartOptionsModal/lib/models/types'
43
+
44
+ const props = defineProps<{
45
+ chart: UI_T_Chart
46
+ selectedPowerKeys: number[]
47
+ selectedTemperatureKeys: number[]
48
+ powerCountersTableData: UI_I_HardwareHealthSensorsGraph[]
49
+ temperatureCountersTableData: UI_I_HardwareHealthSensorsGraph[]
50
+ language: string
51
+ selectedChartType: string
52
+ selectedTimespanType: string
53
+ unitsCount: number
54
+ timespanPeriodType: string
55
+ selectedCustomTime: string
56
+ customDateFrom: string
57
+ customDateTo: string
58
+ customTimeFrom: string
59
+ customTimeTo: string
60
+ validDateEnd: number
61
+ }>()
62
+
63
+ const emits = defineEmits<{
64
+ (event: 'select-power-row', value: UI_I_HardwareHealthSensorsGraph[]): void
65
+ (
66
+ event: 'select-temperature-row',
67
+ value: UI_I_HardwareHealthSensorsGraph[]
68
+ ): void
69
+ (event: 'update-chart-type', value: string): void
70
+ (event: 'update-custom-time', value: string): void
71
+ (event: 'update-timespan-type', value: string): void
72
+ (event: 'update-unit-count', value: number): void
73
+ (event: 'update-timespan-period-type', value: string): void
74
+ (event: 'update-custom-date-from', value: string): void
75
+ (event: 'update-custom-date-to', value: string): void
76
+ (event: 'update-custom-time-from', value: string): void
77
+ (event: 'update-custom-time-to', value: string): void
78
+ }>()
79
+
80
+ const totalMetricItems = ref<number>(0)
81
+ </script>
82
+
83
+ <style scoped lang="scss">
84
+ .chart-option-counters-container {
85
+ margin-top: 20px;
86
+ flex-basis: 80%;
87
+ padding-left: 15px;
88
+ max-width: 80%;
89
+ }
90
+ @media (max-width: 1024px) {
91
+ .chart-option-counters-container {
92
+ max-width: unset;
93
+ padding-left: 0;
94
+ }
95
+ }
96
+ </style>
@@ -1,66 +1,68 @@
1
- <template>
2
- <div class="timespan-objects-section-direction">
3
- <common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-timespan-form
4
- :language="props.language"
5
- :selected-chart-type="props.selectedChartType"
6
- :selected-timespan-type="props.selectedTimespanType"
7
- :units-count="props.unitsCount"
8
- :timespan-period-type="props.timespanPeriodType"
9
- :selected-custom-time="props.selectedCustomTime"
10
- :custom-date-from="props.customDateFrom"
11
- :custom-date-to="props.customDateTo"
12
- :custom-time-from="props.customTimeFrom"
13
- :custom-time-to="props.customTimeTo"
14
- @update-chart-type="emits('update-chart-type', $event)"
15
- @update-custom-time="emits('update-custom-time', $event)"
16
- @update-timespan-type="emits('update-timespan-type', $event)"
17
- @update-unit-count="emits('update-unit-count', $event)"
18
- @update-timespan-period-type="
19
- emits('update-timespan-period-type', $event)
20
- "
21
- @update-custom-date-from="emits('update-custom-date-from', $event)"
22
- @update-custom-date-to="emits('update-custom-date-to', $event)"
23
- @update-custom-time-from="emits('update-custom-time-from', $event)"
24
- @update-custom-time-to="emits('update-custom-time-to', $event)"
25
- />
26
- </div>
27
- </template>
28
-
29
- <script setup lang="ts">
30
- const props = defineProps<{
31
- language: string
32
- selectedChartType: string
33
- selectedTimespanType: string
34
- unitsCount: number
35
- timespanPeriodType: string
36
- selectedCustomTime: string
37
- customDateFrom: string
38
- customDateTo: string
39
- customTimeFrom: string
40
- customTimeTo: string
41
- }>()
42
-
43
- const emits = defineEmits<{
44
- (event: 'update-chart-type', value: string): void
45
- (event: 'update-custom-time', value: string): void
46
- (event: 'update-timespan-type', value: string): void
47
- (event: 'update-unit-count', value: number): void
48
- (event: 'update-timespan-period-type', value: string): void
49
- (event: 'update-custom-date-from', value: string): void
50
- (event: 'update-custom-date-to', value: string): void
51
- (event: 'update-custom-time-from', value: string): void
52
- (event: 'update-custom-time-to', value: string): void
53
- }>()
54
- </script>
55
-
56
- <style scoped lang="scss">
57
- .timespan-objects-section-direction {
58
- display: flex;
59
- flex-direction: row;
60
- }
61
- @media (max-width: 1024px) {
62
- .timespan-objects-section-direction {
63
- flex-direction: column;
64
- }
65
- }
66
- </style>
1
+ <template>
2
+ <div class="timespan-objects-section-direction">
3
+ <common-pages-hardware-health-history-testimony-tools-chart-options-modal-counters-timespan-form
4
+ :language="props.language"
5
+ :selected-chart-type="props.selectedChartType"
6
+ :selected-timespan-type="props.selectedTimespanType"
7
+ :units-count="props.unitsCount"
8
+ :timespan-period-type="props.timespanPeriodType"
9
+ :selected-custom-time="props.selectedCustomTime"
10
+ :custom-date-from="props.customDateFrom"
11
+ :custom-date-to="props.customDateTo"
12
+ :custom-time-from="props.customTimeFrom"
13
+ :custom-time-to="props.customTimeTo"
14
+ :valid-date-end="props.validDateEnd"
15
+ @update-chart-type="emits('update-chart-type', $event)"
16
+ @update-custom-time="emits('update-custom-time', $event)"
17
+ @update-timespan-type="emits('update-timespan-type', $event)"
18
+ @update-unit-count="emits('update-unit-count', $event)"
19
+ @update-timespan-period-type="
20
+ emits('update-timespan-period-type', $event)
21
+ "
22
+ @update-custom-date-from="emits('update-custom-date-from', $event)"
23
+ @update-custom-date-to="emits('update-custom-date-to', $event)"
24
+ @update-custom-time-from="emits('update-custom-time-from', $event)"
25
+ @update-custom-time-to="emits('update-custom-time-to', $event)"
26
+ />
27
+ </div>
28
+ </template>
29
+
30
+ <script setup lang="ts">
31
+ const props = defineProps<{
32
+ language: string
33
+ selectedChartType: string
34
+ selectedTimespanType: string
35
+ unitsCount: number
36
+ timespanPeriodType: string
37
+ selectedCustomTime: string
38
+ customDateFrom: string
39
+ customDateTo: string
40
+ customTimeFrom: string
41
+ customTimeTo: string
42
+ validDateEnd: number
43
+ }>()
44
+
45
+ const emits = defineEmits<{
46
+ (event: 'update-chart-type', value: string): void
47
+ (event: 'update-custom-time', value: string): void
48
+ (event: 'update-timespan-type', value: string): void
49
+ (event: 'update-unit-count', value: number): void
50
+ (event: 'update-timespan-period-type', value: string): void
51
+ (event: 'update-custom-date-from', value: string): void
52
+ (event: 'update-custom-date-to', value: string): void
53
+ (event: 'update-custom-time-from', value: string): void
54
+ (event: 'update-custom-time-to', value: string): void
55
+ }>()
56
+ </script>
57
+
58
+ <style scoped lang="scss">
59
+ .timespan-objects-section-direction {
60
+ display: flex;
61
+ flex-direction: row;
62
+ }
63
+ @media (max-width: 1024px) {
64
+ .timespan-objects-section-direction {
65
+ flex-direction: column;
66
+ }
67
+ }
68
+ </style>