@v1nt1248/3nclient-lib 0.2.92 → 0.2.94
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/dist/components/ui3n-dialog/types.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/ui3n-components.js +410 -408
- package/package.json +1 -1
- package/src/components/ui3n-dialog/types.ts +1 -0
- package/src/components/ui3n-dialog/ui3n-dialog.vue +5 -2
- package/src/components/ui3n-input/ui3n-input.vue +21 -18
package/package.json
CHANGED
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
>
|
|
157
157
|
<!-- HEADER -->
|
|
158
158
|
<div
|
|
159
|
-
v-if="title"
|
|
159
|
+
v-if="title && !$slots['header']"
|
|
160
160
|
:class="[$style.title, $style.titleDefault]"
|
|
161
161
|
>
|
|
162
162
|
<ui3n-icon
|
|
@@ -175,6 +175,7 @@
|
|
|
175
175
|
<slot name="header" />
|
|
176
176
|
</div>
|
|
177
177
|
|
|
178
|
+
<!-- BODY -->
|
|
178
179
|
<div
|
|
179
180
|
v-if="$slots['body']"
|
|
180
181
|
:class="$style.content"
|
|
@@ -182,8 +183,9 @@
|
|
|
182
183
|
<slot name="body" />
|
|
183
184
|
</div>
|
|
184
185
|
|
|
186
|
+
<!-- ACTIONS -->
|
|
185
187
|
<div
|
|
186
|
-
v-if="confirmButton || cancelButton"
|
|
188
|
+
v-if="(confirmButton || cancelButton) && !$slots['actions']"
|
|
187
189
|
:class="[$style.actions, $style.actionsDefault]"
|
|
188
190
|
>
|
|
189
191
|
<ui3n-button
|
|
@@ -223,6 +225,7 @@
|
|
|
223
225
|
</div>
|
|
224
226
|
|
|
225
227
|
<ui3n-button
|
|
228
|
+
v-if="!hideCloseButton"
|
|
226
229
|
:class="$style.closeBtn"
|
|
227
230
|
type="icon"
|
|
228
231
|
size="small"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
const props = defineProps<Ui3nInputProps>();
|
|
8
8
|
const emits = defineEmits<Ui3nInputEmits>();
|
|
9
9
|
|
|
10
|
-
const
|
|
10
|
+
const css = useCssModule();
|
|
11
11
|
|
|
12
12
|
const inputElement = ref<HTMLInputElement | null>(null);
|
|
13
13
|
const text = ref<string>('');
|
|
@@ -32,29 +32,29 @@
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
const mainCssClasses = computed(() => {
|
|
35
|
-
const val = [
|
|
36
|
-
props.label && val.push(
|
|
37
|
-
props.icon && val.push(
|
|
38
|
-
props.clearable && text.value && val.push(
|
|
39
|
-
props.disabled && val.push(
|
|
40
|
-
((!!errorMessage.value && !isValid.value) || props.displayStateMode === 'error') && val.push(
|
|
41
|
-
props.displayStateMode === 'success' && val.push(
|
|
35
|
+
const val = [css.ui3nInput];
|
|
36
|
+
props.label && val.push(css.withLabel);
|
|
37
|
+
props.icon && val.push(css.withIcon);
|
|
38
|
+
props.clearable && text.value && val.push(css.clearable);
|
|
39
|
+
props.disabled && val.push(css.disabled);
|
|
40
|
+
((!!errorMessage.value && !isValid.value) || props.displayStateMode === 'error') && val.push(css.error);
|
|
41
|
+
props.displayStateMode === 'success' && val.push(css.success);
|
|
42
42
|
|
|
43
43
|
return val;
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
const iconCssClasses = computed(() => {
|
|
47
|
-
const val = [
|
|
48
|
-
props.disabled && val.push(
|
|
47
|
+
const val = [css.ui3nInputIcon];
|
|
48
|
+
props.disabled && val.push(css.ui3nInputIconDisabled);
|
|
49
49
|
|
|
50
50
|
return val;
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
const messageCssClasses = computed(() => {
|
|
54
|
-
const val = [
|
|
54
|
+
const val = [css.ui3nInputFieldMessage];
|
|
55
55
|
(errorMessage.value || (props.displayStateMode === 'error' && !!props.displayStateMessage)) &&
|
|
56
|
-
|
|
57
|
-
props.displayStateMode === 'success' && props.displayStateMessage && val.push(
|
|
56
|
+
val.push(css.ui3nInputErrorMessage);
|
|
57
|
+
props.displayStateMode === 'success' && props.displayStateMessage && val.push(css.ui3nInputSuccessMessage);
|
|
58
58
|
|
|
59
59
|
return val;
|
|
60
60
|
});
|
|
@@ -185,12 +185,12 @@
|
|
|
185
185
|
:class="$style.ui3nInputField"
|
|
186
186
|
@input="onInput"
|
|
187
187
|
@keydown.enter="onEnterKeydown"
|
|
188
|
-
@keydown.
|
|
188
|
+
@keydown.esc="onEscapeKeydown"
|
|
189
189
|
@keydown="onKeydown"
|
|
190
190
|
@focusin="onFocus"
|
|
191
191
|
@focusout="onBlur"
|
|
192
192
|
@change="onChange"
|
|
193
|
-
|
|
193
|
+
/>
|
|
194
194
|
|
|
195
195
|
<ui3n-icon
|
|
196
196
|
v-if="icon"
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
|
|
239
239
|
position: relative;
|
|
240
240
|
width: 100%;
|
|
241
|
-
padding: 1px;
|
|
241
|
+
padding: 1px 1px 15px 1px;
|
|
242
242
|
border-radius: var(--spacing-xs);
|
|
243
243
|
|
|
244
244
|
&:hover {
|
|
@@ -323,11 +323,14 @@
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
.ui3nInputFieldMessage {
|
|
326
|
+
position: absolute;
|
|
327
|
+
left: 0;
|
|
328
|
+
width: 100%;
|
|
329
|
+
top: 55px;
|
|
326
330
|
font-style: italic;
|
|
327
331
|
font-size: var(--font-10);
|
|
328
332
|
font-weight: 400;
|
|
329
|
-
line-height: 1.
|
|
330
|
-
margin-top: 2px;
|
|
333
|
+
line-height: 1.1;
|
|
331
334
|
|
|
332
335
|
&.ui3nInputErrorMessage {
|
|
333
336
|
color: var(--error-content-default);
|