@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
|
@@ -5921,7 +5921,7 @@ class SmartformwidgetComponent {
|
|
|
5921
5921
|
}
|
|
5922
5922
|
}
|
|
5923
5923
|
selected(event, widgetInstance) {
|
|
5924
|
-
let value = event.option.
|
|
5924
|
+
let value = event.option.value;
|
|
5925
5925
|
this.setTextFieldChipsValue(value);
|
|
5926
5926
|
}
|
|
5927
5927
|
setTextFieldChipsValue(value) {
|
|
@@ -6231,11 +6231,13 @@ class SmartformwidgetComponent {
|
|
|
6231
6231
|
return false;
|
|
6232
6232
|
}
|
|
6233
6233
|
getChipsValue(value) {
|
|
6234
|
-
if ('
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6234
|
+
if (typeof value === 'object' && !Array.isArray(value) && value !== null) {
|
|
6235
|
+
if ('name' in value) {
|
|
6236
|
+
return value['name'];
|
|
6237
|
+
}
|
|
6238
|
+
if ('displayValue' in value) {
|
|
6239
|
+
return value['displayValue'];
|
|
6240
|
+
}
|
|
6239
6241
|
}
|
|
6240
6242
|
return value;
|
|
6241
6243
|
}
|
|
@@ -14716,7 +14718,14 @@ class SmartFilterEditorContentComponent {
|
|
|
14716
14718
|
type = SmartFormWidgetType.DATE_TIME_PICKER;
|
|
14717
14719
|
}
|
|
14718
14720
|
let widget;
|
|
14721
|
+
let isGenericValue = false;
|
|
14719
14722
|
if ((possibleValues === null || possibleValues === void 0 ? void 0 : possibleValues.length) > 0) {
|
|
14723
|
+
let first = possibleValues[0];
|
|
14724
|
+
if (first && 'name' in first) {
|
|
14725
|
+
isGenericValue = true;
|
|
14726
|
+
}
|
|
14727
|
+
}
|
|
14728
|
+
if (isGenericValue) {
|
|
14720
14729
|
widget = {
|
|
14721
14730
|
error: undefined,
|
|
14722
14731
|
key,
|
|
@@ -14724,51 +14733,36 @@ class SmartFilterEditorContentComponent {
|
|
|
14724
14733
|
type,
|
|
14725
14734
|
value,
|
|
14726
14735
|
showLabel: true,
|
|
14727
|
-
valueList:
|
|
14736
|
+
valueList: possibleValues.map((value) => {
|
|
14737
|
+
var _a;
|
|
14738
|
+
return {
|
|
14739
|
+
key: value.uri ? value.uri : value.code,
|
|
14740
|
+
label: (_a = value.name) !== null && _a !== void 0 ? _a : '',
|
|
14741
|
+
type: SmartFormWidgetType.ITEM,
|
|
14742
|
+
value: value.uri ? value.uri : value.code,
|
|
14743
|
+
};
|
|
14744
|
+
}),
|
|
14728
14745
|
toolbarId,
|
|
14729
14746
|
};
|
|
14730
14747
|
}
|
|
14731
14748
|
else {
|
|
14732
|
-
|
|
14733
|
-
|
|
14734
|
-
|
|
14735
|
-
|
|
14736
|
-
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14749
|
-
}),
|
|
14750
|
-
toolbarId,
|
|
14751
|
-
};
|
|
14752
|
-
}
|
|
14753
|
-
else {
|
|
14754
|
-
widget = {
|
|
14755
|
-
error: undefined,
|
|
14756
|
-
key,
|
|
14757
|
-
label,
|
|
14758
|
-
type,
|
|
14759
|
-
value,
|
|
14760
|
-
showLabel: true,
|
|
14761
|
-
valueList: possibleValues.map((value) => {
|
|
14762
|
-
return {
|
|
14763
|
-
key: value.objectUri ? value.objectUri : value.code,
|
|
14764
|
-
label: value.displayValue,
|
|
14765
|
-
type: SmartFormWidgetType.ITEM,
|
|
14766
|
-
value: value.objectUri ? value.objectUri : value.code,
|
|
14767
|
-
};
|
|
14768
|
-
}),
|
|
14769
|
-
toolbarId,
|
|
14770
|
-
};
|
|
14771
|
-
}
|
|
14749
|
+
widget = {
|
|
14750
|
+
error: undefined,
|
|
14751
|
+
key,
|
|
14752
|
+
label,
|
|
14753
|
+
type,
|
|
14754
|
+
value,
|
|
14755
|
+
showLabel: true,
|
|
14756
|
+
valueList: possibleValues.map((value) => {
|
|
14757
|
+
return {
|
|
14758
|
+
key: value.objectUri ? value.objectUri : value.code,
|
|
14759
|
+
label: value.displayValue,
|
|
14760
|
+
type: SmartFormWidgetType.ITEM,
|
|
14761
|
+
value: value.objectUri ? value.objectUri : value.code,
|
|
14762
|
+
};
|
|
14763
|
+
}),
|
|
14764
|
+
toolbarId,
|
|
14765
|
+
};
|
|
14772
14766
|
}
|
|
14773
14767
|
return widget;
|
|
14774
14768
|
}
|