@wavemaker/app-ng-runtime 12.0.0-next.45078 → 12.0.0-next.45081

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
@@ -1012,6 +1012,13 @@
1012
1012
  }
1013
1013
  };
1014
1014
  const getWidgetTemplate = (attrs, options) => {
1015
+ let customAttrs = ``;
1016
+ if (options.widgetType === "custom-widget") {
1017
+ for (let [key, value] of attrs) {
1018
+ if (key.startsWith('prop-'))
1019
+ customAttrs += key + '="' + value + '" ';
1020
+ }
1021
+ }
1015
1022
  const name = attrs.get('name');
1016
1023
  const customWidgetName = attrs.get('widgetname');
1017
1024
  const fieldName = (attrs.get('key') || name || '').trim();
@@ -1019,7 +1026,7 @@
1019
1026
  const tmplRef = options.isMaxWidget ? `#formWidgetMax` : `#formWidget`;
1020
1027
  const widgetName = name ? (options.isMaxWidget ? `name="${name}_formWidgetMax"` : `name="${name}_formWidget"`) : '';
1021
1028
  const conditionalClass = `[ngClass]="${attrs.get('ngclass')}"`;
1022
- const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName} ${customWidgetName ? `widgetname=${customWidgetName}` : ''}`;
1029
+ const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName} ${customWidgetName ? `widgetname=${customWidgetName} ${customAttrs}` : ''}`;
1023
1030
  return core.getFormWidgetTemplate(options.widgetType, defaultTmpl, attrs, { counter: options.counter, pCounter: options.pCounter });
1024
1031
  };
1025
1032
  const getTemplate = (attrs, widgetType, eventsTmpl, counter, pCounter, isInList) => {
@@ -52,6 +52,13 @@ const setDefaultPlaceholder = (attrs, widgetType, index) => {
52
52
  }
53
53
  };
54
54
  const getWidgetTemplate = (attrs, options) => {
55
+ let customAttrs = ``;
56
+ if (options.widgetType === "custom-widget") {
57
+ for (let [key, value] of attrs) {
58
+ if (key.startsWith('prop-'))
59
+ customAttrs += key + '="' + value + '" ';
60
+ }
61
+ }
55
62
  const name = attrs.get('name');
56
63
  const customWidgetName = attrs.get('widgetname');
57
64
  const fieldName = (attrs.get('key') || name || '').trim();
@@ -59,7 +66,7 @@ const getWidgetTemplate = (attrs, options) => {
59
66
  const tmplRef = options.isMaxWidget ? `#formWidgetMax` : `#formWidget`;
60
67
  const widgetName = name ? (options.isMaxWidget ? `name="${name}_formWidgetMax"` : `name="${name}_formWidget"`) : '';
61
68
  const conditionalClass = `[ngClass]="${attrs.get('ngclass')}"`;
62
- const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName} ${customWidgetName ? `widgetname=${customWidgetName}` : ''}`;
69
+ const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName} ${customWidgetName ? `widgetname=${customWidgetName} ${customAttrs}` : ''}`;
63
70
  return getFormWidgetTemplate(options.widgetType, defaultTmpl, attrs, { counter: options.counter, pCounter: options.pCounter });
64
71
  };
65
72
  const getTemplate = (attrs, widgetType, eventsTmpl, counter, pCounter, isInList) => {
@@ -158,4 +165,4 @@ const registerFormField = (isFormField) => {
158
165
  register('wm-form-field', registerFormField.bind(this, true));
159
166
  register('wm-filter-field', registerFormField.bind(this, false));
160
167
  export default () => { };
161
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5idWlsZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvdHJhbnNwaWxlL3NyYy9kYXRhL2Zvcm0vZm9ybS1maWVsZC9mb3JtLWZpZWxkLmJ1aWxkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxpQkFBaUIsRUFBaUIsUUFBUSxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDMUUsT0FBTyxFQUNILGNBQWMsRUFDZCxZQUFZLEVBQ1oscUJBQXFCLEVBQ3JCLHFCQUFxQixFQUNyQixXQUFXLEVBQ1gsV0FBVyxFQUNkLE1BQU0sVUFBVSxDQUFDO0FBRWxCLE9BQU8sRUFBQyxTQUFTLEVBQUUsZUFBZSx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ZGRlbj1cInRydWVcIiBbdGV4dENvbnRlbnRdPVwiJHtjb3VudGVyfS52YWxpZGF0aW9ubWVzc2FnZVwiPjwvc3Bhbj48L3A+YCA6ICcnO1xuICAgICAgICAgICAgY29uc3QgZXZlbnRzVG1wbCA9IHdpZGdldFR5cGUgPT09IEZvcm1XaWRnZXRUeXBlLlVQTE9BRCA/ICcnIDogZ2V0RXZlbnRzVGVtcGxhdGUoYXR0cnMpO1xuICAgICAgICAgICAgY29uc3QgY29udHJvbExheW91dCA9IGlzTW9iaWxlQXBwKCkgPyAnY29sLXhzLTEyJyA6ICdjb2wtc20tMTInO1xuICAgICAgICAgICAgY29uc3QgaXNJbkxpc3QgPSBwQ291bnRlciA9PT0gKHBhcmVudExpc3QgJiYgcGFyZW50TGlzdC5nZXQoJ3BhcmVudF9mb3JtX3JlZmVyZW5jZScpKTtcbiAgICAgICAgICAgIGF0dHJzLnNldCgnX192YWxpZGF0aW9uSWQnLCBmb3JtRmllbGRFcnJvck1zZ0lkKTtcbiAgICAgICAgICAgIGF0dHJzLnNldCgnX193aWRnZXRUeXBlJywgd2lkZ2V0VHlwZSk7XG4gICAgICAgICAgICBhdHRycy5kZWxldGUoJ3dpZGdldCcpO1xuICAgICAgICAgICAgc2hhcmVkLnNldCgnY291bnRlcicsIGNvdW50ZXIpO1xuXG4gICAgICAgICAgICBpZiAoYXR0cnMuZ2V0KCdpcy1yYW5nZScpID09PSAndHJ1ZScpIHtcbiAgICAgICAgICAgICAgICBzZXREZWZhdWx0UGxhY2Vob2xkZXIoYXR0cnMsIHdpZGdldFR5cGUsIDApO1xuICAgICAgICAgICAgICAgIHNldERlZmF1bHRQbGFjZWhvbGRlcihhdHRycywgd2lkZ2V0VHlwZSwgMSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHNldERlZmF1bHRQbGFjZWhvbGRlcihhdHRycywgd2lkZ2V0VHlwZSwgMik7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICA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lyZWRXaWRnZXQsICd3bS1mb3JtJ107XG4gICAgICAgIH1cbiAgICB9O1xufTtcblxucmVnaXN0ZXIoJ3dtLWZvcm0tZmllbGQnLCByZWdpc3RlckZvcm1GaWVsZC5iaW5kKHRoaXMsIHRydWUpKTtcbnJlZ2lzdGVyKCd3bS1maWx0ZXItZmllbGQnLCByZWdpc3RlckZvcm1GaWVsZC5iaW5kKHRoaXMsIGZhbHNlKSk7XG5cbmV4cG9ydCBkZWZhdWx0ICgpID0+IHt9O1xuIl19
@@ -1012,6 +1012,13 @@ const setDefaultPlaceholder = (attrs, widgetType, index) => {
1012
1012
  }
1013
1013
  };
1014
1014
  const getWidgetTemplate = (attrs, options) => {
1015
+ let customAttrs = ``;
1016
+ if (options.widgetType === "custom-widget") {
1017
+ for (let [key, value] of attrs) {
1018
+ if (key.startsWith('prop-'))
1019
+ customAttrs += key + '="' + value + '" ';
1020
+ }
1021
+ }
1015
1022
  const name = attrs.get('name');
1016
1023
  const customWidgetName = attrs.get('widgetname');
1017
1024
  const fieldName = (attrs.get('key') || name || '').trim();
@@ -1019,7 +1026,7 @@ const getWidgetTemplate = (attrs, options) => {
1019
1026
  const tmplRef = options.isMaxWidget ? `#formWidgetMax` : `#formWidget`;
1020
1027
  const widgetName = name ? (options.isMaxWidget ? `name="${name}_formWidgetMax"` : `name="${name}_formWidget"`) : '';
1021
1028
  const conditionalClass = `[ngClass]="${attrs.get('ngclass')}"`;
1022
- const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName} ${customWidgetName ? `widgetname=${customWidgetName}` : ''}`;
1029
+ const defaultTmpl = `[class.hidden]="!${options.pCounter}.isUpdateMode && ${options.counter}.viewmodewidget !== 'default'" ${formControl} ${options.eventsTmpl} ${conditionalClass} ${tmplRef} ${widgetName} ${customWidgetName ? `widgetname=${customWidgetName} ${customAttrs}` : ''}`;
1023
1030
  return getFormWidgetTemplate(options.widgetType, defaultTmpl, attrs, { counter: options.counter, pCounter: options.pCounter });
1024
1031
  };
1025
1032
  const getTemplate = (attrs, widgetType, eventsTmpl, counter, pCounter, isInList) => {