@smartbit4all/ng-client 3.3.222 → 3.3.223
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/fesm2015/smartbit4all-ng-client.mjs +33 -41
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +32 -40
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.223.tgz +0 -0
- package/smartbit4all-ng-client-3.3.222.tgz +0 -0
|
@@ -14625,7 +14625,14 @@ class SmartFilterEditorContentComponent {
|
|
|
14625
14625
|
type = SmartFormWidgetType.DATE_TIME_PICKER;
|
|
14626
14626
|
}
|
|
14627
14627
|
let widget;
|
|
14628
|
+
let isGenericValue = false;
|
|
14628
14629
|
if (possibleValues?.length > 0) {
|
|
14630
|
+
let first = possibleValues[0];
|
|
14631
|
+
if (first && 'name' in first) {
|
|
14632
|
+
isGenericValue = true;
|
|
14633
|
+
}
|
|
14634
|
+
}
|
|
14635
|
+
if (isGenericValue) {
|
|
14629
14636
|
widget = {
|
|
14630
14637
|
error: undefined,
|
|
14631
14638
|
key,
|
|
@@ -14633,50 +14640,35 @@ class SmartFilterEditorContentComponent {
|
|
|
14633
14640
|
type,
|
|
14634
14641
|
value,
|
|
14635
14642
|
showLabel: true,
|
|
14636
|
-
valueList:
|
|
14643
|
+
valueList: possibleValues.map((value) => {
|
|
14644
|
+
return {
|
|
14645
|
+
key: value.uri ? value.uri : value.code,
|
|
14646
|
+
label: value.name ?? '',
|
|
14647
|
+
type: SmartFormWidgetType.ITEM,
|
|
14648
|
+
value: value.uri ? value.uri : value.code,
|
|
14649
|
+
};
|
|
14650
|
+
}),
|
|
14637
14651
|
toolbarId,
|
|
14638
14652
|
};
|
|
14639
14653
|
}
|
|
14640
14654
|
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
|
-
}
|
|
14655
|
+
widget = {
|
|
14656
|
+
error: undefined,
|
|
14657
|
+
key,
|
|
14658
|
+
label,
|
|
14659
|
+
type,
|
|
14660
|
+
value,
|
|
14661
|
+
showLabel: true,
|
|
14662
|
+
valueList: possibleValues.map((value) => {
|
|
14663
|
+
return {
|
|
14664
|
+
key: value.objectUri ? value.objectUri : value.code,
|
|
14665
|
+
label: value.displayValue,
|
|
14666
|
+
type: SmartFormWidgetType.ITEM,
|
|
14667
|
+
value: value.objectUri ? value.objectUri : value.code,
|
|
14668
|
+
};
|
|
14669
|
+
}),
|
|
14670
|
+
toolbarId,
|
|
14671
|
+
};
|
|
14680
14672
|
}
|
|
14681
14673
|
return widget;
|
|
14682
14674
|
}
|