@proximus/lavender-input 2.0.0-alpha.206 → 2.0.0-alpha.207

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 (2) hide show
  1. package/dist/index.es.js +5 -12
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -294,14 +294,10 @@ var p = class e extends o {
294
294
  if (e.key === "Backspace") {
295
295
  let r = this.$cells[n - 1];
296
296
  t.value === "" && r && (e.preventDefault(), r.value = "", r.focus(), this.syncFormValue());
297
- return;
298
- }
299
- if (e.key === "ArrowLeft" && t.selectionStart === 0 && t.selectionEnd === 0) {
297
+ } else if (e.key === "ArrowLeft" && t.selectionStart === 0 && t.selectionEnd === 0) {
300
298
  let t = this.$cells[n - 1];
301
299
  t && (e.preventDefault(), t.focus(), t.setSelectionRange(t.value.length, t.value.length));
302
- return;
303
- }
304
- if (e.key === "ArrowRight" && t.selectionStart === t.value.length && t.selectionEnd === t.value.length) {
300
+ } else if (e.key === "ArrowRight" && t.selectionStart === t.value.length && t.selectionEnd === t.value.length) {
305
301
  let t = this.$cells[n + 1];
306
302
  t && (e.preventDefault(), t.focus(), t.setSelectionRange(0, 0));
307
303
  }
@@ -333,11 +329,8 @@ var p = class e extends o {
333
329
  }
334
330
  attributeChangedCallback(t, n, r) {
335
331
  if (n !== r) {
336
- if (e.forwardedAttributes.includes(t)) {
337
- this.syncCellAttributes();
338
- return;
339
- }
340
- switch (t) {
332
+ if (e.forwardedAttributes.includes(t)) this.syncCellAttributes();
333
+ else switch (t) {
341
334
  case "size":
342
335
  case "readonly":
343
336
  case "disabled":
@@ -389,7 +382,7 @@ var p = class e extends o {
389
382
  return t.className = "code-input-single", t.size = e, t.maxLength = e, t.readOnly = this.hasAttribute("readonly"), t.disabled = this.hasAttribute("disabled"), t;
390
383
  }
391
384
  restoreLabelAssociation() {
392
- !this.isConnected || !this.$el || (this.setupForId(), this.setupAriaDescribedBy(this.$slotHelper, this.$helperSlot, "helper"), this.setupAriaDescribedBy(this.$slotStatusText, this.$statusTextSlot, "status-text"), this.syncGroupAria());
385
+ this.isConnected && this.$el && (this.setupForId(), this.setupAriaDescribedBy(this.$slotHelper, this.$helperSlot, "helper"), this.setupAriaDescribedBy(this.$slotStatusText, this.$statusTextSlot, "status-text"), this.syncGroupAria());
393
386
  }
394
387
  syncGroupAria() {
395
388
  let e = this.$container;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-input",
3
- "version": "2.0.0-alpha.206",
3
+ "version": "2.0.0-alpha.207",
4
4
  "description": "Input component for the Proximus Design System",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",