@dev-tcloud/tcloud-ui 0.0.66 → 0.0.68
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/esm2020/lib/_modules/tcloud-ui-data-list/tcloud-ui-data-list.component.mjs +2 -2
- package/esm2020/lib/_modules/tcloud-ui-multiples-values/tcloud-ui-multiples-values.component.mjs +12 -6
- package/esm2020/lib/_pipes/respective.mjs +15 -10
- package/fesm2015/dev-tcloud-tcloud-ui.mjs +26 -15
- package/fesm2015/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/fesm2020/dev-tcloud-tcloud-ui.mjs +26 -15
- package/fesm2020/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/lib/_pipes/respective.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1218,7 +1218,7 @@ class TCloudUiDataListComponent {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
get disabled() { return this._disabled; }
|
|
1220
1220
|
set loading(v) {
|
|
1221
|
-
if (v) {
|
|
1221
|
+
if (typeof v === 'boolean' && v !== this._loading) {
|
|
1222
1222
|
this._loading = v;
|
|
1223
1223
|
this.selected_description = '';
|
|
1224
1224
|
this.selected_item = '';
|
|
@@ -1972,18 +1972,23 @@ class RespectivePipe {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
transform(v) {
|
|
1974
1974
|
if (v !== undefined && v !== null && v !== '') {
|
|
1975
|
-
|
|
1976
|
-
let
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1975
|
+
if (typeof v === 'string') {
|
|
1976
|
+
for (let i = 0; i < (this.map).length; i++) {
|
|
1977
|
+
let custom_v = v;
|
|
1978
|
+
custom_v = (custom_v).toLowerCase();
|
|
1979
|
+
custom_v = (custom_v).trim();
|
|
1980
|
+
custom_v = (custom_v).replace(/\_/g, "-");
|
|
1981
|
+
const current_key = (this.map[i].key).replace(/\_/g, "-");
|
|
1982
|
+
if ((custom_v).toLowerCase() === current_key) {
|
|
1983
|
+
return `${this.map[i].value}`;
|
|
1984
|
+
}
|
|
1983
1985
|
}
|
|
1984
1986
|
}
|
|
1987
|
+
else {
|
|
1988
|
+
return '';
|
|
1989
|
+
}
|
|
1985
1990
|
}
|
|
1986
|
-
return v
|
|
1991
|
+
return `${v}`;
|
|
1987
1992
|
}
|
|
1988
1993
|
}
|
|
1989
1994
|
RespectivePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RespectivePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
@@ -4340,19 +4345,25 @@ class TCloudUiMultiplesValuesComponent {
|
|
|
4340
4345
|
items = (input_items).split(this.delimiter);
|
|
4341
4346
|
}
|
|
4342
4347
|
if ((items).length === 0) {
|
|
4343
|
-
|
|
4344
|
-
|
|
4348
|
+
if (input_items && input_items !== '') {
|
|
4349
|
+
let txt = `${(input_items).trim()}`;
|
|
4350
|
+
items = [txt];
|
|
4351
|
+
}
|
|
4345
4352
|
}
|
|
4346
4353
|
//items = [...new Set(items)];
|
|
4347
4354
|
for (let i = 0; i < (items).length; i++) {
|
|
4348
4355
|
let txt = `${(items[i]).trim()}`;
|
|
4349
4356
|
if (this.uppercase) {
|
|
4350
|
-
txt
|
|
4357
|
+
if (txt && txt !== '') {
|
|
4358
|
+
txt = (txt).toLocaleUpperCase();
|
|
4359
|
+
}
|
|
4351
4360
|
}
|
|
4352
4361
|
if (this.lowercase) {
|
|
4353
|
-
txt
|
|
4362
|
+
if (txt && txt !== '') {
|
|
4363
|
+
txt = (txt).toLocaleLowerCase();
|
|
4364
|
+
}
|
|
4354
4365
|
}
|
|
4355
|
-
if (txt !== '') {
|
|
4366
|
+
if (txt && txt !== '') {
|
|
4356
4367
|
(this.items).push(txt);
|
|
4357
4368
|
}
|
|
4358
4369
|
}
|