awing-library 2.1.70-beta → 2.1.71-beta

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.
@@ -179,6 +179,7 @@ var ViewInfo = function (_a) {
179
179
  options: templateOptions.map(function (template) { return ({
180
180
  value: template.id,
181
181
  text: template.description,
182
+ disabled: template === null || template === void 0 ? void 0 : template.isDeprecated,
182
183
  }); }),
183
184
  },
184
185
  ], oldValue: __assign(__assign({}, viewInfoData), { templateTypeId: 0 }), onUpdate: handleChangeForm }) }));
@@ -85,6 +85,7 @@ export interface Template {
85
85
  templateTypeId: number;
86
86
  validation: string;
87
87
  autoField: string;
88
+ isDeprecated?: boolean;
88
89
  }
89
90
  export interface TemplateParameter {
90
91
  id: string;
@@ -110,7 +110,7 @@ function DataInput(props) {
110
110
  case 'autocomplete': {
111
111
  return ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { multiple: fieldDefinition.multiple, options: fieldDefinition.options, getOptionLabel: function (option) { var _a, _b; return (_b = (_a = option.label) !== null && _a !== void 0 ? _a : option.text) !== null && _b !== void 0 ? _b : ''; }, isOptionEqualToValue: function (option, value) {
112
112
  return (option === null || option === void 0 ? void 0 : option.value) === (value === null || value === void 0 ? void 0 : value.value);
113
- }, disableclearable: fieldDefinition.disableClearable, onChange: function (e, value) {
113
+ }, disableclearable: fieldDefinition.disableClearable, getOptionDisabled: function (option) { return option === null || option === void 0 ? void 0 : option.disabled; }, onChange: function (e, value) {
114
114
  var newValue = fieldDefinition.multiple
115
115
  ? value.map(function (x) { return x === null || x === void 0 ? void 0 : x.value; })
116
116
  : value === null || value === void 0 ? void 0 : value.value;
@@ -80,7 +80,7 @@ var Drawer = function (props) {
80
80
  snackbar('success');
81
81
  console.log('success');
82
82
  }, 700);
83
- closeDrawer(state || CloseAction.Reload);
83
+ closeDrawer(typeof state === 'string' ? state : CloseAction.Reload);
84
84
  })
85
85
  .catch(function () {
86
86
  snackbar('error');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.70-beta",
3
+ "version": "2.1.71-beta",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",