bfg-common 1.3.485 → 1.3.486

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 (67) hide show
  1. package/assets/img/icons/icons-sprite-dark-8.svg +190 -190
  2. package/assets/img/icons/icons-sprite-light-8.svg +190 -190
  3. package/assets/scss/common/normalize.scss +340 -340
  4. package/components/atoms/TheIcon2.vue +1353 -1353
  5. package/components/atoms/loader/Loader.vue +30 -30
  6. package/components/atoms/loader/PreLoader.vue +38 -38
  7. package/components/atoms/switch/Switch.vue +111 -111
  8. package/components/atoms/table/compact/Compact.vue +526 -526
  9. package/components/common/adapterManager/ui/table/Header.vue +93 -93
  10. package/components/common/adapterManager/ui/table/Table.vue +162 -162
  11. package/components/common/context/Context.vue +99 -99
  12. package/components/common/layout/theHeader/LanguageSwitch.vue +102 -102
  13. package/components/common/layout/theHeader/userMenu/modals/preferences/View.vue +129 -129
  14. package/components/common/lib/config/states.ts +160 -160
  15. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +142 -142
  16. package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +248 -248
  17. package/components/common/mainNavigationPanel/MainNavigationPanelOld.vue +288 -288
  18. package/components/common/readyToComplete/ReadyToComplete.vue +15 -15
  19. package/components/common/resource/progressBlock/ProgressBlock.vue +142 -142
  20. package/components/common/split/horizontal/Horizontal.vue +70 -70
  21. package/components/common/vm/actions/clone/Clone.vue +511 -511
  22. package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +273 -273
  23. package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +697 -697
  24. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +400 -400
  25. package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +329 -329
  26. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +305 -305
  27. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +168 -168
  28. package/components/common/vm/actions/common/customizeHardware/virtualHardware/newUsbController/NewUsbController.vue +82 -82
  29. package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/Other.vue +32 -32
  30. package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/VideoCard.vue +182 -182
  31. package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/BootOptions.vue +114 -114
  32. package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +192 -192
  33. package/components/common/vm/actions/common/customizeHardware/vmoptions/tools/Tools.vue +72 -72
  34. package/components/common/vm/actions/common/select/computeResource/ComputeResource.vue +164 -164
  35. package/components/common/vm/actions/common/select/name/Name.vue +235 -235
  36. package/components/common/vm/actions/common/select/storage/Storage.vue +198 -198
  37. package/components/common/vm/actions/editSettings/EditSettings.vue +316 -316
  38. package/components/common/weekSelect/lib/config/options.ts +10 -10
  39. package/components/common/wizards/datastore/add/Add.vue +436 -436
  40. package/components/common/wizards/datastore/add/lib/config/stepItems.ts +191 -191
  41. package/components/common/wizards/datastore/add/lib/models/interfaces.ts +38 -38
  42. package/components/common/wizards/datastore/add/lib/utils.ts +70 -70
  43. package/components/common/wizards/datastore/add/local/createName/CreateName.vue +160 -160
  44. package/components/common/wizards/datastore/add/nfs/Nfs.vue +112 -112
  45. package/components/common/wizards/datastore/add/nfs/accessibility/Accessibility.vue +104 -104
  46. package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/compatibleTable.ts +62 -62
  47. package/components/common/wizards/datastore/add/nfs/accessibility/tablesView/lib/config/hostsTableItems.ts +53 -53
  48. package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +86 -86
  49. package/components/common/wizards/datastore/add/readyComplete/lib/config/propertiesDetails.ts +184 -184
  50. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/DeviceSelection.vue +459 -459
  51. package/components/common/wizards/datastore/add/types/Types.vue +80 -80
  52. package/components/common/wizards/datastore/add/types/lib/config/typeOptions.ts +49 -49
  53. package/composables/useAppVersion.ts +22 -22
  54. package/composables/useEnvLanguage.ts +20 -20
  55. package/lib/utils/sendTask.ts +73 -73
  56. package/minify.js +146 -146
  57. package/package.json +1 -1
  58. package/plugins/spice-console/spice.console.ts +147 -147
  59. package/public/spice-console/application/codec.js +263 -263
  60. package/public/spice-console/lib/rasterEngine.js +907 -907
  61. package/public/spice-console/network/spicechannel.js +375 -375
  62. package/store/main/lib/interfaces.ts +9 -9
  63. package/store/tasks/actions.ts +133 -133
  64. package/store/tasks/getters.ts +25 -25
  65. package/store/tasks/lib/models/interfaces.ts +18 -18
  66. package/store/tasks/mutations.ts +58 -58
  67. package/store/tasks/state.ts +16 -16
@@ -1,99 +1,99 @@
1
- <template>
2
- <div
3
- :id="elementId"
4
- class="context-popup"
5
- :style="{
6
- top: currentContextMenuY,
7
- left: currentContextMenuX,
8
- }"
9
- >
10
- <common-context-recursion
11
- :action-loading="props.actionLoading"
12
- :items="props.contextMenu.items"
13
- @select-item="selectItem"
14
- />
15
- </div>
16
- </template>
17
-
18
- <script setup lang="ts">
19
- import {
20
- UI_I_ContextMenuItem,
21
- UI_I_ContextMenu,
22
- } from '~/components/common/context/lib/models/interfaces'
23
-
24
- const props = defineProps<{
25
- contextMenu: UI_I_ContextMenu
26
- actionLoading: string | null
27
- }>()
28
- const emits = defineEmits<{
29
- (event: 'select-item', value: UI_I_ContextMenuItem): void
30
- (event: 'hide'): void
31
- }>()
32
- const selectItem = (item: UI_I_ContextMenuItem): void => {
33
- emits('select-item', item)
34
- }
35
-
36
- const elementId = ref<string>(`context-${useUniqueId()}`)
37
-
38
- const currentContextMenuY = ref<string>('')
39
- const currentContextMenuX = ref<string>('')
40
- const setCurrentPositionsPopup = (): void => {
41
- const contextMenuY = props.contextMenu.y
42
- const contextMenuX = props.contextMenu.x
43
-
44
- const contextWrap: HTMLElement | null =
45
- document.querySelector(`#${elementId.value} .context-wrap`)
46
- const contextW = contextWrap?.offsetWidth || 0
47
- const contextH = contextWrap?.offsetHeight || 0
48
-
49
- const windowW = window.innerWidth
50
- const windowH = window.innerHeight
51
-
52
- if (contextMenuY + contextH >= windowH) {
53
- currentContextMenuY.value = 'auto'
54
- } else {
55
- currentContextMenuY.value = `${contextMenuY}px`
56
- }
57
-
58
- if (contextMenuX + contextW >= windowW) {
59
- const divisionW = windowW - contextW
60
- currentContextMenuX.value = `${divisionW}px`
61
- } else {
62
- currentContextMenuX.value = `${contextMenuX}px`
63
- }
64
- }
65
-
66
- const windowMousedown = (): void => {
67
- emits('hide')
68
- }
69
- watch(
70
- () => props.contextMenu.y,
71
- (newValue: number) => {
72
- if (!newValue) return
73
-
74
- if (newValue < 0) {
75
- window.removeEventListener('mousedown', windowMousedown)
76
- } else {
77
- window.addEventListener('mousedown', windowMousedown)
78
- }
79
-
80
- setTimeout(() => {
81
- setCurrentPositionsPopup()
82
- }, 0)
83
- }
84
- )
85
- </script>
86
-
87
- <style scoped lang="scss">
88
- .context-popup {
89
- top: -9999px;
90
- left: -9999px;
91
- bottom: 0;
92
- border: none;
93
- box-sizing: content-box;
94
- overflow: visible;
95
- display: block;
96
- position: fixed;
97
- z-index: 10002;
98
- }
99
- </style>
1
+ <template>
2
+ <div
3
+ :id="elementId"
4
+ class="context-popup"
5
+ :style="{
6
+ top: currentContextMenuY,
7
+ left: currentContextMenuX,
8
+ }"
9
+ >
10
+ <common-context-recursion
11
+ :action-loading="props.actionLoading"
12
+ :items="props.contextMenu.items"
13
+ @select-item="selectItem"
14
+ />
15
+ </div>
16
+ </template>
17
+
18
+ <script setup lang="ts">
19
+ import {
20
+ UI_I_ContextMenuItem,
21
+ UI_I_ContextMenu,
22
+ } from '~/components/common/context/lib/models/interfaces'
23
+
24
+ const props = defineProps<{
25
+ contextMenu: UI_I_ContextMenu
26
+ actionLoading: string | null
27
+ }>()
28
+ const emits = defineEmits<{
29
+ (event: 'select-item', value: UI_I_ContextMenuItem): void
30
+ (event: 'hide'): void
31
+ }>()
32
+ const selectItem = (item: UI_I_ContextMenuItem): void => {
33
+ emits('select-item', item)
34
+ }
35
+
36
+ const elementId = ref<string>(`context-${useUniqueId()}`)
37
+
38
+ const currentContextMenuY = ref<string>('')
39
+ const currentContextMenuX = ref<string>('')
40
+ const setCurrentPositionsPopup = (): void => {
41
+ const contextMenuY = props.contextMenu.y
42
+ const contextMenuX = props.contextMenu.x
43
+
44
+ const contextWrap: HTMLElement | null =
45
+ document.querySelector(`#${elementId.value} .context-wrap`)
46
+ const contextW = contextWrap?.offsetWidth || 0
47
+ const contextH = contextWrap?.offsetHeight || 0
48
+
49
+ const windowW = window.innerWidth
50
+ const windowH = window.innerHeight
51
+
52
+ if (contextMenuY + contextH >= windowH) {
53
+ currentContextMenuY.value = 'auto'
54
+ } else {
55
+ currentContextMenuY.value = `${contextMenuY}px`
56
+ }
57
+
58
+ if (contextMenuX + contextW >= windowW) {
59
+ const divisionW = windowW - contextW
60
+ currentContextMenuX.value = `${divisionW}px`
61
+ } else {
62
+ currentContextMenuX.value = `${contextMenuX}px`
63
+ }
64
+ }
65
+
66
+ const windowMousedown = (): void => {
67
+ emits('hide')
68
+ }
69
+ watch(
70
+ () => props.contextMenu.y,
71
+ (newValue: number) => {
72
+ if (!newValue) return
73
+
74
+ if (newValue < 0) {
75
+ window.removeEventListener('mousedown', windowMousedown)
76
+ } else {
77
+ window.addEventListener('mousedown', windowMousedown)
78
+ }
79
+
80
+ setTimeout(() => {
81
+ setCurrentPositionsPopup()
82
+ }, 0)
83
+ }
84
+ )
85
+ </script>
86
+
87
+ <style scoped lang="scss">
88
+ .context-popup {
89
+ top: -9999px;
90
+ left: -9999px;
91
+ bottom: 0;
92
+ border: none;
93
+ box-sizing: content-box;
94
+ overflow: visible;
95
+ display: block;
96
+ position: fixed;
97
+ z-index: 10002;
98
+ }
99
+ </style>
@@ -1,102 +1,102 @@
1
- <template>
2
- <div class="language-switch-content">
3
- <label class="switch">
4
- <input type="checkbox" @change="emits('change-theme-mode')" />
5
- <span class="slider"></span>
6
- <span class="theme-icon light">
7
- <ui-icon name="light-theme" width="14" height="14" />
8
- </span>
9
- <span class="theme-icon dark">
10
- <ui-icon name="dark-theme" width="14" height="14" />
11
- </span>
12
- </label>
13
- </div>
14
- </template>
15
-
16
- <script setup lang="ts">
17
- const emits = defineEmits<{
18
- (event: 'change-theme-mode'): void
19
- }>()
20
- </script>
21
-
22
- <style>
23
- :root {
24
- --switch-bg-color: #e9ebed;
25
- --switch-item-color: #213444;
26
- }
27
- :root.dark-theme {
28
- --switch-bg-color: #4d5d69;
29
- --switch-item-color: #ffffff;
30
- }
31
- </style>
32
-
33
- <style scoped lang="scss">
34
- .language-switch-content {
35
- .switch {
36
- position: relative;
37
- display: inline-block;
38
- width: 48px;
39
- height: 24px;
40
- color: var(--switch-item-color);
41
-
42
- input {
43
- opacity: 0;
44
- width: 0;
45
- height: 0;
46
-
47
- &:checked + .slider {
48
- background-color: var(--switch-bg-color);
49
- }
50
- &:focus + .slider {
51
- box-shadow: 0 0 1px var(--switch-bg-color);
52
- }
53
- &:checked + .slider:before {
54
- -webkit-transform: translateX(26px);
55
- -ms-transform: translateX(26px);
56
- transform: translateX(26px);
57
- }
58
- }
59
-
60
- .slider {
61
- position: absolute;
62
- cursor: pointer;
63
- top: 0;
64
- left: 0;
65
- right: 0;
66
- bottom: 0;
67
- background-color: var(--switch-bg-color);
68
- -webkit-transition: 0.4s;
69
- transition: 0.4s;
70
- border-radius: 34px;
71
-
72
- &:before {
73
- position: absolute;
74
- content: '';
75
- height: 18px;
76
- width: 18px;
77
- left: 2px;
78
- bottom: 3px;
79
- background-color: var(--switch-item-color);
80
- -webkit-transition: 0.4s;
81
- transition: 0.4s;
82
- border-radius: 50%;
83
- }
84
- }
85
-
86
- .theme-icon {
87
- position: absolute;
88
- display: flex;
89
- top: 5px;
90
- color: var(--switch-item-color);
91
- pointer-events: none;
92
-
93
- &.light {
94
- right: 5px;
95
- }
96
- &.dark {
97
- left: 5px;
98
- }
99
- }
100
- }
101
- }
102
- </style>
1
+ <template>
2
+ <div class="language-switch-content">
3
+ <label class="switch">
4
+ <input type="checkbox" @change="emits('change-theme-mode')" />
5
+ <span class="slider"></span>
6
+ <span class="theme-icon light">
7
+ <ui-icon name="light-theme" width="14" height="14" />
8
+ </span>
9
+ <span class="theme-icon dark">
10
+ <ui-icon name="dark-theme" width="14" height="14" />
11
+ </span>
12
+ </label>
13
+ </div>
14
+ </template>
15
+
16
+ <script setup lang="ts">
17
+ const emits = defineEmits<{
18
+ (event: 'change-theme-mode'): void
19
+ }>()
20
+ </script>
21
+
22
+ <style>
23
+ :root {
24
+ --switch-bg-color: #e9ebed;
25
+ --switch-item-color: #213444;
26
+ }
27
+ :root.dark-theme {
28
+ --switch-bg-color: #4d5d69;
29
+ --switch-item-color: #ffffff;
30
+ }
31
+ </style>
32
+
33
+ <style scoped lang="scss">
34
+ .language-switch-content {
35
+ .switch {
36
+ position: relative;
37
+ display: inline-block;
38
+ width: 48px;
39
+ height: 24px;
40
+ color: var(--switch-item-color);
41
+
42
+ input {
43
+ opacity: 0;
44
+ width: 0;
45
+ height: 0;
46
+
47
+ &:checked + .slider {
48
+ background-color: var(--switch-bg-color);
49
+ }
50
+ &:focus + .slider {
51
+ box-shadow: 0 0 1px var(--switch-bg-color);
52
+ }
53
+ &:checked + .slider:before {
54
+ -webkit-transform: translateX(26px);
55
+ -ms-transform: translateX(26px);
56
+ transform: translateX(26px);
57
+ }
58
+ }
59
+
60
+ .slider {
61
+ position: absolute;
62
+ cursor: pointer;
63
+ top: 0;
64
+ left: 0;
65
+ right: 0;
66
+ bottom: 0;
67
+ background-color: var(--switch-bg-color);
68
+ -webkit-transition: 0.4s;
69
+ transition: 0.4s;
70
+ border-radius: 34px;
71
+
72
+ &:before {
73
+ position: absolute;
74
+ content: '';
75
+ height: 18px;
76
+ width: 18px;
77
+ left: 2px;
78
+ bottom: 3px;
79
+ background-color: var(--switch-item-color);
80
+ -webkit-transition: 0.4s;
81
+ transition: 0.4s;
82
+ border-radius: 50%;
83
+ }
84
+ }
85
+
86
+ .theme-icon {
87
+ position: absolute;
88
+ display: flex;
89
+ top: 5px;
90
+ color: var(--switch-item-color);
91
+ pointer-events: none;
92
+
93
+ &.light {
94
+ right: 5px;
95
+ }
96
+ &.dark {
97
+ left: 5px;
98
+ }
99
+ }
100
+ }
101
+ }
102
+ </style>
@@ -1,129 +1,129 @@
1
- <template>
2
- <form id="view-form" class="compact">
3
- <div class="description">
4
- {{ description }}
5
- </div>
6
-
7
- <div class="flex-align-center">
8
- <label for="view">{{ localization.newView }}</label>
9
- <input
10
- id="view"
11
- v-model="isNewViewLocal"
12
- type="checkbox"
13
- class="switch"
14
- :disabled="isDisabled"
15
- @change="onChange"
16
- />
17
- </div>
18
- </form>
19
- </template>
20
-
21
- <script setup lang="ts">
22
- import type { UI_I_Localization } from '~/lib/models/interfaces'
23
-
24
- const props = defineProps<{
25
- isNewView: boolean
26
- }>()
27
-
28
- const isNewViewLocal = ref<boolean>(props.isNewView)
29
-
30
- const emits = defineEmits<{
31
- (event: 'update', value: boolean): void
32
- }>()
33
-
34
- const config = useRuntimeConfig()
35
-
36
- const localization = computed<UI_I_Localization>(() => useLocal())
37
-
38
- const description = computed<string>(() => {
39
- return localization.value.viewDesc.replaceAll(
40
- '{trademark}',
41
- String(config.public[`TRADEMARK_${useEnvLanguage()}`])
42
- )
43
- })
44
-
45
- const onChange = (): void => {
46
- emits('update', isNewViewLocal.value)
47
- }
48
- const isDisabled = ref<boolean>(true)
49
- // @ts-ignore
50
- window.tools = new Proxy(
51
- {},
52
- {
53
- set: function (_obj, prop, value): boolean {
54
- if (prop === 'isDev') isDisabled.value = !value
55
- return true
56
- },
57
- }
58
- )
59
- </script>
60
-
61
- <style lang="scss" scoped>
62
- .description {
63
- margin-bottom: 10px;
64
- }
65
-
66
- label {
67
- margin-right: 6px;
68
- }
69
-
70
- input[type='checkbox'] {
71
- --active: var(--checkbox-value-active-color);
72
- --active-inner: var(--checkbox-mark-color);
73
- --border: var(--checkbox-mark-color);
74
- --background: var(--checkbox-mark-background-color);
75
- -webkit-appearance: none;
76
- -moz-appearance: none;
77
- height: 20px;
78
- outline: none;
79
- display: inline-block;
80
- vertical-align: top;
81
- position: relative;
82
- margin: 0;
83
- cursor: pointer;
84
- border: 1px solid var(--bc, var(--border));
85
- background: var(--b, var(--background));
86
- transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
87
- &:after {
88
- content: '';
89
- display: block;
90
- left: 0;
91
- top: 0;
92
- position: absolute;
93
- transition: transform var(--d-t, 0.3s) var(--d-t-e, ease),
94
- opacity var(--d-o, 0.2s);
95
- }
96
- &:checked {
97
- --b: var(--active);
98
- --bc: var(--active);
99
- --d-o: 0.3s;
100
- --d-t: 0.6s;
101
- --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
102
- }
103
- }
104
- input[type='checkbox'] {
105
- &.switch {
106
- width: 35px;
107
- border-radius: 11px;
108
- &:after {
109
- left: 2px;
110
- top: 2px;
111
- bottom: 2px;
112
- border-radius: 50%;
113
- width: 14px;
114
- height: 14px;
115
- border: 1px solid var(--bc, var(--border));
116
- background: var(--ab, var(--border));
117
- transform: translateX(var(--x, 0));
118
- }
119
- &:checked {
120
- --ab: var(--active-inner);
121
- --x: 14px;
122
- }
123
- &:disabled {
124
- cursor: not-allowed;
125
- opacity: 0.5;
126
- }
127
- }
128
- }
129
- </style>
1
+ <template>
2
+ <form id="view-form" class="compact">
3
+ <div class="description">
4
+ {{ description }}
5
+ </div>
6
+
7
+ <div class="flex-align-center">
8
+ <label for="view">{{ localization.newView }}</label>
9
+ <input
10
+ id="view"
11
+ v-model="isNewViewLocal"
12
+ type="checkbox"
13
+ class="switch"
14
+ :disabled="isDisabled"
15
+ @change="onChange"
16
+ />
17
+ </div>
18
+ </form>
19
+ </template>
20
+
21
+ <script setup lang="ts">
22
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
23
+
24
+ const props = defineProps<{
25
+ isNewView: boolean
26
+ }>()
27
+
28
+ const isNewViewLocal = ref<boolean>(props.isNewView)
29
+
30
+ const emits = defineEmits<{
31
+ (event: 'update', value: boolean): void
32
+ }>()
33
+
34
+ const config = useRuntimeConfig()
35
+
36
+ const localization = computed<UI_I_Localization>(() => useLocal())
37
+
38
+ const description = computed<string>(() => {
39
+ return localization.value.viewDesc.replaceAll(
40
+ '{trademark}',
41
+ String(config.public[`TRADEMARK_${useEnvLanguage()}`])
42
+ )
43
+ })
44
+
45
+ const onChange = (): void => {
46
+ emits('update', isNewViewLocal.value)
47
+ }
48
+ const isDisabled = ref<boolean>(true)
49
+ // @ts-ignore
50
+ window.tools = new Proxy(
51
+ {},
52
+ {
53
+ set: function (_obj, prop, value): boolean {
54
+ if (prop === 'isDev') isDisabled.value = !value
55
+ return true
56
+ },
57
+ }
58
+ )
59
+ </script>
60
+
61
+ <style lang="scss" scoped>
62
+ .description {
63
+ margin-bottom: 10px;
64
+ }
65
+
66
+ label {
67
+ margin-right: 6px;
68
+ }
69
+
70
+ input[type='checkbox'] {
71
+ --active: var(--checkbox-value-active-color);
72
+ --active-inner: var(--checkbox-mark-color);
73
+ --border: var(--checkbox-mark-color);
74
+ --background: var(--checkbox-mark-background-color);
75
+ -webkit-appearance: none;
76
+ -moz-appearance: none;
77
+ height: 20px;
78
+ outline: none;
79
+ display: inline-block;
80
+ vertical-align: top;
81
+ position: relative;
82
+ margin: 0;
83
+ cursor: pointer;
84
+ border: 1px solid var(--bc, var(--border));
85
+ background: var(--b, var(--background));
86
+ transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
87
+ &:after {
88
+ content: '';
89
+ display: block;
90
+ left: 0;
91
+ top: 0;
92
+ position: absolute;
93
+ transition: transform var(--d-t, 0.3s) var(--d-t-e, ease),
94
+ opacity var(--d-o, 0.2s);
95
+ }
96
+ &:checked {
97
+ --b: var(--active);
98
+ --bc: var(--active);
99
+ --d-o: 0.3s;
100
+ --d-t: 0.6s;
101
+ --d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
102
+ }
103
+ }
104
+ input[type='checkbox'] {
105
+ &.switch {
106
+ width: 35px;
107
+ border-radius: 11px;
108
+ &:after {
109
+ left: 2px;
110
+ top: 2px;
111
+ bottom: 2px;
112
+ border-radius: 50%;
113
+ width: 14px;
114
+ height: 14px;
115
+ border: 1px solid var(--bc, var(--border));
116
+ background: var(--ab, var(--border));
117
+ transform: translateX(var(--x, 0));
118
+ }
119
+ &:checked {
120
+ --ab: var(--active-inner);
121
+ --x: 14px;
122
+ }
123
+ &:disabled {
124
+ cursor: not-allowed;
125
+ opacity: 0.5;
126
+ }
127
+ }
128
+ }
129
+ </style>