aloha-vue 1.2.224 → 1.2.226
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/package.json
CHANGED
|
@@ -207,15 +207,21 @@ export default {
|
|
|
207
207
|
stepNumber: this.stepNumber,
|
|
208
208
|
stepTextId: this.stepTextId,
|
|
209
209
|
}) : [
|
|
210
|
-
this.isStepNumberVisible
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
210
|
+
this.isStepNumberVisible ?
|
|
211
|
+
h("span", {
|
|
212
|
+
class: "a_wizard__step__number",
|
|
213
|
+
}, [
|
|
214
|
+
h(ATranslation, {
|
|
215
|
+
class: "a_wizard__step__number__text",
|
|
216
|
+
tag: "span",
|
|
217
|
+
text: this.stepNumberText,
|
|
218
|
+
extra: {
|
|
219
|
+
stepActive: this.stepNumber,
|
|
220
|
+
stepsCount: this.stepsCount,
|
|
221
|
+
},
|
|
222
|
+
}),
|
|
223
|
+
]) :
|
|
224
|
+
"",
|
|
219
225
|
h("span", {
|
|
220
226
|
class: "a_wizard__step__text",
|
|
221
227
|
}, [
|
|
@@ -260,16 +260,16 @@ $a-wizard-step-focus-box-shadow: 0 0 0 0.25rem var(--a_wizard_step_f
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
& > .a_wizard__step__number {
|
|
263
|
-
display:
|
|
263
|
+
display: flex;
|
|
264
|
+
align-items: center;
|
|
264
265
|
margin-left: auto;
|
|
265
266
|
margin-right: auto;
|
|
266
267
|
margin-bottom: .5rem;
|
|
267
268
|
transition: all 0.5s ease-in-out;
|
|
268
269
|
height: 40px;
|
|
269
|
-
text-align: center;
|
|
270
270
|
background: var(--a_wizard_border_color);
|
|
271
271
|
border-radius: var(--a_border_radius, .5rem);
|
|
272
|
-
padding: 0
|
|
272
|
+
padding: 0 12px;
|
|
273
273
|
z-index: 1;
|
|
274
274
|
}
|
|
275
275
|
|
|
@@ -200,28 +200,17 @@ export default function InputEventsAPI(props, {
|
|
|
200
200
|
setTimeout(() => {
|
|
201
201
|
setValueLocal(intVal);
|
|
202
202
|
});
|
|
203
|
-
} else if ((decimalDividerIndex > cursorPosition) || !hasDecimalDivider) {
|
|
204
|
-
const numberOfSymbols = value.length;
|
|
205
|
-
setTimeout(() => {
|
|
206
|
-
let positionToSet = cursorPosition ? cursorPosition - 1 : cursorPosition;
|
|
207
|
-
const numberOfSymbolsAfterEvent = inputRef.value.value.length;
|
|
208
|
-
if (numberOfSymbolsAfterEvent < numberOfSymbols - 1) {
|
|
209
|
-
positionToSet--;
|
|
210
|
-
}
|
|
211
|
-
setCursorPosition(positionToSet);
|
|
212
|
-
});
|
|
213
203
|
}
|
|
214
|
-
} else {
|
|
215
|
-
const numberOfSymbols = value.length;
|
|
216
|
-
setTimeout(() => {
|
|
217
|
-
let positionToSet = cursorPosition ? cursorPosition - 1 : cursorPosition;
|
|
218
|
-
const numberOfSymbolsAfterEvent = inputRef.value.value.length;
|
|
219
|
-
if (numberOfSymbolsAfterEvent < numberOfSymbols - 1) {
|
|
220
|
-
positionToSet--;
|
|
221
|
-
}
|
|
222
|
-
setCursorPosition(positionToSet);
|
|
223
|
-
});
|
|
224
204
|
}
|
|
205
|
+
const numberOfSymbols = value.length;
|
|
206
|
+
setTimeout(() => {
|
|
207
|
+
let positionToSet = cursorPosition ? cursorPosition - 1 : cursorPosition;
|
|
208
|
+
const numberOfSymbolsAfterEvent = inputRef.value.value.length;
|
|
209
|
+
if (numberOfSymbolsAfterEvent < numberOfSymbols - 1) {
|
|
210
|
+
positionToSet--;
|
|
211
|
+
}
|
|
212
|
+
setCursorPosition(positionToSet);
|
|
213
|
+
});
|
|
225
214
|
};
|
|
226
215
|
|
|
227
216
|
const handleDelete = ({ value, $event, hasDecimalDivider, cursorPosition }) => {
|