@dev-tcloud/tcloud-ui 0.0.66 → 0.0.67

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.
@@ -4340,19 +4340,25 @@ class TCloudUiMultiplesValuesComponent {
4340
4340
  items = (input_items).split(this.delimiter);
4341
4341
  }
4342
4342
  if ((items).length === 0) {
4343
- let txt = `${(input_items).trim()}`;
4344
- items = [txt];
4343
+ if (input_items && input_items !== '') {
4344
+ let txt = `${(input_items).trim()}`;
4345
+ items = [txt];
4346
+ }
4345
4347
  }
4346
4348
  //items = [...new Set(items)];
4347
4349
  for (let i = 0; i < (items).length; i++) {
4348
4350
  let txt = `${(items[i]).trim()}`;
4349
4351
  if (this.uppercase) {
4350
- txt = (txt).toLocaleUpperCase();
4352
+ if (txt && txt !== '') {
4353
+ txt = (txt).toLocaleUpperCase();
4354
+ }
4351
4355
  }
4352
4356
  if (this.lowercase) {
4353
- txt = (txt).toLocaleLowerCase();
4357
+ if (txt && txt !== '') {
4358
+ txt = (txt).toLocaleLowerCase();
4359
+ }
4354
4360
  }
4355
- if (txt !== '') {
4361
+ if (txt && txt !== '') {
4356
4362
  (this.items).push(txt);
4357
4363
  }
4358
4364
  }