srcdev-nuxt-forms 6.2.1 → 7.0.1

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.
Files changed (23) hide show
  1. package/app/components/forms/input-button/InputButtonCore.vue +2 -1
  2. package/app/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +2 -1
  3. package/app/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +2 -1
  4. package/app/components/forms/input-number/InputNumberCore.vue +1 -1
  5. package/app/components/forms/input-number/variants/InputNumberDefault.vue +2 -1
  6. package/app/components/forms/input-range/InputRangeCore.vue +1 -1
  7. package/app/components/forms/input-range/variants/InputRangeDefault.vue +1 -1
  8. package/app/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +1 -1
  9. package/app/components/forms/input-select/InputSelectCore.vue +4 -5
  10. package/app/components/forms/input-select/variants/InputSelectWithLabel.vue +3 -1
  11. package/app/components/forms/input-text/InputTextCore.vue +2 -2
  12. package/app/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +2 -1
  13. package/app/components/forms/input-text/variants/InputTextWithLabel.vue +2 -1
  14. package/app/components/forms/input-textarea/InputTextareaCore.vue +2 -2
  15. package/app/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +2 -1
  16. package/app/components/forms/toggle-switch/ToggleSwitchCore.vue +1 -1
  17. package/app/components/forms/toggle-switch/ToggleSwitchCoreOld.vue +1 -1
  18. package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +1 -1
  19. package/app/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +1 -1
  20. package/app/components/forms/triple-toggle-switch/TripleToggleSwitchCore.vue +1 -1
  21. package/app/components/utils/colour-scheme-select/ColourSchemeSelect.vue +3 -3
  22. package/app/components/utils/colour-scheme-select/ColourSchemeSelectOld.vue +1 -1
  23. 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 }, theme]"
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 }, formTheme]"
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,5 +1,5 @@
1
1
  <template>
2
- <div class="input-number-wrapper" :class="formTheme" :data-size="size">
2
+ <div class="input-number-wrapper" :data-theme="formTheme" :data-size="size">
3
3
  <div v-if="slots.left" class="slot left">
4
4
  <slot name="left"></slot>
5
5
  </div>
@@ -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 }, formTheme]"
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-wrapper" :class="formTheme">
2
+ <div class="input-range-wrapper" :data-theme="formTheme">
3
3
  <div v-if="slots.left" class="slot left">
4
4
  <slot name="left"></slot>
5
5
  </div>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="input-range-with-label" :class="[elementClasses, formTheme, { error: fieldHasError }]">
2
+ <div class="input-range-with-label" :data-theme="formTheme" :class="[elementClasses, { error: fieldHasError }]">
3
3
  <InputLabel
4
4
  :for="id"
5
5
  :id
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="input-range-fancy-with-label" :class="[elementClasses, formTheme, { error: fieldHasError }]">
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 }, formTheme, { error: fieldHasError }]"
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
- display allow-discrete var(--theme-form-transition-duration),
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, formTheme, size, { dirty: isDirty }, { active: isActive }, { error: fieldHasError }]"
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,11 +1,11 @@
1
1
  <template>
2
2
  <div
3
3
  class="input-text-wrapper"
4
+ :data-theme="formTheme"
5
+ :data-size="size"
4
6
  :data-inputmode="inputmode"
5
7
  :class="[
6
8
  inputVariant,
7
- formTheme,
8
- size,
9
9
  { dirty: isDirty },
10
10
  { active: isActive },
11
11
  { error: fieldHasError },
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <div
3
3
  class="input-text-with-label"
4
- :class="[inputVariant, formTheme, elementClasses, { dirty: isDirty }, { active: isActive }]"
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
- :class="[elementClasses, inputVariant, formTheme, { dirty: isDirty }, { active: isActive }]"
5
+ :data-theme="formTheme"
6
+ :class="[elementClasses, inputVariant, { dirty: isDirty }, { active: isActive }]"
6
7
  >
7
8
  <InputLabel
8
9
  :for="id"
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <div
3
3
  class="input-textarea-wrapper"
4
+ :data-theme="formTheme"
5
+ :data-size="size"
4
6
  :class="[
5
7
  inputVariant,
6
- formTheme,
7
- size,
8
8
  { dirty: isDirty },
9
9
  { active: isActive },
10
10
  { error: fieldHasError },
@@ -2,7 +2,8 @@
2
2
  <div>
3
3
  <div
4
4
  class="input-textarea-with-label"
5
- :class="[elementClasses, formTheme, inputVariant, { dirty: isDirty }, { active: isActive }]"
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="[elementClasses, formTheme, size]">
2
+ <div class="toggle-switch-core" :class="elementClasses" :data-size="size" :data-theme="formTheme">
3
3
  <div
4
4
  @click="toggleSwitchValue"
5
5
  class="toggle-switch-wrapper"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="toggle-switch-core" :class="[elementClasses, formTheme, size]">
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="toggle-switch-with-label" :class="[elementClasses, formTheme]">
2
+ <div class="toggle-switch-with-label" :class="[elementClasses]" :data-theme="formTheme">
3
3
  <InputLabel
4
4
  :for="`toggle-sitch-${id}`"
5
5
  :id
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="toggle-switch-with-label-inline" :class="[elementClasses, theme]">
2
+ <div class="toggle-switch-with-label-inline" :class="[elementClasses]" :data-theme="theme">
3
3
  <InputLabel
4
4
  :for="`toggle-sitch-${id}`"
5
5
  :id
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="triple-toggle-switch" :class="[elementClasses, size, theme]">
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" :class="[theme, size]">
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(--_form-padding) + 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) + 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
 
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="colour-scheme-select" :class="[theme, size]">
2
+ <div class="colour-scheme-select" :data-size="size" :data-theme="theme">
3
3
  <p>Color Scheme select</p>
4
4
 
5
5
  <form class="colour-scheme-select-form mbe-20">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-forms",
3
3
  "type": "module",
4
- "version": "6.2.1",
4
+ "version": "7.0.1",
5
5
  "main": "nuxt.config.ts",
6
6
  "scripts": {
7
7
  "clean": "rm -rf .nuxt && rm -rf .output && rm -rf .playground/.nuxt && rm -rf .playground/.output",