srcdev-nuxt-forms 6.1.23 → 6.2.0
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/app/components/forms/input-button/InputButtonCore.vue +1 -2
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +1 -2
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +1 -2
- package/app/components/forms/input-number/InputNumberCore.vue +1 -1
- package/app/components/forms/input-number/variants/InputNumberDefault.vue +1 -2
- package/app/components/forms/input-range/InputRangeCore.vue +1 -1
- package/app/components/forms/input-range/variants/InputRangeDefault.vue +1 -1
- package/app/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +1 -1
- package/app/components/forms/input-select/InputSelectCore.vue +5 -4
- package/app/components/forms/input-select/variants/InputSelectWithLabel.vue +1 -3
- package/app/components/forms/input-text/InputTextCore.vue +2 -2
- package/app/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +1 -2
- package/app/components/forms/input-text/variants/InputTextWithLabel.vue +1 -2
- package/app/components/forms/input-textarea/InputTextareaCore.vue +2 -2
- package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +1 -2
- package/app/components/forms/toggle-switch/ToggleSwitchCore.vue +1 -1
- package/app/components/forms/toggle-switch/ToggleSwitchCoreOld.vue +1 -1
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +1 -1
- package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +1 -1
- package/app/components/forms/triple-toggle-switch/TripleToggleSwitchCore.vue +1 -1
- package/app/components/utils/colour-scheme-select/ColourSchemeSelect.vue +3 -3
- package/app/components/utils/colour-scheme-select/ColourSchemeSelectOld.vue +1 -1
- package/package.json +1 -1
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
:readonly
|
|
5
5
|
:aria-disabled="readonly"
|
|
6
6
|
:data-testid
|
|
7
|
-
:data-theme="theme"
|
|
8
7
|
:data-size="size"
|
|
9
8
|
class="input-button-core"
|
|
10
|
-
:class="[`btn-${type}`, effectClass, elementClasses, { 'icon-only': slots.iconOnly }]"
|
|
9
|
+
:class="[`btn-${type}`, effectClass, elementClasses, { 'icon-only': slots.iconOnly }, theme]"
|
|
11
10
|
>
|
|
12
11
|
<span v-if="useEffect && effect == 'fancy'" class="fancy"></span>
|
|
13
12
|
<template v-if="slots.left && !slots.iconOnly">
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
<label
|
|
3
3
|
:for="id"
|
|
4
4
|
class="input-checkbox-radio-options-button"
|
|
5
|
-
:data-theme="formTheme"
|
|
6
5
|
:data-size="size"
|
|
7
|
-
:class="[size, elementClasses, optionsLayout, { error: fieldHasError }, { lozenge: displayAsLozenge }]"
|
|
6
|
+
:class="[size, elementClasses, optionsLayout, { error: fieldHasError }, { lozenge: displayAsLozenge }, formTheme]"
|
|
8
7
|
>
|
|
9
8
|
<InputCheckboxRadioCore
|
|
10
9
|
:isButton="true"
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="input-checkbox-radio-wrapper"
|
|
4
|
-
:data-theme="formTheme"
|
|
5
|
-
:data-size="size"
|
|
6
4
|
:class="[
|
|
7
5
|
type,
|
|
8
6
|
size,
|
|
@@ -10,6 +8,7 @@
|
|
|
10
8
|
{ error: fieldHasError },
|
|
11
9
|
{ button: isButton },
|
|
12
10
|
{ 'display-as-disc': displayAsDisc },
|
|
11
|
+
formTheme,
|
|
13
12
|
]"
|
|
14
13
|
>
|
|
15
14
|
<div class="input-checked-icon-slot">
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="input-number-with-label"
|
|
4
|
-
:data-theme="formTheme"
|
|
5
4
|
:data-size="size"
|
|
6
|
-
:class="[elementClasses, `theme-${theme}`, { error: fieldHasError }]"
|
|
5
|
+
:class="[elementClasses, `theme-${theme}`, { error: fieldHasError }, formTheme]"
|
|
7
6
|
>
|
|
8
7
|
<InputLabel
|
|
9
8
|
:for="id"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="input-range-fancy-with-label" :
|
|
2
|
+
<div class="input-range-fancy-with-label" :class="[elementClasses, formTheme, { error: fieldHasError }]">
|
|
3
3
|
<label class="input-range-fancy-label body-normal-bold" :for="id">{{ label }}</label>
|
|
4
4
|
<template v-if="slots.description">
|
|
5
5
|
<slot name="description"></slot>
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="input-select-wrapper"
|
|
4
|
-
:data-theme="formTheme"
|
|
5
4
|
:data-size="size"
|
|
6
|
-
:class="[inputVariant, size, { dirty: isDirty }, { active: isActive }, { error: fieldHasError }]"
|
|
5
|
+
:class="[inputVariant, size, { dirty: isDirty }, { active: isActive }, formTheme, { error: fieldHasError }]"
|
|
7
6
|
>
|
|
8
7
|
<select v-model="modelValue" class="input-select-core" :name :id :title>
|
|
9
8
|
<option v-if="placeholder" value="" readonly :selected="!modelValue" class="input-select-core-option placeholder">
|
|
@@ -130,8 +129,10 @@ const fieldData = defineModel("fieldData") as Ref<IFormMultipleOptions>
|
|
|
130
129
|
}
|
|
131
130
|
|
|
132
131
|
&::picker(select) {
|
|
133
|
-
transition:
|
|
134
|
-
|
|
132
|
+
transition:
|
|
133
|
+
display allow-discrete var(--theme-form-transition-duration),
|
|
134
|
+
opacity var(--theme-form-transition-duration),
|
|
135
|
+
overlay var(--theme-form-transition-duration) allow-discrete;
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
&:not(:open)::picker(select) {
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div
|
|
4
4
|
class="input-select-with-label"
|
|
5
|
-
:class="[inputVariant, { dirty: isDirty }, { active: isActive }, { error: fieldHasError }]"
|
|
5
|
+
:class="[inputVariant, formTheme, size, { dirty: isDirty }, { active: isActive }, { error: fieldHasError }]"
|
|
6
6
|
:data-testid
|
|
7
|
-
:data-theme="formTheme"
|
|
8
|
-
:data-size="size"
|
|
9
7
|
>
|
|
10
8
|
<InputLabel
|
|
11
9
|
:for="id"
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="input-text-with-label"
|
|
4
|
-
:
|
|
5
|
-
:class="[inputVariant, elementClasses, { dirty: isDirty }, { active: isActive }]"
|
|
4
|
+
:class="[inputVariant, formTheme, elementClasses, { dirty: isDirty }, { active: isActive }]"
|
|
6
5
|
>
|
|
7
6
|
<InputLabel
|
|
8
7
|
:for="id"
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div
|
|
4
4
|
class="input-text-with-label"
|
|
5
|
-
:
|
|
6
|
-
:class="[elementClasses, inputVariant, { dirty: isDirty }, { active: isActive }]"
|
|
5
|
+
:class="[elementClasses, inputVariant, formTheme, { dirty: isDirty }, { active: isActive }]"
|
|
7
6
|
>
|
|
8
7
|
<InputLabel
|
|
9
8
|
:for="id"
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div
|
|
4
4
|
class="input-textarea-with-label"
|
|
5
|
-
:
|
|
6
|
-
:class="[elementClasses, inputVariant, { dirty: isDirty }, { active: isActive }]"
|
|
5
|
+
:class="[elementClasses, formTheme, inputVariant, { dirty: isDirty }, { active: isActive }]"
|
|
7
6
|
>
|
|
8
7
|
<InputLabel
|
|
9
8
|
:for="id"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="toggle-switch-core" :class="elementClasses
|
|
2
|
+
<div class="toggle-switch-core" :class="[elementClasses, formTheme, size]">
|
|
3
3
|
<div @click="toggleSwitchValue" class="toggle-switch-input" :class="[{ round }]" :for="inputId">
|
|
4
4
|
<input
|
|
5
5
|
type="checkbox"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="triple-toggle-switch" :class="[elementClasses
|
|
2
|
+
<div class="triple-toggle-switch" :class="[elementClasses, size, theme]">
|
|
3
3
|
<div class="triple-toggle-switch-wrapper">
|
|
4
4
|
<div class="selected-option-marker-wrapper">
|
|
5
5
|
<div class="selected-option-marker" :class="[{ show: showMarker }]"></div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="colour-scheme-select" :
|
|
2
|
+
<div class="colour-scheme-select" :class="[theme, size]">
|
|
3
3
|
<form class="colour-scheme-select-form mbe-20" ref="colourSchemeWrapper">
|
|
4
4
|
<div class="select-scheme-marker-wrapper">
|
|
5
5
|
<div class="select-scheme-marker" :class="[{ show: showMarker }]"></div>
|
|
@@ -165,8 +165,8 @@ watch(currentActiveIndex, () => {
|
|
|
165
165
|
--_form-outline-colour: var(--theme-form-radio-outline);
|
|
166
166
|
|
|
167
167
|
--_form-border-radius: calc(
|
|
168
|
-
(var(--_scheme-icon-font-size) / 2) + var(--_form-border-width) + var(--_form-outline-width) +
|
|
169
|
-
var(--_select-scheme-group-padding) + var(--_select-scheme-group-border-width) +
|
|
168
|
+
(var(--_scheme-icon-font-size) / 2) + var(--_form-border-width) + var(--_form-outline-width) +
|
|
169
|
+
var(--_form-padding) + var(--_select-scheme-group-padding) + var(--_select-scheme-group-border-width) +
|
|
170
170
|
var(--_select-scheme-group-outline-width)
|
|
171
171
|
);
|
|
172
172
|
|
package/package.json
CHANGED