@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,230 +1,229 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-data-table {
|
|
3
|
+
--controls-vertial-margin: 0.625em;
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
&__empty--message {
|
|
10
|
-
// @include container;
|
|
5
|
+
.v-card-content & {
|
|
6
|
+
margin-right: calc(var(--card-content-padding) * -1);
|
|
7
|
+
margin-left: calc(var(--card-content-padding) * -1);
|
|
8
|
+
}
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
&__empty--message {
|
|
11
|
+
// @include container;
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
align-items: center;
|
|
19
|
-
justify-content: flex-end;
|
|
13
|
+
// color: get-color(text-muted);
|
|
14
|
+
}
|
|
20
15
|
|
|
21
|
-
&
|
|
16
|
+
&__controls {
|
|
22
17
|
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
23
19
|
align-items: center;
|
|
20
|
+
justify-content: flex-end;
|
|
24
21
|
|
|
25
|
-
&
|
|
26
|
-
|
|
22
|
+
&__info {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
|
|
26
|
+
&__length {
|
|
27
|
+
margin-right: 20px;
|
|
28
|
+
}
|
|
27
29
|
}
|
|
28
|
-
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
&__select-limit {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
&__prefix {
|
|
36
|
+
margin-right: 0.5em;
|
|
37
|
+
font-size: 0.75em;
|
|
38
|
+
color: var(--palette-muted);
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
}
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
.v-select {
|
|
43
|
+
width: 5em;
|
|
44
|
+
margin-left: 0.5em;
|
|
45
|
+
}
|
|
44
46
|
}
|
|
45
|
-
}
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
&__pagination {
|
|
49
|
+
flex: 1 1 100%;
|
|
50
|
+
margin-left: auto;
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
@media screen and (min-width: 320px) {
|
|
53
|
+
flex: 0 0 50%;
|
|
54
|
+
width: 50%;
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
|
-
}
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
&__header {
|
|
60
|
+
margin-bottom: var(--controls-vertial-margin);
|
|
61
|
+
}
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
&__footer {
|
|
64
|
+
margin-top: var(--controls-vertial-margin);
|
|
65
|
+
}
|
|
65
66
|
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
&__body {
|
|
68
|
+
position: relative;
|
|
68
69
|
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
&__inner {
|
|
71
|
+
overflow-x: auto;
|
|
72
|
+
}
|
|
71
73
|
}
|
|
72
|
-
}
|
|
73
74
|
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
&__table-wrapper {
|
|
76
|
+
display: flex;
|
|
76
77
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
78
|
+
&::before,
|
|
79
|
+
&::after {
|
|
80
|
+
display: block;
|
|
81
|
+
// flex: 0 0 $view-padding-narrow;
|
|
82
|
+
// width: $view-padding-narrow;
|
|
83
|
+
height: 1px;
|
|
84
|
+
content: '';
|
|
85
|
+
|
|
86
|
+
// @include mq(wide) {
|
|
87
|
+
// flex-basis: $view-padding-wide;
|
|
88
|
+
// width: $view-padding-wide;
|
|
89
|
+
// }
|
|
90
|
+
}
|
|
91
|
+
}
|
|
84
92
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
&__loading {
|
|
94
|
+
position: absolute;
|
|
95
|
+
inset: 0;
|
|
96
|
+
z-index: 1;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
background: var(--palette-background);
|
|
101
|
+
opacity: 0.5;
|
|
89
102
|
}
|
|
90
|
-
}
|
|
91
103
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
display: flex;
|
|
100
|
-
align-items: center;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
background: var(--palette-background);
|
|
103
|
-
opacity: 0.5;
|
|
104
|
-
}
|
|
104
|
+
&__table {
|
|
105
|
+
width: 100%;
|
|
106
|
+
// min-width: calc(100% - #{$view-padding-narrow * 2});
|
|
107
|
+
margin: 0;
|
|
108
|
+
// border-collapse: separate;
|
|
109
|
+
background: var(--palette-background);
|
|
110
|
+
border-radius: var(--control-field-radius);
|
|
105
111
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
margin: 0;
|
|
110
|
-
// border-collapse: separate;
|
|
111
|
-
background: var(--palette-background);
|
|
112
|
-
border-radius: var(--control-field-radius);
|
|
112
|
+
// @include mq(wide) {
|
|
113
|
+
// min-width: calc(100% - #{$view-padding-wide * 2});
|
|
114
|
+
// }
|
|
113
115
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
&__cell {
|
|
117
|
+
position: relative;
|
|
118
|
+
text-align: left;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
vertical-align: middle;
|
|
121
|
+
border-bottom: thin solid rgba(0, 0, 0, 0.12);
|
|
122
|
+
transition: background 0.2s;
|
|
117
123
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
white-space: nowrap;
|
|
122
|
-
vertical-align: middle;
|
|
123
|
-
border-bottom: thin solid rgba(0, 0, 0, 0.12);
|
|
124
|
-
transition: background 0.2s;
|
|
125
|
-
|
|
126
|
-
&:first-child {
|
|
127
|
-
padding-left: calc(var(--table-cell-horizontal-padding) * 2);
|
|
128
|
-
}
|
|
124
|
+
&:first-child {
|
|
125
|
+
padding-left: calc(var(--table-cell-horizontal-padding) * 2);
|
|
126
|
+
}
|
|
129
127
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
&:last-child {
|
|
129
|
+
padding-right: calc(var(--table-cell-horizontal-padding) * 2);
|
|
130
|
+
}
|
|
133
131
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
&--left {
|
|
133
|
+
text-align: left;
|
|
134
|
+
}
|
|
137
135
|
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
&--center {
|
|
137
|
+
text-align: center;
|
|
140
138
|
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
.v-data-table__table__sort-icon--empty {
|
|
140
|
+
display: flex;
|
|
141
|
+
}
|
|
143
142
|
}
|
|
144
|
-
}
|
|
145
143
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
&--right {
|
|
145
|
+
text-align: right;
|
|
146
|
+
}
|
|
149
147
|
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
&[tabindex='0'] {
|
|
149
|
+
cursor: pointer;
|
|
152
150
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
151
|
+
&:hover,
|
|
152
|
+
&:focus {
|
|
153
|
+
// background: var(--shadow-color);
|
|
154
|
+
// background: get-color(light);
|
|
155
|
+
}
|
|
157
156
|
}
|
|
158
|
-
}
|
|
159
157
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
&__tile {
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
}
|
|
163
162
|
}
|
|
164
|
-
}
|
|
165
163
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
&__sort-icon {
|
|
165
|
+
width: 25px;
|
|
166
|
+
font-size: 1.25em;
|
|
167
|
+
opacity: 0;
|
|
168
|
+
transition: transform 0.2s, opacity 0.2s;
|
|
171
169
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
// stylelint-disable-next-line no-descending-specificity
|
|
171
|
+
&--empty {
|
|
172
|
+
display: none;
|
|
173
|
+
}
|
|
175
174
|
}
|
|
176
|
-
}
|
|
177
175
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
176
|
+
&__header &__cell {
|
|
177
|
+
user-select: none;
|
|
178
|
+
background: rgba(255, 255, 255, 0.85);
|
|
179
|
+
backdrop-filter: blur(3px);
|
|
182
180
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
181
|
+
&--active[tabindex='0'] {
|
|
182
|
+
// color: get-color(invert-text);
|
|
183
|
+
// background: get-color(primary);
|
|
184
|
+
}
|
|
186
185
|
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&__header &__cell--active &__sort-icon {
|
|
190
|
-
opacity: 1;
|
|
191
|
-
}
|
|
192
186
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
187
|
+
&__header &__cell--active &__sort-icon {
|
|
188
|
+
opacity: 1;
|
|
189
|
+
}
|
|
197
190
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
191
|
+
&__cell[tabindex='0']:hover &__sort-icon,
|
|
192
|
+
&__cell[tabindex='0']:focus &__sort-icon {
|
|
193
|
+
opacity: 1;
|
|
194
|
+
}
|
|
201
195
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
td {
|
|
205
|
-
// background: get-color(tocuh-0);
|
|
206
|
-
}
|
|
196
|
+
&__body tr:last-child &__cell {
|
|
197
|
+
border-bottom: none;
|
|
207
198
|
}
|
|
208
199
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
200
|
+
&__item {
|
|
201
|
+
&:hover {
|
|
202
|
+
td {
|
|
203
|
+
// background: get-color(tocuh-0);
|
|
204
|
+
}
|
|
213
205
|
}
|
|
214
206
|
|
|
215
|
-
|
|
207
|
+
&--selected {
|
|
208
|
+
// stylelint-disable-next-line no-descending-specificity
|
|
216
209
|
td {
|
|
217
210
|
// background: get-color(light);
|
|
218
211
|
}
|
|
212
|
+
|
|
213
|
+
&:hover {
|
|
214
|
+
td {
|
|
215
|
+
// background: get-color(light);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
220
|
}
|
|
222
|
-
}
|
|
223
221
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
222
|
+
// stylelint-disable-next-line no-descending-specificity
|
|
223
|
+
&--fixed-header &__table__header &__table__cell {
|
|
224
|
+
position: sticky;
|
|
225
|
+
top: 0;
|
|
226
|
+
z-index: 1;
|
|
227
|
+
}
|
|
229
228
|
}
|
|
230
229
|
}
|
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
height: 100%;
|
|
5
|
-
|
|
6
|
-
&__inner {
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: stretch;
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-drawer-layout {
|
|
3
|
+
display: block;
|
|
10
4
|
width: 100%;
|
|
11
5
|
height: 100%;
|
|
12
|
-
}
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
&__inner {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: stretch;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
}
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
&__header {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex: 0 0 var(--val-topToolbar-height);
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
height: var(--val-topToolbar-height);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__body {
|
|
24
|
+
flex: 1 1 100%;
|
|
25
|
+
overflow: auto;
|
|
26
|
+
-webkit-overflow-scrolling: touch;
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
&__footer {
|
|
30
|
+
flex: 0 0 auto;
|
|
31
|
+
margin-top: auto;
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
34
|
}
|
|
@@ -3,10 +3,9 @@ import {
|
|
|
3
3
|
VueForm,
|
|
4
4
|
createFormSettings,
|
|
5
5
|
useForm,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from '@fastkit/vue-kit';
|
|
6
|
+
} from '@fastkit/vue-form-control';
|
|
7
|
+
import { defineSlotsProps, renderSlotOrEmpty } from '@fastkit/vue-utils';
|
|
8
|
+
import { getDocumentScroller } from '@fastkit/vue-scroller';
|
|
10
9
|
import { createControlProps, useControl } from '../../composables';
|
|
11
10
|
import { VUI_FORM_SYMBOL, useVui } from '../../injections';
|
|
12
11
|
|
|
@@ -1,101 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// --control-label-font-size: calc(var(--control-field-font-size) * 0.75); // 12
|
|
8
|
-
--my-label-color: var(--control-label-color);
|
|
9
|
-
--my-message-color: var(--control-message-color);
|
|
1
|
+
@layer vui {
|
|
2
|
+
.v-form-control {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
margin: var(--control-horizontal-margin) 0;
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
--my-label-color: var(--
|
|
13
|
-
--my-message-color: var(--
|
|
14
|
-
}
|
|
8
|
+
// --control-label-font-size: calc(var(--control-field-font-size) * 0.75); // 12
|
|
9
|
+
--my-label-color: var(--control-label-color);
|
|
10
|
+
--my-message-color: var(--control-message-color);
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
&--invalid:not(#{&}--readonly) {
|
|
13
|
+
--my-label-color: var(--main-color);
|
|
14
|
+
--my-message-color: var(--main-color);
|
|
15
|
+
}
|
|
20
16
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
font-size: var(--control-label-font-size);
|
|
26
|
-
font-weight: var(--control-label-font-weight);
|
|
27
|
-
line-height: var(--control-label-height);
|
|
28
|
-
color: var(--my-label-color);
|
|
29
|
-
letter-spacing: 0.00938em;
|
|
17
|
+
&--disabled {
|
|
18
|
+
--my-label-color: var(--control-disabled-color);
|
|
19
|
+
--my-message-color: var(--control-disabled-color);
|
|
20
|
+
}
|
|
30
21
|
|
|
31
|
-
&
|
|
32
|
-
display:
|
|
22
|
+
&__label {
|
|
23
|
+
display: flex;
|
|
33
24
|
align-items: center;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// color: var(--palette-muted);
|
|
41
|
-
text-decoration: none;
|
|
42
|
-
letter-spacing: normal;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
|
|
45
|
-
// &:hover,
|
|
46
|
-
// &:focus {
|
|
47
|
-
// text-decoration: underline;
|
|
48
|
-
// }
|
|
25
|
+
align-self: flex-start;
|
|
26
|
+
font-size: var(--control-label-font-size);
|
|
27
|
+
font-weight: var(--control-label-font-weight);
|
|
28
|
+
line-height: var(--control-label-height);
|
|
29
|
+
color: var(--my-label-color);
|
|
30
|
+
letter-spacing: 0.00938em;
|
|
49
31
|
|
|
50
|
-
&
|
|
51
|
-
|
|
52
|
-
display: flex;
|
|
32
|
+
&__hinttip {
|
|
33
|
+
display: inline-flex;
|
|
53
34
|
align-items: center;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
35
|
+
margin-top: -0.2em;
|
|
36
|
+
margin-left: 0.6em;
|
|
37
|
+
// font-size: calc(var(--root-em) * 0.5);
|
|
38
|
+
font-size: 80%;
|
|
39
|
+
line-height: 1;
|
|
40
|
+
color: inherit;
|
|
41
|
+
// color: var(--palette-muted);
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
letter-spacing: normal;
|
|
44
|
+
cursor: pointer;
|
|
58
45
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
46
|
+
// &:hover,
|
|
47
|
+
// &:focus {
|
|
48
|
+
// text-decoration: underline;
|
|
49
|
+
// }
|
|
50
|
+
|
|
51
|
+
&__icon {
|
|
52
|
+
position: relative;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
font-size: 120%;
|
|
57
|
+
text-decoration: none !important;
|
|
63
58
|
}
|
|
64
|
-
}
|
|
65
59
|
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
&:hover &__icon,
|
|
61
|
+
&:focus &__icon {
|
|
62
|
+
&::before {
|
|
63
|
+
opacity: 0.1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__hint {
|
|
68
|
+
font-size: calc(var(--root-em) * 0.75);
|
|
69
|
+
}
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
|
-
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
// &--disabled &__body {
|
|
74
|
+
// user-select: none;
|
|
75
|
+
// }
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
&__info {
|
|
78
|
+
display: flex;
|
|
79
|
+
padding-top: 3px;
|
|
80
|
+
}
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
&__message,
|
|
83
|
+
&__appends {
|
|
84
|
+
margin: 0 var(--control-message-horizontal-margin);
|
|
85
|
+
font-size: var(--control-message-font-size);
|
|
86
|
+
line-height: 1.66;
|
|
87
|
+
color: var(--my-message-color);
|
|
88
|
+
}
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
&__message {
|
|
91
|
+
flex: 1 0;
|
|
92
|
+
// margin: 0 var(--control-message-horizontal-margin);
|
|
93
|
+
// font-size: var(--control-message-font-size);
|
|
94
|
+
// line-height: 1.66;
|
|
95
|
+
// color: var(--my-message-color);
|
|
96
|
+
}
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
&__appends {
|
|
99
|
+
flex: 0 1;
|
|
100
|
+
margin-left: auto;
|
|
101
|
+
}
|
|
100
102
|
}
|
|
101
103
|
}
|
|
@@ -4,11 +4,10 @@ import {
|
|
|
4
4
|
createFormControlSettings,
|
|
5
5
|
useFormControl,
|
|
6
6
|
FormControlSlots,
|
|
7
|
-
defineSlotsProps,
|
|
8
7
|
FormControl,
|
|
9
|
-
renderSlotOrEmpty,
|
|
10
8
|
RequiredChipSource,
|
|
11
|
-
} from '@fastkit/vue-
|
|
9
|
+
} from '@fastkit/vue-form-control';
|
|
10
|
+
import { defineSlotsProps, renderSlotOrEmpty } from '@fastkit/vue-utils';
|
|
12
11
|
import { useVuiColorProvider, useVui } from '../../injections';
|
|
13
12
|
import type { VuiService } from '../../service';
|
|
14
13
|
import { VIcon } from '../VIcon';
|