@aquera/nile-elements 0.0.58 → 0.0.59

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
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.0.58",
6
+ "version": "0.0.59",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -500,7 +500,7 @@ export const styles = css`
500
500
  .input__srtiked-text-container {
501
501
  margin-top: 4px;
502
502
  color: var(--nile-colors-dark-900);
503
- word-wrap: break-all;
503
+ word-break: break-all;
504
504
  line-height: 16px;
505
505
  }
506
506
 
@@ -381,7 +381,7 @@ export class NileInput extends NileElement implements NileFormControl {
381
381
  for (let i = 0, n = this.value.length; i < n; i++) {
382
382
  const charCode = this.value.charCodeAt(i);
383
383
 
384
- if ((charCode > 255 && charCode !== 9109) || [129, 143, 144, 157, 160].includes(charCode)) {
384
+ if (charCode > 127) {
385
385
  markedValue += `<span class="input__srtiked-text">${this.value.charAt(i)}</span>`;
386
386
  this.hasPrintableCharacters = true;
387
387
  } else {
@@ -404,7 +404,7 @@ export class NileInput extends NileElement implements NileFormControl {
404
404
  const charCode = this.value.charCodeAt(i);
405
405
 
406
406
  // Consider a character printable if it's not in the specified non-printable ranges
407
- if (!(charCode > 255 && charCode !== 9109) && ![129, 143, 144, 157, 160].includes(charCode)) {
407
+ if (charCode < 128) {
408
408
  cleanedValue += this.value.charAt(i);
409
409
  }
410
410
  }