@wavemaker/app-ng-runtime 12.0.0-next.45076 → 12.0.0-next.45080

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +8 -1
  2. app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +9 -2
  3. app-ng-runtime/build-task/fesm2022/index.mjs +8 -1
  4. app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
  5. app-ng-runtime/components/advanced/custom/bundles/index.umd.js +49 -12
  6. app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +11 -4
  7. app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +51 -11
  8. app-ng-runtime/components/advanced/custom/fesm2022/index.mjs +50 -10
  9. app-ng-runtime/components/advanced/custom/fesm2022/index.mjs.map +1 -1
  10. app-ng-runtime/components/base/bundles/index.umd.js +13 -3
  11. app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +14 -4
  12. app-ng-runtime/components/base/esm2022/widgets/framework/property-change-handler.mjs +2 -2
  13. app-ng-runtime/components/base/fesm2022/index.mjs +14 -4
  14. app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
  15. app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +1 -0
  16. app-ng-runtime/components/basic/search/bundles/index.umd.js +36 -24
  17. app-ng-runtime/components/basic/search/esm2022/search.component.mjs +33 -24
  18. app-ng-runtime/components/basic/search/esm2022/search.props.mjs +5 -2
  19. app-ng-runtime/components/basic/search/fesm2022/index.mjs +36 -24
  20. app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
  21. app-ng-runtime/components/basic/search/search.component.d.ts +3 -0
  22. app-ng-runtime/components/data/form/bundles/index.umd.js +23 -11
  23. app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +24 -12
  24. app-ng-runtime/components/data/form/fesm2022/index.mjs +23 -11
  25. app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
  26. app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +1 -0
  27. app-ng-runtime/components/input/default/base-form-custom.component.d.ts +2 -1
  28. app-ng-runtime/components/input/default/bundles/index.umd.js +13 -4
  29. app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +2 -2
  30. app-ng-runtime/components/input/default/esm2022/base-form-custom.component.mjs +6 -1
  31. app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +3 -1
  32. app-ng-runtime/components/input/default/esm2022/dataset-aware-form.component.mjs +5 -5
  33. app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +3 -1
  34. app-ng-runtime/components/input/default/fesm2022/index.mjs +13 -4
  35. app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
  36. app-ng-runtime/core/bundles/index.umd.js +6 -6
  37. app-ng-runtime/core/enums/enums.d.ts +2 -2
  38. app-ng-runtime/core/esm2022/enums/enums.mjs +2 -2
  39. app-ng-runtime/core/esm2022/utils/build-utils.mjs +6 -6
  40. app-ng-runtime/core/fesm2022/index.mjs +6 -6
  41. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  42. app-ng-runtime/package.json +1 -1
  43. app-ng-runtime/runtime/base/bundles/index.umd.js +9 -0
  44. app-ng-runtime/runtime/base/components/base-custom-widget.component.d.ts +2 -0
  45. app-ng-runtime/runtime/base/esm2022/components/base-custom-widget.component.mjs +10 -1
  46. app-ng-runtime/runtime/base/fesm2022/index.mjs +9 -0
  47. app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
@@ -32,6 +32,7 @@
32
32
  FormWidgetType["CHIPS"] = "chips";
33
33
  FormWidgetType["COLORPICKER"] = "colorpicker";
34
34
  FormWidgetType["CURRENCY"] = "currency";
35
+ FormWidgetType["CUSTOMWIDGET"] = "custom-widget";
35
36
  FormWidgetType["DATE"] = "date";
36
37
  FormWidgetType["DATETIME"] = "datetime";
37
38
  FormWidgetType["NUMBER"] = "number";
@@ -49,7 +50,6 @@
49
50
  FormWidgetType["TIMESTAMP"] = "timestamp";
50
51
  FormWidgetType["TYPEAHEAD"] = "typeahead";
51
52
  FormWidgetType["UPLOAD"] = "upload";
52
- FormWidgetType["CUSTOM"] = "custom";
53
53
  })(exports.FormWidgetType || (exports.FormWidgetType = {}));
54
54
  exports.DataType = void 0;
55
55
  (function (DataType) {
@@ -134,6 +134,9 @@
134
134
  case exports.FormWidgetType.CURRENCY:
135
135
  tmpl = `<div wmCurrency ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl} ${showTmpl}></div>`;
136
136
  break;
137
+ case exports.FormWidgetType.CUSTOMWIDGET:
138
+ tmpl = `<div wmWidgetContainer customWidgetContainer ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl} ${showTmpl}></div>`;
139
+ break;
137
140
  case exports.FormWidgetType.DATE:
138
141
  tmpl = `<div wmDate ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
139
142
  break;
@@ -180,9 +183,6 @@
180
183
  case exports.FormWidgetType.TIMESTAMP:
181
184
  tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} role="input" ${showTmpl}></div>`;
182
185
  break;
183
- case exports.FormWidgetType.CUSTOM:
184
- tmpl = `<div wmWidgetContainer customWidgetContainer ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></div>`;
185
- break;
186
186
  case exports.FormWidgetType.UPLOAD:
187
187
  const counter = options.counter;
188
188
  const pCounter = options.pCounter;
@@ -220,6 +220,8 @@
220
220
  return 'wm-colorpicker';
221
221
  case exports.FormWidgetType.CURRENCY:
222
222
  return 'wm-currency';
223
+ case exports.FormWidgetType.CUSTOMWIDGET:
224
+ return 'wm-custom-widget';
223
225
  case exports.FormWidgetType.DATE:
224
226
  return 'wm-date';
225
227
  case exports.FormWidgetType.DATETIME:
@@ -233,8 +235,6 @@
233
235
  return 'wm-richtexteditor';
234
236
  case exports.FormWidgetType.SLIDER:
235
237
  return 'wm-slider';
236
- case exports.FormWidgetType.CUSTOM:
237
- return 'wm-custom-widget';
238
238
  default:
239
239
  return 'wm-text';
240
240
  }
@@ -5,6 +5,7 @@ export declare enum FormWidgetType {
5
5
  CHIPS = "chips",
6
6
  COLORPICKER = "colorpicker",
7
7
  CURRENCY = "currency",
8
+ CUSTOMWIDGET = "custom-widget",
8
9
  DATE = "date",
9
10
  DATETIME = "datetime",
10
11
  NUMBER = "number",
@@ -21,8 +22,7 @@ export declare enum FormWidgetType {
21
22
  TIME = "time",
22
23
  TIMESTAMP = "timestamp",
23
24
  TYPEAHEAD = "typeahead",
24
- UPLOAD = "upload",
25
- CUSTOM = "custom"
25
+ UPLOAD = "upload"
26
26
  }
27
27
  export declare enum DataType {
28
28
  INTEGER = "integer",
@@ -6,6 +6,7 @@ export var FormWidgetType;
6
6
  FormWidgetType["CHIPS"] = "chips";
7
7
  FormWidgetType["COLORPICKER"] = "colorpicker";
8
8
  FormWidgetType["CURRENCY"] = "currency";
9
+ FormWidgetType["CUSTOMWIDGET"] = "custom-widget";
9
10
  FormWidgetType["DATE"] = "date";
10
11
  FormWidgetType["DATETIME"] = "datetime";
11
12
  FormWidgetType["NUMBER"] = "number";
@@ -23,7 +24,6 @@ export var FormWidgetType;
23
24
  FormWidgetType["TIMESTAMP"] = "timestamp";
24
25
  FormWidgetType["TYPEAHEAD"] = "typeahead";
25
26
  FormWidgetType["UPLOAD"] = "upload";
26
- FormWidgetType["CUSTOM"] = "custom";
27
27
  })(FormWidgetType || (FormWidgetType = {}));
28
28
  export var DataType;
29
29
  (function (DataType) {
@@ -68,4 +68,4 @@ export var DEFAULT_FORMATS;
68
68
  DEFAULT_FORMATS["DATETIME_ORACLE"] = "yyyy-MM-dd HH:mm:ss";
69
69
  DEFAULT_FORMATS["DATE_TIME"] = "yyyy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3MnLFxuICAgIERBVEVUSU1FX09SQUNMRSA9ICd5eXl5LU1NLWRkIEhIOm1tOnNzJyxcbiAgICBEQVRFX1RJTUUgPSAneXl5eS1NTS1kZCBISDptbTpzcydcbn1cbiJdfQ==
@@ -40,6 +40,9 @@ export const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}
40
40
  case FormWidgetType.CURRENCY:
41
41
  tmpl = `<div wmCurrency ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl} ${showTmpl}></div>`;
42
42
  break;
43
+ case FormWidgetType.CUSTOMWIDGET:
44
+ tmpl = `<div wmWidgetContainer customWidgetContainer ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl} ${showTmpl}></div>`;
45
+ break;
43
46
  case FormWidgetType.DATE:
44
47
  tmpl = `<div wmDate ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
45
48
  break;
@@ -86,9 +89,6 @@ export const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}
86
89
  case FormWidgetType.TIMESTAMP:
87
90
  tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} role="input" ${showTmpl}></div>`;
88
91
  break;
89
- case FormWidgetType.CUSTOM:
90
- tmpl = `<div wmWidgetContainer customWidgetContainer ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></div>`;
91
- break;
92
92
  case FormWidgetType.UPLOAD:
93
93
  const counter = options.counter;
94
94
  const pCounter = options.pCounter;
@@ -126,6 +126,8 @@ export const getRequiredFormWidget = (widgetType) => {
126
126
  return 'wm-colorpicker';
127
127
  case FormWidgetType.CURRENCY:
128
128
  return 'wm-currency';
129
+ case FormWidgetType.CUSTOMWIDGET:
130
+ return 'wm-custom-widget';
129
131
  case FormWidgetType.DATE:
130
132
  return 'wm-date';
131
133
  case FormWidgetType.DATETIME:
@@ -139,8 +141,6 @@ export const getRequiredFormWidget = (widgetType) => {
139
141
  return 'wm-richtexteditor';
140
142
  case FormWidgetType.SLIDER:
141
143
  return 'wm-slider';
142
- case FormWidgetType.CUSTOM:
143
- return 'wm-custom-widget';
144
144
  default:
145
145
  return 'wm-text';
146
146
  }
@@ -264,4 +264,4 @@ export const getRowActionAttrs = attrs => {
264
264
  });
265
265
  return tmpl;
266
266
  };
267
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQtdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlL3NyYy91dGlscy9idWlsZC11dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFXLE1BQU0sbUJBQW1CLENBQUM7QUFDdkQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2hELE9BQU8sRUFBQyxRQUFRLEVBQUUsT0FBTyxFQUFFLFVBQVUsRUFBQyxNQUFNLFdBQVcsQ0FBQztBQUV4RCxrREFBa0Q7QUFDbEQsTUFBTSxrQkFBa0IsR0FBRyxDQUFDLEtBQUssRUFBRSxPQUFRLEVBQUUsU0FBVSxFQUFFLEVBQUU7SUFDdkQsSUFBSSxTQUFTLEdBQUcsRUFBRSxDQUFDO0lBQ25CLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEVBQUU7UUFDeEIsSUFBSSxHQUFHLElBQUksR0FBRyxDQUFDLFFBQVEsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDO1lBQ2hDLE1BQU0sU0FBUyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUF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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSArPSAgJzonKyBjdXJyZW50SXRlbVJlZ0V4LmV4ZWMoY3VycmVudEl0ZW1SZWdFeC5zb3VyY2UpWzBdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAvLyBSZXBsYWNlIGl0ZW0gaWYgd2lkZ2V0IHByb3BlcnR5IGlzIGJvdW5kIHRvIGxpdmVsaXN0IGN1cnJlbnRJdGVtXG4gICAgICAgICAgICAgICAgICAgIGlmIChjdXJyZW50SXRlbVJlZ0V4ICYmIGN1cnJlbnRJdGVtUmVnRXgudGVzdCh2YWx1ZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIENoYW5nZSB2YWx1ZSBmcm9tICdiaW5kOldpZGdldHMuZm9ybU5hbWUuZm9ybVdpZGdldHMubGlzdE5hbWUuY3VycmVudEl0ZW0nIHRvICdiaW5kOldpZGdldHMubGlzdE5hbWUuY3VycmVudEl0ZW0nXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodmFsdWUuaW5jbHVkZXMoJy5mb3JtV2lkZ2V0cycpIHx8IHZhbHVlLmluY2x1ZGVzKCcuZmlsdGVyV2lkZ2V0cycpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSB2YWx1ZS5yZXBsYWNlKGZvcm1XaWRnZXRzUmVnZXgsICdXaWRnZXRzJyk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICBhZGREYXRhc2V0Qm91bmRFeHByQXR0cmlidXRlKGNoaWxkTm9kZSwgYXR0ciwgdmFsdWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSB2YWx1ZS5yZXBsYWNlKGN1cnJlbnRJdGVtUmVnRXgsIHJlZmVyZW5jZU5hb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cHRpb24uYmluZCddLFxuICAgICAgICBbJ3RpdGxlJywgJ2hpbnQnXSxcbiAgICAgICAgWyd0aXRsZS5iaW5kJywgJ2hpbnQuYmluZCddLFxuICAgICAgICBbJ3Nob3cnLCAnc2hvdyddLFxuICAgICAgICBbJ3Nob3cuYmluZCcsICdzaG93LmJpbmQnXSxcbiAgICAgICAgWydkaXNhYmxlZCcsICdkaXNhYmxlZCddLFxuICAgICAgICBbJ2Rpc2FibGVkLmJpbmQnLCAnZGlzYWJsZWQuYmluZCddLFxuICAgICAgICBbJ2h5cGVybGluaycsICdoeXBlcmxpbmsnXSxcbiAgICAgICAgWydoeXBlcmxpbmsuYmluZCcsICdoeXBlcmxpbmsuYmluZCddLFxuICAgICAgICBbJ3RhcmdldCcsICd0YXJnZXQnXSxcbiAgICAgICAgWydjb25kaXRpb25hbGNsYXNzLmJpbmQnLCAnY29uZGl0aW9uYWxjbGFzcy5iaW5kJ10sXG4gICAgICAgIFsnY29uZGl0aW9uYWxzdHlsZS5iaW5kJywgJ2NvbmRpdGlvbmFsc3R5bGUuYmluZCddXG4gICAgXVxuKTtcblxuZXhwb3J0IGNvbnN0IGdldFJvd0FjdGlvbkF0dHJzID0gYXR0cnMgPT4ge1xuICAgIGxldCB0bXBsID0gJyc7XG4gICAgYXR0cnMuZm9yRWFjaCgodmFsLCBrZXkpID0+IHtcbiAgICAgICAgY29uc3QgbmV3QXR0ciA9IHJvd0FjdGlvbkF0dHJzLmdldChrZXkpO1xuICAgICAgICBpZiAobmV3QXR0cikge1xuICAgICAgICAgICAgdG1wbCArPSBgJHtuZXdBdHRyfT1cIiR7dmFsfVwiIGA7XG4gICAgICAgIH1cbiAgICB9KTtcbiAgICByZXR1cm4gdG1wbDtcbn07XG4iXX0=
267
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQtdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi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ICAgICAgYWRkRGF0YXNldEJvdW5kRXhwckF0dHJpYnV0ZShjaGlsZE5vZGUsIGF0dHIsIHZhbHVlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IHZhbHVlLnJlcGxhY2UocmVnZXgsIHJlZmVyZW5jZU5hbWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gJ2JpbmQ6JyArIHZhbHVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIENoZWNrIGlzIHRoaXMgY3VzdG9tIGJpbmQgZXhwcmVzc2lvbiBhbmQgY3VycmVudFdpZGdldEl0ZW0gcmVnZXhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZihjaGVja0lzQ3VzdG9tUGlwZUV4cHJlc3Npb24odmFsdWUpICYmIGN1cnJlbnRJdGVtUmVnRXgpe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBBZGRpbmcgdGhlIGN1cnJlbnRJdGVtIGFzIGxhc3QgYXJndW1lbnQgZm9yIHRoZSBleHByZXNzaW9uLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBGb3IgdGhlIGN1c3RvbSBwaXBlcyhleHByZXNpb24pLCBpdCB3aWxsIHNlbmQgdGhlIGN1cnJlbnRJdGVtIGFzIGNvbnRleHQuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlICs9ICAnOicrIGN1cnJlbnRJdGVtUmVnRXguZXhlYyhjdXJyZW50SXRlbVJlZ0V4LnNvdXJjZSlbMF07XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIC8vIFJlcGxhY2UgaXRlbSBpZiB3aWRnZXQgcHJvcGVydHkgaXMgYm91bmQgdG8gbGl2ZWxpc3QgY3VycmVudEl0ZW1cbiAgICAgICAgICAgIC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AgICBbJ2h5cGVybGluay5iaW5kJywgJ2h5cGVybGluay5iaW5kJ10sXG4gICAgICAgIFsndGFyZ2V0JywgJ3RhcmdldCddLFxuICAgICAgICBbJ2NvbmRpdGlvbmFsY2xhc3MuYmluZCcsICdjb25kaXRpb25hbGNsYXNzLmJpbmQnXSxcbiAgICAgICAgWydjb25kaXRpb25hbHN0eWxlLmJpbmQnLCAnY29uZGl0aW9uYWxzdHlsZS5iaW5kJ11cbiAgICBdXG4pO1xuXG5leHBvcnQgY29uc3QgZ2V0Um93QWN0aW9uQXR0cnMgPSBhdHRycyA9PiB7XG4gICAgbGV0IHRtcGwgPSAnJztcbiAgICBhdHRycy5mb3JFYWNoKCh2YWwsIGtleSkgPT4ge1xuICAgICAgICBjb25zdCBuZXdBdHRyID0gcm93QWN0aW9uQXR0cnMuZ2V0KGtleSk7XG4gICAgICAgIGlmIChuZXdBdHRyKSB7XG4gICAgICAgICAgICB0bXBsICs9IGAke25ld0F0dHJ9PVwiJHt2YWx9XCIgYDtcbiAgICAgICAgfVxuICAgIH0pO1xuICAgIHJldHVybiB0bXBsO1xufTtcbiJdfQ==
@@ -14,6 +14,7 @@ var FormWidgetType;
14
14
  FormWidgetType["CHIPS"] = "chips";
15
15
  FormWidgetType["COLORPICKER"] = "colorpicker";
16
16
  FormWidgetType["CURRENCY"] = "currency";
17
+ FormWidgetType["CUSTOMWIDGET"] = "custom-widget";
17
18
  FormWidgetType["DATE"] = "date";
18
19
  FormWidgetType["DATETIME"] = "datetime";
19
20
  FormWidgetType["NUMBER"] = "number";
@@ -31,7 +32,6 @@ var FormWidgetType;
31
32
  FormWidgetType["TIMESTAMP"] = "timestamp";
32
33
  FormWidgetType["TYPEAHEAD"] = "typeahead";
33
34
  FormWidgetType["UPLOAD"] = "upload";
34
- FormWidgetType["CUSTOM"] = "custom";
35
35
  })(FormWidgetType || (FormWidgetType = {}));
36
36
  var DataType;
37
37
  (function (DataType) {
@@ -116,6 +116,9 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
116
116
  case FormWidgetType.CURRENCY:
117
117
  tmpl = `<div wmCurrency ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl} ${showTmpl}></div>`;
118
118
  break;
119
+ case FormWidgetType.CUSTOMWIDGET:
120
+ tmpl = `<div wmWidgetContainer customWidgetContainer ${attrs.get('required') === 'true' ? 'required=true' : ''} ${updateOnTmpl} ${innerTmpl} ${showTmpl}></div>`;
121
+ break;
119
122
  case FormWidgetType.DATE:
120
123
  tmpl = `<div wmDate ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} ${showTmpl}></div>`;
121
124
  break;
@@ -162,9 +165,6 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
162
165
  case FormWidgetType.TIMESTAMP:
163
166
  tmpl = `<div wmDateTime ${attrs.get('required') === 'true' ? 'required=true' : ''} dataentrymode="${attrs.get('dataentrymode')}" ${innerTmpl} role="input" ${showTmpl}></div>`;
164
167
  break;
165
- case FormWidgetType.CUSTOM:
166
- tmpl = `<div wmWidgetContainer customWidgetContainer ${attrs.get('required') === 'true' ? 'required=true' : ''} ${innerTmpl} ${showTmpl}></div>`;
167
- break;
168
168
  case FormWidgetType.UPLOAD:
169
169
  const counter = options.counter;
170
170
  const pCounter = options.pCounter;
@@ -202,6 +202,8 @@ const getRequiredFormWidget = (widgetType) => {
202
202
  return 'wm-colorpicker';
203
203
  case FormWidgetType.CURRENCY:
204
204
  return 'wm-currency';
205
+ case FormWidgetType.CUSTOMWIDGET:
206
+ return 'wm-custom-widget';
205
207
  case FormWidgetType.DATE:
206
208
  return 'wm-date';
207
209
  case FormWidgetType.DATETIME:
@@ -215,8 +217,6 @@ const getRequiredFormWidget = (widgetType) => {
215
217
  return 'wm-richtexteditor';
216
218
  case FormWidgetType.SLIDER:
217
219
  return 'wm-slider';
218
- case FormWidgetType.CUSTOM:
219
- return 'wm-custom-widget';
220
220
  default:
221
221
  return 'wm-text';
222
222
  }