bfg-common 1.1.8 → 1.1.10
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.
- package/components/atoms/alert/Notification.vue +167 -167
- package/components/atoms/autocomplete/Autocomplete.vue +236 -236
- package/components/atoms/datepicker/Datepicker.vue +612 -612
- package/components/atoms/list/SelectList.vue +62 -62
- package/components/atoms/nav/NavBar.vue +116 -116
- package/components/atoms/nav/VerticalNavBar.vue +89 -89
- package/components/atoms/notificationBar/NotificationBar.vue +174 -174
- package/components/atoms/perPage/PerPage.vue +52 -52
- package/components/atoms/popup/SimplePopup.vue +90 -90
- package/components/atoms/step/VerticalStep.vue +104 -104
- package/components/atoms/switch/Switch.vue +107 -107
- package/components/atoms/table/dataGrid/DataGrid.vue +1475 -1475
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -204
- package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
- package/components/atoms/tabs/Tabs.vue +189 -189
- package/components/atoms/tooltip/Signpost.vue +224 -224
- package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
- package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
- package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
- package/components/common/browse/Browse.vue +182 -182
- package/components/common/browse/blocks/Title.vue +66 -66
- package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
- package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
- package/components/common/diagramMain/network/Contents.vue +238 -238
- package/components/common/feedback/Buttons.vue +232 -232
- package/components/common/feedback/Message.vue +468 -468
- package/components/common/feedback/VisitPortal.vue +54 -54
- package/components/common/help/navbar/left/Left.vue +139 -139
- package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
- package/components/common/modals/Rename.vue +165 -165
- package/components/common/monitor/advanced/Advanced.vue +5 -0
- package/components/common/monitor/advanced/GraphView.vue +10 -1
- package/components/common/monitor/advanced/tools/Tools.vue +4 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +6 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +4 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +121 -113
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +7 -0
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +34 -2
- package/components/common/perPage/PerPage.vue +51 -51
- package/components/common/recursionTree/RecursionTree.vue +201 -201
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
- package/models/store/storage/interfaces.ts +32 -32
- package/modules/fixContentBuild/index.ts +80 -80
- package/modules/fixContentBuild/utils/methods.ts +114 -114
- package/package.json +1 -1
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +369 -369
- package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
- package/public/spice-console-minify/lib/jgestures.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
- package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
- package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
- package/utils/contentBuild.ts +34 -34
|
@@ -1,113 +1,121 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vertical-flex-container chart-option-counters-vertical-split">
|
|
3
|
-
<span class="chart-options-grid-title">{{
|
|
4
|
-
localization.selectCountersForThisChart
|
|
5
|
-
}}</span>
|
|
6
|
-
|
|
7
|
-
<atoms-table-data-grid
|
|
8
|
-
v-model:selected-row="selectedCounters"
|
|
9
|
-
v-model:column-keys="columnItems"
|
|
10
|
-
v-model:page-size="pagination.pageSize"
|
|
11
|
-
v-model:page="pagination.page"
|
|
12
|
-
type="checkbox"
|
|
13
|
-
class="data-table"
|
|
14
|
-
:head-items="headItems"
|
|
15
|
-
:body-items="bodyItems"
|
|
16
|
-
:total-items="totalItems"
|
|
17
|
-
:total-pages="totalPages"
|
|
18
|
-
hide-footer
|
|
19
|
-
server-off
|
|
20
|
-
@change="onChangeRow"
|
|
21
|
-
/>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script setup lang="ts">
|
|
26
|
-
import {
|
|
27
|
-
UI_I_HeadItem,
|
|
28
|
-
UI_I_BodyItem,
|
|
29
|
-
UI_I_ColumnKey,
|
|
30
|
-
} from '~/components/atoms/table/dataGrid/models/interfaces'
|
|
31
|
-
import { UI_I_Localization } from '~/models/interfaces'
|
|
32
|
-
import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/tableConfig'
|
|
33
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/models/interfaces'
|
|
34
|
-
import {
|
|
35
|
-
T_ChartHost,
|
|
36
|
-
T_ChartVm,
|
|
37
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/models/types'
|
|
38
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/models/types'
|
|
39
|
-
import { countersItemsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/utils'
|
|
40
|
-
|
|
41
|
-
const props = defineProps<{
|
|
42
|
-
chart: T_ChartHost | T_ChartVm
|
|
43
|
-
type: UI_T_AdvancedType
|
|
44
|
-
selectedKeys: number[]
|
|
45
|
-
}>()
|
|
46
|
-
|
|
47
|
-
const emits = defineEmits<{
|
|
48
|
-
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
49
|
-
}>()
|
|
50
|
-
|
|
51
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
52
|
-
|
|
53
|
-
const counters = computed<UI_I_AdvancedCounterItem[]>(() =>
|
|
54
|
-
countersItemsFunc(props.type, props.chart, localization.value)
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
const totalItems = computed<number>(() => counters.value.length)
|
|
58
|
-
const totalPages = computed<number>(() => 1)
|
|
59
|
-
|
|
60
|
-
const selectedCounters = ref<number[]>([])
|
|
61
|
-
watch(
|
|
62
|
-
() => props.selectedKeys,
|
|
63
|
-
(newValue) => {
|
|
64
|
-
selectedCounters.value = newValue
|
|
65
|
-
},
|
|
66
|
-
{ immediate: true, deep: true }
|
|
67
|
-
)
|
|
68
|
-
watch(
|
|
69
|
-
() => props.chart,
|
|
70
|
-
() => {
|
|
71
|
-
selectedCounters.value = []
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
const pagination = ref<any>({
|
|
75
|
-
page: 1,
|
|
76
|
-
pageSize: 35,
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
const columnItems = computed<UI_I_ColumnKey[]>(() =>
|
|
80
|
-
table.columnKeys(localization.value)
|
|
81
|
-
)
|
|
82
|
-
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
83
|
-
table.headItems(localization.value)
|
|
84
|
-
)
|
|
85
|
-
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
86
|
-
|
|
87
|
-
watch(
|
|
88
|
-
counters,
|
|
89
|
-
(newValue) => {
|
|
90
|
-
if (!newValue.length) return
|
|
91
|
-
|
|
92
|
-
bodyItems.value = table.bodyItems(newValue)
|
|
93
|
-
},
|
|
94
|
-
{ deep: true, immediate: true }
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
const onChangeRow = (val: number[]): void => {
|
|
98
|
-
const result: UI_I_AdvancedCounterItem[] = []
|
|
99
|
-
|
|
100
|
-
counters.value.forEach((item) => {
|
|
101
|
-
if (val.includes(item.id)) result.push(item)
|
|
102
|
-
})
|
|
103
|
-
|
|
104
|
-
emits('select-row', result)
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vertical-flex-container chart-option-counters-vertical-split">
|
|
3
|
+
<span class="chart-options-grid-title">{{
|
|
4
|
+
localization.selectCountersForThisChart
|
|
5
|
+
}}</span>
|
|
6
|
+
|
|
7
|
+
<atoms-table-data-grid
|
|
8
|
+
v-model:selected-row="selectedCounters"
|
|
9
|
+
v-model:column-keys="columnItems"
|
|
10
|
+
v-model:page-size="pagination.pageSize"
|
|
11
|
+
v-model:page="pagination.page"
|
|
12
|
+
type="checkbox"
|
|
13
|
+
class="data-table"
|
|
14
|
+
:head-items="headItems"
|
|
15
|
+
:body-items="bodyItems"
|
|
16
|
+
:total-items="totalItems"
|
|
17
|
+
:total-pages="totalPages"
|
|
18
|
+
hide-footer
|
|
19
|
+
server-off
|
|
20
|
+
@change="onChangeRow"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script setup lang="ts">
|
|
26
|
+
import {
|
|
27
|
+
UI_I_HeadItem,
|
|
28
|
+
UI_I_BodyItem,
|
|
29
|
+
UI_I_ColumnKey,
|
|
30
|
+
} from '~/components/atoms/table/dataGrid/models/interfaces'
|
|
31
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
32
|
+
import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/tableConfig'
|
|
33
|
+
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/models/interfaces'
|
|
34
|
+
import {
|
|
35
|
+
T_ChartHost,
|
|
36
|
+
T_ChartVm,
|
|
37
|
+
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/models/types'
|
|
38
|
+
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/models/types'
|
|
39
|
+
import { countersItemsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/config/utils'
|
|
40
|
+
|
|
41
|
+
const props = defineProps<{
|
|
42
|
+
chart: T_ChartHost | T_ChartVm
|
|
43
|
+
type: UI_T_AdvancedType
|
|
44
|
+
selectedKeys: number[]
|
|
45
|
+
}>()
|
|
46
|
+
|
|
47
|
+
const emits = defineEmits<{
|
|
48
|
+
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
49
|
+
}>()
|
|
50
|
+
|
|
51
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
52
|
+
|
|
53
|
+
const counters = computed<UI_I_AdvancedCounterItem[]>(() =>
|
|
54
|
+
countersItemsFunc(props.type, props.chart, localization.value)
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
const totalItems = computed<number>(() => counters.value.length)
|
|
58
|
+
const totalPages = computed<number>(() => 1)
|
|
59
|
+
|
|
60
|
+
const selectedCounters = ref<number[]>([])
|
|
61
|
+
watch(
|
|
62
|
+
() => props.selectedKeys,
|
|
63
|
+
(newValue) => {
|
|
64
|
+
selectedCounters.value = newValue
|
|
65
|
+
},
|
|
66
|
+
{ immediate: true, deep: true }
|
|
67
|
+
)
|
|
68
|
+
watch(
|
|
69
|
+
() => props.chart,
|
|
70
|
+
() => {
|
|
71
|
+
selectedCounters.value = []
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
const pagination = ref<any>({
|
|
75
|
+
page: 1,
|
|
76
|
+
pageSize: 35,
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
const columnItems = computed<UI_I_ColumnKey[]>(() =>
|
|
80
|
+
table.columnKeys(localization.value)
|
|
81
|
+
)
|
|
82
|
+
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
83
|
+
table.headItems(localization.value)
|
|
84
|
+
)
|
|
85
|
+
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
86
|
+
|
|
87
|
+
watch(
|
|
88
|
+
counters,
|
|
89
|
+
(newValue) => {
|
|
90
|
+
if (!newValue.length) return
|
|
91
|
+
|
|
92
|
+
bodyItems.value = table.bodyItems(newValue)
|
|
93
|
+
},
|
|
94
|
+
{ deep: true, immediate: true }
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
const onChangeRow = (val: number[]): void => {
|
|
98
|
+
const result: UI_I_AdvancedCounterItem[] = []
|
|
99
|
+
|
|
100
|
+
counters.value.forEach((item) => {
|
|
101
|
+
if (val.includes(item.id)) result.push(item)
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
emits('select-row', result)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
watch(
|
|
108
|
+
selectedCounters,
|
|
109
|
+
(newValue) => {
|
|
110
|
+
onChangeRow(newValue)
|
|
111
|
+
},
|
|
112
|
+
{ immediate: true }
|
|
113
|
+
)
|
|
114
|
+
</script>
|
|
115
|
+
|
|
116
|
+
<style scoped lang="scss">
|
|
117
|
+
.chart-options-grid-title {
|
|
118
|
+
display: block;
|
|
119
|
+
margin-bottom: -20px;
|
|
120
|
+
}
|
|
121
|
+
</style>
|
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
<div class="timespan-objects-section-direction flex horizontal">
|
|
3
3
|
<common-monitor-advanced-tools-chart-options-modal-counters-timespan-form
|
|
4
4
|
:language="props.language"
|
|
5
|
+
:selected-chart-type="props.selectedChartType"
|
|
6
|
+
@update-chart-type="emits('update-chart-type', $event)"
|
|
5
7
|
/>
|
|
6
8
|
<common-monitor-advanced-tools-chart-options-modal-counters-timespan-object
|
|
7
9
|
:selected="props.selected"
|
|
@@ -15,6 +17,11 @@ import { UI_I_AdvancedTargetObject } from '~/components/common/monitor/advanced/
|
|
|
15
17
|
const props = defineProps<{
|
|
16
18
|
selected: UI_I_AdvancedTargetObject[][]
|
|
17
19
|
language: string
|
|
20
|
+
selectedChartType: string
|
|
21
|
+
}>()
|
|
22
|
+
|
|
23
|
+
const emits = defineEmits<{
|
|
24
|
+
(event: 'update-chart-type', value: string): void
|
|
18
25
|
}>()
|
|
19
26
|
</script>
|
|
20
27
|
|
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue
CHANGED
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
>{{ localization.chartType }}:</label
|
|
189
189
|
>
|
|
190
190
|
<div class="select">
|
|
191
|
-
<select id="chart-type-select" v-model="
|
|
191
|
+
<select id="chart-type-select" v-model="chartType">
|
|
192
192
|
<option
|
|
193
193
|
v-for="(item, index) in chartTypeOptions"
|
|
194
194
|
:key="index"
|
|
@@ -216,6 +216,11 @@ import {
|
|
|
216
216
|
|
|
217
217
|
const props = defineProps<{
|
|
218
218
|
language: string
|
|
219
|
+
selectedChartType: string
|
|
220
|
+
}>()
|
|
221
|
+
|
|
222
|
+
const emits = defineEmits<{
|
|
223
|
+
(event: 'update-chart-type', value: string): void
|
|
219
224
|
}>()
|
|
220
225
|
|
|
221
226
|
const { $formattedDate, $isDate, $getTimeFormat, $getUnixByDate } = useNuxtApp()
|
|
@@ -236,11 +241,38 @@ const customTimeOptions = computed<UI_I_OptionItem[]>(() =>
|
|
|
236
241
|
customTimeFunc(localization.value)
|
|
237
242
|
)
|
|
238
243
|
|
|
239
|
-
const
|
|
244
|
+
const chartType = ref<string>('line_graph')
|
|
240
245
|
const chartTypeOptions = computed<UI_I_OptionItem[]>(() =>
|
|
241
246
|
chartTypeFunc(localization.value)
|
|
242
247
|
)
|
|
243
248
|
|
|
249
|
+
const setCurrentChartType = (): void => {
|
|
250
|
+
const selected = props.selectedChartType
|
|
251
|
+
let result = 'line_graph'
|
|
252
|
+
|
|
253
|
+
if (selected === 'spline') result = 'line_graph'
|
|
254
|
+
else if (selected === 'area') result = 'stacked_graph'
|
|
255
|
+
|
|
256
|
+
chartType.value = result
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
watch(
|
|
260
|
+
() => props.selectedChartType,
|
|
261
|
+
() => {
|
|
262
|
+
setCurrentChartType()
|
|
263
|
+
},
|
|
264
|
+
{ immediate: true }
|
|
265
|
+
)
|
|
266
|
+
|
|
267
|
+
watch(chartType, (newValue) => {
|
|
268
|
+
let currentValue = 'spline'
|
|
269
|
+
|
|
270
|
+
if (newValue === 'line_graph') currentValue = 'spline'
|
|
271
|
+
else if (newValue === 'stacked_graph') currentValue = 'area'
|
|
272
|
+
|
|
273
|
+
emits('update-chart-type', currentValue)
|
|
274
|
+
})
|
|
275
|
+
|
|
244
276
|
const yesterday = new Date().setDate(new Date().getDate() - 1)
|
|
245
277
|
const dateFrom = ref<number>(yesterday)
|
|
246
278
|
const dateTo = ref<number>(new Date().getTime())
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="page-size">
|
|
3
|
-
{{ selectLabel }}
|
|
4
|
-
|
|
5
|
-
<div class="clr-select-wrapper">
|
|
6
|
-
<select
|
|
7
|
-
:id="`${props.testId}-page-size-select`"
|
|
8
|
-
:value="props.pageSize"
|
|
9
|
-
class="clr-page-size-select"
|
|
10
|
-
@change="change"
|
|
11
|
-
>
|
|
12
|
-
<option
|
|
13
|
-
v-for="(item, key) in props.options"
|
|
14
|
-
:key="key"
|
|
15
|
-
:value="item.value"
|
|
16
|
-
>
|
|
17
|
-
{{ item.text }}
|
|
18
|
-
</option>
|
|
19
|
-
</select>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script setup lang="ts">
|
|
25
|
-
import { UI_I_Localization } from '~/models/interfaces'
|
|
26
|
-
import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
|
|
27
|
-
|
|
28
|
-
const props = withDefaults(
|
|
29
|
-
defineProps<{
|
|
30
|
-
testId: string
|
|
31
|
-
pageSize: number
|
|
32
|
-
options: UI_I_OptionItem[]
|
|
33
|
-
label?: string
|
|
34
|
-
}>(),
|
|
35
|
-
{
|
|
36
|
-
label: 'itemsPerPage',
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
const emits = defineEmits<{
|
|
40
|
-
(event: 'change', num: number): void
|
|
41
|
-
}>()
|
|
42
|
-
|
|
43
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
44
|
-
const selectLabel = computed<string>(() => localization.value[props.label])
|
|
45
|
-
|
|
46
|
-
const change = (e: InputEvent): void => {
|
|
47
|
-
emits('change', +(e.target as HTMLInputElement).value)
|
|
48
|
-
}
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<style scoped></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page-size">
|
|
3
|
+
{{ selectLabel }}
|
|
4
|
+
|
|
5
|
+
<div class="clr-select-wrapper">
|
|
6
|
+
<select
|
|
7
|
+
:id="`${props.testId}-page-size-select`"
|
|
8
|
+
:value="props.pageSize"
|
|
9
|
+
class="clr-page-size-select"
|
|
10
|
+
@change="change"
|
|
11
|
+
>
|
|
12
|
+
<option
|
|
13
|
+
v-for="(item, key) in props.options"
|
|
14
|
+
:key="key"
|
|
15
|
+
:value="item.value"
|
|
16
|
+
>
|
|
17
|
+
{{ item.text }}
|
|
18
|
+
</option>
|
|
19
|
+
</select>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script setup lang="ts">
|
|
25
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
26
|
+
import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
|
|
27
|
+
|
|
28
|
+
const props = withDefaults(
|
|
29
|
+
defineProps<{
|
|
30
|
+
testId: string
|
|
31
|
+
pageSize: number
|
|
32
|
+
options: UI_I_OptionItem[]
|
|
33
|
+
label?: string
|
|
34
|
+
}>(),
|
|
35
|
+
{
|
|
36
|
+
label: 'itemsPerPage',
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
const emits = defineEmits<{
|
|
40
|
+
(event: 'change', num: number): void
|
|
41
|
+
}>()
|
|
42
|
+
|
|
43
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
44
|
+
const selectLabel = computed<string>(() => localization.value[props.label])
|
|
45
|
+
|
|
46
|
+
const change = (e: InputEvent): void => {
|
|
47
|
+
emits('change', +(e.target as HTMLInputElement).value)
|
|
48
|
+
}
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<style scoped></style>
|