bfg-common 1.4.780 → 1.4.781

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.
@@ -2777,7 +2777,8 @@
2777
2777
  },
2778
2778
  "storageDevice": {
2779
2779
  "repeatCount": "Паўтарыце падлік",
2780
- "relativeThroughput": "Адносная прапускная здольнасць"
2780
+ "relativeThroughput": "Адносная прапускная здольнасць",
2781
+ "valueMustBeBetween": "Значэнне павінна быць паміж {0} і {1}"
2781
2782
  },
2782
2783
  "scheduledTasks": {
2783
2784
  "chooseFrequency": "Выберыце частату",
@@ -2781,7 +2781,8 @@
2781
2781
  },
2782
2782
  "storageDevice": {
2783
2783
  "repeatCount": "Repeat Count",
2784
- "relativeThroughput": "Relative Throughput"
2784
+ "relativeThroughput": "Relative Throughput",
2785
+ "valueMustBeBetween": "The value must be between {0} and {1}"
2785
2786
  },
2786
2787
  "scheduledTasks": {
2787
2788
  "chooseFrequency": "Choose a frequency",
@@ -2781,7 +2781,8 @@
2781
2781
  },
2782
2782
  "storageDevice": {
2783
2783
  "repeatCount": "Կրկնել հաշվարկը",
2784
- "relativeThroughput": "Հարաբերական թողունակություն"
2784
+ "relativeThroughput": "Հարաբերական թողունակություն",
2785
+ "valueMustBeBetween": "Արժեքը պետք է լինի {0} and {1}-ի միջեւ"
2785
2786
  },
2786
2787
  "scheduledTasks": {
2787
2788
  "chooseFrequency": "Ընտրեք հաճախականություն",
@@ -2780,7 +2780,8 @@
2780
2780
  },
2781
2781
  "storageDevice": {
2782
2782
  "repeatCount": "Сананы қайталау",
2783
- "relativeThroughput": "Салыстырмалы өткізу қабілеті"
2783
+ "relativeThroughput": "Салыстырмалы өткізу қабілеті",
2784
+ "valueMustBeBetween": "Мән {0} және {1} арасында болуы керек"
2784
2785
  },
2785
2786
  "scheduledTasks": {
2786
2787
  "chooseFrequency": "Жиілікті таңдаңыз",
@@ -2782,7 +2782,8 @@
2782
2782
  },
2783
2783
  "storageDevice": {
2784
2784
  "repeatCount": "Повторить счет",
2785
- "relativeThroughput": "Относительная пропускная способность"
2785
+ "relativeThroughput": "Относительная пропускная способность",
2786
+ "valueMustBeBetween": "Значение должно быть между {0} и {1}"
2786
2787
  },
2787
2788
  "scheduledTasks": {
2788
2789
  "chooseFrequency": "Выберите частоту",
@@ -2779,7 +2779,8 @@
2779
2779
  },
2780
2780
  "storageDevice": {
2781
2781
  "repeatCount": "重复计数",
2782
- "relativeThroughput": "相对吞吐量"
2782
+ "relativeThroughput": "相对吞吐量",
2783
+ "valueMustBeBetween": "值必须在{0}和{1}之间"
2783
2784
  },
2784
2785
  "scheduledTasks": {
2785
2786
  "chooseFrequency": "选择频率",
@@ -2758,7 +2758,8 @@
2758
2758
  },
2759
2759
  "storageDevice": {
2760
2760
  "repeatCount": "عدد التكرار",
2761
- "relativeThroughput": "الإنتاجية النسبية"
2761
+ "relativeThroughput": "الإنتاجية النسبية",
2762
+ "valueMustBeBetween": "يجب أن تكون القيمة بين {0} و {1}"
2762
2763
  },
2763
2764
  "scheduledTasks": {
2764
2765
  "chooseFrequency": "اختر تكرارًا",
@@ -1045,7 +1045,8 @@ const exportItems = computed<UI_I_DropdownButtonItem[]>(() =>
1045
1045
  exportItemsFunc(
1046
1046
  localization.value,
1047
1047
  bodyItemsPresent.value.length || 0,
1048
- props.selectedRow?.length || 0
1048
+ props.selectedRow?.length || 0,
1049
+ props.testId || ''
1049
1050
  )
1050
1051
  )
1051
1052
  const onExport = (type: '0' | '1'): void => {
@@ -71,13 +71,15 @@ export const defaultHeadItems = (
71
71
  export const exportItemsFunc = (
72
72
  localization: UI_I_Localization,
73
73
  rows: number,
74
- selectedRows: number
74
+ selectedRows: number,
75
+ testId: string
75
76
  ): UI_I_DropdownButtonItem[] => {
76
77
  return [
77
78
  {
78
79
  text: localization.common.allRowsCount.replace('{0}', '' + rows),
79
80
  type: '0',
80
81
  disabled: false,
82
+ testId: `${testId}-export-all`,
81
83
  },
82
84
  {
83
85
  text: localization.common.selectedRowsCount.replace(
@@ -86,6 +88,7 @@ export const exportItemsFunc = (
86
88
  ),
87
89
  type: '1',
88
90
  disabled: false,
91
+ testId: `${testId}-export-selected`,
89
92
  },
90
93
  ]
91
94
  }
@@ -1,109 +1,109 @@
1
- <template>
2
- <div
3
- :class="[
4
- 'stack-block',
5
- { 'not-children': !props.hasChildren, open: isOpen },
6
- ]"
7
- >
8
- <div class="stack-block__label">
9
- <atoms-the-icon
10
- :data-id="`${props.testId}-toggle-icon`"
11
- name="angle"
12
- class="stack-block__icon"
13
- @click="onToggle"
14
- />
15
-
16
- <div class="stack-view-key">
17
- <slot name="stackBlockKey" />
18
- </div>
19
- <div class="stack-block-content" :data-id="props.testId">
20
- <slot name="stackBlockContent" />
21
- </div>
22
- </div>
23
-
24
- <div v-show="isOpen" class="stack-children">
25
- <div style="height: auto">
26
- <slot name="stackChildren" />
27
- </div>
28
- </div>
29
- </div>
30
- </template>
31
-
32
- <script setup lang="ts">
33
- const props = withDefaults(
34
- defineProps<{
35
- openByDefault?: boolean
36
- hasChildren: boolean
37
- testId?: string
38
- }>(),
39
- {
40
- openByDefault: false,
41
- testId: '',
42
- }
43
- )
44
- const emits = defineEmits<{
45
- (event: 'toggle', value: boolean): void
46
- }>()
47
- const isOpen = ref<boolean>(props.openByDefault || false)
48
- const onToggle = (): void => {
49
- isOpen.value = !isOpen.value
50
- emits('toggle', isOpen.value)
51
- }
52
- </script>
53
-
54
- <style scoped lang="scss">
55
- @import '~/assets/scss/common/mixins.scss';
56
- .stack-block {
57
- &.open {
58
- .stack-block__icon {
59
- transform: rotate(180deg);
60
- }
61
- }
62
-
63
- &__label {
64
- //padding: 7px 0 6px;
65
- @include flex($align: center);
66
- max-width: unset;
67
-
68
- &::before {
69
- display: none;
70
- }
71
-
72
- .stack-view-key {
73
- max-width: 40%;
74
- }
75
-
76
- .stack-block-content {
77
- padding: 0;
78
- flex: 1 1 auto;
79
- width: 60%;
80
- background-color: transparent;
81
- }
82
- }
83
- &__icon {
84
- width: 16px;
85
- height: 16px;
86
- margin-right: 4px;
87
- transform: rotate(90deg);
88
- align-self: center;
89
- fill: var(--triger-icon-color);
90
- cursor: pointer;
91
- }
92
-
93
- &.not-children {
94
- .stack-block__label {
95
- padding: 0 0 3px 0;
96
- background-color: transparent;
97
-
98
- .stack-view-key {
99
- max-width: 20%;
100
- flex: 1 1 130px;
101
- }
102
- }
103
-
104
- .stack-block__icon {
105
- opacity: 0;
106
- }
107
- }
108
- }
109
- </style>
1
+ <template>
2
+ <div
3
+ :class="[
4
+ 'stack-block',
5
+ { 'not-children': !props.hasChildren, open: isOpen },
6
+ ]"
7
+ >
8
+ <div class="stack-block__label">
9
+ <atoms-the-icon
10
+ :data-id="`${props.testId}-toggle-icon`"
11
+ name="angle"
12
+ class="stack-block__icon"
13
+ @click="onToggle"
14
+ />
15
+
16
+ <div class="stack-view-key">
17
+ <slot name="stackBlockKey" />
18
+ </div>
19
+ <div class="stack-block-content" :data-id="props.testId">
20
+ <slot name="stackBlockContent" />
21
+ </div>
22
+ </div>
23
+
24
+ <div v-show="isOpen" class="stack-children">
25
+ <div style="height: auto">
26
+ <slot name="stackChildren" />
27
+ </div>
28
+ </div>
29
+ </div>
30
+ </template>
31
+
32
+ <script setup lang="ts">
33
+ const props = withDefaults(
34
+ defineProps<{
35
+ openByDefault?: boolean
36
+ hasChildren: boolean
37
+ testId?: string
38
+ }>(),
39
+ {
40
+ openByDefault: false,
41
+ testId: '',
42
+ }
43
+ )
44
+ const emits = defineEmits<{
45
+ (event: 'toggle', value: boolean): void
46
+ }>()
47
+ const isOpen = ref<boolean>(props.openByDefault || false)
48
+ const onToggle = (): void => {
49
+ isOpen.value = !isOpen.value
50
+ emits('toggle', isOpen.value)
51
+ }
52
+ </script>
53
+
54
+ <style scoped lang="scss">
55
+ @import '~/assets/scss/common/mixins.scss';
56
+ .stack-block {
57
+ &.open {
58
+ .stack-block__icon {
59
+ transform: rotate(180deg);
60
+ }
61
+ }
62
+
63
+ &__label {
64
+ //padding: 7px 0 6px;
65
+ @include flex($align: center);
66
+ max-width: unset;
67
+
68
+ &::before {
69
+ display: none;
70
+ }
71
+
72
+ .stack-view-key {
73
+ max-width: 40%;
74
+ }
75
+
76
+ .stack-block-content {
77
+ padding: 0;
78
+ flex: 1 1 auto;
79
+ width: 60%;
80
+ background-color: transparent;
81
+ }
82
+ }
83
+ &__icon {
84
+ width: 16px;
85
+ height: 16px;
86
+ margin-right: 4px;
87
+ transform: rotate(90deg);
88
+ align-self: center;
89
+ fill: var(--triger-icon-color);
90
+ cursor: pointer;
91
+ }
92
+
93
+ &.not-children {
94
+ .stack-block__label {
95
+ padding: 0 0 3px 0;
96
+ background-color: transparent;
97
+
98
+ .stack-view-key {
99
+ max-width: 20%;
100
+ flex: 1 1 130px;
101
+ }
102
+ }
103
+
104
+ .stack-block__icon {
105
+ opacity: 0;
106
+ }
107
+ }
108
+ }
109
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.780",
4
+ "version": "1.4.781",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",