bfg-common 1.5.765 → 1.5.766

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 (28) hide show
  1. package/assets/localization/local_be.json +3 -1
  2. package/assets/localization/local_en.json +3 -1
  3. package/assets/localization/local_hy.json +3 -1
  4. package/assets/localization/local_kk.json +3 -1
  5. package/assets/localization/local_ru.json +3 -1
  6. package/assets/localization/local_zh.json +3 -1
  7. package/components/common/backup/storage/actions/delete/Delete.vue +37 -15
  8. package/components/common/configure/securityProfile/SecurityProfile.vue +17 -17
  9. package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +109 -109
  10. package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +27 -27
  11. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +61 -61
  12. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +5 -5
  13. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +109 -109
  14. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +28 -28
  15. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +5 -5
  16. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +179 -179
  17. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +64 -64
  18. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +6 -6
  19. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +1 -1
  20. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +19 -19
  21. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +22 -22
  22. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +5 -5
  23. package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +76 -76
  24. package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +5 -5
  25. package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +30 -30
  26. package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +29 -29
  27. package/package.json +1 -1
  28. package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +12 -12
@@ -1,64 +1,64 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type {
3
- UI_I_ColumnKey,
4
- UI_I_HeadItem,
5
- UI_I_BodyItem,
6
- } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
7
- import { exceptionUsersTableKeys } from '~/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys'
8
- import {
9
- constructColumnKey,
10
- constructHeadItem,
11
- } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
12
-
13
- const getItems = (
14
- localization: UI_I_Localization
15
- ): [string, boolean, string, string][] => {
16
- return [
17
- ['', true, '10%', exceptionUsersTableKeys[0]],
18
- [localization.common.user, true, '90%', exceptionUsersTableKeys[1]],
19
- ]
20
- }
21
-
22
- export const columnKeys = (
23
- localization: UI_I_Localization
24
- ): UI_I_ColumnKey[] => {
25
- const result: UI_I_ColumnKey[] = []
26
- getItems(localization).forEach((item, i) => {
27
- const col = `col${i + 1}`
28
- result.push(constructColumnKey(col, item[0], item[1]))
29
- })
30
-
31
- return result
32
- }
33
-
34
- export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
35
- const result: UI_I_HeadItem[] = []
36
- getItems(localization).forEach((item, i) => {
37
- const col = `col${i + 1}`
38
- result.push(
39
- constructHeadItem(col, item[0], item[3], false, item[2], '', item[3])
40
- )
41
- })
42
- return result
43
- }
44
-
45
- export const bodyItems = (data: string[]): UI_I_BodyItem[][] => {
46
- const bodyItems: UI_I_BodyItem[][] = []
47
- data.forEach((item: string, key) => {
48
- bodyItems.push([
49
- {
50
- key: 'col1',
51
- text: '',
52
- id: key,
53
- data: { id: key, name: item },
54
- },
55
- {
56
- key: 'col2',
57
- text: item,
58
- id: key,
59
- },
60
- ])
61
- })
62
-
63
- return bodyItems
64
- }
1
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import type {
3
+ UI_I_ColumnKey,
4
+ UI_I_HeadItem,
5
+ UI_I_BodyItem,
6
+ } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
7
+ import { exceptionUsersTableKeys } from '~/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys'
8
+ import {
9
+ constructColumnKey,
10
+ constructHeadItem,
11
+ } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
12
+
13
+ const getItems = (
14
+ localization: UI_I_Localization
15
+ ): [string, boolean, string, string][] => {
16
+ return [
17
+ ['', true, '10%', exceptionUsersTableKeys[0]],
18
+ [localization.common.user, true, '90%', exceptionUsersTableKeys[1]],
19
+ ]
20
+ }
21
+
22
+ export const columnKeys = (
23
+ localization: UI_I_Localization
24
+ ): UI_I_ColumnKey[] => {
25
+ const result: UI_I_ColumnKey[] = []
26
+ getItems(localization).forEach((item, i) => {
27
+ const col = `col${i + 1}`
28
+ result.push(constructColumnKey(col, item[0], item[1]))
29
+ })
30
+
31
+ return result
32
+ }
33
+
34
+ export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
35
+ const result: UI_I_HeadItem[] = []
36
+ getItems(localization).forEach((item, i) => {
37
+ const col = `col${i + 1}`
38
+ result.push(
39
+ constructHeadItem(col, item[0], item[3], false, item[2], '', item[3])
40
+ )
41
+ })
42
+ return result
43
+ }
44
+
45
+ export const bodyItems = (data: string[]): UI_I_BodyItem[][] => {
46
+ const bodyItems: UI_I_BodyItem[][] = []
47
+ data.forEach((item: string, key) => {
48
+ bodyItems.push([
49
+ {
50
+ key: 'col1',
51
+ text: '',
52
+ id: key,
53
+ data: { id: key, name: item },
54
+ },
55
+ {
56
+ key: 'col2',
57
+ text: item,
58
+ id: key,
59
+ },
60
+ ])
61
+ })
62
+
63
+ return bodyItems
64
+ }
@@ -1,6 +1,6 @@
1
- import type { UI_T_ExceptionUsersTableKeys } from '~/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types'
2
-
3
- export const exceptionUsersTableKeys: UI_T_ExceptionUsersTableKeys[] = [
4
- 'action',
5
- 'user',
6
- ]
1
+ import type { UI_T_ExceptionUsersTableKeys } from '~/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types'
2
+
3
+ export const exceptionUsersTableKeys: UI_T_ExceptionUsersTableKeys[] = [
4
+ 'action',
5
+ 'user',
6
+ ]
@@ -1 +1 @@
1
- export type UI_T_ExceptionUsersTableKeys = 'action' | 'user'
1
+ export type UI_T_ExceptionUsersTableKeys = 'action' | 'user'
@@ -1,19 +1,19 @@
1
- import type { UI_I_Localization } from '~/lib/models/interfaces'
2
- import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
3
-
4
- export const navigateTabsFunc = (
5
- localization: UI_I_Localization
6
- ): UI_I_VerticalTabs[] => {
7
- return [
8
- {
9
- value: 1,
10
- text: localization.common.lockdownMode,
11
- testId: 'lockdown-mode-tab',
12
- },
13
- {
14
- value: 2,
15
- text: localization.configureSecurityProfile.exceptionUsers,
16
- testId: 'exception-users-tab',
17
- },
18
- ]
19
- }
1
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
2
+ import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
3
+
4
+ export const navigateTabsFunc = (
5
+ localization: UI_I_Localization
6
+ ): UI_I_VerticalTabs[] => {
7
+ return [
8
+ {
9
+ value: 1,
10
+ text: localization.common.lockdownMode,
11
+ testId: 'lockdown-mode-tab',
12
+ },
13
+ {
14
+ value: 2,
15
+ text: localization.configureSecurityProfile.exceptionUsers,
16
+ testId: 'exception-users-tab',
17
+ },
18
+ ]
19
+ }
@@ -1,22 +1,22 @@
1
- <template>
2
- <component :is="currentComponent" v-model:form="form" />
3
- </template>
4
-
5
- <script setup lang="ts">
6
- import type { UI_I_LockdownModeData } from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
7
-
8
- const form = defineModel<UI_I_LockdownModeData>('form', {
9
- required: true,
10
- })
11
-
12
- const { $store }: any = useNuxtApp()
13
-
14
- const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
15
- const currentComponent = computed(() =>
16
- isNewView.value
17
- ? defineAsyncComponent(() => import('./New.vue'))
18
- : defineAsyncComponent(() => import('./Old.vue'))
19
- )
20
- </script>
21
-
22
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <component :is="currentComponent" v-model:form="form" />
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ import type { UI_I_LockdownModeData } from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
7
+
8
+ const form = defineModel<UI_I_LockdownModeData>('form', {
9
+ required: true,
10
+ })
11
+
12
+ const { $store }: any = useNuxtApp()
13
+
14
+ const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
15
+ const currentComponent = computed(() =>
16
+ isNewView.value
17
+ ? defineAsyncComponent(() => import('./New.vue'))
18
+ : defineAsyncComponent(() => import('./Old.vue'))
19
+ )
20
+ </script>
21
+
22
+ <style scoped lang="scss"></style>
@@ -1,5 +1,5 @@
1
- <template>New</template>
2
-
3
- <script setup lang="ts"></script>
4
-
5
- <style scoped lang="scss"></style>
1
+ <template>New</template>
2
+
3
+ <script setup lang="ts"></script>
4
+
5
+ <style scoped lang="scss"></style>
@@ -1,76 +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>
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>
@@ -1,5 +1,5 @@
1
- <template>New</template>
2
-
3
- <script setup lang="ts"></script>
4
-
5
- <style scoped lang="scss"></style>
1
+ <template>New</template>
2
+
3
+ <script setup lang="ts"></script>
4
+
5
+ <style scoped lang="scss"></style>
@@ -1,30 +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>
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>
@@ -1,29 +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
+ <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>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.765",
4
+ "version": "1.5.766",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -1,12 +1,12 @@
1
- export interface UI_API_I_LockdownModeData {
2
- lockdownMode: string
3
- exceptionUsers: string[]
4
- }
5
-
6
- export interface UI_API_I_SecurityProfileData {
7
- lockdownMode: UI_API_I_LockdownModeData
8
- }
9
-
10
- export interface UI_I_LockdownModeData extends UI_API_I_LockdownModeData {}
11
-
12
- export interface UI_I_SecurityProfileData extends UI_API_I_SecurityProfileData {}
1
+ export interface UI_API_I_LockdownModeData {
2
+ lockdownMode: string
3
+ exceptionUsers: string[]
4
+ }
5
+
6
+ export interface UI_API_I_SecurityProfileData {
7
+ lockdownMode: UI_API_I_LockdownModeData
8
+ }
9
+
10
+ export interface UI_I_LockdownModeData extends UI_API_I_LockdownModeData {}
11
+
12
+ export interface UI_I_SecurityProfileData extends UI_API_I_SecurityProfileData {}