@smartbit4all/ng-client 3.2.19 → 3.2.20

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.
Files changed (84) hide show
  1. package/esm2020/lib/smart-filter-editor/api/api/filter.service.mjs +1 -1
  2. package/esm2020/lib/smart-filter-editor/api/configuration.mjs +1 -1
  3. package/esm2020/lib/smart-filter-editor/api/encoder.mjs +1 -1
  4. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBoolOperator.mjs +1 -1
  5. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderApiConfig.mjs +1 -1
  6. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderField.mjs +1 -1
  7. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderGroup.mjs +1 -1
  8. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderModel.mjs +1 -1
  9. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionBuilderUiModel.mjs +1 -1
  10. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionData.mjs +1 -1
  11. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionDataType.mjs +1 -1
  12. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionField.mjs +1 -1
  13. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldEditor.mjs +1 -1
  14. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldList.mjs +1 -1
  15. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionFieldWidgetType.mjs +1 -1
  16. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionList.mjs +1 -1
  17. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperandData.mjs +1 -1
  18. package/esm2020/lib/smart-filter-editor/api/model/filterExpressionOperation.mjs +1 -1
  19. package/esm2020/lib/smart-filter-editor/api/param.mjs +1 -1
  20. package/esm2020/lib/smart-filter-editor/api/variables.mjs +1 -1
  21. package/esm2020/lib/smart-form/api/model/models.mjs +1 -1
  22. package/esm2020/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
  23. package/esm2020/lib/smart-form/api/model/smartWidgetHint.mjs +1 -1
  24. package/esm2020/lib/smart-form/services/smartform.service.mjs +42 -37
  25. package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +1 -5
  26. package/esm2020/lib/smart-grid/api/grid-api/api/api.mjs +1 -1
  27. package/esm2020/lib/smart-grid/api/grid-api/api/grid.service.mjs +1 -1
  28. package/esm2020/lib/smart-grid/api/grid-api/api.module.mjs +1 -1
  29. package/esm2020/lib/smart-grid/api/grid-api/configuration.mjs +1 -1
  30. package/esm2020/lib/smart-grid/api/grid-api/encoder.mjs +1 -1
  31. package/esm2020/lib/smart-grid/api/grid-api/index.mjs +1 -1
  32. package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnContentType.mjs +1 -1
  33. package/esm2020/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
  34. package/esm2020/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +1 -1
  35. package/esm2020/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
  36. package/esm2020/lib/smart-grid/api/grid-api/model/gridPage.mjs +1 -1
  37. package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +1 -1
  38. package/esm2020/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +1 -1
  39. package/esm2020/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
  40. package/esm2020/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +1 -1
  41. package/esm2020/lib/smart-grid/api/grid-api/model/gridView.mjs +1 -1
  42. package/esm2020/lib/smart-grid/api/grid-api/model/models.mjs +1 -1
  43. package/esm2020/lib/smart-grid/api/grid-api/param.mjs +1 -1
  44. package/esm2020/lib/smart-grid/api/grid-api/variables.mjs +1 -1
  45. package/esm2020/lib/smart-tree/tree-api/api/tree.service.mjs +1 -1
  46. package/esm2020/lib/smart-tree/tree-api/configuration.mjs +1 -1
  47. package/esm2020/lib/smart-tree/tree-api/encoder.mjs +1 -1
  48. package/esm2020/lib/smart-tree/tree-api/param.mjs +1 -1
  49. package/esm2020/lib/smart-tree/tree-api/variables.mjs +1 -1
  50. package/esm2020/lib/view-context/api/api/view.service.mjs +1 -1
  51. package/esm2020/lib/view-context/api/model/uploadedFile.mjs +1 -1
  52. package/esm2020/lib/view-context/api/model/viewContextChange.mjs +1 -1
  53. package/esm2020/lib/view-context/api/model/viewEventHandler.mjs +1 -1
  54. package/esm2020/lib/view-context/value-api/api/api.mjs +1 -1
  55. package/esm2020/lib/view-context/value-api/api/value.service.mjs +1 -1
  56. package/esm2020/lib/view-context/value-api/api.module.mjs +1 -1
  57. package/esm2020/lib/view-context/value-api/configuration.mjs +1 -1
  58. package/esm2020/lib/view-context/value-api/encoder.mjs +1 -1
  59. package/esm2020/lib/view-context/value-api/index.mjs +1 -1
  60. package/esm2020/lib/view-context/value-api/model/genericValue.mjs +1 -1
  61. package/esm2020/lib/view-context/value-api/model/models.mjs +1 -1
  62. package/esm2020/lib/view-context/value-api/model/value.mjs +1 -1
  63. package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +1 -1
  64. package/esm2020/lib/view-context/value-api/model/valueSetDefinition.mjs +1 -1
  65. package/esm2020/lib/view-context/value-api/model/valueSetDefinitionData.mjs +1 -1
  66. package/esm2020/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
  67. package/esm2020/lib/view-context/value-api/model/valueSetDefinitionKind.mjs +1 -1
  68. package/esm2020/lib/view-context/value-api/model/valueSetExpression.mjs +1 -1
  69. package/esm2020/lib/view-context/value-api/model/valueSetOperand.mjs +1 -1
  70. package/esm2020/lib/view-context/value-api/model/valueSetOperation.mjs +1 -1
  71. package/esm2020/lib/view-context/value-api/param.mjs +1 -1
  72. package/esm2020/lib/view-context/value-api/variables.mjs +1 -1
  73. package/fesm2015/smartbit4all-ng-client.mjs +41 -40
  74. package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
  75. package/fesm2020/smartbit4all-ng-client.mjs +41 -40
  76. package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
  77. package/lib/smart-form/widgets/smartformwidget/smartformwidget.component.d.ts +0 -1
  78. package/package.json +1 -1
  79. package/smartbit4all-ng-client-3.2.20.tgz +0 -0
  80. package/src/lib/smart-filter-editor/api/README.md +226 -226
  81. package/src/lib/smart-grid/api/grid-api/README.md +226 -226
  82. package/src/lib/smart-tree/tree-api/README.md +226 -226
  83. package/src/lib/view-context/value-api/README.md +226 -226
  84. package/smartbit4all-ng-client-3.2.19.tgz +0 -0
@@ -3856,46 +3856,52 @@ class SmartFormService {
3856
3856
  widget.type === SmartFormWidgetType.CHECK_BOX_2 ||
3857
3857
  widget.type === SmartFormWidgetType.TEXT_FIELD) {
3858
3858
  if (widget.selection && valueSets) {
3859
- let valueSetData = valueSets[widget.selection.valueSetName].valueSetData;
3860
- let values = valueSetData.values;
3861
- let displayProperty = widget.selection?.displayProperty ?? 'displayValue';
3862
- // check is displayProperty exists, fallback for common display properties
3863
- if (!this.checkProperty(values, displayProperty)) {
3864
- displayProperty = 'name'; // GenericValue.name
3859
+ let valueSet = valueSets[widget.selection.valueSetName];
3860
+ if (!valueSet) {
3861
+ console.warn('valueSet not found', widget.selection.valueSetName);
3862
+ }
3863
+ else {
3864
+ let valueSetData = valueSet.valueSetData;
3865
+ let values = valueSetData.values;
3866
+ let displayProperty = widget.selection?.displayProperty ?? 'displayValue';
3867
+ // check is displayProperty exists, fallback for common display properties
3865
3868
  if (!this.checkProperty(values, displayProperty)) {
3866
- displayProperty = 'displayValue'; // Value.displayValue
3869
+ displayProperty = 'name'; // GenericValue.name
3870
+ if (!this.checkProperty(values, displayProperty)) {
3871
+ displayProperty = 'displayValue'; // Value.displayValue
3872
+ }
3867
3873
  }
3868
- }
3869
- if (widget.selection.type === SelectionDefinition.TypeEnum.Property &&
3870
- !widget.selection.mapping.length) {
3871
- let keyProperty = valueSetData.keyProperty ?? 'objectUri';
3872
- if (!this.checkProperty(values, keyProperty)) {
3873
- keyProperty = 'uri'; // GenericValue.uri
3874
+ if (widget.selection.type === SelectionDefinition.TypeEnum.Property &&
3875
+ !widget.selection.mapping.length) {
3876
+ let keyProperty = valueSetData.keyProperty ?? 'objectUri';
3874
3877
  if (!this.checkProperty(values, keyProperty)) {
3875
- keyProperty = 'objectUri'; // Value.objectUri
3878
+ keyProperty = 'uri'; // GenericValue.uri
3879
+ if (!this.checkProperty(values, keyProperty)) {
3880
+ keyProperty = 'objectUri'; // Value.objectUri
3881
+ }
3876
3882
  }
3883
+ widget.valueList = values.map((value) => {
3884
+ return {
3885
+ key: value[keyProperty],
3886
+ label: value[displayProperty],
3887
+ type: SmartFormWidgetType.ITEM,
3888
+ value: value[keyProperty],
3889
+ };
3890
+ });
3891
+ this.addEmptyItemToValueList(widget, widget.selection.emptyLabel);
3892
+ }
3893
+ else if (widget.selection.type === SelectionDefinition.TypeEnum.Object &&
3894
+ !widget.selection.mapping.length) {
3895
+ widget.valueList = values.map((value, index) => {
3896
+ return {
3897
+ key: `${index}`,
3898
+ label: value[displayProperty],
3899
+ type: SmartFormWidgetType.ITEM,
3900
+ value: value,
3901
+ };
3902
+ });
3903
+ this.addEmptyItemToValueList(widget);
3877
3904
  }
3878
- widget.valueList = values.map((value) => {
3879
- return {
3880
- key: value[keyProperty],
3881
- label: value[displayProperty],
3882
- type: SmartFormWidgetType.ITEM,
3883
- value: value[keyProperty],
3884
- };
3885
- });
3886
- this.addEmptyItemToValueList(widget, widget.selection.emptyLabel);
3887
- }
3888
- else if (widget.selection.type === SelectionDefinition.TypeEnum.Object &&
3889
- !widget.selection.mapping.length) {
3890
- widget.valueList = values.map((value, index) => {
3891
- return {
3892
- key: `${index}`,
3893
- label: value[displayProperty],
3894
- type: SmartFormWidgetType.ITEM,
3895
- value: value,
3896
- };
3897
- });
3898
- this.addEmptyItemToValueList(widget);
3899
3905
  }
3900
3906
  }
3901
3907
  }
@@ -4150,7 +4156,6 @@ class SmartFormService {
4150
4156
  regexPattern = regexPattern.replace(this.regexDoubleAsterisk, '.*'); // **
4151
4157
  // replace ? with a single character matcher
4152
4158
  regexPattern = regexPattern.replace(this.regexQuestionMark, '.');
4153
- console.log(pattern, regexPattern);
4154
4159
  // create a RegExp object
4155
4160
  regex = new RegExp('^' + regexPattern + '$');
4156
4161
  this.regexByPattern.set(pattern, regex);
@@ -5187,10 +5192,6 @@ class SmartformwidgetComponent {
5187
5192
  dateFilter(d) {
5188
5193
  return true;
5189
5194
  }
5190
- asd(opt) {
5191
- console.log(opt);
5192
- return opt;
5193
- }
5194
5195
  getMatrixDisplayValue(question, key) {
5195
5196
  this.widgetInstance.value[key].find((value) => {
5196
5197
  if (value.code == question.code)