bfg-common 1.0.53 → 1.0.55

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.
Files changed (57) hide show
  1. package/components/atoms/alert/Notification.vue +167 -167
  2. package/components/atoms/autocomplete/Autocomplete.vue +236 -236
  3. package/components/atoms/datepicker/Datepicker.vue +612 -612
  4. package/components/atoms/list/SelectList.vue +62 -62
  5. package/components/atoms/modal/bySteps/BySteps.vue +234 -234
  6. package/components/atoms/nav/NavBar.vue +116 -116
  7. package/components/atoms/nav/VerticalNavBar.vue +89 -89
  8. package/components/atoms/notificationBar/NotificationBar.vue +174 -174
  9. package/components/atoms/perPage/PerPage.vue +52 -52
  10. package/components/atoms/popup/SimplePopup.vue +90 -90
  11. package/components/atoms/step/VerticalStep.vue +104 -104
  12. package/components/atoms/switch/Switch.vue +107 -107
  13. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -204
  14. package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
  15. package/components/atoms/table/dataGrid/DataGridPagination.vue +83 -83
  16. package/components/atoms/tabs/Tabs.vue +189 -189
  17. package/components/atoms/tooltip/Signpost.vue +224 -224
  18. package/components/common/accordion/Accordion.vue +186 -176
  19. package/components/common/accordion/Recursion.vue +202 -195
  20. package/components/common/accordion/models/interfaces.ts +1 -0
  21. package/components/common/accordion/utils/accordion.ts +31 -0
  22. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  23. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  24. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  25. package/components/common/browse/Browse.vue +182 -182
  26. package/components/common/browse/blocks/Title.vue +66 -66
  27. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  28. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  29. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  30. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  31. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  32. package/components/common/diagramMain/modals/viewSettings/Info.vue +94 -94
  33. package/components/common/diagramMain/network/Contents.vue +238 -238
  34. package/components/common/feedback/Buttons.vue +232 -232
  35. package/components/common/feedback/Message.vue +468 -468
  36. package/components/common/feedback/VisitPortal.vue +54 -54
  37. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
  38. package/components/common/modals/Rename.vue +165 -165
  39. package/components/common/perPage/PerPage.vue +51 -51
  40. package/components/common/recursionTree/RecursionTree.vue +201 -201
  41. package/components/common/tools/Actions.vue +163 -141
  42. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
  43. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  44. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  45. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  46. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  47. package/models/store/storage/interfaces.ts +32 -32
  48. package/package.json +1 -1
  49. package/public/spice-console/application/codec.js +257 -257
  50. package/public/spice-console/lib/rasterEngine.js +907 -907
  51. package/public/spice-console/network/spicechannel.js +369 -369
  52. package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
  53. package/public/spice-console-minify/lib/jgestures.min.js +24 -24
  54. package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
  55. package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
  56. package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
  57. package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
@@ -1,141 +1,163 @@
1
- <template>
2
- <div :id="id" class="btn-group">
3
- <div v-for="(button, key) in props.actions" :key="button.type">
4
- <label v-if="button.uploaded">
5
- <span :class="[`btn btn-link ${props.size}`]">
6
- {{ button.text }}
7
- </span>
8
- <input
9
- :id="`select-file-button-${key}`"
10
- type="file"
11
- :disabled="button.disabled"
12
- :multiple="false"
13
- class="btn-group__file"
14
- @change="(event) => onSelectFiles(event, button.type)"
15
- />
16
- </label>
17
-
18
- <button
19
- v-else
20
- :id="`actions-button-${key}`"
21
- :class="[`btn btn-link ${props.size}`]"
22
- :disabled="button.disabled"
23
- @click="onClickButton(button.type)"
24
- >
25
- {{ button.text }}
26
- </button>
27
- </div>
28
- <atoms-collapse-nav
29
- v-show="collapsedItems.length"
30
- :test-id="`${props.testId}-item`"
31
- :items="collapsedItems"
32
- @change="onClickButton"
33
- @select-file="onSelectFiles"
34
- />
35
- </div>
36
- </template>
37
-
38
- <script lang="ts" setup>
39
- import { UI_I_Button } from '~/components/common/tools/models/interfaces'
40
- import { UI_I_CollapseNavItem } from '~/components/atoms/collapse/models/interfaces'
41
-
42
- const props = withDefaults(
43
- defineProps<{
44
- actions: UI_I_Button[]
45
- testId: string
46
- size?: 'btn-sm' | ''
47
- }>(),
48
- {
49
- size: 'btn-sm',
50
- }
51
- )
52
- const emits = defineEmits<{
53
- (event: 'click', value1: string, value2?: Event | null): void
54
- }>()
55
-
56
- const onClickButton = (type: string): void => {
57
- emits('click', type)
58
- }
59
-
60
- const onSelectFiles = (event: Event, type: string): void => {
61
- emits('click', type, event)
62
- }
63
-
64
- const visibleCount = ref(props.actions.length)
65
- const collapsedItems = computed<UI_I_CollapseNavItem[]>(() => {
66
- return props.actions
67
- .filter((_, index) => {
68
- return index >= visibleCount.value
69
- })
70
- .map((item) => {
71
- return {
72
- text: item.text,
73
- value: item.type,
74
- disabled: item.disabled,
75
- uploaded: item.uploaded,
76
- }
77
- })
78
- })
79
-
80
- const outputSize = (): void => {
81
- const el = document.getElementById(id.value)
82
- if (!el) return
83
-
84
- const elWidth = el.clientWidth
85
- const elItems = el.children
86
- const elItemsMarginLeft = parseInt(getComputedStyle(elItems[0]).marginLeft)
87
- const elItemsMarginRight = parseInt(getComputedStyle(elItems[0]).marginRight)
88
- const childrenMarginY = elItemsMarginLeft + elItemsMarginRight
89
-
90
- let childrenWidth = 0
91
- let count = 0
92
- for (let i = 0; i < elItems.length; i++) {
93
- childrenWidth += elItems[i].clientWidth + childrenMarginY
94
- const isWrap = elWidth < childrenWidth
95
-
96
- if (isWrap) break
97
- count++
98
- }
99
-
100
- visibleCount.value = count
101
- }
102
-
103
- const setResizeObserve = (): void => {
104
- const el = document.getElementById(id.value)
105
-
106
- if (!el) {
107
- setTimeout(setResizeObserve, 0)
108
- return
109
- }
110
-
111
- new ResizeObserver(outputSize).observe(el)
112
- }
113
- const id = ref<string>('')
114
- onMounted(() => {
115
- id.value = `tool-actions-${useUniqueId()}`
116
- setResizeObserve()
117
- })
118
- </script>
119
-
120
- <style lang="scss" scoped>
121
- .btn {
122
- &:disabled {
123
- color: var(--btn-link-disabled);
124
- }
125
- &-group {
126
- margin-top: 10px;
127
- box-shadow: none;
128
- position: relative;
129
- overflow: hidden;
130
- display: flex;
131
- flex-wrap: wrap;
132
- min-height: 25px;
133
- height: 25px;
134
- box-sizing: content-box;
135
-
136
- &__file {
137
- display: none;
138
- }
139
- }
140
- }
141
- </style>
1
+ <template>
2
+ <div
3
+ :id="id"
4
+ class="btn-group"
5
+ :style="{ 'padding-right': rightSpace + 'px' }"
6
+ >
7
+ <div v-for="(button, key) in props.actions" :key="button.type">
8
+ <label v-if="button.uploaded">
9
+ <span :class="[`btn btn-link ${props.size}`]">
10
+ {{ button.text }}
11
+ </span>
12
+ <input
13
+ :id="`select-file-button-${key}`"
14
+ type="file"
15
+ :disabled="button.disabled"
16
+ :multiple="false"
17
+ class="btn-group__file"
18
+ @change="(event) => onSelectFiles(event, button.type)"
19
+ />
20
+ </label>
21
+
22
+ <button
23
+ v-else
24
+ :id="`actions-button-${key}`"
25
+ :class="[`btn btn-link ${props.size}`]"
26
+ :disabled="button.disabled"
27
+ @click="onClickButton(button.type)"
28
+ >
29
+ {{ button.text }}
30
+ </button>
31
+ </div>
32
+ <atoms-collapse-nav
33
+ v-show="collapsedItems.length"
34
+ :test-id="`${props.testId}-item`"
35
+ :items="collapsedItems"
36
+ @change="onClickButton"
37
+ @select-file="onSelectFiles"
38
+ />
39
+ </div>
40
+ </template>
41
+
42
+ <script lang="ts" setup>
43
+ import type { UI_I_Button } from '~/components/common/tools/models/interfaces'
44
+ import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/models/interfaces'
45
+
46
+ const props = withDefaults(
47
+ defineProps<{
48
+ actions: UI_I_Button[]
49
+ testId: string
50
+ size?: 'btn-sm' | ''
51
+ }>(),
52
+ {
53
+ size: 'btn-sm',
54
+ }
55
+ )
56
+ const emits = defineEmits<{
57
+ (event: 'click', value1: string, value2?: Event | null): void
58
+ }>()
59
+
60
+ const onClickButton = (type: string): void => {
61
+ emits('click', type)
62
+ }
63
+
64
+ const onSelectFiles = (event: Event, type: string): void => {
65
+ emits('click', type, event)
66
+ }
67
+
68
+ const visibleCount = ref(props.actions.length)
69
+ const collapsedItems = computed<UI_I_CollapseNavItem[]>(() => {
70
+ return props.actions
71
+ .filter((_, index) => {
72
+ return index >= visibleCount.value
73
+ })
74
+ .map((item) => {
75
+ return {
76
+ text: item.text,
77
+ value: item.type,
78
+ disabled: item.disabled,
79
+ uploaded: item.uploaded,
80
+ }
81
+ })
82
+ })
83
+
84
+ const rightSpace = ref<number>(0)
85
+ watch(
86
+ collapsedItems,
87
+ (newValue) => {
88
+ let space = 0
89
+ const element: any = document.getElementById(id.value)
90
+ if (!element || !newValue.length) space = 0
91
+ else if (element.lastChild?.className?.includes('tabs-overflow')) {
92
+ space =
93
+ element.getBoundingClientRect().right -
94
+ element.lastChild.getBoundingClientRect().left
95
+ }
96
+
97
+ rightSpace.value = space
98
+ },
99
+ { deep: true }
100
+ )
101
+
102
+ const outputSize = (): void => {
103
+ const el = document.getElementById(id.value)
104
+ if (!el) return
105
+
106
+ const elWidth = el.clientWidth
107
+ const elItems = el.children
108
+ const elItemsMarginLeft = parseInt(getComputedStyle(elItems[0]).marginLeft)
109
+ const elItemsMarginRight = parseInt(getComputedStyle(elItems[0]).marginRight)
110
+ const childrenMarginY = elItemsMarginLeft + elItemsMarginRight
111
+
112
+ let childrenWidth = 0
113
+ let count = 0
114
+ for (let i = 0; i < elItems.length; i++) {
115
+ childrenWidth += elItems[i].clientWidth + childrenMarginY
116
+ const isWrap = elWidth - rightSpace.value < childrenWidth
117
+
118
+ if (isWrap) break
119
+ count++
120
+ }
121
+
122
+ visibleCount.value = count
123
+ }
124
+
125
+ const setResizeObserve = (): void => {
126
+ const el = document.getElementById(id.value)
127
+
128
+ if (!el) {
129
+ setTimeout(setResizeObserve, 0)
130
+ return
131
+ }
132
+
133
+ new ResizeObserver(outputSize).observe(el)
134
+ }
135
+ const id = ref<string>('')
136
+ onMounted(() => {
137
+ id.value = `tool-actions-${useUniqueId()}`
138
+ setResizeObserve()
139
+ })
140
+ </script>
141
+
142
+ <style lang="scss" scoped>
143
+ .btn {
144
+ &:disabled {
145
+ color: var(--btn-link-disabled);
146
+ }
147
+ &-group {
148
+ margin-top: 10px;
149
+ box-shadow: none;
150
+ position: relative;
151
+ overflow: hidden;
152
+ display: flex;
153
+ flex-wrap: wrap;
154
+ min-height: 25px;
155
+ height: 25px;
156
+ box-sizing: content-box;
157
+
158
+ &__file {
159
+ display: none;
160
+ }
161
+ }
162
+ }
163
+ </style>