srcdev-nuxt-forms 6.2.1 → 7.0.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 +2 -1
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +2 -1
- package/app/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +2 -1
- package/app/components/forms/input-number/InputNumberCore.vue +1 -1
- package/app/components/forms/input-number/variants/InputNumberDefault.vue +2 -1
- 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 +4 -5
- package/app/components/forms/input-select/variants/InputSelectWithLabel.vue +3 -1
- package/app/components/forms/input-text/InputTextCore.vue +2 -2
- package/app/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +2 -1
- package/app/components/forms/input-text/variants/InputTextWithLabel.vue +2 -1
- package/app/components/forms/input-textarea/InputTextareaCore.vue +2 -2
- package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +2 -1
- 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,9 +4,10 @@
|
|
|
4
4
|
:readonly
|
|
5
5
|
:aria-disabled="readonly"
|
|
6
6
|
:data-testid
|
|
7
|
+
:data-theme="theme"
|
|
7
8
|
:data-size="size"
|
|
8
9
|
class="input-button-core"
|
|
9
|
-
:class="[`btn-${type}`, effectClass, elementClasses, { 'icon-only': slots.iconOnly }
|
|
10
|
+
:class="[`btn-${type}`, effectClass, elementClasses, { 'icon-only': slots.iconOnly }]"
|
|
10
11
|
>
|
|
11
12
|
<span v-if="useEffect && effect == 'fancy'" class="fancy"></span>
|
|
12
13
|
<template v-if="slots.left && !slots.iconOnly">
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
<label
|
|
3
3
|
:for="id"
|
|
4
4
|
class="input-checkbox-radio-options-button"
|
|
5
|
+
:data-theme="formTheme"
|
|
5
6
|
:data-size="size"
|
|
6
|
-
:class="[size, elementClasses, optionsLayout, { error: fieldHasError }, { lozenge: displayAsLozenge }
|
|
7
|
+
:class="[size, elementClasses, optionsLayout, { error: fieldHasError }, { lozenge: displayAsLozenge }]"
|
|
7
8
|
>
|
|
8
9
|
<InputCheckboxRadioCore
|
|
9
10
|
:isButton="true"
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="input-checkbox-radio-wrapper"
|
|
4
|
+
:data-theme="formTheme"
|
|
5
|
+
:data-size="size"
|
|
4
6
|
:class="[
|
|
5
7
|
type,
|
|
6
8
|
size,
|
|
@@ -8,7 +10,6 @@
|
|
|
8
10
|
{ error: fieldHasError },
|
|
9
11
|
{ button: isButton },
|
|
10
12
|
{ 'display-as-disc': displayAsDisc },
|
|
11
|
-
formTheme,
|
|
12
13
|
]"
|
|
13
14
|
>
|
|
14
15
|
<div class="input-checked-icon-slot">
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="input-number-with-label"
|
|
4
|
+
:data-theme="formTheme"
|
|
4
5
|
:data-size="size"
|
|
5
|
-
:class="[elementClasses, `theme-${theme}`, { error: fieldHasError }
|
|
6
|
+
:class="[elementClasses, `theme-${theme}`, { error: fieldHasError }]"
|
|
6
7
|
>
|
|
7
8
|
<InputLabel
|
|
8
9
|
:for="id"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="input-range-fancy-with-label" :class="[elementClasses,
|
|
2
|
+
<div class="input-range-fancy-with-label" :data-theme="formTheme" :class="[elementClasses, { 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,8 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="input-select-wrapper"
|
|
4
|
+
:data-theme="formTheme"
|
|
4
5
|
:data-size="size"
|
|
5
|
-
:class="[inputVariant, size, { dirty: isDirty }, { active: isActive },
|
|
6
|
+
:class="[inputVariant, size, { dirty: isDirty }, { active: isActive }, { error: fieldHasError }]"
|
|
6
7
|
>
|
|
7
8
|
<select v-model="modelValue" class="input-select-core" :name :id :title>
|
|
8
9
|
<option v-if="placeholder" value="" readonly :selected="!modelValue" class="input-select-core-option placeholder">
|
|
@@ -129,10 +130,8 @@ const fieldData = defineModel("fieldData") as Ref<IFormMultipleOptions>
|
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
&::picker(select) {
|
|
132
|
-
transition:
|
|
133
|
-
|
|
134
|
-
opacity var(--theme-form-transition-duration),
|
|
135
|
-
overlay var(--theme-form-transition-duration) allow-discrete;
|
|
133
|
+
transition: display allow-discrete var(--theme-form-transition-duration),
|
|
134
|
+
opacity var(--theme-form-transition-duration), overlay var(--theme-form-transition-duration) allow-discrete;
|
|
136
135
|
}
|
|
137
136
|
|
|
138
137
|
&:not(:open)::picker(select) {
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div
|
|
4
4
|
class="input-select-with-label"
|
|
5
|
-
:class="[inputVariant,
|
|
5
|
+
:class="[inputVariant, { dirty: isDirty }, { active: isActive }, { error: fieldHasError }]"
|
|
6
6
|
:data-testid
|
|
7
|
+
:data-theme="formTheme"
|
|
8
|
+
:data-size="size"
|
|
7
9
|
>
|
|
8
10
|
<InputLabel
|
|
9
11
|
:for="id"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
class="input-text-with-label"
|
|
4
|
-
:
|
|
4
|
+
:data-theme="formTheme"
|
|
5
|
+
:class="[inputVariant, elementClasses, { dirty: isDirty }, { active: isActive }]"
|
|
5
6
|
>
|
|
6
7
|
<InputLabel
|
|
7
8
|
:for="id"
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div
|
|
4
4
|
class="input-text-with-label"
|
|
5
|
-
:
|
|
5
|
+
:data-theme="formTheme"
|
|
6
|
+
:class="[elementClasses, inputVariant, { dirty: isDirty }, { active: isActive }]"
|
|
6
7
|
>
|
|
7
8
|
<InputLabel
|
|
8
9
|
:for="id"
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div
|
|
4
4
|
class="input-textarea-with-label"
|
|
5
|
-
:
|
|
5
|
+
:data-theme="formTheme"
|
|
6
|
+
:class="[elementClasses, inputVariant, { dirty: isDirty }, { active: isActive }]"
|
|
6
7
|
>
|
|
7
8
|
<InputLabel
|
|
8
9
|
:for="id"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="toggle-switch-core" :class="
|
|
2
|
+
<div class="toggle-switch-core" :class="elementClasses" :data-size="size" :data-theme="formTheme">
|
|
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]" :data-size="size" :data-theme="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" :data-size="size" :data-theme="theme">
|
|
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(--
|
|
168
|
+
(var(--_scheme-icon-font-size) / 2) + var(--_form-border-width) + var(--_form-outline-width) + var(--_form-padding) +
|
|
169
|
+
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