bfg-common 1.5.762 → 1.5.764

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 (27) hide show
  1. package/components/common/browse/blocks/lib/models/types.ts +1 -1
  2. package/components/common/browse/lib/models/interfaces.ts +5 -5
  3. package/components/common/configure/securityProfile/SecurityProfile.vue +17 -0
  4. package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +97 -0
  5. package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +33 -0
  6. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +61 -0
  7. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +5 -0
  8. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +109 -0
  9. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +28 -0
  10. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +5 -0
  11. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +179 -0
  12. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +64 -0
  13. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +6 -0
  14. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +1 -0
  15. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +19 -0
  16. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +22 -0
  17. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +5 -0
  18. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +76 -0
  19. package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +5 -0
  20. package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +30 -0
  21. package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +29 -0
  22. package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
  23. package/components/common/diagramMain/network/Contents.vue +497 -497
  24. package/components/common/diagramMain/port/Port.vue +580 -580
  25. package/package.json +1 -1
  26. package/plugins/time.ts +58 -58
  27. package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +12 -0
@@ -0,0 +1,76 @@
1
+ <template>
2
+ <div class="lockdown-mode">
3
+ <h5 class="font-bold">{{ localization.common.lockdownMode }}</h5>
4
+ <p>{{ localization.configureSecurityProfile.lockdownModeDesc }}</p>
5
+
6
+ <div class="clr-form-control">
7
+ <label class="clr-col-12 clr-col-md-12 clr-control-label">
8
+ {{ localization.configureSecurityProfile.specifyHostLockdownMode }}
9
+ </label>
10
+ <div class="radio-content">
11
+ <div class="label-content">
12
+ <div class="flex-align-center">
13
+ <input
14
+ id="disabledValue"
15
+ v-model="form.lockdownMode"
16
+ type="radio"
17
+ class="custom-radio-button absolute"
18
+ value="disabled"
19
+ name="lockdownMode"
20
+ />
21
+ <label for="disabledValue" class="custom-radio-label">
22
+ {{ localization.common.disabled }}
23
+ </label>
24
+ </div>
25
+ </div>
26
+ </div>
27
+ <div class="radio-content">
28
+ <div class="label-content">
29
+ <div class="flex-align-center">
30
+ <input
31
+ id="normalValue"
32
+ v-model="form.lockdownMode"
33
+ type="radio"
34
+ class="custom-radio-button absolute"
35
+ value="normal"
36
+ name="lockdownMode"
37
+ />
38
+ <label for="normalValue" class="custom-radio-label">
39
+ {{ localization.common.normal }}
40
+ </label>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ <div class="radio-content">
45
+ <div class="label-content">
46
+ <div class="flex-align-center">
47
+ <input
48
+ id="strictValue"
49
+ v-model="form.lockdownMode"
50
+ type="radio"
51
+ class="custom-radio-button absolute"
52
+ value="strict"
53
+ name="lockdownMode"
54
+ />
55
+ <label for="strictValue" class="custom-radio-label">
56
+ {{ localization.common.strict }}
57
+ </label>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </template>
64
+
65
+ <script setup lang="ts">
66
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
67
+ import type { UI_I_LockdownModeData } from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
68
+
69
+ const form = defineModel<UI_I_LockdownModeData>('form', {
70
+ required: true,
71
+ })
72
+
73
+ const localization = computed<UI_I_Localization>(() => useLocal())
74
+ </script>
75
+
76
+ <style scoped lang="scss"></style>
@@ -0,0 +1,5 @@
1
+ <template>New</template>
2
+
3
+ <script setup lang="ts"></script>
4
+
5
+ <style scoped lang="scss"></style>
@@ -0,0 +1,30 @@
1
+ <template>
2
+ <common-headline :headline="props.title" class="items-center">
3
+ <template #action>
4
+ <button
5
+ class="btn btn-sm btn-secondary ng-star-inserted"
6
+ @click="emits('show-edit')"
7
+ >
8
+ {{ localization.common.edit }}...
9
+ </button>
10
+ </template>
11
+ </common-headline>
12
+ <p>{{ props.description }}</p>
13
+ </template>
14
+
15
+ <script setup lang="ts">
16
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
17
+
18
+ const props = defineProps<{
19
+ title: string
20
+ description: string
21
+ }>()
22
+
23
+ const emits = defineEmits<{
24
+ (event: 'show-edit'): void
25
+ }>()
26
+
27
+ const localization = computed<UI_I_Localization>(() => useLocal())
28
+ </script>
29
+
30
+ <style scoped lang="scss"></style>
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <component
3
+ :is="currentComponent"
4
+ :title="localization.common.lockdownMode"
5
+ :description="localization.configureSecurityProfile.lockdownModeDesc"
6
+ @show-edit="emits('show-edit')"
7
+ />
8
+ </template>
9
+
10
+ <script setup lang="ts">
11
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
12
+
13
+ const emits = defineEmits<{
14
+ (event: 'show-edit'): void
15
+ }>()
16
+
17
+ const { $store }: any = useNuxtApp()
18
+
19
+ const localization = computed<UI_I_Localization>(() => useLocal())
20
+
21
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
22
+ const currentComponent = computed(() =>
23
+ isNewView.value
24
+ ? defineAsyncComponent(() => import('./New.vue'))
25
+ : defineAsyncComponent(() => import('./Old.vue'))
26
+ )
27
+ </script>
28
+
29
+ <style scoped lang="scss"></style>
@@ -1,48 +1,48 @@
1
- import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
2
- import type { UI_I_Localization } from '~/lib/models/interfaces'
3
- import type { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
4
- import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
5
-
6
- export const vCenterViewSettingsFunc = (
7
- localization: UI_I_Localization,
8
- initialData: UI_I_ModalsInitialData
9
- ) => [
10
- {
11
- title: 'Network adapter 1',
12
- id: 1,
13
- type: 1,
14
- rows: [
15
- {
16
- name: localization.common.macAddress,
17
- value: initialData.macAddress,
18
- },
19
- {
20
- name: localization.common.adapterType,
21
- value: initialData.adapter,
22
- },
23
- ],
24
- },
25
- ]
26
-
27
- export const vCenterPopupFieldsFunc = (
28
- localization: UI_I_Localization,
29
- testId: string
30
- ): UI_I_CollapseNavItem[] => [
31
- {
32
- text: localization.common.viewSettings,
33
- value: 'v-center-view-settings',
34
- testId: `${testId}-view`,
35
- },
36
- ]
37
-
38
- export const vCenterPopupFieldsNewFunc = (
39
- localization: UI_I_Localization,
40
- testId: string
41
- ): UI_I_Dropdown[] => [
42
- {
43
- text: localization.common.viewSettings,
44
- value: 'v-center-view-settings',
45
- iconName: 'password-hide',
46
- testId: `${testId}-view`,
47
- },
48
- ]
1
+ import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
2
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
3
+ import type { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
4
+ import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
5
+
6
+ export const vCenterViewSettingsFunc = (
7
+ localization: UI_I_Localization,
8
+ initialData: UI_I_ModalsInitialData
9
+ ) => [
10
+ {
11
+ title: 'Network adapter 1',
12
+ id: 1,
13
+ type: 1,
14
+ rows: [
15
+ {
16
+ name: localization.common.macAddress,
17
+ value: initialData.macAddress,
18
+ },
19
+ {
20
+ name: localization.common.adapterType,
21
+ value: initialData.adapter,
22
+ },
23
+ ],
24
+ },
25
+ ]
26
+
27
+ export const vCenterPopupFieldsFunc = (
28
+ localization: UI_I_Localization,
29
+ testId: string
30
+ ): UI_I_CollapseNavItem[] => [
31
+ {
32
+ text: localization.common.viewSettings,
33
+ value: 'v-center-view-settings',
34
+ testId: `${testId}-view`,
35
+ },
36
+ ]
37
+
38
+ export const vCenterPopupFieldsNewFunc = (
39
+ localization: UI_I_Localization,
40
+ testId: string
41
+ ): UI_I_Dropdown[] => [
42
+ {
43
+ text: localization.common.viewSettings,
44
+ value: 'v-center-view-settings',
45
+ iconName: 'password-hide',
46
+ testId: `${testId}-view`,
47
+ },
48
+ ]