bfg-common 1.5.554 → 1.5.556

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,60 +1,60 @@
1
- <template>
2
- <common-vm-actions-common-customize-hardware-vmoptions-tools-new
3
- v-if="isNewView"
4
- v-model:balloon="balloonLocal"
5
- :disabled="isDisabled"
6
- />
7
- <common-vm-actions-common-customize-hardware-vmoptions-tools-old
8
- v-else
9
- v-model:balloon="balloonLocal"
10
- :disabled="isDisabled"
11
- />
12
- </template>
13
-
14
- <script setup lang="ts">
15
- import type { UI_I_SendDataTools } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
16
-
17
- const props = withDefaults(
18
- defineProps<{
19
- tools: boolean
20
- balloon: boolean
21
- isEdit: boolean
22
- state?: string | number
23
- }>(),
24
- {
25
- tools: true,
26
- balloon: true,
27
- state: undefined,
28
- }
29
- )
30
- const emits = defineEmits<{
31
- (event: 'send-data', value: UI_I_SendDataTools): void
32
- }>()
33
-
34
- const toolsLocal = ref<boolean>(props.tools)
35
- const balloonLocal = ref<boolean>(props.balloon)
36
-
37
- const isDisabled = computed<boolean>(() => props.isEdit && props.state !== 1)
38
-
39
- watch(
40
- balloonLocal,
41
- () => {
42
- emits('send-data', {
43
- enabled: toolsLocal.value,
44
- synchronized_time: toolsLocal.value,
45
- balloon: balloonLocal.value,
46
- })
47
- },
48
- { immediate: true }
49
- )
50
-
51
- const { $store }: any = useNuxtApp()
52
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
53
- </script>
54
-
55
- <style scoped lang="scss">
56
- #tools-1,
57
- #tools-2 {
58
- margin: 0 4px 4px 0;
59
- }
60
- </style>
1
+ <template>
2
+ <common-vm-actions-common-customize-hardware-vmoptions-tools-new
3
+ v-if="isNewView"
4
+ v-model:balloon="balloonLocal"
5
+ :disabled="isDisabled"
6
+ />
7
+ <common-vm-actions-common-customize-hardware-vmoptions-tools-old
8
+ v-else
9
+ v-model:balloon="balloonLocal"
10
+ :disabled="isDisabled"
11
+ />
12
+ </template>
13
+
14
+ <script setup lang="ts">
15
+ import type { UI_I_SendDataTools } from '~/components/common/vm/actions/common/customizeHardware/vmoptions/lib/models/interfaces'
16
+
17
+ const props = withDefaults(
18
+ defineProps<{
19
+ tools: boolean
20
+ balloon: boolean
21
+ isEdit: boolean
22
+ state?: string | number
23
+ }>(),
24
+ {
25
+ tools: true,
26
+ balloon: false,
27
+ state: undefined,
28
+ }
29
+ )
30
+ const emits = defineEmits<{
31
+ (event: 'send-data', value: UI_I_SendDataTools): void
32
+ }>()
33
+
34
+ const toolsLocal = ref<boolean>(props.tools)
35
+ const balloonLocal = ref<boolean>(props.balloon)
36
+
37
+ const isDisabled = computed<boolean>(() => props.isEdit && props.state !== 1)
38
+
39
+ watch(
40
+ balloonLocal,
41
+ () => {
42
+ emits('send-data', {
43
+ enabled: toolsLocal.value,
44
+ synchronized_time: toolsLocal.value,
45
+ balloon: balloonLocal.value,
46
+ })
47
+ },
48
+ { immediate: true }
49
+ )
50
+
51
+ const { $store }: any = useNuxtApp()
52
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
53
+ </script>
54
+
55
+ <style scoped lang="scss">
56
+ #tools-1,
57
+ #tools-2 {
58
+ margin: 0 4px 4px 0;
59
+ }
60
+ </style>
@@ -1,86 +1,86 @@
1
- <template>
2
- <div class="hardware-tools">
3
- <atoms-stack-block test-id="tools-stack-block" has-children>
4
- <template #stackBlockKey>
5
- <div
6
- id="vm-wizard-toggle-block-tools"
7
- data-id="vm-wizard-toggle-block-tools"
8
- class="flex-align-center"
9
- >
10
- <span>{{ localization.common.tools }}</span>
11
- </div>
12
- </template>
13
- <template #stackChildren>
14
- <!-- TODO 700-->
15
- <!-- <atoms-stack-block-->
16
- <!-- :has-children="false"-->
17
- <!-- test-id="tools-stack-block-children"-->
18
- <!-- >-->
19
- <!-- <template #stackBlockKey>-->
20
- <!-- {{ localization.common.toolsEnable }}-->
21
- <!-- </template>-->
22
- <!-- <template #stackBlockContent>-->
23
- <!-- <div-->
24
- <!-- :title="localization.common.inDevelopment"-->
25
- <!-- class="cursor-not-allowed"-->
26
- <!-- >-->
27
- <!-- <input-->
28
- <!-- id="tools-2"-->
29
- <!-- v-model="tools"-->
30
- <!-- disabled-->
31
- <!-- data-id="tools-2-checkbox"-->
32
- <!-- type="checkbox"-->
33
- <!-- />-->
34
- <!-- <label-->
35
- <!-- for="tools-2"-->
36
- <!-- class="label-text-normal cursor-not-allowed"-->
37
- <!-- >{{ localization.common.enable }}</label-->
38
- <!-- >-->
39
- <!-- </div>-->
40
- <!-- </template>-->
41
- <!-- </atoms-stack-block>-->
42
- <atoms-stack-block
43
- :has-children="false"
44
- test-id="tools-stack-block-children"
45
- >
46
- <template #stackBlockKey>
47
- {{ localization.common.balloon }}
48
- </template>
49
- <template #stackBlockContent>
50
- <input
51
- id="balloon"
52
- v-model="balloon"
53
- :disabled="props.disabled"
54
- data-id="balloon-checkbox"
55
- type="checkbox"
56
- />
57
- <label for="balloon" class="label-text-normal">{{
58
- localization.common.enable
59
- }}</label>
60
- </template>
61
- </atoms-stack-block>
62
- </template>
63
- </atoms-stack-block>
64
- </div>
65
- </template>
66
-
67
- <script setup lang="ts">
68
- import type { UI_I_Localization } from '~/lib/models/interfaces'
69
-
70
- // const tools = defineModel<boolean>('tools', { required: true })
71
- const balloon = defineModel<boolean>('balloon', { required: true })
72
-
73
- const props = defineProps<{
74
- disabled: boolean
75
- }>()
76
-
77
- const localization = computed<UI_I_Localization>(() => useLocal())
78
- </script>
79
-
80
- <style scoped lang="scss">
81
- #tools-1,
82
- #tools-2,
83
- #balloon {
84
- margin: 0 4px 4px 0;
85
- }
86
- </style>
1
+ <template>
2
+ <div class="hardware-tools">
3
+ <atoms-stack-block test-id="tools-stack-block" has-children>
4
+ <template #stackBlockKey>
5
+ <div
6
+ id="vm-wizard-toggle-block-tools"
7
+ data-id="vm-wizard-toggle-block-tools"
8
+ class="flex-align-center"
9
+ >
10
+ <span>{{ localization.common.tools }}</span>
11
+ </div>
12
+ </template>
13
+ <template #stackChildren>
14
+ <!-- TODO 700-->
15
+ <!-- <atoms-stack-block-->
16
+ <!-- :has-children="false"-->
17
+ <!-- test-id="tools-stack-block-children"-->
18
+ <!-- >-->
19
+ <!-- <template #stackBlockKey>-->
20
+ <!-- {{ localization.common.toolsEnable }}-->
21
+ <!-- </template>-->
22
+ <!-- <template #stackBlockContent>-->
23
+ <!-- <div-->
24
+ <!-- :title="localization.common.inDevelopment"-->
25
+ <!-- class="cursor-not-allowed"-->
26
+ <!-- >-->
27
+ <!-- <input-->
28
+ <!-- id="tools-2"-->
29
+ <!-- v-model="tools"-->
30
+ <!-- disabled-->
31
+ <!-- data-id="tools-2-checkbox"-->
32
+ <!-- type="checkbox"-->
33
+ <!-- />-->
34
+ <!-- <label-->
35
+ <!-- for="tools-2"-->
36
+ <!-- class="label-text-normal cursor-not-allowed"-->
37
+ <!-- >{{ localization.common.enable }}</label-->
38
+ <!-- >-->
39
+ <!-- </div>-->
40
+ <!-- </template>-->
41
+ <!-- </atoms-stack-block>-->
42
+ <atoms-stack-block
43
+ :has-children="false"
44
+ test-id="tools-stack-block-children"
45
+ >
46
+ <template #stackBlockKey>
47
+ {{ localization.common.balloon }}
48
+ </template>
49
+ <template #stackBlockContent>
50
+ <input
51
+ id="balloon"
52
+ v-model="balloon"
53
+ :disabled="props.disabled"
54
+ data-id="balloon-checkbox"
55
+ type="checkbox"
56
+ />
57
+ <label for="balloon" class="label-text-normal">{{
58
+ localization.common.enable
59
+ }}</label>
60
+ </template>
61
+ </atoms-stack-block>
62
+ </template>
63
+ </atoms-stack-block>
64
+ </div>
65
+ </template>
66
+
67
+ <script setup lang="ts">
68
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
69
+
70
+ // const tools = defineModel<boolean>('tools', { required: true })
71
+ const balloon = defineModel<boolean>('balloon', { required: true })
72
+
73
+ const props = defineProps<{
74
+ disabled: boolean
75
+ }>()
76
+
77
+ const localization = computed<UI_I_Localization>(() => useLocal())
78
+ </script>
79
+
80
+ <style scoped lang="scss">
81
+ #tools-1,
82
+ #tools-2,
83
+ #balloon {
84
+ margin: 0 4px 4px 0;
85
+ }
86
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.554",
4
+ "version": "1.5.556",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",