@smartbit4all/ng-client 3.3.222 → 3.3.224
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/smart-filter-editor/smart-filter-editor-content/smart-filter-editor-content.component.mjs +33 -41
- package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +9 -7
- package/fesm2015/smartbit4all-ng-client.mjs +41 -47
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +40 -46
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.224.tgz +0 -0
- package/smartbit4all-ng-client-3.3.222.tgz +0 -0
|
@@ -5982,7 +5982,7 @@ class SmartformwidgetComponent {
|
|
|
5982
5982
|
}
|
|
5983
5983
|
}
|
|
5984
5984
|
selected(event, widgetInstance) {
|
|
5985
|
-
let value = event.option.
|
|
5985
|
+
let value = event.option.value;
|
|
5986
5986
|
this.setTextFieldChipsValue(value);
|
|
5987
5987
|
}
|
|
5988
5988
|
setTextFieldChipsValue(value) {
|
|
@@ -6286,11 +6286,13 @@ class SmartformwidgetComponent {
|
|
|
6286
6286
|
return false;
|
|
6287
6287
|
}
|
|
6288
6288
|
getChipsValue(value) {
|
|
6289
|
-
if ('
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6289
|
+
if (typeof value === 'object' && !Array.isArray(value) && value !== null) {
|
|
6290
|
+
if ('name' in value) {
|
|
6291
|
+
return value['name'];
|
|
6292
|
+
}
|
|
6293
|
+
if ('displayValue' in value) {
|
|
6294
|
+
return value['displayValue'];
|
|
6295
|
+
}
|
|
6294
6296
|
}
|
|
6295
6297
|
return value;
|
|
6296
6298
|
}
|
|
@@ -14625,7 +14627,14 @@ class SmartFilterEditorContentComponent {
|
|
|
14625
14627
|
type = SmartFormWidgetType.DATE_TIME_PICKER;
|
|
14626
14628
|
}
|
|
14627
14629
|
let widget;
|
|
14630
|
+
let isGenericValue = false;
|
|
14628
14631
|
if (possibleValues?.length > 0) {
|
|
14632
|
+
let first = possibleValues[0];
|
|
14633
|
+
if (first && 'name' in first) {
|
|
14634
|
+
isGenericValue = true;
|
|
14635
|
+
}
|
|
14636
|
+
}
|
|
14637
|
+
if (isGenericValue) {
|
|
14629
14638
|
widget = {
|
|
14630
14639
|
error: undefined,
|
|
14631
14640
|
key,
|
|
@@ -14633,50 +14642,35 @@ class SmartFilterEditorContentComponent {
|
|
|
14633
14642
|
type,
|
|
14634
14643
|
value,
|
|
14635
14644
|
showLabel: true,
|
|
14636
|
-
valueList:
|
|
14645
|
+
valueList: possibleValues.map((value) => {
|
|
14646
|
+
return {
|
|
14647
|
+
key: value.uri ? value.uri : value.code,
|
|
14648
|
+
label: value.name ?? '',
|
|
14649
|
+
type: SmartFormWidgetType.ITEM,
|
|
14650
|
+
value: value.uri ? value.uri : value.code,
|
|
14651
|
+
};
|
|
14652
|
+
}),
|
|
14637
14653
|
toolbarId,
|
|
14638
14654
|
};
|
|
14639
14655
|
}
|
|
14640
14656
|
else {
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
14644
|
-
|
|
14645
|
-
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
toolbarId,
|
|
14659
|
-
};
|
|
14660
|
-
}
|
|
14661
|
-
else {
|
|
14662
|
-
widget = {
|
|
14663
|
-
error: undefined,
|
|
14664
|
-
key,
|
|
14665
|
-
label,
|
|
14666
|
-
type,
|
|
14667
|
-
value,
|
|
14668
|
-
showLabel: true,
|
|
14669
|
-
valueList: possibleValues.map((value) => {
|
|
14670
|
-
return {
|
|
14671
|
-
key: value.objectUri ? value.objectUri : value.code,
|
|
14672
|
-
label: value.displayValue,
|
|
14673
|
-
type: SmartFormWidgetType.ITEM,
|
|
14674
|
-
value: value.objectUri ? value.objectUri : value.code,
|
|
14675
|
-
};
|
|
14676
|
-
}),
|
|
14677
|
-
toolbarId,
|
|
14678
|
-
};
|
|
14679
|
-
}
|
|
14657
|
+
widget = {
|
|
14658
|
+
error: undefined,
|
|
14659
|
+
key,
|
|
14660
|
+
label,
|
|
14661
|
+
type,
|
|
14662
|
+
value,
|
|
14663
|
+
showLabel: true,
|
|
14664
|
+
valueList: possibleValues.map((value) => {
|
|
14665
|
+
return {
|
|
14666
|
+
key: value.objectUri ? value.objectUri : value.code,
|
|
14667
|
+
label: value.displayValue,
|
|
14668
|
+
type: SmartFormWidgetType.ITEM,
|
|
14669
|
+
value: value.objectUri ? value.objectUri : value.code,
|
|
14670
|
+
};
|
|
14671
|
+
}),
|
|
14672
|
+
toolbarId,
|
|
14673
|
+
};
|
|
14680
14674
|
}
|
|
14681
14675
|
return widget;
|
|
14682
14676
|
}
|