@fastkit/vui 0.12.8 → 0.12.9
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.
- package/LICENSE +1 -1
- package/dist/vui.css +2786 -2716
- package/dist/vui.css.map +1 -0
- package/dist/vui.d.ts +9072 -10172
- package/dist/vui.mjs +2141 -1969
- package/dist/vui.mjs.map +1 -0
- package/package.json +89 -59
- package/src/components/VApp/VApp.tsx +3 -1
- package/src/components/VAvatar/VAvatar.scss +62 -60
- package/src/components/VAvatar/VAvatar.tsx +6 -1
- package/src/components/VBreadcrumbs/VBreadcrumbs.scss +53 -51
- package/src/components/VBusyImage/VBusyImage.scss +50 -51
- package/src/components/VButton/VButton.scss +120 -118
- package/src/components/VButton/VButton.tsx +6 -1
- package/src/components/VButton/VButtonGroup.scss +21 -19
- package/src/components/VCard/VCard.scss +41 -42
- package/src/components/VCard/VCard.tsx +5 -0
- package/src/components/VCard/VCardActions.scss +9 -7
- package/src/components/VCard/VCardContent.scss +4 -2
- package/src/components/VCheckable/VCheckable.scss +79 -80
- package/src/components/VCheckable/VCheckable.tsx +1 -1
- package/src/components/VCheckbox/VCheckbox.scss +50 -48
- package/src/components/VCheckbox/VCheckbox.tsx +2 -2
- package/src/components/VChip/VChip.scss +61 -59
- package/src/components/VChip/VChip.tsx +6 -1
- package/src/components/VContentSwitcher/VContentSwitcher.scss +52 -50
- package/src/components/VControlField/VControlField.scss +148 -146
- package/src/components/VControlField/VControlField.tsx +3 -3
- package/src/components/VDataTable/VDataTable.scss +167 -168
- package/src/components/VDrawerLayout/VDrawerLayout.scss +27 -25
- package/src/components/VForm/VForm.tsx +3 -4
- package/src/components/VFormControl/VFormControl.scss +84 -82
- package/src/components/VFormControl/VFormControl.tsx +2 -3
- package/src/components/VGrid/VGridContainer.scss +5 -3
- package/src/components/VGrid/VGridItem.scss +4 -2
- package/src/components/VHero/VHero.scss +23 -21
- package/src/components/VIcon/VIcon.scss +19 -17
- package/src/components/VListTile/VListTile.scss +60 -58
- package/src/components/VListTile/VListTile.tsx +5 -0
- package/src/components/VNavigation/VNavigation.scss +12 -10
- package/src/components/VNavigation/VNavigationItem.scss +21 -19
- package/src/components/VNavigation/VNavigationItem.tsx +5 -0
- package/src/components/VOption/VOption.scss +55 -56
- package/src/components/VOption/VOption.tsx +2 -2
- package/src/components/VOptionGroup/VOptionGroup.scss +14 -12
- package/src/components/VOptionGroup/VOptionGroup.tsx +3 -1
- package/src/components/VPagination/VPagination.scss +81 -79
- package/src/components/VPagination/VPagination.tsx +1 -1
- package/src/components/VPaper/VPaper.scss +43 -41
- package/src/components/VRadio/VRadio.scss +52 -53
- package/src/components/VRadio/VRadio.tsx +2 -2
- package/src/components/VSelect/VSelect.scss +77 -75
- package/src/components/VSelect/VSelect.tsx +5 -2
- package/src/components/VSkeltonLoader/VSkeltonLoaderBone.scss +24 -22
- package/src/components/VSwitch/VSwitch.scss +96 -94
- package/src/components/VSwitch/VSwitch.tsx +2 -2
- package/src/components/VTabs/VTab.scss +59 -57
- package/src/components/VTabs/VTabs.scss +41 -39
- package/src/components/VTabs/VTabs.tsx +5 -2
- package/src/components/VTextCounter/VTextCounter.scss +4 -2
- package/src/components/VTextField/VTextField.scss +37 -35
- package/src/components/VTextField/VTextField.tsx +2 -2
- package/src/components/VTextarea/VTextarea.scss +33 -31
- package/src/components/VTextarea/VTextarea.tsx +2 -2
- package/src/components/VToolbar/VToolbar.scss +19 -17
- package/src/components/VToolbar/VToolbarEdge.scss +21 -19
- package/src/components/VToolbar/VToolbarMenu.scss +6 -4
- package/src/components/VToolbar/VToolbarMenu.tsx +5 -0
- package/src/components/VToolbar/VToolbarTitle.scss +19 -17
- package/src/components/VWysiwygEditor/VWysiwygEditor.scss +52 -50
- package/src/components/VWysiwygEditor/VWysiwygEditor.tsx +2 -2
- package/src/components/VWysiwygEditor/extensions/linter/Linter.scss +108 -109
- package/src/components/VWysiwygEditor/schemes.ts +1 -1
- package/src/components/VWysiwygEditor/tools/color.scss +106 -112
- package/src/components/kits.ts +1 -1
- package/src/composables/control.ts +1 -1
- package/src/composables/form-selector.scss +20 -18
- package/src/composables/form-selector.tsx +5 -3
- package/src/index.ts +13 -2
- package/src/plugin.tsx +4 -4
- package/src/schemes/control.ts +2 -2
- package/src/service.tsx +5 -5
- package/src/styles/core/functions.scss +2 -2
- package/src/styles/index.scss +23 -9
- package/dist/tool/index.d.ts +0 -2
- package/dist/tool/index.d.ts.map +0 -1
- package/dist/tool/index.mjs +0 -193
- package/dist/tool/vite-plugin.d.ts +0 -25
- package/dist/tool/vite-plugin.d.ts.map +0 -1
- package/src/.DS_Store +0 -0
- package/src/assets/builtins/color-scheme.ts +0 -9
- package/src/assets/builtins/media-match.ts +0 -3
- package/src/components/.DS_Store +0 -0
- package/src/components/VAvatar/.DS_Store +0 -0
- package/src/components/VChip/.DS_Store +0 -0
- package/src/components/VSkeltonLoader/.DS_Store +0 -0
- package/src/components/VTextField/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/extensions/.DS_Store +0 -0
- package/src/components/VWysiwygEditor/extensions/linter/.DS_Store +0 -0
- package/src/tool/index.ts +0 -2
- package/src/tool/vite-plugin.ts +0 -266
- /package/{src/styles → dist}/after-effects/display-flow.scss +0 -0
- /package/{src/styles → dist}/after-effects/spacing.scss +0 -0
- /package/{src/styles → dist}/after-effects/text.scss +0 -0
- /package/{src/styles → dist}/after-effects.scss +0 -0
- /package/dist/{assets/builtins → builtins}/color-scheme.ts +0 -0
- /package/dist/{assets/builtins → builtins}/media-match.ts +0 -0
|
@@ -1,125 +1,127 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@layer vui {
|
|
4
|
+
.v-switch {
|
|
5
|
+
--my-pin-color: var(--palette-background);
|
|
6
|
+
// --my-faux-bg-color: transparent;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&__faux {
|
|
12
|
-
position: relative;
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
width: 100%;
|
|
17
|
-
width: var(--control-switch-width);
|
|
18
|
-
height: 100%;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
|
|
21
|
-
&::before {
|
|
22
|
-
display: block;
|
|
23
|
-
width: var(--control-switch-track-width);
|
|
24
|
-
height: var(--control-switch-track-height);
|
|
25
|
-
content: '';
|
|
26
|
-
background: var(--color);
|
|
27
|
-
border-radius: calc(var(--control-switch-track-height) / 2);
|
|
28
|
-
opacity: 0.5;
|
|
8
|
+
&--selected {
|
|
9
|
+
--my-pin-color: var(--color);
|
|
29
10
|
}
|
|
30
11
|
|
|
31
|
-
&
|
|
32
|
-
position:
|
|
33
|
-
top: 0;
|
|
34
|
-
bottom: 0;
|
|
35
|
-
left: 0;
|
|
12
|
+
&__faux {
|
|
13
|
+
position: relative;
|
|
36
14
|
display: flex;
|
|
37
15
|
align-items: center;
|
|
38
16
|
justify-content: center;
|
|
39
|
-
width:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
|
|
44
|
-
transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
17
|
+
width: 100%;
|
|
18
|
+
width: var(--control-switch-width);
|
|
19
|
+
height: 100%;
|
|
20
|
+
cursor: pointer;
|
|
45
21
|
|
|
46
|
-
&::before
|
|
47
|
-
&::after {
|
|
22
|
+
&::before {
|
|
48
23
|
display: block;
|
|
24
|
+
width: var(--control-switch-track-width);
|
|
25
|
+
height: var(--control-switch-track-height);
|
|
49
26
|
content: '';
|
|
27
|
+
background: var(--color);
|
|
28
|
+
border-radius: calc(var(--control-switch-track-height) / 2);
|
|
29
|
+
opacity: 0.5;
|
|
50
30
|
}
|
|
51
31
|
|
|
52
|
-
|
|
32
|
+
&__pin {
|
|
53
33
|
position: absolute;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
34
|
+
top: 0;
|
|
35
|
+
bottom: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
width: var(--outer-size);
|
|
41
|
+
height: var(--outer-size);
|
|
42
|
+
// background: #f00;
|
|
57
43
|
border-radius: 50%;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
44
|
+
transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
|
|
45
|
+
transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
|
|
61
46
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
47
|
+
&::before,
|
|
48
|
+
&::after {
|
|
49
|
+
display: block;
|
|
50
|
+
content: '';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&::before {
|
|
54
|
+
position: absolute;
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
background: currentColor;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
opacity: 0;
|
|
60
|
+
transition: opacity 0.2s;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::after {
|
|
64
|
+
position: relative;
|
|
65
|
+
width: var(--icon-size);
|
|
66
|
+
height: var(--icon-size);
|
|
67
|
+
background: var(--my-pin-color);
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
box-shadow: rgb(0 0 0 / 0.2) 0 2px 1px -1px,
|
|
70
|
+
rgb(0 0 0 / 0.14) 0 1px 1px 0, rgb(0 0 0 / 0.12) 0 1px 3px 0;
|
|
71
|
+
transform: scale(var(--control-checkable-faux-scale));
|
|
72
|
+
}
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
|
-
}
|
|
74
75
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
&--selected &__faux {
|
|
77
|
+
&__pin {
|
|
78
|
+
left: calc(100% - var(--outer-size));
|
|
79
|
+
}
|
|
78
80
|
}
|
|
79
|
-
}
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
&--disabled &__faux {
|
|
83
|
+
&::before {
|
|
84
|
+
background-color: #000;
|
|
85
|
+
opacity: 0.12;
|
|
86
|
+
}
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
&__pin {
|
|
89
|
+
&::after {
|
|
90
|
+
background-color: rgba(245, 245, 245, 1);
|
|
91
|
+
}
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
|
-
}
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
&__faux:hover &__faux__pin::before {
|
|
96
|
+
opacity: 0.1;
|
|
97
|
+
}
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
&:focus-within &__faux {
|
|
100
|
+
&__pin {
|
|
101
|
+
&::before {
|
|
102
|
+
opacity: 0.1;
|
|
103
|
+
}
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
|
-
}
|
|
105
106
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
// &--indeterminate &__faux {
|
|
108
|
+
// $x1: math.div(12, 54) * 100%;
|
|
109
|
+
// $x2: 100% - $x1;
|
|
110
|
+
// $y1: math.div(24, 54) * 100%;
|
|
111
|
+
// $y2: 100% - $y1;
|
|
111
112
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
113
|
+
// clip-path: polygon(
|
|
114
|
+
// 0 0,
|
|
115
|
+
// 0 100%,
|
|
116
|
+
// 100% 100%,
|
|
117
|
+
// 100% 0,
|
|
118
|
+
// #{$x2} #{$y1},
|
|
119
|
+
// #{$x2} #{$y2},
|
|
120
|
+
// #{$x1} #{$y2},
|
|
121
|
+
// #{$x1} #{$y1},
|
|
122
|
+
// #{$x2} #{$y1},
|
|
123
|
+
// 100% 0
|
|
124
|
+
// );
|
|
125
|
+
// }
|
|
126
|
+
}
|
|
125
127
|
}
|
|
@@ -3,8 +3,8 @@ import { defineComponent } from 'vue';
|
|
|
3
3
|
import {
|
|
4
4
|
createFormSelectorItemSettings,
|
|
5
5
|
useFormSelectorItemControl,
|
|
6
|
-
|
|
7
|
-
} from '@fastkit/vue-
|
|
6
|
+
} from '@fastkit/vue-form-control';
|
|
7
|
+
import { renderSlotOrEmpty } from '@fastkit/vue-utils';
|
|
8
8
|
import { createControlProps, useControl } from '../../composables';
|
|
9
9
|
import { VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL } from '../../injections';
|
|
10
10
|
import { VCheckable } from '../VCheckable';
|
|
@@ -1,73 +1,75 @@
|
|
|
1
1
|
@use '../../styles/core.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
@layer vui {
|
|
4
|
+
.v-tab {
|
|
5
|
+
@include core.button-reset;
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
--tab-content-color: var(--palette-caption);
|
|
8
|
+
--tab-content-focus-color: var(--main-color);
|
|
9
|
+
--tab-content-opacity: 0.7;
|
|
9
10
|
|
|
10
|
-
position: relative;
|
|
11
|
-
z-index: 3;
|
|
12
|
-
display: flex;
|
|
13
|
-
// flex: 1 1 auto;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
height: var(--tabs-height);
|
|
17
|
-
padding: 0 1.25em;
|
|
18
|
-
font: inherit;
|
|
19
|
-
font-size: var(--tabs-font-size);
|
|
20
|
-
// color: inherit;
|
|
21
|
-
white-space: nowrap;
|
|
22
|
-
user-select: none;
|
|
23
|
-
transition: color 0.6s;
|
|
24
|
-
|
|
25
|
-
&::before {
|
|
26
|
-
position: absolute;
|
|
27
|
-
right: 0;
|
|
28
|
-
bottom: 0;
|
|
29
|
-
// top: 0;
|
|
30
|
-
left: 0;
|
|
31
|
-
z-index: 1;
|
|
32
|
-
height: 2px;
|
|
33
|
-
content: '';
|
|
34
|
-
background-color: var(--tab-content-focus-color);
|
|
35
|
-
border-radius: inherit;
|
|
36
|
-
transition: all 0.25s;
|
|
37
|
-
transform: scaleX(0);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&__content {
|
|
41
11
|
position: relative;
|
|
42
|
-
z-index:
|
|
12
|
+
z-index: 3;
|
|
43
13
|
display: flex;
|
|
14
|
+
// flex: 1 1 auto;
|
|
44
15
|
align-items: center;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
16
|
+
justify-content: center;
|
|
17
|
+
height: var(--tabs-height);
|
|
18
|
+
padding: 0 1.25em;
|
|
19
|
+
font: inherit;
|
|
20
|
+
font-size: var(--tabs-font-size);
|
|
21
|
+
// color: inherit;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
user-select: none;
|
|
24
|
+
transition: color 0.6s;
|
|
51
25
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
26
|
+
&::before {
|
|
27
|
+
position: absolute;
|
|
28
|
+
right: 0;
|
|
29
|
+
bottom: 0;
|
|
30
|
+
// top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
z-index: 1;
|
|
33
|
+
height: 2px;
|
|
34
|
+
content: '';
|
|
35
|
+
background-color: var(--tab-content-focus-color);
|
|
36
|
+
border-radius: inherit;
|
|
37
|
+
transition: all 0.25s;
|
|
38
|
+
transform: scaleX(0);
|
|
39
|
+
}
|
|
56
40
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
41
|
+
&__content {
|
|
42
|
+
position: relative;
|
|
43
|
+
z-index: 2;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
line-height: 1.2;
|
|
47
|
+
color: var(--tab-content-color);
|
|
48
|
+
text-align: center;
|
|
49
|
+
opacity: var(--tab-content-opacity);
|
|
50
|
+
transition: all 0.25s ease;
|
|
51
|
+
}
|
|
60
52
|
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
&__icon {
|
|
54
|
+
margin-right: 8px;
|
|
55
|
+
font-size: 120%;
|
|
56
|
+
}
|
|
63
57
|
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
&:hover {
|
|
59
|
+
--tab-content-color: var(--tab-content-focus-color);
|
|
60
|
+
}
|
|
66
61
|
|
|
67
|
-
|
|
62
|
+
&--active {
|
|
63
|
+
--tab-content-color: rgba(0, 0, 0, 0.87);
|
|
68
64
|
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
background: var(--tabs-color);
|
|
67
|
+
|
|
68
|
+
--tab-content-opacity: 1;
|
|
69
|
+
|
|
70
|
+
&::before {
|
|
71
|
+
transform: scaleX(1);
|
|
72
|
+
}
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
}
|
|
@@ -1,49 +1,51 @@
|
|
|
1
1
|
$my-offset: 30px;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
@layer vui {
|
|
4
|
+
.v-tabs {
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: var(--tabs-height);
|
|
8
|
+
overflow: hidden;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
&::before {
|
|
11
|
+
position: absolute;
|
|
12
|
+
right: 0;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
display: block;
|
|
16
|
+
height: 2px;
|
|
17
|
+
content: '';
|
|
18
|
+
background: currentColor;
|
|
19
|
+
opacity: 0.25;
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
&__scroller {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: calc(var(--tabs-height) + #{$my-offset});
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
&__container {
|
|
27
|
+
padding-bottom: $my-offset;
|
|
28
|
+
}
|
|
27
29
|
}
|
|
28
|
-
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
&__content {
|
|
32
|
+
position: relative;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: stretch;
|
|
35
|
+
min-width: 100%;
|
|
36
|
+
vertical-align: bottom;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
// &::after {
|
|
39
|
+
// position: absolute;
|
|
40
|
+
// right: 0;
|
|
41
|
+
// bottom: 0;
|
|
42
|
+
// left: 0;
|
|
43
|
+
// z-index: 1;
|
|
44
|
+
// display: block;
|
|
45
|
+
// height: var(--tabs-bar-height);
|
|
46
|
+
// pointer-events: none;
|
|
47
|
+
// content: '';
|
|
48
|
+
// }
|
|
49
|
+
}
|
|
48
50
|
}
|
|
49
51
|
}
|
|
@@ -16,8 +16,11 @@ import { useVui } from '../../injections';
|
|
|
16
16
|
import { defineSlotsProps } from '@fastkit/vue-utils';
|
|
17
17
|
import { RouteLocationRaw, RouteLocation } from 'vue-router';
|
|
18
18
|
import { VTab, VTabRef } from './VTab';
|
|
19
|
-
import {
|
|
20
|
-
|
|
19
|
+
import {
|
|
20
|
+
VScroller,
|
|
21
|
+
useVScrollerRef,
|
|
22
|
+
ScrollResult,
|
|
23
|
+
} from '@fastkit/vue-scroller';
|
|
21
24
|
import { useScopeColorClass, ScopeName } from '@fastkit/vue-color-scheme';
|
|
22
25
|
import { isPromise } from '@fastkit/helpers';
|
|
23
26
|
|
|
@@ -1,45 +1,47 @@
|
|
|
1
1
|
@use '../../styles/core.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@layer vui {
|
|
4
|
+
.v-text-field {
|
|
5
|
+
&__input {
|
|
6
|
+
cursor: text;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
&__element {
|
|
9
|
+
width: 100%;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
// width: calc(100% - 8px);
|
|
12
|
+
padding: 0;
|
|
13
|
+
margin: 0;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
// margin: 0 8px;
|
|
16
|
+
font-size: inherit;
|
|
17
|
+
line-height: inherit;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
letter-spacing: inherit;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
background: transparent;
|
|
22
|
+
border: 0;
|
|
23
|
+
border-radius: 0;
|
|
24
|
+
outline: 0;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
&:-webkit-autofill {
|
|
27
|
+
@include core.auto-fill-cancel;
|
|
28
|
+
// color: inherit !important;
|
|
29
|
+
// box-shadow: 0 0 0 1000px get-color(field) inset;
|
|
30
|
+
}
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
&::-ms-clear {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
&::placeholder {
|
|
37
|
+
font-style: italic;
|
|
38
|
+
color: var(--control-disabled-color);
|
|
39
|
+
}
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
// @include placeholder {
|
|
42
|
+
// color: get-color(text-muted);
|
|
43
|
+
// }
|
|
44
|
+
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
}
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
useTextInputControl,
|
|
6
6
|
createFormControlProps,
|
|
7
7
|
FormControlSlots,
|
|
8
|
-
defineSlotsProps,
|
|
9
8
|
TextInputEmits,
|
|
10
|
-
} from '@fastkit/vue-
|
|
9
|
+
} from '@fastkit/vue-form-control';
|
|
10
|
+
import { defineSlotsProps } from '@fastkit/vue-utils';
|
|
11
11
|
import { VFormControl } from '../VFormControl';
|
|
12
12
|
import {
|
|
13
13
|
VControlField,
|
|
@@ -1,41 +1,43 @@
|
|
|
1
1
|
@use '../../styles/core.scss';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@layer vui {
|
|
4
|
+
.v-textarea {
|
|
5
|
+
&__input {
|
|
6
|
+
cursor: text;
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
&__element {
|
|
9
|
+
width: 100%;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
padding: 8px 0;
|
|
12
|
+
margin: 0;
|
|
13
|
+
font-size: inherit;
|
|
14
|
+
line-height: inherit;
|
|
15
|
+
letter-spacing: inherit;
|
|
16
|
+
resize: none;
|
|
17
|
+
background: transparent;
|
|
18
|
+
border: 0;
|
|
19
|
+
border-radius: 0;
|
|
20
|
+
outline: 0;
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
&:-webkit-autofill {
|
|
23
|
+
@include core.auto-fill-cancel;
|
|
24
|
+
// color: inherit !important;
|
|
25
|
+
// box-shadow: 0 0 0 1000px get-color(field) inset;
|
|
26
|
+
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
&::-ms-clear {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
&::placeholder {
|
|
33
|
+
font-style: italic;
|
|
34
|
+
color: var(--control-disabled-color);
|
|
35
|
+
}
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
// @include placeholder {
|
|
38
|
+
// color: get-color(text-muted);
|
|
39
|
+
// }
|
|
40
|
+
}
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
}
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
useTextareaControl,
|
|
6
6
|
createFormControlProps,
|
|
7
7
|
FormControlSlots,
|
|
8
|
-
|
|
9
|
-
} from '@fastkit/vue-
|
|
8
|
+
} from '@fastkit/vue-form-control';
|
|
9
|
+
import { defineSlotsProps } from '@fastkit/vue-utils';
|
|
10
10
|
import { VFormControl } from '../VFormControl';
|
|
11
11
|
import {
|
|
12
12
|
VControlField,
|